/* ==========================================================================
   DOBAI HAIR CLINIC
   Dark and monochrome. Everything is built from pigment dots;
   one warm skin tone marks the "needle" (cursor, scan lines, fresh dots).
   ========================================================================== */

:root {
    --ink: #070707;
    --ink-2: #0d0d0e;
    --ink-3: #161617;
    --bone: #ece8e1;
    --soft: #b4b0a8;
    --mute: #86827b;
    --line: rgba(236, 232, 225, 0.1);
    --line-2: rgba(236, 232, 225, 0.24);
    --skin: #e8a57c;

    --ff-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --ff-serif: "Instrument Serif", "Times New Roman", serif;
    --ff-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
    --pad: clamp(20px, 4.5vw, 72px);
    --header-h: 76px;
}

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

html {
    background: var(--ink);
    scroll-behavior: smooth;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}
html.nav-open { overflow: hidden; }

body {
    min-height: 100vh;
    background: var(--ink);
    color: var(--bone);
    font: 400 1rem/1.65 var(--ff-display);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--skin); color: var(--ink); }
:focus-visible { outline: 1px solid var(--skin); outline-offset: 5px; }

main { position: relative; z-index: 1; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(96px, 16vh, 200px) 0; }

.skip {
    position: fixed; left: 12px; top: -60px; z-index: 400;
    padding: 12px 18px; background: var(--bone); color: var(--ink);
    font: 500 0.75rem/1 var(--ff-mono); letter-spacing: 0.1em;
}
.skip:focus { top: 12px; }

/* FIXED LAYERS ----------------------------------------------------------- */
.grain {
    position: fixed; inset: -50%; width: 200%; height: 200%;
    z-index: 200; pointer-events: none; opacity: 0.07;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
    animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-3%, 2%); }
    40%  { transform: translate(2%, -4%); }
    60%  { transform: translate(-4%, -1%); }
    80%  { transform: translate(3%, 3%); }
    100% { transform: translate(0, 0); }
}

/* chapter indicator: the ring is the page progress, the text is where you are */
.indicator {
    position: fixed; right: clamp(14px, 2.2vw, 32px); bottom: clamp(14px, 2.2vw, 28px); z-index: 90;
    display: flex; flex-direction: row-reverse; align-items: center; gap: 12px;
    pointer-events: none; opacity: 0; transform: translate3d(0, 12px, 0);
    transition: opacity 0.5s, transform 0.5s var(--ease);
}
.indicator.is-on { opacity: 1; transform: none; }
.indicator svg { width: 44px; height: 44px; transform: rotate(-90deg); overflow: visible; }
.indicator circle { fill: rgba(7, 7, 7, 0.55); stroke: var(--line-2); stroke-width: 1; }
.indicator .indicator-bar { fill: none; stroke: var(--skin); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 100; }
.indicator .indicator-dot { fill: var(--skin); stroke: none; }
.indicator-text {
    display: grid; text-align: right;
    font: 500 0.62rem/1.55 var(--ff-mono); letter-spacing: 0.2em; text-transform: uppercase;
}
.indicator-text b { font-weight: 500; color: var(--skin); }
.indicator-text i { font-style: normal; color: var(--bone); }

.aura {
    position: fixed; left: 0; top: 0; width: 760px; height: 760px; margin: -380px 0 0 -380px;
    border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0;
    background: radial-gradient(circle, rgba(232, 165, 124, 0.085), rgba(232, 165, 124, 0.025) 40%, transparent 68%);
    transition: opacity 1.2s;
    will-change: transform;
}
.has-cursor .aura { opacity: 1; }

.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; will-change: transform; }
.cursor-dot::before {
    content: ""; position: absolute; width: 6px; height: 6px; margin: -3px;
    border-radius: 50%; background: var(--skin);
    transition: scale 0.3s var(--ease);
}
.cursor-ring::before {
    content: ""; position: absolute; width: 38px; height: 38px; margin: -19px;
    border-radius: 50%; border: 1px solid rgba(236, 232, 225, 0.5);
    transition: scale 0.45s var(--ease), border-color 0.3s, background-color 0.3s;
}
.cursor.is-hero .cursor-ring::before { scale: 2.5; border-style: dashed; border-color: rgba(232, 165, 124, 0.45); }
.cursor.is-view .cursor-ring::before { scale: 2; border-color: var(--bone); }
.cursor.is-link .cursor-ring::before { scale: 1.6; border-color: var(--skin); background-color: rgba(232, 165, 124, 0.1); }
.cursor.is-link .cursor-dot::before { scale: 0; }
.cursor.is-down .cursor-ring::before { scale: 0.75; }

