/* =====================================================================
   Cheminement — Hélène Moschke
   Hand-authored stylesheet. No framework.
   Tokens (primitive → semantic → component) · reset · type · layout ·
   components · motion · responsive.
   ===================================================================== */

/* ---------- @font-face (self-hosted, latin) ---------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/sourceserif-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/sourceserif-italic-latin.woff2") format("woff2");
  font-weight: 200 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-italic-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens: primitives ---------- */
:root {
  /* grey-blue scale */
  --c-ink:    #1E2730;  /* cool near-black blue-grey — text on light */
  --c-deep:   #28323E;  /* deep slate — hero "earth" + Contact (the depths) */
  --c-slate:  #46566A;  /* mid slate — secondary / hover / accent text */
  --c-paper:  #ECEFF2;  /* cool off-white, faint blue-grey */
  --c-paper-2:#DDE3EA;  /* tinted mid block — alternating section ground */
  --c-mist:   #C2CCD6;  /* soft secondary surface / muted text on dark */
  --c-steel:  #5E7689;  /* steel accent — hairlines, underlines, focus (decorative only) */
  --c-steel-lt:#9DB0C0; /* lighter steel — AA text/hairline on the deep ground */
  /* dedicated small-caps label colours, one per ground (both clear WCAG AA) */
  --c-label-dark: #C2CCD6;  /* labels on the deep slate — 7.98:1 on #28323E */
  --c-label-light: #46566A; /* labels on light grounds — 6.5:1 on #ECEFF2 */
  --c-whisper:    rgba(30, 39, 48, 0.12);     /* hairline on light */
  --c-whisper-lt: rgba(236, 239, 242, 0.16);  /* hairline on deep */
  --c-error:    #A23C44;
  --c-error-lt: #E2A6AD;

  /* aliases — old names re-mapped to the grey-blue palette */
  --c-aubergine: var(--c-deep);
  --c-plum:      var(--c-slate);
  --c-mauve:     var(--c-mist);
  --c-gilt:      var(--c-steel);
  --c-gilt-lt:   var(--c-steel-lt);

  /* fonts — sober transitional serif (headings) + warm humanist sans (body/UI) */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:  "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  /* fluid type scale — capped maxima so nothing is gigantic on large screens */
  --t--1:  clamp(0.74rem, 0.71rem + 0.12vw, 0.82rem);
  --t-0:   clamp(1rem, 0.97rem + 0.18vw, 1.085rem);
  --t-1:   clamp(1.14rem, 1.07rem + 0.3vw, 1.32rem);
  --t-2:   clamp(1.38rem, 1.24rem + 0.62vw, 1.8rem);
  --t-3:   clamp(1.85rem, 1.5rem + 1.4vw, 2.6rem);
  --t-hero: clamp(2.15rem, 1.65rem + 2.1vw, 3.25rem);

  --measure: 66ch;
  --lh-read: 1.6;

  /* spacing */
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2.5rem;
  --space-xl:  clamp(3rem, 2rem + 4vw, 5rem);
  --section-y: clamp(3.5rem, 2.7rem + 3.4vw, 5.75rem);

  --shell:  72rem;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);

  /* motion */
  --ease-soft: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-rise:  0.9s;
  --dur-reveal: 0.85s;
  --dur-root: 1.7s;

  /* semantic */
  --bg: var(--c-paper);
  --fg: var(--c-ink);
  --rule: var(--c-whisper);

  /* mark colours (used by inline SVG logo) */
  --mark-bg: var(--c-aubergine);
  --mark-fg: var(--c-paper);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--t-0);
  line-height: var(--lh-read);
  font-optical-sizing: auto;
  letter-spacing: 0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, .credo, blockquote { text-wrap: balance; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--c-gilt);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- Tactile grain (a whisper — sensed, never seen) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* ---------- Utilities ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.visually-hidden, .skip-link:not(:focus):not(:active) {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  background: var(--c-aubergine);
  color: var(--c-paper);
  padding: 0.6rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--t--1);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--t--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-label-light);
}
.eyebrow--head {
  position: relative;
  padding-bottom: 0.9rem;
}
.eyebrow--head::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 2.2rem; height: 1px;
  background: var(--c-gilt);
}
.eyebrow--light { color: var(--c-label-dark); }

