:root {
  --azure: #255a62;
  --azure-deep: #163b41;
  --azure-tint: #e4eeef;
  --cream: #f5f2ed;
  --cream-dim: #ece7dd;
  --card: #ffffff;
  --mauve: #db5461;
  --mauve-deep: #af434e;
  --ink: #1c2b2d;
  --ink-soft: #4a5a5c;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --container: 1180px;
  --edge: clamp(1.5rem, 5vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); }

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
section { position: relative; }

/* Consistent keyboard focus indicator across all interactive elements
   (outline follows each element's own border-radius automatically) */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 3px;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
  transform: translateZ(0);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem var(--edge);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.nav.scrolled {
  background: rgba(245, 242, 237, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(37, 90, 98, 0.1);
  padding: 0.7rem var(--edge);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--azure);
  color: var(--cream);
  border-radius: 10px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 2.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  color: var(--cream);
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--mauve);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--ink); }
.nav.scrolled .nav-links a::after { background: var(--mauve-deep); }

.nav-cta {
  border: 1.5px solid rgba(245,242,237,0.6);
  color: var(--cream);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav-cta:hover { background: var(--cream); color: var(--azure-deep); }
.nav.scrolled .nav-cta { border-color: var(--azure); color: var(--azure); }
.nav.scrolled .nav-cta:hover { background: var(--azure); color: var(--cream); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.nav.scrolled .nav-toggle span { background: var(--azure); }

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(160deg, var(--azure-deep) 0%, var(--azure) 62%, #2f6b73 100%);
  color: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  padding: 4rem var(--edge) 4.5rem;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.shape-a {
  width: 46vw; height: 46vw;
  right: -12vw; top: -14vw;
  background: radial-gradient(circle at 35% 35%, rgba(219,84,97,0.35), rgba(219,84,97,0) 70%);
}
.shape-b {
  width: 34vw; height: 34vw;
  left: -10vw; bottom: -14vw;
  background: radial-gradient(circle at 60% 60%, rgba(245,242,237,0.12), rgba(245,242,237,0) 70%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,242,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,242,237,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 90%);
}
.hero-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; width: 100%; }
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mauve);
  margin: 0 0 1.3rem;
}
.hero-name {
  font-size: clamp(2.8rem, 9vw, 7.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 1.6rem;
  color: var(--cream);
  white-space: nowrap;
}
.reveal-line { display: block; overflow: hidden; }
.reveal-line span { display: inline-block; }
.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 300;
  max-width: 640px;
  color: rgba(245,242,237,0.88);
  margin: 0 0 2.6rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.btn-primary {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--mauve);
}
.btn-primary:hover { background: rgba(219,84,97,0.15); border-color: var(--cream); transform: translateY(-3px); }
.btn-ghost {
  border: 1.5px solid rgba(245,242,237,0.5);
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(245,242,237,0.1); border-color: var(--cream); transform: translateY(-3px); }
.btn-light { background: var(--cream); color: var(--azure-deep); border: none; }

.hero-contact {
  font-size: 0.88rem;
  color: rgba(245,242,237,0.75);
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
}
.hero-contact a { border-bottom: 1px solid transparent; transition: border-color 0.25s ease, color 0.25s ease; }
.hero-contact a:hover { border-color: var(--mauve); color: var(--cream); }
.hero-contact .dot { color: var(--mauve); }

