/* =========================================================
   DANIELA LLORENTE — NUTRICIONISTA
   Editorial / quiet luxury. Paper, graphite, a touch of saffron.
   ========================================================= */

:root {
  --paper: #ededeb;
  --paper-2: #f5f4f1;
  --paper-3: #e3e2de;
  --ink: #1d2022;
  --graphite: #464c50;
  --muted: #63686b;
  --saffron: #f0b91f;
  --line: rgba(29, 32, 34, 0.14);
  --line-light: rgba(237, 237, 235, 0.16);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, sans-serif;

  --pad: clamp(20px, 3.4vw, 60px);
  --gap: clamp(16px, 2vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* type scale — one step per role */
  --fs-display: clamp(2.9rem, 7vw, 8.4rem);   /* h2 section titles */
  --fs-h3: clamp(2rem, 3.8vw, 4.4rem);         /* list / card titles */
  --fs-h4: clamp(1.4rem, 2.1vw, 2.3rem);       /* questions, quotes */
  --fs-lead: clamp(1.15rem, 1.45vw, 1.5rem);   /* lead paragraphs */
  --fs-body: clamp(1rem, 1.05vw, 1.125rem);
  --fs-body-sm: 0.95rem;
  --fs-small: 0.8rem;                          /* eyebrows, labels */

  /* vertical rhythm */
  --space-section: clamp(104px, 12vw, 220px);
  --space-head: clamp(56px, 7vw, 120px);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }
img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: var(--saffron); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.hero :focus-visible, .method :focus-visible, .footer :focus-visible,
.menu :focus-visible, .plan--feature :focus-visible, .book-pill:focus-visible { outline-color: var(--saffron); }

.sr-only {
  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 {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 18px; border-radius: 100px;
  background: var(--ink); color: var(--paper); font-size: var(--fs-body-sm);
  transform: translateY(-160%); transition: transform 0.4s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Shared type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.display em, .hero__title em, .cta__title em { font-style: italic; letter-spacing: -0.035em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--graphite);
}
.eyebrow i { font-style: normal; color: var(--muted); }
.eyebrow--light { color: rgba(237, 237, 235, 0.7); }
.eyebrow--light i { color: rgba(237, 237, 235, 0.4); }

.section-head { padding: 0 var(--pad); margin-bottom: var(--space-head); }
.section-head--split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
}
.section-head--split .eyebrow { grid-column: 1 / 4; align-self: start; padding-top: 0.8em; }
.section-head--split .display { grid-column: 4 / -1; }


/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* static on purpose: an animated full-screen layer above everything costs every scroll frame */
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  display: grid;
  place-items: center;
  padding: var(--pad);
}
.no-js .loader, .loader.is-done { display: none; }
.loader__name {
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 10.5vw, 12rem);
  white-space: nowrap;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.loader__word { display: inline-block; }
.loader__word .char { display: inline-block; will-change: transform; }
.loader__meta {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--graphite);
}
.loader__count {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 0.8;
  text-transform: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid;
    place-items: center;
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 99;
    transition: width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease), background-color 0.3s;
  }
  .cursor__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    color: var(--ink);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s, transform 0.5s var(--ease);
    white-space: nowrap;
  }
  .cursor.is-label {
    width: 92px; height: 92px; margin: -46px 0 0 -46px;
    background: var(--saffron);
    mix-blend-mode: normal;
  }
  .cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
  .cursor.is-hidden { width: 0; height: 0; margin: 0; }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: clamp(18px, 2vw, 30px) var(--pad);
  color: var(--ink);
  /* no mix-blend-mode: blending a fixed bar re-composites the page on every scroll frame */
  transition: transform 0.8s var(--ease), color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.5s var(--ease);
}
.header.is-hidden { transform: translateY(-110%); }
/* once the page moves, the bar gets its own ground so it never sits loose over content */
.header.is-scrolled { background: rgba(237, 237, 235, 0.95); box-shadow: 0 1px 0 var(--line); padding-block: clamp(12px, 1.2vw, 18px); }
.header.is-scrolled.is-on-dark { background: rgba(29, 32, 34, 0.95); box-shadow: 0 1px 0 var(--line-light); }
.menu-open .header { background: transparent; box-shadow: none; }
.brand { display: inline-flex; align-items: baseline; gap: 0; justify-self: start; }
.brand__name { font-family: var(--serif); font-size: 1.65rem; letter-spacing: -0.02em; line-height: 1; }
.brand__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin: 0 0 0 0.2em; transform: translateY(-1px); }

