/* Burak Design — Living Playground prototype (chapters 01–03)
   Layout concept: one fixed WebGL world behind the page; chapters alternate night (ink, world visible)
   and day (bone, world covered). Chapter 03 is a pinned horizontal track on desktop, a vertical list on mobile. */

:root {
  /* colour — every colour has one job */
  --ink: #0C0B12;          /* world at night */
  --dusk: #17162A;         /* depth layers, panels */
  --line: #2A2840;         /* hairlines on ink */
  --orange: #FE6A00;       /* only what you can touch: Apex, CTA, focus */
  --orange-deep: #C4520A;  /* orange accent on bone (large type only) */
  --cobalt: #2B45FF;       /* code signal (graphic use) */
  --cobalt-text: #6E76FF;  /* cobalt for text on ink */
  --lilac: #C8B9FF;        /* labels on ink, glass */
  --bone: #F2ECE3;         /* day chapters */
  --bone-line: #D9D0C3;
  --muted: #8B86A3;        /* secondary text on ink (5.6:1) */
  --soft: #BDB7CC;         /* body text on ink (10:1) */
  --bone-muted: #5C5566;   /* secondary text on bone */

  /* type */
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: max(16px, 4vw);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, figure, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }

.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;
}
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: fixed; left: var(--gutter); top: 12px; z-index: 50;
  background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: 99px;
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

.mono {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); }

