/*
  DESIGN SYSTEM: "Cartographic Narrative"
  - Editorial cartography meets Swiss International Style
  - Warm ivory canvas, deep charcoal text, terracotta + teal accents
  - Playfair Display (serif headings), Source Sans 3 (body), JetBrains Mono (tech labels)
  - Topographic contour motifs, structured asymmetry, narrative flow
*/

/* ═══ CSS Custom Properties ═══ */
:root {
  --radius: 0.375rem;
  --background: oklch(0.98 0.008 85);
  --foreground: oklch(0.22 0.012 60);
  --card: oklch(0.97 0.006 85);
  --card-foreground: oklch(0.22 0.012 60);
  --primary: oklch(0.55 0.18 25);
  --primary-foreground: oklch(0.98 0.008 85);
  --secondary: oklch(0.42 0.08 180);
  --secondary-foreground: oklch(0.98 0.008 85);
  --muted: oklch(0.92 0.006 80);
  --muted-foreground: oklch(0.50 0.015 60);
  --border: oklch(0.88 0.008 80);

  /* Brand colors */
  --ivory: oklch(0.98 0.008 85);
  --charcoal: oklch(0.22 0.012 60);
  --terracotta: oklch(0.55 0.18 25);
  --teal: oklch(0.42 0.08 180);
  --sage: oklch(0.65 0.04 145);
  --warm-gray: oklch(0.88 0.008 80);

  /* Font families */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ═══ Reset & Base ═══ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

input, textarea {
  font: inherit;
}

/* ═══ Scrollbar ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--muted); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--terracotta); }

/* ═══ Selection ═══ */
::selection {
  background: oklch(0.55 0.18 25 / 0.15);
  color: var(--charcoal);
}

/* ═══ Container ═══ */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; max-width: 1280px; }
}

/* ═══ Section Label ═══ */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
}

/* ═══ Editorial Rule ═══ */
.editorial-rule {
  height: 1px;
  background: linear-gradient(to right, var(--terracotta), var(--warm-gray), transparent);
}

/* ═══ Data Card ═══ */
.data-card {
  border: 1px solid var(--warm-gray);
  background: var(--card);
  transition: all 0.3s ease;
}
.data-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px oklch(0.22 0.012 60 / 0.08);
  border-color: oklch(0.55 0.18 25 / 0.3);
}

/* ═══ Scroll Reveal ═══ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ Navbar ═══ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  background: transparent;
}
.navbar.scrolled {
  background: oklch(0.98 0.008 85 / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 var(--warm-gray);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 1024px) {
  .nav-inner { height: 5rem; }
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
@media (min-width: 1024px) {
  .nav-logo-name { font-size: 1.25rem; }
}
.nav-logo-surname {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
}
@media (max-width: 639px) {
  .nav-logo-surname { display: none; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}
.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: oklch(0.22 0.012 60 / 0.7);
  transition: color 0.3s ease;
}
.nav-link:hover { color: var(--charcoal); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-cta {
  display: none;
  margin-left: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ivory);
  background: var(--charcoal);
  transition: background 0.3s ease;
}
.nav-cta:hover { background: var(--terracotta); }
@media (min-width: 1024px) {
  .nav-cta { display: inline-flex; }
}

/* ═══ Mobile Nav Toggle ═══ */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 2px;
}
@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}
.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.3s ease;
  transform-origin: center;
}
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══ Mobile Menu ═══ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: oklch(0.98 0.008 85 / 0.98);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  gap: 1.5rem;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}
.mobile-menu-link {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: color 0.3s ease;
}
.mobile-menu-link:hover { color: var(--terracotta); }
.mobile-menu-cta {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ivory);
  background: var(--charcoal);
  transition: background 0.3s ease;
}
.mobile-menu-cta:hover { background: var(--terracotta); }