.nav { display: flex; gap: clamp(18px, 2.2vw, 36px); font-size: 0.86rem; letter-spacing: 0.01em; }
.nav a { opacity: 0.66; transition: opacity 0.4s; }
.header.is-on-dark .nav a { opacity: 0.86; }
.nav a:hover, .nav a.is-active { opacity: 1; }
.menu-btn {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.16em;
  min-height: 44px;
}
.menu-btn__lines { position: relative; width: 26px; height: 8px; }
.menu-btn__lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.6s var(--ease), top 0.6s var(--ease); }
.menu-btn__lines i:first-child { top: 0; }
.menu-btn__lines i:last-child { top: 6.5px; }
.menu-open .menu-btn__lines i:first-child { top: 3.25px; transform: rotate(45deg); }
.menu-open .menu-btn__lines i:last-child { top: 3.25px; transform: rotate(-45deg); }

/* rolling hover text */
[data-hover-text] { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
[data-hover-text] .roll { display: block; transition: transform 0.6s var(--ease); }
[data-hover-text] .roll + .roll { position: absolute; left: 0; top: 100%; }
[data-hover-text]:hover .roll { transform: translateY(-100%); }

/* ---------- Floating book pill ---------- */
.book-pill {
  position: fixed;
  right: var(--pad);
  bottom: clamp(18px, 2.4vw, 34px);
  z-index: 55;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px 15px 18px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 40px -12px rgba(29, 32, 34, 0.45);
  transition: opacity 0.5s, transform 0.8s var(--ease), background-color 0.4s;
}
.book-pill:hover { background: var(--graphite); }
.book-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); position: relative; }
.book-pill__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--saffron); animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.book-pill.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* ---------- Menu overlay ---------- */
.menu { position: fixed; inset: 0; z-index: 58; pointer-events: none; visibility: hidden; }
/* brief cover for in-page jumps (above the page, below header and menu) */
.jump-veil { position: fixed; inset: 0; z-index: 57; background: var(--paper); opacity: 0; pointer-events: none; }
.menu.is-open { pointer-events: auto; visibility: visible; }
.menu__bg { position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: top; }
.menu__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(110px, 14vh, 160px) var(--pad) var(--pad);
  color: var(--paper);
}
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
.menu__list a { display: flex; align-items: baseline; gap: 2vw; padding: 0.6vh 0; }
.menu__n { font-size: var(--fs-small); letter-spacing: 0.16em; color: var(--saffron); width: 3em; }
.menu__t {
  font-family: var(--serif); font-size: clamp(2.6rem, 9vh, 7rem); line-height: 1.05; letter-spacing: -0.02em;
  display: inline-block; transition: transform 0.7s var(--ease), font-style 0s;
}
.menu__list a:hover .menu__t { transform: translateX(1.2vw); font-style: italic; }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; color: rgba(237,237,235,0.65); }
.menu__foot a:hover { color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 28px;
  border-radius: 100px;
  border: 1px solid var(--ink);
  font-size: 0.95rem; letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.6s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.7s var(--ease);
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn__icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  transition: background-color 0.5s, color 0.5s, transform 0.7s var(--ease);
}
.btn__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn:hover .btn__icon { background: var(--saffron); color: var(--ink); transform: rotate(45deg); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark::before { background: var(--graphite); }
.btn--dark .btn__icon { background: var(--paper); color: var(--ink); }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link i { font-style: normal; transition: transform 0.6s var(--ease); }
.link:hover i { transform: translate(3px, -3px); }

/* ---------- Hero (full-bleed photograph) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(120px, 16vh, 180px) var(--pad) clamp(48px, 9vh, 104px);
  color: var(--paper);
  background: #cfd2cf;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* Portrait photo in a landscape frame: the img box is 1.18x the hero, nudged right so Daniela
   sits to the right of the headline. Sized, not scaled: GSAP owns transform. */
.hero__media img {
  position: absolute; left: -4%; top: -9%; width: 118%; height: 118%; max-width: none;
  object-position: 50% 54%; transform-origin: 50% 50%;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(100% 85% at 0% 100%, rgba(17, 19, 21, 0.78) 0%, rgba(17, 19, 21, 0.58) 30%, rgba(17, 19, 21, 0.22) 55%, rgba(17, 19, 21, 0) 78%),
    linear-gradient(to top, rgba(17, 19, 21, 0.6) 0%, rgba(17, 19, 21, 0.28) 32%, rgba(17, 19, 21, 0) 58%),
    linear-gradient(to bottom, rgba(17, 19, 21, 0.55) 0%, rgba(17, 19, 21, 0.22) 12%, rgba(17, 19, 21, 0) 26%); /* scrim under the header */
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 5.6vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 30px rgba(17, 19, 21, 0.35);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line__in { display: inline-block; }
.hero__title em { padding-right: 0.04em; }


.btn--light { border-color: rgba(237, 237, 235, 0.7); color: var(--paper); }
.btn--light::before { background: var(--paper); }
.btn--light:hover { color: var(--ink); }
.btn--light .btn__icon { background: var(--paper); color: var(--ink); }

/* header turns light over dark sections (class toggled in main.js) */
.header.is-on-dark, .menu-open .header { color: var(--paper); }

/* ---------- About ---------- */
.parallax { position: absolute; inset: -12% 0; }

/* Static layout: no JS, reduced motion, or before the story is set up */
.about { padding: var(--space-section) var(--pad); }
.about__stage {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  align-items: start;
}
.about__eyebrow { grid-column: 1 / 4; grid-row: 1; padding-top: 0.8em; }
.about__title { grid-column: 4 / -1; grid-row: 1; margin-bottom: var(--space-head); }
.about__photo { grid-column: 1 / 6; grid-row: 2; aspect-ratio: 4 / 5.2; overflow: hidden; position: relative; margin: 0; }
.about__photo img { object-position: 50% 52%; } /* keep in sync with objY in main.js */
.about__cap, .about__count { display: none; }
.about__panel { grid-column: 7 / -1; grid-row: 2; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 80px); }
.about__slides { display: grid; gap: 1.1em; }
.about__slide {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.8rem);
  line-height: 1.08; letter-spacing: -0.018em;
  max-width: 21ch; color: var(--ink);
}
.about__slide--strong em, .about__slide--strong { font-style: italic; }
.about__slide--strong { padding-left: 0.6em; border-left: 2px solid var(--saffron); }
.about__creds { font-family: var(--sans); }
.about__creds li:first-child { border-top: 1px solid var(--line); }
.about__creds li {
  display: grid; grid-template-columns: 9.5em 1fr; gap: 1em;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: var(--fs-body-sm);
}
.about__creds span { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); padding-top: 0.2em; }

