/* ============================================================
   Enzo Di-Santolo — personal CV
   Warm off-white paper, charcoal ink, a whisper of bronze,
   classic serif headings, and plenty of air.
   ============================================================ */

:root {
  /* Palette */
  --paper:      #f7f5f0;   /* warm off-white */
  --paper-alt:  #f1eee6;   /* subtle alternating band */
  --card:       #fdfcf9;   /* raised card surface */
  --ink:        #201d1a;   /* near-black, warm */
  --ink-soft:   #45413b;   /* body text — dark enough to read easily */
  --ink-muted:  #7c766c;   /* labels, meta */
  --accent:     #a06a35;   /* warm bronze — used sparingly */
  --accent-soft:#c4a373;
  --line:       #e3ded3;   /* hairline dividers */
  --line-soft:  #ece8de;
  --ok:         #3f8f57;

  /* Type */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --section: clamp(4.5rem, 11vw, 9rem);
  --maxw:    1120px;
  --ease:    cubic-bezier(0.33, 1, 0.68, 1);   /* easeOutCubic — smooth deceleration, no hang */
  --header-h: 68px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.75;
  font-size: clamp(1.02rem, 0.4vw + 0.94rem, 1.13rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.35rem, 5vw, 3.25rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 400;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ============================================================
   Open-to-work announcement banner
   ============================================================ */
.announce {
  background: linear-gradient(90deg, var(--accent), #b4813f);
  color: #fdf8f0;
}
.announce.is-hidden { display: none; }
.announce__inner {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding-top: 0.6rem; padding-bottom: 0.6rem;
  text-align: center;
}
.announce p { margin: 0; font-size: 0.83rem; letter-spacing: 0.015em; }
.announce .fi { box-shadow: 0 0 0 1px rgba(255,255,255,0.3); flex: 0 0 auto; }
.announce .pulse, .announce .pulse::after { background: #fff; }
.announce__close {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fdf8f0; font-size: 1.3rem; line-height: 1;
  cursor: pointer; padding: 0 0.3rem; opacity: 0.8; transition: opacity 0.25s var(--ease);
}
.announce__close:hover { opacity: 1; }
@media (max-width: 620px) {
  .announce p { font-size: 0.76rem; }
  .announce__close { right: -0.2rem; }
}

/* ============================================================
   Language-change loader
   ============================================================ */
.lang-loader {
  position: fixed; inset: 0; z-index: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(9px) saturate(120%); -webkit-backdrop-filter: blur(9px) saturate(120%);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.lang-loader.is-active { opacity: 1; visibility: visible; }
.lang-loader__ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}
.lang-loader__label {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-soft);
  letter-spacing: 0.02em;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lang-loader__ring { animation: none; } }

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,0.35); }

.nav {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0.95rem clamp(1.35rem, 5vw, 3.25rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}

.nav__brand {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}

.nav__menu { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }

.nav__links { list-style: none; display: flex; gap: clamp(1.1rem, 2.2vw, 2rem); }
.nav__links a {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-muted); position: relative; padding-bottom: 3px; transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.is-current { color: var(--ink); }
.nav__links a.is-current::after { width: 100%; }

/* Language switch */
.lang-switch { display: flex; align-items: center; gap: 0.45rem; }
.lang-switch__btn {
  background: none; border: 0; cursor: pointer; font-family: var(--sans);
  font-size: 0.78rem; letter-spacing: 0.07em; color: var(--ink-muted);
  padding: 0.15rem 0.1rem; transition: color 0.25s var(--ease);
}
.lang-switch__btn:hover { color: var(--ink); }
.lang-switch__btn.is-active { color: var(--accent); font-weight: 600; }
.lang-switch__sep { color: var(--line); font-size: 0.7rem; }

/* Hamburger */
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: clamp(3.5rem, 10vh, 7rem) 0 clamp(3.5rem, 9vh, 6rem); position: relative; }
.hero__inner { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; position: relative; }

/* Soft drifting gradient aura behind the hero */
.hero__aura { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__aura span {
  position: absolute; display: block; border-radius: 50%; filter: blur(70px); opacity: 0.55;
}
.hero__aura span:nth-child(1) { width: 40vw; height: 40vw; left: -8vw; top: -10vw;
  background: radial-gradient(circle, #ecd9bf 0%, transparent 70%); animation: drift-a 24s var(--ease) infinite; }
.hero__aura span:nth-child(2) { width: 34vw; height: 34vw; right: -6vw; top: 6vw;
  background: radial-gradient(circle, #e6d3c4 0%, transparent 70%); animation: drift-b 30s var(--ease) infinite; }
.hero__aura span:nth-child(3) { width: 28vw; height: 28vw; left: 28vw; bottom: -12vw;
  background: radial-gradient(circle, #d7e3dc 0%, transparent 70%); animation: drift-c 27s var(--ease) infinite; }
@keyframes drift-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,3vw) scale(1.08); } }
@keyframes drift-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-3vw,4vw) scale(1.1); } }
@keyframes drift-c { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(3vw,-3vw) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .hero__aura span { animation: none; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.95rem;
  background: var(--card); margin-bottom: 1.6rem;
}
.pulse { position: relative; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok);
  animation: pulse-ring 2.4s var(--ease) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.55; }
  70%  { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

.hero__eyebrow { font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.hero__name {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.8rem, 8.5vw, 5.6rem); line-height: 0.98; letter-spacing: 0.01em; color: var(--ink);
  margin-bottom: 1rem;
}

.hero__tagline { margin-bottom: 1.6rem; min-height: 1.9em; }
.hero__tagline-word {
  display: inline-block;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem); color: var(--accent); line-height: 1.2;
  transition: opacity 0.45s ease, transform 0.45s var(--ease);
  will-change: opacity, transform;
}
.hero__tagline-word.is-swapping { opacity: 0; transform: translateY(4px); }

.hero__intro { max-width: 46ch; color: var(--ink-soft); font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.2rem); }

.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Portrait */
.hero__portrait { position: relative; justify-self: center; }
.hero__portrait-inner { position: relative; animation: portrait-float 6s ease-in-out infinite; will-change: transform; }
@keyframes portrait-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero__portrait-inner { animation: none; } }
.hero__portrait img {
  display: block; width: min(320px, 72vw); height: auto; border-radius: 8px;
  filter: grayscale(0.12) contrast(1.02);
  box-shadow: 0 30px 60px -30px rgba(60,45,25,0.45);
  transition: filter 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.hero__portrait::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--accent-soft);
  border-radius: 8px; z-index: -1; opacity: 0.7;
}
.hero__portrait:hover img { filter: grayscale(0); transform: scale(1.03); box-shadow: 0 40px 70px -30px rgba(60,45,25,0.5); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  padding: 0.9rem 1.9rem; border: 1px solid var(--ink); cursor: pointer; background: none;
  border-radius: 2px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #000; transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(0,0,0,0.6); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--cv::before {
  content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.6em;
  border: 1.5px solid currentColor; border-top: 0; border-right: 0;
  transform: translateY(-0.18em) rotate(-45deg);
}
.contact__cv { margin-top: 2rem; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: var(--section) 0; border-top: 1px solid var(--line-soft); scroll-margin-top: var(--header-h); }
.section--alt { background: var(--paper-alt); }