/* ---------- world layers (paint order: sky < giant word < canvas < content) ---------- */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 72% 112%, #1d1f52 0%, #131230 36%, rgba(12, 11, 18, 0) 72%),
    var(--ink);
}
.world, .world-poster {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none;
}
.world-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.world { opacity: 0; transition: opacity .8s ease; }
html.world-live .world { opacity: 1; }
html.world-boot .world-poster { opacity: 0; transition: opacity .3s ease; }
html.world-live .world-poster { opacity: 0; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 18px);
  padding-left: max(16px, env(safe-area-inset-left, 0px), var(--gutter));
  padding-right: max(16px, env(safe-area-inset-right, 0px), var(--gutter));
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.pill {
  background: rgba(14, 13, 24, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 185, 255, .12);
  border-radius: 99px;
}
.nav-logo { display: flex; align-items: center; padding: 9px 16px 9px 12px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; padding: 5px; }
.nav-links a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--soft); padding: 9px 14px; border-radius: 99px;
  transition: color .25s, background-color .25s;
}
.nav-links a:hover { color: var(--bone); background: rgba(200, 185, 255, .08); }
.nav-links a[aria-current="true"] { color: var(--bone); }
.nav-links a[aria-current="true"]::before {
  content: ""; display: inline-block; width: 6px; height: 6px; background: var(--orange);
  transform: rotate(45deg); margin-right: 8px; vertical-align: 2px;
}
.nav-links .nav-cta { background: var(--orange); color: #140A02; font-weight: 600; }
.nav-links .nav-cta:hover { background: #ff7d22; color: #140A02; }
.nav-links .nav-soon { color: #6d6885; }

/* ---------- 01 hero ---------- */
.hero {
  position: relative; /* no z-index: the giant word must sit beneath the canvas */
  overflow: clip;
  min-height: 100svh;
  display: grid; align-content: center;
  padding-block: 140px 120px;
  padding-left: max(16px, env(safe-area-inset-left, 0px), var(--gutter));
  padding-right: max(16px, env(safe-area-inset-right, 0px), var(--gutter));
}
.hero-word {
  position: absolute; z-index: 1; left: -1.5vw; top: 50%; transform: translateY(-10%);
  font-family: var(--f-display); font-weight: 800; font-size: 31vw; line-height: .8;
  letter-spacing: -.06em; color: #1F1D3A; white-space: nowrap; pointer-events: none; user-select: none;
}
.hero-inner { position: relative; z-index: 3; max-width: 660px; display: grid; gap: 26px; }
.hero h1 {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 6.4vw, 104px);
  line-height: .92; letter-spacing: -.035em;
}
.hero h1 em, .serif-accent { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.hero h1 em { color: var(--orange); }
.hero-lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--soft); max-width: 31em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 15px 24px; border-radius: 99px;
  transition: transform .35s var(--ease-out), background-color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--orange); color: #140A02; }
.btn-primary:hover { background: #ff7d22; }
.btn-ghost { border: 1px solid #45436A; color: var(--bone); font-weight: 500; }
.btn-ghost:hover { border-color: var(--lilac); }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateY(3px); }

.hero-hint {
  position: absolute; z-index: 3; right: max(16px, env(safe-area-inset-right, 0px), var(--gutter)); top: 150px;
  text-align: right; color: var(--muted); line-height: 1.9;
}
.ridge {
  position: absolute; z-index: 3; bottom: 40px;
  left: max(16px, env(safe-area-inset-left, 0px), var(--gutter));
  right: max(16px, env(safe-area-inset-right, 0px), var(--gutter));
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.ridge li { border-top: 1px solid #34324F; padding-top: 12px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ridge a { text-decoration: none; }
.ridge li.is-built { color: var(--soft); }
.ridge li.is-here { border-top: 2px solid var(--orange); color: var(--bone); }
.ridge li.is-here::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 9px; height: 9px; background: var(--orange); transform: rotate(45deg);
}

/* split words (added by JS) */
.w { display: inline-block; vertical-align: top; }
.split-mask .w { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-mask .wi { display: inline-block; will-change: transform; }

/* ---------- 02 mindset (day) ---------- */
.mindset {
  --rx: 0; --ry: 0; --bx: 0; --by: 0;
  position: relative; z-index: 4;
  background: var(--bone); color: var(--ink);
  border-top-left-radius: calc(var(--rx) * 1%) calc(var(--ry) * 1vh);
  border-top-right-radius: calc(var(--rx) * 1%) calc(var(--ry) * 1vh);
  border-bottom-left-radius: calc(var(--bx) * 1%) calc(var(--by) * 1vh);
  border-bottom-right-radius: calc(var(--bx) * 1%) calc(var(--by) * 1vh);
  padding-block: clamp(110px, 20vh, 220px) clamp(120px, 22vh, 240px);
  padding-left: max(16px, env(safe-area-inset-left, 0px), var(--gutter));
  padding-right: max(16px, env(safe-area-inset-right, 0px), var(--gutter));
}
/* the night between the chapters (js/chapters/veils.js): the navy lifts from the top as the mindset arrives, and rises from
   its foot as the projects approach; behind the content, the same navy as everywhere else */
.mindset::before, .mindset::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; border-radius: inherit; }
.mindset::before { top: 0; height: min(100%, 100svh); opacity: var(--veil-in, 0);
  background: linear-gradient(180deg, rgba(12, 16, 40, .9) 0%, rgba(12, 16, 40, .5) 35%, rgba(12, 16, 40, 0) 100%); }
.mindset::after { bottom: 0; height: min(100%, 75svh); opacity: var(--veil-out, 0);
  background: linear-gradient(0deg, rgba(12, 11, 18, .92) 0%, rgba(13, 20, 56, .55) 30%, rgba(13, 20, 56, 0) 100%); }
.mindset .eyebrow { color: var(--bone-muted); }
.mindset-statement {
  margin-top: 28px; max-width: 17ch;   /* the statement is a two-sentence line now: same face and weight, scaled to fit */
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.045em; line-height: .92;
  font-size: clamp(42px, 6.4vw, 118px);
}
.mindset-statement em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--orange-deep); letter-spacing: -.02em; }
.mindset-body {
  margin-top: clamp(40px, 7vh, 72px); margin-left: auto; max-width: 31em; text-wrap: pretty;
  font-size: clamp(17px, 1.3vw, 20px); color: #2c2a38;
}
/* the Creative Engine: five stones in a 3D space (js/chapters/mindset.js). Wide screens: right of the statement (the
   statement left, the body text under it); narrower: between the statement and the body, as a compact composition. */
.mindset-stones { position: relative; pointer-events: none; width: 100%; aspect-ratio: 1671 / 941; margin-top: clamp(28px, 5vh, 48px); }
.mindset-stones::before { content: ""; position: absolute; inset: -12% -10%; z-index: 0;   /* the warm light behind the stones */
  background: radial-gradient(closest-side, rgba(244, 184, 140, .42), rgba(244, 184, 140, .14) 55%, rgba(244, 184, 140, 0)); }
.ms-scene { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 45%; transform-style: preserve-3d; }
.ms-stone, .ms-frag { position: absolute; left: var(--x); top: var(--y); width: var(--w); }
.ms-stone { transform-style: preserve-3d; will-change: transform, opacity; }
.ms-stone img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.ms-frag { display: block; height: auto; user-select: none; }
.ms-c { z-index: 3; }
.ms-tl, .ms-tr, .ms-bl, .ms-br { z-index: 2; }
/* a slow float of its own for every stone (inside the part the scroll moves, so the two never conflict) */
@keyframes ms-bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -1.1%, 0); } }
.ms-bob { position: relative; animation: ms-bob 6.5s ease-in-out infinite; }
.ms-tl .ms-bob { animation-duration: 7.3s; animation-delay: -1.2s; } .ms-tr .ms-bob { animation-duration: 6.1s; animation-delay: -3.1s; }
.ms-bl .ms-bob { animation-duration: 7.9s; animation-delay: -2.4s; } .ms-br .ms-bob { animation-duration: 6.8s; animation-delay: -4.6s; }
/* the orange light pulse as a stone lands */
.ms-pulse { position: absolute; inset: -14% -12%; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 128, 30, .75), rgba(255, 110, 20, .28) 55%, rgba(255, 110, 20, 0)); }
.ms-frag { z-index: 1; animation: ms-bob 5.5s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
/* the connections: a glowing orange link from each stone to the logo stone */
.ms-links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.ms-links path { fill: none; stroke-linecap: round; }
.ms-links .ms-glow { stroke: rgba(255, 120, 20, .55); stroke-width: 26; filter: blur(7px); }
.ms-links .ms-core { stroke: #ff9a2e; stroke-width: 9; }
.ms-links-m { display: none; }
@media (prefers-reduced-motion: reduce) { .ms-bob, .ms-frag { animation: none; } }
html:not(.js) .ms-link { opacity: 1; }
/* phones and narrow tablets: a compact composition — the logo stone on top, the four stones in two rows under it */
@media (max-width: 1099px) {
  .mindset-stones { aspect-ratio: 1000 / 1160; max-width: 560px; margin-inline: auto; }
  .ms-stone { left: var(--mx); top: var(--my); width: var(--mw); }
  .ms-frag { display: none; }
  .ms-links-d { display: none; } .ms-links-m { display: block; }
  .ms-links .ms-glow { stroke-width: 22; } .ms-links .ms-core { stroke-width: 8; }
}
.mindset > .eyebrow, .mindset-statement, .mindset-body { position: relative; z-index: 1; }
@media (min-width: 1100px) {
  .mindset { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: auto auto 1fr auto auto; column-gap: clamp(32px, 4vw, 72px); align-items: start; }
  .mindset > .eyebrow { grid-column: 1; grid-row: 1; margin-top: clamp(40px, 8vh, 96px); }
  .mindset-statement { grid-column: 1; grid-row: 2; max-width: 10.4em; font-size: clamp(44px, 4.5vw, 92px); }
  .mindset-stones { grid-column: 2; grid-row: 1 / 4; margin-top: clamp(24px, 4vh, 56px); align-self: center; }
  .mindset-body { grid-column: 2; grid-row: 4; margin-top: clamp(20px, 3.5vh, 44px); }
  .steps { grid-column: 1 / -1; grid-row: 5; }
}
.steps { position: relative; margin-top: clamp(80px, 14vh, 150px); }
.steps-rail { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--bone-line); }
.steps-rail-fill { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.steps-apex {
  position: absolute; top: -7px; left: 0; width: 14px; height: 14px; background: var(--orange);
  transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 0 5px var(--bone);
}
.steps ol { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr)); gap: 26px; padding-top: 34px; }   /* step 01 (the brief) has the longest text */
.steps li { display: grid; gap: 8px; align-content: start; transition: opacity .5s; }
.steps .step-n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--bone-muted); }
.steps h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 1.5vw, 24px); letter-spacing: -.02em; text-wrap: balance; }
.steps p { font-size: 15px; line-height: 1.55; color: #3b3846; max-width: 34ch; text-wrap: pretty; }
html.js:not(.reduced) .steps li { opacity: .38; }
html.js:not(.reduced) .steps li.is-on { opacity: 1; }

/* ---------- 03 work ---------- */
.work { position: relative; z-index: 4; }
.work-pin { position: relative; }
.work-track { display: flex; flex-direction: column; }
.panel { position: relative; }
.panel-intro, .panel-outro {
  display: grid; align-content: center; gap: 24px;
  padding-block: 150px 120px;
  padding-left: max(16px, env(safe-area-inset-left, 0px), var(--gutter));
  padding-right: max(16px, env(safe-area-inset-right, 0px), var(--gutter));
}
.panel-intro h2, .panel-outro h2 {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.04em; line-height: .92;
  font-size: clamp(44px, 6vw, 104px); max-width: 11ch;
}
.panel-intro p, .panel-outro p { color: var(--soft); font-size: clamp(17px, 1.3vw, 20px); max-width: 28em; }
.panel-intro .rail-start { width: min(420px, 60vw); height: 2px; background: var(--orange); transform-origin: left; margin-top: 12px; }
.scroll-cue { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.scroll-cue .dia { width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); }

.copy-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.copy-mail .addr { font-family: var(--f-mono); font-size: 15px; letter-spacing: .02em; user-select: all; color: var(--bone); }
.copy-mail button {
  font: 600 14px var(--f-body); color: var(--bone); background: transparent; border: 1px solid #45436A;
  border-radius: 99px; padding: 10px 16px; cursor: pointer; transition: border-color .25s;
}
.copy-mail button:hover { border-color: var(--lilac); }

/* project panel — shared */
.project {
  --p-bg: var(--dusk); --p-fg: var(--bone); --p-muted: var(--soft); --p-accent: var(--orange); --p-line: rgba(255,255,255,.14);
  background: var(--p-bg); color: var(--p-fg);
  overflow: hidden;
  padding-block: 112px 64px;
  padding-left: max(16px, env(safe-area-inset-left, 0px), var(--gutter));
  padding-right: max(16px, env(safe-area-inset-right, 0px), var(--gutter));
  display: grid; gap: 32px;
}
.p-copy { display: grid; gap: 14px; align-content: start; min-width: 0; position: relative; z-index: 3; }
.p-index { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--p-muted); }
.p-title { font-family: var(--f-display); font-weight: 800; letter-spacing: -.04em; line-height: .88; font-size: clamp(48px, 7vw, 124px); }
.p-status {
  justify-self: start; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--p-line); border-radius: 99px; padding: 7px 12px; color: var(--p-fg);
  display: inline-flex; gap: 8px; align-items: center;
}
.p-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p-accent); }
.p-desc { font-size: clamp(16px, 1.15vw, 18px); color: var(--p-muted); max-width: 30em; }
.p-meta { display: flex; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--p-muted); }
.p-meta dt { text-transform: uppercase; letter-spacing: .12em; }
.p-meta dd { color: var(--p-fg); }
.p-link {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
  text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 20px; border-radius: 99px;
  background: var(--p-fg); color: var(--p-bg); transition: transform .35s var(--ease-out);
}
.p-link:hover { transform: translateY(-2px); }
.p-link .ext { transition: transform .35s var(--ease-out); }
.p-link:hover .ext { transform: translate(2px, -2px); }

