:root {
  --navy: #072366;
  --navy-dark: #051a4d;
  --navy-light: #1A3C8F;
  --gold: #C49A2A;
  --gold-soft: #d9b34a;
  --white: #FFFFFF;
  --light-gray: #F2F4F7;
  --light-gray-2: #e9edf2;
  --mid-gray: #6B7B8D;
  --text-dark: #1A1A2E;
  --text-body: #333D4E;
  --line: rgba(7, 35, 102, 0.12);
  --line-strong: rgba(7, 35, 102, 0.22);
  --shadow-sm: 0 6px 22px rgba(7, 35, 102, 0.08);
  --shadow-md: 0 18px 48px rgba(7, 35, 102, 0.12);
  --shadow-lg: 0 32px 80px rgba(7, 35, 102, 0.18);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1200px;
  --page-gutter: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  color: var(--text-dark);
  background: var(--white);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--text-dark);
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

p {
  margin: 0 0 16px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--white);
  font-weight: 700;
  background: var(--navy);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Reveal on scroll ────────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-reveal-group] [data-reveal] {
  transition-delay: calc(var(--reveal-index, 0) * 80ms);
}

/* ── Navigation ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0);
  transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 28px rgba(7, 35, 102, 0.06);
}

.site-header.is-scrolled .brand,
.site-header.is-scrolled .nav-links a {
  color: var(--text-dark);
}

.site-header.is-scrolled .brand-mark {
  background: var(--navy);
  color: var(--gold);
}

.site-header.is-scrolled .lang-toggle {
  border-color: rgba(7, 35, 102, 0.2);
}

.site-header.is-scrolled .lang-toggle button {
  color: var(--mid-gray);
}

.site-header.is-scrolled .lang-toggle button.is-active {
  background: var(--navy);
  color: var(--white);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max-width), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--white);
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 0.98rem;
  transition: color 220ms ease;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  transition: all 220ms ease;
}

.brand-name {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-name .brand-tagline {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
}

.lang-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  overflow: hidden;
  margin-left: 6px;
}

.lang-toggle button {
  background: none;
  border: none;
  padding: 0 12px;
  height: 32px;
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.lang-toggle button.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-header.is-scrolled .nav-toggle {
  border-color: rgba(7, 35, 102, 0.25);
}

.site-header.is-scrolled .nav-toggle span,
.site-header.is-scrolled .nav-toggle span::before,
.site-header.is-scrolled .nav-toggle span::after {
  background: var(--text-dark);
}

/* ── Layout shells ──────────────────────────────────────────────────── */

.section-shell {
  width: min(var(--max-width), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 920px;
  padding: 96px 0 32px;
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(640px, 92vh, 860px);
  padding: 0 0 80px;
  margin-top: -72px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(196, 154, 42, 0.18), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(26, 60, 143, 0.55), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 0%, transparent 70%);
  opacity: 0.45;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  width: min(var(--max-width), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 88px 0 0;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 154, 42, 0.22);
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

.hero h1 .hero-quote {
  display: block;
  font-style: normal;
  color: var(--gold);
}

.hero-name {
  margin-top: 8px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
}

.hero-gold-line {
  width: 92px;
  height: 3px;
  margin: 28px 0;
  background: var(--gold);
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease,
    border-color 200ms ease, opacity 200ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--gold);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--gold-soft);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.button.ghost-dark {
  color: var(--navy);
  border-color: var(--navy);
  background: transparent;
}

.button.ghost-dark:hover,
.button.ghost-dark:focus-visible {
  background: var(--navy);
  color: var(--white);
}

/* Hero card ──────────────────────────────────────────────────────────── */

.hero-card {
  position: relative;
  min-width: 0;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 60%),
    rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

