/* Tom le Créateur, site v2 "L'Épure": the Compagnon's full-size drawing traced on the workshop floor.
   Slate ground, zinc construction lines, slate-tile cuts, one fixed frame. */

@property --r { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --g { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --ink: #16191B;        /* wet slate, blackened steel */
  --slate: #2B3133;
  --slate-2: #22282A;
  --slate-blue: #56646A;
  --zinc: #9AA1A3;
  --plaster: #EDE7DA;    /* lime plaster */
  --plaster-2: #E2DACA;
  --oak: #C8A574;
  --oak-shadow: #7A5A36;
  --copper: #B5653A;
  --verdigris: #4F9483;
  --moss: #A9C23F;

  --line: color-mix(in srgb, currentColor 32%, transparent);
  --bg: var(--ink);
  --fg: var(--plaster);

  --inset: 16px;
  --rail: 72px;
  --pad: 40px;                                 /* gutter inside the frame */
  --left: calc(var(--inset) + var(--rail) + var(--pad));
  --right: calc(var(--inset) + var(--pad));
  --cut: 14px;
  --sec: clamp(48px, 5.5vh, 68px);              /* section padding: one rhythm for the whole page */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --f-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --f-text: "Instrument Sans", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;
  --f-latin: "Instrument Serif", Georgia, serif;
}
@media (max-width: 760px) {
  :root { --inset: 10px; --rail: 0px; --pad: 16px; --cut: 10px; --sec: 56px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ink); color: var(--plaster);
  font: 400 17px/1.5 var(--f-text); font-variation-settings: "wdth" 96;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--copper); color: var(--ink); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.display {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-variation-settings: "wdth" 75, "opsz" 96; line-height: .84; letter-spacing: -.035em;
}
.mono {
  font-family: var(--f-mono); font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: .04em;
  font-variation-settings: "wdth" 87; font-weight: 400;
}
.latin { font-family: var(--f-latin); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1.25em; }
.kicker { display: flex; gap: 12px; align-items: baseline; color: var(--zinc); margin-bottom: 18px; }
[data-tone="light"] .kicker { color: var(--slate-blue); }
.scribe { color: var(--copper); letter-spacing: .1em; }
.skip { position: fixed; left: 24px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--copper); color: var(--ink); }
.skip:focus { top: 24px; }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* grain: one static noise tile, jittered at 8 fps */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(8) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0) } 25% { transform: translate(-3%,2%) } 50% { transform: translate(2%,-3%) } 75% { transform: translate(-1%,3%) } }

/* ------------------------------------------------------------- buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 22px 0 20px;
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  font-variation-settings: "wdth" 87; isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  transition: background-color .35s, color .35s;
}
.btn--copper { background: var(--copper); color: var(--ink); }
.btn--copper:hover { background: var(--plaster); }
[data-tone="light"] .btn--copper:hover, .hud.is-light .btn--copper:hover { background: var(--ink); color: var(--plaster); }
.btn--ghost { background: color-mix(in srgb, var(--ink) 45%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--plaster); }
.btn--ghost:hover { background: var(--plaster); color: var(--ink); }
.btn--line { background: currentColor; }
.btn--line::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--bg); clip-path: polygon(0 0, calc(100% - 10.5px) 0, 100% 10.5px, 100% 100%, 0 100%); transition: background-color .35s; }
.btn--line > * { color: var(--fg); transition: color .35s; }
.btn--line:hover::before { background: transparent; }
.btn--line:hover > * { color: var(--bg); }
.btn--big { height: 60px; padding: 0 30px; font-size: 12px; }
.roll { display: block; overflow: hidden; height: 1.5em; line-height: 1.5em; }
.roll-in { display: block; transition: transform .5s var(--ease); }
.roll-in::after { content: attr(data-text); display: block; }
.btn:hover .roll-in, .btn:focus-visible .roll-in { transform: translateY(-100%); }

/* ------------------------------------------------------------- loader */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; gap: 18px; background: var(--ink);
  transition: clip-path 1.1s var(--ease-io), visibility 0s 1.1s; clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader-trait { width: min(560px, 80vw); fill: none; stroke: var(--plaster); stroke-width: 1; }