.scroll-cue {
  position: absolute;
  bottom: 4.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(245,242,237,0.5);
  border-radius: 20px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--mauve);
  transform: translateX(-50%);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { top: 8px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-item, .reveal-line span {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--d, 0) * 0.12s + 0.15s);
}
.reveal-line span { animation-name: riseLine; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes riseLine { to { opacity: 1; transform: translateY(0); } }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.reveal-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* Fallback: if JS is unavailable, never hide content behind an observer that won't fire */
@media (scripting: none) {
  .reveal-on-scroll { opacity: 1; transform: none; }
}

/* ===== SECTION HEAD ===== */
.section-head {
  max-width: var(--container);
  margin: 0 auto 2.2rem;
  padding: 0 var(--edge);
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===== STATS ===== */
.stats { padding: 4.5rem 0 3.2rem; background: var(--cream); }
.stats-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.6rem;
}
.stat { border-top: 2px solid rgba(37,90,98,0.15); padding-top: 1.1rem; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  color: var(--azure);
  line-height: 1;
  margin: 0 0 0.7rem;
}
.stat-label {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 26ch;
  margin: 0;
}
/* Each impact number gives a small pop as it finishes counting up */
@keyframes statLand {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.stat-num.landed { animation: statLand 0.5s cubic-bezier(.2,.8,.2,1); transform-origin: left center; }

/* ===== SUMMARY ===== */
.summary { padding: 0.5rem 0 3.8rem; background: var(--cream); }
.summary-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 var(--edge);
}
.summary-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.4rem;
  align-items: center;
}
.summary-photo { position: relative; }
.summary-photo::before {
  content: '';
  position: absolute;
  top: 18px; right: -18px; bottom: -18px; left: 18px;
  background: var(--mauve);
  border-radius: 20px;
  z-index: 0;
}
.summary-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 44px -22px rgba(28,43,45,0.4);
}
.summary-inner p {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.drop-cap {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5em;
  color: var(--mauve-deep);
}

@media (max-width: 760px) {
  .summary-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .summary-photo { max-width: 220px; margin: 0 auto; }
}

/* ===== MARQUEE ===== */
.marquee-band {
  background: var(--azure);
  padding: 1.4rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(245,242,237,0.15);
  border-bottom: 1px solid rgba(245,242,237,0.15);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.1rem;
  animation: scroll-marquee 34s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--mauve);
  white-space: nowrap;
}
.marquee-track span:nth-child(odd) { color: var(--cream); opacity: 0.9; }
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* Pause the tool marquee on hover so a name can actually be read */
.marquee-band:hover .marquee-track { animation-play-state: paused; }

/* ===== EXPERIENCE / TIMELINE ===== */
.experience { padding: 4.5rem 0; background: var(--cream); }
.timeline {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: calc(var(--edge) + 7px);
  top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--azure), var(--mauve));
  opacity: 0.35;
}
.tl-item {
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 2.1rem;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-marker {
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--azure);
}
.tl-item.in-view .tl-marker { animation: pulse 1.4s ease-out; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(219,84,97,0.55); }
  100% { box-shadow: 0 0 0 14px rgba(219,84,97,0); }
}
.tl-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem 1.9rem 1.8rem;
  box-shadow: 0 1px 2px rgba(28,43,45,0.04);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.tl-card:hover { box-shadow: 0 16px 34px -18px rgba(37,90,98,0.28); transform: translateY(-2px); }
.tl-date {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  margin: 0 0 0.5rem;
}
.tl-card h3 { font-size: 1.32rem; font-weight: 700; margin-bottom: 0.3rem; }
.tl-org { font-size: 0.94rem; color: var(--ink-soft); margin: 0 0 0.6rem; }
.tl-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--azure);
  background: var(--azure-tint);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.tl-card ul { margin-top: 0.9rem; }
.tl-card li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.6rem;
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.55;
}
.tl-card li:last-child { margin-bottom: 0; }
.tl-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mauve-deep);
}

/* ===== WORK ===== */
.work { padding: 4.5rem 0; background: var(--cream); }
.work-intro {
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0.7rem 0 0;
}
.work-scroller {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.4rem var(--edge) 1.1rem;
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--mauve) transparent;
  scrollbar-width: thin;
}
.work-scroller::-webkit-scrollbar { height: 8px; }
.work-scroller::-webkit-scrollbar-track { background: transparent; }
.work-scroller::-webkit-scrollbar-thumb { background: var(--mauve); border-radius: 8px; }

.work-card {
  flex: 0 0 auto;
  width: 270px;
  scroll-snap-align: start;
  background: var(--card);
  border: none;
  border-radius: 18px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(28,43,45,0.06);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}
