/* ════════════════════════════════════════════════════════════
   JESSY ABI NADER — couture, engineered
   ink black · chalk white · hairline rules · φ everywhere
   ════════════════════════════════════════════════════════════ */
:root {
  /* type — Serotoninn-style: condensed display + grotesque mono + neutral sans */
  --display:    "Oswald", "Arial Narrow", sans-serif;   /* stands in for Thunder */
  --mono:       "Space Mono", ui-monospace, monospace;  /* stands in for PP Fraktion Mono */
  --sans:       "Inter", system-ui, sans-serif;
  --serif:      var(--display);                          /* legacy alias → now condensed display */

  /* LIGHT theme (default) — warm off-white + black */
  --ink:        #fff9f7;   /* ground / primary surface */
  --ink-2:      #f4ece9;   /* deeper paper (footer / media wells) */
  --chalk:      #0a0a0a;   /* mark — text, rules, textures */
  --chalk-80:   rgba(10, 10, 10, 0.86);
  --chalk-60:   rgba(10, 10, 10, 0.74);
  --chalk-35:   rgba(10, 10, 10, 0.55);
  --hairline:   rgba(10, 10, 10, 0.16);

  /* cinematic dark — theme-independent (hero + film sections) */
  --film:       #0a0a0a;
  --light:      #f2f0ea;
  --light-60:   rgba(242, 240, 234, 0.60);
  --light-35:   rgba(242, 240, 234, 0.35);

  --phi:        1.618;
  --gutter:     clamp(20px, 4vw, 64px);
  --bar:        0px;    /* (marquee removed) */
}

/* DARK theme — the original ink-and-chalk world */
:root[data-theme="dark"] {
  --ink:        #0a0a0a;
  --ink-2:      #141414;
  --chalk:      #f2f0ea;
  --chalk-80:   rgba(242, 240, 234, 0.90);
  --chalk-60:   rgba(242, 240, 234, 0.78);
  --chalk-35:   rgba(242, 240, 234, 0.58);
  --hairline:   rgba(242, 240, 234, 0.16);
}
/* logo mark — an SVG mask painted in the theme's ink, so it recolours itself */
.mark {
  display: inline-block;
  aspect-ratio: 1614 / 4153;   /* true proportions of the artwork */
  background-color: var(--chalk);
  -webkit-mask: url("img/logo.png") center / contain no-repeat;
          mask: url("img/logo.png") center / contain no-repeat;
  transition: background-color 0.4s;
}

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

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.5s ease;
}

::selection { background: var(--chalk); color: var(--ink); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- type utilities ---------- */
.mono-label {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--chalk-80);
}
.mono-label.dim { color: var(--chalk-60); }

.serif-xl {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
/* the emphasized clause pops in coral instead of italic — a Serotoninn move */
.serif-xl em, .serif-lg em, h2 em { font-style: normal; font-weight: 600; }

.serif-lg {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--film);
  display: grid; place-content: center; justify-items: center;
  gap: 22px;
  transition: opacity 0.9s ease 0.15s, visibility 0.9s ease 0.15s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pre-mark { height: clamp(84px, 13vh, 132px); width: auto; opacity: 0.92; animation: breathe 2.6s ease-in-out infinite; background-color: var(--light); }
@keyframes breathe { 0%,100% { opacity: 0.55; transform: scale(0.985);} 50% { opacity: 1; transform: scale(1);} }
.pre-count {
  font-family: var(--mono); font-weight: 300;
  font-size: 13px; letter-spacing: 0.5em; color: var(--light-60);
}
.pre-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.4em; color: var(--light-35); }
.pre-bar { width: clamp(140px, 21.8vw, 260px); height: 1px; background: rgba(242,240,234,0.14); overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 0%; background: var(--light); transition: width 0.25s ease; }

/* ---------- fixed chrome ---------- */
.progress-rail {
  position: fixed; top: var(--bar, 30px); left: 0; right: 0; height: 2px;
  background: transparent; z-index: 120;
}
.progress-rail span { display: block; height: 100%; width: 0%; background: var(--chalk); opacity: 0.85; }

