/* Latitude 29: the Work page (/work/). Generated pages link it from templates/work.html.
   The first part is ported verbatim from index.html (tokens, surfaces, trace, services, process, booking, cursor; the bar and menu are menu/menu.css)
   so this page reads as the homepage's sibling; the atlas (the Work page's own stage) follows at the end. */
:root {
  --night: #24050A;
  --foundation: #431B23;
  --foundation-2: #55252F;
  --paper: #E9DECA;
  --paper-2: #E1D3BB;
  --paper-3: #F3ECDF;
  --metal: #C9A570;
  --metal-line: #B48C55;
  --trace-core: #FFF1C9; --trace-inner: #F3D08F; --trace-glow: #E8B86A; --trace-halo: #D9A24F;
  --accent: #A99B89;
  --ink: #1E1517;
  --ink-2: #57494A;
  --rule: rgba(30, 21, 23, .16);
  --rule-strong: rgba(30, 21, 23, .32);
  --rule-dark: rgba(233, 222, 202, .2);
  --rule-dark-2: rgba(233, 222, 202, .34);
  --on-dark-2: rgba(233, 222, 202, .84);

  --display: "Cormorant Garamond", "Cormorant", Garamond, "Iowan Old Style", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.2vw, 72px);
  --maxw: 1400px;
  --col-gap: clamp(16px, 2.2vw, 36px);
  --nav-h: 76px;
  --sec: clamp(96px, 13vw, 184px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* surface system: radii (16 mats and plates, 12 image mats and insets, 8 buttons and flags, 999 pills), shadows, strokes, glass, blooms */
  --r-lg: 16px; --r-md: 12px; --r-sm: 8px; --r-pill: 999px;
  --shadow-1: 0 10px 30px rgba(30, 21, 23, .10), 0 1px 2px rgba(30, 21, 23, .06);
  --shadow-2: 0 24px 64px rgba(30, 21, 23, .18), 0 2px 6px rgba(30, 21, 23, .06);
  --shadow-dark-1: 0 24px 64px rgba(0, 0, 0, .28);
  --shadow-dark-2: 0 40px 100px rgba(0, 0, 0, .35);
  --stroke-paper: rgba(30, 21, 23, .12);
  --stroke-dark: rgba(201, 165, 112, .22);
  --stroke-dark-2: rgba(201, 165, 112, .40);
  --hi-paper: rgba(255, 255, 255, .55);
  --glass-dark: rgba(36, 5, 10, .55);
  --glass-paper: rgba(243, 236, 223, .88);
  --blur: 16px;
  --bloom-warm: radial-gradient(closest-side, rgba(201, 165, 112, .22), rgba(201, 165, 112, .08) 45%, rgba(201, 165, 112, 0) 72%);
  --bloom-ember: radial-gradient(closest-side, rgba(243, 208, 143, .20), rgba(243, 208, 143, .07) 45%, rgba(243, 208, 143, 0) 72%);
  color-scheme: light;
}
@media (max-width: 640px), (hover: none) { :root { --blur: 10px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/28px var(--sans); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--metal); outline-offset: 3px; border-radius: 2px; }
[data-theme="light"] :focus-visible { outline-color: var(--foundation); }
.plate :focus-visible, .ways__band :focus-visible { outline-color: var(--metal); }
html { scroll-padding-top: calc(var(--nav-h) + 24px); }
::selection { background: var(--metal); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--paper); color: var(--ink); padding: 12px 18px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 16px; }
.skip:focus-visible { outline-color: var(--foundation); box-shadow: 0 0 0 7px var(--paper); }