/* HEADER ----------------------------------------------------------------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--header-h); display: flex; align-items: center;
    padding: 0 var(--pad);
    transition: transform 0.6s var(--ease);
}
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(7, 7, 7, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
    opacity: 0; transition: opacity 0.4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo, .footer-logo {
    font: 800 1.02rem/1 var(--ff-display); font-stretch: 125%;
    letter-spacing: 0.26em; color: var(--bone);
}
.logo span, .footer-logo span { font-weight: 300; color: var(--mute); }

.nav-links { display: flex; gap: clamp(22px, 3.4vw, 52px); }
.nav-links a {
    position: relative; display: block; padding: 10px 0;
    font: 500 0.72rem/1 var(--ff-mono); letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--mute); transition: color 0.3s;
}
.nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
    background: var(--bone); transform: scaleX(0); transform-origin: right;
    transition: transform 0.5s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--bone); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current]::before {
    content: ""; position: absolute; left: -13px; top: 50%; width: 5px; height: 5px;
    margin-top: -3px; border-radius: 50%; background: var(--skin);
}

/* language switch: same place on every page */
.lang { display: flex; gap: 2px; margin-left: clamp(22px, 3.4vw, 52px); padding-left: clamp(10px, 1.6vw, 24px); border-left: 1px solid var(--line-2); }
.lang a {
    display: block; padding: 10px 8px;
    font: 500 0.72rem/1 var(--ff-mono); letter-spacing: 0.1em; color: var(--mute); transition: color 0.3s;
}
.lang a:hover { color: var(--bone); }
.lang a[aria-current] { color: var(--skin); }
.nav-links { margin-left: auto; }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.nav-toggle span {
    position: absolute; left: 10px; right: 10px; top: 17px; height: 1.5px; background: var(--bone);
    transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: rotate(-45deg); }

/* SHARED TYPE ------------------------------------------------------------ */
.eyebrow {
    display: inline-flex; align-items: center;
    font: 500 0.72rem/1 var(--ff-mono); letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--mute);
}
.eyebrow i { font-style: normal; color: var(--skin); margin-right: 14px; }

/* CHAPTER GRID ----------------------------------------------------------- */
/* one skeleton for the whole page: a narrow label rail and a content column */
.chapter {
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
    column-gap: clamp(28px, 6vw, 120px); align-items: start;
}
.chapter-rail { position: sticky; top: calc(var(--header-h) + 28px); padding-top: 0.5em; }
.chapter-body { min-width: 0; }

/* alternating bands: a slightly lifted surface for every other chapter */
.tone { background: rgba(236, 232, 225, 0.024); border-block: 1px solid var(--line); }

.h-display {
    font: 800 clamp(2.2rem, 5.2vw, 5rem)/1 var(--ff-display); font-stretch: 118%;
    letter-spacing: -0.025em; text-wrap: balance;
}
.h-display em {
    font: italic 400 1.12em/0.9 var(--ff-serif); font-stretch: normal;
    letter-spacing: -0.01em; color: var(--skin);
}

/* REVEALS ---------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0; transform: translate3d(0, 26px, 0);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* headings split into words by script.js */
.w { display: inline-block; clip-path: inset(-0.24em -0.12em -0.2em -0.12em); }
.wi {
    display: inline-block; transform: translate3d(0, 135%, 0);
    transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms);
}
.is-in .wi { transform: none; }