/* ═══ Hero Section ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    oklch(0.98 0.008 85 / 0.95),
    oklch(0.98 0.008 85 / 0.80),
    oklch(0.98 0.008 85 / 0.30)
  );
}
.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 6rem;
  padding-bottom: 4rem;
  max-width: 48rem;
}
.hero-subtitle {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 0.95;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .hero h1 { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 4.5rem; }
}
@media (min-width: 1280px) {
  .hero h1 { font-size: 6rem; }
}
.hero h1 .accent { color: var(--terracotta); }

.hero-desc {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: oklch(0.22 0.012 60 / 0.7);
  line-height: 1.7;
  max-width: 36rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 1024px) {
  .hero-desc { font-size: 1.25rem; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary {
  padding: 0.875rem 1.75rem;
  color: var(--ivory);
  background: var(--charcoal);
}
.btn-primary:hover { background: var(--terracotta); }
.btn-outline {
  padding: 0.875rem 1.75rem;
  color: var(--charcoal);
  border: 1px solid oklch(0.22 0.012 60 / 0.3);
}
.btn-outline:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.btn-light {
  padding: 1rem 2rem;
  color: var(--charcoal);
  background: var(--ivory);
}
.btn-light:hover {
  background: var(--terracotta);
  color: var(--ivory);
}

/* ═══ Stats Bar ═══ */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 4rem;
}
@media (min-width: 1024px) {
  .stats-bar { gap: 4rem; }
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--terracotta);
}
@media (min-width: 1024px) {
  .stat-value { font-size: 2.25rem; }
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.22 0.012 60 / 0.5);
  margin-top: 0.25rem;
}

/* ═══ About Section ═══ */
.about {
  padding: 6rem 0;
  position: relative;
}
@media (min-width: 1024px) {
  .about { padding: 8rem 0; }
}
.about-bg-texture {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-size: cover;
  background-position: center;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}
.about-portrait {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.22 0.012 60 / 0.4), transparent);
}
.about-portrait-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: oklch(0.98 0.008 85 / 0.8);
}

.about h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2rem;
}
@media (min-width: 1024px) {
  .about h2 { font-size: 3rem; }
}
.about h2 .accent { color: var(--teal); }

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: oklch(0.22 0.012 60 / 0.75);
  line-height: 1.7;
}
@media (min-width: 1024px) {
  .about-text p { font-size: 1.125rem; }
}
.about-text strong {
  color: var(--charcoal);
  font-weight: 600;
}

/* Education */
.education-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--warm-gray);
}
.education-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
  display: block;
}
.education-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.education-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
@media (min-width: 640px) {
  .education-item {
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
  }
}
.education-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: oklch(0.22 0.012 60 / 0.4);
  flex-shrink: 0;
}
.education-degree {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
}
.education-school {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: oklch(0.22 0.012 60 / 0.5);
  margin-left: 0.5rem;
}

/* ═══ Experience Section ═══ */
.experience {
  padding: 6rem 0;
  background: var(--charcoal);
  color: var(--ivory);
}
@media (min-width: 1024px) {
  .experience { padding: 8rem 0; }
}
.experience .section-label { color: var(--terracotta); }
.experience .editorial-rule {
  background: linear-gradient(to right, var(--terracotta), transparent);
}

.experience h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 1rem;
}
@media (min-width: 1024px) {
  .experience h2 { font-size: 3rem; }
}
.experience-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: oklch(0.98 0.008 85 / 0.6);
  max-width: 42rem;
  margin-bottom: 4rem;
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid oklch(0.98 0.008 85 / 0.1);
  transition: border-color 0.5s ease;
}
@media (min-width: 1024px) {
  .experience-item {
    grid-template-columns: 3fr 9fr;
    gap: 2rem;
  }
}
.experience-item:hover {
  border-bottom-color: oklch(0.55 0.18 25 / 0.3);
}
.experience-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: oklch(0.98 0.008 85 / 0.4);
}
.experience-location {
  font-size: 0.75rem;
  color: oklch(0.98 0.008 85 / 0.3);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.experience-role {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ivory);
  transition: color 0.3s ease;
}
@media (min-width: 1024px) {
  .experience-role { font-size: 1.5rem; }
}
.experience-item:hover .experience-role { color: var(--terracotta); }
.experience-org {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal);
  margin-top: 0.25rem;
  display: block;
}
.experience-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: oklch(0.98 0.008 85 / 0.55);
  margin-top: 0.75rem;
  max-width: 42rem;
  line-height: 1.7;
}