/* =====================================================================
   Header / Nav
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 1.05rem;
  background: transparent;
  transition: background 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}
.site-header[data-scrolled] {
  background: color-mix(in srgb, var(--c-paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  backdrop-filter: saturate(1.1) blur(8px);
  box-shadow: 0 1px 0 var(--c-whisper);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand__mark { display: inline-flex; }
.brand__mark svg { width: 27px; height: auto; }
.brand__lockup { display: grid; gap: 0.08rem; }
.brand__word {
  font-family: var(--font-serif);
  font-weight: 440;
  font-size: 1.16rem;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--c-ink);
}
.brand__role {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--c-plum);
}

.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  gap: clamp(1rem, 0.4rem + 1.6vw, 2.2rem);
  list-style: none;
  padding: 0;
}
.nav__list a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--c-ink);
  position: relative;
  padding-block: 0.2rem;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -1px;
  height: 1px;
  background: var(--c-gilt);
  transition: right 0.4s var(--ease-out);
}
.nav__list a:hover::after,
.nav__list a:focus-visible::after { right: 0; }
.nav__list a[aria-current="true"] { color: var(--c-plum); }
.nav__list a[aria-current="true"]::after { right: 0; background: var(--c-plum); }

.nav__toggle { display: none; }

/* =====================================================================
   Path rail (desktop secondary nav + cheminement cue)
   ===================================================================== */
.path {
  display: none;          /* shown only on wide viewports (see media query) */
  position: fixed;
  left: clamp(1rem, 1.6vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
}
.path[hidden] { display: none; }
.path__list { list-style: none; padding: 0; display: grid; gap: 1.4rem; }
.path__list li { position: relative; }
.path__list::before {
  content: "";
  position: absolute;
  left: 3px; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--c-whisper);
}
.path a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  position: relative;
}
.path__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid var(--c-plum);
  background: var(--c-paper);
  position: relative; z-index: 1;
  transition: background 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
}
.path__name {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-plum);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
}
.path a:hover .path__name,
.path a:focus-visible .path__name { opacity: 1; transform: none; }
.path a[aria-current="true"] .path__dot {
  background: var(--c-aubergine);
  border-color: var(--c-aubergine);
  transform: scale(1.25);
}
/* adapt over the dark contact section */
.path[data-dark] .path__list::before { background: var(--c-whisper-lt); }
.path[data-dark] .path__dot { border-color: var(--c-mauve); background: var(--c-aubergine); }
.path[data-dark] .path__name { color: var(--c-mauve); }
.path[data-dark] a[aria-current="true"] .path__dot {
  background: var(--c-paper);
  border-color: var(--c-paper);
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.25rem) var(--section-y); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  align-items: center;
}
.hero__text { max-width: 36rem; }
.hero .eyebrow { margin-bottom: 1.4rem; }

.hero__headline {
  font-family: var(--font-serif);
  font-weight: 450;
  font-size: var(--t-hero);
  line-height: 1.12;
  letter-spacing: -0.004em;
  color: var(--c-ink);
  margin-bottom: clamp(1.6rem, 1rem + 1.6vw, 2.4rem);
  text-wrap: balance;
}
.hero__headline .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__headline .line__in { display: block; }

.hero__lede {
  max-width: 34rem;
  display: grid;
  gap: 0.9rem;
  color: color-mix(in srgb, var(--c-ink) 86%, var(--c-paper));
  font-size: var(--t-1);
  line-height: 1.6;
}