.loader-trait path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--lp, 0)); transition: stroke-dashoffset .4s linear; }
.loader-trait .lt-arc { stroke: var(--copper); stroke-dashoffset: calc(1 - clamp(0, (var(--lp, 0) - .7) / .3, 1)); }
.loader-trait .lt-tick { stroke-dashoffset: 0; opacity: .5; }
.loader-row { display: flex; justify-content: space-between; width: min(560px, 80vw); padding: 0 calc(min(560px, 80vw) * .033); color: var(--zinc); }

/* ------------------------------------------------------------- frame */
.frame { position: fixed; inset: 0; z-index: 65; pointer-events: none; color: var(--plaster); }
.frame--light { color: var(--ink); clip-path: inset(100% 0 0 0); }
.fr-border { position: absolute; inset: var(--inset); border: 1px solid var(--line); }
.fr-corner { position: absolute; width: 15px; height: 15px; }
.fr-corner::before, .fr-corner::after { content: ""; position: absolute; background: currentColor; }
.fr-corner::before { left: 7px; top: 0; width: 1px; height: 15px; }
.fr-corner::after { top: 7px; left: 0; height: 1px; width: 15px; }
.c1 { left: calc(var(--inset) - 7px); top: calc(var(--inset) - 7px); }
.c2 { right: calc(var(--inset) - 7px); top: calc(var(--inset) - 7px); }
.c3 { left: calc(var(--inset) - 7px); bottom: calc(var(--inset) - 7px); }
.c4 { right: calc(var(--inset) - 7px); bottom: calc(var(--inset) - 7px); }
.fr-rail { position: absolute; left: var(--inset); top: var(--inset); bottom: var(--inset); width: var(--rail); border-right: 1px solid var(--line); }
.fr-no { position: absolute; top: 22px; left: 0; right: 0; text-align: center; color: var(--copper); }
.fr-chapter { position: absolute; left: 50%; top: 50%; white-space: nowrap; transform: translate(-50%, -50%) rotate(-90deg); letter-spacing: .14em; }
.fr-ruler { position: absolute; right: 0; top: 64px; bottom: 64px; width: 16px; opacity: .55;
  background:
    linear-gradient(to bottom, currentColor 1px, transparent 1px) 100% 0 / 13px 80px repeat-y,
    linear-gradient(to bottom, currentColor 1px, transparent 1px) 100% 0 / 5px 8px repeat-y; }
.fr-ruler-fill { position: absolute; right: -1px; top: 0; width: 2px; height: calc(var(--p, 0) * 100%); background: var(--copper); }
.fr-tc { position: absolute; left: calc(var(--inset) + var(--rail) + 18px); bottom: calc(var(--inset) + 12px); display: flex; gap: 8px; letter-spacing: .1em; opacity: var(--tc-o, 1); transition: opacity .5s; }
.fr-tc-sep { opacity: .4; }
.fr-scale { position: absolute; right: calc(var(--inset) + 18px); bottom: calc(var(--inset) + 12px); opacity: .45; }
@media (max-width: 760px) {
  .fr-rail { width: auto; right: var(--inset); bottom: auto; height: 0; border: 0; }
  .fr-no, .fr-chapter { display: none; }
  .fr-ruler { top: -1px; left: 0; right: 0; bottom: auto; width: auto; height: 2px; background: none; opacity: 1; }
  .fr-ruler-fill { top: 0; right: auto; left: 0; height: 2px; width: calc(var(--p, 0) * 100%); }
  .fr-tc { left: calc(var(--inset) + 12px); bottom: calc(var(--inset) + 8px); font-size: 10px; }
  .fr-scale { display: none; }
}

/* ------------------------------------------------------------- HUD */
.hud {
  position: fixed; z-index: 60; top: var(--inset); left: calc(var(--inset) + var(--rail)); right: var(--inset); height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 18px; color: var(--plaster);
  transition: color .4s; pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud.is-light { color: var(--ink); }
/* title block: once past the film the HUD sits on solid ground, so no headline runs under it */
.hud::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * var(--inset)); bottom: 0; left: calc(-1 * (var(--inset) + var(--rail))); right: calc(-1 * var(--inset)); background: var(--ink);
  opacity: 0; transition: opacity .35s, background-color .4s; pointer-events: none; }