.p-media { position: relative; min-width: 0; order: 2; }
.p-copy { order: 1; }
html.is-h .p-media, html.is-h .p-copy { order: 0; }
.shot { position: relative; overflow: hidden; background: rgba(255,255,255,.04); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-d { border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.55); }
.shot-m { border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); border: 5px solid #101014; }

/* mobile/default: media is a swipeable row */
.p-media {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * max(16px, var(--gutter))); padding-inline: max(16px, var(--gutter));
  scrollbar-width: none; padding-bottom: 8px;
}
.p-media::-webkit-scrollbar { display: none; }
.p-media .shot { flex: none; scroll-snap-align: start; }
.p-media .shot-m { width: min(58vw, 300px); aspect-ratio: 9 / 16; }
.p-media .shot-d { width: min(86vw, 640px); aspect-ratio: 16 / 9; align-self: center; }
.p-media .shot-d img { object-position: 50% 0; }
.p-media .shot-m img { object-position: 50% 0; }
.swipe-hint { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--p-muted); }

/* climates */
.p-izi { --p-bg: #0F0F12; --p-fg: #F2ECE3; --p-muted: #B9B4C2; --p-accent: #FF6A13; --p-line: rgba(255,106,19,.35); }
.p-izi .p-title { text-transform: uppercase; }
.p-izi .p-title b { color: var(--p-accent); }
.p-koc { --p-bg: #F6EDE3; --p-fg: #3A2418; --p-muted: #6A4E40; --p-accent: #C8643B; --p-line: rgba(58,36,24,.2); }
.p-koc .p-title { color: #B5532C; }
.p-cw { --p-bg: #0A1324; --p-fg: #EAF0FF; --p-muted: #AFC0E0; --p-accent: #4C8DFF; --p-line: rgba(76,141,255,.35); }
.p-cw .p-title { font-family: var(--f-serif); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: .86; }
.p-elora { --p-bg: #F3ECE2; --p-fg: #3A2A22; --p-muted: #6B5A4F; --p-accent: #B8862C; --p-line: rgba(58,42,34,.2); }
.p-elora .p-title { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.02em; line-height: .9; }
.p-zeven { --p-bg: #0E0C0A; --p-fg: #F4EFE6; --p-muted: #C9C0B2; --p-accent: #E8B04A; --p-line: rgba(232,176,74,.35); }
.p-zeven .z-letters { display: none; }
.p-zeven .z-bg { display: none; }
.p-zeven .shot-m, html.is-rail .work-rail .p-zeven .p-media .shot-m { aspect-ratio: 485 / 671; }   /* this screenshot is wider than a full phone screen: the frame follows it, so the heading is not cropped */

.p-cw .wipe-streak { display: none; }

/* ---------- desktop horizontal journey (added by JS when width ≥ 900px and motion allowed) ---------- */
html.is-h .work-pin { height: 100svh; overflow: hidden; }
html.is-h .work-track { flex-direction: row; height: 100%; width: max-content; will-change: transform; }
html.is-h .panel { height: 100svh; flex: none; }
html.is-h .panel-intro { width: 72vw; padding-block: 0; }
html.is-h .panel-outro { width: 64vw; padding-block: 0; padding-left: 8vw; align-content: start; padding-top: 20vh; }
html.is-h .panel-intro { align-content: start; padding-top: 22vh; }
html.is-h .project { width: 100vw; padding-block: 108px 118px; gap: 0; }
html.is-h .p-media { display: block; overflow: visible; margin: 0; padding: 0; }
html.is-h .p-media .shot { position: absolute; }
html.is-h .swipe-hint { display: none; }

/* 1 · IZI — a dark monolith */
html.is-h .p-izi { grid-template-columns: minmax(0, 44%) minmax(0, 1fr); column-gap: 5vw; }
html.is-h .p-izi .p-media { height: 100%; }
html.is-h .p-izi .shot-d { inset: 0 0 0 0; width: auto; height: 100%; aspect-ratio: auto; border-radius: 4px; }
html.is-h .p-izi .shot-d img { object-position: 52% 30%; }
html.is-h .p-izi .shot-m { width: 12vw; min-width: 150px; right: -3vw; bottom: 3vh; }
html.is-h .p-izi .p-copy { align-self: end; padding-bottom: 2vh; }
html.is-h .p-izi .p-title { font-size: clamp(64px, 8.6vw, 156px); }

/* 2 · KOC & ROLL — images on a skewer */
html.is-h .p-koc { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); column-gap: 3vw; }
html.is-h .p-koc .p-copy { align-self: start; }
html.is-h .p-koc .p-media { height: 100%; }
html.is-h .p-koc .skewer { position: absolute; left: -2vw; right: -6vw; top: 54%; height: 2px; background: #3A2418; }
html.is-h .p-koc .skewer::before, html.is-h .p-koc .skewer::after {
  content: ""; position: absolute; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--p-accent);
}
html.is-h .p-koc .skewer::before { left: 10%; }
html.is-h .p-koc .skewer::after { right: 2%; background: #9CCB9A; }
html.is-h .p-koc .shot-d { width: 48vw; aspect-ratio: 16 / 9; right: 0; top: 54%; transform: translateY(-50%); }
html.is-h .p-koc .shot-m { width: 12.5vw; min-width: 150px; left: 0; top: 54%; transform: translateY(-46%); z-index: 2; }

/* 3 · Cleaning Wizard — wide cinema and a wipe */
html.is-h .p-cw { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: 1fr; column-gap: 4vw; }
html.is-h .p-cw .p-media { grid-column: 2; height: 100%; }
html.is-h .p-cw .shot-d { width: 100%; aspect-ratio: 2544 / 1262; top: 4%; border-radius: 6px; box-shadow: 0 0 0 1px rgba(76,141,255,.35), 0 40px 120px -40px rgba(76,141,255,.55); }
html.is-h .p-cw .shot-m { width: 11.5vw; min-width: 140px; right: 4%; bottom: 0; }
html.is-h .p-cw .wipe-streak {
  display: block; position: absolute; top: 0; bottom: 0; width: 3px; left: 0; z-index: 2;
  background: linear-gradient(#fff, #4C8DFF); box-shadow: 0 0 30px 8px rgba(76,141,255,.7); opacity: 0;
}
html.is-h .p-cw .p-copy { grid-column: 1; grid-row: 1; align-self: end; }
html.is-h .p-cw .p-title { font-size: clamp(64px, 8.4vw, 150px); }

/* 4 · MAISON ÉLORA — quiet editorial collage */
html.is-h .p-elora { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); column-gap: 7vw; }
html.is-h .p-elora .p-copy { align-self: center; }
html.is-h .p-elora .p-media { height: 100%; }
html.is-h .p-elora .shot-d { width: 46vw; aspect-ratio: 1903 / 909; right: 2vw; bottom: 6%; border-radius: 2px; box-shadow: 0 30px 70px -40px rgba(58,42,34,.45); }
html.is-h .p-elora .shot-m { width: 11vw; min-width: 140px; left: 4vw; top: 2%; border-color: #E6DCCD; border-width: 6px; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(58,42,34,.45); }
html.is-h .p-elora .ochre { position: absolute; left: 4vw; right: 2vw; top: 50%; height: 1px; background: #B8862C; opacity: .6; }
html.is-h .p-elora .p-title { font-size: clamp(64px, 7.6vw, 140px); }

/* 5 · ZEVEN — a street at night, seven letters */
html.is-h .p-zeven { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
html.is-h .p-zeven .z-bg { display: block; position: absolute; inset: 0; z-index: 0; }
html.is-h .p-zeven .z-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; filter: brightness(1.04) saturate(1.06) contrast(1.02); }   /* the campaign photo in its own sunlight */
/* only a soft, warm shade where the copy sits (left) and under the header (top); the woman and the light stay clear */
html.is-h .p-zeven .z-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,19,10,.66) 0%, rgba(30,19,10,.46) 24%, rgba(30,19,10,.14) 44%, rgba(30,19,10,0) 60%),
              linear-gradient(180deg, rgba(30,19,10,.26) 0%, rgba(30,19,10,0) 22%); }
html.is-h .p-zeven .p-copy { text-shadow: 0 1px 2px rgba(24,14,6,.35), 0 2px 26px rgba(24,14,6,.4); }
html.is-h .p-zeven .shot-m img { filter: brightness(1.04) saturate(1.06) contrast(1.02); }
html.is-h .p-zeven .p-media { height: 100%; z-index: 2; }
html.is-h .p-zeven .shot-d { display: none; }
html.is-h .p-zeven .shot-m { width: 13vw; min-width: 150px; right: 6vw; top: 0; }
html.is-h .p-zeven .z-letters {
  display: flex; justify-content: space-between; position: absolute; left: 2vw; right: 2vw; bottom: -4vh; z-index: 1;
  font-family: var(--f-display); font-weight: 800; font-size: 25vh; line-height: .8; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244,239,230,.45); pointer-events: none;
}
html.is-h .p-zeven .z-letters span { display: inline-block; }
html.is-h .p-zeven .p-copy { align-self: start; }

/* HUD for the journey */
.work-hud { display: none; }
html.is-h .work-hud {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px;
  position: absolute; z-index: 6; bottom: 30px;
  left: max(16px, env(safe-area-inset-left, 0px), var(--gutter)); right: max(16px, env(safe-area-inset-right, 0px), var(--gutter));
  pointer-events: none; color: var(--bone);
  mix-blend-mode: difference;
}
.work-hud .hud-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; min-width: 260px; }
.work-hud .hud-bar { position: relative; height: 1px; background: rgba(255,255,255,.35); }
.work-hud .hud-fill { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.work-hud .hud-apex { position: absolute; top: -5px; left: 0; width: 11px; height: 11px; background: #fff; transform: translateX(-50%) rotate(45deg); }

/* ---------- footer ---------- */
.foot {
  position: relative; z-index: 4; background: var(--ink); color: var(--muted); border-top: 1px solid var(--line);
  padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px), var(--gutter));
  padding-right: max(16px, env(safe-area-inset-right, 0px), var(--gutter));
}
.foot-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 32px; }
.foot-logo { justify-self: start; display: block; line-height: 0; border-radius: 6px; transition: opacity .25s; }
.foot-logo img { height: 26px; width: auto; display: block; }
.foot-logo:hover { opacity: .82; }
.foot-logo:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }
.foot-copy { justify-self: center; font-size: 13px; }
.foot-legal { justify-self: end; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13px; }
.foot-legal a { color: var(--soft); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: color .25s, background-size .35s var(--ease-out); }
.foot-legal a:hover, .foot-legal a:focus-visible { color: var(--bone); background-size: 100% 1px; }
.foot-legal a:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 2px; }
@media (max-width: 640px) { .foot-in { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; } .foot-logo, .foot-copy, .foot-legal { justify-self: center; } .foot-legal { justify-content: center; } }