.hero-card h2,
.hero-card p {
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.hero-card-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-card h2 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  margin: 0 0 14px;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  margin: 0 0 22px;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-roles li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Brew build (espresso centerpiece) ─────────────────────────────── */

.brew-build {
  --build-progress: 0;
  --p-cup: 1;
  --p-shot: 0;
  --p-crema: 0;
  --p-milk: 0;
  --p-art: 0;
  --p-bag: 0;
  --p-stamp: 0;
  position: relative;
  padding: 80px 0 100px;
  background:
    linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

.brew-build__intro {
  margin-bottom: 32px;
}

.brew-build__intro h2 {
  max-width: 760px;
  color: var(--navy);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.brew-build__lede {
  max-width: 660px;
  color: var(--text-body);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.brew-build__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 38px;
  align-items: start;
}

.brew-build__stage {
  position: sticky;
  top: 96px;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: min(640px, calc(100vh - 130px));
  padding: 36px 28px 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 18%, rgba(196, 154, 42, 0.12), transparent 42%),
    radial-gradient(circle at 80% 100%, rgba(7, 35, 102, 0.08), transparent 50%),
    linear-gradient(180deg, #faf6ef 0%, #efe6d5 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Wood table surface under the cup - warm oak with depth and grain */
.brew-build__counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background:
    /* Subtle vignette darkening at the edges */
    radial-gradient(ellipse at 50% 0%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.18) 100%),
    /* Wood plank seams (3 vertical planks) */
    linear-gradient(90deg,
      transparent 0%,
      transparent 33%,
      rgba(70, 40, 18, 0.45) 33.05%,
      rgba(70, 40, 18, 0.45) 33.2%,
      transparent 33.25%,
      transparent 66%,
      rgba(70, 40, 18, 0.45) 66.05%,
      rgba(70, 40, 18, 0.45) 66.2%,
      transparent 66.25%,
      transparent 100%),
    /* Fine wood grain stripes */
    repeating-linear-gradient(
      90deg,
      rgba(120, 78, 36, 0.05) 0px,
      rgba(120, 78, 36, 0.05) 1px,
      transparent 1px,
      transparent 6px
    ),
    /* Warm oak base gradient (lighter front, darker back) */
    linear-gradient(180deg,
      #c89d68 0%,
      #b08652 35%,
      #9a703f 70%,
      #87603a 100%);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.35);
}

/* Front edge of the table (subtle dark lip) */
.brew-build__counter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background:
    linear-gradient(180deg,
      rgba(70, 40, 18, 0.55) 0%,
      rgba(70, 40, 18, 0) 100%);
}

/* Soft horizontal warm light band at the front of the table */
.brew-build__counter::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 0;
  right: 0;
  height: 18%;
  background: linear-gradient(180deg,
    rgba(255, 230, 180, 0.18) 0%,
    rgba(255, 230, 180, 0) 100%);
  pointer-events: none;
}

/* Steam wisps above the cup */
.brew-build__steam {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 120px;
  height: 110px;
  margin-left: -60px;
  pointer-events: none;
  opacity: calc(var(--p-shot, 0) * 0.85);
  transition: opacity 320ms ease;
}

.brew-build__steam span {
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  filter: blur(3px);
  animation: brew-steam 4.6s ease-in-out infinite;
}

.brew-build__steam span:nth-child(1) {
  bottom: 0;
  left: 30%;
  width: 16px;
  height: 16px;
  animation-delay: 0s;
}

.brew-build__steam span:nth-child(2) {
  bottom: 16px;
  left: 50%;
  width: 22px;
  height: 22px;
  animation-delay: 0.6s;
}

.brew-build__steam span:nth-child(3) {
  bottom: 36px;
  left: 36%;
  width: 18px;
  height: 18px;
  animation-delay: 1.2s;
}

.brew-build__steam span:nth-child(4) {
  bottom: 52px;
  left: 56%;
  width: 26px;
  height: 26px;
  animation-delay: 1.9s;
}

@keyframes brew-steam {
  0%   { transform: translate3d(0, 0, 0) scale(0.85); opacity: 0; }
  20%  { opacity: 0.65; }
  60%  { opacity: 0.4; }
  100% { transform: translate3d(0, -36px, 0) scale(1.4); opacity: 0; }
}

/* The cup ─────────────────────────────────────────────────────────────── */

.brew-build__cup {
  position: relative;
  z-index: 2;
  width: min(440px, 78%);
  max-width: 100%;
  opacity: var(--p-cup);
  transform: translate3d(0, calc((1 - var(--p-cup)) * 28px), 0)
    scale(calc(0.96 + var(--p-cup) * 0.04));
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 28px 38px rgba(7, 35, 102, 0.22));
}

.brew-build__cup .cup-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Layers inside the cup are clipped to the cup interior via SVG clipPath.
   Each layer covers the previous one as the brew progresses.
   We avoid transform-box because Chrome's behaviour is inconsistent for SVG
   children; instead, the espresso uses an SVG-attribute transform via JS
   custom property and the rest fade with opacity only. */

.brew-layer {
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms ease;
}

/* Espresso fills from the bottom of the cup upward.
   The rect is full-height (y=120, h=180); we translate it down by the unfilled
   portion so the visible top edge of the rect rises as p-shot grows. */
.brew-layer--espresso {
  transform: translate(0, calc((1 - var(--p-shot, 0)) * 180px));
  opacity: 1;
}

/* The remaining layers are drawn at fixed SVG positions.
   They fade in via opacity only (no scale or translate transform). */