.nav {
  position: fixed; top: var(--bar, 30px); left: 0; right: 0; z-index: 110;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background 0.45s ease, border-color 0.45s ease, padding 0.4s ease;
}
/* once scrolled off the hero, the header becomes a solid bar so content
   no longer slides underneath it */
.nav:not(.over-hero) {
  background: var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding-top: 15px; padding-bottom: 15px;
}

/* theme toggle — light/black knob, rides mix-blend like the rest of the nav */
.theme-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; background: none; border: 0; }
.tt-track { position: relative; width: 34px; height: 16px; border: 1px solid var(--chalk-60); border-radius: 999px; transition: border-color 0.35s; }
.tt-knob { position: absolute; top: 1px; left: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--chalk); transition: left 0.32s cubic-bezier(0.22,1,0.36,1), background 0.35s; }
:root[data-theme="dark"] .tt-knob { left: 19px; }
.tt-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--chalk); transition: color 0.35s; }
/* hamburger — only shown on mobile (see the max-width:860 block) */
.nav-toggle { display: none; }
html.nav-locked { overflow: hidden; }
/* Nav text is solid and theme-aware: it uses the theme foreground (--chalk)
   over content sections, and flips to light (+shadow) while over the dark hero
   via the .over-hero class toggled on scroll. No blend modes = always legible. */
.nav-brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: "Montserrat", var(--sans); font-weight: 600;
  font-size: 13px; letter-spacing: 0.16em; color: var(--chalk);
  transition: color 0.35s;
}
.nav-logo { height: 26px; width: auto; opacity: 0.95; flex: 0 0 auto; }
.nav.over-hero .nav-logo { background-color: var(--light); }
.nav-links { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav-links a {
  font-family: var(--mono); font-weight: 400;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--chalk);
  position: relative;
  padding: 4px 0;
  transition: color 0.35s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--chalk);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover { color: var(--chalk); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav.over-hero .nav-links a::after { background: var(--light); }

/* over the hero film — force light with a readability shadow */
.nav.over-hero .nav-brand,
.nav.over-hero .nav-links a { color: var(--light); text-shadow: 0 1px 16px rgba(0,0,0,0.6); }
.nav.over-hero .nav-links a:hover { color: #fff; }
.nav.over-hero .tt-label { color: var(--light); }
.nav.over-hero .tt-track { border-color: rgba(242,240,234,0.7); }
.nav.over-hero .tt-knob { background: var(--light); }

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; z-index: 300; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--light);           /* light + difference = adaptive on any ground */
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.32s cubic-bezier(0.22,1,0.36,1), height 0.32s cubic-bezier(0.22,1,0.36,1),
              background 0.32s, opacity 0.3s;
  opacity: 0;
  display: grid; place-items: center;
}
.cursor.on { opacity: 1; }
.cursor.grow { width: 46px; height: 46px; }
.cursor .c-label {
  font-family: var(--mono); font-weight: 400;
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.22s, transform 0.28s cubic-bezier(0.22,1,0.36,1);
}
.cursor.drag {
  width: 86px; height: 86px;
  background: var(--chalk); mix-blend-mode: normal;   /* ink pill, paper label */
}
.cursor.drag .c-label { opacity: 1; transform: none; }
.cursor.dragging { width: 74px; height: 74px; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- scrub sections (sticky canvas) — always dark/cinematic ---------- */
.scrub { position: relative; height: 480vh; background: var(--film); color: var(--light); }
.scrub.film-geometry, .scrub.film-silk { height: 340vh; }
.scrub .sticky {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden; display: grid; place-items: center;
  background: var(--film);
}
.scrub canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* text laid over the dark film stays light + shadowed so it reads over bright frames */
.scrub .mono-label { color: var(--light); text-shadow: 0 1px 14px rgba(0,0,0,0.7); }
.scrub .mono-label.dim { color: var(--light-60); text-shadow: 0 1px 14px rgba(0,0,0,0.7); }
.scrub .line .kicker { color: var(--light); text-shadow: 0 1px 18px rgba(0,0,0,0.9); }
.scrub .hint-line { background: var(--light-60); }
.scrub .hint-line::after { background: var(--light); }
.scrub .hero-title h1 { text-shadow: 0 2px 44px rgba(0,0,0,0.6); }
/* ---------- film — the material (autoplay campaign film, full-bleed cover) ---------- */
.film-video { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--film); color: var(--light); }
/* fills the frame edge to edge — no side bars; biased slightly up to keep faces/gowns in view */
.film-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.film-video::before {   /* smooth seam from the hero's black at the top */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22vh; z-index: 3;
  pointer-events: none; background: linear-gradient(to top, rgba(10,10,10,0), var(--film));
}
.film-video::after {    /* dissolve the bottom edge into the editorial's background colour (theme-aware) */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16vh; z-index: 3;
  pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,0), var(--ink));
}