/* Hero CTAs */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.1rem;
  margin-top: clamp(1.8rem, 1.1rem + 2vw, 2.6rem);
}
.action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.4s var(--ease-soft), color 0.4s var(--ease-soft),
              border-color 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
}
.action--primary {
  background: var(--c-deep);
  color: var(--c-paper);
  border-color: var(--c-deep);
}
.action--primary:hover,
.action--primary:focus-visible { background: var(--c-slate); border-color: var(--c-slate); }
.action--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: color-mix(in srgb, var(--c-slate) 45%, transparent);
}
.action--ghost:hover,
.action--ghost:focus-visible { border-color: var(--c-deep); background: color-mix(in srgb, var(--c-slate) 8%, transparent); }
.action__arrow {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.4s var(--ease-out);
}
.action--ghost:hover .action__arrow,
.action--ghost:focus-visible .action__arrow { transform: rotate(-45deg) translate(2px, -2px); }

.hero__figure { justify-self: center; width: 100%; }

/* Signature — layered: dark "earth" + canopy (aubergine, on paper) + roots (paper, on earth) */
.signature {
  position: relative;
  width: min(100%, 27rem);
  margin-inline: auto;
  aspect-ratio: 1121 / 1387;
  isolation: isolate;
  --horizon: 35.26%;     /* where trunk meets roots = ground line */
}
.signature__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* the underground — same aubergine as the Contact section (the depths/unconscious) */
.signature__earth {
  position: absolute;
  top: var(--horizon);
  left: -1.5rem;          /* edge falls in the column gutter, not mid-content */
  right: -50vw;           /* bleeds off the right viewport edge — anchored, never a floating box */
  bottom: -2%;            /* crisp edge, snug to the roots — no gradient dissolve */
  background: var(--c-aubergine);
  z-index: 0;
}
.signature__canopy { z-index: 1; }
.signature__roots  { z-index: 2; }
/* veil retracts to reveal the underground; only active with JS */
.signature__veil {
  position: absolute;
  top: var(--horizon);
  left: -1.5rem; right: -50vw; bottom: -2%;
  background: var(--bg);
  transform-origin: bottom center;
  transform: scaleY(0);   /* default (no-JS): roots visible */
  z-index: 3;
  pointer-events: none;
}
.js [data-signature] .signature__veil { transform: scaleY(1); will-change: transform; }  /* armed: roots hidden */
.js [data-signature].is-revealed .signature__veil {
  transform: scaleY(0);
  transition: transform var(--dur-root) var(--ease-soft);
}
/* single-column: the earth becomes a full-width ground band */
@media (max-width: 59.99rem) {
  .signature { width: min(100%, 24rem); }
  .signature__earth,
  .signature__veil { left: -50vw; right: -50vw; }
}

/* =====================================================================
   Reading sections
   ===================================================================== */
.section { padding-block: var(--section-y); }
/* tinted mid ground — section rhythm/contrast */
.section--tint { background: var(--c-paper-2); }
.section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}
.section__aside { }

.prose { max-width: none; }
.prose > * { max-width: var(--measure); }
.prose p { margin-bottom: 1.4rem; }
.prose > p:last-child { margin-bottom: 0; }

/* FAQ — questions as gently emphasised H3, answers in body, all in the DOM */
.faq__item {
  max-width: var(--measure);
  padding-block: clamp(1.3rem, 1rem + 1.1vw, 1.85rem);
  border-top: 1px solid var(--c-whisper);
}
.faq__item:first-child { border-top: none; padding-top: 0; }
.faq__q {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--t-1);
  line-height: 1.32;
  letter-spacing: 0;
  color: var(--c-slate);
  margin-bottom: 0.55rem;
}
.faq__a { margin: 0; }