.wrap {
  width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* ---------- Type ---------- */
.label { font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.h2 { font: 500 clamp(40px, 4.6vw, 70px)/1.02 var(--display); letter-spacing: -.012em; margin: 0; text-wrap: balance; }
.h3 { font: 500 clamp(30px, 2.6vw, 40px)/1.08 var(--display); letter-spacing: -.005em; margin: 0; text-wrap: balance; }
.lead { font: 400 clamp(19px, 1.45vw, 22px)/1.55 var(--sans); margin: 0; max-width: 34em; }
.body { font: 400 18px/28px var(--sans); margin: 0; max-width: 36em; }
.small { font: 400 16px/24px var(--sans); }
.num { font-family: var(--display); font-weight: 500; font-variant-numeric: lining-nums proportional-nums; font-feature-settings: "lnum" 1, "pnum" 1; }
.sec-head { display: grid; gap: 22px; max-width: 920px; }
.sec-head .lead { color: var(--ink-2); }
[data-theme="dark"] .sec-head .lead { color: var(--on-dark-2); }


/* ---------- Surfaces: mats, plates, glass, chips, discs, pills, blooms ---------- */
/* raised paper */
.mat { background: var(--paper-3); color: var(--ink); border-radius: var(--r-lg); box-shadow: inset 0 1px 0 var(--hi-paper), 0 0 0 1px var(--stroke-paper), var(--shadow-1); }
/* solid oxblood plate with an optional quiet contour field inside */
.plate { position: relative; overflow: hidden; isolation: isolate; background: var(--foundation); color: var(--paper); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--stroke-dark), var(--shadow-dark-1); }
.plate__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.plate__field path { fill: none; stroke: var(--metal); stroke-width: 1; opacity: .16; vector-effect: non-scaling-stroke; }
/* smoked glass: only where a field, bloom or photograph is behind it (hard ceiling: two backdrop surfaces on screen) */
.glass { position: relative; overflow: hidden; border-radius: var(--r-lg); -webkit-backdrop-filter: blur(var(--blur)) saturate(1.1); backdrop-filter: blur(var(--blur)) saturate(1.1); }
.glass--dark { background: var(--glass-dark); color: var(--paper); box-shadow: inset 0 0 0 1px var(--stroke-dark), var(--shadow-dark-1); transition: box-shadow .6s var(--ease); }
.glass--dark:hover { box-shadow: inset 0 0 0 1px var(--stroke-dark-2), var(--shadow-dark-1); }
.glass--paper { background: var(--glass-paper); color: var(--ink); box-shadow: inset 0 1px 0 var(--hi-paper), 0 0 0 1px var(--stroke-paper), var(--shadow-1); }
.glass[data-rule="gold"]::before, [data-theme="dark"] .glass[data-rule="gold"]::before { background: var(--metal); opacity: .6; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass--dark { background: rgba(36, 5, 10, .92); } .glass--paper { background: var(--paper-3); } }
/* image mats: the radius now, the shadow once the clip reveal has cleared (clip-path clips box-shadow); static paths get it at once */
.is-matted, .rm :is(.case__media, .founder__img), .no-motion :is(.case__media, .founder__img) { box-shadow: var(--shadow-1); transition: box-shadow .6s var(--ease); }
.env__img.is-matted, .rm .env__img, .no-motion .env__img { box-shadow: var(--shadow-2); }
/* numbered section chip: the <p> keeps class label, so headParts() and label() are untouched */
.chip { display: inline-flex; vertical-align: top; align-items: center; gap: 14px; }
.label.chip { font-size: 16px; line-height: 20px; }   /* the section labels, a size up from the house label so each section announces itself */
.chip__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule-strong); font: 500 14px/1 var(--mono); letter-spacing: .04em; font-style: normal; color: var(--ink-2); }
[data-theme="dark"] .chip__n { box-shadow: inset 0 0 0 1px var(--rule-dark-2); color: var(--on-dark-2); }
/* icon chip: a hairline circle holding a ridge glyph built by the [data-ridge] loop; static, never dashed */
.chip__ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule-strong); color: var(--foundation); flex: none; transition: color .6s var(--ease), box-shadow .6s var(--ease); }
.chip__ic svg { width: 26px; height: auto; overflow: visible; }
.chip__ic svg path { fill: none; stroke: currentColor; stroke-width: 22; stroke-linecap: round; }
.chip__ic--lg { width: 56px; height: 56px; } .chip__ic--lg svg { width: 32px; }
[data-theme="dark"] .chip__ic { box-shadow: inset 0 0 0 1px var(--rule-dark-2); color: var(--metal); }
/* round arrow disc: the footer disc's gesture at 44px (rests at -45deg, turns to 0 on hover or lit); CSS owns this transform, GSAP never touches .rbtn svg */
.rbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--foundation); color: var(--paper); border: 0; padding: 0; cursor: pointer; text-decoration: none; flex: none; transition: background-color .3s var(--ease), color .3s var(--ease); }
.rbtn svg { width: 18px; height: 18px; transform: rotate(-45deg); transition: transform .6s var(--ease); }
.rbtn svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rbtn:hover { background: var(--foundation-2); } .rbtn:hover svg { transform: rotate(0deg); }
.rbtn--lg { width: 52px; height: 52px; } .rbtn--lg svg { width: 22px; height: 22px; }   /* the entries' disc, beside its link */
.rbtn:focus-visible { outline: 2px solid var(--foundation); outline-offset: 3px; border-radius: 50%; }
[data-theme="dark"] .rbtn:focus-visible { outline-color: var(--metal); }
/* pill tabs: DM Mono labels in a hairline track, one foundation indicator slid by GSAP (mirrors moveInd) */
.pills { position: relative; display: inline-flex; gap: 4px; padding: 2px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.pills__ind { position: absolute; left: 0; top: 2px; height: 40px; width: 0; border-radius: var(--r-pill); background: var(--foundation); }
.pill { position: relative; z-index: 1; min-height: 40px; padding: 0 16px; border: 0; background: none; border-radius: var(--r-pill); font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: color .3s var(--ease); }
.pill[aria-pressed="true"] { color: var(--paper); }
.pill:focus-visible { outline: 2px solid var(--foundation); outline-offset: 2px; border-radius: var(--r-pill); }
/* light bloom: a gradient div, never filter: blur(); only transform and opacity are ever animated */
.bloom { position: absolute; pointer-events: none; border-radius: 50%; }
.bloom--warm { background: var(--bloom-warm); } .bloom--ember { background: var(--bloom-ember); }
@media (min-width: 900px) { .bloom, .ways__band .plate__field { will-change: transform; } }


/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--paper); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 26px;
  background: var(--bg); color: var(--fg); border: 0; border-radius: var(--r-sm); cursor: pointer;
  font: 500 16px/1 var(--sans); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--paper:hover { --bg: #F6EFE2; }
.btn--oxblood { --bg: var(--foundation); --fg: var(--paper); }
.btn--oxblood:hover { --bg: var(--foundation-2); }
.btn--gold { --bg: var(--metal); --fg: var(--ink); }
.btn--gold:hover { --bg: #D8B781; }
.btn--pill { border-radius: var(--r-pill); min-height: 52px; }
.btn--line { --bg: transparent; --fg: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-dark-2); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--paper); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; border: 0; background: none; cursor: pointer;
  font: 500 16px/1.2 var(--sans); text-decoration: none; color: inherit;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .5s var(--ease);
}
.link-cta:hover { background-size: 0% 1px; background-position: 100% 100%; }
.hero__ctas .link-cta { min-height: 44px; text-shadow: 0 0 14px rgba(36, 5, 10, .75), 0 0 4px rgba(36, 5, 10, .6); }
.link-cta > svg { width: 16px; height: 16px; }   /* the link's own arrow; a disc inside it sizes its glyph itself (.rbtn--lg svg) */
/* "Read the case": the text keeps the retreating hairline, a 52px disc turns from -45deg to 0 on hover */
.link-cta--disc { background: none; gap: 14px; }
.link-cta--disc .link-cta__t { background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .5s var(--ease); }
.link-cta--disc:hover .link-cta__t { background-size: 0% 1px; background-position: 100% 100%; }
.link-cta--disc:hover .rbtn { background: var(--foundation-2); }
.link-cta--disc:hover .rbtn svg { transform: rotate(0deg); }
.tags { display: block; font: 500 12px/20px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); list-style: none; margin: 0; padding: 0; }
.tags li { display: inline; border: 0; padding: 0; }
.tags li + li::before { content: " · "; }
/* the Services lists keep each capability whole: each is an inline block, so a line breaks only between capabilities and a dot
   ends its line, never starts one (a capability wider than its line on its own still wraps inside its block); balanced lines,
   and the space after each dot is the one the dot always had */