/* ---------- hero — autoplay film (no scroll-scrub) ---------- */
.hero-video { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--film); color: var(--light); }
.hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video .mono-label { color: var(--light); text-shadow: 0 1px 14px rgba(0,0,0,0.7); }
.hero-video .mono-label.dim { color: var(--light-60); }
.hero-video .line .kicker { color: var(--light); text-shadow: 0 1px 16px rgba(0,0,0,0.9); }
.hero-video .hint-line { background: var(--light-60); }
.hero-video .hint-line::after { background: var(--light); }
.hero-video .hero-title h1 { text-shadow: 0 2px 44px rgba(0,0,0,0.6); }
/* auto-sequence: title fades in, then "Where precision meets elegance" — no scroll needed */
.hero-video .line { opacity: 0; }
.hero-video .hv-1 { animation: hv-in 1.1s cubic-bezier(0.22,1,0.36,1) 0.7s forwards, hv-out 1s ease 4.6s forwards; }
.hero-video .hv-2 { animation: hv-in 1.2s cubic-bezier(0.22,1,0.36,1) 5.3s forwards; }
@keyframes hv-in { from { opacity: 0; transform: translate(-50%, -44%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes hv-out { from { opacity: 1; transform: translate(-50%, -50%); } to { opacity: 0; transform: translate(-50%, -56%); } }
/* smooth seam into the film section — both are dark, so fade both edges to black */
.hero-video::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28vh; z-index: 8;
  pointer-events: none; background: linear-gradient(to bottom, rgba(10,10,10,0), var(--film));
}

/* ---------- editorial — pinned horizontal scroll ---------- */
.ed-scroll { position: relative; background: var(--ink); }
.ed-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.ed-scroll-head {
  flex: 0 0 auto; display: flex; justify-content: space-between; align-items: baseline;
  padding: clamp(82px, 12vh, 120px) var(--gutter) clamp(18px, 3vh, 34px);
}
.ed-track { flex: 1 1 auto; display: flex; align-items: center; gap: clamp(22px, 3vw, 54px); width: max-content; padding: 0 var(--gutter) clamp(28px, 5vh, 56px); will-change: transform; }
.ed-card { flex: 0 0 auto; width: clamp(260px, 30vw, 430px); }
.ed-card-media { display: block; overflow: hidden; height: clamp(320px, 56vh, 620px); background: var(--ink-2); }
.ed-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; transition: transform 1.1s cubic-bezier(0.22,1,0.36,1); }
.ed-card:hover .ed-card-media img { transform: scale(1.05); }
.ed-card-info { padding-top: 20px; }
.ed-card-info .mono-label { display: block; margin-bottom: 8px; }
.ed-card-info h3 {
  font-family: var(--display); text-transform: uppercase; font-weight: 500;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1; letter-spacing: 0.02em;
}
.ed-btn {
  display: inline-block; margin-top: 0; font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--chalk);
  border-bottom: 1px solid var(--chalk-35); padding-bottom: 6px; transition: border-color 0.3s;
}
.ed-btn:hover { border-color: var(--chalk); }
.ed-card-end {
  flex: 0 0 auto; width: clamp(240px, 26vw, 360px); align-self: center;
  height: clamp(320px, 56vh, 620px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-align: center; border: 1px solid var(--hairline);
}
.ed-card-end .ed-end-mark { height: clamp(46px, 6vw, 72px); width: auto; opacity: 0.85; }
/* phones/tablets: the pinned horizontal scroll is awkward to swipe — lay the
   pieces out as a 2-column vertical grid (8 photos = 4 rows of 2) instead */
@media (max-width: 860px) {
  .ed-scroll { height: auto !important; }
  .ed-sticky { position: static; height: auto; overflow: visible; display: block; }
  .ed-scroll-head { padding: clamp(64px, 10vh, 104px) var(--gutter) clamp(18px, 3vh, 28px); }
  .ed-track {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 5vw, 32px) clamp(12px, 3vw, 20px);
    align-items: start; width: auto; transform: none !important; will-change: auto;
    padding: 0 var(--gutter) clamp(48px, 9vh, 80px);
  }
  .ed-card { width: auto; }
  .ed-card-media { height: auto; aspect-ratio: 3 / 4; }
  .ed-card-info { padding-top: 12px; }
  .ed-card-info h3 { font-size: clamp(1.25rem, 5.4vw, 1.8rem); }
  .ed-btn { margin-top: 12px; }
  .ed-card-end { width: auto; align-self: stretch; height: auto; min-height: 220px; padding: clamp(24px, 6vw, 44px) 12px; }
}