/* Credo — a centred, full-measure literary pause that breaks the reading column */
.credo {
  max-width: 44rem;
  margin-inline: auto;
  margin-block: clamp(3rem, 2rem + 3vw, 5rem);
  text-align: center;
  text-wrap: balance;
}
.credo::before {
  content: "";
  display: block;
  width: 2.25rem; height: 1px;
  background: var(--c-gilt);
  margin: 0 auto clamp(1.4rem, 1rem + 1vw, 2rem);
}
.credo p {
  font-family: var(--font-serif);
  font-size: var(--t-2);
  line-height: 1.34;
  font-weight: 430;
  letter-spacing: 0;
  color: var(--c-ink);
  margin: 0;
}
.credo p + p { margin-top: 0.4rem; }
.credo--ask p { color: var(--c-slate); }   /* sober, not italic */
.prose__lead {
  font-family: var(--font-serif);
  font-size: var(--t-2);
  line-height: 1.34;
  font-weight: 480;
  letter-spacing: 0;
  color: var(--c-ink);
  margin-bottom: 2rem;
}
.prose__accent {
  padding-left: clamp(1rem, 0.5rem + 1.4vw, 1.6rem);
  border-left: 2px solid var(--c-steel);
}

/* Callout — one focal statement per section, set in a tinted card */
.callout {
  max-width: var(--measure);
  margin-block: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem);
  padding: clamp(1.15rem, 0.9rem + 1vw, 1.7rem) clamp(1.3rem, 1rem + 1.4vw, 2rem);
  background: var(--c-paper-2);
  border-left: 2px solid var(--c-steel);
  border-radius: 3px;
}
.callout p {
  margin: 0;
  font-size: var(--t-1);
  line-height: 1.5;
  font-weight: 440;
  color: var(--c-ink);
}
.callout--quote p {
  font-family: var(--font-serif);
  font-weight: 460;
  color: var(--c-slate);
}
/* on the tinted section, callouts use the lighter ground for contrast */
.section--tint .callout { background: var(--c-paper); }
.prose__pull {
  font-size: var(--t-1);
  font-style: italic;
  line-height: 1.45;
  color: var(--c-plum);
  margin-block: 2.2rem;
}

.link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--c-gilt), var(--c-gilt));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 1px;
  transition: background-size 0.55s var(--ease-out), color 0.45s var(--ease-soft);
  padding-bottom: 0.02em;
}
.link:hover, .link:focus-visible {
  color: var(--c-aubergine);
  background-size: 100% 1.5px;
}

/* Scroll cue */
.cue {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(2rem, 1rem + 2vw, 3rem);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-aubergine);
}
.cue__label {
  position: relative;
  padding-bottom: 0.3rem;
}
.cue__label::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--c-gilt);
  transition: right 0.5s var(--ease-out);
}
.cue:hover .cue__label::after,
.cue:focus-visible .cue__label::after { right: 0; }
.cue__arrow {
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--c-gilt);
  border-bottom: 1.5px solid var(--c-gilt);
  transform: rotate(45deg);
  transition: transform 0.5s var(--ease-out);
  flex: none;
}
.cue:hover .cue__arrow,
.cue:focus-visible .cue__arrow { transform: rotate(45deg) translate(2px, 2px); }

/* =====================================================================
   Contact (dark — the depth)
   ===================================================================== */
.contact {
  background: var(--c-aubergine);
  color: var(--c-paper);
  --rule: var(--c-whisper-lt);
  position: relative;
}
/* threshold: the path continues, descending from the seam into the depths */
.contact::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 1px;
  height: clamp(3rem, 6vw, 5.5rem);
  background: linear-gradient(var(--c-gilt), transparent);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
/* her presence: portrait + name */
.contact__person {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.6rem);
  margin-top: 1.7rem;
}
.contact__photo {
  width: clamp(104px, 13vw, 140px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--c-whisper-lt);
  flex: none;
}
.contact__name {
  font-family: var(--font-serif);
  font-size: var(--t-1);
  font-weight: 500;
  color: var(--c-paper);
  line-height: 1.25;
}
.contact__name span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-mist);
}
/* contact details — surfaced (key information) */
.contact__channels {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-whisper-lt);
}
.channel {
  display: grid;
  gap: 0.3rem;
  text-decoration: none;
  width: fit-content;
  padding-block: 0.2rem;
}
.channel__tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-label-dark);
}
.channel__val {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.04rem + 0.55vw, 1.5rem);
  font-weight: 500;
  color: var(--c-paper);
  position: relative;
  width: fit-content;
}
.channel__val::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: var(--c-gilt);
  transition: right 0.4s var(--ease-out);
}
.channel:hover .channel__val::after,
.channel:focus-visible .channel__val::after { right: 0; }