/* Story mode: one pinned stage — arched window opens, photo fills, then yields to the text */
.about.is-story { padding: 0; }
.about.is-story .about__stage {
  --t: 23%; --r: 40%; --b: 23%; --l: 40%; --rad: 10vw;
  position: relative; display: block;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.about.is-story .about__eyebrow { position: absolute; z-index: 3; top: clamp(96px, 13vh, 130px); left: var(--pad); padding: 0; }
.about.is-story .about__photo {
  position: absolute; inset: 0; aspect-ratio: auto; z-index: 1;
  clip-path: inset(var(--t) var(--r) var(--b) var(--l) round var(--rad) var(--rad) 0 0);
  background: #cfd2cf;
}
.about.is-story .about__photo img { position: absolute; inset: 0; will-change: transform; }
.about.is-story .about__cap {
  display: flex; justify-content: space-between; align-items: flex-end;
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18vh var(--pad) clamp(28px, 4vh, 48px);
  background: linear-gradient(to top, rgba(17, 19, 21, 0.5), rgba(17, 19, 21, 0));
  color: var(--paper);
  font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.16em;
}
.about.is-story .about__title {
  position: absolute; inset: 0; z-index: 2; margin: 0;
  display: flex; align-items: center; justify-content: center;
  column-gap: 23vw; /* arched window (20vw) + breathing room */
  font-size: clamp(3rem, 7vw, 9rem);
  pointer-events: none;
}
.about.is-story .about__w { display: block; flex: 1; white-space: nowrap; will-change: transform; }
.about.is-story .about__w--l { text-align: right; }
.about.is-story .about__w--r { text-align: left; }

.about.is-story .about__panel {
  position: absolute; z-index: 2;
  top: 0; bottom: 0; left: 55%; right: var(--pad);
  padding: clamp(110px, 16vh, 160px) 0 clamp(28px, 6vh, 64px);
  justify-content: space-between; gap: 32px;
}
.about.is-story .about__count {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--fs-small); letter-spacing: 0.16em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.about.is-story .about__count b { font-weight: 500; color: var(--ink); }
.about.is-story .about__count i { width: 48px; height: 1px; background: var(--line); }
.about.is-story .about__slides { display: grid; gap: 0; }
.about.is-story .about__slide { grid-area: 1 / 1; align-self: center; }
.about__slide .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.about__slide .w > span { display: inline-block; will-change: transform; }
.about__slide--strong .w { padding-right: 0.06em; margin-right: -0.06em; }

/* ---------- Horizontal gallery ---------- */
.hgallery { position: relative; height: 400vh; background: var(--paper-2); }
.hgallery__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hgallery__track {
  display: flex; align-items: center;
  gap: clamp(28px, 4vw, 80px);
  padding: 0 var(--pad);
  will-change: transform;
}
.hgallery__intro { flex: 0 0 min(78vw, 720px); display: flex; flex-direction: column; gap: 32px; }
.hgallery__quote {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.4vw, 7.4rem);
  line-height: 0.92; letter-spacing: -0.03em;
}
.hg { flex: 0 0 auto; overflow: hidden; position: relative; }
.hg img { transform: scale(1.15); }
.hg--a { width: clamp(240px, 26vw, 460px); aspect-ratio: 2 / 3; }
.hg--b { width: clamp(200px, 19vw, 340px); aspect-ratio: 3 / 4; align-self: flex-end; margin-bottom: 8vh; }
.hg--c { width: clamp(260px, 30vw, 520px); aspect-ratio: 4 / 5; align-self: flex-start; margin-top: 10vh; }
.hg--d { width: clamp(240px, 24vw, 420px); aspect-ratio: 2 / 3; }
.hg--e { width: clamp(280px, 34vw, 600px); aspect-ratio: 4 / 5; margin-right: 6vw; }
.hgallery__mid { flex: 0 0 min(80vw, 560px); display: flex; flex-direction: column; gap: 24px; }
.hgallery__mid p { font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 3.6rem); line-height: 1.04; letter-spacing: -0.02em; }
.hgallery__mid span { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.16em; color: var(--graphite); }
.hgallery__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(24px, 4vh, 44px); height: 1px; background: var(--line); }
.hgallery__progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Areas ---------- */
.areas { padding: var(--space-section) 0; }
.areas__list { border-top: 1px solid var(--line); }
.area {
  position: relative;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  align-items: center;
  padding: clamp(24px, 3vw, 44px) var(--pad);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: color 0.6s var(--ease);
}
.area::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.7s var(--ease);
}
.area__n { grid-column: 1 / 2; font-size: var(--fs-small); letter-spacing: 0.16em; color: var(--muted); transition: color 0.6s; }
.area__t {
  grid-column: 2 / 8;
  font-family: var(--serif); font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 0.98; letter-spacing: -0.025em;
  transition: transform 0.8s var(--ease);
}
.area__d { grid-column: 9 / 12; color: var(--graphite); font-size: var(--fs-body-sm); max-width: 34ch; transition: color 0.6s; }
.area__go {
  grid-column: 12 / -1; justify-self: end;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: transform 0.8s var(--ease), background-color 0.5s, border-color 0.5s, color 0.5s;
}
.area__go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (hover: hover) {
  .area:hover { color: var(--paper); }
  .area:hover::before { transform: scaleY(1); transform-origin: top; }
  .area:hover .area__n { color: var(--saffron); }
  .area:hover .area__d { color: rgba(237, 237, 235, 0.72); }
  .area:hover .area__t { transform: translateX(1.4vw); }
  .area:hover .area__go { background: var(--saffron); border-color: var(--saffron); color: var(--ink); transform: rotate(45deg); }
}