/* BUTTON ----------------------------------------------------------------- */
.btn {
    position: relative; display: inline-flex; align-items: center; gap: 16px;
    padding: 21px 36px; border: 1px solid var(--line-2);
    font: 500 0.74rem/1 var(--ff-mono); letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--bone); overflow: hidden; isolation: isolate;
    transition: color 0.5s var(--ease), border-color 0.5s, transform 0.35s var(--ease);
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bone);
    transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--bone); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover svg { transform: translateX(6px); }

/* HERO ------------------------------------------------------------------- */
.hero {
    position: relative; height: 100vh; height: 100svh; min-height: 540px;
    display: grid; place-items: center; overflow: hidden; isolation: isolate;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 46% at 50% 44%, rgba(232, 165, 124, 0.075), transparent 72%),
        radial-gradient(circle at 1px 1px, rgba(236, 232, 225, 0.085) 1px, transparent 1.6px) 0 0 / 30px 30px;
    -webkit-mask-image: radial-gradient(78% 72% at 50% 50%, #000 15%, transparent 100%);
    mask-image: radial-gradient(78% 72% at 50% 50%, #000 15%, transparent 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.hero-content {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 0 var(--pad); margin-top: -1vh;
}
.hero-title { display: flex; flex-direction: column; align-items: center; }
.hero-word {
    display: block; white-space: nowrap; letter-spacing: 0;
    font: 900 min(19.6vw, 46vh)/0.74 var(--ff-display); font-stretch: 125%;
}
.js .hero-word { color: transparent; -webkit-user-select: none; user-select: none; }
.js.no-dots .hero-word { color: var(--bone); }

.hero-sub {
    display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px);
    margin-top: clamp(24px, 4.4vh, 48px);
    font: 500 clamp(0.68rem, 1.2vw, 0.98rem)/1 var(--ff-display); font-stretch: 125%;
    letter-spacing: 0.72em; white-space: nowrap;
}
.hero-sub > span { margin-right: -0.72em; }
.hero-sub::before, .hero-sub::after { content: ""; width: clamp(26px, 7vw, 110px); height: 1px; background: var(--line-2); }
.hero-sub::after { margin-left: 0.72em; }
.hero-tag {
    margin-top: clamp(14px, 2.4vh, 26px);
    font: italic 400 clamp(1.3rem, 2.3vw, 1.95rem)/1.1 var(--ff-serif); color: var(--soft);
}
.hero-cta { margin-top: clamp(26px, 4.6vh, 50px); }

.hud {
    position: absolute; z-index: 1;
    font: 500 0.66rem/1 var(--ff-mono); letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--mute); white-space: nowrap;
}
.hud b { font-weight: 500; color: var(--bone); font-variant-numeric: tabular-nums; }
.hud--tl { left: var(--pad); top: calc(var(--header-h) + 16px); }
.hud--bl { left: var(--pad); bottom: 32px; }
.hud--br { right: var(--pad); bottom: 32px; }