.svc .tags { text-wrap: balance; }
.svc .tags li { display: inline-block; vertical-align: top; }
.svc .tags li:not(:last-child) { margin-right: calc(1ch + .08em); }
.svc .tags li + li::before { content: none; }
.svc .tags li:not(:last-child)::after { content: "\00a0·"; }
[data-theme="dark"] .tags { color: var(--on-dark-2); }

/* ---------- Trace ---------- */
.page { position: relative; }
.trace { position: absolute; inset: 0; z-index: 6; pointer-events: none; contain: layout style; will-change: transform; }
html:not(.js) .trace { display: none; }
.no-motion .trace, .rm .trace { will-change: auto; }
.trace__svg { position: absolute; left: 0; top: 0; width: 100%; overflow: visible; }
/* stacked unfiltered strokes: light on dark grounds, quiet gold ink on paper (bottom → top) */
.trace__chunk path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trace__chunk[data-theme="dark"] .tl-halo2 { stroke: var(--trace-halo); stroke-width: 26px; stroke-opacity: .05; }
.trace__chunk[data-theme="dark"] .tl-halo1 { stroke: var(--trace-halo); stroke-width: 16px; stroke-opacity: .09; }
.trace__chunk[data-theme="dark"] .tl-glow { stroke: var(--trace-glow); stroke-width: 9px; stroke-opacity: .18; }
.trace__chunk[data-theme="dark"] .tl-inner { stroke: var(--trace-inner); stroke-width: 4px; stroke-opacity: .45; }
.trace__chunk[data-theme="dark"] .tl-core { stroke: var(--trace-core); stroke-width: 1.75px; }
.trace__chunk[data-theme="dark"] .tl-tail { stroke: var(--trace-core); stroke-width: 3.2px; stroke-opacity: .75; }
.trace__chunk[data-theme="paper"] .tl-halo { stroke: #C9A570; stroke-width: 8px; stroke-opacity: .14; }
.trace__chunk[data-theme="paper"] .tl-inner { stroke: #C9A570; stroke-width: 3px; stroke-opacity: .32; }
.trace__chunk[data-theme="paper"] .tl-core { stroke: var(--metal-line); stroke-width: 1.75px; }
.trace__chunk[data-theme="paper"] .tl-tail { stroke: var(--trace-halo); stroke-width: 2.4px; stroke-opacity: .55; }
.trace__spark { position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 241, 201, 1) 0, rgba(243, 208, 143, .9) 9%, rgba(243, 208, 143, .38) 22%, rgba(217, 162, 79, .12) 42%, transparent 64%); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease); }
.trace__spark i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--trace-core); }
.trace__spark[data-ground="paper"] { width: 30px; height: 30px; margin: -15px 0 0 -15px; background: radial-gradient(circle, rgba(217, 162, 79, .9) 0, transparent 60%); }
.trace__spark[data-ground="paper"] i { background: #B48C55; }
.trace__ember { position: absolute; left: 0; top: 0; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; background: radial-gradient(circle, rgba(243, 208, 143, .34), rgba(217, 162, 79, .12) 35%, transparent 65%); }
@media (max-width: 899px) {
  .trace__chunk[data-theme="dark"] .tl-halo2 { stroke-width: 18px; }
  .trace__chunk[data-theme="dark"] .tl-halo1 { stroke-width: 12px; }
  .trace__chunk[data-theme="dark"] .tl-glow { stroke-width: 7px; }
  .trace__chunk[data-theme="paper"] .tl-halo { stroke-width: 6px; }
}
/* drawn rules: a 1px ::before scaled by --rx (GSAP owns --rx; no transition) */
[data-rule] { position: relative; --rx: 1; }
[data-rule]::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--rule); transform: scaleX(var(--rx, 1)); transform-origin: 0 50%; pointer-events: none; }
[data-theme="dark"] [data-rule]::before { background: var(--rule-dark); }
[data-rule="strong"]::before { background: var(--rule-strong); }
[data-rule="b"]::before { inset: auto 0 0 0; }
[data-rule="y"]::before { inset: 0 auto 0 0; width: 1px; height: auto; transform: scaleY(var(--rx, 1)); transform-origin: 50% 0; }
.rm [data-rule], .no-motion [data-rule] { --rx: 1; }
.tp { position: absolute; left: 0; display: block; width: 0; height: 0; pointer-events: none; }
.tp.t { top: var(--o, 0px); }
.tp.b { bottom: var(--o, 0px); }

/* deckled paper edges where paper meets oxblood */
.deckle { position: absolute; left: 0; width: 100%; height: 18px; pointer-events: none; z-index: 2; }
.deckle--top { bottom: calc(100% - 1px); }
.deckle--bottom { top: calc(100% - 1px); }