/* ---------- Method ---------- */
.method {
  background: var(--graphite);
  color: var(--paper);
  padding: var(--space-section) 0;
}
.method__head { padding: 0 var(--pad); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-bottom: var(--space-head); }
.method__head .eyebrow { grid-column: 1 / 4; align-self: start; padding-top: 0.8em; }
.method__head .display { grid-column: 4 / -1; }
.method__head .display em { color: var(--saffron); }
.method__stack { padding: 0 var(--pad); display: flex; flex-direction: column; gap: 6vh; }
.step {
  position: sticky;
  top: clamp(80px, 11vh, 120px);
  min-height: min(76vh, 720px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  background: var(--paper-2);
  color: var(--ink);
  padding: clamp(24px, 3vw, 48px);
  border-radius: 4px;
  transform-origin: center top;
  box-shadow: 0 -30px 60px -30px rgba(0,0,0,0.35);
}
.step__shade { position: absolute; inset: 0; z-index: 3; background: #111315; opacity: 0; pointer-events: none; border-radius: inherit; }
.step:nth-child(2) { top: calc(clamp(80px, 11vh, 120px) + 18px); background: #efeeea; }
.step:nth-child(3) { top: calc(clamp(80px, 11vh, 120px) + 36px); background: #e9e8e3; }
.step:nth-child(4) { top: calc(clamp(80px, 11vh, 120px) + 54px); background: #e4e3de; }
.step__text { grid-column: 1 / 7; display: flex; flex-direction: column; }
.step__n {
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 13rem);
  line-height: 0.8; letter-spacing: -0.04em;
  margin-bottom: auto;
}
.step__t { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 0.95; letter-spacing: -0.025em; margin: 40px 0 20px; }
.step__d { max-width: 38ch; color: var(--graphite); }
.step__tag {
  align-self: flex-start;
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.16em;
}
.step__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }
/* The photo fills the card instead of sizing it: a tall portrait would otherwise stretch the
   sticky card past the viewport and push the text below the fold. */
.step__img { grid-column: 8 / -1; position: relative; overflow: hidden; border-radius: 2px; min-height: 280px; }
.step__img img { position: absolute; inset: 0; }

/* Desktop: the four steps sit side by side as one readable row (photo, number, title, text)
   instead of screen-high stacking cards. Phones keep the stack (see max-width: 900px). */
@media (min-width: 901px) {
  .method__stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
  .method__stack .step {
    position: relative; top: auto;
    min-height: 0;
    display: flex; flex-direction: column;
    padding: clamp(16px, 1.4vw, 24px) clamp(16px, 1.4vw, 24px) clamp(22px, 2vw, 32px);
    background: var(--paper-2);
    box-shadow: none;
  }
  .step__img { order: -1; aspect-ratio: 4 / 3; min-height: 0; margin-bottom: clamp(20px, 2vw, 32px); }
  .step__text { flex: 1; }
  .step__n { font-size: clamp(2.4rem, 3.2vw, 3.8rem); margin-bottom: 0; }
  .step__t { font-size: clamp(1.5rem, 1.9vw, 2.2rem); margin: 14px 0 12px; }
  .step__d { font-size: var(--fs-body-sm); }
  .step__tag { margin-top: auto; padding-top: 22px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .method__stack { grid-template-columns: 1fr 1fr; }
}

/* ---------- Modes ---------- */
.modes { padding: var(--space-section) 0 0; }
.modes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 0 var(--pad); }
/* Each mode is one compact card: picture (or map) on the left, a short fact sheet on the right */
.mode {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  min-height: clamp(400px, 27vw, 480px);
  padding: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.mode__img { position: relative; overflow: hidden; border-radius: 2px; background: var(--paper-3); }
.mode__img--map iframe {
  position: absolute; inset: -60px 0 0 0;
  width: 100%; height: calc(100% + 60px);
  border: 0;
  filter: grayscale(1) contrast(0.92) brightness(1.04) sepia(0.12);
  transition: filter 0.8s var(--ease);
  pointer-events: none; /* wheel/touch go to the page, not the map */
}
.mode__img--map:hover iframe { filter: grayscale(0.2) contrast(0.96) brightness(1.02); }
.mode__map-link { position: absolute; inset: 0; z-index: 1; }
.mode__body {
  display: flex; flex-direction: column;
  padding: clamp(20px, 2vw, 32px) clamp(18px, 2vw, 32px) clamp(14px, 1.4vw, 22px);
}
.mode__t { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3vw, 3.4rem); line-height: 0.95; letter-spacing: -0.025em; }
.mode__d { margin-top: 12px; color: var(--graphite); max-width: 32ch; }
.mode__facts { margin: auto 0 0; padding-top: 28px; font-size: var(--fs-body-sm); }
.mode__facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.mode__facts dt { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); padding-top: 0.2em; }
.mode__go { display: inline-flex; align-items: center; gap: 8px; transition: color 0.4s; }
.mode__go:hover { color: var(--muted); }
.mode__go i { font-style: normal; transition: transform 0.6s var(--ease); }
.mode__go:hover i { transform: translate(3px, -3px); }
.mode .btn { align-self: flex-start; margin-top: 18px; }

.btn--sm { gap: 12px; padding: 6px 6px 6px 22px; font-size: 0.9rem; }
.btn--sm .btn__icon { width: 36px; height: 36px; }

/* ---------- Price ---------- */
.price { padding: var(--space-section) 0; }
.toggle {
  position: relative;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  margin: 0 var(--pad) clamp(32px, 4vw, 56px);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 100px;
}
.toggle button {
  position: relative; z-index: 1;
  padding: 12px 28px;
  font-size: 0.9rem;
  border-radius: 100px;
  transition: color 0.5s var(--ease);
}
.toggle button[aria-pressed="true"] { color: var(--paper); }
.toggle__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px);
  border-radius: 100px;
  background: var(--ink);
  transition: transform 0.7s var(--ease);
}
.toggle.is-presencial .toggle__thumb { transform: translateX(100%); }