.hud::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: 0; transition: opacity .35s; pointer-events: none; }
.hud.is-banded::before { opacity: 1; }
.hud.is-banded::after { opacity: .28; }
.hud.is-light::before { background: var(--plaster); }
.hud-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.hud-mark { width: 18px; height: 18px; background: currentColor; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); }
.hud-right { display: flex; align-items: center; gap: 22px; height: 100%; }
.hud-cta { height: 64px; padding: 0 24px; }
.sound { display: flex; align-items: center; gap: 2px; height: 28px; padding: 0 6px; color: inherit; opacity: .6; transition: opacity .3s; }
.sound:hover, .sound.is-on { opacity: 1; }
.sound i { display: block; width: 2px; height: 3px; background: currentColor; transition: height .4s var(--ease); }
.sound.is-on i { animation: eq 1.4s ease-in-out infinite alternate; }
.sound.is-on i:nth-child(2) { animation-delay: -.5s; animation-duration: 1.1s; }
.sound.is-on i:nth-child(3) { animation-delay: -.9s; animation-duration: 1.7s; }
.sound.is-on i:nth-child(4) { animation-delay: -.2s; animation-duration: 1.25s; }
@keyframes eq { from { height: 3px; } to { height: 13px; } }
.rm .sound.is-on i { animation: none; height: 9px; }
.lang { display: flex; gap: 6px; align-items: center; font-family: var(--f-mono); font-size: 11px; }
.lang span { opacity: .4; }
.lang button { padding: 6px 2px; opacity: .55; letter-spacing: .06em; position: relative; }
.lang button[aria-pressed="true"] { opacity: 1; }
.lang button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.lang button:hover { opacity: 1; }
@media (max-width: 760px) {
  .hud { height: 52px; padding-left: 12px; }
  .hud-brand span:last-child { display: none; }
  .hud-cta { height: 52px; padding: 0 14px; }
  .hud-right { gap: 14px; }
}

/* ------------------------------------------------------------- cursor */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; mix-blend-mode: difference; color: #fff; opacity: 0; transition: opacity .3s; }
  .js .cursor.is-on { opacity: 1; }
  .js body.has-cursor, .js body.has-cursor a, .js body.has-cursor button, .js body.has-cursor label { cursor: none; }
}
.cur-ring { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid currentColor; border-radius: 50%;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), border-color .3s; }
.cur-x { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; }
.cur-x::before, .cur-x::after { content: ""; position: absolute; background: currentColor; }
.cur-x::before { left: 5.5px; top: 0; width: 1px; height: 12px; }
.cur-x::after { top: 5.5px; left: 0; height: 1px; width: 12px; }
.cur-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; opacity: 0; transition: opacity .3s; font-size: 10px; letter-spacing: .12em; }
.cursor.is-link .cur-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: currentColor transparent currentColor currentColor; animation: arc 1.6s linear infinite; }
.cursor.is-film .cur-ring { width: 112px; height: 112px; margin: -56px 0 0 -56px; }
.cursor.is-film .cur-x { opacity: 0; }
.cursor.is-film .cur-label { opacity: 1; }
@keyframes arc { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- split text */
.w { text-indent: 0; display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .02em .06em; margin: -.14em -.02em -.06em; }
.wi, .c { display: inline-block; }
.js [data-split] .wi { transform: translateY(105%); transition: transform 1s var(--ease) calc(var(--i, 0) * 22ms); }
.js [data-split="chars"] .wi { transform: none; transition: none; }
.js [data-split="chars"] .c { transform: translateY(108%); transition: transform 1.1s var(--ease) calc(var(--i, 0) * 34ms); }
.js [data-split].is-in .wi, .js [data-split="chars"].is-in .c { transform: none; }

/* ------------------------------------------------------------- tiles (slate cut) */
.tile {
  position: relative; overflow: hidden; background: var(--slate);
  clip-path: polygon(0 0, calc(100% - var(--cut) * 2) 0, 100% min(var(--cut) * 2, var(--r) * 100%), 100% calc(var(--r) * 100%), 0 calc(var(--r) * 100%));
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { /* two nail holes, like a hung slate */
  content: ""; position: absolute; top: 14px; left: 50%; width: 30px; height: 5px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle at 2.5px 2.5px, rgba(10, 12, 13, .75) 2px, rgba(255,255,255,.18) 2.6px, transparent 3.2px) 0 0 / 25px 5px repeat-x;
}
.step .tile:not(.tile--joint)::before, .og-frame::before, .tom-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 50%), rgba(255, 196, 128, .32), rgba(255, 170, 96, .1) 22%, transparent 46%);
  mix-blend-mode: soft-light; }