.brew-layer--crema {
  opacity: var(--p-crema, 0);
}

.brew-layer--milk {
  opacity: var(--p-milk, 0);
}

.brew-layer--art {
  opacity: var(--p-art, 0);
}

/* The coffee bag is OUTSIDE the cup clip; it slides in from below the
   counter and fades up to its standing position next to the cup. */
.brew-layer--bag {
  opacity: var(--p-bag, 0);
  transform-origin: 80px 200px;
  transform: translate(0, calc((1 - var(--p-bag, 0)) * 24px));
}

/* Stamp overlay */
.brew-build__stamp {
  --p: var(--p-stamp, 0);
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 4;
  padding: 8px 14px;
  border: 3px solid rgba(196, 154, 42, 0.92);
  border-radius: 8px;
  color: rgba(196, 154, 42, 0.95);
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  background: rgba(196, 154, 42, 0.06);
  text-transform: uppercase;
  opacity: var(--p);
  transform: rotate(calc(-10deg + (1 - var(--p)) * 38deg)) scale(calc(0.92 + var(--p) * 0.08));
  transition: opacity 360ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  white-space: nowrap;
}

.brew-build__signal {
  position: absolute;
  left: 28px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.brew-build__signal::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(196, 154, 42, 0.45);
}

.brew-build__progress {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(7, 35, 102, 0.1);
  overflow: hidden;
}

.brew-build__progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(var(--build-progress));
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Chapter list (right side of layout) */

.brew-build__chapters {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 12vh 0 30vh;
  list-style: none;
}

.brew-chapter {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 56vh;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  opacity: 0.45;
  transform: translateY(14px) scale(0.985);
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.brew-chapter.is-active {
  opacity: 1;
  transform: translateY(-2px) scale(1);
  border-color: rgba(196, 154, 42, 0.6);
  box-shadow: 0 22px 60px rgba(7, 35, 102, 0.16),
    0 0 0 1px rgba(196, 154, 42, 0.25);
}

.brew-chapter__index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brew-chapter__index::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
}

.brew-chapter h3 {
  max-width: 480px;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 4px 0 8px;
}

.brew-chapter h3 .chapter-meta {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mid-gray);
  text-transform: uppercase;
}

.brew-chapter p {
  max-width: 540px;
  color: var(--text-body);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  margin-bottom: 0;
}

/* ── Stats ──────────────────────────────────────────────────────────── */

.stats-section {
  padding: 80px 0 36px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
}

.stat-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--gold);
}

.stat-card dt {
  display: block;
  margin: 14px 0 4px;
  color: var(--navy);
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.stat-card dd {
  margin: 0;
  color: var(--text-body);
  font-size: 0.92rem;
}

/* ── Intro grid + features ──────────────────────────────────────────── */

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  padding: 80px 0 32px;
  align-items: end;
}

.intro-grid h2 {
  color: var(--navy);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 154, 42, 0.4);
}

.feature-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature-card h3 {
  font-size: 1.14rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-body);
  font-size: 0.96rem;
  margin: 0;
}

/* ── Timeline ───────────────────────────────────────────────────────── */

.experience-section {
  padding: 32px 0 32px;
}

.experience-section .section-heading {
  padding-top: 80px;
}

.experience-section h2 {
  color: var(--navy);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.1;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(196, 154, 42, 0.06) 100%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 4px 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -27px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px rgba(196, 154, 42, 0.5);
}

.timeline-date {
  padding-top: 24px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-content {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
  margin: 0 0 4px;
  font-size: 1.18rem;
  color: var(--navy);
}

.timeline-content h3 span {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.timeline-content ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text-body);
  font-size: 0.96rem;
}

.timeline-content li::marker {
  color: var(--gold);
}

.timeline-content p {
  color: var(--text-body);
  font-size: 0.96rem;
  margin: 12px 0 0;
}

.timeline-item.compact .timeline-content p {
  margin-top: 0;
}

/* ── Expertise grid ─────────────────────────────────────────────────── */

.expertise-section {
  padding: 32px 0 32px;
}

.expertise-section .section-heading {
  padding-top: 80px;
}

.expertise-section h2 {
  color: var(--navy);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.1;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.expertise-grid article {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.expertise-grid h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-body);
  font-size: 0.86rem;
  background: var(--light-gray);
}

/* ── Education + languages split ────────────────────────────────────── */

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  padding: 80px 0 32px;
}

.split-section h2 {
  color: var(--navy);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.1;
}