/* Form */
.contact__form-wrap { max-width: 34rem; width: 100%; }
.form-note {
  font-size: var(--t-0);
  color: var(--c-mauve);
  margin-bottom: 2rem;
  line-height: 1.5;
}
.form-note span { font-style: italic; color: color-mix(in srgb, var(--c-paper) 80%, var(--c-aubergine)); }

.form { display: grid; gap: 1.6rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-label-dark);
}
.field__opt { text-transform: none; letter-spacing: 0.02em; opacity: 0.85; }
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(236, 239, 242, 0.52);  /* clearly legible affordance on the slate ground (≈4.2:1) */
  color: var(--c-paper);
  padding: 0.6rem 0.15rem;
  font-family: var(--font-serif);
  font-size: var(--t-0);
  border-radius: 0;
  transition: border-color 0.35s var(--ease-soft);
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:hover,
.field textarea:hover { border-bottom-color: rgba(236, 239, 242, 0.7); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--c-paper);
  border-bottom-width: 2px;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--c-steel-lt);   /* visible keyboard focus on dark (≈5.8:1) */
  outline-offset: 3px;
}
/* lift the focus ring contrast on the deep grounds (steel is < 3:1 there) */
.contact :focus-visible,
.site-footer :focus-visible { outline-color: var(--c-steel-lt); }
.field--invalid input,
.field--invalid textarea { border-bottom-color: var(--c-error-lt); }
.field__error {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--c-error-lt);
}

.btn {
  justify-self: start;
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-paper);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--c-gilt) 64%, transparent);
  border-radius: 999px;
  transition: background 0.5s var(--ease-soft), color 0.5s var(--ease-soft),
              border-color 0.5s var(--ease-soft), letter-spacing 0.5s var(--ease-soft);
}
.btn:hover, .btn:focus-visible {
  background: var(--c-paper);
  color: var(--c-aubergine);
  border-color: var(--c-paper);
  letter-spacing: 0.2em;
}
.btn[disabled] { opacity: 0.55; cursor: progress; letter-spacing: 0.16em; background: transparent; color: var(--c-mauve); }

.form-status {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  min-height: 1.2em;
}
.form-status[data-state="success"] { color: var(--c-gilt-lt); }
.form-status[data-state="error"] { color: var(--c-error-lt); }

.closing {
  position: relative;
  isolation: isolate;     /* keep the echo (z-index:-1) above the section bg once opacity settles to 1 */
  margin-top: var(--section-y);
  margin-inline: auto;
  max-width: 40rem;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 460;
  font-size: var(--t-2);
  line-height: 1.4;
  color: var(--c-paper);
  text-wrap: balance;
}
/* faint canopy echo behind the closing line — the single quiet reappearance of the motif */
.closing::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%; top: 50%;
  width: min(38rem, 92vw);
  aspect-ratio: 1106 / 487;
  transform: translate(-50%, -62%);
  background: url("../assets/echo-canopy.webp") center / contain no-repeat;
  opacity: 0.13;
  pointer-events: none;
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  background: var(--c-aubergine);
  color: var(--c-mauve);
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-top: 1px solid var(--c-whisper-lt);
}
.site-footer__inner { display: grid; gap: 0.45rem; }
/* full brand lockup: reversed mark + name + disciplines tagline */
.site-footer__lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.7rem;
}
.brand__mark--reverse { --mark-bg: var(--c-paper); --mark-fg: var(--c-aubergine); }
.brand__mark--reverse svg { width: 34px; height: auto; }
.site-footer__id { display: grid; gap: 0.12rem; }
.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 420;
  line-height: 1;
  color: var(--c-paper);
}
.site-footer__tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mauve);
}
.site-footer__meta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.site-footer__small { opacity: 0.72; }
.site-footer__legal { margin-top: 1.5rem; }
.link--quiet {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--c-mauve);
}