.flag { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border: 1px dashed var(--ink-2); padding: 5px 8px; border-radius: var(--r-sm); }

/* ---------- Services ---------- */
.services { position: relative; background: var(--paper); padding: var(--sec) 0; }
.services__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: clamp(56px, 7vw, 100px); align-items: start; }
.services__fig { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 9vh); margin: 0; padding: 28px 24px 22px; }
.services__fig svg { width: 100%; height: auto; overflow: visible; }
.svc-line { fill: none; stroke: var(--ink); stroke-opacity: .26; stroke-width: 2.4; stroke-linecap: round; transition: stroke .5s var(--ease), stroke-opacity .5s var(--ease), stroke-width .5s var(--ease); }
.svc-line.is-on { stroke: var(--foundation); stroke-opacity: 1; stroke-width: 4.5; }
.svc-glow { fill: none; stroke: #C9A570; stroke-width: 10; stroke-opacity: .22; stroke-linecap: round; opacity: 0; transition: opacity .5s var(--ease); }
.svc-glow--in { stroke: #B48C55; stroke-width: 4; stroke-opacity: .35; }
.svc-glow.is-on { opacity: 1; }
.svc-tag { font: 500 15px var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-2); transition: fill .4s; }
.svc-tag.is-on { fill: var(--foundation); }
.services__fig figcaption { margin-top: 14px; color: var(--ink-2); font: 400 15px/22px var(--sans); max-width: 28em; }
.services__list { grid-column: 7 / span 6; display: grid; position: relative; isolation: isolate; }
.svc { display: grid; gap: 16px; padding: 34px 0 40px; }
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.svc__name { font: 500 clamp(36px, 3.2vw, 50px)/1 var(--display); margin: 0; transition: color .4s; }
.svc.is-active .svc__name { color: var(--foundation); }
.svc__idx { color: var(--ink-2); }
.svc__desc { margin: 0; max-width: 32em; text-wrap: pretty; }   /* no word left alone on the last line */
.svc__rule { position: absolute; left: calc(-1 * clamp(14px, 1.4vw, 22px)); top: 34px; bottom: 40px; width: 2px; background: var(--foundation); transform-origin: 50% 0; pointer-events: none; }
.no-motion .svc:not(.is-active) .svc__rule, .rm .svc:not(.is-active) .svc__rule { opacity: 0; }
/* the active row's paper-3 wash (CSS only: setSvc toggles .is-active); the rule bar sits 14px inside its left edge */
.svc::after { content: ""; position: absolute; inset: 12px calc(-1 * clamp(14px, 1.4vw, 22px) - 14px) 14px; right: calc(-1 * min(clamp(14px, 1.4vw, 22px) + 14px, max(var(--gutter), 50vw - var(--maxw) / 2) - var(--gutter) / 2 - 16px)); z-index: -1; border-radius: var(--r-md); background: var(--paper-3); box-shadow: 0 0 0 1px var(--stroke-paper); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.svc.is-active::after { opacity: 1; }
.svc__mini { display: none; }


/* ---------- Process ---------- */
.process { position: relative; background: var(--foundation); color: var(--paper); box-shadow: inset 0 2px 0 rgba(201, 165, 112, .18); }
.process__track { position: relative; height: 260vh; height: 260svh; }
.process__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-content: center; align-items: center; padding-top: calc(var(--nav-h) * .5); }
.process__head { display: grid; gap: 18px; padding-top: var(--sec); padding-bottom: clamp(24px, 4vw, 48px); }
.process__head .label { color: var(--on-dark-2); }
.process__head .h2 { max-width: 15em; }
.process__fig { grid-column: 1 / span 5; margin: 0; align-self: center; }
.process__fig svg { width: 100%; height: auto; overflow: visible; }
.pr-line { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.pr-gold { fill: none; stroke: var(--metal); stroke-width: 5.5; stroke-linecap: round; opacity: 0; }
.pr-glow { fill: none; stroke: #E8B86A; stroke-width: 12; stroke-opacity: .18; stroke-linecap: round; opacity: 0; }
.process__fig figcaption { position: relative; margin-top: 16px; padding-bottom: 10px; display: flex; gap: 18px; flex-wrap: wrap; }
.process__fig figcaption span { color: var(--on-dark-2); transition: color .4s; }
.process__fig figcaption span.is-on { color: var(--metal); }
.pr-ind { position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--metal); }
.process__steps { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-self: center; position: relative; --prog: 0; }
/* gutter progress line: GSAP sets --prog from the track's progress (an <ol> cannot hold an <i>) */
.process__steps::after { content: ""; position: absolute; left: calc(-1 * clamp(14px, 1.4vw, 22px)); top: 0; bottom: 0; width: 2px; background: var(--metal); transform: scaleY(var(--prog)); transform-origin: 50% 0; pointer-events: none; }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--rule-dark); position: relative; --sx: 1; }
.step:last-child { border-bottom: 1px solid var(--rule-dark); }
.step::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--metal); transform: scaleX(var(--sx)); transform-origin: 0 50%; }
.step__n { font-size: 40px; line-height: 1; color: var(--on-dark-2); transition: color .4s; }
.step.is-active .step__n { color: var(--metal); }
.step h3 { font: 500 clamp(28px, 2.4vw, 36px)/1.1 var(--display); margin: 0 0 10px; }
.step p { margin: 0; color: var(--on-dark-2); max-width: 30em; }
.step__mini { display: none; }