.info-panel {
  display: grid;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.info-panel h3 {
  color: var(--navy);
  margin: 4px 0;
}

.info-panel p {
  color: var(--text-body);
  margin: 0;
}

.date {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.language-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--light-gray);
  list-style: none;
}

.language-band li {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
}

.language-band span {
  display: block;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.language-band strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 1.02rem;
}

/* ── Quote card ─────────────────────────────────────────────────────── */

.quote-section {
  padding: 80px 0 32px;
}

.quote-card {
  position: relative;
  padding: clamp(36px, 5vw, 60px);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(196, 154, 42, 0.08), transparent 50%),
    var(--white);
  box-shadow: var(--shadow-md);
}

.quote-card::before {
  content: "«";
  position: absolute;
  top: -22px;
  left: 22px;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 6rem;
  line-height: 1;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.55;
}

.quote-card blockquote {
  margin: 0 0 18px;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.quote-card cite {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  color: var(--mid-gray);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-card cite::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

/* ── Contact ────────────────────────────────────────────────────────── */

.contact-section {
  margin: 80px 0 0;
  padding: clamp(40px, 6vw, 80px);
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196, 154, 42, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}

.contact-section .eyebrow {
  color: var(--gold);
}

.contact-section h2 {
  max-width: 920px;
  margin: 0 auto 18px;
  color: var(--white);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.12;
}

.contact-section p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 32px;
  margin-top: 32px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
}

.contact-meta a {
  color: var(--gold);
  font-weight: 700;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}

.site-footer .footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max-width), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  color: var(--mid-gray);
  font-size: 0.84rem;
}

.site-footer a {
  color: var(--mid-gray);
  border-radius: 4px;
  padding: 6px 0;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--navy);
}

/* ── 404 ────────────────────────────────────────────────────────────── */

.not-found-page {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(196, 154, 42, 0.18), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  min-height: 100vh;
}

.not-found {
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: 60px 0;
}

.not-found h1 {
  color: var(--white);
  max-width: 760px;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
}

.not-found .hero-text {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
}

.not-found .button {
  justify-self: start;
  margin-top: 18px;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .split-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .brew-build__layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brew-build__stage {
    top: 86px;
    aspect-ratio: 4 / 5;
    min-height: 0;
    padding: 24px 18px 56px;
  }

  .brew-build__cup {
    width: min(360px, 78%);
  }

  .brew-build__chapters {
    padding: 0;
    gap: 14px;
  }

  .brew-chapter {
    min-height: auto;
    opacity: 0.7;
    transform: translateY(6px) scale(0.99);
  }

  .brew-chapter.is-active {
    transform: translateY(0) scale(1);
  }

  .language-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 16px;
  }

  body {
    overflow-x: clip;
  }

  .hero {
    min-height: auto;
    padding-bottom: 56px;
    margin-top: -56px;
  }

  .hero-grid {
    padding-top: 88px;
    gap: 22px;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    word-break: break-word;
  }

  .hero-lede {
    font-size: 0.94rem;
    word-break: break-word;
  }

  .hero-card {
    padding: 22px 18px;
  }

  .hero-card h2 {
    font-size: 1.18rem;
  }

  .hero-card p {
    font-size: 0.92rem;
    margin-bottom: 16px;
  }

  .hero-roles li {
    font-size: 0.74rem;
    padding: 5px 10px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 auto;
    padding: 0 14px;
  }

  .nav-shell {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.is-open {
    display: flex;
    flex-basis: 100%;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
  }

  .site-header.is-scrolled .nav-links.is-open {
    background: var(--white);
    box-shadow: 0 1px 0 var(--line);
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .lang-toggle {
    order: 3;
    margin-left: 0;
  }

  .stats-grid,
  .feature-grid,
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline-item::before {
    left: -22px;
  }

  .timeline-date {
    padding-top: 6px;
  }

  .brew-build__stage {
    aspect-ratio: auto;
    min-height: 420px;
  }

  .brew-build__cup {
    width: min(300px, 82%);
  }

  .quote-card::before {
    font-size: 4rem;
  }

  .language-band {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .brew-build {
    --build-progress: 1 !important;
    --p-cup: 1 !important;
    --p-shot: 1 !important;
    --p-crema: 1 !important;
    --p-milk: 1 !important;
    --p-art: 1 !important;
    --p-bag: 1 !important;
    --p-stamp: 1 !important;
  }

  .brew-build__stage {
    position: static;
  }

  .brew-build__cup,
  .brew-layer {
    opacity: 1 !important;
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .brew-chapter {
    opacity: 1 !important;
    transform: none !important;
  }

  .brew-build__stamp {
    transform: rotate(-8deg) !important;
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}