.hero-scroll {
    position: absolute; left: 50%; bottom: 24px; z-index: 1; translate: -50% 0;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    font: 500 0.62rem/1 var(--ff-mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--mute);
}
.hero-scroll span { margin-right: -0.3em; }
.hero-scroll i { width: 1px; height: 44px; background: linear-gradient(var(--bone), transparent); animation: drip 2.4s var(--ease-io) infinite; }
@keyframes drip {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* hero text waits for the dots, then rises in */
.js .hero-sub, .js .hero-tag, .js .hero-cta, .js .hud, .js .hero-scroll {
    opacity: 0; transform: translate3d(0, 18px, 0);
    transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.js .hero.is-ready .hero-sub,
.js .hero.is-ready .hero-tag,
.js .hero.is-ready .hero-cta,
.js .hero.is-ready .hud,
.js .hero.is-ready .hero-scroll { opacity: 1; transform: none; }
.js .hero.is-ready .hero-tag { transition-delay: 0.12s; }
.js .hero.is-ready .hero-cta { transition-delay: 0.24s; }
.js .hero.is-ready .hud { transition-delay: 0.5s; }
.js .hero.is-ready .hero-scroll { transition-delay: 0.7s; }

/* MARQUEE ---------------------------------------------------------------- */
.marquee {
    overflow: hidden; white-space: nowrap;
    padding: clamp(22px, 3.2vw, 42px) 0; border-block: 1px solid var(--line);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-group span {
    padding: 0 clamp(18px, 2.6vw, 44px);
    font: 800 clamp(2rem, 6vw, 5.4rem)/1.1 var(--ff-display); font-stretch: 125%;
    letter-spacing: -0.015em; text-transform: uppercase;
}
.marquee-group span:nth-child(4n + 3) { color: transparent; -webkit-text-stroke: 1px rgba(236, 232, 225, 0.6); }
.marquee-group i { flex: none; width: clamp(8px, 1vw, 14px); aspect-ratio: 1; border-radius: 50%; background: var(--skin); }

/* ABOUT ------------------------------------------------------------------ */
.about { padding: clamp(110px, 20vh, 240px) 0 clamp(90px, 15vh, 190px); }

/* key facts under the story, on the same two columns as everything else */
.meta-row {
    margin-top: clamp(48px, 9vh, 110px); padding-top: 22px; border-top: 1px solid var(--line);
    align-items: center;
    font: 500 0.72rem/1.4 var(--ff-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft);
}
.meta-row a { transition: color 0.3s; }
.meta-row a:hover { color: var(--bone); }
.meta-pair { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.meta-cta { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; color: var(--bone); border-bottom: 1px solid var(--skin); }
.meta-cta svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.meta-cta:hover svg { transform: translateX(6px); }

/* full-width image, rebuilt as halftone dots in pure CSS:
   photo + a soft dot pattern, pushed through a hard contrast, so brighter
   areas become bigger dots. Anything bright placed inside .band-screen
   (the sheen, the cursor lens) makes the dots swell. */
.band { margin-top: clamp(56px, 10vh, 120px); }
.band-frame { position: relative; isolation: isolate; }
.band-frame::before {   /* tint the white dots */
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(100deg, var(--bone) 40%, var(--skin)); mix-blend-mode: multiply;
}
.band-frame::after {    /* lift pure black to the page colour */
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: var(--ink); mix-blend-mode: lighten;
}
.band-screen {
    --pitch: clamp(10px, 0.66vw, 15px);
    position: relative; height: clamp(320px, 82vh, 900px); overflow: hidden;
    background: #000; filter: contrast(16);
}
.band-screen img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%;
    filter: grayscale(1) blur(1.5px) contrast(1.45) brightness(1.02);
    opacity: 0.45; transform: scale(1.18); will-change: transform;
}
.js .band-screen img { opacity: 0; transition: opacity 2.6s var(--ease); }
.js .band.is-in .band-screen img { opacity: 0.45; }
.band-screen::before {   /* the dot screen, turned 45° like print halftone */
    content: ""; position: absolute; inset: -60%; z-index: 2;
    background: radial-gradient(circle closest-side, #808080, #000) 0 0 / var(--pitch) var(--pitch);
    mix-blend-mode: screen; transform: rotate(45deg);
}
.band-screen::after {    /* darkens only the photo, so dots taper off toward the top and bottom edge */
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, #000, transparent 30%, transparent 68%, #000);
}
.band-sheen {
    position: absolute; inset: 0 -70%; z-index: 1;
    background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.17) 50%, transparent 58%);
    transform: translate3d(-55%, 0, 0);
}
.band.is-live .band-sheen { animation: sheen 9s linear infinite; }
@keyframes sheen { to { transform: translate3d(55%, 0, 0); } }
.band-lens {
    position: absolute; left: 0; top: 0; z-index: 1; width: 560px; height: 560px; margin: -280px 0 0 -280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.32), transparent 64%);
    transform: translate3d(var(--lx, -999px), var(--ly, -999px), 0);
    opacity: 0; transition: opacity 0.5s;
}
.band.has-lens .band-lens { opacity: 1; }
.band figcaption, .g-item figcaption {
    display: flex; justify-content: space-between; gap: 14px; margin-top: 14px;
    font: 500 0.66rem/1 var(--ff-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute);
}