.odo { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.odo__strip { display: block; transition: none; }
.odo__strip span { display: block; height: 1em; line-height: 1; }

/* ---------- Booking ---------- */
.book { position: relative; background: var(--night); color: var(--paper); padding: var(--sec) 0; isolation: isolate; overflow: clip; }
.book__art { position: absolute; inset: 0; z-index: -1; }
.book__art img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 40%; opacity: .55; }
.book__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 5, 10, .96) 0%, rgba(36, 5, 10, .88) 42%, rgba(36, 5, 10, .55) 100%), linear-gradient(0deg, rgba(36, 5, 10, .9), rgba(36, 5, 10, 0) 40%); }
.book__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; align-items: start; }
.book__intro { grid-column: 1 / span 5; display: grid; gap: 22px; }
.book__intro .label { color: var(--on-dark-2); }
.book__intro .lead { color: var(--on-dark-2); }
.contact-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.contact-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; flex-wrap: wrap; }
.contact-list .label { color: var(--on-dark-2); }
.contact-list span.v { font: 400 18px/26px var(--sans); user-select: all; overflow-wrap: anywhere; }
.copy { min-height: 36px; padding: 0 14px; border: 1px solid var(--rule-dark); background: transparent; border-radius: var(--r-pill); color: var(--paper); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.copy:hover { border-color: var(--metal); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--metal); display: none; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, border-radius .35s var(--ease); }
[data-ground="light"] .cursor { background: var(--foundation); }
.cursor.is-link { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.has-cursor .cursor.is-live.is-disc { opacity: 0; transition: opacity .25s; }
.cursor.is-text { width: 2px; height: 22px; margin: -11px 0 0 -1px; border-radius: 1px; }
.has-cursor .cursor { display: grid; place-items: center; opacity: 0; }
.has-cursor .cursor.is-live { opacity: 1; }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--foundation); box-shadow: 0 0 0 1px rgba(233, 222, 202, .4); }
.cursor__label { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper); opacity: 0; transition: opacity .25s; white-space: nowrap; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label.on-media { background: var(--paper); box-shadow: 0 0 0 1px rgba(36, 5, 10, .25); }
.cursor.on-media .cursor__label { color: var(--foundation); }