/* =====================================================================
   Motion (progressive: states below apply only when html.js present)
   ===================================================================== */
.js [data-rise] .line__in { transform: translateY(110%); will-change: transform; }
.js [data-rise].is-risen .line__in {
  transform: translateY(0);
  transition: transform var(--dur-rise) var(--ease-out);
}
.js [data-rise].is-risen .line:nth-child(1) .line__in { transition-delay: 0.05s; }
.js [data-rise].is-risen .line:nth-child(2) .line__in { transition-delay: 0.18s; }
.js [data-rise].is-risen .line:nth-child(3) .line__in { transition-delay: 0.31s; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-reveal) var(--ease-soft),
              transform var(--dur-reveal) var(--ease-soft);
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (min-width: 48rem) {
  .nav__list { display: flex; }
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
  }
  .hero__text { max-width: none; }
  /* reading sections: a centred, inhabited block — narrow travelling label + comfortable measure */
  .section__grid {
    max-width: 51rem;
    margin-inline: auto;
    grid-template-columns: 8.5rem 1fr;
    column-gap: 2.5rem;
  }
  .section__aside {
    position: sticky;
    top: 6.5rem;
    align-self: start;
    contain: layout;
  }
  /* the credo pause breaks out across the full reading grid */
  .credo {
    max-width: none;
    width: calc(100% + 11rem);
    margin-inline-start: -11rem;
  }
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(2.5rem, 1rem + 4vw, 5rem);
    align-items: start;
  }
}

@media (min-width: 78rem) {
  .path[data-active] { display: block; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 47.99rem) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-ink);
    padding: 0.3rem 0;
  }
  .nav__toggle-rule {
    width: 22px; height: 9px;
    position: relative;
  }
  .nav__toggle-rule::before,
  .nav__toggle-rule::after {
    content: "";
    position: absolute; left: 0; right: 0;
    height: 1px; background: var(--c-ink);
    transition: transform 0.4s var(--ease-soft);
  }
  .nav__toggle-rule::before { top: 1px; }
  .nav__toggle-rule::after { bottom: 1px; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-rule::before { transform: translateY(3px) rotate(13deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-rule::after { transform: translateY(-3px) rotate(-13deg); }

  .nav__list {
    position: absolute;
    top: 100%; right: var(--gutter);
    margin-top: 0.6rem;
    flex-direction: column;
    gap: 0;
    background: var(--c-paper);
    border: 1px solid var(--c-whisper);
    box-shadow: 0 18px 40px -24px rgba(33,16,25,0.4);
    padding: 0.4rem 0;
    min-width: 12rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
  }
  .nav[data-open] .nav__list {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__list li { width: 100%; }
  .nav__list a {
    display: block;
    padding: 0.7rem 1.2rem;
    font-size: 0.84rem;
  }
  .nav__list a::after { display: none; }
}

/* =====================================================================
   Reduced motion — show final states, no entrances/reveals/draw
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] .line__in { transform: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js [data-signature] .signature__veil,
  .js [data-signature].is-revealed .signature__veil { transform: scaleY(0) !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* =====================================================================
   Mentions légales (dedicated page)
   ===================================================================== */
.legal { padding-block: clamp(2.75rem, 2rem + 3vw, 5rem); }
.legal .eyebrow { color: var(--c-slate); }
.legal__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--t-3);
  line-height: 1.12;
  color: var(--c-ink);
  margin: 0.7rem 0 clamp(2rem, 1.5rem + 2vw, 3rem);
}
.legal__block {
  max-width: var(--measure);
  margin-bottom: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem);
}
.legal__block h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-slate);
  margin-bottom: 0.7rem;
}
.legal__block p { color: var(--c-ink); line-height: 1.7; }
.legal__pending { font-style: italic; color: var(--c-slate); }  /* AA on light (6.5:1); marks a field to complete */
.legal .cue { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.cue__arrow--back { transform: rotate(135deg); }
.cue:hover .cue__arrow--back,
.cue:focus-visible .cue__arrow--back { transform: rotate(135deg) translate(2px, 2px); }