.section__index {
  font-family: var(--serif); font-size: 1rem; letter-spacing: 0.2em; color: var(--accent);
  margin-bottom: 0.6rem;
}
.section__title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05; margin-bottom: 2.25rem; letter-spacing: 0.005em; color: var(--ink);
}
.section__lead { max-width: 54ch; color: var(--ink-soft); margin-bottom: 3rem; margin-top: -1rem; font-size: 1.1rem; }

.prose { max-width: 62ch; }
.prose p { color: var(--ink-soft); }
.prose p + p { margin-top: 1.4rem; }

/* "Currently open to" block */
.open-to {
  margin-top: 3rem; padding: 1.75rem clamp(1.5rem, 3vw, 2.25rem);
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 4px; max-width: 760px;
}
.open-to__label { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.open-to__where { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin: 0.25rem 0 1.1rem; }

.role-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem 0.65rem; }
.role-list li {
  font-size: 0.85rem; letter-spacing: 0.01em; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.95rem; background: var(--paper);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.role-list li:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }

/* ============================================================
   Timeline (experience + education)
   ============================================================ */
.timeline { list-style: none; }
.timeline__item {
  display: grid; grid-template-columns: 210px 1fr; gap: clamp(1rem, 4vw, 3rem);
  padding: 2.5rem 0; border-top: 1px solid var(--line);
}
.timeline__item:first-child { border-top: 0; padding-top: 0; }

.timeline__meta { display: flex; flex-direction: column; gap: 0.3rem; }
.timeline__date { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ink); font-weight: 600; text-transform: uppercase; }
.timeline__place { font-size: 0.82rem; color: var(--ink-muted); letter-spacing: 0.03em; }

.timeline__role { font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2; color: var(--ink); }
.timeline__org { color: var(--accent); font-size: 0.98rem; margin: 0.35rem 0 1rem; font-weight: 500; }
.timeline__org span { color: var(--ink-muted); font-weight: 400; }
.timeline__desc { color: var(--ink-soft); max-width: 62ch; }

.timeline__points { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; max-width: 64ch; }
.timeline__points li { position: relative; padding-left: 1.3rem; color: var(--ink-soft); }
.timeline__points li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px;
  background: var(--accent-soft); border-radius: 50%;
}

/* ============================================================
   Card grids (expertise + beyond)
   ============================================================ */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--three { grid-template-columns: repeat(3, 1fr); }
.grid--two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); padding: clamp(1.5rem, 2.5vw, 2.1rem);
  border-radius: 6px; box-shadow: 0 18px 40px -34px rgba(60,45,25,0.5);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(60,45,25,0.55); border-color: var(--accent-soft); }