.price__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 0 var(--pad); }
.plan {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: clamp(36px, 4vw, 64px) clamp(24px, 3vw, 56px);
  padding: clamp(24px, 2.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.plan--feature { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* 1 — what you get: how many consultations, said big */
.plan__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.plan__title { display: flex; flex-direction: column; gap: 14px; font-weight: 400; }
.plan__label { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.plan__qty { font-family: var(--serif); font-size: clamp(2.2rem, 3vw, 3.4rem); line-height: 0.95; letter-spacing: -0.02em; }
.plan__qty b { font-weight: 400; color: var(--saffron); }
.plan:not(.plan--feature) .plan__qty b { color: inherit; }
.plan__badge {
  flex-shrink: 0;
  color: var(--ink);
  background: var(--saffron);
  padding: 6px 12px; border-radius: 100px;
  font-size: var(--fs-small); letter-spacing: 0.04em;
  font-weight: 600;
}

/* 2 — what it costs */
.plan__offer { align-self: end; }
.plan__price {
  display: flex; align-items: flex-start; gap: 0 0.12em;
  font-family: var(--serif);
  line-height: 0.8;
}
.plan__cur { font-size: clamp(1.3rem, 1.5vw, 1.8rem); padding-top: 0.25em; letter-spacing: -0.01em; }
.plan__val { font-size: clamp(4.6rem, 6vw, 7rem); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; display: inline-block; }
.plan__unit {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  font-size: var(--fs-body-sm); color: var(--graphite);
}
.plan__old { color: var(--muted); text-decoration-thickness: 1px; }

/* 3 — what's included */
.plan__list {
  align-self: end;
  display: grid; gap: 12px;
  padding-left: clamp(20px, 2.4vw, 40px);
  border-left: 1px solid var(--line);
  font-size: var(--fs-body-sm);
}
.plan__list li { position: relative; padding-left: 26px; }
.plan__list li::before {
  content: ""; position: absolute; left: 2px; top: 0.3em;
  width: 6px; height: 11px;
  border: solid var(--saffron); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plan--feature .plan__label,
.plan--feature .plan__old { color: rgba(237,237,235,0.55); }
.plan--feature .plan__unit { color: rgba(237,237,235,0.78); }
.plan--feature .plan__list { border-color: var(--line-light); }

.price__foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px;
  padding: clamp(32px, 4vw, 56px) var(--pad) 0;
}
.price__info { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: var(--fs-body-sm); color: var(--graphite); }
.price__info li { display: inline-flex; align-items: center; gap: 10px; }
.price__info li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--saffron); }

/* ---------- FAQ ---------- */
.faq { padding: var(--space-section) var(--pad); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
/* Not sticky: the aside is about as tall as the closed list, so opening an answer would suddenly
   give it room to stick and the whole left column would jump. */
.faq__aside { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 28px; }
.faq__img { position: relative; width: 62%; aspect-ratio: 3 / 4; overflow: hidden; margin-top: 20px; }
.faq__list { grid-column: 6 / -1; border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(22px, 2.4vw, 34px) 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: var(--fs-h4);
  line-height: 1.08; letter-spacing: -0.015em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary span { transition: transform 0.7s var(--ease); }
.qa summary:hover span { transform: translateX(10px); }
.qa summary i {
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: background-color 0.5s, border-color 0.5s, transform 0.7s var(--ease);
}
.qa summary i::before, .qa summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px; background: var(--ink);
  transition: transform 0.7s var(--ease);
}
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { background: var(--saffron); border-color: var(--saffron); transform: rotate(180deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa__a { overflow: hidden; }
.qa__a > * { padding-bottom: clamp(24px, 2.6vw, 36px); max-width: 58ch; color: var(--graphite); }
.qa__a ul { display: grid; gap: 10px; }
.qa__a li { display: grid; grid-template-columns: 18px 1fr; }
.qa__a li::before { content: ""; width: 5px; height: 5px; margin-top: 0.62em; border-radius: 50%; background: var(--saffron); }

/* ---------- CTA ---------- */
/* Light closing invitation: words and the booking button on the left, an arched portrait on the right */
.cta {
  position: relative;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: clamp(96px, 9vw, 160px) var(--pad);
  /* two content-sized columns, centred as one composition: no dead gap between words and photo */
  display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 500px);
  justify-content: center; align-items: center;
  column-gap: clamp(56px, 7vw, 140px);
}
.cta__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 6.2rem);
  line-height: 0.94; letter-spacing: -0.035em;
  max-width: 15ch;
  margin: 28px 0 32px;
}
.cta__title em { color: var(--graphite); }
.cta__lede { color: var(--graphite); max-width: 34ch; font-size: 1.08rem; }
.cta__actions { margin-top: clamp(36px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.cta__note { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-body-sm); color: var(--muted); }
.cta__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }

.cta__visual { position: relative; width: 100%; }
.cta__img {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 4px 4px / 40% 40% 4px 4px; /* a true semicircle on a 4:5 frame */
  background: var(--paper-3);
}
/* full-length portrait: lean in so she, not the room, fills the arch (the parallax moves the wrapper) */
.cta__img img { object-position: 50% 52%; transform: scale(1.32); transform-origin: 51% 50%; }

/* ---------- Footer ---------- */
/* One quiet row — name, how to reach, where to find — and the fine print. Everything else lives above. */
.footer { background: var(--ink); color: var(--paper); padding: clamp(44px, 4vw, 64px) var(--pad); }
.footer__row {
  display: flex; align-items: center; gap: 24px clamp(32px, 5vw, 96px);
}
.footer__logo { font-family: var(--serif); font-size: clamp(2rem, 2.4vw, 2.6rem); line-height: 0.9; letter-spacing: -0.03em; margin-right: auto; }
.footer__logo span { color: var(--saffron); }
.footer__item { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-body-sm); color: rgba(237,237,235,0.88); transition: color 0.4s; }
.footer__item:hover { color: var(--saffron); }
.footer__item:not(.js-maps) { white-space: nowrap; }
.footer__item i { font-style: normal; display: inline-block; transition: transform 0.6s var(--ease); }
.footer__item:hover i { transform: translate(3px, -3px); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px;
  margin-top: clamp(32px, 3vw, 48px); padding-top: 24px; border-top: 1px solid rgba(237,237,235,0.12);
  font-size: var(--fs-small); color: rgba(237,237,235,0.5);
}
.footer-credit-link {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 1rem; border-radius: 50px;
  border: 1px solid rgba(237,237,235,0.2); background: rgba(237,237,235,0.06); color: rgba(237,237,235,0.88);
  font-size: 0.85rem; font-weight: 500; line-height: 1.2;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.footer-credit-link svg { width: 13px; height: 13px; flex: none; }
.footer-credit-link strong { font-weight: 600; }
.footer-credit-link:hover, .footer-credit-link:focus-visible { background: rgba(240,185,31,0.12); border-color: var(--saffron); color: var(--saffron); }
.footer__label { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.16em; color: rgba(237,237,235,0.5); }
.totop {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-light);
  display: grid; place-items: center;
  color: var(--paper);
  transition: background-color 0.5s, color 0.5s, border-color 0.5s;
}
.totop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.totop:hover { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }

/* =========================================================
   Responsive
   ========================================================= */
/* wide screens show the links in the bar, so the menu button would only repeat them */
@media (min-width: 1101px) {
  .menu-btn { display: none; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .modes__grid { grid-template-columns: 1fr; }
  .mode { min-height: 400px; }
}

@media (max-width: 900px) {
  .about__stage { grid-template-columns: 1fr; row-gap: 40px; }
  .about__eyebrow, .about__title, .about__photo, .about__panel { grid-column: 1 / -1; grid-row: auto; }
  .about__title { margin-bottom: 0; }
  .about__slide { max-width: none; }

  .about.is-story .about__stage { --t: 30%; --r: 24%; --b: 30%; --l: 24%; --rad: 26vw; }
  .about.is-story .about__eyebrow { top: 92px; }
  .about.is-story .about__title {
    flex-direction: column; column-gap: 0; row-gap: calc(40svh + 4vh);
    font-size: 15vw; text-align: center;
  }
  .about.is-story .about__w { flex: none; text-align: center !important; }
  .about.is-story .about__panel { top: 50%; left: var(--pad); padding: 24px 0 96px; gap: 16px; justify-content: flex-start; }
  .about.is-story .about__creds { margin-top: auto; }
  .about.is-story .about__slide { font-size: clamp(1.35rem, 5.6vw, 1.9rem); align-self: start; }
  .about.is-story .about__cap { padding-bottom: 28px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head--split, .method__head { grid-template-columns: 1fr; }
  .section-head--split .eyebrow, .section-head--split .display,
  .method__head .eyebrow, .method__head .display { grid-column: 1 / -1; }
  .section-head--split, .method__head { gap: 20px; }


  .area { grid-template-columns: 36px 1fr 40px; row-gap: 10px; }
  .area__n { grid-column: 1; align-self: start; padding-top: 0.6em; }
  .area__t { grid-column: 2; }
  .area__go { grid-column: 3; grid-row: 1; align-self: start; width: 40px; height: 40px; }
  .area__d { grid-column: 2 / 3; }


  .step { grid-template-columns: 1fr; min-height: auto; gap: 24px; }
  .step__text, .step__img { grid-column: 1 / -1; }
  .step__img { aspect-ratio: 16 / 10; min-height: 0; }
  .step__n { margin-bottom: 0; font-size: 5rem; }
  .step__t { margin: 24px 0 12px; }


  .price__grid { grid-template-columns: 1fr; }

  .faq__grid { grid-template-columns: 1fr; gap: 48px; }
  .faq__aside, .faq__list { grid-column: 1 / -1; }
  .faq__img { display: none; }


  .hgallery { height: 340vh; }
}

@media (max-width: 900px) {
  .cta { grid-template-columns: 1fr; row-gap: 64px; }
  .cta__text, .cta__visual { grid-column: 1 / -1; }
  .cta__visual { justify-self: center; width: min(78%, 420px); }
}

@media (max-width: 600px) {
  .mode { grid-template-columns: 1fr; min-height: 0; }
  .mode__img { aspect-ratio: 16 / 10; }
  .mode__body { padding: 24px 12px 12px; }
  .mode__facts { padding-top: 24px; }
  .hero__title { font-size: 11.5vw; }
  .hero__media img { object-position: 50% 50%; }
  .book-pill { left: var(--pad); right: var(--pad); justify-content: center; }
  .footer__row { flex-wrap: wrap; align-items: flex-start; }
  .footer__logo { order: -2; }
  .footer__row .totop { order: -1; }
  .footer__item { flex-basis: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .about__creds li { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .hgallery__intro { flex-basis: 84vw; }
  .hgallery__quote { font-size: 3.1rem; }
  .hg--a { width: 66vw; }
  .hg--b { width: 54vw; margin-bottom: 14vh; }
  .hg--c { width: 72vw; margin-top: 12vh; }
  .hg--d { width: 62vw; }
  .hg--e { width: 76vw; }
  .hgallery__mid { flex-basis: 78vw; }
  .plan { grid-template-columns: 1fr; grid-template-rows: none; gap: 32px; }
  .plan__list { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .plan--feature .plan__list { border-color: var(--line-light); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hgallery { height: auto; }
  .hgallery__sticky { position: relative; height: auto; overflow-x: auto; padding: 80px 0; }
  .hgallery__progress { display: none; }
}

/* ---------- 404 ---------- */
/* One quiet screen: "4 [arched window] 4", the line, the way back. No JS. */
.nf-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.nf-header { grid-template-columns: 1fr auto; }
.nf-header__back {
  justify-self: end;
  font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.16em;
  min-height: 44px; display: inline-flex; align-items: center;
  opacity: 0.7; transition: opacity 0.4s;
}
.nf-header__back:hover { opacity: 1; }

.nf {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(28px, 5vh, 64px);
  padding: clamp(96px, 14vh, 150px) var(--pad) clamp(32px, 5vh, 64px);
  text-align: center;
}
.nf__code {
  display: flex; align-items: center; justify-content: center;
  gap: 0.06em;
  font-family: var(--serif);
  font-size: clamp(8.5rem, min(24vw, 30vh), 22rem);
  line-height: 0.8; letter-spacing: -0.04em;
}
.nf__digit { display: block; padding: 0.04em 0.02em 0.06em; }
.nf__zero {
  position: relative; display: block;
  width: 0.5em; height: 0.72em;
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper-3);
  margin: 0 0.04em;
  transform: translateY(-0.02em); /* sit on the digits' optical centre */
}
.nf__zero img { object-position: 50% 58%; transform: scale(1.5); transform-origin: 50% 58%; }

.nf__text { display: flex; flex-direction: column; align-items: center; }
.nf__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 4.2vw, 4.6rem);
  line-height: 0.96; letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 24px 0 20px;
}
.nf__title em { font-style: italic; color: var(--graphite); letter-spacing: -0.035em; }
.nf__lede { color: var(--graphite); max-width: 38ch; }
.nf__actions {
  margin-top: clamp(32px, 3.6vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 32px;
}

.nf-foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad) clamp(20px, 3vh, 32px);
  font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted);
}

/* entrance: digits rise, the window opens from the bottom, the words follow */
@keyframes nf-open { from { clip-path: inset(100% 0 0 0 round 999px); } to { clip-path: inset(0 0 0 0 round 999px); } }
@keyframes nf-zoom { from { transform: scale(1.8); } to { transform: scale(1.5); } }
@keyframes nf-fade { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.nf__digit { animation: nf-fade 1.2s var(--ease) both; }
.nf__digit:first-child { animation-delay: 0.1s; }
.nf__digit:last-child { animation-delay: 0.3s; }
.nf__zero { animation: nf-open 1.6s var(--ease-io) 0.15s both; }
.nf__zero img { animation: nf-zoom 2.4s var(--ease) 0.15s both; }
.nf__text > * { animation: nf-fade 1.3s var(--ease) both; }
.nf__text > :nth-child(1) { animation-delay: 0.55s; }
.nf__text > :nth-child(2) { animation-delay: 0.65s; }
.nf__text > :nth-child(3) { animation-delay: 0.75s; }
.nf__text > :nth-child(4) { animation-delay: 0.85s; }

@media (max-width: 600px) {
  .nf__code { font-size: 40vw; }
  .nf-foot { justify-content: center; }
  .nf-foot span:last-child { display: none; }
}

/* ---------- Additions ---------- */
@media (hover: hover) and (pointer: fine) {
  .cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
}
.sl-mask { padding: 0 0.12em 0.1em 0; margin: 0 -0.12em -0.1em 0; }
.menu.is-open .menu__bg { transform: none; }
section[tabindex="-1"]:focus { outline: none; }