/* footer appointment CTA — its own centered line below the email */
.footer-top .footer-cta { display: block; width: max-content; max-width: 100%; margin: 34px auto 0; }

.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 42%, rgba(0,0,0,0.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 22%, transparent 72%, rgba(0,0,0,0.72) 100%);
}
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 25% { transform: translate(-2%,3%); }
  50% { transform: translate(3%,-2%); } 75% { transform: translate(-3%,-3%); } 100% { transform: translate(2%,2%); }
}

/* overlay copy inside scrubs */
.overlay { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.line {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content; max-width: 88vw;
  text-align: center; opacity: 0;
  will-change: opacity, transform;
}
.line .kicker { display: block; margin-bottom: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--chalk-60); }
.hero-title h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.4rem, 6.6vw, 6rem);   /* matched to the "Where precision…" tagline */
  letter-spacing: 0.02em; line-height: 0.9;
  text-transform: uppercase;
}
.line p { text-shadow: 0 2px 40px rgba(0,0,0,0.75); }

.corner { position: absolute; z-index: 12; }
.tl { top: 84px; left: var(--gutter); }
.tr { top: 84px; right: var(--gutter); text-align: right; }
.bl { bottom: 56px; left: var(--gutter); }
.br { bottom: 56px; right: var(--gutter); text-align: right; }

.scroll-hint {
  position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%);
  z-index: 12; display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: opacity 0.5s;
}
.hint-line { width: 1px; height: 54px; background: var(--chalk-35); position: relative; overflow: hidden; display: block; }
.hint-line::after {
  content: ""; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%; background: var(--chalk);
  animation: drip 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes drip { 0% { top: -100%; } 55%, 100% { top: 100%; } }

/* ---------- generic section chrome ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 var(--gutter); margin-bottom: clamp(40px, 6vh, 80px);
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
}
.section-head .mono-label:first-child { color: var(--chalk); }
.drag-hint, .drag-arrow { color: var(--chalk-60); }

/* reveals */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s cubic-bezier(0.22,1,0.36,1), transform 1s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 02 manifesto ---------- */
.manifesto { padding: clamp(90px, 16vh, 180px) 0; background: var(--ink); }
.manifesto-text {
  padding: 0 var(--gutter);
  max-width: 1180px; margin: 0 auto;
  font-size: clamp(1.7rem, 3.6vw, 3.3rem);
  line-height: 1.38; font-weight: 300;
}
.manifesto-text .w { opacity: 0.3; transition: opacity 0.5s linear; }
.manifesto-text .w.lit { opacity: 1; }
.triptych {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--hairline);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  margin-top: clamp(70px, 12vh, 140px);
}
.tript { background: var(--ink); padding: clamp(28px, 4vw, 56px); }
.tript span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--chalk-35); }
.tript h3 {
  font-family: var(--mono); font-weight: 300;
  font-size: clamp(1.1rem, 1.9vw, 1.6rem); letter-spacing: 0.34em;
  margin: 18px 0 14px;
}
.tript p { font-size: clamp(1rem, 1.4vw, 1.2rem); font-style: italic; color: var(--chalk-80); line-height: 1.5; }