.step .tile:not(.tile--joint).is-lit::before, .og-frame.is-lit::before, .tom-photo.is-lit::before { opacity: 1; }
.step .tile:not(.tile--joint) img, .og-frame img { transition: transform 1.2s var(--ease); }
.step .tile.is-in.is-lit img, .og-frame.is-in.is-lit img.is-on { transform: scale(1.05) translate(calc(var(--tx, 0) * -2%), calc(var(--ty2, 0) * -2%)); }
.js [data-reveal] { --r: 0; transition: --r 1.4s var(--ease-io); }
.js [data-reveal] img { transform: scale(1.14); transition: transform 2s var(--ease); }
.js [data-reveal].is-in { --r: 1; }
.js [data-reveal].is-in img { transform: none; }

/* ------------------------------------------------------------- dimension lines */
.dim { position: absolute; left: var(--x); top: var(--y); color: currentColor; pointer-events: none; z-index: 2; }
.dim--h { width: var(--w); height: 30px; margin-top: -15px; }
.dim--v { height: var(--h); width: 30px; margin-left: -15px; }
.dim svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1; }
.dim path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease-io) .3s; }
.dim .dim-ext { transition-delay: 0s; opacity: .6; }
.dim.is-in path { stroke-dashoffset: 0; }
.dim-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 2px 8px; white-space: nowrap; background: var(--bg); color: var(--fg); opacity: 0; transition: opacity .4s 1s; }
.dim--v .dim-label { transform: translate(-50%, -50%) rotate(-90deg); }
.dim.is-in .dim-label { opacity: 1; }
.dim--on-img { color: var(--plaster); }
.dim--on-img .dim-label { background: var(--ink); color: var(--plaster); }

/* ------------------------------------------------------------- 1 film */
.film { position: relative; height: calc(var(--film-scroll) + 100svh); }
.film-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--ink); }
.film-poster img, .film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-canvas { opacity: 0; transition: opacity .6s; }
.film-canvas[data-drawn="1"] { opacity: 1; }
.film-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14,16,17,.86) 0%, rgba(14,16,17,.35) 32%, transparent 58%),
              linear-gradient(to right, rgba(14,16,17,.55), transparent 40%); }