/* ---------- Responsive (the homepage's rules for the parts this page carries) ---------- */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .services__fig { grid-column: 1 / -1; position: relative; top: 0; max-width: 520px; margin-bottom: 24px; }
  .services__list { grid-column: 1 / -1; }
  .svc-tag { font-size: 24px; }
  .svc__rule { left: -12px; }
  .svc::after { inset: 12px calc(2px - var(--gutter)) 14px; }
  .svc__mini { display: block; width: 160px; height: auto; overflow: visible; }
  .svc__mini path { fill: none; stroke: var(--foundation); stroke-width: 6; stroke-linecap: round; }
  .process__track { height: auto; }
  .process__sticky { position: relative; height: auto; padding-block: 0 var(--sec); grid-template-columns: minmax(0, 1fr); }
  .process__fig { display: none; }
  .process__steps { grid-column: 1 / -1; }
  .process__steps::after { display: none; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .step__n { color: var(--metal); }
  .step__mini { display: block; width: 160px; height: auto; overflow: visible; margin-bottom: 6px; }
  .step__mini path { fill: none; stroke: var(--paper); stroke-width: 6; stroke-linecap: round; }
  .step__mini path.is-gold { stroke: var(--metal); stroke-width: 9; }
  .book__intro, .sched { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 17px; line-height: 27px; }
}
.rm .process__track, .no-motion .process__track { height: auto; }
.rm .process__sticky, .no-motion .process__sticky { position: relative; height: auto; padding-block: 0 var(--sec); }
.rm .pr-line, .rm .pr-gold, .rm .pr-glow { opacity: 1; }
.rm .step, .no-motion .step { opacity: 1; }
.rm .process__steps::after, .no-motion .process__steps::after { display: none; }
@media (min-width: 901px) { .rm .step:not(.is-active), .no-motion .step:not(.is-active) { --sx: 0; } }
@media (prefers-reduced-motion: reduce) {
  *:not(.nav):not(.btn):not(.link-cta):not(.copy), *::before, *::after { transition-duration: .01ms !important; }   /* the bar's colours still ease (menu/menu.css) */
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

.copy { min-height: 44px; }

/* ================= Work page: the atlas ================= */
:root {
  --x-intro: .2; --x-cross: .85; --x-exit: .3; --x-tail: .3;   /* scroll lengths in screens (100svh); work.js reads these same numbers */
  --rb: clamp(96px, 18vw, 260px);
  --screen: #0A0A0A;
}

/* ---------- Static flow: the base for reduced motion, no JS and a missing engine ---------- */
.wk { position: relative; background: var(--paper); overflow-x: clip;
  --bleed: max(var(--gutter), (100vw - var(--maxw)) / 2);
  --ftop: calc(var(--nav-h) + 12px); --fh: calc(100svh - var(--nav-h) - 36px); }
.wk__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wk__probe { position: absolute; left: 0; top: 0; width: 1px; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }
.wk__intro { position: relative; color: var(--ink); padding: calc(var(--nav-h) + clamp(48px, 9vh, 112px)) 0 calc(var(--rb) + clamp(40px, 7vw, 96px)); }
.wk__introIn { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 28px; align-items: end; }
.wk__head, .wk__lead { grid-column: 1 / -1; }
.wk__h1 { font: 500 clamp(52px, 9.2vw, 168px)/.94 var(--display); letter-spacing: -.02em; margin: 26px 0 0; max-width: 6.4em; text-wrap: balance; }
.wk__lead { color: var(--ink-2); }
@media (min-width: 900px) { .wk__head { grid-column: 1 / span 8; } .wk__lead { grid-column: 8 / -1; padding-bottom: .5em; } }
@media (max-width: 640px) { .wk__lead { font-size: 17px; line-height: 27px; } }

.terr { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 24px; align-items: center;
  margin-top: calc(-1 * var(--rb)); padding: calc(var(--rb) + clamp(24px, 4vw, 56px)) 0 calc(var(--rb) + clamp(56px, 8vw, 112px)); color: var(--ink); }
.terr:last-child { padding-bottom: clamp(72px, 10vw, 140px); }
.terr::before { content: ""; position: absolute; z-index: -2; top: calc(var(--rb) - 1px); bottom: 0; left: calc(-1 * var(--bleed)); right: calc(-1 * var(--bleed)); background: var(--ground); }
.terr__ridge { position: absolute; z-index: -1; top: 0; left: calc(-1 * var(--bleed)); width: calc(100% + 2 * var(--bleed)); height: var(--rb); overflow: visible; }
.terr__ridge .r-fill { fill: var(--ground); }
.terr__ridge .r-glow, .terr__ridge .r-core, .terr__edge path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.r-glow, .e-glow { stroke: rgba(232, 184, 106, .30); stroke-width: 7px; }
.r-core, .e-core { stroke: #F3D08F; stroke-width: 1.6px; }
.terr__plate, .terr__rec { grid-column: 1 / -1; min-width: 0; }
.terr__rise, .terr__curtain, .terr__still, .terr__set { position: relative; }
.terr__edge, .terr__shade, .terr__field, .terr__heroine { display: none; }
.terr__fig { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 64svh; }
.terr__frame { position: absolute; inset: 0; display: block; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); background: var(--foundation-2); }
.terr__lean, .terr__cam { position: absolute; inset: 0; display: block; }
.terr__pic { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--op-s, var(--op, 50% 50%)); }
.terr__pic:not([data-st="0"]) { display: none; }
.terr__inset { position: absolute; z-index: 2; left: 4%; bottom: 4%; width: 22%; height: auto; border-radius: var(--r-sm); box-shadow: 0 0 0 1px rgba(233, 222, 202, .2), var(--shadow-dark-1); }
.terr__light { position: absolute; left: 0; top: 0; z-index: 3; width: 60%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(closest-side, rgba(243, 208, 143, .16), rgba(243, 208, 143, 0) 70%); }
.terr__frame--screens { background: var(--screen); }
.terr__site { position: absolute; left: 4%; top: 7%; width: 92%; height: auto; aspect-ratio: 1906 / 908; border-radius: var(--r-sm); clip-path: inset(0 .2% .5% 0 round var(--r-sm)); }
.terr__obj { position: absolute; z-index: 2; height: auto; border-radius: var(--r-sm); box-shadow: 0 0 0 1px rgba(233, 222, 202, .14), var(--shadow-dark-1); }
.terr__obj[data-obj="phone"] { right: 5%; bottom: 5%; width: 33%; }
.terr__obj[data-obj="blog"] { left: 5%; bottom: 5%; width: 27%; }
@media (max-width: 899px), (max-aspect-ratio: 5/4) { .wk-m .terr__obj[data-obj="blog"] { left: 24%; bottom: 6%; } }
.terr__pile { position: absolute; inset: 0; margin: auto; display: block; height: 92%; max-width: 100%; aspect-ratio: 4 / 5; }
.terr__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; box-shadow: 0 24px 64px rgba(0, 0, 0, .34), 0 2px 6px rgba(0, 0, 0, .25); transform: translate(var(--dx, 0%), 0) rotate(var(--r, 0deg)); }
.terr__cover:not(:last-of-type) { display: none; }
.terr__frame:focus-visible, .terr__pile:focus-visible { outline: none; }
.terr__pile.is-empty { pointer-events: none; }
.terr__strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.terr__strip img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); }
.terr[data-kind="covers"] .terr__strip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.terr[data-kind="covers"] .terr__strip img { aspect-ratio: 4 / 5; border-radius: 2px; }

/* the record: the homepage's phone card below the spread, the ground itself in the spread */
.terr__body { display: grid; gap: 20px; align-content: start; padding: 24px 20px 28px; background: var(--paper-3); color: var(--ink); border-radius: var(--r-lg); box-shadow: inset 0 1px 0 var(--hi-paper), 0 0 0 1px var(--stroke-paper), var(--shadow-2); }
.terr__label { color: var(--ink-2); text-wrap: balance; }
.terr__head { margin: 0; }   /* the client's name, then its line a size down (the homepage's cards and case sheet share it) */
.terr__title { margin: 0; font-weight: 500; }
.terr__client { display: block; font: 500 clamp(36px, 4.2vw, 64px)/1.02 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.terr__client b { font-weight: 500; color: var(--foundation); background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.terr__line { display: block; margin: 12px 0 0; font: italic 500 clamp(24px, 2vw, 30px)/1.25 var(--display); color: var(--ink-2); text-wrap: balance; }
.terr__rows { display: grid; gap: 14px; margin: 4px 0 0; }
.terr__rows div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding-top: 14px; }
.terr__rows dt { font: 600 12px/24px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }   /* DM Mono has no bold, so the row names set in DM Sans */
.terr__rows dd { margin: 0; font: 400 16px/24px var(--sans); }
.terr__outcome { display: flex; align-items: baseline; gap: 10px 16px; flex-wrap: wrap; margin-top: 4px; }
.terr__num, .terr__words { font-size: clamp(44px, 4.6vw, 76px); line-height: .92; color: var(--foundation); }
.terr__num .odo { margin-bottom: -.08em; }
.terr__words { font-family: var(--display); font-style: italic; font-weight: 500; max-width: 7em; text-wrap: balance; }
.terr__numlabel { font: 400 16px/22px var(--sans); color: var(--ink-2); max-width: 14em; }
.terr__cta { min-height: 52px; gap: 16px; font-size: 17px; }
.terr__status { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.terr__body :focus-visible { outline-color: var(--foundation); }
/* the entry tags stand as pills (the Services lists keep the dotted line) */
.terr__body .tags { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink); }
.terr__body .tags li { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px 3px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--rule-strong); font-size: 11px; line-height: 16px; }
.terr__body .tags li + li::before { content: none; }
.terr__body [data-rule]::before { background: var(--rule); }