/* the story: label and list in the rail, text in the column */
.rail-list { display: grid; gap: 14px; }
.eyebrow + .rail-list { margin-top: clamp(22px, 3.4vh, 34px); }
.rail-list li {
    display: flex; align-items: center; gap: 12px;
    font: 500 0.72rem/1.3 var(--ff-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft);
}
.rail-list li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--skin); }
.lead {
    max-width: 22ch;
    font: 600 clamp(1.6rem, 3vw, 2.7rem)/1.14 var(--ff-display); font-stretch: 110%; letter-spacing: -0.02em;
}
.lead + p { margin-top: clamp(22px, 3.5vh, 36px); max-width: 52ch; color: var(--soft); font-size: clamp(1rem, 1.2vw, 1.16rem); }

/* PROCESS ---------------------------------------------------------------- */
.process { position: relative; height: 430vh; }
.process-sticky {
    position: sticky; top: 0; height: 100vh; height: 100svh;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
    gap: clamp(32px, 6vw, 120px);
    max-width: 1480px; margin: 0 auto; padding: var(--header-h) var(--pad) 24px;
}
.process-head .eyebrow { margin-bottom: 26px; }

.steps { margin-top: clamp(26px, 5vh, 54px); border-bottom: 1px solid var(--line); }
.step {
    position: relative; padding: 18px 0 18px 58px; border-top: 1px solid var(--line);
    opacity: 0.34; transition: opacity 0.5s;
}
.step.is-active { opacity: 1; }
.step-bar { position: absolute; left: 0; right: 0; top: -1px; height: 1px; }
.step-bar i { display: block; height: 100%; background: var(--skin); transform: scaleX(0); transform-origin: left; }
.step-n { position: absolute; left: 0; top: 23px; font: 500 0.72rem/1 var(--ff-mono); letter-spacing: 0.1em; color: var(--mute); transition: color 0.4s; }
.step.is-active .step-n { color: var(--skin); }
.step h3 { font: 700 clamp(1.1rem, 1.8vw, 1.55rem)/1.15 var(--ff-display); font-stretch: 112%; letter-spacing: -0.01em; }
.step p {
    display: grid; grid-template-rows: 0fr; max-width: 44ch; color: var(--soft);
    transition: grid-template-rows 0.6s var(--ease), margin-top 0.6s var(--ease);
}
.step p > span { overflow: hidden; }
.step.is-active p { grid-template-rows: 1fr; margin-top: 8px; }

.process-visual { display: grid; place-items: center; min-width: 0; }
.scalp {
    position: relative; width: min(100%, 66vh); aspect-ratio: 1;
    background: radial-gradient(110% 80% at 50% 0%, rgba(236, 232, 225, 0.055), transparent 62%), var(--ink-2);
    border: 1px solid var(--line);
}
.scalp::before {   /* viewfinder corners */
    content: ""; position: absolute; inset: -8px; pointer-events: none;
    --c: linear-gradient(var(--bone), var(--bone));
    background:
        var(--c) left top / 20px 1px, var(--c) left top / 1px 20px,
        var(--c) right top / 20px 1px, var(--c) right top / 1px 20px,
        var(--c) left bottom / 20px 1px, var(--c) left bottom / 1px 20px,
        var(--c) right bottom / 20px 1px, var(--c) right bottom / 1px 20px;
    background-repeat: no-repeat;
}
.scalp canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 22%);
    mask-image: linear-gradient(to bottom, transparent 2%, #000 22%);
}
.scalp-hud {
    position: absolute; z-index: 1;
    font: 500 0.64rem/1 var(--ff-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute);
}
.scalp-hud b { font-weight: 500; color: var(--bone); font-variant-numeric: tabular-nums; }
.scalp-hud--tl { left: 16px; top: 16px; }
.scalp-hud--bl { left: 16px; bottom: 16px; }
.scalp-hud--br { right: 16px; bottom: 16px; color: var(--skin); }