/* Consulting callout */
.consulting-callout {
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}
.consulting-callout img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .consulting-callout img { height: 16rem; }
}
.consulting-callout-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    oklch(0.22 0.012 60 / 0.9),
    oklch(0.22 0.012 60 / 0.7),
    oklch(0.22 0.012 60 / 0.4)
  );
  display: flex;
  align-items: center;
}
.consulting-callout-content {
  padding: 2rem;
}
@media (min-width: 1024px) {
  .consulting-callout-content { padding: 2rem 3rem; }
}
.consulting-callout-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.consulting-callout h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ivory);
  margin-top: 0.5rem;
}
@media (min-width: 1024px) {
  .consulting-callout h3 { font-size: 1.875rem; }
}
.consulting-callout p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: oklch(0.98 0.008 85 / 0.6);
  margin-top: 0.5rem;
  max-width: 32rem;
}

/* ═══ Skills Section ═══ */
.skills {
  padding: 6rem 0;
  position: relative;
}
@media (min-width: 1024px) {
  .skills { padding: 8rem 0; }
}
.skills h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4rem;
}
@media (min-width: 1024px) {
  .skills h2 { font-size: 3rem; }
}
.skills h2 .accent { color: var(--teal); }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.skill-card {
  padding: 1.5rem;
}
@media (min-width: 1024px) {
  .skill-card { padding: 2rem; }
}
.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.skill-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.55 0.18 25 / 0.1);
  color: var(--terracotta);
}
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: oklch(0.22 0.012 60 / 0.7);
  background: oklch(0.88 0.008 80 / 0.5);
  border: 1px solid var(--warm-gray);
}

/* ═══ Services Section ═══ */
.services {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .services { padding: 8rem 0; }
}
.services-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.services-overlay {
  position: absolute;
  inset: 0;
  background: oklch(0.22 0.012 60 / 0.85);
}
.services .container { position: relative; z-index: 10; }
.services .section-label { color: var(--terracotta); }
.services .editorial-rule {
  background: linear-gradient(to right, var(--terracotta), transparent);
}
.services h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 1rem;
}
@media (min-width: 1024px) {
  .services h2 { font-size: 3rem; }
}
.services-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: oklch(0.98 0.008 85 / 0.6);
  max-width: 42rem;
  margin-bottom: 4rem;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  padding: 1.5rem;
  border: 1px solid oklch(0.98 0.008 85 / 0.1);
  background: oklch(0.98 0.008 85 / 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.5s ease;
  height: 100%;
}
@media (min-width: 1024px) {
  .service-card { padding: 2rem; }
}
.service-card:hover {
  background: oklch(0.98 0.008 85 / 0.1);
  border-color: oklch(0.55 0.18 25 / 0.3);
}
.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}
.service-card:hover h3 { color: var(--terracotta); }
.service-card p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: oklch(0.98 0.008 85 / 0.55);
  line-height: 1.7;
}
.services-cta {
  margin-top: 3rem;
  text-align: center;
}

/* ═══ Publications Section ═══ */
.publications {
  padding: 6rem 0;
  position: relative;
}
@media (min-width: 1024px) {
  .publications { padding: 8rem 0; }
}
.publications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) {
  .publications-grid { grid-template-columns: 7fr 5fr; }
}
.publications h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2.5rem;
}
@media (min-width: 1024px) {
  .publications h2 { font-size: 3rem; }
}
.publications h2 .accent { color: var(--teal); }