/* ---------- The spread: landscape windows from 900px ---------- */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .terr { row-gap: 32px; }
  .terr__plate { grid-column: 1 / span 7; grid-row: 1; }
  .terr__rec { grid-column: 8 / -1; grid-row: 1; padding-left: clamp(16px, 2.5vw, 48px); }
  .terr[data-side="right"] .terr__plate { grid-column: 6 / -1; }
  .terr[data-side="right"] .terr__rec { grid-column: 1 / span 5; padding-left: 0; padding-right: clamp(16px, 2.5vw, 48px); }
  .terr__strip { grid-column: 1 / span 7; grid-row: 2; }
  .terr[data-side="right"] .terr__strip { grid-column: 6 / -1; }
  .terr[data-kind="covers"] .terr__strip { gap: 12px; }
  .terr__fig { aspect-ratio: auto; max-height: none; height: clamp(420px, 70svh, 720px); }
  .terr__pic { object-position: var(--op, 50% 50%); }
  .terr__inset { left: 5%; bottom: 6%; width: 16%; }
  .terr__site { left: 6%; top: 16%; width: 88%; }
  .terr__obj[data-obj="phone"] { right: 6%; bottom: 7%; width: 24%; }
  .terr__obj[data-obj="blog"] { left: 7%; bottom: 7%; width: 20%; }
  .terr__pile { height: min(86%, 760px); }
  .terr__body { padding: 0; background: none; border-radius: 0; box-shadow: none; color: inherit; gap: 22px; }
  .terr__rows div { grid-template-columns: 116px minmax(0, 1fr); gap: 16px; }
  .terr[data-theme="dark"] { color: var(--paper); }
  .terr[data-theme="dark"] :is(.terr__label, .terr__line, .terr__numlabel, .terr__status) { color: var(--on-dark-2); }
  .terr[data-theme="dark"] :is(.terr__rows dt, .tags) { color: var(--paper); }
  .terr[data-theme="dark"] .terr__body .tags li { box-shadow: inset 0 0 0 1px var(--rule-dark-2); }
  .terr[data-theme="dark"] .terr__client b { color: var(--paper); background-image: linear-gradient(var(--metal), var(--metal)); }
  .terr[data-theme="dark"] :is(.terr__num, .terr__words) { color: var(--metal); }
  .terr[data-theme="dark"] [data-rule]::before { background: var(--rule-dark); }
  .terr[data-theme="dark"] .rbtn { background: var(--metal); color: var(--foundation); }
  .terr[data-theme="dark"] .link-cta--disc:hover .rbtn { background: #D8B781; }
  .terr[data-theme="dark"] .flag { color: var(--paper); border-color: var(--on-dark-2); }
  .terr[data-theme="dark"] .terr__body :focus-visible { outline-color: var(--metal); }
}
@media (min-width: 900px) and (max-width: 1199px) and (min-aspect-ratio: 5/4) {
  .terr__plate, .terr__strip { grid-column: 1 / span 6; } .terr__rec { grid-column: 7 / -1; }
  .terr[data-side="right"] .terr__plate, .terr[data-side="right"] .terr__strip { grid-column: 7 / -1; } .terr[data-side="right"] .terr__rec { grid-column: 1 / span 6; }
  .terr__rows div { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 899px) { .terr__ridge { width: calc(180% + 2 * var(--bleed)); left: calc(-40% - var(--bleed)); } }

/* ---------- With motion: one sticky stage; the records scroll over it at reading speed ---------- */
.wk-m .wk__track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); grid-template-rows: repeat(var(--rows), auto); }
.wk-m .wk__intro, .wk-m .terr__plate { grid-column: 1 / -1; grid-row: 1 / -1; align-self: start; position: sticky; top: 0; height: 100vh; height: 100lvh; margin-inline: calc(-1 * var(--bleed)); padding: 0; overflow: hidden; }
.wk-m .wk__intro { z-index: 1; background: var(--paper); }
.wk-m .wk__intro.is-off { visibility: hidden; }
.wk-m .wk__h1 { font-size: clamp(min(52px, 12svh), min(9.2vw, 16svh), 168px); }
@media (max-height: 620px) { .wk-m .wk__h1 { margin-top: 14px; font-size: clamp(min(52px, 12svh), min(9.2vw, 14svh), 168px); } .wk-m .wk__lead { font-size: 16px; line-height: 24px; } }
.wk-m .wk__introIn { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; row-gap: clamp(12px, 3.5svh, 28px); padding: calc(var(--nav-h) + clamp(16px, 9vh, 112px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
.wk-m .terr { display: contents; }
.wk-m .terr::before, .wk-m .terr__ridge, .wk-m .terr__strip { display: none; }
.wk-m .terr__plate { z-index: var(--z); pointer-events: none; }
.wk-m .terr[data-side] .terr__plate { grid-column: 1 / -1; }
.wk-m .terr__plate.is-off, .wk-m .terr__plate.is-off * { visibility: hidden !important; }
.wk-m .terr__plate img[data-far] { display: none; }   /* held back until work.js releases the territory (native lazy loading cannot see behind the masks) */
.wk-m .terr__rise { position: absolute; inset: 0; }
.wk-m .terr__curtain { position: absolute; left: 0; right: 0; top: -30%; height: 130%; transform: translateY(100%);
  -webkit-mask: var(--ridge) var(--mx) 0 / var(--ms) 100% no-repeat; mask: var(--ridge) var(--mx) 0 / var(--ms) 100% no-repeat; }
.wk-m .terr[data-side="right"] .terr__curtain { -webkit-mask-image: var(--ridge-m); mask-image: var(--ridge-m); }
.wk-m .terr__still { position: absolute; left: 0; right: 0; top: 23.077%; height: 76.923%; overflow: hidden; background: var(--ground); transform: translateY(-130%); }
.wk-m .terr__edge { display: block; position: absolute; left: 0; right: 0; top: -30%; height: 130%; pointer-events: none; transform: translateY(100%); }
.terr__edge svg { position: absolute; top: 0; height: 100%; width: var(--ms); left: calc((100% - var(--ms)) * var(--mxf)); overflow: visible; }
.wk-m .terr:first-of-type :is(.terr__curtain, .terr__edge) { transform: translateY(76%); }
.wk-m .terr:first-of-type .terr__still { transform: translateY(-98.8%); }
@media (min-width: 900px) and (min-aspect-ratio: 5/4) { .wk-m .terr:first-of-type .terr__still { transform: translateY(-81.8%); } }   /* the spread's peek drop (work.js PEEK_DROP) */
@media (max-height: 620px) { .wk-m .terr:first-of-type :is(.terr__curtain, .terr__edge) { transform: translateY(90%); } .wk-m .terr:first-of-type .terr__still { transform: translateY(-117%); } }   /* until work.js fits the peek under the title */
@media (max-height: 620px) and (min-width: 900px) and (min-aspect-ratio: 5/4) { .wk-m .terr:first-of-type .terr__still { transform: translateY(-100%); } }
.wk-m .terr:first-of-type .terr__rise { transform: translateY(32svh); }   /* the load entrance raises it (work.js) */
.wk-m .terr__set { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-content: start; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
.wk-m .terr__fig { grid-column: 1 / -1; aspect-ratio: auto; max-height: none; height: min(calc((100vw - 2 * var(--gutter)) * 1.25), 62svh); }
.wk-m .terr.is-active .terr__fig { pointer-events: auto; }
.wk-m .terr__pic:not([data-st="0"]) { display: block; opacity: 0; }
.wk-m .terr__cover { visibility: hidden; }
.wk-m .terr__cover:not(:last-of-type) { display: block; }
.wk-m .terr__field { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.terr__field path { fill: none; stroke: var(--metal); stroke-width: 1; opacity: .16; vector-effect: non-scaling-stroke; }
.wk-m .terr__heroine { display: block; position: absolute; z-index: 3; right: 14px; bottom: -14px; height: 48%; width: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .4)); }
.wk-m .terr__shade { display: block; position: absolute; inset: 0; z-index: 4; background: var(--night); opacity: 0; pointer-events: none; }
.wk-m .terr__rec { grid-column: 1 / -1; grid-row: var(--row); position: relative; z-index: 30; pointer-events: none; padding-top: calc((1 - var(--x-exit) + var(--x-cross) + var(--lag)) * 100svh); }
.wk-m .terr:first-of-type .terr__rec { padding-top: calc((var(--x-intro) + var(--x-cross) + var(--lag) + 1) * 100svh); }
.wk-m .terr:last-of-type .terr__rec { padding-bottom: calc(var(--x-tail) * 100svh); }
.wk-m .terr__body { pointer-events: auto; }
/* the summit sits over the plate: stack (phones, tablets, square windows) */
.wk-m .terr { --ms: 180%; --mxf: .44; --mx: 44%; --lag: 0; }   /* --lag: screens from a crossing's end to its record (work.js reads it) */
.wk-m .terr[data-kind="covers"] { --lag: .6; }
.wk-m .terr[data-side="right"] { --mxf: .56; --mx: 56%; }
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .wk-m .terr { --ms: 140%; --mxf: .91; --mx: 91%; --lag: -.12; }
  .wk-m .terr[data-kind="covers"] { --lag: var(--dwell); }
  .wk-m .terr[data-side="right"] { --mxf: .09; --mx: 9%; }
  .wk-m .terr__set { padding-top: var(--ftop); }
  .wk-m .terr__fig { grid-column: 1 / span 7; width: auto; margin-left: calc(-1 * var(--bleed)); height: var(--fh); }
  .wk-m .terr[data-side="right"] .terr__fig { grid-column: 6 / -1; margin: 0 calc(-1 * var(--bleed)) 0 0; }
  .wk-m .terr__frame { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
  .wk-m .terr[data-side="right"] .terr__frame { border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .wk-m .terr__heroine { left: -24px; right: auto; bottom: -16px; height: 62%; }
  .wk-m .terr__rec { grid-column: 8 / -1; }
  .wk-m .terr[data-side="right"] .terr__rec { grid-column: 1 / span 5; }
}
@media (min-width: 900px) and (max-width: 1199px) and (min-aspect-ratio: 5/4) {
  .wk-m .terr__fig { grid-column: 1 / span 6; } .wk-m .terr[data-side="right"] .terr__fig { grid-column: 7 / -1; }
  .wk-m .terr__rec { grid-column: 7 / -1; } .wk-m .terr[data-side="right"] .terr__rec { grid-column: 1 / span 6; }
}
@media (min-width: 900px) { .wk-m :is(.terr__cam, .terr__lean, .terr__pile, .terr__heroine) { will-change: transform; } }
main .line-mask { padding-bottom: .16em; margin-bottom: -.16em; }   /* the split lines' masks keep the descenders (work.js lifts lines from 125%) */