/* ---------- 03 founder ---------- */
.founder {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 110px);
  align-items: center;
  padding: clamp(90px, 15vh, 170px) var(--gutter);
}
.founder-media { position: relative; }
.parallax-frame { overflow: hidden; }
/* feather the edges so the image melts into the page instead of sitting on it */
.founder-media .parallax-frame {
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in; -webkit-mask-size: 100% 100%;
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-composite: intersect;
}
.parallax-frame img { width: 100%; height: auto; transform: scale(1.12); will-change: transform; }
.founder-mark {
  display: block; height: clamp(56px, 6vw, 88px); width: auto;
  opacity: 0.9; margin-bottom: 22px;
}
.founder-copy h2 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 500; line-height: 1.0; letter-spacing: 0.01em;
  margin: 22px 0 26px;
}
.founder-copy p { font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.65; color: var(--chalk-80); max-width: 54ch; }
.founder-copy p + p { margin-top: 1.15em; }
.founder-copy .role { display: block; color: var(--chalk-60); margin: 6px 0 4px; }
.founder-copy .signature-line { font-style: italic; color: var(--chalk); font-size: clamp(1.15rem, 1.7vw, 1.45rem); margin-top: 26px; max-width: none; }
/* Our Story — image on the right for rhythm */
.founder.reverse .founder-media { order: 2; }
.founder-copy blockquote {
  margin: 38px 0 14px;
  padding-left: 22px; border-left: 1px solid var(--chalk-35);
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  font-style: italic; line-height: 1.45;
}
.signature { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.4em; color: var(--chalk-60); margin-top: 16px; }

/* ---------- 04 our philosophy ---------- */
.philosophy { padding: clamp(80px, 13vh, 160px) 0; }
.philo-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 80px); align-items: start;
  padding: 0 var(--gutter); max-width: 1240px; margin: 0 auto;
}
.philo-quote {
  font-family: var(--display); text-transform: uppercase;
  font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 3.8rem);
  line-height: 1.03; letter-spacing: 0.01em;
}
.philo-quote em { font-style: normal; }
.philo-media { max-width: 1240px; margin: 0 auto clamp(30px, 5vw, 64px); padding: 0 var(--gutter); overflow: hidden; }
.philo-media img {
  width: 100%; height: clamp(240px, 42vh, 460px); object-fit: cover; filter: contrast(1.02) saturate(1.02);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.philo-body { display: grid; gap: 22px; max-width: 60ch; padding-top: 8px; }
.philo-body p { font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.7; color: var(--chalk-80); }
@media (max-width: 860px) {
  .philo-inner { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- 04 golden ratio scrollytelling ---------- */
.golden { position: relative; height: 380vh; }
.golden .sticky, .pytha .sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--ink);
}
#golden-canvas, #pytha-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.golden-copy, .pytha-copy {
  position: absolute; z-index: 5;
  left: var(--gutter); top: 50%; transform: translateY(-50%);
  max-width: min(560px, 82vw);
  pointer-events: none;
}
.golden-copy h2, .pytha-copy h2 {
  font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.08; margin: 16px 0 22px; letter-spacing: 0.01em;
}
.g-line { display: block; opacity: 0; will-change: opacity, transform; }
p.g-line { color: var(--chalk-60); }
p.g-line em { color: var(--chalk); }

/* ---------- 06 collections ---------- */
.collections { padding: clamp(90px, 15vh, 170px) 0 0; }
.coll-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--hairline);
  border-block: 1px solid var(--hairline);
}
.coll-card { background: var(--ink); padding: clamp(16px, 1.6vw, 26px); display: flex; flex-direction: column; gap: 20px; }
.coll-card figure { overflow: hidden; aspect-ratio: 3 / 4.2; }
.coll-card img {
  width: 100%; height: 112%; object-fit: cover; object-position: center 22%;
  filter: contrast(1.02) saturate(1.03);
  transition: transform 1.1s cubic-bezier(0.22,1,0.36,1), opacity 0.6s;
  will-change: transform;
}
.coll-card:hover img { transform: scale(1.06); }
.coll-meta h3 {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.02em; line-height: 1;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem); margin: 10px 0 8px;
  transition: color 0.3s;
}
.coll-card:hover h3 { opacity: 0.68; }
.coll-meta .mono-label { color: var(--chalk-60); }
.coll-meta p { font-size: 1.05rem; font-style: italic; color: var(--chalk-80); }