.work-card:hover, .work-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px -18px rgba(37,90,98,0.32);
}
.work-card-chrome {
  display: flex;
  gap: 6px;
  padding: 0.85rem 1rem;
  background: var(--azure);
}
.work-card-chrome i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(245,242,237,0.3);
  display: block;
}
.work-card-chrome i:first-child { background: var(--mauve); }
.work-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.work-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mauve-deep);
}
.work-subject {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.32;
  color: var(--ink);
}
.work-open {
  margin-top: auto;
  padding-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--azure);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.25s ease, color 0.25s ease;
}
.work-card:hover .work-open { gap: 0.55rem; color: var(--mauve-deep); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5vh 3vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22,59,65,0.75);
  backdrop-filter: blur(4px);
}
.lightbox-window {
  position: relative;
  width: min(1000px, 100%);
  height: min(820px, 92vh);
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.lightbox.open .lightbox-window { transform: translateY(0) scale(1); }
.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  background: var(--azure-deep);
  color: var(--cream);
  flex-shrink: 0;
}
.lightbox-dots { display: flex; gap: 6px; flex-shrink: 0; }
.lightbox-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(245,242,237,0.22); display: block; }
.lightbox-dots i:first-child { background: var(--mauve); }
.lightbox-subject {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.lightbox-actions { display: flex; align-items: center; gap: 1.2rem; flex-shrink: 0; }
.lightbox-actions a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mauve);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.lightbox-actions a:hover { color: var(--cream); }
.lightbox-close {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.1rem;
  transition: color 0.2s ease, transform 0.3s ease;
}
.lightbox-close:hover { color: var(--mauve); transform: rotate(90deg); }
.lightbox-frame-wrap { flex: 1; background: #fff; }
.lightbox-frame-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

@media (max-width: 640px) {
  .lightbox { padding: 0; }
  .lightbox-window { width: 100%; height: 100%; border-radius: 0; }
}

/* ===== SKILLS ===== */
.skills { padding: 4.5rem 0; background: var(--cream); }
.skills-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: var(--card);
  border-radius: 18px;
  padding: 1.8rem 1.7rem;
  border-top: 3px solid var(--azure);
}
.skill-card.accent { border-top-color: var(--mauve-deep); }
.skill-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  margin-bottom: 1rem;
}
.skill-items { display: flex; flex-direction: column; gap: 0.55rem; }
.skill-items li {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.4;
  transition: color 0.25s ease;
}
.skill-items li:hover { color: var(--azure); }

/* ===== EDUCATION / AWARDS ===== */
.education { padding: 4.5rem 0; background: var(--cream); }
.ed-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.ed-card {
  background: var(--card);
  border-radius: 18px;
  padding: 2.1rem 2rem;
  border-top: 3px solid var(--azure);
}
.ed-card.accent { border-top-color: var(--mauve-deep); }
.ed-card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  margin-bottom: 1.2rem;
}
.ed-title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin: 0 0 0.15rem; }
.ed-sub { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 1.1rem; }
.ed-card p:last-child { margin-bottom: 0; }

/* ===== CONTACT ===== */
.contact {
  background: linear-gradient(160deg, var(--azure-deep) 0%, var(--azure) 100%);
  color: var(--cream);
  padding: 6rem var(--edge) 5rem;
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px;
}
.contact-inner { max-width: var(--container); margin: 0 auto; text-align: center; }
.contact h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 2.2rem;
  color: var(--cream);
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}
.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.3rem 1.8rem;
  border-radius: 16px;
  border: 1px solid rgba(245,242,237,0.18);
  min-width: 200px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.contact-link:hover { background: rgba(245,242,237,0.08); border-color: var(--mauve); transform: translateY(-3px); }
.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve);
}
.contact-value { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }

.site-footer {
  text-align: center;
  padding: 2.2rem var(--edge) 2.6rem;
  background: var(--azure);
  color: rgba(245,242,237,0.8);
  font-size: 0.82rem;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  background: var(--azure-deep);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 12px;
  box-shadow: 0 18px 44px -14px rgba(22,59,65,0.55);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1.4rem);
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-check { color: var(--mauve); font-size: 1.05rem; line-height: 1; }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity 0.2s ease; transform: translate(-50%, 0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    padding: 1.5rem var(--edge) 2rem;
    gap: 1.2rem;
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.15);
  }
  /* Menu panel is always cream, so links must read as ink regardless of scroll state */
  .nav.menu-open .nav-links a { color: var(--ink); }
  .nav.menu-open .nav-links a::after { background: var(--mauve-deep); }

  /* Hamburger morphs into an X while the menu is open */
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 7px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 4.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .drop-cap { font-size: 3.2rem; }
  .contact-link { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