.film-hit { position: absolute; inset: 0; }
.hero { position: absolute; left: var(--left); right: var(--right); bottom: 150px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; pointer-events: none; }
.hero-title { font-size: clamp(64px, 15.6vw, 300px); color: var(--plaster); --out: 0; opacity: clamp(0, 1.5 - var(--out) * 1.6, 1); }
.ht-line { display: block; }
.ht-line + .ht-line { margin-left: .9em; }
.js .hero-title.is-in .c { transform: translateY(calc(clamp(0, var(--out) * 2.6 - var(--i) * .1, 1) * -118%)); }
.hero-title.is-settled .c { transition: none; }
.hero-side { width: min(320px, 26vw); padding-bottom: 1.2vw; opacity: calc(1 - var(--out, 0) * 2.2); }
.hero-lede { font-size: 17px; line-height: 1.45; margin-bottom: 28px; }
.hero-hint { display: flex; align-items: center; gap: 14px; color: var(--zinc); }
.hero-hint i { width: 1px; height: 38px; background: linear-gradient(currentColor 50%, transparent 0) 0 0 / 1px 200%; animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.still-only { display: none; }

/* the outro: the film holds on the whole piece; a closing line and a cue to keep going */
.film-outro { position: absolute; left: var(--left); right: var(--right); bottom: 150px; display: grid; justify-items: start; gap: 0; pointer-events: none; }
.film-outro .kicker { margin-bottom: 14px; opacity: 0; transform: translateY(10px); transition: opacity 1.2s, transform 1.2s var(--ease); }
.fo-title { font-size: clamp(48px, 8.4vw, 168px); max-width: 11ch; clip-path: inset(0 0 100% 0); transform: translateY(30px);
  transition: clip-path 2.2s var(--ease-io) .15s, transform 2.2s var(--ease) .15s; }
.fo-line { margin-top: 18px; max-width: 42ch; font-size: clamp(16px, 1.15vw, 19px); opacity: 0; transition: opacity 1.4s 1.1s; }
.fo-cue { margin-top: 26px; display: flex; align-items: center; gap: 14px; color: var(--plaster); opacity: 0; transition: opacity .9s .55s; pointer-events: auto; transition-delay: 1.6s; transition-duration: 1.4s; }
.fo-cue i { width: 1px; height: 44px; background: linear-gradient(currentColor 50%, transparent 0) 0 0 / 1px 200%; animation: drip 1.8s var(--ease-io) infinite; }
.fo-cue:hover span { text-decoration: underline; text-underline-offset: 4px; }
.film-outro.is-on .kicker { opacity: 1; transform: none; }
.film-outro.is-on .fo-title { clip-path: inset(-10% 0 -10% 0); transform: none; }
.film-outro.is-on .fo-line, .film-outro.is-on .fo-cue { opacity: 1; }
.film.is-end .film-shade { background: linear-gradient(to top, rgba(14,16,17,.9) 0%, rgba(14,16,17,.5) 42%, transparent 72%),
  linear-gradient(to right, rgba(14,16,17,.7), transparent 55%); }
.film-shade { transition: background .8s; }
.film-caption { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); text-align: center; pointer-events: none; opacity: 0; transition: opacity .6s; }
.film-caption.is-on { opacity: 1; }
.fc-title { font-size: clamp(28px, 3.2vw, 52px); }
.fc-line { margin-top: 10px; font-size: 15px; color: color-mix(in srgb, var(--plaster) 80%, transparent); }
.film-caption .c { display: inline-block; }

.film-controls { position: absolute; left: var(--left); right: var(--right); bottom: 46px; display: flex; align-items: flex-end; gap: 28px; }
.play { flex: none; }
.play-icon { width: 10px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.film.is-playing .play-icon { clip-path: polygon(0 0, 35% 0, 35% 100%, 65% 100%, 65% 0, 100% 0, 100% 100%, 0 100%); }
.film.is-buffering .play-icon { animation: pulse .8s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
.ruler { position: relative; flex: 1; height: 44px; }
.ruler-track { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; cursor: pointer; touch-action: none; }
.ruler-ticks { position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--plaster) 1px, transparent 1px) 0 100% / calc(100% / var(--secs, 4)) 100% repeat-x,
    linear-gradient(to right, color-mix(in srgb, var(--plaster) 55%, transparent) 1px, transparent 1px) 0 100% / calc(100% / var(--minor, 16)) 45% repeat-x;
}
.ruler-track::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: color-mix(in srgb, var(--plaster) 55%, transparent); }
.ruler-played { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--copper); }
.ruler-head { position: absolute; bottom: 0; left: calc(var(--p, 0) * 100%); width: 1px; height: 30px; background: var(--copper); }
.ruler-head::before { content: ""; position: absolute; top: -6px; left: -4px; border: 4.5px solid transparent; border-top: 6px solid var(--copper); }
.ruler-chapters { position: absolute; left: 0; right: 0; bottom: 26px; height: 18px; }
.ruler-chapters li { position: absolute; left: var(--x); bottom: 0; }
.ruler-chapters button { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, var(--plaster) 60%, transparent); padding: 2px 0 2px 8px; border-left: 1px solid currentColor; white-space: nowrap; transition: color .3s; }
.ruler-chapters li.end { transform: translateX(-100%); }
.ruler-chapters button[aria-current="true"], .ruler-chapters button:hover { color: var(--plaster); }
.ruler-chapters button[aria-current="true"] { border-color: var(--copper); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; bottom: 176px; gap: 18px; }
  .hero-title { font-size: 25vw; }
  .ht-line + .ht-line { margin-left: 0; }
  .hero-side { width: 82%; padding: 0; }
  .hero-lede { font-size: 15px; margin-bottom: 0; }
  .hero-hint { display: none; }
  .film-controls { bottom: 34px; flex-direction: column; align-items: stretch; gap: 14px; }
  .play { align-self: flex-start; }
  .ruler { flex: none; height: 48px; }
  .ruler-chapters button { font-size: 9px; }
  .film-caption { bottom: 176px; width: 80%; }
  .film-outro { bottom: 176px; }
}