/* ---------- small screens ---------- */
@media (max-width: 899px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-logo img { height: 24px; }
  .hero { align-content: start; padding-block: 120px 56vh; min-height: 100svh; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 72px); }
  .hero-word { font-size: 44vw; top: auto; bottom: 18vh; transform: none; }
  .hero-hint { display: none; }
  .ridge { display: none; }
  .steps-rail { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps-rail-fill { width: 2px; height: 100%; transform-origin: top; transform: scaleY(0); }
  .steps-apex { left: 6px; top: 0; transform: translate(-50%, -50%) rotate(45deg); }
  .steps ol { grid-template-columns: 1fr; gap: 34px; padding-top: 0; padding-left: 36px; }
  .steps p { max-width: 34ch; }
  .project { padding-block: 88px 64px; }
  .panel-intro { padding-block: 120px 28px; }   /* phones: the first project follows right after the intro, in every mode */
  .panel-outro { padding-block: 58vh 90px; }
}

/* ---------- reduced motion: final states, no smooth scroll, no pinning ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .world { display: none; }
}

/* ---------- phones: the five projects slide sideways while the page scrolls (html.is-rail, ≤ 899px) ----------
   The stage pins for a while (ScrollTrigger, scrub) and the strip moves with the scroll; one project per screen,
   the next one peeking in. No horizontal swiping, so nothing competes with vertical scrolling. */