/* GALLERY ---------------------------------------------------------------- */
/* default = swipeable row (phones, reduced motion); .is-pinned = scroll-driven */
.gallery { position: relative; padding: clamp(80px, 12vh, 150px) 0; }
.gallery-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 0 var(--pad); }
.gallery-sub { margin-top: 16px; font: italic 400 clamp(1.25rem, 2vw, 1.7rem)/1.1 var(--ff-serif); color: var(--soft); }
.gallery-count { font: 500 0.72rem/1 var(--ff-mono); letter-spacing: 0.2em; color: var(--mute); white-space: nowrap; }
.gallery-count b { font-weight: 500; color: var(--bone); }
.gallery-title {
    margin-top: 20px; padding: 0 var(--pad);
    font: 900 clamp(3rem, 16vw, 8rem)/0.9 var(--ff-display); font-stretch: 125%;
    letter-spacing: -0.03em; text-transform: uppercase;
}
.gallery-track {
    display: flex; gap: 14px; margin-top: 34px; padding: 0 var(--pad);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.g-item { flex: none; scroll-snap-align: center; }
/* One fixed radius for every gallery photo, so big and small frames match.
   isolation keeps the corners clipped in Safari while the photo moves (transform). */
.g-img { width: min(80vw, 520px); aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-3); border-radius: 16px; isolation: isolate; }
.g-img img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(1) contrast(1.08) brightness(0.8);
    transition: filter 0.8s var(--ease);
}
.g-item:hover .g-img img { filter: grayscale(0) contrast(1) brightness(1); }
.g-item figcaption { justify-content: flex-start; }
.g-item figcaption i { font-style: normal; color: var(--skin); }
.gallery-bar { display: none; }

.gallery.is-pinned { padding: 0; }
.is-pinned .gallery-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.is-pinned .gallery-top { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 20px); z-index: 2; align-items: flex-start; }
.is-pinned .gallery-title {
    position: absolute; left: 0; top: 50%; z-index: 0; margin: 0;
    font-size: min(36vh, 27vw); line-height: 0.8; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1px rgba(236, 232, 225, 0.22);
    transform: translate3d(0, -50%, 0); will-change: transform;
}
.is-pinned .gallery-track {
    position: relative; z-index: 1; width: max-content; overflow: visible; margin: 7vh 0 0;
    padding: 0 16vw 0 54vw; gap: clamp(30px, 5.5vw, 110px); align-items: center;
    scroll-snap-type: none; will-change: transform;
}
.is-pinned .g-img { width: auto; height: 54vh; }
.is-pinned .g-img img { will-change: transform; }
.is-pinned .g-item:nth-child(odd) { margin-top: -4vh; }
.is-pinned .g-item:nth-child(even) { margin-top: 15vh; }
.is-pinned .g-item:nth-child(even) .g-img { height: 40vh; }
.is-pinned .gallery-bar { display: block; position: absolute; left: var(--pad); right: calc(var(--pad) + 190px); bottom: 34px; height: 1px; background: var(--line); }
.is-pinned .gallery-bar i { display: block; height: 100%; background: var(--bone); transform: scaleX(0); transform-origin: left; }

/* QUOTE ------------------------------------------------------------------ */
.quote { display: grid; place-items: center; padding: clamp(120px, 24vh, 280px) var(--pad); }
.quote blockquote {
    max-width: 1120px; text-align: center; text-wrap: balance;
    font: italic 400 clamp(1.9rem, 4.5vw, 4.3rem)/1.14 var(--ff-serif); letter-spacing: -0.01em;
}
.qw { transition: opacity 0.3s linear; }

/* CONTACT ---------------------------------------------------------------- */
.contact { padding: clamp(60px, 10vh, 140px) 0 clamp(80px, 12vh, 150px); }
.contact-title {
    margin-top: 26px;
    font: 900 clamp(3.2rem, 14.2vw, 11.8rem)/0.84 var(--ff-display); font-stretch: 125%;
    letter-spacing: -0.035em; text-transform: uppercase;
}
.contact .chapter { margin-top: clamp(44px, 8vh, 96px); }
.contact-lead { max-width: 14ch; font: italic 400 clamp(1.5rem, 2.5vw, 2.2rem)/1.14 var(--ff-serif); color: var(--soft); }