/* ------------------------------------------------------------- 2 the atelier: one line + five stations */
.vision { position: relative; padding: var(--sec) var(--right) var(--sec) var(--left); }
.trait { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--zinc); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .35; pointer-events: none; }
.trait path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--d, 0)); }
.vision-grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.vision-title { grid-column: 1 / span 7; font-size: clamp(40px, 4.7vw, 88px); max-width: 15.5ch; position: relative; }
.moss {
  color: transparent; -webkit-text-fill-color: transparent;
  background:
    linear-gradient(var(--plaster), var(--plaster)) 0 0 / 100% calc((1 - var(--g, 0)) * 100%) no-repeat,
    linear-gradient(rgba(169,194,63,.28), rgba(169,194,63,.28)),
    url("../media/stills/moss-texture.webp") 50% 50% / 240% auto;
  -webkit-background-clip: text; background-clip: text;
}
.vision-body { grid-column: 9 / -1; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; max-width: 40ch; }
[data-tone="light"] { --bg: var(--plaster); --fg: var(--ink); background: var(--plaster); color: var(--ink); --line: rgba(22,25,27,.22); }

.work-track { position: relative; margin-top: 36px; }
.cordeau { position: absolute; left: 0; right: 0; top: 20px; height: 10px; width: 100%; margin-top: -5px; fill: none; stroke: var(--verdigris); stroke-width: 2; overflow: visible; }
.cordeau path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--d, 0)); }
.work-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative; }
.step { display: grid; grid-template-rows: auto auto 1fr; align-content: start; }
.step .tile { aspect-ratio: 1; margin-top: 14px; }
.step .step-no { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: 48px; line-height: .8; letter-spacing: -.04em;
  justify-self: start; padding-right: 12px; background: var(--ink);
  color: transparent; -webkit-text-stroke: 1px var(--zinc); transition: color .8s, -webkit-text-stroke-color .8s; }
.step.is-on .step-no { color: var(--plaster); -webkit-text-stroke-color: transparent; }
.step h3 { font-size: clamp(22px, 1.7vw, 30px); margin: 14px 0 6px; }
.step p { font-size: 14.5px; max-width: 30ch; color: color-mix(in srgb, var(--plaster) 82%, transparent); }
.step .tile--joint { background: var(--slate-2); color: var(--plaster); }
.step .tile--joint svg { position: absolute; inset: 8%; width: 84%; height: 84%; fill: none; stroke: currentColor; stroke-width: 1.2; }
.step .tile--joint .j-guide { stroke: var(--zinc); stroke-dasharray: 3 5; opacity: .5; stroke-width: .8; }
.step .tile--joint path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io) .3s; }
.step .tile--joint.is-in path[pathLength] { stroke-dashoffset: 0; }
.sr-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.step .tile--joint .j-hatch { stroke: var(--oak); opacity: .7; stroke-width: .8; }
.step .tile--joint .j-hatch:first-of-type { stroke: var(--oak-shadow); }
.step .tile--joint .j-oak { stroke: var(--oak); }
.step .tile--joint .j-land { stroke: var(--moss); stroke-width: 1; }
.step .tile--joint .j-tree { stroke: var(--moss); stroke-width: .9; }
.step .tile--joint .j-glass { stroke: var(--zinc); opacity: .45; stroke-width: .7; }
.step .tile--joint .j-dim { stroke: var(--zinc); stroke-width: .8; }
.step .tile--joint .j-txt { fill: var(--zinc); stroke: none; font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; }
@media (max-width: 899px) {
  .vision-title, .vision-body { grid-column: 1 / -1; }
  .vision-title { font-size: 11.6vw; }
  .work-track { margin-top: 32px; }
  .cordeau { display: none; }
  .work-list { grid-template-columns: 1fr; gap: 22px; border-left: 2px solid var(--verdigris); padding-left: 16px; }
  .step { grid-template-columns: 34% 1fr; grid-template-rows: auto 1fr; column-gap: 16px; }
  .step .step-no { grid-column: 1 / -1; font-size: 40px; background: none; }
  .step .tile { margin-top: 10px; }
  .step-text { margin-top: 10px; min-width: 0; }
  .step h3 { margin-top: 0; }
}