/* phones: the intro hands over to the rail directly (the 58vh breathing room is only for the calm vertical sequence) */
html.is-rail .panel-intro { padding-bottom: 28px; }
html.is-rail .rail-pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; overflow: hidden; padding: 76px 0 max(18px, env(safe-area-inset-bottom, 0px)); contain: paint; }
html.is-rail .work-rail { display: flex; gap: 12px; width: max-content; padding: 0 max(16px, var(--gutter)); will-change: transform; }
html.is-rail .work-rail > .project { flex: 0 0 calc(100vw - 2 * max(16px, var(--gutter)) - 22px); width: calc(100vw - 2 * max(16px, var(--gutter)) - 22px);
  border-radius: 22px; padding: 28px 22px 24px; gap: 20px; align-content: start; max-height: calc(100svh - 150px); overflow: hidden; }
/* inside the strip the screenshots sit together, the phone over the desktop view */
html.is-rail .work-rail .p-media { display: block; overflow: visible; margin: 0; padding: 0 0 18px; position: relative; }
html.is-rail .work-rail .p-media .shot-d { width: 100%; aspect-ratio: 16 / 10; }
html.is-rail .work-rail .p-media .shot-m { position: absolute; right: 8px; bottom: 0; width: 26%; aspect-ratio: 9 / 16; border-width: 3px; border-radius: 12px; }
html.is-rail .work-rail .swipe-hint { display: none; }
html.is-rail .work-rail .p-title { font-size: clamp(38px, 11vw, 54px); }
html.is-rail .work-rail .p-copy > * { transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
html.is-rail .work-rail .project:not(.is-seen) .p-copy > * { opacity: 0; transform: translateY(14px); }
/* short phones: the description gives way first, so a whole project always fits the screen */
@media (max-height: 760px) { html.is-rail .work-rail .p-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } html.is-rail .work-rail .p-media .shot-d { aspect-ratio: 16 / 9; } }
@media (max-height: 680px) { html.is-rail .work-rail .p-meta { display: none; } html.is-rail .work-rail > .project { padding-top: 22px; gap: 14px; } }
/* progress: which project, and how far along the five */
.rail-hud { display: none; }
html.is-rail .rail-hud { display: flex; align-items: center; gap: 14px; padding: 0 max(16px, var(--gutter)); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html.is-rail .rail-hud .rail-bar { position: relative; flex: 1; height: 1px; background: rgba(255, 255, 255, .22); }
html.is-rail .rail-hud .rail-fill { position: absolute; left: 0; top: -0.5px; height: 2px; width: 20%; background: var(--orange); border-radius: 2px; transform-origin: left; }
@media (prefers-reduced-motion: reduce) { html.is-rail .work-rail .p-copy > * { transition: none; } html.is-rail .work-rail .project:not(.is-seen) .p-copy > * { opacity: 1; transform: none; } }