.pub-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--warm-gray);
  transition: border-color 0.3s ease;
}
.pub-item:hover { border-color: oklch(0.55 0.18 25 / 0.3); }
.pub-icon {
  color: var(--terracotta);
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.pub-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
}
.pub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.375rem;
}
.pub-authors {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: oklch(0.22 0.012 60 / 0.5);
}
.pub-venue {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
}
.pub-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: oklch(0.22 0.012 60 / 0.4);
}

/* Awards */
.awards h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2rem;
}
.awards h3 .accent { color: var(--terracotta); }

.award-card {
  padding: 1.25rem;
}
.award-card + .award-card { margin-top: 1.5rem; }
.award-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.award-icon {
  color: var(--terracotta);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.award-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: oklch(0.22 0.012 60 / 0.4);
  margin-bottom: 0.25rem;
  display: block;
}
.award-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
}
.award-desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: oklch(0.22 0.012 60 / 0.55);
  margin-top: 0.25rem;
  line-height: 1.6;
}

/* Community Service */
.community-service {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--warm-gray);
}
.community-service-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}
.community-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.375rem 0;
}
.community-role {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
}
.community-org {
  font-size: 0.875rem;
  color: oklch(0.22 0.012 60 / 0.5);
  margin-left: 0.25rem;
}
.community-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: oklch(0.22 0.012 60 / 0.4);
  flex-shrink: 0;
}

/* ═══ Contact Section ═══ */
.contact {
  padding: 6rem 0;
  background: var(--charcoal);
  color: var(--ivory);
}
@media (min-width: 1024px) {
  .contact { padding: 8rem 0; }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact .section-label { color: var(--terracotta); }
.contact h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .contact h2 { font-size: 3rem; }
}
.contact-desc {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: oklch(0.98 0.008 85 / 0.6);
  line-height: 1.7;
  max-width: 28rem;
  margin-bottom: 2.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: oklch(0.98 0.008 85 / 0.7);
  transition: color 0.3s ease;
}
.contact-info-item + .contact-info-item { margin-top: 1rem; }
.contact-info-item:hover { color: var(--terracotta); }
.contact-info-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid oklch(0.98 0.008 85 / 0.2);
  transition: border-color 0.3s ease;
}
.contact-info-item:hover .contact-info-icon {
  border-color: oklch(0.55 0.18 25 / 0.5);
}
.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: oklch(0.98 0.008 85 / 0.4);
  display: block;
}
.contact-info-value {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.98 0.008 85 / 0.5);
  margin-bottom: 0.5rem;
  display: block;
}
.form-input,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid oklch(0.98 0.008 85 / 0.2);
  padding: 0.75rem 0;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: oklch(0.98 0.008 85 / 0.3);
}
.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--terracotta);
}
.form-textarea {
  resize: none;
  min-height: 8rem;
}
.form-submit {
  margin-top: 1rem;
  align-self: flex-start;
}

/* ═══ Footer ═══ */
.footer {
  background: var(--charcoal);
  color: oklch(0.98 0.008 85 / 0.8);
  padding: 4rem 0;
}
@media (min-width: 1024px) {
  .footer { padding: 5rem 0; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 4rem; }
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  color: oklch(0.98 0.008 85 / 0.6);
  max-width: 20rem;
}
.footer-nav-label,
.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  display: block;
}
.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: oklch(0.98 0.008 85 / 0.6);
  transition: color 0.3s ease;
}
.footer-nav-links a:hover { color: var(--terracotta); }

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: oklch(0.98 0.008 85 / 0.6);
  transition: color 0.3s ease;
}
.footer-contact-link:hover { color: var(--terracotta); }

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid oklch(0.98 0.008 85 / 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; }
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: oklch(0.98 0.008 85 / 0.4);
}

/* ═══ Toast ═══ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast--success {
  background: var(--teal);
  color: var(--ivory);
}
.toast--error {
  background: oklch(0.577 0.245 27.325);
  color: var(--ivory);
}
.toast--info {
  background: var(--charcoal);
  color: var(--ivory);
  border: 1px solid oklch(0.98 0.008 85 / 0.1);
}