.ticker { overflow: hidden; border-bottom: 1px solid var(--hairline); padding: 26px 0; }
.ticker-track { display: flex; white-space: nowrap; width: max-content; animation: tick 36s linear infinite; }
.ticker-track span {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem); color: var(--chalk-60);
  letter-spacing: 0.04em;
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- 08 editorial — horizontal drag rail ---------- */
.editorial { padding: clamp(90px, 15vh, 170px) 0; overflow: hidden; }
.drag-hint {
  display: inline-flex; align-items: center; gap: 10px;
}
.drag-arrow { display: inline-block; animation: drag-nudge 2.4s ease-in-out infinite; color: var(--chalk-60); }
@keyframes drag-nudge {
  0%, 100% { transform: translateX(-3px); opacity: 0.45; }
  50%      { transform: translateX(3px);  opacity: 1; }
}

.ed-rail {
  overflow: hidden;
  padding: 4px var(--gutter);
  cursor: grab;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.ed-rail.dragging { cursor: grabbing; }
.ed-plate {
  position: relative; flex: 0 0 auto;
  width: clamp(230px, 30vw, 400px);
  -webkit-user-drag: none;
}
a.ed-plate { color: inherit; }
a.ed-plate:hover .ed-cap .mono-label:first-child { color: var(--chalk); }
.ed-plate.wide { width: clamp(340px, 48vw, 680px); }
.ed-plate.tall { width: clamp(190px, 24vw, 320px); }
.ed-plate-media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-2); }
.ed-plate.wide .ed-plate-media { aspect-ratio: 16 / 10; }
.ed-plate.tall .ed-plate-media { aspect-ratio: 3 / 5; }
.ed-plate img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%; pointer-events: none;
  filter: contrast(1.02) saturate(1.03);
  transform: scale(1.04);
  transition: transform 1.1s cubic-bezier(0.22,1,0.36,1), filter 0.6s;
  will-change: transform;
}
.ed-rail:not(.dragging) .ed-plate:hover img {
  transform: scale(1.09); filter: contrast(1.05) saturate(1.05) brightness(1.03);
}
.ed-cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hairline);
}
.ed-cap .dim { text-align: right; }
/* closing plate */
.ed-plate.ed-end {
  width: clamp(210px, 24vw, 320px);
  align-self: stretch;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center;
  border: 1px solid var(--hairline);
}
.ed-end-mark { height: clamp(66px, 8vw, 96px); width: auto; opacity: 0.85; }

/* ---------- 09 pythagoras showcase ---------- */
.pytha { position: relative; height: 340vh; }
.pytha-copy { text-align: left; }