.card__title {
  font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin-bottom: 1.25rem;
  padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); color: var(--ink);
}
.tag-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.tag-list li { color: var(--ink-soft); font-size: 0.98rem; position: relative; padding-left: 1.15rem; }
.tag-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 5px; height: 5px; background: var(--accent-soft); border-radius: 50%; }

.lang-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.lang-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px dotted var(--line); padding-bottom: 0.55rem; }
.lang-list li:last-child { border-bottom: 0; }
.lang-list__name { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); font-size: 0.98rem; }
.lang-list em { color: var(--ink-muted); font-style: normal; font-size: 0.82rem; letter-spacing: 0.03em; white-space: nowrap; }

/* Flags (flag-icons) */
.fi { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.06); vertical-align: -0.05em; }
.badge-flag { border-radius: 2px; }
.timeline__place { display: inline-flex; align-items: center; gap: 0.45rem; }
.tag-list--flags li { padding-left: 0; display: flex; align-items: center; gap: 0.7rem; }
.tag-list--flags li::before { display: none; }
.contact__loc { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Quick facts strip */
.facts {
  margin-top: 2.5rem; color: var(--ink-muted); font-size: 0.9rem; letter-spacing: 0.04em;
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center;
}
.facts__dot { color: var(--accent-soft); }

/* ============================================================
   Contact
   ============================================================ */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.6rem; }
.field label { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 0.8rem 0.85rem; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.field textarea { resize: vertical; }

.form-status { margin-top: 1rem; font-size: 0.9rem; min-height: 1.2em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: #9c3b3b; }

.contact__list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.contact__list li { display: flex; flex-direction: column; gap: 0.25rem; }
.contact__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.contact__list a { border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); width: fit-content; color: var(--ink); }
.contact__list a:hover { border-bottom-color: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer__name { font-family: var(--serif); letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.1rem; color: var(--ink); }
.site-footer__note { font-size: 0.82rem; color: var(--ink-muted); letter-spacing: 0.03em; }

/* ============================================================
   Motion — hero entrance + reveal on scroll
   ============================================================ */
.js .hero [data-anim] {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  will-change: opacity, transform;
}
.hero.is-ready [data-anim] { opacity: 1; transform: none; }
.hero.is-ready [data-anim]:nth-child(1) { transition-delay: 0.04s; }
.hero.is-ready [data-anim]:nth-child(2) { transition-delay: 0.09s; }
.hero.is-ready [data-anim]:nth-child(3) { transition-delay: 0.14s; }
.hero.is-ready [data-anim]:nth-child(4) { transition-delay: 0.19s; }
.hero.is-ready [data-anim]:nth-child(5) { transition-delay: 0.24s; }
.hero.is-ready [data-anim]:nth-child(6) { transition-delay: 0.29s; }
/* clear will-change once settled to free the compositor */
.hero.is-ready [data-anim] { will-change: auto; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Staggered cascade for grouped children */
.grid .card:nth-child(2) { transition-delay: 0.08s; }
.grid .card:nth-child(3) { transition-delay: 0.16s; }
.timeline__item:nth-child(2) { transition-delay: 0.05s; }
.timeline__item:nth-child(3) { transition-delay: 0.10s; }
.timeline__item:nth-child(4) { transition-delay: 0.15s; }

/* Section-title underline draws in on reveal */
.section__title::after {
  content: ""; display: block; width: 0; height: 2px; margin-top: 0.7rem;
  background: var(--accent); transition: width 0.7s var(--ease) 0.12s;
}
.section__title.is-visible::after { width: 56px; }

/* ============================================================
   Scroll progress bar
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 300;
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

/* ============================================================
   Stats band
   ============================================================ */
.stats-band { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--line-soft); background: var(--paper); }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2rem); text-align: center; }
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat__num { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--accent); }
.stat__label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

/* ============================================================
   FAQ accordion (smooth grid-rows expand)
   ============================================================ */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { margin: 0; }
.faq__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem;
  background: none; border: 0; cursor: pointer; text-align: left; padding: 1.4rem 0;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink);
  transition: color 0.25s var(--ease);
}
.faq__trigger:hover { color: var(--accent); }
.faq__icon { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--accent); transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.faq__icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq__icon::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq__trigger[aria-expanded="true"] .faq__icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq__panel.is-open { grid-template-rows: 1fr; }
.faq__panel-inner { overflow: hidden; }
.faq__panel-inner p { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 72ch; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__content { order: 2; }
  .hero__portrait { order: 1; justify-self: start; }
  .hero__portrait img { width: min(230px, 55vw); }
}

@media (max-width: 820px) {
  .grid--three, .grid--two { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 1fr; gap: 0.75rem; }
  .timeline__meta { flex-direction: row; gap: 0.9rem; align-items: baseline; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 330px);
    background: var(--paper); border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2.25rem;
    padding: 6rem 2rem 2rem; transform: translateX(100%); transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.08);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__links { flex-direction: column; gap: 1.4rem; }
  .nav__links a { font-size: 0.95rem; }
  body.nav-open { overflow: hidden; }
}