.contact-rows { border-bottom: 1px solid var(--line); }
.contact-row {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: clamp(76px, 9vw, 120px) 1fr auto; align-items: center; gap: 16px;
    padding: clamp(18px, 2.6vw, 32px) 0; border-top: 1px solid var(--line);
    transition: color 0.45s var(--ease), padding 0.6s var(--ease);
}
.contact-row::before {   /* the old "flip to white" hover, now a wipe */
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bone);
    transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease);
}
.contact-row small { font: 500 0.68rem/1 var(--ff-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); transition: color 0.45s; }
.contact-row strong { font: 700 clamp(1.3rem, 2.7vw, 2.4rem)/1.05 var(--ff-display); font-stretch: 112%; letter-spacing: -0.02em; }
.contact-row svg { width: clamp(22px, 2.2vw, 30px); height: auto; aspect-ratio: 1; transition: transform 0.6s var(--ease); }
.contact-row:hover, .contact-row:focus-visible { color: var(--ink); padding-left: clamp(12px, 2vw, 28px); padding-right: clamp(12px, 2vw, 28px); }
.contact-row:hover small, .contact-row:focus-visible small { color: #55524d; }
.contact-row:hover::before, .contact-row:focus-visible::before { transform: none; }
.contact-row:hover svg { transform: rotate(45deg); }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 5vh, 56px); }
@media (min-width: 1240px) { .contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.contact-grid li { min-width: 0; }
.contact-card {
    position: relative; overflow: hidden; height: 100%; min-height: 190px;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px 22px; background: var(--ink-2); border: 1px solid var(--line);
    transition: border-color 0.4s, transform 0.5s var(--ease);
}
.contact-card::before {   /* spotlight follows the cursor */
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 165, 124, 0.2), transparent 70%);
}
.contact-card:hover, .contact-card:focus-visible { border-color: rgba(232, 165, 124, 0.55); }
.contact-card:hover::before, .contact-card:focus-visible::before { opacity: 1; }
.contact-card.is-static { pointer-events: none; }   /* looks like the others, does nothing */
.contact-icon { position: absolute; left: 22px; top: 24px; width: 30px; height: 30px; color: var(--mute); transition: color 0.4s, transform 0.6s var(--ease); }
.contact-card:hover .contact-icon { color: var(--skin); transform: translateY(-3px) scale(1.08); }
.icon-label { position: relative; font: 800 1rem/1.1 var(--ff-display); font-stretch: 118%; letter-spacing: 0.06em; text-transform: uppercase; }
.icon-action { position: relative; margin-top: 8px; font: 500 0.66rem/1.4 var(--ff-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); overflow-wrap: anywhere; }