/* ---------- 10 closing ---------- */
.closing { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; background: var(--ink); }
.closing-media { position: absolute; inset: 0; }
.closing-media img { width: 100%; height: 115%; object-fit: cover; opacity: 0.16; filter: grayscale(1); will-change: transform; }
.closing-copy { position: relative; z-index: 4; text-align: center; padding: 24vh var(--gutter); }
.cta {
  display: inline-block; margin-top: 46px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.4em; text-transform: uppercase;
  padding: 20px 44px; border: 1px solid var(--chalk-35);
  position: relative; overflow: hidden;
  transition: color 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.45s;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: var(--chalk); transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.cta:hover::before { transform: translateY(0); }
.cta:hover { color: var(--ink); border-color: var(--chalk); }
.cta span { position: relative; z-index: 1; }
.cta-arrow { font-style: normal; position: relative; top: 0.1em; margin-left: 0.2em; }

/* ---------- 11 footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: clamp(80px, 12vh, 140px) var(--gutter) 34px; background: var(--ink-2); }
.footer-top { text-align: center; margin-bottom: clamp(60px, 10vh, 110px); }
.footer-mark { display: block; height: 76px; width: auto; margin: 0 auto 30px; opacity: 0.9; }
.footer-top h2 { font-family: var(--display); text-transform: uppercase; font-weight: 500; font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1; margin-bottom: 24px; }
/* big, bold, pressable "Book an Appointment" button */
.footer-book {
  display: block; width: max-content; max-width: 100%; margin: 6px auto clamp(28px, 5vh, 48px);
  font-family: var(--display); text-transform: uppercase; font-weight: 500; line-height: 1;
  font-size: clamp(1.5rem, 3.6vw, 2.9rem); letter-spacing: 0.03em; color: var(--chalk);
  padding: clamp(15px, 2.2vh, 24px) clamp(28px, 4.5vw, 58px);
  border: 1px solid var(--chalk-35); position: relative; overflow: hidden;
  transition: color 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.45s;
}
.footer-book::before {
  content: ""; position: absolute; inset: 0; background: var(--chalk);
  transform: translateY(101%); transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.footer-book:hover::before { transform: translateY(0); }
.footer-book:hover { color: var(--ink); border-color: var(--chalk); }
.footer-book span { position: relative; z-index: 1; }
.footer-mail {
  display: block; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; overflow-wrap: anywhere;
  font-family: var(--mono); font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.24em; color: var(--chalk-80);
  border-bottom: 1px solid var(--chalk-35); padding-bottom: 6px;
  transition: color 0.4s, border-color 0.4s;
}
.footer-mail:hover { color: var(--chalk); border-color: var(--chalk); }
.footer-tel {
  display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(10px, 1.6vh, 16px);
  font-family: var(--mono); font-size: clamp(0.78rem, 1.4vw, 0.95rem); letter-spacing: 0.24em;
  color: var(--chalk-60); transition: color 0.35s;
}
.footer-tel svg { flex: 0 0 auto; }
.footer-tel:hover { color: var(--chalk); }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(22px, 3vw, 40px); max-width: 900px; margin: 0 auto clamp(60px, 9vh, 100px);
}
.footer-social {
  display: flex; justify-content: center; align-items: center; gap: 9px;
  margin-top: clamp(16px, 2.4vh, 24px);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--chalk-60); transition: color 0.35s;
}
.footer-social svg { display: block; flex: 0 0 auto; }
.footer-social:hover { color: var(--chalk); }
.footer-address {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 92vw;
  margin: clamp(14px, 2.2vh, 22px) auto 0;
  font-family: var(--mono); font-size: clamp(0.72rem, 1.3vw, 0.9rem);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--chalk-60); text-align: center;
  text-decoration: none; transition: color 0.35s;
}
.footer-address svg { flex: 0 0 auto; }
.footer-address:hover { color: var(--chalk); }
.footer-base { align-items: center; }
.footer-cols div { display: flex; flex-direction: column; gap: 12px; }
.footer-cols a { font-family: var(--sans); font-size: 1rem; color: var(--chalk-80); transition: color 0.35s; width: max-content; }
.footer-cols a:hover { color: var(--chalk); }
.footer-cols .mono-label { margin-bottom: 8px; }
.footer-base {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--hairline); padding-top: 24px;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .coll-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  /* ---- mobile menu: hamburger opens a full-screen overlay of the links ---- */
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 30px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer;
    position: fixed; top: 15px; right: var(--gutter); z-index: 122;
  }
  .nav-toggle span { display: block; height: 1.6px; width: 25px; background: var(--chalk); border-radius: 2px; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.2s; }
  .nav.over-hero .nav-toggle span { background: var(--light); box-shadow: 0 1px 6px rgba(0,0,0,0.45); }
  .nav.menu-open .nav-toggle span { background: var(--chalk); }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
  .nav-brand { position: relative; z-index: 122; }

  .nav-links {
    display: flex; position: fixed; inset: 0; z-index: 118;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: var(--ink); padding: 92px var(--gutter) 96px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav-links .nav-item { flex-direction: column; align-items: center; gap: 2px; }
  .nav-links > a, .nav-links .nav-item > a {
    font-family: var(--display); text-transform: uppercase; font-weight: 500;
    font-size: clamp(1.25rem, 5vw, 1.75rem); letter-spacing: 0.02em; line-height: 1.1;
    color: var(--chalk); text-shadow: none; padding: 8px 0; text-align: center; max-width: 92vw;
  }
  .nav-links > a::after, .nav-links .nav-item > a::after { display: none; }
  /* dropdown children shown expanded beneath their parent (beats pages.css base rule) */
  .nav-links .nav-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; background: none; padding: 2px 0 10px;
    display: flex; flex-direction: column; align-items: center;
  }
  .nav-links .nav-menu a {
    font-family: var(--mono); text-transform: uppercase; font-size: 11px; letter-spacing: 0.2em;
    color: var(--chalk-60); background: none; padding: 5px 0;
  }
  /* on touch, tapping the parent triggers :hover — keep the submenu in place
     (the desktop hover rule would otherwise shift it left, needing a 2nd tap) */
  .nav-links .nav-item:hover .nav-menu,
  .nav-links .nav-item:focus-within .nav-menu { transform: none; }
  /* force theme-correct colours over the light/dark overlay (beats .over-hero) */
  .nav.over-hero.menu-open .nav-links > a, .nav.over-hero.menu-open .nav-links .nav-item > a { color: var(--chalk); text-shadow: none; }
  .nav.over-hero.menu-open .nav-links .nav-menu a { color: var(--chalk-60); }
  .nav.over-hero.menu-open .nav-brand { color: var(--chalk); text-shadow: none; }
  .nav.over-hero.menu-open .nav-logo { background-color: var(--chalk); }
  .nav.over-hero.menu-open .nav-toggle span { box-shadow: none; }
  /* theme toggle rides at the bottom of the open menu */
  .theme-toggle { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 120; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
  .nav.menu-open .theme-toggle { opacity: 1; visibility: visible; }
  .nav.over-hero.menu-open .tt-label { color: var(--chalk); }
  .nav.over-hero.menu-open .tt-track { border-color: var(--chalk-60); }
  .nav.over-hero.menu-open .tt-knob { background: var(--chalk); }

  .founder { grid-template-columns: 1fr; }
  .founder-copy { order: 2; }
  .triptych { grid-template-columns: 1fr; }
  .ed-plate { width: 74vw; }
  .ed-plate.wide { width: 88vw; }
  .ed-plate.tall { width: 60vw; }
  .corner.tl, .corner.bl { display: none; }
  .golden-copy, .pytha-copy { left: var(--gutter); right: var(--gutter); max-width: none; }
  .scrub { height: 380vh; }
  .footer { padding: clamp(56px, 9vh, 86px) var(--gutter) 28px; }
  .footer-top {
    max-width: 640px;
    margin: 0 auto clamp(44px, 7vh, 68px);
    text-align: left;
  }
  .footer-mark { height: 62px; margin: 0 0 26px; }
  .footer-book {
    display: flex; align-items: center; justify-content: center;
    width: 100%; margin: 0 0 24px;
    min-height: 64px; text-align: center;
  }
  .footer-mail {
    width: 100%; margin: 0;
    line-height: 1.45; letter-spacing: 0.16em;
  }
  .footer-tel, .footer-social {
    justify-content: flex-start;
    max-width: 100%;
    letter-spacing: 0.16em;
    line-height: 1.35;
  }
  .footer-tel span, .footer-social span { overflow-wrap: anywhere; }
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 44px);
    max-width: 640px;
    margin-bottom: clamp(44px, 7vh, 68px);
    text-align: left;
  }
  .footer-cols div { gap: 0; }
  .footer-cols .mono-label {
    display: block;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hairline);
  }
  .footer-cols a {
    width: 100%;
    padding: 9px 0;
    line-height: 1.35;
  }
  .footer-base {
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.45;
  }
}
@media (max-width: 560px) {
  .coll-grid { grid-template-columns: 1fr; }
  .nav-frame { display: none; }
  .footer {
    padding-top: clamp(48px, 8vh, 68px);
    padding-inline: clamp(20px, 6vw, 28px);
  }
  .footer-mark { height: 54px; margin-bottom: 22px; }
  .footer-book {
    font-size: clamp(1.08rem, 6vw, 1.55rem);
    min-height: 58px;
    padding: 14px 18px;
    letter-spacing: 0.02em;
  }
  .footer-mail {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem);
    letter-spacing: 0.08em;
  }
  .footer-tel, .footer-social {
    width: 100%;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: none;
  }
  .footer-base { flex-direction: column; align-items: flex-start; text-align: left; gap: 10px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .hint-line::after, .pre-mark, .ticker-track { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-video .hv-1 { animation: none; opacity: 0; }
  .hero-video .hv-2 { animation: none; opacity: 1; }
  * { scroll-behavior: auto; }
}