/* ------------------------------------------------------------- 5 piece */
.piece-pin { position: relative; height: 102vh; }
.piece-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; perspective: 1400px; }
.piece-card {
  --ix: 30%; --iy: 18%; --c: 34px;
  position: absolute; inset: 0; background: var(--slate); transform-origin: 50% 100%;
  clip-path: polygon(var(--ix) var(--iy), calc(100% - var(--ix) - var(--c)) var(--iy), calc(100% - var(--ix)) calc(var(--iy) + var(--c)), calc(100% - var(--ix)) calc(100% - var(--iy)), var(--ix) calc(100% - var(--iy)));
  will-change: transform, clip-path;
}
.pl { position: absolute; inset: -4%; will-change: transform; }
.pl img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 50%; }
.pl-back { transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px), 0) scale(var(--sb, 1.12)); }
.pl-front { transform: translate3d(calc(var(--px, 0) * 22px), calc(var(--py, 0) * 14px + var(--fy, 0) * 1vh), 0) scale(var(--sf, 1)); }
.pl-word { inset: auto; left: 0; right: 0; top: 50%; transform: translate3d(calc(var(--wx, 0) * var(--wxk, 1vw) + var(--px, 0) * 4px), -58%, 0); text-align: center;
  font-size: 25vw; color: var(--plaster); white-space: nowrap; opacity: .88; }
.pl-glass { inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(237,231,218,.10) 38%, transparent 44%, transparent 58%, rgba(237,231,218,.06) 62%, transparent 66%);
  transform: translate3d(calc(var(--px, 0) * -40px + var(--gx, 0) * 1vw), 0, 0); mix-blend-mode: screen; }
.piece-caption { position: absolute; left: 50%; bottom: 6vh; transform: translateX(-50%); color: var(--plaster); text-align: center; white-space: nowrap; opacity: var(--cap, 0); }
@media (max-width: 760px) {
  .piece-card { --ix: 8%; --iy: 22%; }
  .pl img { object-position: 47% 50%; }
  .pl-word { top: 24%; --wxk: .3vw; }
  .piece-caption { white-space: normal; width: 86%; }
}

/* ------------------------------------------------------------- 6 tom */
.tom { position: relative; padding: var(--sec) var(--right) var(--sec) var(--left); overflow: clip; }
.tom-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; position: relative; }
.tom-text { grid-column: 1 / span 5; position: relative; z-index: 2; }
.tom-title { font-size: clamp(40px, 4.4vw, 84px); }
.tom-body { margin-top: 20px; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; max-width: 44ch; }
.tom-sites { margin-top: 28px; }
.tom-sites-label { color: var(--zinc); margin-bottom: 8px; }
.tom-sites-list li { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: 15.5px;
  opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .7s var(--ease); transition-delay: calc(var(--i) * .12s); }
.tom-sites-list li .mono { color: var(--copper); }
.tom-sites.is-in li { opacity: 1; transform: none; }
.tom-photo { grid-column: 7 / -1; aspect-ratio: 3 / 2; --cut: 22px; }
.tom-photo img { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; }
.tp-sky { transform: translate3d(calc(var(--px, 0) * -8px), calc(var(--ty, 0) * -24px), 0) scale(1.04); }
.tp-front { transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--ty, 0) * 18px + var(--py, 0) * 8px), 0); }
.js [data-reveal].tom-photo img { transition: none; }
@media (max-width: 900px) {
  .tom-text, .tom-photo { grid-column: 1 / -1; }
  .tom-photo { margin-top: 28px; }
}