/* FOOTER ----------------------------------------------------------------- */
.site-footer { position: relative; z-index: 1; overflow: hidden; border-top: 1px solid var(--line); padding-top: clamp(40px, 7vh, 80px); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 40px; padding: 0 var(--pad); }
.footer-top p { color: var(--mute); font-size: 0.92rem; }
.copyright { margin-top: 22px; padding: 0 var(--pad); font: 500 0.64rem/1.5 var(--ff-mono); letter-spacing: 0.2em; text-transform: uppercase; color: #55524d; }
.footer-word {
    margin-top: clamp(20px, 4vh, 50px); margin-bottom: -0.13em;
    text-align: center; white-space: nowrap; -webkit-user-select: none; user-select: none;
    font: 900 22vw/0.72 var(--ff-display); font-stretch: 125%;
    background: radial-gradient(circle, var(--bone) 1.1px, transparent 1.5px) 0 0 / 5px 5px;
    -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.55;
}

/* SMALL SCREENS ---------------------------------------------------------- */
@media (max-width: 860px) {
    .logo, .footer-logo { font-size: 0.86rem; letter-spacing: 0.2em; }
    .nav-toggle { display: block; order: 3; }
    .nav-links { margin-left: 0; }
    .lang { margin-left: auto; margin-right: 8px; padding-left: 0; border-left: 0; gap: 0; }
    .lang a { padding: 14px 5px; font-size: 0.68rem; letter-spacing: 0.04em; }
    .nav-links {
        position: fixed; inset: 0; z-index: -1;
        flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--pad);
        background: var(--ink); clip-path: inset(0 0 100% 0); visibility: hidden;
        transition: clip-path 0.8s var(--ease-io), visibility 0s 0.8s;
    }
    .nav-open .nav-links { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease-io), visibility 0s; }
    .nav-links a {
        display: inline-block; padding: 6px 0; color: var(--bone);
        font: 800 clamp(2.3rem, 12vw, 4.2rem)/1.15 var(--ff-display); font-stretch: 125%;
        letter-spacing: -0.02em; text-transform: none;
        opacity: 0; transform: translate3d(0, 40px, 0);
        transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    }
    .nav-open .nav-links a { opacity: 1; transform: none; transition-duration: 0.9s; transition-delay: calc(0.2s + var(--n) * 0.07s); }
    .nav-links a::after { display: none; }
    .nav-links a[aria-current]::before { left: auto; right: -20px; width: 8px; height: 8px; margin-top: -4px; }

    .hud--tl { display: none; }
    .hud--bl, .hud--br { bottom: 116px; }

    .indicator-text { display: none; }
    .indicator svg { width: 38px; height: 38px; }

    .chapter { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
    .chapter-rail { position: static; padding-top: 0; }
    .meta-row { row-gap: 14px; }
    .meta-pair { flex-wrap: wrap; }
    .band-screen { --pitch: 8px; height: clamp(240px, 46vh, 440px); }
    .band figcaption span:last-child { display: none; }
    .rail-list { grid-auto-flow: row; }
    .contact-lead { max-width: none; }

    .process { height: 380vh; }
    .process-sticky {
        grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px;
        padding-top: calc(var(--header-h) + 4px);
    }
    .process-copy { display: contents; }
    .process-head { order: 1; }
    .process-head .eyebrow { margin-bottom: 14px; }
    .process-visual { order: 2; }
    .steps { order: 3; margin-top: 0; border-bottom: 0; }
    .step { display: none; padding-top: 16px; }
    .step.is-active { display: block; }
    .scalp { width: min(100%, 40svh); }

    .contact-card { min-height: 160px; padding: 20px 16px; }
    .contact-icon { left: 16px; top: 20px; }
    .icon-label { font-size: 0.9rem; letter-spacing: 0.03em; }
    .icon-action { letter-spacing: 0.03em; }
    .gallery-title { font-size: clamp(3rem, 15vw, 8rem); }
    .contact-row { grid-template-columns: 1fr auto; }
    .contact-row small { grid-column: 1 / -1; }
}

/* phones held upright: taller, condensed wordmark so the dots stay big */
@media (max-width: 860px) and (orientation: portrait) {
    .hero-word { font-size: min(36vw, 30vh); font-stretch: 62.5%; }
}

@media (max-width: 400px) {
    .logo { font-size: 0.76rem; letter-spacing: 0.14em; }
    .nav-toggle { flex: none; }
    .contact-title { font-size: 13.4vw; }
    .icon-label { font-size: 0.78rem; }
}

/* NO JAVASCRIPT ---------------------------------------------------------- */
html:not(.js) .process { height: auto; padding: 96px 0; }
html:not(.js) .process-sticky { position: static; height: auto; grid-template-columns: 1fr; }
html:not(.js) .process-visual, html:not(.js) .nav-toggle, html:not(.js) .cursor { display: none; }
html:not(.js) .step { opacity: 1; display: block; }
html:not(.js) .step p { grid-template-rows: 1fr; margin-top: 8px; }
html:not(.js) .wi { transform: none; }
html:not(.js) .nav-links { position: static; flex-direction: row; clip-path: none; visibility: visible; background: none; padding: 0; gap: 16px; }
html:not(.js) .nav-links a { font: 500 0.66rem/1 var(--ff-mono); opacity: 1; transform: none; letter-spacing: 0.1em; text-transform: uppercase; }

/* REDUCED MOTION --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .grain, .hero-scroll i, .band.is-live .band-sheen { animation: none; }
    .js [data-reveal], .wi,
    .js .hero-sub, .js .hero-tag, .js .hero-cta, .js .hud, .js .hero-scroll {
        opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important;
    }
    .js .band-screen img { opacity: 0.45 !important; transition: none !important; }
}