/* ------------------------------------------------------------- 7 order (light) */
.order { padding: var(--sec) var(--right) var(--sec) var(--left); position: relative; }
.order-head { margin-bottom: 22px; }
.order-title { font-size: clamp(40px, 4.4vw, 84px); }
.order-intro { margin-top: 10px; max-width: 44ch; font-size: clamp(16px, 1.15vw, 19px); }
.order-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.order-main { grid-column: 1 / span 7; }
.order-form { display: grid; gap: 30px; }
.field label { padding: 0; margin-bottom: 8px; color: var(--slate-blue); display: block; }
.field--q label { display: flex; align-items: baseline; gap: 14px; color: var(--ink); margin-bottom: 4px; }
.q-no { color: var(--copper); }
.q-text { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 75, "opsz" 96;
  letter-spacing: -.02em; line-height: .95; font-size: clamp(24px, 2vw, 36px); }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 8px 0 10px; font-size: 18px; border-radius: 0; resize: none; overflow: hidden; transition: border-color .3s; }
.field--q textarea { padding-left: calc(14px + 2.4ch); line-height: 1.45; min-height: 3.2em; }
.field input::placeholder, .field textarea::placeholder { color: rgba(22,25,27,.35); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--copper); box-shadow: 0 1px 0 var(--copper); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { position: relative; }
.err { position: absolute; left: 0; top: 100%; color: #9c3c18; margin-top: 3px; }
.order-submit { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 4px; }
.order-sent { font-size: 15px; }
.order-gallery { grid-column: 8 / -1; position: sticky; top: 96px; }
.og-frame { aspect-ratio: 4 / 5; --cut: 22px; cursor: pointer; }
.og-frame img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1.6s var(--ease-io), transform 7s linear; }
.og-frame img.is-on { opacity: 1; transform: scale(1); }
.js .og-frame[data-reveal] img { transform: scale(1.06); }
.js .og-frame[data-reveal].is-in img.is-on { transform: scale(1); }
.og-cap { display: flex; gap: 14px; margin-top: 12px; color: var(--slate-blue); }
.og-no { color: var(--copper); flex: none; }
@media (max-width: 900px) {
  .order-main, .order-gallery { grid-column: 1 / -1; }
  .order-gallery { position: relative; top: 0; margin-top: 12px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- footer */
.foot { position: relative; padding: 36px var(--right) calc(var(--inset) + 36px) var(--left); overflow: hidden; }
.foot-mark { font-size: 12vw; white-space: nowrap; line-height: .8; }
.fm-text {
  color: transparent; -webkit-text-fill-color: transparent;
  background:
    linear-gradient(var(--plaster), var(--plaster)) 0 0 / 100% calc((1 - var(--g, 0)) * 100%) no-repeat,
    url("../media/stills/panorama.webp?v=1") 50% calc(42% + var(--g, 0) * 8%) / 100% auto no-repeat var(--ink);
  -webkit-background-clip: text; background-clip: text;
}
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--zinc); }
.foot-row .link { color: var(--plaster); }

/* ------------------------------------------------------------- credits dialog */
.credits { border: 0; padding: 0; background: transparent; color: var(--plaster); max-width: min(980px, 92vw); width: 100%; }
.credits::backdrop { background: rgba(10, 12, 13, .82); backdrop-filter: blur(6px); }
.credits-in { background: var(--slate-2); padding: 34px; clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%); --bg: var(--slate-2); max-height: 86vh; overflow: auto; }
.credits header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.credits h2 { font-size: 54px; }
.credits-in > p { max-width: 70ch; font-size: 15px; }
.credits-list { columns: 3 220px; gap: 28px; margin: 24px 0; }
.credits-list li { break-inside: avoid; padding: 6px 0; border-top: 1px solid rgba(154,161,163,.2); text-transform: none; font-size: 10.5px; }
.credits-list a { color: var(--plaster); text-decoration: none; }
.credits-list a:hover { text-decoration: underline; }
.credits-list span { color: var(--zinc); display: block; }
.credits-cc0 { color: var(--zinc); text-transform: none; font-size: 12px; }

/* ------------------------------------------------------------- reduced motion */
.rm .film { height: 100svh; }
.rm .hero-hint.motion-only { display: none; }
.rm .still-only { display: flex; }
.rm .piece-pin { height: auto; }
.rm .piece-stage { position: relative; height: 80svh; }
.rm .piece-card { --ix: 0%; --iy: 0%; }
.rm .piece-caption { opacity: 1; }
.rm body::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
}
