/* Fixer in Tunisia — desert-night print world */
@font-face {
  font-family: 'Saira Extra Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/saira-extra-condensed-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Saira Extra Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/saira-extra-condensed-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Saira Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/saira-extra-condensed-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Saira Extra Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/saira-extra-condensed-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Platypi';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/platypi-italic-300-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Platypi';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/platypi-italic-300-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Platypi';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/platypi-300-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Platypi';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/platypi-300-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Murecho';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/murecho-100-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Murecho';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/murecho-100-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night-950: #06111f;
  --night-900: #081728;
  --night-800: #0c1d32;
  --night-600: #264161;
  --cream: #f6e6c2;
  --cream-dim: #d9cbae;
  --sand: #e9c58a;
  --amber: #f4a956;
  --ochre: #f2a64b;
  --vermilion: #f0522d;
  --vermilion-deep: #d8431f;
  --ticket: #f4e4c3;
  --ink: #0b1a2c;

  --font-display: 'Saira Extra Condensed', 'Arial Narrow', sans-serif;
  --font-serif: 'Platypi', Georgia, serif;
  --font-sans: 'Murecho', system-ui, sans-serif;

  /* motion tokens (DESIGN.md, Motion): site.js registers the same curves for GSAP under the same names */
  --ease-arrive: cubic-bezier(0.16, 1, 0.3, 1);  /* things arriving: fast start, long soft landing */
  --ease-camera: cubic-bezier(0.5, 0, 0.2, 1);   /* camera moves and pans: eases in and out */
  --ease-drift: cubic-bezier(0.37, 0, 0.63, 1);  /* slow object drifts on scroll (a sine) */
  --ease-settle: cubic-bezier(0.2, 1.15, 0.35, 1); /* paper dealt onto a table: a 2% overshoot that settles */
  --ease-leave: cubic-bezier(0.5, 0, 0.75, 0);   /* things leaving: gathers speed, exits at full speed */
  --ease-out: var(--ease-arrive);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  /* side gutters clear of a notch or rounded corner (viewport-fit=cover); equal to --gutter elsewhere */
  --gutter-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gutter-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --safe-b: env(safe-area-inset-bottom, 0px);
  --measure: 68ch;
  --ink-mask: url('data:image/webp;base64,UklGRowKAABXRUJQVlA4TIAKAAAvf8AfEFdgIG2b+De97Tcx//MvFkzeYWSdbubhEQAAA0HbtnHKn/V+DhERsEQSRYddOmx72qRU2bsNX6WDlFIhHiz5rm3btq3WtuwAD8AD8AA8wKPePkGvltKX3lLKbtY6pg0R/Z8A3wElWZIkSRY8iUJBUAVCIRCBgat+1luJ/+pdfOizvooITVG3QiGi/xNAK5IkS5KEY5EshiO0EZ/3DvND4NYMemh2zWGI6P8EMJOsiEJWwZw2hZ0TAsVrxvN5HghJq62psFiNYtOip/FM682Mj7QQe4z/QFNspY6YwuRhKYtNMwWez7MCN5uMjcOJUquJgg0J2d3EqTV6PtIATkolbXKO1VyXttWihRSbAM9IC4FYsLkZvEQ0LQfVanLUzSZ8B9pdIIHLSDahYDVccX2rWhzXK07piE0LWjh4Ab8jx5f1/XqA2Bt37YCNf3dzwuatTrOtcQZzbZlvH95CIAU0udfutkhgCa/v2vjwg7/V2ByyVFgcWmSwA4LDWXzu1JYyqgEDJHULxre/bLBsvikdtc2CwcPx1yBLdix+IUDAvtVytbQpAVqgta4p5n2Q7lk+3dKhrDTgmQW3LiHEbyyQ64KDakWt3AT4CC3GjUQgb2R4eX9xVBylGGakpTFOLQKIEpv0I5pNA4ZrcuwSx2vMwICMQxtgGEDuQYDm9X40Q9q1YAwLBDDnEEg+75Ja2wg55r4Wg7NdtiUBvwEIZyq8YO57BoZzpOchhckgBxACQwhnMLzogJrIu67rWepWYTBYHmdr4SbBa6ygxidax+QCC9cxzIF3SezAxpJGqTGMtJCwpiAiCiwDYBbcwiEpVwNBn+clRoXqWggGWt+GpQEcglvMDFDmAWu/KIoLG3wS+L3RLOdGKGg2bWzz2tZMt8lsfMICyMxhEx1OG5YP2zggaTV5ZPYeBC5LQpbLjD+AbMicyECaPWgBnMa/rO3HmKCGTysbm+o242OBpTNDYtPcNrWUc8XwQmwzrWlMEXZ2kXApJmvxjTtaLVcDhjUAOW6GexbsJmacRQcjaWeOV401kL5wM3MvbmlOAIF56JD2g8jMtwnMzLOQBk2BACVOSRw5Fm7BwagN3M6lYFxAEFq1CLPSDGAbGzBTKAhqmLtECg67AMvFAAJwCDA1CA7MYGCRgJIyBFjBGvOtTWyTtRrbXHPV8gQMkAsTfcxLalA3oU6Be9DAfjC5z+EI4dtiKGXhBHRPQwq3FnANCKguQF+QCwR4v9QAFGDueBi/1KRiiwC7VUctNeF5gV0+VAID/65zA8iLg1bb/FIZYGcOdg6qPsCWbG0s+BPrFulK8ZXsHu7MAjOHJs9DIkADRzA8csgm461hDpgBdm5QAcohllAEEMBmf2xmXyY3R25mlh1oTV5gswZDwRQ8qow4YXe4nYMHiAGUKGBNEip5GYbiLszcztxwc5cGDbYthJrKeGACTTdcxzz39QBz3M4lsUIhGNsk0wcCQmTlBuh+rmtvDhiopdJobhGuiskZY264rYD0PAszNzuUtAIuJwW2zU4Gm7k2jM1I9+7Ozvy8BdSKUFijFBCCINIRczBIt7Azu7OnrxcYQBIyB4uBGxQJmDpmBOw/cDtDVUzgpxBDlAHJYDjXqKEB8RcscDNXfWEAEYnkcD8CqugGlW0TpqRwsHPqm4CXgDoumKDj/wJJbbetQGHQ94E4DacNwc4C4mAGA8HdgDhnhwNaMH5rXWMk5BgEC6EJc/tTxACrlZYSPowLHjTQnDOMcEttS+kxswNxoG1egMaNGbgwsxpBTbShOAmMBEsgaQFpwHFUgXLolVA3XeY2zEhaqGsaGD3PBmIFRQJ/e1sog8XWGg/Pox0aasOMrmchHMIGBWklCaiZOFMzc183YAK/AuZ6Mc1S8eutXP8kLcQ2sdLA6L4lwKEOM9d1aSGUoPqlPO7RYw7ceHTdAmhw4Ne6Lu1i21KnahZ2tcHFzbYaw63rBTAMuu5LS1ItGb41wEJKs02ZLUVaLeACzEjPfWvjVAxDLVyBpsnCgVCPpBkIqTGjR7q1YBNyB4jAthOU4QDaAQIkgPTo97uLXYw7T0sSU4mRBEYMgB2OW2J2+T8Je/x1KHHX0KrxP2AAA9gMu4MWCC9N2hoIj+r7awYLUPZFnLt8DhJDQyW76OtFKVKDAGJ0nHkZIf87NDtTP4uatvB5cCB5MYk92m324w4pwM5RpdVYYvv1AQqBhZAYkFZ25tglAL/lA9+cLdjiOkCzOA0YSZTvkxiYGfwUJ9tCR8txjYPNAMu3xbYKA20gWTCCISnAEJoYQLN+Q2xNgSPkfRPd1tyAdXk1MDtiSwKEpDHAXiUQZWqCxrzsElobNMLw94dJ/NiDNsCkjWkEpMAOpyksM+W5lY/bGRI/L0B5iYD5vmkYRho4iAEI5fYOH6vFtuLsB5gCO1JyFwWoZmdmW+UhcOZ2KeeCgQaYWZKh5imZX7+G+q0M5G57AEIwBaRd4fS/UEFnZu6jA4qNju8DkIQdsSnx/fphEnW5wU8fIMgczJshhppzAN4XEqSdFTBVBRiLHF/HuQbl2ANoAIJZFrB+OVoJ7Et1LPABSMYErWangFWeF2Y6cwxg2mkxHGApMHMAA9sAfABaA/FZFNykkhUMgQonBlhSGnwDI6c54LezEIraNt4tAQsgAdug70FutmC8vxvADeIE4gMCnAcxCtSXMNcu8OwIYufiIKkBhlAMIZhglSQZzEPSOjAHQ1IQWsj9Z+GPM7tbYrRsTq2ktAFciWVALr59RkMoN9cYM5IEpRsLLO4Dv6gQMzMC5hohBGmkpcQC5BRICwhUXxaY3UMXCf/0CEmhHqKcA4QNwCpgCGgAZstOzMxIC78QlB5CGR4zhXcw54M1SYyB2V2csClXG4t2lMLzivdPSUcczqPFtiMQiBGEMvgs8QFIPWA7B5Bmc5w24TRgMIoPEPYowAKE1MPFqIWxgYHEPmbjWf7HawyjWaChgPxBCwWJY0BgWmhDHi1+ATQ6SdI2YbjcWGkIowESgAC05M2s7ud+cc2Ss20LtY2OxPzgJjxvfhld9/NonURsnpTVODDzLFAgTdjl3aD7uq5LUJffoyUNUqeGlQQsQ4h86ZDCfX19HRRhc6jg5jph7vuRduClcRoMYOD++fPHs0Bo1IitTGny+dzPLQ2AehA0EzPX9eObrIZmxDadwedcWCb3kYhhdH19vWBnprK0ZROekYbl7AhCATO6f35dC0nWyM1iomMEoCVxMuAfIDROSdePSwDWMZnEqqYKLCQuhZzf4/hSP388WlNojjV1iOEWQAggt5BtMMvqvq5Hsc3CAW6tCTAvIV0OEqJNowFd16UlBBlDJpA0VpcSZ64hsAWw8/KsSVkTcgRkmyLiHKFVOmOYUsMlLXULHDNAk1ZbAwiM4WDBkBg1+zwaiDfRcomBqSIxFpQsY4JAbJvVM/vGBAuYOIAQI65jaAKCVkGaJcbFCKwFUHA2GKqb07a58QSM4dFCGyMAM7zwm5IwtcDBaLokClBpSWA44GEXcBgDyVptbDKHJGhgcRiHBhs+HwSQqqtikM4tRDdbKNxsBxKbRcbnfgE='); /* the display type's ink mask (inlined by build.mjs) */

  /* stage: the mockup's 16:9 frame, scaled to cover the viewport */
  --ar: 1.76842;
  --sw: max(100vw, calc(100svh * var(--ar)));
  --sh: calc(var(--sw) / var(--ar));
  --su: calc(var(--sw) / 100);
}
@media (max-aspect-ratio: 1/1) {
  :root { --ar: 0.56548; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--night-600) var(--night-900); scrollbar-width: thin; }
body {
  margin: 0;
  background: var(--night-800);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--amber); }
::selection { background: var(--vermilion); color: var(--cream); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--cream); color: var(--ink); padding: 0.6rem 1rem; border-radius: 4px; transition: top 0.2s; }
.skip:focus { top: max(1rem, env(safe-area-inset-top, 0px)); }
.skip:hover { color: var(--ink); }

/* ---------- the night sky behind everything ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--night-800); }
.sky__night, .sky__dawn, .sky__stars, .sky__grain { position: absolute; inset: 0; }
.sky__night { background: linear-gradient(180deg, #071426 0%, #0b1d36 45%, #12294a 100%); }
.sky__dawn { opacity: 0; background: linear-gradient(180deg, #14213f 0%, #3a3558 42%, #8d4a48 70%, #e0683a 88%, #f4a956 100%); }
.sky__stars { background: url('../img/stars.webp?v=6a24e48e4d') 0 0 / 1024px 1024px; opacity: 0.8; }
/* the sky's print speckle, one tile pixel to one device pixel at every density (the tile is declared at each
   resolution, so it is never scaled and never blurred) */
.sky__grain { background-image: image-set(url('../img/sky-speckle.webp?v=56efaf7c69') 1x, url('../img/sky-speckle.webp?v=56efaf7c69') 1.25x, url('../img/sky-speckle.webp?v=56efaf7c69') 1.5x, url('../img/sky-speckle.webp?v=56efaf7c69') 2x, url('../img/sky-speckle.webp?v=56efaf7c69') 2.5x, url('../img/sky-speckle.webp?v=56efaf7c69') 3x); z-index: 3; }
/* body levels (contract §3.19): .sky 0 (above), main 1 (holds every scene), .site-footer 1 (after main, so painted
   above it); canvas.air 2 and div.lamp 3 (src/core/world.css); chrome 30 and up (src/scenes/chrome.css). No other
   body-level z-index. */
main, .site-footer { position: relative; z-index: 1; }

/* ---------- the hand-off ledger (contract §3.20): each scene root carries data-ho="<key>" (its lane's markup); under
   motion it overlaps the section before it by --ho svh and stacks at --z inside main. Lanes never set an overlap or a
   section z-index. The ledger sets no background. Without motion: no overlap, no z-index. ---------- */
html.motion [data-ho] { position: relative; z-index: var(--z, auto); margin-top: calc(var(--ho, 0) * -1svh); }
html.motion [data-ho="hero"] { --z: 1; }
html.motion [data-ho="about"] { --z: 3; }
html.motion [data-ho="cinema"] { --z: 2; }
html.motion [data-ho="services"] { --z: 4; }
html.motion [data-ho="journey"] { --z: 5; }
html.motion [data-ho="close"] { --z: 2; } /* inside the journey root */
html.motion [data-ho="clients"] { --z: 6; }
html.motion [data-ho="news"] { --z: 7; }
html.motion [data-ho="dawn"] { --z: 8; }
html.motion [data-ho="footer"] { --z: 1; } /* body level, as .site-footer */
html.motion [data-ho="page-hero"] { --z: 1; }
html.motion [data-ho="page-body"] { --z: 2; }
@media (orientation: landscape) and (height > 500px) {
  html.motion [data-ho="about"] { --ho: 70; }
  html.motion [data-ho="cinema"] { --ho: 30; }
  html.motion [data-ho="services"] { --ho: 70; }
  html.motion [data-ho="journey"] { --ho: 35; }
  html.motion [data-ho="close"] { --ho: 28; }
  html.motion [data-ho="news"] { --ho: 30; }
  html.motion [data-ho="footer"] { --ho: 40; }
  html.motion main:has(.dawn--short) + [data-ho="footer"] { --ho: 25; }
}
@media (orientation: portrait) {
  html.motion [data-ho="about"] { --ho: 62; }
  html.motion [data-ho="cinema"] { --ho: 20; }
  html.motion [data-ho="services"] { --ho: 62; }
  html.motion [data-ho="journey"] { --ho: 30; }
  html.motion [data-ho="close"] { --ho: 30; }
  html.motion [data-ho="news"] { --ho: 25; }
  html.motion [data-ho="footer"] { --ho: 30; }
  html.motion main:has(.dawn--short) + [data-ho="footer"] { --ho: 25; }
}
@media (orientation: landscape) and (max-height: 500px) {
  html.motion [data-ho="about"] { --ho: 62; }
}
/* an unpinned section (ctx.unpin) and the [data-ho] root after it overlap by 0 (05's fallback) */
html.motion .is-unpinned[data-ho], html.motion .is-unpinned[data-ho] + [data-ho] { --ho: 0; }

/* ---------- the glide (Lenis, site.js): the page keeps its own height; stopped while the phone menu is open ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- pinned scenes (build.mjs pinLen, site.js pin): a tall wrapper, one sticky screen inside it. The wrapper
   is one screen plus its scroll length (--len screens, --len-p on portrait screens); the view sticks to the top for
   exactly that length. Artwork inside is sized in lvh (the screen with the mobile toolbar collapsed, which never
   changes while scrolling), copy in svh. Without html.motion (no script, reduced motion) it is normal flow. ---------- */
.pin { --l: var(--len, 1); }
@media (max-aspect-ratio: 1/1) { .pin { --l: var(--len-p, var(--len, 1)); } }
.motion .pin { height: calc(100vh + var(--l) * 100vh); height: calc(100lvh + var(--l) * 100svh); }
.motion .pin > .pin__view { position: sticky; top: 0; }
/* phone landscape (contract §2, §3.3): only the home heroes (02, 10) pin, for 1.4 screens; every other pin collapses
   to its view's height in normal flow, and its scene plays as entrances */
@media (orientation: landscape) and (max-height: 500px) {
  .motion .hero.pin { --l: 1.4; }
  .motion .pin:not(.hero) { height: auto; }
  .motion .pin:not(.hero) > .pin__view { position: relative; }
}
/* ctx.unpin(section) (contract §3.3): the section's pin collapses to its view's height in normal flow */
.motion :is(.is-unpinned .pin, .pin.is-unpinned) { height: auto; }
.motion :is(.is-unpinned .pin, .pin.is-unpinned) > .pin__view { position: relative; }
/* culling (contract §3.6, src/core/cull.js): a layer far outside the view, or known to be covered */
html.motion .is-culled { visibility: hidden !important; will-change: auto !important; }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; }
.title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 0.92; font-size: clamp(2.9rem, 1.6rem + 6.2vw, 7rem); text-wrap: balance; }
.title--long { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.9rem); line-height: 0.94; }
.title .l2, .accent { color: var(--vermilion); }
.title .l1, .title .l2 { display: block; }
.title a { text-decoration: none; }
.title .l2 { font-size: 1.22em; }
.lead { font-family: var(--font-serif); font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); line-height: 1.45; max-width: 44ch; color: var(--cream); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; margin-top: 2em; font-size: 1.5em; }
.prose h3 { font-size: 1.25em; }
.prose ul { display: grid; gap: 0.5em; }
.prose li { padding-left: 1.4em; position: relative; }
.prose li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 0.6em; height: 0.6em; border: 1.5px solid var(--ochre); border-radius: 50%; }
.prose a { color: var(--amber); }
.prose strong { font-weight: 700; color: #fff3d6; }
/* display type is printed with the artwork's ink: a static mask, one tile pixel per device pixel, thins the ink in
   soft blotches and the odd pinhole (about 3% ink loss). A mask is composited with its element's layer, so moving
   type costs nothing extra; no-clip keeps glyph overhang outside the box from being cut. */
.h-line, .title, .stop__place, .svc__item h3, .row h2, .journey__close .cuisine, .counter b { -webkit-mask-image: image-set(var(--ink-mask) 1x, var(--ink-mask) 1.25x, var(--ink-mask) 1.5x, var(--ink-mask) 2x, var(--ink-mask) 2.5x, var(--ink-mask) 3x); mask-image: image-set(var(--ink-mask) 1x, var(--ink-mask) 1.25x, var(--ink-mask) 1.5x, var(--ink-mask) 2x, var(--ink-mask) 2.5x, var(--ink-mask) 3x); -webkit-mask-clip: no-clip; mask-clip: no-clip; }

/* ---------- buttons ---------- */
.btn {
  position: relative; /* holds the ring */
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3.4rem; padding: 0.75em 2.6em; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--vermilion); color: #fff3d6; font-weight: 700; font-size: 1.17rem; letter-spacing: 0.01em; text-decoration: none;
  box-shadow: 0 0 0 0.07em var(--amber), inset 0 0 0 0.16em var(--vermilion), inset 0 0 0 0.23em rgba(246, 230, 194, 0.9), 0 0.5em 1.4em -0.6em rgba(0, 0, 0, 0.7);
  transition: transform 0.35s var(--ease-out), background-color 0.25s, box-shadow 0.35s var(--ease-out);
}
/* the label is large bold text (18.7px+, 700) on vermilion: 3.2:1; hover darkens (3.9:1), never lightens */
.btn:hover { color: #fff3d6; background: var(--vermilion-deep); box-shadow: 0 0 0 0.07em var(--cream), inset 0 0 0 0.16em var(--vermilion-deep), inset 0 0 0 0.23em rgba(246, 230, 194, 1), 0 1em 1.8em -0.7em rgba(0, 0, 0, 0.8); }
.btn:active { background: #c23a19; }
/* build.mjs wraps every .btn's content in .btn__label and appends .btn__ring (contract §3.24). The label lays its own
   content out as the button did; the ring is the stamp's and the press's amber ring, invisible at rest. */
.btn__label { display: inline-flex; align-items: center; justify-content: center; gap: inherit; }
.btn__ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--amber); opacity: 0; pointer-events: none; font-style: normal; }
/* without motion the button lifts on hover; under motion GSAP owns every transform on buttons (magnets, stamp, press:
   contract §3.15), so .btn and .btn__label transition only background-color, box-shadow and color, and hover and
   active set no transform */
html:not(.motion) .btn:hover { transform: translateY(-3px); }
html:not(.motion) .btn:active { transform: translateY(0); }
html.motion .btn, html.motion .btn__label { transition: background-color 0.25s, box-shadow 0.35s var(--ease-out), color 0.25s; }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--ochre); }
.btn--ghost:hover { background: rgba(242, 166, 75, 0.14); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--ochre); }

/* ---------- the home hero base, shared by hero-arch and hero-moon (src/scenes/hero-arch.css, hero-moon.css) ---------- */
/* The pinned scene's art fills the large viewport (100lvh: the height with the mobile toolbar collapsed), so no strip
   of bare sky opens under it when the toolbar hides; the copy keeps to the small viewport (svh), so it is never
   under the toolbar. lvh never changes while scrolling, so the pin is never re-measured. On desktop lvh = svh. */
.hero { position: relative; }
.hero > .pin__view { position: relative; height: 100svh; height: 100lvh; overflow: hidden; }
@supports (height: 100lvh) {
  .hero .stage { --sw: max(100vw, calc(100lvh * var(--ar))); --sh: calc(var(--sw) / var(--ar)); --su: calc(var(--sw) / 100); top: 50lvh; }
}
.stage { position: absolute; left: 50%; top: 50%; width: var(--sw); height: var(--sh); transform: translate(-50%, -50%); }
.stage > *, .view > *, .arch > * { position: absolute; }
.stage img { width: 100%; height: 100%; }
.hero__copy { position: absolute; left: 50%; top: 50svh; width: var(--sw); height: var(--sh); transform: translate(-50%, -50%); pointer-events: none; }
.hero__copy > *, .hero__copy h1 > span { position: absolute; display: flex; align-items: center; justify-content: center; margin: 0; pointer-events: auto; white-space: nowrap; }
.h-line { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: 0.012em; text-box: trim-both cap alphabetic; }
.h-line--1 { left: 31.5%; top: 17.95%; width: 37.9%; height: 9.65%; font-size: calc(var(--su) * 7.33); color: #f8e6c0; }
.h-line--2 { left: 30.9%; top: 28.47%; width: 38.95%; height: 13.26%; font-size: calc(var(--su) * 9.39); color: var(--vermilion); }
.hero__sub { left: 25%; top: 42.26%; width: 50%; height: 3.18%; font-size: calc(var(--su) * 1.5625); font-weight: 400; letter-spacing: 0.012em; color: #f5e4c3; }
.hero__cta { left: 39%; top: 47.57%; width: 22%; height: 7.25%; min-height: 0; padding: 0; font-size: calc(var(--su) * 1.86); }
/* the scroll scene moves the hero button: no transform transition or hover lift to fight it */
.hero__cta { transition: background-color 0.25s, box-shadow 0.35s var(--ease-out); }
html:not(.motion) .hero__cta:is(:hover, :active) { transform: none; }
/* the stage mask that sank the scene into the night is no longer a core rule (contract §3.9): each hero keeps its own
   copy (.hero--arch .stage in hero-arch.css, .hero--moon .stage in hero-moon.css) until its lane drops it */
.hero__scroll { display: none; }

/* the intro hold (contract §3.9): under motion the header artwork waits for html.scene-in and the hero copy for
   html.intro-run or html.intro-done, all three written by the intro runner (src/core/opening.js). Without motion
   (reduced motion, no script) nothing waits here; reduced-motion cross-fades are the intro lanes' own CSS. .scene wraps
   the stage and nothing else. (.hero__cta is held with its wrapper until the hero lanes emit .hero__cta-wrap.) */
.scene { position: absolute; inset: 0; }
html.motion:not(.scene-in) :is(.hero .scene, .page-hero picture) { opacity: 0; }
html.motion:not(.intro-run):not(.intro-done) :is(.hero .h-line, .hero__sub, .hero__cta-wrap, .hero__cta, .page-hero__copy > *) { opacity: 0; }
/* phone-shaped viewports: the hero copy stacks (both home heroes; hero-arch.css and hero-moon.css place the rest) */
@media (max-aspect-ratio: 1/1) {
  .hero__copy { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: calc(var(--sh) * 0.25); }
  .hero__copy > *, .hero__copy h1 > span { position: static; white-space: normal; }
  .h-line--1 { font-size: min(13.2vw, 9.2svh, calc(var(--sw) * 0.112)); width: auto; height: auto; }
  .h-line--2 { font-size: min(17vw, 11.8svh, calc(var(--sw) * 0.145)); width: auto; height: auto; margin-top: 0.14em; }
  .hero__sub { width: min(64vw, 22rem); height: auto; text-align: center; font-size: clamp(0.92rem, 3.7vw, 1.15rem); line-height: 1.35; margin-top: 0.9rem; }
  .hero__cta { width: auto; height: auto; min-height: 3.2rem; padding: 0.7em 2.2em; font-size: 1.17rem; margin-top: 1.1rem; }
}

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(5rem, 12vw, 11rem) var(--gutter-r) clamp(5rem, 12vw, 11rem) var(--gutter-l); }
.wrap { max-width: 82rem; margin-inline: auto; }
.ground { position: absolute; left: 0; right: 0; pointer-events: none; }
.ground img { width: 100%; }

/* the About grid and its doorway photograph: each page that uses them has its own copy (about.css under .intro for
   the home About block, inner.css under .page-body for /about-us/) */

/* Every photograph is printed in two inks at rest (navy shadows, cream highlights; the duotone is made per image by
   tools/optimize.mjs) and shows its true colour on hover, keyboard focus and tap (site.js: on touch, the first tap
   on a photograph inside a link reveals it and the next follows the link). The true-colour picture lies on top and
   only its opacity changes. */
.print { position: relative; display: block; background: var(--night-900); overflow: hidden; }
.print picture, .doorway picture { display: block; width: 100%; height: 100%; }
.print img { width: 100%; height: 100%; object-fit: cover; }
.print > .print__true { position: absolute; inset: 0; }
/* twins (contract §3.8): a twin (pic(..., { twin: true }): the true colour of a print, the colour logos) stays out of
   the page until src/core/prints.js or ctx.decode wakes it (.is-awake), so its lazy image is never fetched before
   that; without JavaScript the rule does not apply and the twin loads. It shows in one 0.3 s cross-fade on hover,
   focus inside and .is-true of a .print, a, button or figure around it, except under motion inside
   [data-reveal="scene"], whose scene writes the twin's opacity itself. */
.js [data-twin]:not(.is-awake) { display: none; }
[data-twin] { opacity: 0; }
html:not(.motion) [data-twin], html.motion [data-twin]:not([data-reveal="scene"], [data-reveal="scene"] *) { transition: opacity 0.3s var(--ease-out); }
html:not(.motion) :is(.print, a, button, figure):is(:focus-within, .is-true) [data-twin],
html.motion :is(.print, a, button, figure):is(:focus-within, .is-true) [data-twin]:not([data-reveal="scene"], [data-reveal="scene"] *) { opacity: 1; }
@media (hover: hover) {
  html:not(.motion) :is(.print, a, button, figure):hover [data-twin],
  html.motion :is(.print, a, button, figure):hover [data-twin]:not([data-reveal="scene"], [data-reveal="scene"] *) { opacity: 1; }
}

/* tickets (the client logos): each page that shows them has its own copy (clients.css under .moonscene for the home
   page, inner.css for /clients/ and /services/) */
/* news cards: the home news (news) and the post lists of inner pages (inner) */
.post-card { display: grid; gap: 1.2rem; align-content: start; text-decoration: none; color: var(--cream); }
.post-card .print { aspect-ratio: 16 / 9; border-radius: 0.3rem; box-shadow: 0 0 0 1px rgba(242, 166, 75, 0.5); } /* the keyline keeps a print whose ground is navy ink from dissolving into the page */
.post-card time, .byline { font-family: var(--font-serif); font-size: 0.95rem; letter-spacing: 0.02em; color: var(--sand); }
.post-card time { margin-top: -0.6rem; }
.post-card :is(h2, h3) { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.18; text-wrap: balance; transition: color 0.3s; }
.post-card:hover :is(h2, h3) { color: var(--amber); }
.post-card p { color: var(--cream-dim); max-width: 54ch; }
.post-card:hover { color: var(--cream); }
/* ---------- entrances (contract §3.2, src/core/entrances.js; each element's role is its data-enter) ----------
   Content is visible without script. Under motion an element waits at opacity 0 (never visibility: hidden) until its
   role plays (.is-in, added when it starts, ends every start state below); a deal group stays visible and its cards
   wait (entrances.js sets the start state inline for data-deal-items); a frame waits visible, at its own start state.
   Without motion (reduced motion, or GSAP missing) every entrance is a 0.4 s opacity fade with no movement, which
   hands the element back to its own transitions when it has played (data-entered). Inside .hero and .page-hero the
   intro plays them (§3.9). html.no-fit (the site script never ran) shows everything. */
html.motion:not(.no-fit) [data-enter]:not(.is-in):not([data-enter="frame"], [data-enter="deal"]) { opacity: 0; }
html.motion:not(.no-fit) [data-enter="deal"]:not([data-deal-items]):not(.is-in) > * { opacity: 0; }
html.motion:not(.no-fit) [data-enter="frame"]:not(.is-in) img:not([data-twin] img) { transform: scale(1.08); }
html.motion:not(.no-fit) :is([data-enter="frame"][data-frame="arch"], .doorway[data-enter="frame"]:not([data-frame])):not(.is-in) img:not([data-twin] img) { transform: scale(1.14); }
html.motion:not(.no-fit) [data-enter="frame"]:not(.is-in) .print__veil { opacity: 0.5; }
html.motion:not(.no-fit) [data-enter="frame"]:not(.is-in) .doorway__veil { opacity: 0.7; }
html.motion:not(.no-fit) [data-enter="frame"]:not(.is-in) svg.doorway__line path { stroke-dasharray: 0 1000000; }
.js:not(.motion):not(.no-fit) [data-enter]:not(.is-in) { opacity: 0; }
/* the 0.4 s beats the reduced-motion 0.3 s below (more specific, both !important) */
.js:not(.motion):not(.no-fit) [data-enter]:not([data-entered]) { transition: opacity 0.4s linear !important; }
/* while GSAP plays an entrance nothing may transition the same properties (buttons, tickets, tags have their own) */
.is-entering { transition: none !important; }
/* split text, only while an entrance plays: each line is a mask (overflow: clip, set by SplitText), the letters
   rise into it; the visually hidden span beside it is what assistive technology reads */
.split { display: block; }
/* the words that hidden span reads out live in an attribute, so the page's own text (copy, find-in-page) has them once */
.said::before { content: attr(data-said); }
/* the underprint (contract §3.2): a sand band behind a strong, 0.35em tall; under motion it waits (--uo 0, --ux 2px)
   until its lines role, or its own 12% in view, plays it, and data-entered keeps it; static without script or motion */
strong[data-underprint] { position: relative; z-index: 0; --uo: 0.7; --ux: 0px; }
strong[data-underprint]::after { content: ''; position: absolute; left: -0.06em; right: -0.06em; bottom: 0.04em; height: 0.35em; background: #e9c58a; opacity: var(--uo); transform: translateX(var(--ux)); z-index: -1; pointer-events: none; }
html.motion:not(.no-fit) strong[data-underprint]:not([data-entered]) { --uo: 0; --ux: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.3s !important; scroll-behavior: auto !important; }
}

/* printing: nothing still waiting for its entrance prints blank, and the pinned wrappers print one screen tall */
@media print {
  [data-enter], [data-enter] > :not(.print__true) { opacity: 1 !important; }
  .motion .pin { height: auto; }
  .motion .pin > .pin__view { position: relative; }
}

/* in-page jumps focus their target (site.js jumpTo), as a native anchor jump sets the place Tab continues from;
   a section given focus that way draws no ring */
[tabindex='-1']:focus { outline: none; }

/* ===== src/core/world.css ===== */
/* src/core/world.css: styles of the shared world layers (contract §1, §3.12–§3.16, §3.19, §3.21). Owner: world. Built into the
   stylesheet after src/styles.css and before the scene stylesheets.
   canvas.air, div.lamp and .sky__violet are created by air.js and lamp.js under motion only; without JavaScript or
   with reduced motion they do not exist, and should html.motion be removed after boot (the failsafes) they hide. */

/* the air canvas: fixed over the viewport, above main (z 1) and below the lamp (3) and the chrome (30 and up); it takes
   no pointer events. air.js sizes its bitmap at devicePixelRatio / n, n = ceil(devicePixelRatio / 1.5), and its CSS box
   so that the bitmap is enlarged by the whole number n; pixelated keeps every speck a hard square of ink. */
.air { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; pointer-events: none; image-rendering: pixelated; }

/* the cursor lamp: a 560 px printed pool of light (the lamp sprite, §3.16: amber halftone dots drawn at the device's
   resolution, shown 1:1), centred on its x / y by lamp.js (xPercent / yPercent −50; x and y in whole pitches of its
   dots: round(6 × devicePixelRatio) device px).
   lamp.js is the one writer of its transform and opacity; no filter, no blend mode. */
.lamp {
  position: fixed; left: 0; top: 0; width: 560px; height: 560px; z-index: 3; pointer-events: none; opacity: 0;
  background: var(--sprite-lamp, none) center / 100% 100% no-repeat; will-change: transform, opacity;
}
html:not(.motion) .air, html:not(.motion) .lamp { display: none; }

/* the violet sky ink (ink 1, §3.21), between .sky__night and .sky__dawn. air.js writes its opacity and yPercent (rest:
   0 and 4%). The colours are the dawn lane's (dawn.css may set the background); this one is the fallback ink. */
.sky__violet { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, rgba(20, 33, 63, 0) 0%, #2c2c55 38%, #4a3558 72%, #6a3f5a 100%); }
/* both inks reach 5% above the viewport: the controller lowers them by up to yPercent 4 while they rise, and their top
   edge must never show as a straight band under the header (00 Never) */
html.motion .sky__violet, html.motion .sky__dawn { top: -5%; }

/* magnets and the press: GSAP owns every transform on .btn, .btn__label and [data-magnet] (no CSS transform
   transition, styles.css §3.15). Transforms turn about the centre. A [data-magnet] element must not be display: inline
   (an inline box takes no transform); its lane styles it. */
html.motion [data-magnet] { transform-origin: 50% 50%; }
html.motion .btn__ring { transform-origin: 50% 50%; }

/* ===== src/scenes/opening.css ===== */
/* Scene "opening" (spec 01): the first-load intro's styles. Under motion the intro hold (styles.css) and opening.js do
   the work; the rules here are the night twin's rest state, the run-time marks and the reduced-motion cross-fade.
   The night twin: only under motion (without it, display: none, so the lazy picture is never fetched). */
.hero--arch .arch__night { inset: 0; opacity: 0; pointer-events: none; }
html:not(.motion) .hero--arch .arch__night { display: none; }

/* run-time marks (opening.js creates them on desktop and removes all but the lantern glow after the intro) */
/* the lantern glow lies behind the lantern's picture (a positioned child would paint over the in-flow picture and wash
   the flame out): z-index -1 inside the lantern's own stacking context, so the stone warms around the lantern */
.hero--arch .p-lantern { isolation: isolate; }
.hero--arch .p-lantern__glow { position: absolute; z-index: -1; left: 53%; top: 75%; width: 170%; aspect-ratio: 1; margin: -85% 0 0 -85%; opacity: 0; pointer-events: none; background: var(--sprite-glow, none) center / 100% 100% no-repeat; }
.hero--arch .reg-arc { position: absolute; left: 73.9%; top: 23.5%; width: 7.5%; height: 13.2%; overflow: visible; pointer-events: none; }
.hero--arch .hero__ghost { left: 30.9%; top: 28.47%; width: 38.95%; height: 13.26%; font-size: calc(var(--su) * 9.39); color: var(--vermilion); opacity: 0; pointer-events: none; }
.hero--arch .hero__keyline { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); overflow: visible; pointer-events: none; }

/* reduced motion (JavaScript on, no motion): the header artwork and copy cross-fade in together over 0.4 s, once.
   The global reduced-motion rule shortens every animation to 0.01 ms; this one keeps its 0.4 s (higher specificity,
   also !important). No JavaScript: no animation, the rest frame at once. */
@keyframes opening-fade { from { opacity: 0; } to { opacity: 1; } }
html.js:not(.motion) :is(.hero--arch .scene, .hero--arch .hero__copy, .page-hero picture, .page-hero__copy) { animation: opening-fade 0.4s linear both !important; animation-duration: 0.4s !important; }

/* ===== src/scenes/hero-arch.css ===== */
/* Scene "hero-arch" (spec 02): the home hero, through the arch. The base shared with hero-moon (.hero, .stage,
   .hero__copy, .h-line, the intro hold) is in src/styles.css; everything here is under .hero--arch.
   Rest positions are the approved mockup's (comp-2-through-the-arch), in % of the stage. Every view plate scales about
   the stage point (51%, 64%): its transform-origin is that point in its own box, written here. Plates that carry
   data-gl, and their ancestors, are moved by GSAP only (contract 3.26 item 5): no CSS transform, transition or
   animation on them; the static mirrored copies below carry no data-gl. */
.hero--arch > .pin__view { height: 100vh; height: 100lvh; overflow: clip; }
.hero--arch .scene { isolation: isolate; }

/* the mockup's sky patch carries the tone; its speckle, scaled with the stage, goes soft, so the crisp speckle at 1:1
   device pixels lies over it */
.hero--arch .stage__sky { inset: 0; transform-origin: 51% 64%; background: image-set(url('../img/sky-speckle.webp?v=56efaf7c69') 1x, url('../img/sky-speckle.webp?v=56efaf7c69') 1.25x, url('../img/sky-speckle.webp?v=56efaf7c69') 1.5x, url('../img/sky-speckle.webp?v=56efaf7c69') 2x, url('../img/sky-speckle.webp?v=56efaf7c69') 2.5x, url('../img/sky-speckle.webp?v=56efaf7c69') 3x) 0 0, url('../plates/sky.png?v=dd4b7b6fc9') 0 0 / 25% auto; background-image: image-set(url('../img/sky-speckle.webp?v=56efaf7c69') 1x, url('../img/sky-speckle.webp?v=56efaf7c69') 1.25x, url('../img/sky-speckle.webp?v=56efaf7c69') 1.5x, url('../img/sky-speckle.webp?v=56efaf7c69') 2x, url('../img/sky-speckle.webp?v=56efaf7c69') 2.5x, url('../img/sky-speckle.webp?v=56efaf7c69') 3x), image-set(url('../img/sky-672.webp?v=56df0dd158') type('image/webp'), url('../plates/sky.png?v=dd4b7b6fc9') type('image/png')); }
.hero--arch .view, .hero--arch .view__land { inset: 0; }
.hero--arch .view__land { position: absolute; transform-origin: 50% 64%; }
.hero--arch .view__land > * { position: absolute; }
.hero--arch .arch { inset: 0; transform-origin: 50% 58%; }
.hero--arch .arch__frame { inset: 0; }

/* the moon: the disc matte (the old tall matte, stretched to the box, kept the plate's navy backdrop as a darker
   square around the moon) */
.hero--arch .p-moon { left: 73.9%; top: 23.5%; width: 7.5%; height: 13.2%; transform-origin: -305.33% 306.82%; -webkit-mask: url('../img/moon-disc.webp?v=110416b714') center / 100% 100% no-repeat; mask: url('../img/moon-disc.webp?v=110416b714') center / 100% 100% no-repeat; }
.hero--arch .p-moon img { object-fit: contain; }

/* the dunes and their mirrored copies (hidden behind the jambs at rest; they keep the far edge out of frame while
   the arch opens and the push is still small) */
.hero--arch .p-dunes { left: 12.5%; top: 56.5%; width: 77.6%; height: 11%; transform-origin: 49.61% 68.18%; }
.hero--arch .p-dunes img { object-fit: cover; object-position: 50% 100%; }
.hero--arch .p-dunes__m { position: absolute; top: 0; width: 100%; height: 100%; transform: scaleX(-1); }
/* every mirrored copy overlaps its neighbour by 1 px: a sub-pixel gap at the seam, once scaled, shows the layer behind
   as a hairline */
.hero--arch .p-dunes__m--l { left: calc(-100% + 1px); }
.hero--arch .p-dunes__m--r { left: calc(100% - 1px); }

/* the chott: chott-fade at its own height (the opaque part is the old chott's box, the soft bottom below it) */
.hero--arch .p-chott { left: 12.5%; top: 66%; width: 77.6%; height: auto; transform-origin: 49.61% -6.46%; }
.hero--arch .p-chott__flat { position: relative; transform-origin: 50% 0; }
.hero--arch .p-chott picture { display: block; }
.hero--arch .p-chott__flat > picture { position: relative; }
.hero--arch .p-chott__flat > picture img { height: auto; display: block; }
.hero--arch .p-chott__x { position: absolute; width: 100%; height: 100%; }
.hero--arch .p-chott__x picture { height: 100%; }
.hero--arch .p-chott__x--l, .hero--arch .p-chott__x--fl { left: calc(-100% + 1px); }
.hero--arch .p-chott__x--r, .hero--arch .p-chott__x--fr { left: calc(100% - 1px); }
.hero--arch .p-chott__x--f { left: 0; }
.hero--arch .p-chott__x--l, .hero--arch .p-chott__x--r { top: 0; transform: scaleX(-1); }
.hero--arch .p-chott__x--f { top: 60.06%; transform: scaleY(-1); }
.hero--arch .p-chott__x--fl, .hero--arch .p-chott__x--fr { top: 60.06%; transform: scale(-1, -1); }
/* the glint: on the moon's reflection column */
.hero--arch .p-glint { position: absolute; left: 78%; top: 3%; width: 10%; height: 56%; transform-origin: 50% 0; pointer-events: none; }
.hero--arch .p-glint > i { position: absolute; height: 2px; border-radius: 1px; background: #f6e6c2; opacity: 0.6; }

/* the convoy: the wrapper is the rest box; the body is laid out at its peak (3.1 x the rest box) and rests scaled
   down, so it is rastered at peak (contract 3.7); hero-arch.js writes its transform under motion */
.hero--arch .p-convoy { left: 33.8%; top: 56.5%; width: 27.7%; height: 31.6%; }
.hero--arch .p-convoy__body { position: absolute; left: 0; top: 0; width: 310%; height: 310%; }
html:not(.motion) .hero--arch .p-convoy__body { transform: scale(0.32258); transform-origin: 0 0; }
.hero--arch .p-convoy img, .hero--arch .p-lantern img { object-fit: contain; }
/* the headlight glows: placed each frame by hero-arch.js (x, y in stage px; rest diameter 1.6% of the stage) */
.hero--arch .p-glow { inset: 0; pointer-events: none; }
.hero--arch .p-glow > i { position: absolute; left: 0; top: 0; width: 1.6%; aspect-ratio: 1; margin: -0.8% 0 0 -0.8%; }
.hero--arch .p-glow b { position: absolute; inset: 0; background: var(--sprite-glow, none) center / 100% 100% no-repeat; }
html:not(.motion) .hero--arch .p-glow { display: none; }

.hero--arch .p-lantern { left: 17.6%; top: 6.8%; width: 7%; height: 36.5%; transform-origin: 50% 0; }

/* the hero pill sits in its wrapper (the scrub writes the wrapper; magnets and the press own the .btn) */
.hero--arch .hero__cta-wrap { left: 39%; top: 47.57%; width: 22%; height: 7.25%; }
.hero--arch .hero__cta-wrap > .hero__cta { position: relative; left: 0; top: 0; width: 100%; height: 100%; }

/* the flare: viewport sprites centred on the decay point (desktop 72%, 78%); the halftones are squares that reach
   the farthest corner, the core 80vmin; all at opacity 0 at rest */
.hero--arch .flare { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero--arch .flare > i { position: absolute; opacity: 0; visibility: hidden; }
.hero--arch :is(.flare__sparse, .flare__dense) { --fd: 260vmax; --fd: calc(2 * hypot(72vw, 78vh)); --fd: calc(2 * hypot(72vw, 78lvh)); width: var(--fd); height: var(--fd); left: calc(72% - var(--fd) / 2); top: calc(78% - var(--fd) / 2); }
.hero--arch .flare__sparse { background: var(--sprite-halftone-sparse, none) center / cover no-repeat; }
.hero--arch .flare__dense { background: var(--sprite-halftone-dense, none) center / cover no-repeat; }
.hero--arch .flare__core { width: 80vmin; height: 80vmin; left: calc(72% - 40vmin); top: calc(78% - 40vmin); background: var(--sprite-flare-core, none) center / 100% 100% no-repeat; }
.hero--arch .flare__phone { display: none; background: var(--sprite-flare-phone, none) center / cover no-repeat; }
html:not(.motion) .hero--arch .flare { display: none; }
html.motion .hero--arch :is(.stage__sky, .p-moon, .p-dunes, .p-chott, .arch, .p-lantern, .flare > i) { will-change: transform, opacity; }

/* a band of night over the arch crown, so the nav reads against the stone */
@media not all and (max-aspect-ratio: 1/1) {
  html.motion .hero--arch .scene { will-change: transform; }
  .hero--arch .arch::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 9%; background: linear-gradient(180deg, #081727 0, #081727 42%, rgba(8, 23, 39, 0) 100%); pointer-events: none; }
}

/* phone landscape (844 x 390): the landscape stage, the merged view and the phone flare at the desktop decay point */
@media (orientation: landscape) and (max-height: 500px) {
  .hero--arch .p-glow { display: none; }
  .hero--arch :is(.flare__sparse, .flare__dense, .flare__core) { display: none; }
  .hero--arch .flare__phone { display: block; --fd: 260vmax; --fd: calc(2 * hypot(72vw, 78vh)); --fd: calc(2 * hypot(72vw, 78lvh)); width: var(--fd); height: var(--fd); left: calc(72% - var(--fd) / 2); top: calc(78% - var(--fd) / 2); }
  html.motion .hero--arch :is(.p-moon, .p-dunes, .p-chott) { will-change: auto; }
  html.motion .hero--arch .view__land { will-change: transform, opacity; }
}

/* phone-shaped viewports: the tall doorway */
@media (max-aspect-ratio: 1/1) {
  /* The doorway plate: opening x 13-87%, crown at 7%, sill at 93%. Inside it, top to bottom: lantern and
     moon under the crown, the copy, the dune horizon at 56-62%, the salt flat to the sill, the convoy on it. */
  .hero--arch .arch { transform-origin: 50% 52%; }
  /* when the viewport is wider than the plate (tablets) the extra height is cropped mostly below the sill, never the crown */
  .hero--arch .stage { top: calc(50% + (var(--sh) - 100svh) / 4); }
  .hero--arch .hero__copy { top: calc(50svh + (var(--sh) - 100svh) / 4); }
  @supports (height: 100lvh) { .hero--arch .stage { top: calc(50lvh + (var(--sh) - 100lvh) / 4); } }
  .hero--arch .p-moon { left: 57%; top: 12.5%; width: 19%; height: auto; aspect-ratio: 1; transform-origin: 50% 50%; }
  .hero--arch .p-dunes { left: -30%; top: 55.6%; width: 160%; height: 6.6%; transform-origin: 50% 50%; }
  .hero--arch .p-dunes__m { display: none; }
  .hero--arch .p-dunes > picture { display: block; height: 100%; }
  /* chott-fade, 41.25% of the stage high (the old chott's 33% box plus its soft bottom), its right edge at 78% */
  .hero--arch .p-chott { left: -174.35%; top: 61.6%; width: 323.53%; transform-origin: 50% 50%; }
  .hero--arch :is(.p-chott__x--l, .p-chott__x--r, .p-chott__x--fl, .p-chott__x--fr) { display: none; }
  .hero--arch .p-convoy { left: 16%; top: 57.5%; width: 68%; height: 24%; }
  .hero--arch .p-convoy__body { width: 190%; height: 190%; }
  html:not(.motion) .hero--arch .p-convoy__body { transform: scale(0.52632); }
  .hero--arch .p-lantern { left: 15.5%; top: 0; width: 15%; height: 23%; }
  .hero--arch .p-glow { display: none; }
  /* the copy is one block on phones (styles.css stacks it); the wrapper carries the gap above the pill */
  .hero--arch .hero__cta-wrap { width: auto; height: auto; margin-top: 1.1rem; }
  .hero--arch .hero__cta-wrap > .hero__cta { width: auto; height: auto; margin-top: 0; }
  .hero--arch :is(.flare__sparse, .flare__dense, .flare__core) { display: none; }
  .hero--arch .flare__phone { display: block; --fd: 260vmax; --fd: calc(2 * hypot(50vw, 76vh)); --fd: calc(2 * hypot(50vw, 76lvh)); width: var(--fd); height: var(--fd); left: calc(50% - var(--fd) / 2); top: calc(76% - var(--fd) / 2); }
  html.motion .hero--arch :is(.p-moon, .p-dunes, .p-chott) { will-change: auto; }
  html.motion .hero--arch .view__land { will-change: transform, opacity; }
}

/* ===== src/scenes/hero-moon.css ===== */
/* Scene "hero-moon" (spec 10): the /moon/ hero, the caravan under the giant moon, on top of the shared hero base in
   src/styles.css. Every rule is scoped under .hero--moon. Rest positions are the built mockup's (stage percentages).
   The land group's body (.m-land__body) is laid out at 1.2x the stage and rests at scale 0.833 about the stage point
   (66%, 72%) (phone (60%, 74%)): its children use the same percentages as the stage, and the dolly (0.833 -> 1) never
   upscales them (raster at peak, contract 3.7). Writers (contract 4.2): hero-moon.js writes transforms and opacity
   through GSAP only; no CSS transition or animation touches a transform here. */
.hero--moon > .pin__view { height: 100vh; height: 100lvh; }
/* the stage sky hides the stars of the page sky (they come out when it fades, 0.80-0.90): the page sky's own night
   gradient with the print speckle at one tile pixel per device pixel, so the fade only uncovers the stars */
.hero--moon .stage__sky { inset: 0; background: linear-gradient(180deg, #071426 0%, #0b1d36 45%, #12294a 100%); }
.hero--moon .stage__sky::after { content: ''; position: absolute; inset: 0; background-image: image-set(url('../img/sky-speckle.webp?v=56efaf7c69') 1x, url('../img/sky-speckle.webp?v=56efaf7c69') 1.25x, url('../img/sky-speckle.webp?v=56efaf7c69') 1.5x, url('../img/sky-speckle.webp?v=56efaf7c69') 2x, url('../img/sky-speckle.webp?v=56efaf7c69') 2.5x, url('../img/sky-speckle.webp?v=56efaf7c69') 3x); }
/* Print hooks (contract 3.26): .scene isolates what is before the slot; the copy and the flare are positioned after it */
/* the stage breathes about the moon's limb beside the sub-line, so breathing never shows more moon behind it (acc. 3) */
.hero--moon .scene { isolation: isolate; transform-origin: 45% 49%; }
.hero--moon .stage img { height: auto; }
.hero--moon picture { display: block; }

/* ---------- the moon: its setting wheel (rotation about a pivot far below, and y) around its dolly (scale, opacity) */
.hero--moon .m-moon-wheel { left: 44%; top: 20%; width: 47%; transform-origin: 50% 350%; }
/* the dolly's origin is the stage point (66%, 72%) expressed in the disc's own box: x (66 - 44) / 47, y (72 - 20) / 83.1 */
.hero--moon .m-moon-disc { width: 100%; transform-origin: 46.81% 62.56%; }

/* ---------- the land group: .m-land (intro y, the fade, pointer offset) around .m-land__body (the dolly) */
.hero--moon .m-land { inset: 0; }
.hero--moon .m-land__body { position: absolute; left: -13.2%; top: -14.4%; width: 120%; height: 120%; transform-origin: 66% 72%; transform: scale(0.8333); }
.hero--moon .m-land__body > * { position: absolute; }
/* desktop: the ksar's own dolly about the stage point (66%, 72%) in its box: (66 - 3.5) / 16, (72 - 65.5) / 13.15 */
.hero--moon .m-ksar { left: 3.5%; top: 65.5%; width: 16%; transform-origin: 390.6% 49.4%; }
.hero--moon .m-ridge { left: -2%; top: 69%; width: 104%; }
/* the caravan's box (the single caravan sprite of the mockup, 2529 x 589); each walker sits at its meta box in it */
.hero--moon .m-land__body { --cx: 33%; --cy: 57.5%; --cw: 40; }
.hero--moon .m-c { left: calc(var(--cx) + var(--bx) * var(--cw) * 1%); top: calc(var(--cy) + var(--by) * var(--cw) * var(--ar) * 0.232898%); width: calc(var(--bw) * var(--cw) * 1%); }
.hero--moon .m-c3 { transform-origin: 50% 100%; } /* the recordist turns about his feet */
.hero--moon .m-car { left: 76%; top: 60.5%; width: 14%; transform-origin: 28% 92%; } /* the nose dips about the rear wheel */
/* the lamp glow: rest diameter 3% of the stage width (--bd, as a share of the car's width). .m-beam is the glow's box at
   its peak (8x), centred on ridge-4x4.meta.lamp (--lx, --ly); .m-beam__swing turns and fades it about that centre;
   .m-beam__glow is laid out at the peak and rests at scale 0.125 (raster at peak, so the 8x is never an upscale) */
.hero--moon .m-car { --bd: calc(3 / 14 * 100%); }
.hero--moon .m-beam { position: absolute; width: calc(var(--bd) * 8); aspect-ratio: 1; left: calc(var(--lx) * 100% - var(--bd) * 4); top: calc(var(--ly) * 100% - var(--bd) * 4 * var(--car-ar)); }
.hero--moon :is(.m-beam__swing, .m-beam__glow) { position: absolute; inset: 0; }
.hero--moon .m-beam__glow { transform: scale(0.125); background: var(--sprite-glow) center / 100% 100% no-repeat; }

/* layers promoted once per pin (contract 4.3; desktop budget 10 before 0.62, spec 10 Budget) */
html.motion .hero--moon :is(.scene, .m-moon-disc, .m-ksar, .m-car, .m-c, .m-beam__glow) { will-change: transform; }
html.motion .hero--moon .flare > i { will-change: opacity; }

/* ---------- copy: the mockup's positions, kept clear of the left side tab where the stage is wider than the screen */
/* the copy box is placed without a transform, so GSAP owns its transform on phones (it moves as one element there) */
.hero--moon .hero__copy { transform: none; left: calc(50% - var(--sw) / 2); top: calc(50svh - var(--sh) / 2); }
.hero--moon .hero__copy > *, .hero--moon .hero__copy h1 > span { justify-content: flex-start; }
.hero--moon .hero__copy { --cl: calc((var(--sw) - 100vw) / 2 + clamp(2.1rem, 2.7vw, 3.4rem) + 0.75rem); }
.hero--moon .h-line--1 { left: max(8%, var(--cl)); top: 12.5%; width: 70%; height: 15%; font-size: calc(var(--su) * 11.6); }
.hero--moon .h-line--2 { left: max(8.6%, calc(var(--cl) + 0.6% )); top: 29.5%; width: 70%; height: 15%; font-size: calc(var(--su) * 11.6); }
/* the sub-line breaks in two and carries a static navy halo where it crosses the moon's limb (spec 10) */
.hero--moon .hero__sub { left: max(8.7%, calc(var(--cl) + 0.7%)); top: 45.2%; width: 30%; height: 7.6%; justify-content: flex-start; white-space: normal; line-height: 1.3; font-family: var(--font-serif); font-size: calc(var(--su) * 1.75); font-weight: 400; text-shadow: 0 0 0.6em rgba(6, 17, 31, 0.85); }
.hero--moon .hero__cta-wrap { left: max(8.4%, calc(var(--cl) + 0.4%)); top: 55%; width: 20.2%; height: 7.2%; }
.hero--moon .hero__cta { position: relative; left: auto; top: auto; width: 100%; height: 100%; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: max(1.17rem, calc(var(--su) * 1.75)); }

/* ---------- the flare (contract 3.26: the last child of .pin__view, viewport-sized, centred on the decay point).
   The halftones are square sprites drawn as a square of side 2R centred on the decay point, R reaching 8% past the
   farthest corner of the view, so the dots cover the frame at 0.80 (spec 10 acceptance 5); the core is 80vmin. Phones
   (portrait and phone landscape) show the merged flare-phone sprite instead (02's phone version, contract 2). */
.hero--moon .flare { position: absolute; inset: 0; pointer-events: none; overflow: hidden; container-type: size; --fx: 72; --fy: 78; }
.hero--moon .flare > i { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.hero--moon :is(.flare__sparse, .flare__dense, .flare__phone) {
  --R: calc(1.08 * hypot(max(var(--fx), 100 - var(--fx)) * 1cqw, max(var(--fy), 100 - var(--fy)) * 1cqh));
  background: no-repeat calc(var(--fx) * 1cqw - var(--R)) calc(var(--fy) * 1cqh - var(--R)) / calc(2 * var(--R)) calc(2 * var(--R));
  transform-origin: calc(var(--fx) * 1%) calc(var(--fy) * 1%);
}
.hero--moon .flare__sparse { background-image: var(--sprite-halftone-sparse); }
.hero--moon .flare__dense { background-image: var(--sprite-halftone-dense); }
.hero--moon .flare__phone { display: none; background-image: var(--sprite-flare-phone); }
/* the merged sprite carries the core at 0.6 of its side, so it is drawn smaller than the halftones: a side of 1.3x the
   longer view edge (the cream stays under 40% of the frame; the dots reach most of it) */
.hero--moon .flare__phone { --R: calc(0.65 * max(100cqw, 100cqh)); }
.hero--moon .flare > .flare__core { inset: auto; left: calc(var(--fx) * 1cqw - 40vmin); top: calc(var(--fy) * 1cqh - 40vmin); width: 80vmin; height: 80vmin; background: var(--sprite-flare-core) center / 100% 100% no-repeat; }

/* ---------- phone portrait (and 768 x 1024): the phone frame of its own. Copy stacked in the sky above the moon,
   starting at max(14svh, safe top + 64px) (00, contract 4.4); the moon rises below it; the ridge crest at 77% carries
   the ksar, the caravan and the 4x4, the 4x4 drawn far enough in that its lamp, and the beam that grows from it, stay
   in the frame. The land's dolly is about (60%, 74%). */
@media (orientation: portrait) {
  .hero--moon .scene { transform-origin: 60% 74%; }
  .hero--moon .m-moon-wheel { left: 12%; top: 45%; width: 100%; }
  /* (60 - 12) / 100, (74 - 45) / 56.5 */
  .hero--moon .m-moon-disc { transform-origin: 48% 51.3%; }
  .hero--moon .m-land__body { left: -12%; top: -14.8%; transform-origin: 60% 74%; --cx: 20%; --cy: 71.4%; --cw: 48; }
  .hero--moon .m-ridge { left: -113%; top: 76.8%; width: 240%; }
  .hero--moon .m-ksar { left: -3%; top: 73%; width: 22%; }
  .hero--moon .m-car { left: 68.5%; top: 73.5%; width: 19%; --bd: calc(3 / 19 * 100%); }
  .hero--moon .flare { --fx: 50; --fy: 76; }
  .hero--moon .flare__phone { display: block; }
  .hero--moon .hero__copy { align-items: flex-start; padding: calc((var(--sh) - 100svh) / 2 + max(14svh, env(safe-area-inset-top, 0px) + 64px)) calc((var(--sw) - 100vw) / 2 + var(--gutter-l)) 0; }
  .hero--moon .hero__copy > *, .hero--moon .hero__copy h1 > span { justify-content: flex-start; text-align: left; left: auto; top: auto; }
  .hero--moon .h-line--1, .hero--moon .h-line--2 { width: auto; height: auto; font-size: min(13.6vw, 8.6svh); }
  .hero--moon .h-line--2 { font-size: min(17.4vw, 11svh); margin-top: 0.12em; }
  .hero--moon .hero__sub { width: min(80vw, 24rem); height: auto; font-size: clamp(1rem, 4.2vw, 1.25rem); }
  .hero--moon .hero__cta-wrap { width: auto; height: auto; margin-top: 1.1rem; }
  .hero--moon .hero__cta { width: auto; height: auto; min-height: 3.2rem; padding: 0.7em 2.2em; font-size: 1.08rem; }
  html.motion .hero--moon .hero__copy { will-change: transform, opacity; }
  html.motion .hero--moon :is(.m-ksar, .m-c) { will-change: auto; }
}
/* phone landscape (844 x 390): the landscape plates and desktop beats with the phone layer rules (contract 2); the
   copy moves down out of the header's band and as one element */
@media (orientation: landscape) and (max-height: 500px) {
  .hero--moon .flare__phone { display: block; }
  /* the copy is set smaller and lower than the mockup's, below the header's band and above the ksar */
  .hero--moon .h-line--1, .hero--moon .h-line--2 { font-size: calc(var(--su) * 7.6); }
  .hero--moon .h-line--1 { top: 22%; }
  .hero--moon .h-line--2 { top: 35.5%; }
  .hero--moon .hero__sub { top: 49%; }
  .hero--moon .hero__cta-wrap { top: 58.5%; height: 6.6%; }
  .hero--moon .hero__sub { font-size: max(0.85rem, calc(var(--su) * 1.75)); }
  .hero--moon .hero__cta { font-size: max(0.95rem, calc(var(--su) * 1.75)); min-height: 0; }
  html.motion .hero--moon .hero__copy { will-change: transform, opacity; }
  html.motion .hero--moon :is(.m-ksar, .m-c) { will-change: auto; }
}

/* reduced motion (contract 3.9): the resting composition fades in once over 0.4 s; no pin (styles.css), no flare */
@keyframes hero-moon-in { from { opacity: 0; } to { opacity: 1; } }
html.js:not(.motion) .hero--moon :is(.scene, .hero__copy) { animation: hero-moon-in 0.4s linear both; }

/* ===== src/scenes/about.css ===== */
/* Scene "about" (spec 03): the About block on the home pages. /about-us/ has its own copy of the grid and the doorway
   photograph (inner.css, under .page-body), so everything here is scoped under .intro.
   Back to front inside the section (its own stacking context): the crest along the top (z 0), the ridge-fade dune at
   the foot (z 1), the grid with the text column and the photo (z 2). The photo stands on the dune: the ridge's crest
   peak is placed under the photo's centre and at its sill, through CSS anchor positioning (static compositions:
   reduced motion, no JavaScript); under motion about.js re-measures it on refresh and writes it as a transform.
   No margin-top and no z-index on the root: the ledger sets them (contract §3.20). */
.intro {
  --pb: 36svh;          /* clear band under the sill: 04's 30svh rise from behind, plus 6svh */
  --crest-h: 9svh;
  --rw: 120vw;          /* ridge-fade width (2688 x 680) */
  --ridge-up: 1vw;      /* the peak's top sits this much above the sill, so the lower sill corner touches the crest */
  --pw: min(100%, 24rem);
  --pc: 79vw;           /* the photo's centre x, for the static fallback without anchor positioning */
  isolation: isolate;
  overflow-x: clip;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--crest-h) + 6svh);
  padding-bottom: var(--pb);
}

/* the top edge: a soft dune line with a sand rim, never a straight edge; 104vw wide so its 2% drift never shows an end */
.intro .crest { position: absolute; z-index: 0; left: -1vw; top: 0; width: 104vw; height: var(--crest-h); max-width: none; overflow: visible; pointer-events: none; }
.intro .crest__rim { fill: none; stroke: var(--sand); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.intro .crest__speck { fill: none; stroke: var(--sand); stroke-width: 1.6px; stroke-linecap: round; stroke-dasharray: 0 7 0 3 0 11 0 5 0 17 0 4 0 9; opacity: 0.55; vector-effect: non-scaling-stroke; }

/* the dune at the foot: its crest peak (x 0.714 of the plate) under the photo's centre, its top at the sill */
.intro .intro__ridge { position: absolute; z-index: 1; width: var(--rw); max-width: none; left: clamp(-20vw, calc(var(--pc) - 0.714 * var(--rw)), 0px); top: calc(100% - var(--pb) - var(--ridge-up)); pointer-events: none; }
.intro .intro__ridge img { width: 100%; height: auto; }
.intro .doorway { anchor-name: --about-sill; }
@supports (top: anchor(--a bottom)) {
  .intro .intro__ridge { left: clamp(-20vw, calc(anchor(--about-sill center) - 0.714 * var(--rw)), 0px); top: calc(anchor(--about-sill bottom) - var(--ridge-up)); }
}

/* the grid: text column centred vertically on the photo */
.intro .intro__grid { position: relative; z-index: 2; width: 100%; max-width: 82rem; margin-inline: auto; display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.intro .intro__text > * + * { margin-top: 1.6rem; }
.intro .intro__text .btn { margin-top: 2.2rem; }
/* the paragraph's line masks keep the focus ring of "international shoots" whole */
.intro .prose .split__line-mask { overflow-clip-margin: 7px; }
.intro .drift { position: relative; justify-self: center; width: var(--pw); }

/* the doorway: an arch print in a night mat; the ochre keyline is the svg (drawn from both feet to the crown) */
.intro .doorway { position: relative; width: 100%; aspect-ratio: 3 / 4.1; border-radius: 999px 999px 0.4rem 0.4rem; overflow: hidden; box-shadow: 0 0 0 0.7rem var(--night-800), 0 0 0 calc(0.7rem + 1px) rgba(242, 166, 75, 0.5), 0 2.5rem 4rem -1.5rem rgba(0, 0, 0, 0.8); }
/* the picture is larger than the arch: the window parallax (y ±6%) and the pointer pan (x ±12 px) never show its edge */
.intro .doorway picture { position: absolute; top: -7%; bottom: -7%; left: -14px; right: -14px; width: auto; height: auto; max-width: none; }
.intro .doorway img { width: 100%; height: 100%; object-fit: cover; }
.intro .doorway__line { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; fill: none; stroke: var(--ochre); stroke-width: 2px; pointer-events: none; }
.intro .doorway__line path { vector-effect: non-scaling-stroke; }
.intro .doorway__veil { position: absolute; inset: 0; background: #f6e6c2; opacity: 0; pointer-events: none; }
.intro .doorway__dowel { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 6px; background: var(--ochre); box-shadow: 0 1px 0 rgba(6, 17, 31, 0.45); pointer-events: none; }
/* without motion the true colour is the 0.3 s cross-fade (styles.css): no blind, no dowel */
html:not(.motion) .intro .doorway__dowel { display: none; }
/* under motion the scene owns the reveal (data-reveal="scene"): the blind waits rolled up above the arch */
html.motion .intro .doorway .print__true, html.motion .intro .doorway__dowel { transform: translateY(-100%); }
html.motion .intro .drift, html.motion .intro .doorway picture:not(.print__true), html.motion .intro .intro__ridge { will-change: transform; }

/* desktop and phone landscape: two columns */
@media (orientation: landscape) {
  .intro .intro__grid { grid-template-columns: 1.25fr 0.75fr; }
}
/* desktop: about 110svh, grown by the content when it needs more (never clipped); the room goes above the grid */
@media (orientation: landscape) and (height > 500px) {
  .intro { min-height: 110svh; }
}
/* phone landscape: a short frame; the photo fits its height, the portrait band under the sill (LANES 4.29) */
@media (orientation: landscape) and (max-height: 500px) {
  .intro { --pb: 26svh; --crest-h: 7svh; --pw: min(100%, calc((100svh - 6rem) * 3 / 4.1)); }
}
/* phone portrait: one column, the photo above the text at 78vw standing on the dune (160vw); the heading starts where
   the dune under the photo has faded out */
@media (orientation: portrait) {
  .intro { --pb: 26svh; --crest-h: 6svh; --rw: 160vw; --pw: 78vw; --ridge-up: 3.2vw; --pc: 50vw; padding-top: calc(var(--crest-h) + 7svh); }
  .intro .drift { order: -1; }
  .intro .intro__grid { row-gap: calc(var(--rw) * 680 / 2688 - 3vw); }
}
/* tablet portrait: the photo at 56vw */
@media (orientation: portrait) and (min-width: 601px) {
  .intro { --pw: 56vw; }
}

/* ===== src/scenes/cinema.css ===== */
/* Scene "cinema" (spec 04): the showreel on a tall open-air cinema screen (src/scenes/cinema.html.mjs, cinema.js).
   The base rules are the scene's peak frame: that is the whole scene with reduced motion and without JavaScript (a
   100lvh section, lit plate, the video with its native bar wholly above the chair finials). Under html.motion the
   scene's script scrubs every layer from there (the set is laid out at its peak size and scaled down, contract §3.7).
   Every number of the opening comes from the plates' measured box (--c-* on the section, written at build time). */

/* only the opening's box and the two pills take pointer events: the section, its pin and every layer let them through */
.cinema { position: relative; pointer-events: none; }
.cinema__view {
  position: relative; height: 100vh; height: 100lvh; overflow: clip; pointer-events: none;
  /* the set's box at peak: the opening is 78% of the view tall until the plate's own width is reached (no upscale) */
  --bw: min(var(--c-peak), var(--c-max));
}
.cinema__view picture { display: block; }
.cinema__view img { display: block; width: 100%; height: 100%; }

/* far-steppe: 120vw wide, its bottom at 72% of the view; the plain at its foot runs on down (its own flat ink,
   measured from the plate's last rows), so the steppe never ends on a straight line in the sky */
.cinema__far { position: absolute; left: -10vw; width: 120vw; bottom: 28%; aspect-ratio: 2688 / 369; }
.cinema__far::after { content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 60lvh; background: #071f38; }

/* the set: box B wide, the opening's centre at (50vw, 47%) */
.cinema__set {
  position: absolute; width: var(--bw); aspect-ratio: var(--c-ar); isolation: isolate;
  left: calc(50% - var(--c-ox) * var(--bw)); top: calc(47% - var(--c-oy) * var(--bw) / var(--c-ar));
}
.cinema__body { position: absolute; inset: 0; transform-origin: calc(var(--c-ox) * 100%) calc(var(--c-oy) * 100%); }
.cinema__body > picture, .cinema__lit-scrub, .cinema__lit-steps, .cinema__lit-steps > picture { position: absolute; inset: 0; }
/* the plates' ground is cut straight at their row 1490 of 1505 (the phone plate across its whole width): the sand under
   the rug's fringe dissolves into the night instead of ending on a line */
.cinema__body > picture, .cinema__lit-steps > picture {
  -webkit-mask: linear-gradient(#000 96.4%, transparent 99%); mask: linear-gradient(#000 96.4%, transparent 99%);
}
/* the opening's box, 3 px larger on every side so no hairline of sky shows between the film and the stone's soft edge */
.cinema__screen {
  /* its own stacking context (z 0): the video and the stock stack inside it, all of it under the plates */
  position: absolute; z-index: 0; pointer-events: auto;
  left: calc(var(--c-sx) * 100% - 3px); top: calc(var(--c-sy) * 100% - 3px);
  width: calc(var(--c-sw) * 100% + 6px); height: calc(var(--c-sh) * 100% + 6px);
}
/* without motion the video ends at the chair finials, so its native bar is wholly above the chair backs; the cream
   stock stays under it; cover crops the poster and the film alike (focus 50% 36%) */
.cinema__video { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--c-fin) * 100%); object-fit: cover; object-position: 50% 36%; z-index: 1; }
.cinema__stock { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-color: #f6e6c2; background-image: var(--sprite-stock, none); background-size: 256px 256px; }
html:not(.motion) .cinema__dim { display: none; }

/* the two icon pills: bottom right of the opening, 12 px in from the right jamb, 12 px above the finials (motion only) */
.cinema__ctl {
  display: none; position: absolute; z-index: 3; gap: 8px; pointer-events: auto;
  right: calc((1 - var(--c-sx) - var(--c-sw)) * 100% + 12px);
  top: calc((var(--c-sy) + var(--c-fin) * var(--c-sh)) * 100% - 52px);
}
html.motion .cinema__ctl { display: flex; opacity: 0; }
html.motion .cinema__ctl:not(.is-on) { pointer-events: none; }
.cinema__btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  color: var(--cream); background: rgba(6, 17, 31, 0.7); cursor: pointer; transition: background-color 0.2s;
}
.cinema__btn:hover { background: rgba(6, 17, 31, 0.9); }
.cinema__icon { width: 18px; height: 18px; display: block; }
.cinema__play .cinema__icon--pause, .cinema__play.is-playing .cinema__icon--play { display: none; }
.cinema__play.is-playing .cinema__icon--pause { display: block; }

/* near-camera: left 2vw, bottom -4%, 28vw wide or less so its right edge stays 2vw left of the opening at peak
   (its x ends at +4% of its width) */
.cinema__camera {
  position: absolute; left: 2vw; bottom: -4%; aspect-ratio: 1123 / 865;
  width: min(28vw, calc((50vw - (var(--c-ox) - var(--c-sx)) * var(--bw) - 4vw) / 1.04));
}
/* near-palms: 92lvh x 1.25 tall about its bottom-left corner, bottom 0, left edge 78vw */
.cinema__palms { position: absolute; left: 78vw; bottom: -1px; height: 115lvh; aspect-ratio: 1360 / 2036; }
/* the peak frame without motion: the camera at +4% of its width, the palms at the end of their drift */
html:not(.motion) .cinema__camera { transform: translateX(4%); }
html:not(.motion) .cinema__palms { transform: translateX(-10vw); }

/* layers promoted once (contract §4.3): the stock and the lit picture carry their own layers so the scrubbed fades
   and the breathing never repaint the set; the set's body is promoted by the raster (§3.7) */
html.motion .cinema__far, html.motion .cinema__stock, html.motion .cinema__lit-steps > picture { will-change: opacity; }
html.motion .cinema__camera { will-change: transform; }
@media (orientation: landscape) and (height > 500px) {
  html.motion .cinema__palms { will-change: transform; }
}
html.motion .cinema__video { height: 100%; z-index: 1; }
html.motion .cinema__stock { z-index: 2; }

/* phone portrait (and the 768 tablet): the phone plate; the opening clamp(82.5vw, 46lvh, 86vw) wide, centred at
   (50vw, 44%) (lower on a view too short for its height, so the arch never leaves the frame at the top) */
@media (orientation: portrait) {
  .cinema__view {
    --wo: clamp(82.5vw, 46lvh, 86vw);
    --bw: calc(var(--wo) / var(--c-psw));
    --ho: calc(var(--c-psh) * var(--bw) / var(--c-par));
    --cy: max(44lvh, calc(var(--ho) / 2 + 2lvh));
  }
  .cinema__set { aspect-ratio: var(--c-par); left: calc(50% - var(--c-pox) * var(--bw)); top: calc(var(--cy) - var(--c-poy) * var(--bw) / var(--c-par)); }
  .cinema__body { transform-origin: calc(var(--c-pox) * 100%) calc(var(--c-poy) * 100%); }
  /* the phone crop carries the cut sand strip across its whole width: the plate ends at the rug's own fringe (row 1463) */
  .cinema__body > picture, .cinema__lit-steps > picture {
    -webkit-mask: linear-gradient(#000 97.1%, transparent 98.3%); mask: linear-gradient(#000 97.1%, transparent 98.3%);
  }
  .cinema__screen {
    left: calc(var(--c-psx) * 100% - 3px); top: calc(var(--c-psy) * 100% - 3px);
    width: calc(var(--c-psw) * 100% + 6px); height: calc(var(--c-psh) * 100% + 6px);
  }
  .cinema__ctl { right: calc((1 - var(--c-psx) - var(--c-psw)) * 100% + 12px); top: calc((var(--c-psy) + var(--c-fin) * var(--c-psh)) * 100% - 52px); }
  /* far-steppe 220vw, static at 0.5 */
  .cinema__far { left: -60vw; width: 220vw; opacity: 0.5; }
  /* near-camera 64vw or less, its top 3% or more below the opening, bottom -4% */
  .cinema__camera { width: min(64vw, calc((101lvh - var(--cy) - var(--ho) / 2) * 1.2983)); }
  /* near-palms 78lvh tall, off frame until the exit */
  .cinema__palms { left: 100vw; height: 78lvh; }
  html:not(.motion) .cinema__palms, html:not(.motion) .cinema__camera { transform: none; }
  html.motion .cinema__far { will-change: auto; }
}

/* ===== src/scenes/services.css ===== */
/* Scene "services" (spec 05): the home services as one pinned table (desktop and portrait, under motion), or N
   stacked rows, each illustration above its text (no JavaScript, reduced motion, phone landscape, the phone
   fallback: .is-unpinned on the root). Every rule is scoped under .svc. The root is the [data-ho="services"] ledger
   element: no margin-top, z-index or top-edge fill here (CONTRACT 3.20). */

/* ---------- rows: the composition without motion (and the fallbacks under motion) ---------- */
.svc { position: relative; padding: clamp(5rem, 12vw, 11rem) var(--gutter-r) clamp(5rem, 12vw, 11rem) var(--gutter-l); }
.svc .svc__view { max-width: 82rem; margin-inline: auto; }
.svc .svc__desk { display: none; }
.svc .svc__lead { margin-top: 1.6rem; }
.svc .svc__index { display: grid; gap: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 7vw, 6rem); align-items: start; }
@media (min-width: 901px) { .svc .svc__index { grid-template-columns: 1fr 1fr; } }
.svc .svc__item { max-width: 36rem; }
.svc .svc__item figure { margin-bottom: 1.2rem; max-width: 26rem; }
.svc .svc__item h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); line-height: 0.95; color: var(--cream); }
.svc .svc__item .prose { margin-top: 1rem; color: var(--cream-dim); }
.svc .svc__num, .svc .svc__rings, .svc .svc__wire { display: none; }

/* ---------- the pinned table (motion; desktop and portrait; not unpinned) ---------- */
@media (orientation: landscape) and (height > 500px), (orientation: portrait) {
  html.motion .svc:not(.is-unpinned) { padding: 0; }
  html.motion .svc:not(.is-unpinned) .svc__view { height: 100vh; height: 100lvh; max-width: none; margin: 0; overflow-x: clip; }
  /* the desk: one isolated group before the Print slot (CONTRACT 3.26) */
  html.motion .svc:not(.is-unpinned) .svc__desk { display: block; position: absolute; inset: 0; isolation: isolate; pointer-events: none; }
  /* the amber desk pool: a radial ink that ends in the sky, no edge; its opacity has one writer (04's gate watch) */
  html.motion .svc:not(.is-unpinned) .svc__pool { position: absolute; opacity: 0; background: radial-gradient(closest-side, rgba(244, 169, 86, 0.12), rgba(244, 169, 86, 0.07) 50%, rgba(244, 169, 86, 0)); }
  /* the carry and the pile share the top sheet's box, centred on the pile's rest centre */
  html.motion .svc:not(.is-unpinned) .svc__carry { position: absolute; width: var(--services-w); height: calc(var(--services-w) / var(--services-a0)); left: calc(var(--services-cx) - var(--services-w) / 2); top: calc(var(--services-cy) - var(--services-w) / var(--services-a0) / 2); }
  html.motion .svc:not(.is-unpinned) .svc__pile { position: absolute; inset: 0; will-change: transform; }
  html.motion .svc:not(.is-unpinned) .sheet { position: absolute; left: 0; width: 100%; height: calc(var(--services-w) / var(--services-a)); top: calc(50% - var(--services-w) / var(--services-a) / 2); }
  html.motion .svc:not(.is-unpinned) .sheet.is-lift { will-change: transform, opacity; }
  html.motion .svc:not(.is-unpinned) .sheet__tilt { width: 100%; height: 100%; transform-origin: 50% 0; }
  html.motion .svc:not(.is-unpinned) .sheet picture, html.motion .svc:not(.is-unpinned) .sheet img { width: 100%; height: 100%; }
  /* the veil under the top sheet: a soft navy shadow (no box edge), one layer whose stacking follows the window */
  html.motion .svc:not(.is-unpinned) .svc__veil { position: absolute; inset: -6% -4%; opacity: 0.3; will-change: opacity; background: radial-gradient(closest-side, #06111f 35%, rgba(6, 17, 31, 0.55) 70%, rgba(6, 17, 31, 0)); }
  /* the two clips: boxes whose (0, 0) is the clip's pivot (the top of its handles), placed and turned by the script */
  html.motion .svc:not(.is-unpinned) .svc__clips { position: absolute; inset: 0; z-index: 40; }
  html.motion .svc:not(.is-unpinned) .svc__clip { position: absolute; left: -14px; top: -1px; width: 28px; height: 27px; transform-origin: 14px 1px; will-change: transform; }
  html.motion .svc:not(.is-unpinned) .svc__clip svg { display: block; overflow: visible; }
  .svc .svc__clip-body { fill: #0e2036; stroke: var(--ochre); stroke-width: 1.5; stroke-linejoin: round; }
  .svc .svc__clip-wire { fill: none; stroke: var(--ochre); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  /* the text: positioned above the slot (CONTRACT 3.26); one grid with every paragraph in one shared cell */
  html.motion .svc:not(.is-unpinned) .svc__text { position: absolute; z-index: 1; }
  html.motion .svc:not(.is-unpinned) .svc__index { position: absolute; left: 0; right: 0; display: grid; margin: 0; gap: 0; }
  html.motion .svc:not(.is-unpinned) .svc__item { display: contents; }
  html.motion .svc:not(.is-unpinned) .svc__item figure { display: none; }
  html.motion .svc:not(.is-unpinned) .svc__item h3 { position: relative; color: var(--cream-dim); transition: color 0.3s linear; cursor: pointer; }
  html.motion .svc:not(.is-unpinned) .svc__item h3.is-on { color: var(--vermilion); }
  html.motion .svc:not(.is-unpinned) .svc__item .prose { position: relative; max-width: 40rem; }
  html.motion .svc:not(.is-unpinned) .svc__head { transform-origin: 0 0; }
  html.motion .svc:not(.is-unpinned) .svc__leadwrap { position: relative; }
  /* waiting for the table's first toggle (the script takes these over inline) */
  html.motion .svc:not(.is-unpinned) :is(.svc__num, .svc__item h3, .svc__item .prose, .svc__wire, .svc__rings) { opacity: 0; }
}

/* ---------- desktop table: pile centred at (28vw, 52%), 38vw wide; text column x 56–94vw ---------- */
@media (orientation: landscape) and (height > 500px) {
  html.motion .svc:not(.is-unpinned) { --services-w: 38vw; --services-cx: 28vw; --services-cy: 52%; }
  html.motion .svc:not(.is-unpinned) .svc__pool { left: -2vw; top: calc(52% - 35svh); width: 60vw; height: 70svh; }
  html.motion .svc:not(.is-unpinned) .svc__text { left: 56vw; width: 38vw; top: 12svh; }
  html.motion .svc:not(.is-unpinned) .svc__title { font-size: clamp(2.4rem, 4.7vw, 6rem); white-space: nowrap; }
  html.motion .svc:not(.is-unpinned) .svc__lead { max-width: 100%; }
  /* columns: the wire, the numerals, the titles (and the shared paragraph cell under them) */
  html.motion .svc:not(.is-unpinned) .svc__index { grid-template-columns: 1rem 2.6rem minmax(0, 1fr); }
  html.motion .svc:not(.is-unpinned) .svc__num { display: block; position: relative; grid-column: 2; grid-row: var(--row); align-self: center; font-family: var(--font-serif); font-size: 0.95rem; letter-spacing: 0.04em; color: var(--sand); }
  html.motion .svc:not(.is-unpinned) .svc__item h3 { grid-column: 3; grid-row: var(--row); font-size: clamp(1.45rem, 2.15vw, 2.5rem); line-height: 1; padding-block: 0.3em; }
  html.motion .svc:not(.is-unpinned) .svc__item .prose { grid-column: 3; grid-row: var(--slot); margin-top: 2rem; align-self: start; }
  html.motion .svc:not(.is-unpinned) .svc__wire { display: block; position: absolute; left: calc(0.5rem - 0.75px); width: 1.5px; top: 0; height: 0; background: var(--ochre); }
  html.motion .svc:not(.is-unpinned) .svc__bead { position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--cream); }
}

/* ---------- portrait table: the sheet takes the top of the view (6–46svh, 72vw; 56vw on a tablet), the title and
   paragraph sit below it from 48svh; N ochre rings stand in for the wire ---------- */
@media (orientation: portrait) {
  html.motion .svc:not(.is-unpinned) { --services-w: 72vw; --services-cx: 50vw; --services-cy: 26svh; --services-band: max(14svh, calc(env(safe-area-inset-top, 0px) + 64px)); }
  html.motion .svc:not(.is-unpinned) .svc__pool { left: -5vw; width: 110vw; top: 2svh; height: 48svh; }
  html.motion .svc:not(.is-unpinned) .svc__text { left: var(--gutter-l); right: var(--gutter-r); top: var(--services-band); }
  html.motion .svc:not(.is-unpinned) .svc__index { top: calc(48svh - var(--services-band)); grid-template-columns: minmax(0, 1fr); }
  html.motion .svc:not(.is-unpinned) .svc__item h3 { grid-row: 1; grid-column: 1; font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1; }
  html.motion .svc:not(.is-unpinned) .svc__item .prose { grid-row: 2; grid-column: 1; margin-top: 0.75rem; }
  html.motion .svc:not(.is-unpinned) .svc__rings { display: flex; position: absolute; left: 0; top: -1.35rem; gap: 0.55rem; }
  html.motion .svc:not(.is-unpinned) .svc__rings i { display: block; width: 0.62rem; height: 0.62rem; border: 1.5px solid var(--ochre); border-radius: 50%; transition: background-color 0.3s linear; }
  html.motion .svc:not(.is-unpinned) .svc__rings i.is-on { background-color: var(--ochre); }
}
@media (orientation: portrait) and (min-width: 700px) {
  html.motion .svc:not(.is-unpinned) { --services-w: 56vw; }
  html.motion .svc:not(.is-unpinned) .svc__item h3 { font-size: clamp(2rem, 4.6vw, 3rem); }
}

/* ===== src/scenes/journey.css ===== */
/* Scene "journey" (spec 06): six places as one seamless panorama in depth layers, the convoy driving through.
   The owner's rule (13 Nov) shapes every composition here: no picture ever shows an end. An island is always wider
   than what frames it, so its dissolving ends (the outer 6% of each picture) stay off screen, and it stands behind a
   band of ground that hides its bottom.
   Base (no JavaScript, reduced motion, and phone landscape, where the pin collapses): the six stops in a column, each
   with its name and reasons above its own scene. A sideways scroller would always put two pictures side by side, where
   they meet, so there is none (spec 06 and contract 2 name a snap scroller: a deviation, reported).
   Motion (desktop and portrait conditions, contract §2): one pinned view in layers, back to front: small moon, far
   strips, names (behind the islands), islands, ground, convoy, near silhouettes, then the text band. Every world
   layer sits at a negative z-index inside the view (its stacking context), so the Print slot (first child) and the
   text band (head and reasons, positioned, z-index auto) paint over all of them (contract 3.26). */

/* ---------- base: six scenes in a column ---------- */
.journey { position: relative; padding-block: clamp(5rem, 12vw, 10rem) clamp(2rem, 5vw, 4rem); }
.journey__viewport { position: relative; }
.journey__viewport:focus-visible { outline-offset: -4px; }
.journey__head { width: min(100vw, 56rem); padding-inline: var(--gutter-l) var(--gutter-r); }
.journey__head .lead { margin-top: 1.6rem; }
.journey .stop { position: relative; padding-top: clamp(3rem, 7vw, 6rem); }
.journey .stop__text { display: grid; gap: 1.1rem; align-content: start; max-width: 40rem; padding-inline: var(--gutter-l) var(--gutter-r); }
.journey .stop__place { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.8rem, 1.6rem + 6vw, 7.5rem); line-height: 0.92; color: var(--vermilion); }
.journey .reason h4 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.6rem); line-height: 1.25; color: #fff3d6; }
.journey .reason p { margin-top: 0.35rem; color: var(--cream-dim); max-width: 32rem; font-size: 1.05em; }
/* a stop's scene: the island is --j-w wide, centred on the page and cut by nothing but the page's own sides; the box
   shows its top 33.5% of a width (every island is taller than that) and ends behind the ground: the steppe tile,
   repeated along the bottom, whose last third runs out into the night; the night goes on below the stop */
.journey .stop__art { --j-w: 118vw; position: relative; height: calc(0.335 * var(--j-w)); margin-top: clamp(1.2rem, 3vw, 2.4rem); overflow: clip; }
.journey .stop__art img { position: absolute; left: calc(50% - var(--j-w) / 2); top: 0; width: var(--j-w); height: auto; max-width: none; }
.journey .stop__art::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(0.135 * var(--j-w)); background: linear-gradient(rgb(31 42 63 / 0) 62%, rgb(31 42 63) 97%), url('../img/ground-steppe-tile-1600.webp?v=c60f1565e5') 50% 100% / auto 100% repeat-x; }
.journey .stop::after { content: ''; display: block; height: clamp(2.5rem, 6vw, 5rem); background: linear-gradient(rgb(31 42 63), rgb(31 42 63 / 0)); }
/* from Matmata on the ground is the sand tile, as in the pinned scene (its own last colour below it) */
.journey .stop:nth-child(n+4) .stop__art::after { background-image: linear-gradient(rgb(59 66 76 / 0) 56%, rgb(59 66 76) 97%), url('../img/ground-sand-tile-1600.webp?v=f2c62bf05e'); }
.journey .stop:nth-child(n+4)::after { background: linear-gradient(rgb(59 66 76), rgb(59 66 76 / 0)); }
.j-moon, .j-farwrap, .j-names, .j-groundwrap, .j-convoy, .j-near { display: none; }
@media (orientation: portrait) {
  .journey .stop__art { --j-w: 174vw; }
}
@media (orientation: portrait) and (min-width: 700px) {
  .journey .stop__art { --j-w: 143vw; }
}
@media not all and (max-aspect-ratio: 1/1) {
  .journey .stop__text { max-width: none; grid-template-columns: minmax(0, auto) minmax(0, 30rem); gap: 1rem clamp(2rem, 5vw, 5rem); justify-content: start; }
  .journey .stop__place { grid-row: span 3; font-size: clamp(3rem, 8.2vw, 8.5rem); }
}
@media (min-aspect-ratio: 1001/1000) and (max-height: 540px) {
  .journey .stop__text { gap: 0.6rem 2rem; }
  .journey .stop__place { font-size: 3.4rem; }
  .journey .reason h4 { font-size: 1.05rem; }
  .journey .reason p { font-size: 0.9rem; line-height: 1.45; }
}

/* ---------- motion: the pinned panorama (desktop and portrait; phone landscape keeps the column) ---------- */
.motion .journey__pin { position: relative; z-index: 1; }
@media (orientation: landscape) and (height > 500px), (orientation: portrait) {
  .motion .journey {
    --j-b: 46lvh;                              /* island box height (the 2688:1000 box; a picture's own height differs) */
    --j-bw: calc(2.688 * var(--j-b));          /* island width: every picture is exactly this wide */
    --j-step: calc(0.82 * var(--j-bw));        /* the world step of ground, near and wheels */
    --j-band: max(44vw, 34rem);                /* the text band's width */
    --j-pad: 1.25rem;                          /* room inside the reasons pane for the deal's 2° and 18 px */
    padding: 0;
  }
  /* the view cuts its world at its own edges, which are the screen's while it is pinned: layers wider than the frame
     (far strips, ground, islands) and near silhouettes parked off to the side must not widen the page (on a phone the
     browser would let the page be zoomed out to them, and innerWidth would grow with it) */
  .motion .journey__viewport { height: 100vh; height: 100lvh; overflow: hidden; overflow: clip; }
  .motion .journey__head { position: absolute; left: 6vw; top: 15svh; width: var(--j-band); margin: 0; padding: 0; }
  .motion .journey__head .title { font-size: min(clamp(2.3rem, 1.3rem + 4.2vw, 4.9rem), 4.9rem); }
  .motion .journey__head .lead { font-size: min(clamp(1.15rem, 1rem + 0.7vw, 1.5rem), 1.5rem); margin-top: 1.2rem; }
  .motion .journey__track { position: absolute; inset: 0; }
  .motion .journey .stop { position: absolute; inset: 0; padding: 0; }
  .motion .journey .stop::after, .motion .journey .stop__art::after { content: none; }
  /* the reasons pane: a clipped two-page strip; the reasons stand on page 2, shown (scrolled to) only while their
     place is the current stop, so find-in-page reaching a hidden place scrolls its pane, and the page jumps there.
     The two pages are a whole screen apart, so the boxes of reasons that are not on show lie outside the frame (the
     canvas keeps out of text boxes it finds in the frame, and nothing may be kept out of an empty sky) */
  .motion .journey .stop__text {
    position: absolute; left: calc(6vw - var(--j-pad)); top: calc(10svh - var(--j-pad)); width: calc(var(--j-band) + 2 * var(--j-pad));
    max-width: none; padding: var(--j-pad); display: grid; grid-template-columns: 100% 100%; grid-auto-flow: row; gap: 0.9rem 100vw; align-content: start; justify-content: start;
    overflow: hidden; scrollbar-width: none; overscroll-behavior: contain; pointer-events: none;
  }
  .motion .journey .stop__text.is-here { pointer-events: auto; }
  .motion .journey .stop__text > * { grid-column: 2; }
  .motion .journey .reason { opacity: 0; }
  .motion .journey .reason h4 { font-size: clamp(1.15rem, 0.85rem + 0.5vw, 1.45rem); }
  .motion .journey .reason p { max-width: none; font-size: 1rem; line-height: 1.5; margin-top: 0.25rem; }
  /* every island: its box centred on the frame, the picture as wide as the box at its own height (not fitted into
     the box: the two taller pictures, Tozeur and Tataouine, would come out narrower than the frame needs) */
  .motion .journey .stop__art { position: absolute; left: calc(50vw - var(--j-bw) / 2); width: var(--j-bw); height: var(--j-b); margin: 0; overflow: visible; z-index: -5; transform-origin: 50% 100%; will-change: transform; }
  .motion .journey .stop__art img { left: 0; top: auto; bottom: 0; width: 100%; }

  .motion .j-moon, .motion .j-farwrap, .motion .j-names, .motion .j-groundwrap, .motion .j-convoy, .motion .j-near { display: block; position: absolute; }
  .motion .j-moon { left: 76vw; top: 9%; width: 6vw; aspect-ratio: 1; z-index: -8; transform-origin: 50% 450%; will-change: transform; -webkit-mask: url('../img/moon-disc.webp?v=110416b714') center / 100% 100% no-repeat; mask: url('../img/moon-disc.webp?v=110416b714') center / 100% 100% no-repeat; }
  .motion .j-moon img { width: 100%; height: 100%; }
  .motion .j-farwrap { inset: 0; z-index: -7; }
  .motion .j-far { position: absolute; inset: 0; }
  /* far strips stand on the ground's opaque band (bottom 14%, spec 28%): their flat bottoms never show in a gap
     between buildings (the owner's rule, 13 Nov); their tops stay at 54% or lower. At the exit the scene lifts them
     back to the spec's 28% as the ground leaves */
  .motion .j-strip { position: absolute; left: 0; bottom: 14%; max-width: none; will-change: transform; }   /* wider than the view: not the global picture max-width */
  .motion .j-strip img { width: 100%; height: auto; max-width: none; }
  /* each strip is as wide as its own stretch of road: 110vw + L x step x 0.25 (coast 1.1, steppe 2.0, mesas 2.5) */
  .motion .j-strip--coast { width: calc(110vw + 0.275 * var(--j-step)); }
  .motion .j-strip--steppe { width: calc(110vw + 0.5 * var(--j-step)); opacity: 0; }
  .motion .j-strip--mesas { width: calc(110vw + 0.625 * var(--j-step)); opacity: 0; }
  /* the names stand behind the islands; their box is F tall (line-height 1), sized and placed on refresh */
  .motion .j-names { inset: 0; z-index: -6; overflow: hidden; scrollbar-width: none; }
  .motion .j-names .stop__place { position: absolute; left: 0; top: 0; margin: 0; white-space: nowrap; line-height: 1; font-size: 11vw; opacity: 0; will-change: transform; }
  .motion .j-groundwrap { inset: 0; z-index: -4; overflow: clip; }
  .motion .j-ground { position: absolute; inset: 0; }
  /* the tiles are 27lvh tall from 73% (spec: 22lvh from 78%), so the steppe tile's opaque top (46.3% of the tile at
     most, 85.5%) hides the islands' lower parts and its road band (66-76% of the tile) carries the wheels at 92%; the
     sand tile's road (61-66%) sits there from 75% */
  .motion .j-row { position: absolute; left: 0; top: 73%; height: 27lvh; display: flex; will-change: transform; }
  .motion .j-row--sand { top: 75%; opacity: 0; }
  .motion .j-tile { flex: none; height: 100%; max-width: none; margin-right: -1px; }
  .motion .j-tile img { height: 100%; width: auto; max-width: none; }
  /* the convoy: second car 19vw, a 1vw gap, lead car 24vw, both standing on the manifest ground line at 92% */
  .motion .j-convoy { left: 0; top: calc(92% - 13.639vw); width: 44vw; height: 14.1015vw; z-index: -3; will-change: transform; }
  .motion .j-car { position: absolute; }
  .motion .j-car--second { left: 0; top: 4.182vw; width: 19vw; height: 9.7837vw; }
  .motion .j-car--lead { left: 20vw; top: 0; width: 24vw; height: 14.1015vw; }
  .motion .j-car__body { position: absolute; inset: 0; }
  .motion .j-car__body img { width: 100%; height: 100%; }
  .motion .j-wheel { position: absolute; }
  .motion .j-wheel img { width: 100%; height: 100%; }
  .motion .j-headlight { position: absolute; left: 82%; top: 64%; width: 2px; height: 2px; }
  .motion .j-near { inset: 0; z-index: -2; }
  .motion .j-n { position: absolute; left: 0; bottom: -4%; max-width: none; will-change: transform; }
  .motion .j-n img { height: 100%; width: auto; max-width: none; }
  .motion .j-n--palms, .motion .j-n--camera { height: 36lvh; }
  .motion .j-n--agave, .motion .j-n--agave2, .motion .j-n--camp, .motion .j-n--camp2 { height: 30lvh; }
  .motion .j-n--wall, .motion .j-n--wall2 { height: 42lvh; }
}
/* desktop islands (the owner's rule, 13 Nov: no picture ever shows an end): every island is 118vw wide (150lvh where
   that is wider, so its bottom stays behind the ground on a narrow window), centred on the frame and hung from 36lvh,
   the bottom of the text band (acceptance 5); its lower part runs behind the ground and off the bottom of the view,
   and its dissolving ends stay outside the frame at every scroll position (journey.js gives it only the drift that
   leaves them there). The world step of the other layers stays the spec's (0.82 x 2.688 x 46lvh, 912 px at
   1440 x 900). */
@media (orientation: landscape) and (height > 500px) {
  .motion .journey { --j-bw: max(118vw, 150lvh); --j-b: calc(var(--j-bw) / 2.688); --j-step: 101.39lvh; }
  .motion .journey .stop__art { top: 36lvh; }
  .motion .journey .stop__art img { top: 0; bottom: auto; }
}
/* desktop: reason paragraphs 0.95rem between 1024 and 1280 px wide */
@media (orientation: landscape) and (height > 500px) and (max-width: 1280px) {
  .motion .journey .reason p { font-size: 0.95rem; }
}

/* ---------- phone portrait (and tablet portrait): its own composition ---------- */
@media (orientation: portrait) {
  .motion .journey {
    --j-b: max(30lvh, 43.9vw);                            /* 174vw wide at 390 x 844; never narrower than 118vw */
    --j-g: calc(100svh - var(--safe-b) - 2.6rem - 3svh);  /* the convoy's ground line, above the rail and home bar */
    --j-top: max(14svh, calc(env(safe-area-inset-top, 0px) + 64px));
    --j-bot: 48svh;
    --j-band: 88vw;
    --j-shift: 0svh;
  }
  .motion .journey.j-fit1 .reason p { font-size: 0.875rem; }
  .motion .journey.j-fit2 { --j-bot: 54svh; --j-shift: 6svh; }
  .motion .journey.j-fit2 .j-farwrap { display: none; }
  .motion .journey__head { left: 6vw; top: var(--j-top); width: var(--j-band); }
  .motion .journey .stop__text { top: calc(var(--j-top) - var(--j-pad)); }
  /* the island box stands on G − 2svh; each picture stands on the box's bottom at its own height */
  .motion .journey .stop__art { top: calc(var(--j-g) - 2svh - var(--j-b) + var(--j-shift)); }
  .motion .j-moon { display: none; }
  /* far strips 320vw wide (spec 240vw), bottom at G − 3svh (spec G − 22svh), behind the ground's opaque band */
  .motion .j-strip { bottom: calc(100lvh - var(--j-g) + 3svh); }
  .motion .j-strip--coast, .motion .j-strip--steppe, .motion .j-strip--mesas { width: 320vw; }
  /* the tiles end above the screen's bottom on phones. No straight bottom edge may show: below its road each row
     runs out into the tile's own last colour (the fade the tile ends with, drawn over its last quarter instead of its
     last few pixels), and that night goes on below the row */
  .motion .j-row::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: linear-gradient(rgb(31 42 63 / 0), rgb(31 42 63) 92%); }
  .motion .j-row--sand::before { height: 34%; background: linear-gradient(rgb(59 66 76 / 0), rgb(59 66 76) 92%); }
  .motion .j-row::after { content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 40lvh; background: linear-gradient(rgb(31 42 63), rgb(31 42 57) 30%); }
  .motion .j-row--sand::after { background: linear-gradient(rgb(59 66 76), rgb(31 42 57) 30%); }
  .motion .j-row { top: calc(var(--j-g) - 10svh); height: 14lvh; }   /* the road band (71% of the tile) on G; spec G − 6svh */
  .motion .j-row--sand { top: calc(var(--j-g) - 9svh); }
  /* lead 30vw, second 24vw, 1vw gap; wheels on G */
  .motion .j-convoy { top: calc(var(--j-g) - 17.0487vw); width: 55vw; height: 17.6269vw; }
  .motion .j-car--second { top: 5.1031vw; width: 24vw; height: 12.3584vw; }
  .motion .j-car--lead { left: 25vw; width: 30vw; height: 17.6269vw; }
  .motion .j-n--palms, .motion .j-n--camera { height: 21.6lvh; }
  .motion .j-n--agave, .motion .j-n--agave2, .motion .j-n--camp, .motion .j-n--camp2 { height: 18lvh; }
  .motion .j-n--wall, .motion .j-n--wall2 { height: 25.2lvh; }
}
@media (orientation: portrait) and (min-width: 700px) {
  .motion .journey { --j-b: max(40lvh, 43.9vw); }
}

/* ===== src/scenes/close.css ===== */
/* Scene "close" (spec 07): the closing paragraph and the cuisine line, at the end of the journey section, in normal
   flow. A text column of 38rem at most, its left edge at 8vw. The block is short (at most 0.4 of a screen) so it is
   read whole, with nothing drawn behind it, for 0.6 of a screen of scroll (acceptance 1). Under motion the ledger
   pulls it up by 28svh (phone 30svh) into the journey's soft last screen; the top padding keeps the text below that
   overlap. */
.journey__close { position: relative; padding: clamp(3rem, 7vw, 6rem) var(--gutter-r) clamp(3rem, 8vw, 6rem) max(8vw, var(--gutter-l)); }
html.motion .journey__close { padding-top: 31svh; padding-bottom: 12svh; }
.journey__close .journey__close-col { max-width: min(38rem, 100%); margin: 0; font-size: 1.05em; }
.journey__close .cuisine {
  /* inline-block so the stamp scales the line about its own centre, not the column's */
  display: inline-block; max-width: 18ch; margin-top: 1.4rem;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 0.95;
  font-size: clamp(2rem, 1rem + 2.4vw, 3.2rem); color: var(--vermilion); text-wrap: balance;
}
@media (orientation: portrait) {
  html.motion .journey__close { padding-top: 33svh; padding-bottom: 10svh; }
  .journey__close .journey__close-col { font-size: 1em; }
  .journey__close .cuisine { font-size: clamp(1.8rem, 1.2rem + 3vw, 2.6rem); margin-top: 1.2rem; }
}

/* ===== src/scenes/clients.css ===== */
/* Scene "clients" (spec 07): Our clients under the giant moon. The tickets here are this scene's own (scoped under
   .moonscene); /clients/ and /services/ have their own copy in inner.css.
   The base rules are the static composition, the frame at rest (p 0.50): no script, reduced motion, and phone
   landscape (where the pin collapses). The motion rules below override them on desktop and portrait screens, where
   clients.js places the sprites on the crest every frame and deals the tickets.
   Geometry: the ridge (ridge-2688) is 144vw wide at left -40.8vw, so its height is 36.43vw and its crest peak
   (samples 44-46, 0.16vw below the image top) sits at x 60-64vw; the crest peak is at 66% of the view. Sprite
   positions of the static frame are computed from ridge.meta.crest (contact points of 00 Measured points). */

/* ---------- base: the static composition ---------- */
.moonscene { position: relative; }
.moonscene .pin__view { position: relative; overflow: clip; min-height: max(100svh, calc(66svh + 36.27vw), calc(67svh + 3.35vw + 18.5rem)); }
.moonscene__sky, .ms-ksar, .moonscene__ridge, .moonscene__car, .ms-c1, .ms-c2, .ms-c3, .ms-front { position: absolute; left: 0; top: 0; pointer-events: none; }
.moonscene__sky { inset: 0; }
.moonscene .pin__view > [aria-hidden] img { max-width: none; width: 100%; height: auto; }
.ms-moon-wheel { position: absolute; width: 72svh; height: 72svh; left: calc(66% - 36svh); top: 6svh; }
.moonscene--set .ms-moon-wheel { top: 34svh; } /* moonset: the disc's centre at 70%, half behind the ridge */
.ms-moon-disc, .ms-moon-disc picture, .moonscene .pin__view .ms-moon-disc img { width: 100%; height: 100%; }
.ms-ksar { left: 3vw; width: 14vw; top: calc(66svh - 2.3vw); } /* its mound sinks behind the ridge (crest 2.9vw below the peak line at x 10vw) */
.moonscene__ridge { left: -40.8vw; width: 144vw; top: calc(66svh - 0.1603vw); -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ms-c1 { width: 26.46vw; transform-origin: 50% 99.14%; }
.ms-c2 { width: 6.38vw; transform-origin: 49.5% 97.85%; }
.ms-c3 { width: 7.13vw; transform-origin: 63.35% 98.1%; }
.moonscene--set .ms-c3 { transform-origin: 36.65% 98.1%; }
.moonscene__car { width: 13vw; transform-origin: 16.7% 99%; }
/* caravan-3 walks with the caravan (mirrored); on /moon/ he stands as drawn, recording */
.ms-c3 img { transform: scaleX(-1); }
.moonscene--set .ms-c3 img { transform: none; }
/* the frame at p 0.50 (mockup 3): caravan from x 34%, operator and recordist behind it, the 4x4 at 77-90% */
.ms-c1 { left: 33.77vw; top: calc(66svh - 8.579vw); transform: rotate(-2.82deg); }
.ms-c2 { left: 60.214vw; top: calc(66svh - 8.622vw); transform: rotate(0.25deg); }
.ms-c3 { left: 66.638vw; top: calc(66svh - 8.819vw); transform: rotate(2.53deg); }
.moonscene__car { left: 77.5vw; top: calc(66svh - 4.862vw); transform: rotate(6.62deg); }
.moonscene--set .ms-c1 { left: 24vw; top: calc(66svh - 8.047vw); transform: rotate(-3.63deg); }
.moonscene--set .ms-c2 { left: 50.444vw; top: calc(66svh - 8.477vw); transform: rotate(-1.55deg); }
.moonscene--set .ms-c3 { left: 56.868vw; top: calc(66svh - 9.121vw); transform: rotate(-0.9deg); }
.moonscene--set .moonscene__car { left: 65.5vw; top: calc(66svh - 5.698vw); transform: rotate(2.58deg); }
.ms-front { display: none; left: -6vw; width: 144vw; }
.ms-front img { transform: scaleX(-1); }
.moonscene__copy { position: absolute; left: 6vw; top: 8svh; }
.moonscene .title { font-size: clamp(2.5rem, 1rem + 4vw, 5.4rem); }
.moonscene .title a { text-decoration: none; }

/* the tickets, static: one centred block under the crest. 2 rows of 10 from 1767 px, else 7 / 7 / 6 (brick), at
   9rem or more; native scrollers under 1160 px */
.moonscene .tickets { position: absolute; left: 0; right: 0; top: calc(66svh + 3.35vw + 1svh); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem 0.8rem; max-width: calc(67.8rem + 1px); margin-inline: auto; }
.moonscene .tickets__row { display: contents; }
.moonscene .tickets__row:focus-visible { outline-offset: -4px; }
@media (min-width: 1767px) {
  .moonscene .tickets { top: calc(66svh + 3.31vw + 1svh); max-width: calc(88vw + 1px); }
  .moonscene .ticket { width: calc((88vw - 7.2rem) / 10); }
}
@media (orientation: landscape) and (max-width: 1159.98px) {
  .moonscene .tickets { display: grid; gap: 0.45rem; max-width: none; }
}
.moonscene .tickets__row { scrollbar-width: none; }
.moonscene .tickets__row::-webkit-scrollbar { display: none; }
@media (orientation: landscape) and (max-width: 1159.98px), (orientation: portrait) {
  .moonscene .tickets__row { display: flex; align-items: center; gap: 0.8rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 0.4rem 3vw; scroll-padding-inline: 3vw; }
  .moonscene .tickets__row > * { scroll-snap-align: start; }
}
@media (max-height: 500px) { .moonscene .ticket { width: 6.5rem; } }

/* a ticket: a cream stub with a punched notch each side (real holes: the two halves are radial gradients); the two
   linked tickets ring their notches in ochre */
.moonscene .ticket {
  --n: 0.35rem;
  flex: none; position: relative; display: block; width: 9rem; aspect-ratio: 5 / 3; border-radius: 0.3rem; color: var(--ink); text-decoration: none;
  background: radial-gradient(circle at 0 50%, transparent var(--n), var(--ticket) calc(var(--n) + 0.5px)) left / 50.5% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent var(--n), var(--ticket) calc(var(--n) + 0.5px)) right / 50.5% 100% no-repeat;
}
.moonscene a.ticket {
  background: radial-gradient(circle at 0 50%, transparent var(--n), var(--ochre) calc(var(--n) + 0.5px) calc(var(--n) + 1.5px), var(--ticket) calc(var(--n) + 2px)) left / 50.5% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent var(--n), var(--ochre) calc(var(--n) + 0.5px) calc(var(--n) + 1.5px), var(--ticket) calc(var(--n) + 2px)) right / 50.5% 100% no-repeat;
}
.moonscene a.ticket:hover { color: var(--ink); }
/* the logo box (appendix 07): object-fit contain, at most 50 px tall (phones 40) and the file's largest variant / 2
   wide (--lw), so no logo is drawn above 1.0x its file at ratio 2 */
.moonscene .ticket__face { position: absolute; inset: 0.9rem 1.1rem; display: grid; place-items: center; }
.moonscene .ticket__face > picture { grid-area: 1 / 1; display: grid; place-items: center; width: 100%; height: 100%; }
.moonscene .ticket__face img { width: auto; height: auto; max-width: min(100%, var(--lw, 100px)); max-height: min(100%, 50px); object-fit: contain; }

/* ---------- portrait, static (phones and tablets without motion): the phone composition ---------- */
@media (orientation: portrait) {
  .moonscene .pin__view { min-height: 100svh; }
  .moonscene__copy { top: max(14svh, env(safe-area-inset-top, 0px) + 64px); }
  .moonscene .title { font-size: 2.5rem; line-height: 1; white-space: nowrap; }
  .ms-moon-wheel { width: 92vw; height: 92vw; left: 16vw; top: calc(max(14svh, env(safe-area-inset-top, 0px) + 64px) + 2.5rem + 2svh); }
  .moonscene--set .ms-moon-wheel { top: calc(60svh - 46vw); }
  .ms-ksar, .ms-c3 { display: none; }
  .moonscene__ridge { width: 181.84svh; left: calc(55vw - 129.88svh); top: calc(56svh - 0.202svh); -webkit-mask-image: none; mask-image: none; }
  .ms-c1 { width: 51.6vw; left: 8vw; top: calc(56.24svh - 17.765vw); transform: rotate(-1.72deg); }
  .ms-c2 { width: 12.44vw; left: 59.56vw; top: calc(56.09svh - 16.82vw); transform: rotate(2.96deg); }
  .moonscene__car { width: 24vw; left: 72vw; top: calc(56.32svh - 10.81vw); transform: rotate(2.61deg); }
  .moonscene--set .ms-c1 { left: 4vw; top: calc(56.31svh - 17.765vw); transform: rotate(-2.04deg); }
  .moonscene--set .ms-c2 { left: 55.56vw; top: calc(56.02svh - 16.82vw); transform: rotate(1.66deg); }
  .moonscene--set .moonscene__car { left: 68vw; top: calc(56.24svh - 10.81vw); transform: rotate(2.62deg); }
  /* two native scrollers above the home indicator: row 2's bottom 3svh above it, each row 11svh, row 1 2svh above */
  .moonscene .tickets { inset: auto 0 0 0; display: block; max-width: none; margin: 0; }
  .moonscene .tickets__row { position: absolute; left: 0; right: 0; height: 11svh; padding: 0 6vw; scroll-padding-inline: 6vw; }
  .moonscene .tickets__row:nth-child(1) { bottom: calc(var(--safe-b) + 16svh); }
  .moonscene .tickets__row:nth-child(2) { bottom: calc(var(--safe-b) + 3svh); }
  .moonscene .ticket { width: 6.5rem; }
  .moonscene .ticket__face { inset: 0.6rem 0.7rem; }
  .moonscene .ticket__face img { max-height: min(100%, 40px); }
}

/* ---------- motion, desktop: one pinned screen; clients.js places the land (rise and crane), the walkers, the 4x4,
   the front dune and the tickets ---------- */
@media (orientation: landscape) and (height > 500px) {
  html.motion .moonscene .pin__view { height: 100vh; height: 100lvh; min-height: 0; }
  html.motion .moonscene .ms-moon-wheel { width: 72lvh; height: 72lvh; left: calc(66% - 36lvh); top: 6%; }
  html.motion .moonscene--set .ms-moon-wheel { top: calc(70% - 36lvh); }
  html.motion .moonscene .ms-ksar { top: calc(66% - 2.3vw); }
  html.motion .moonscene .moonscene__ridge { top: calc(66% - 0.1603vw); -webkit-mask-image: none; mask-image: none; }
  html.motion .moonscene :is(.ms-c1, .ms-c2, .ms-c3, .moonscene__car) { left: 0; top: 0; transform: none; }
  html.motion .moonscene .ms-front { display: block; top: calc(98% - 0.1603vw); }
  html.motion .moonscene.ms-two .ms-front { top: calc(95% - 0.1603vw); }
  html.motion .moonscene .moonscene__copy { top: 8%; }
  html.motion .moonscene .tickets { inset: 0; display: block; max-width: none; margin: 0; pointer-events: none; }
  html.motion .moonscene .tickets__row { pointer-events: auto; }
  html.motion .moonscene.ms-block .tickets__row { display: contents; }
  html.motion .moonscene.ms-block .ticket { position: absolute; pointer-events: auto; }
  html.motion .moonscene.ms-scroll .tickets__row { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 0.8rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 0.4rem 3vw; scroll-padding-inline: 3vw; }
  html.motion .moonscene.ms-scroll .ticket { width: 9rem; }
}
/* hover (desktop): the ticket lifts 4 px and straightens, 0.3 s; the colour logo cross-fades in (styles.css) */
@media (hover: hover) and (orientation: landscape) and (height > 500px) {
  html.motion .moonscene.ms-block .ticket { transition: translate 0.3s var(--ease-out), rotate 0.3s var(--ease-out); }
  html.motion .moonscene.ms-block .ticket:is(:hover, :focus-visible) { translate: 0 -4px; rotate: calc(var(--r, 0deg) * -1); }
}

/* ---------- motion, portrait (phones): the same pin at 1.8 screens; the land is taller so it reaches the rows ---------- */
@media (orientation: portrait) {
  html.motion .moonscene .pin__view { height: 100vh; height: 100lvh; min-height: 0; }
  html.motion .moonscene .moonscene__ridge { width: 181.84lvh; left: calc(55vw - 129.88lvh); top: calc(56% - 0.202lvh); }
  html.motion .moonscene :is(.ms-c1, .ms-c2, .moonscene__car) { left: 0; top: 0; transform: none; }
  html.motion .moonscene .ms-front { display: block; width: 213.46lvh; left: calc(30vw - 60.99lvh); top: calc(100% - 0.238lvh); }
}

/* the pinned plates and sprites keep their own layer for the whole pin (00 Budget: set once, never toggled mid-scrub;
   clients.js culls them when the section is far away). Not in phone landscape, where nothing moves. */
@media (orientation: landscape) and (height > 500px), (orientation: portrait) {
  html.motion .moonscene :is(.ms-moon-wheel, .ms-ksar, .moonscene__ridge, .moonscene__car, .ms-c1, .ms-c2, .ms-c3, .ms-front) { will-change: transform; }
  html.motion .moonscene .ms-moon-disc { will-change: transform, opacity; }
}

/* ===== src/scenes/news.css ===== */
/* Scene "news" (spec 08): Our latest news on the home page. Three prints dry side by side on one line, each from its
   own peg, each whole at its own shape. Every rule is scoped under .news: the shared .print and .post-card bases
   (styles.css) stay as they are for the inner post lists. */

/* ---------- the crest and the night body: a dune line with a sand rim and static speckle, night-900 below it, then
   the section's body: night-900 down 30svh from the crest, then transparent over 20svh (the nearest night dune's
   body). The top edge stays transparent (contract 3.20). The body starts at 6svh, under the dune's fill (the dune
   line never comes lower than 52% of the crest's 9svh), so no seam shows where the two meet. ---------- */
/* the desktop line runs past the viewport's right edge (104vw from -2vw): clip sideways so the page is never wider
   than the screen (integration: 1469 px at 1440) */
.news { overflow-x: clip; }
.news { background: linear-gradient(to bottom, transparent 0, transparent 6svh, var(--night-900) 6svh, var(--night-900) 39svh, rgba(8, 23, 40, 0) 59svh); }
.news__crest { position: absolute; left: 0; top: 0; width: 100%; height: 9svh; max-width: none; overflow: visible; pointer-events: none; }
.news__dune { fill: var(--night-900); }
.news__rim { fill: none; stroke: var(--sand); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.news__speck { fill: none; stroke: var(--sand); stroke-width: 1.5px; stroke-linecap: square; vector-effect: non-scaling-stroke; opacity: 0.55; }
.news__speck--2 { stroke-width: 2px; opacity: 0.8; }

/* ---------- the grid, the line, the cards ---------- */
.news__more { margin-top: 3rem; }
.news__grid { position: relative; display: grid; gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.news__line, .news__cardline { position: absolute; max-width: none; overflow: visible; pointer-events: none; }
.news__line path, .news__cardline path { fill: none; stroke: var(--sand); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
/* desktop line: from x −2vw of the viewport (the grid starts at the 6vw margin), y0 − 2 px; viewBox y in px from y0 */
.news__line { left: -8vw; top: 6px; width: 104vw; height: 112px; transform-origin: 0 2px; }
/* phone line, one per card: from x 2vw of the viewport (the card starts at the gutter), its card's y0 − 2 px */
.news__cardline { display: none; left: calc(2vw - var(--gutter-l)); top: 6px; width: 96vw; height: 10px; }

/* the card: 14 px of room for its peg above the print, so y0 is 8 px below its top and the print's top edge y0 + 6 px;
   the captions paint in front of every print (a swinging corner never covers them) */
.news .post-card { position: relative; padding-top: 14px; }
.news .post-card :is(h3, time, p) { position: relative; z-index: 1; }
.news .post-card:focus-visible h3 { color: var(--amber); }

/* the print: no box of its own (no aspect-ratio, overflow, background or keyline): its height follows its own image.
   Its pivot is where its peg grips the line, 6 px above its top edge. */
.news .post-card .print { aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; box-shadow: none; transform-origin: 50% -6px; }
.news .print__swing { display: block; position: relative; transform-origin: 50% -6px; }
.news .print__sheet { display: block; position: relative; }
.news .print picture { display: block; width: 100%; height: auto; }
.news .print img { width: 100%; height: auto; object-fit: initial; }
.news .print__sheet > :is(.print__duo, .print__true) { position: absolute; inset: 0; }
.news .print__sheet > :is(.print__duo, .print__true) img { height: 100%; }
.news .print__peg { position: absolute; left: 50%; top: -10px; width: 8px; height: 14px; margin-left: -4px; max-width: none; overflow: visible; }
.news .print__peg rect { fill: var(--night-900); stroke: var(--ochre); stroke-width: 1.5px; }
.news .print__peg path { fill: none; stroke: var(--ochre); stroke-width: 1.5px; stroke-linecap: round; }

/* ---------- desktop, from 901 px wide (1024 landscape too; reduced motion and no JavaScript get it at rest):
   margins 6vw | lead 30vw | gap 3vw | square column 22vw | gap 3vw | banner 30vw | 6vw. The square card is 15vw, left
   in its column; every caption sits under its own print at its column's width. ---------- */
@media (min-width: 901px) {
  .news { padding-inline: max(6vw, env(safe-area-inset-left, 0px)) max(6vw, env(safe-area-inset-right, 0px)); }
  .news .wrap { max-width: none; }
  .news__grid { grid-template-columns: 30vw 22vw 30vw; column-gap: 3vw; align-items: start; }
  .news .post-card[data-shape="square"] .print { width: 15vw; }
}

/* ---------- one column up to 900 px (phones, 768 portrait, phone landscape): each print whole at its own shape from
   the text's left edge, its own short line ---------- */
@media (max-width: 900px) {
  .news__line { display: none; }
  .news__cardline { display: block; }
  .news .post-card .print { width: 88vw; }
  .news .post-card[data-shape="square"] .print { width: 60vw; }
}
/* phone landscape: each print seen whole with the returning header and its peg room above it */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .news .post-card .print, .news .post-card[data-shape="square"] .print { width: min(56vw, calc((100svh - 7rem) * var(--a))); }
}

/* ---------- under motion: the start states the scene plays from (src/scenes/news.js); four promoted layers on
   desktop (the line and three prints), three on phones ---------- */
html.motion:not(.no-fit) .news .post-card .print { opacity: 0; will-change: transform; }
html.motion:not(.no-fit) .news .print__duo { opacity: 0.2; }
html.motion:not(.no-fit) .news .post-card :is(h3, time, p) { opacity: 0; }
@media (min-width: 901px) {
  html.motion:not(.no-fit) .news__line { will-change: transform; }
}

/* ===== src/scenes/dawn.css ===== */
/* Scene "dawn" (spec 09; the short dawn of inner pages, spec 11): the sunrise that ends every page.
   The view is one screen (lvh) of cut-outs on the shared sky, back to front: sun (and its ghost), far wrapper
   (far-mesas-dawn and far-ksar), ridge, ridge 2's group (car, then the mirrored ridge), flock, stray bird, copy. Every
   artwork position comes from custom properties dawn.html.mjs derives from the manifest at build time (--dawn-*;
   the -p set is the portrait composition). At rest (no JavaScript, reduced motion, and the end of every scrub) the
   layers sit exactly there; dawn.js only moves them from their start states. */

/* the sky's dawn inks (contract §3.21: the colours are this lane's; air.js writes their opacity and yPercent) */
.sky__violet { background: linear-gradient(180deg, rgba(74, 53, 88, 0) 0%, rgba(74, 53, 88, 0) 20%, #4a3558 45%, #4a3558 100%); }
.sky__dawn { background: linear-gradient(180deg, rgba(160, 76, 71, 0) 0%, rgba(160, 76, 71, 0) 40%, #a04c47 50%, #e0683a 66%, #f6a552 80%, #f9c877 100%); }

.dawn { position: relative; color: var(--cream); }
.dawn__view { position: relative; height: 100vh; height: 100lvh; overflow: hidden; overflow: clip; }
/* reduced motion and no JavaScript: the section's own sunrise (ink 2's five stops, feathered top); under motion the
   fixed sky's inks take over and this is never shown */
.dawn__glow { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(160, 76, 71, 0) 0%, rgba(160, 76, 71, 0) 40%, #a04c47 50%, #e0683a 66%, #f6a552 80%, #f9c877 100%); pointer-events: none; }
html.motion .dawn__glow { display: none; }

/* ---------- the plates ---------- */
.dawn__view > div:not(.dawn__copy) { position: absolute; pointer-events: none; }
.dawn__view img { display: block; width: 100%; height: auto; }
.dawn__sun { left: var(--dawn-sun-l); top: var(--dawn-sun-t); width: var(--dawn-sun-w); }
.dawn__ghost { position: absolute; inset: 0; display: none; }
.dawn__far { left: var(--dawn-far-l); top: var(--dawn-far-t); width: var(--dawn-far-w); }
.dawn__mesas { position: relative; }
.dawn__ksar { position: absolute; left: var(--dawn-ksar-l); top: var(--dawn-ksar-t); width: var(--dawn-ksar-w); }
.dawn__dunes { left: var(--dawn-ridge-l); top: var(--dawn-ridge-t); width: var(--dawn-ridge-w); }
.dawn__r2 { left: var(--dawn-r2-l); top: var(--dawn-r2-t); width: var(--dawn-r2-w); }
.dawn__r2-ridge { position: relative; margin-top: var(--dawn-r2-img); }
.dawn__r2-ridge img { transform: scaleX(-1); } /* ridge 2 is the ridge mirrored (static, 09 Markup) */
.dawn__car { position: absolute; left: var(--dawn-car-l); top: var(--dawn-car-t); width: var(--dawn-car-w); }
/* the plate's nose ends in a straight cut at 79.5% of its width, right through a baked bulb glow (its lamp is at
   78.7%): the nose fades out before the cut, so no lit bulb stays after the code lamp is off and no straight end shows */
.dawn__car img { -webkit-mask-image: linear-gradient(90deg, #000 72%, rgba(0, 0, 0, 0) 79%); mask-image: linear-gradient(90deg, #000 72%, rgba(0, 0, 0, 0) 79%); }
/* the code lamp at convoy-side-second.meta.lamp: a glow disc and the boot-drawn beam (6vw long) pointing ahead. Its
   apex sits on the lamp. At rest (no script, reduced motion, p >= 0.60) the lamp is off. */
.dawn__lamp { position: absolute; left: var(--dawn-lamp-x); top: var(--dawn-lamp-y); width: 0; height: 0; opacity: 0; }
.dawn__disc { position: absolute; left: -1.4vw; top: -1.4vw; width: 2.8vw; height: 2.8vw; background: var(--sprite-glow, none) center / 100% 100% no-repeat; }
.dawn__beam { position: absolute; left: 0; top: -1.05vw; width: 6vw; height: 2.1vw; background: var(--sprite-beam, none) 0 50% / 100% 100% no-repeat; }
/* the flock and the stray bird: 26 x 14 px birds on the boot-drawn two-frame wing sprite, frame 1 at -26px */
.dawn__flock { left: 0; top: 0; width: 126px; height: 58px; display: none; }
.dawn__stray { left: 0; top: 0; width: 26px; height: 14px; display: none; }
.dawn .bird { position: absolute; width: 26px; height: 14px; background: var(--sprite-wing, none) 0 0 / 52px 14px no-repeat; }
.dawn__stray .bird { left: 0; top: 0; }
html.motion .dawn__flock, html.motion .dawn__stray { display: block; }

/* ---------- the copy: x 8vw, y 12 to 44% (in svh), cream over violet or navy sky ---------- */
.dawn__copy { position: absolute; left: 8vw; top: 12svh; width: min(44vw, 38rem); max-width: none; display: grid; justify-items: start; gap: clamp(0.8rem, 2.4svh, 1.5rem); padding: 0; margin: 0; text-align: left; }
.dawn .title { font-size: clamp(2.9rem, min(1.6rem + 6.2vw, 12.5svh), 7rem); max-width: none; white-space: nowrap; }
.dawn__copy p { font-family: var(--font-serif); font-size: clamp(1.05rem, 0.88rem + 0.6vw, 1.45rem); line-height: 1.38; max-width: 34ch; text-wrap: pretty; }
/* the pill: its glint is a cream sheen that crosses it once (dawn.js plays --dawn-glint); the glint's own box is the
   pill's shape and clips it, so the pill's amber ring (.btn__ring, the stamp's and the press's) is never clipped */
.dawn__pill { margin-top: clamp(0.1rem, 0.6svh, 0.5rem); }
.dawn__glint { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; font-style: normal; }
.dawn__glint::before { content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; background: linear-gradient(90deg, rgba(246, 230, 194, 0) 0%, rgba(246, 230, 194, 0.6) 50%, rgba(246, 230, 194, 0) 100%); transform: translateX(var(--dawn-glint, -130%)) skewX(-20deg); }

/* ---------- under motion: the layers that move are promoted once (09 Budget: sun, mesas, ksar, ridge, ridge 2 with
   the car, and the flock only while it flies); desktop moves the mesas and the ksar apart, phones move the far
   wrapper as one ---------- */
@media (orientation: landscape) and (height > 500px) {
  html.motion .dawn.pin .dawn__ghost { display: block; opacity: 0; }
  html.motion .dawn__sun, html.motion .dawn.pin .dawn__mesas, html.motion .dawn.pin .dawn__ksar, html.motion .dawn--short .dawn__far, html.motion .dawn__dunes, html.motion .dawn__r2 { will-change: transform; }
}

/* ---------- portrait (phones and 768 tablets): the phone composition. Sun 52vw; far-mesas-dawn and far-ksar in one
   wrapper; ridge, ridge 2; 4 birds; no car, ghost or glint. Copy in svh from max(14svh, inset + 64px) with the
   pill's bottom at 50svh or higher. ---------- */
@media (orientation: portrait) {
  .dawn__sun { left: var(--dawn-sun-l-p); top: var(--dawn-sun-t-p); width: var(--dawn-sun-w-p); }
  .dawn__far { left: var(--dawn-far-l-p); top: var(--dawn-far-t-p); width: var(--dawn-far-w-p); }
  .dawn__ksar { left: var(--dawn-ksar-l-p); top: var(--dawn-ksar-t-p); width: var(--dawn-ksar-w-p); }
  .dawn__dunes { left: var(--dawn-ridge-l-p); top: var(--dawn-ridge-t-p); width: var(--dawn-ridge-w-p); }
  .dawn__r2 { left: var(--dawn-r2-l-p); top: var(--dawn-r2-t-p); width: var(--dawn-r2-w-p); }
  .dawn__r2-ridge { margin-top: var(--dawn-r2-img-p); }
  .dawn__car, .dawn__glint { display: none; }
  .dawn__flock .bird:nth-child(n + 5) { display: none; }
  .dawn__copy { left: var(--gutter-l); right: var(--gutter-r); width: auto; top: max(14svh, calc(env(safe-area-inset-top, 0px) + 64px)); gap: clamp(0.7rem, 2svh, 1.2rem); }
  .dawn .title { font-size: clamp(2.9rem, 12vw, 5.4rem); }
  .dawn__copy p { font-size: clamp(1.05rem, 0.9rem + 0.9vw, 1.45rem); max-width: 30ch; }
  html.motion .dawn__far, html.motion .dawn__sun, html.motion .dawn__dunes, html.motion .dawn__r2 { will-change: transform; }
}

/* ---------- phone landscape (844 x 390): the landscape placement with the phone layer rules (no car, ghost or
   glint; 4 birds); the view is in normal flow (styles.css collapses the pin); type sized for a 390 px tall screen ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .dawn__sun { top: var(--dawn-sun-t-l); }
  .dawn__far { top: var(--dawn-far-t-l); }
  .dawn__ksar { top: var(--dawn-ksar-t-l); }
  .dawn__dunes { top: var(--dawn-ridge-t-l); }
  .dawn__r2 { top: var(--dawn-r2-t-l); }
  .dawn__r2-ridge { margin-top: var(--dawn-r2-img-l); }
  .dawn__car, .dawn__glint { display: none; }
  .dawn__flock .bird:nth-child(n + 5) { display: none; }
  /* the pill beside the line, so the copy ends in the night above the dawn ink (a 390 px screen has no room below) */
  .dawn__copy { top: 9svh; width: min(84vw, 46rem); grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 0.5rem 2rem; }
  .dawn .title { grid-column: 1 / -1; font-size: clamp(2rem, 12svh, 3rem); }
  .dawn__copy p { font-size: 0.95rem; line-height: 1.32; max-width: 36ch; }
  .dawn__pill { margin-top: 0; min-height: 2.9rem; font-size: 1.05rem; }
  html.motion .dawn__far, html.motion .dawn__sun, html.motion .dawn__dunes, html.motion .dawn__r2 { will-change: transform; }
}

/* ---------- the short dawn (inner pages): one screen in normal flow, no pin; the footer rises over its last 25svh ---------- */
.dawn--short .dawn__flock .bird:nth-child(n + 4) { display: none; }
/* while it scrolls in, its copy crosses the fixed sky's warm stops (the inks are fixed to the screen, the copy is not):
   a soft night shadow keeps the cream type readable on the orange */
html.motion .dawn--short .title, html.motion .dawn--short .dawn__copy p { text-shadow: 0 0.04em 0.5em rgba(6, 17, 31, 0.55), 0 0 0.12em rgba(6, 17, 31, 0.35); }

/* ===== src/scenes/footer.css ===== */
/* Scene "footer" (spec 09): the site footer, the nearest dune. Body level (z 1, after main). Under motion the ledger
   (styles.css, contract §3.20) pulls it up over the stuck dawn (-40svh desktop, -30svh portrait, -25svh after the
   short dawn, 0 in phone landscape); it is at least as tall as that overlap, so the document always ends on the
   footer's bottom. Its top is transparent above the crest's dune line; the night-950 fill starts under it. */
.site-footer { display: flex; flex-direction: column; justify-content: flex-start; background: none; padding: 0; }
.site-footer__crest { display: block; flex: none; width: 100%; height: 10svh; min-height: 3.5rem; overflow: visible; }
.site-footer__fill { fill: var(--night-950); }
.site-footer__rim { fill: none; stroke: var(--sand); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-dasharray: 44 2.5 17 1.5 63 3 9 1.5 31 2; }
/* the speckle: sand specks on both sides of the rim (round caps on zero-length dashes, 1 to 1.5 px dots) */
.site-footer__speck { fill: none; stroke: var(--sand); stroke-width: 1.2px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 0 23 0 9 0 41 0 14 0 31 0 6 0 52; opacity: 0.8; }
.site-footer__speck--b { stroke-width: 1.5px; stroke-dasharray: 0 37 0 12 0 19 0 58 0 27 0 8 0 44; opacity: 0.55; }
.site-footer__body { flex: 1 0 auto; background: var(--night-950); margin-top: -1px; padding: clamp(1.25rem, 3vw, 3rem) var(--gutter-r) max(clamp(3rem, 6vw, 4.5rem), calc(var(--safe-b) + 2rem)) var(--gutter-l); }
.site-footer .wrap { display: grid; gap: 2rem; }
.site-footer__brand { justify-self: start; display: block; }
.site-footer__logo { width: 7.5rem; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; font-family: var(--font-serif); }
.site-footer nav a { text-decoration: none; display: inline-block; padding: 0.4rem 0; }
.site-footer small { color: var(--cream-dim); font-size: 0.9rem; }
.site-footer address { font-style: normal; display: grid; justify-items: start; gap: 0.3rem; color: var(--cream-dim); }
@media (min-width: 901px) { .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: start; gap: 5rem; } }

/* without motion (reduced motion, no JavaScript) the footer follows the dawn in normal flow: the crest stands on the
   dawn's last tenth of a screen, so the dawn meets the footer on the dune line, never on a straight edge */
html:not(.motion) .site-footer__crest { position: absolute; left: 0; bottom: 100%; }
html:not(.motion) .site-footer__body { margin-top: 0; }

/* under motion: at least as tall as the overlap, content from the top */
html.motion .site-footer { min-height: calc(40svh + var(--safe-b)); }
@media (orientation: portrait) { html.motion .site-footer { min-height: calc(30svh + var(--safe-b)); } }
@media (orientation: landscape) and (max-height: 500px) { html.motion .site-footer { min-height: calc(30svh + var(--safe-b)); } }
html.motion main:has(.dawn--short) + .site-footer { min-height: calc(25svh + var(--safe-b)); }

/* ===== src/scenes/page-hero.css ===== */
/* Scene "page-hero" (spec 11): the inner-page headers. Every header stands on the same ground, the ridge-fade cut-out
   (100vw wide on landscape screens, 200vw from x -70vw on portrait ones, so the crest's high point is at 70vw in both).
   Its lower 30% fades to nothing and hangs below the header's bottom edge into the page body's top padding, so the
   header never ends on a straight line. The standing layer (island, spot cut-out or car) gets its place from the
   custom properties page-hero.html.mjs writes on the root: --c (the crest under it, a fraction of the ground plate's
   height), --l, --w, --sar (its height / width); its foot is then var(--foot) above the header's bottom edge. Layers, back to front: moon 0,
   art 1, ground 2, spot / hang / car 3, copy 4. Nothing here animates: the drift and the pointer are page-hero.js. */
.page-hero {
  --gw: 100vw; --gx: 0vw;
  --gh: calc(var(--gw) * 0.25298); /* the ground plate is 2688 x 680 */
  --c: var(--c-d, 0.1); --l: var(--l-d, 50vw); --w: var(--w-d, 0vw); --cb: var(--cb-d, 0.28);
  --ih: calc(var(--w) * var(--sar, 0)); /* the standing layer's height (0 without one) */
  --tilt: var(--tilt-d, 0deg);
  --foot: calc(var(--gh) * (0.7 - var(--c)));
  --top: clamp(7rem, 16svh, 10.5rem);
  position: relative; overflow-x: clip;
  display: grid; align-content: start;
  min-height: max(min(100svh, 64rem), calc(var(--foot) + var(--ih) + var(--top)));
  padding: var(--top) var(--gutter-r) calc(var(--gh) * 0.7 + 2.5rem) var(--gutter-l);
}
.page-hero__copy { position: relative; z-index: 4; max-width: min(36vw, 38rem); }
.page-hero .title { max-width: 16ch; }
.page-hero .title--long { max-width: 22ch; }
.page-hero .lead { margin-top: 1.4rem; }
.page-hero .byline a { color: var(--amber); }
.page-hero .byline { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 1.2rem; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }

/* the moon, masked to its disc (a static mask on a small element) */
.page-hero__moon { position: absolute; right: 9vw; top: max(6rem, 15svh); width: clamp(4rem, 8vw, 7.5rem); z-index: 0; pointer-events: none; -webkit-mask: url('../img/moon-disc.webp?v=110416b714') center / 100% 100% no-repeat; mask: url('../img/moon-disc.webp?v=110416b714') center / 100% 100% no-repeat; }
.page-hero__ground { position: absolute; left: var(--gx); width: var(--gw); bottom: calc(var(--gh) * -0.3); z-index: 2; pointer-events: none; }
/* pictures as blocks: an inline image's line box would add a descender gap under it and lift every foot off its crest */
.page-hero :is(.page-hero__ground, .page-hero__art, .page-hero__spot, .page-hero__car-body) > picture { display: block; }
.page-hero__ground img, .page-hero__art img, .page-hero__spot img, .page-hero__car-body > picture img { display: block; width: 100%; height: auto; }
.page-hero__art { position: absolute; z-index: 1; pointer-events: none; }
.page-hero__art--island { left: var(--l); width: var(--w); bottom: var(--foot); }
/* far dunes and the far ridge: wider than the view, their foot under the crest's lowest point (--cb) */
.page-hero__art--dunes { left: -3vw; width: 106vw; bottom: calc(var(--gh) * (0.7 - var(--cb))); }
.page-hero__art--ridge { left: -20vw; width: 130vw; bottom: calc(var(--gh) * (0.7 - var(--cb))); }
.page-hero__spot { position: absolute; z-index: 3; left: var(--l); width: var(--w); bottom: var(--foot); pointer-events: none; }
/* far-ksar's mound fades out softly: it stands behind the crest, which hides the faded rim */
.page-hero--far-ksar .page-hero__spot { z-index: 1; }
.page-hero__hang { position: absolute; z-index: 3; top: 0; right: 24vw; height: min(62%, 32rem); pointer-events: none; }
.page-hero__hang picture, .page-hero__hang img { height: 100%; width: auto; }
/* the 404 car: 22vw wide, centred on x 38%, its ground line (--car-g of its height) on the crest */
.page-hero__car { --cw: 22vw; position: absolute; z-index: 3; width: var(--cw); left: calc(38% - var(--cw) / 2); bottom: calc(var(--foot) - var(--cw) * var(--sar) * (1 - var(--car-g))); pointer-events: none; }
/* tilted to the crest's slope under its wheels (a static rotation about the middle of its ground line) */
.page-hero__car-tilt { transform: rotate(var(--tilt)); transform-origin: var(--car-m, 50%) calc(var(--car-g, 1) * 100%); }
.page-hero__car-body { position: relative; }
.page-hero__wheel { position: absolute; display: block; }
.page-hero__wheel picture, .page-hero__wheel img { display: block; }
.page-hero__wheel img { width: 100%; height: auto; }

/* desktop: the copy on the left, the standing layer on the right of it */
.page-hero--hang .page-hero__copy { max-width: min(56vw, 44rem); }
/* landscape: the island is wider than the view and stands under the copy (its top 2rem below the copy's last line) */
@media (orientation: landscape) {
  .page-hero:has(.page-hero__art--island) { padding-bottom: calc(var(--foot) + var(--ih) + 2rem); }
}
/* phone landscape: the desktop places on a short screen; the type is sized by the height */
@media (orientation: landscape) and (max-height: 500px) {
  .page-hero { --top: 5.5rem; min-height: calc(var(--foot) + var(--ih) + var(--top)); }
  .page-hero .title { font-size: clamp(2.2rem, 12svh, 3.6rem); }
  .page-hero .title--long { font-size: clamp(1.9rem, 9svh, 2.8rem); }
  .page-hero .lead { font-size: 1.1rem; margin-top: 0.8rem; }
  .page-hero__moon { top: 4.5rem; width: 3.5rem; }
  .page-hero__hang { height: 70%; }
}
/* portrait (phones and tablets): the copy on top, the standing layer under it on the crest */
@media (orientation: portrait) {
  .page-hero {
    --gw: 200vw; --gx: -70vw;
    --c: var(--c-p, 0.1); --l: var(--l-p, 10vw); --w: var(--w-p, 0vw); --tilt: var(--tilt-p, 0deg); --cb: var(--cb-p, 0.2);
    --top: max(7.5rem, calc(env(safe-area-inset-top, 0px) + 6rem));
    min-height: 0;
    padding-bottom: calc(var(--foot) + var(--ih) * 0.9 + 1.5rem);
  }
  .page-hero__copy { max-width: none; }
  /* the moon keeps the top right corner: the title wraps before it */
  .page-hero .title { max-width: calc(100% - 4.5rem); }
  .page-hero__moon { right: 8vw; top: max(6.5rem, calc(env(safe-area-inset-top, 0px) + 5.5rem)); width: 4.5rem; }
  .page-hero--wide:not(:has(.page-hero__art--island)) { padding-bottom: calc(var(--gh) * (0.7 - var(--cb)) + 8vw + 2rem); min-height: min(70svh, 40rem); }
  .page-hero__art--dunes { left: -75vw; width: 250vw; }
  .page-hero__art--ridge { left: -110vw; width: 260vw; }
  .page-hero__car { --cw: 56vw; }
  .page-hero--404 { padding-bottom: calc(var(--foot) + 56vw * var(--sar) + 2rem); }
  .page-hero--hang { min-height: min(78svh, 40rem); padding-bottom: calc(var(--gh) * 0.7 + 2rem); }
  .page-hero--hang .page-hero__copy { max-width: none; padding-right: 30vw; }
  .page-hero__hang { right: 6vw; height: min(50%, 22rem); }
  /* beside the lantern the moon takes the empty sky under the copy, on the left */
  .page-hero--hang .page-hero__moon { right: auto; left: 16vw; top: auto; bottom: calc(var(--gh) * 0.7 + 4rem); }
  .page-hero--hang .title { max-width: none; }
}

/* ===== src/scenes/inner.css ===== */
/* Scene "inner" (spec 11): the inner pages' bodies: rows, counters, the ticket wall, post lists, posts, tags, contact,
   empty states. Everything is scoped under .page-body (the body root; the header is page-hero). Nothing here
   animates except the ticket hover and the field ink (CSS, 0.3 s); the entrances are the core's roles and inner.js. */
.page-body { overflow-x: clip; }
/* no fill under motion: the header's ground dissolves into the sky above and the short dawn's top is transparent below.
   Without motion a fill is kept for contrast; it starts and ends with a 20svh ramp from transparent (LANES 4.37), so
   the body never starts or ends on a straight line. */
html:not(.motion) .page-body { background: linear-gradient(180deg, rgba(8, 23, 40, 0), rgba(8, 23, 40, 0.6) 20svh, rgba(8, 23, 40, 0.6) calc(100% - 20svh), rgba(8, 23, 40, 0)); }

/* ----- prints: the deckled two-ink print at its source aspect, no box, no keyline (the torn edge is in the file); the
   frame role's veil is masked to that edge; the true-colour twin lies on top at the same place ----- */
.page-body .print--deckle { background: none; overflow: visible; aspect-ratio: var(--print-ar); border-radius: 0; box-shadow: none; }
.page-body .print--deckle img { height: auto; object-fit: initial; }
.page-body .print--deckle > .print__true img { height: 100%; }
.page-body .print__veil { position: absolute; inset: 0; background: #06111f; opacity: 0; pointer-events: none; }
.page-body .print--deckle .print__veil { -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* /about-us/: the About grid and its doorway photograph (the home About block has its own copy in about.css) */
.page-body .intro__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: end; }
.page-body .intro__text > * + * { margin-top: 1.6rem; }
.page-body .doorway { position: relative; justify-self: center; width: min(100%, 24rem); aspect-ratio: 3 / 4.1; border-radius: 999px 999px 0.4rem 0.4rem; overflow: hidden; box-shadow: 0 0 0 2px var(--ochre), 0 0 0 0.7rem var(--night-800), 0 0 0 calc(0.7rem + 1px) rgba(242, 166, 75, 0.5), 0 2.5rem 4rem -1.5rem rgba(0, 0, 0, 0.8); }
.page-body .doorway img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 901px) { .page-body .intro__grid { grid-template-columns: 1.25fr 0.75fr; } }

/* counters (about) */
.page-body .counters { display: grid; gap: 2.5rem clamp(1.5rem, 4vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-top: clamp(3.5rem, 8vw, 7rem); }
.page-body .counter { border-top: 1px solid rgba(242, 166, 75, 0.5); padding-top: 1.4rem; }
.page-body .counter dd { margin: 0; }
.page-body .counter b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 11vw, 9rem); line-height: 0.85; color: var(--vermilion); font-variant-numeric: tabular-nums; }
.page-body .counter span { display: block; margin-top: 0.9rem; font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.9rem; color: var(--cream-dim); }

/* ----- alternating rows (services page, shooting page) ----- */
.page-body .rows { display: grid; gap: clamp(4rem, 10vw, 9rem); }
.page-body .row { display: grid; gap: clamp(1.8rem, 5vw, 5rem); align-items: center; }
.page-body .row h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); line-height: 0.95; margin-bottom: 1.2rem; }
.page-body .row__art > picture, .page-body .row__stand picture { display: block; }
.page-body .row__art > picture img, .page-body .row__stand img { display: block; width: 100%; height: auto; }
/* the shooting rows: an island cut-out standing behind a ridge-fade crest, and no end of either in view (director's
   core notes). The ground is 104% of the stand's width (2688 x 680, so 0.2631 of that width tall) and rises 9% of the
   width over the island's foot: the crest's lowest point is 0.23 of the plate's height (0.06 of the width), so the
   flat base is always behind the sand, and the ground's lower 30% fades out into the page. Even rows are mirrored, so
   the inner end is always the drawing's right end.
   Phones and tablets: the stand is 124vw wide, centred, both ends 12vw off screen (past the entrance's 24 px). */
.page-body .row__stand { position: relative; width: 124vw; margin-left: calc(50% - 62vw); }
.page-body .row:nth-child(even) .row__stand > picture img { transform: scaleX(-1); }
.page-body .row__ground { position: relative; width: 104%; margin: -9% -2% 0; pointer-events: none; }
.page-body .row__photo { position: relative; z-index: 1; margin-top: 2rem; max-width: 30rem; }
@media (min-width: 901px) {
  .page-body .row { grid-template-columns: 1fr 1fr; }
  .page-body .row:nth-child(even) .row__art { order: 2; }
  /* desktop: the stand runs from its column's inner edge off the screen on the outer side (--L is the distance from a
     column's outer edge to the screen's edge: the section's gutter plus the centred wrap's margin; 3vw more covers the
     drawing's dissolving end and the entrance's 40 px). The print rises over the stand's inner end and 2.5rem past it,
     from the stand's bottom (0.2631 - 0.09 = 0.173 of its width under the island's foot) to --hide of the island's
     height above that foot, so the inner end, island and ground, stands behind the print. */
  .page-body .rows { --L: calc(var(--gutter-l) + max(0px, (100vw - var(--gutter-l) - var(--gutter-r) - 82rem) / 2)); }
  .page-body .row__art { --sw: calc(100% + var(--L) + 3vw); }
  .page-body .row__stand { width: var(--sw); margin-left: calc(-1 * (var(--L) + 3vw)); }
  .page-body .row:nth-child(even) .row__stand { margin-left: 0; }
  .page-body .row__ground { margin: -9% 0 0; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .page-body .row:nth-child(even) .row__ground { margin-left: -4%; -webkit-mask-image: linear-gradient(270deg, #000 90%, transparent); mask-image: linear-gradient(270deg, #000 90%, transparent); }
  .page-body .row__art > .row__photo { width: min(30rem, 80%); margin-top: calc(-1 * (0.173 * var(--sw) + var(--hide, 0.8) * var(--sar, 0.4) * var(--sw))); margin-left: auto; margin-right: -2.5rem; }
  .page-body .row:nth-child(even) .row__art > .row__photo { margin-left: -2.5rem; margin-right: auto; }
}

/* ----- tickets: the logo wall of /clients/, the gallery ticket of /clients/ and the ARRI logo of /services/ (the home
   page's tickets are clients.css's own copy). The logo box (07, appendix 07): each logo contained in at most 50 px of
   height on desktop and 40 px on phones, and never wider than its largest file / 2 css px (--lw), so no logo is drawn
   above 1.0x its file at ratio 2. Baked grey and colour files: no blend mode, no filter. Hover and keyboard focus lift
   the ticket 4 px and straighten it (CSS translate and rotate, which add to the wave's transform) while the colour logo
   cross-fades in (styles.css, 0.3 s). LANES 2 asks for rotate: calc(var(--r) * -1) on top of a GSAP rest rotation; here the
   rest is the CSS rotate itself, so rotate: 0deg is the same straightening and survives a condition change. ----- */
.page-body .ticket { position: relative; display: grid; place-items: center; margin: 0; padding: 0.9rem 1.1rem; aspect-ratio: 5 / 3; background: var(--ticket); border-radius: 0.3rem; text-decoration: none; transition: translate 0.3s var(--ease-out), rotate 0.3s var(--ease-out); }
.page-body .ticket::before, .page-body .ticket::after { content: ''; position: absolute; top: 50%; width: 0.7rem; height: 0.7rem; margin-top: -0.35rem; border-radius: 50%; background: var(--night-800); }
.page-body .ticket::before { left: -0.35rem; }
.page-body .ticket::after { right: -0.35rem; }
/* a wall ticket rests at its seeded rotation (--r, written by inner.js under motion; none without) */
.page-body .logo-wall > .ticket { rotate: var(--r, 0deg); }
.page-body .ticket:is(a, figure):is(:hover, :focus-visible) { translate: 0 -4px; rotate: 0deg; }
.page-body .ticket__face { display: grid; place-items: center; width: 100%; height: 100%; }
.page-body .ticket__face > picture { grid-area: 1 / 1; display: grid; place-items: center; width: 100%; height: 100%; }
.page-body .ticket__face img { width: auto; height: auto; max-width: min(100%, var(--lw)); max-height: 50px; object-fit: contain; }
.page-body .logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10rem, 40vw), 1fr)); gap: 1.1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.page-body .ticket--solo { width: min(100%, 18rem); margin-top: 2rem; }
.page-body .ticket--solo > img { width: auto; height: auto; max-width: 100%; max-height: 4.5rem; object-fit: contain; }
.page-body .ticket--gallery { width: min(100%, 20rem); aspect-ratio: auto; margin: 3.5rem auto 0; padding: 1.6rem 2.2rem; }
.page-body .clients__intro { max-width: 60ch; }
.page-body .page-cta { margin-top: 3.5rem; text-align: center; }
@media (max-width: 699px) { .page-body .ticket { padding: 0.6rem 0.7rem; } .page-body .ticket__face img { max-height: 40px; } }

/* ----- post lists, tags, posts ----- */
.page-body .post-list { display: grid; gap: clamp(2.5rem, 5vw, 4rem); margin-top: 3rem; align-items: start; }
@media (min-width: 760px) { .page-body .post-list { grid-template-columns: repeat(2, 1fr); } }
.page-body .taglist { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.5rem; }
.page-body .taglist a { display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(242, 166, 75, 0.6); font-family: var(--font-serif); font-size: 0.92rem; text-decoration: none; overflow-wrap: anywhere; }
.page-body .taglist a:hover { background: var(--ochre); color: var(--night-900); }
.page-body .post { max-width: 46rem; }
.page-body .post .prose { font-size: 1.06em; }
.page-body .post-figure { margin-bottom: 2.5rem; }
.page-body .post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(242, 166, 75, 0.35); font-family: var(--font-serif); }
.page-body .post-nav a { display: inline-flex; align-items: center; gap: 0.6em; }
/* the one arrow: an inline SVG drawn in the site's 1.5px stroke, pointing right; .arrow--back turns it round */
.page-body .arrow { flex: none; width: 1.25em; height: 0.75em; transition: transform 0.35s var(--ease-out); }
.page-body .arrow--back { transform: scaleX(-1); }
.page-body a:hover > .arrow { transform: translateX(0.2em); }
.page-body a:hover > .arrow--back { transform: scaleX(-1) translateX(0.2em); }
.page-body .empty { display: grid; gap: 1.5rem; justify-items: start; max-width: 40rem; }

/* ----- contact ----- */
.page-body .contact__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 901px) { .page-body .contact__grid { grid-template-columns: 0.9fr 1.1fr; } }
.page-body .details { display: grid; gap: 1.4rem; margin-top: 2rem; }
.page-body .details dt { font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.78rem; color: var(--ochre); }
.page-body .details dd { margin: 0.2rem 0 0; font-family: var(--font-serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); overflow-wrap: anywhere; }
.page-body .details a { text-decoration: none; }
.page-body .socials { display: flex; gap: 0.8rem; margin-top: 2rem; flex-wrap: wrap; }
/* the map: a static iframe in a static arch frame (radius, plus the same shape as a clip-path because WebKit may not
   clip a composited iframe by radius alone; overflow hidden as the fallback), an ochre 1.5 px keyline drawn above it,
   and a navy veil that inner.js fades out (0.4 → 0) once; nothing here ever moves, scales or masks the iframe */
.page-body .map__frame { position: relative; margin-top: 2.5rem; aspect-ratio: 4 / 3; border-radius: 48% 48% 0.4rem 0.4rem / 14% 14% 0.4rem 0.4rem; clip-path: inset(0 round 48% 48% 0.4rem 0.4rem / 14% 14% 0.4rem 0.4rem); overflow: hidden; background: var(--night-900); }
.page-body .map__frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--ochre); pointer-events: none; }
.page-body .map { display: block; width: 100%; height: 100%; border: 0; }
.page-body .map__veil { position: absolute; inset: 0; background: #06111f; opacity: 0; pointer-events: none; }
html.motion .page-body .map__veil { opacity: 0.4; }
/* the form has no entrance: visible from the first frame, also with reduced motion (its labels alone are dealt) */
.js:not(.motion) .page-body .form[data-enter] { opacity: 1; transition: none !important; }
.page-body .form { display: grid; gap: 1.3rem; margin-top: 2rem; }
.page-body .field { display: grid; gap: 0.45rem; }
.page-body .field label { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 500; }
.page-body .field label i { font-style: normal; color: var(--ochre); }
.page-body .field__box { position: relative; display: block; }
.page-body .field input, .page-body .field textarea { display: block; width: 100%; min-height: 3.2rem; padding: 0.8rem 1rem; background: rgba(6, 17, 31, 0.7); border: 1.5px solid rgba(246, 230, 194, 0.45); border-radius: 0.35rem; color: var(--cream); caret-color: var(--vermilion); transition: border-color 0.25s, background-color 0.25s; }
.page-body .field textarea { min-height: 9rem; resize: vertical; }
.page-body .field input::placeholder, .page-body .field textarea::placeholder { color: #a99f8a; }
.page-body .field input:hover, .page-body .field textarea:hover { border-color: var(--cream); }
.page-body .field input:focus-visible, .page-body .field textarea:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; border-color: var(--ochre); background: rgba(6, 17, 31, 0.9); }
/* the ink: on focus an ochre underline inks out from where the field was clicked (form.js writes --ink-x; from the
   left for the keyboard and without script) in 0.3 s; it goes at once on blur */
.page-body .field__ink { position: absolute; left: 1px; right: 1px; bottom: 0; height: 2px; background: var(--ochre); border-radius: 0 0 0.35rem 0.35rem; transform: scaleX(0); transform-origin: var(--ink-x, 0%) 50%; pointer-events: none; }
.page-body .field__box:focus-within .field__ink { transform: scaleX(1); transition: transform 0.3s var(--ease-out); }
.page-body .field [aria-invalid='true'] { border-color: var(--vermilion); }
.page-body .field .error { color: #ff9b7d; font-size: 0.92rem; min-height: 1.2em; }
.page-body .field .error:not(:empty)::before { content: ''; display: inline-block; width: 0.45em; height: 0.45em; margin-right: 0.5em; vertical-align: 0.12em; border-radius: 50%; background: var(--vermilion); }
.page-body .field [aria-invalid='true']:focus-visible { outline-color: var(--vermilion); }
.page-body .form__note { color: var(--cream-dim); font-size: 0.95rem; max-width: 46ch; }
.page-body .form__status { font-family: var(--font-serif); color: var(--amber); min-height: 1.5em; }
.page-body .form .btn { min-width: 12rem; }

/* ===== src/scenes/chrome.css ===== */
/* Scene "chrome" (spec 12): the page shell around every scene: site header (with the docked Contact pill and the
   docked Menu button), phone menu, side tabs, route rail, preview switcher chip, the global focus ring and link
   underline, and the page change (the arch view transition). Markup: src/scenes/chrome.html.mjs; state:
   src/core/header.js, src/core/menu.js; motion: src/scenes/chrome.js.
   Body z ladder (contract §3.19): rail 30, tabs 40, preview chip 45, phone menu 49, header with the docked pill 50,
   skip link 100. GSAP owns every transform of the header, the docks, the menu sheet and bars, the tabs and the rail:
   no CSS transform transition on any of them (spec 12 Fixes); styles.css's .btn rules follow contract §1. */

/* ---------- globals: focus ring, link underline, skip link ---------- */
/* the focus ring: 2 px ochre, true at 2 px off the element; under motion it appears 2 px off register (offset 4 px) and
   snaps true in 0.18 s on the settle curve (an animation rather than a transition, so a transition list another lane
   writes on its own links never cancels it). Reduced motion and no JavaScript: static, no offset change. */
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; border-radius: 2px; }
html.motion :focus-visible { animation: chrome-ring 0.18s var(--ease-settle); }
@keyframes chrome-ring { from { outline-offset: 4px; } }
/* hover underline of text links: an ochre line inks from the left, scaleX 0 -> 1 in 0.25 s (contract §1). Not on
   buttons, on links that hold a picture (cards, tickets: LANES 4.44), on chrome parts with their own marks, or on
   links inside running text (a paragraph's link can wrap over two lines, where one line box cannot follow it): those
   keep their printed underline and ink it ochre in the same 0.25 s. Zero specificity, so a lane's own rules win. */
:where(a:not(.btn, .tab, .skip, .wordmark):not(.switcher a, .menu a, p a, blockquote a, .prose a, figcaption a, td a, dd a, label a):not(:has(img, picture, svg, video))) { position: relative; }
:where(a:not(.btn, .tab, .skip, .wordmark):not(.switcher a, .menu a, p a, blockquote a, .prose a, figcaption a, td a, dd a, label a):not(:has(img, picture, svg, video)))::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.12em; height: 1px; background: var(--ochre);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.25s var(--ease-arrive); pointer-events: none;
}
:where(a:not(.btn, .tab, .skip, .wordmark):not(.switcher a, .menu a, p a, blockquote a, .prose a, figcaption a, td a, dd a, label a):not(:has(img, picture, svg, video))):hover::after { transform: scaleX(1); }
:where(p, blockquote, .prose, figcaption, td, dd, label) a:where(:not(.btn)) { transition: text-decoration-color 0.25s var(--ease-arrive), color 0.25s; }
:where(p, blockquote, .prose, figcaption, td, dd, label) a:where(:not(.btn)):hover { text-decoration-color: var(--ochre); }
/* the skip link drops in from above the top edge on focus (transform, not top) */
.skip { top: max(1rem, env(safe-area-inset-top, 0px)); transform: translateY(calc(-100% - 2rem)); transition: transform 0.2s var(--ease-arrive); }
.skip:focus { top: max(1rem, env(safe-area-inset-top, 0px)); transform: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: flex-start; justify-content: space-between;
  padding: max(calc(var(--sh) * 0.016), env(safe-area-inset-top, 0px)) max(1.4vw, env(safe-area-inset-right, 0px)) 0.7rem max(2.9vw, env(safe-area-inset-left, 0px));
  pointer-events: none;
  --chrome-sat: env(safe-area-inset-top, 0px); --chrome-sar: env(safe-area-inset-right, 0px); /* read by chrome.js for the dock target */
}
.site-header > :not(.site-header__back) { pointer-events: auto; }
/* the backdrop and its 1 px ochre rule: shown once the page has scrolled past 120 px (.is-solid, header.js), so the
   returning header never sits bare on copy; at the top the header stands on the hero's own sky */
.site-header__back { position: absolute; inset: 0; z-index: -1; background: rgba(8, 23, 40, 0.94); opacity: 0; transition: opacity 0.3s var(--ease-arrive); pointer-events: none; }
.site-header.is-solid .site-header__back { opacity: 1; }
.site-header__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(242, 166, 75, 0.6); transform-origin: 0 50%; }
.wordmark { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.35rem, 2.4926vw, 2.9rem); line-height: 1.1; margin-top: -0.08em; text-decoration: none; color: var(--cream); white-space: nowrap; }
.wordmark:hover { color: var(--cream); }
.nav { display: flex; align-items: flex-start; gap: clamp(1rem, 2.3vw, 3.2rem); padding-top: 0.25vw; }
.nav a { font-family: var(--font-serif); font-size: clamp(0.98rem, 1.4137vw, 1.7rem); line-height: 1.35; text-decoration: none; color: var(--cream); white-space: nowrap; }
.nav a[aria-current='page']::after { transform: scaleX(1); }
.nav .dock--contact { font-size: clamp(0.98rem, 1.4137vw, 1.7rem); }
.nav a:hover { color: var(--cream); }
/* desktop nav: the row spans the mockup's nav, from the first link's left edge (52vw) to the last link's right edge
   (98.6vw), and the five gaps are equal (space-between). Below 1200px the plain flex row above applies. */
@media (min-width: 1200px) {
  .nav { position: absolute; left: 52vw; right: 1.4vw; top: calc(var(--sh) * 0.0165); height: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 0; padding: 0; }
  .nav a { font-size: 1.3354vw; line-height: 1.2; }
  .nav .dock--contact { font-size: 1.3354vw; }
}

/* the docks: wrappers around the header's own Contact link (desktop) and Menu button (phones). While the header is
   hidden, chrome.js counter-moves the wrapper so its control stays docked top-right; the Contact link then wears a
   small cream-keyline pill. Hidden while a scene's own Contact pill is on screen (the intro, the hero pill, the dawn
   pill: contract §2 page classes). */
.dock { position: relative; z-index: 0; display: inline-flex; transition: opacity 0.2s var(--ease-arrive), visibility 0s; }
.dock--contact::before { content: ''; position: absolute; inset: -0.34em -0.82em; z-index: -1; border-radius: 999px; background: rgba(6, 17, 31, 0.84); box-shadow: inset 0 0 0 1.5px var(--cream); opacity: 0; transition: opacity 0.2s var(--ease-arrive); pointer-events: none; }
.site-header.is-hidden .dock--contact::before { opacity: 1; }
html:is(.intro-run, .cta-hero, .cta-dawn) .site-header.is-hidden .dock { opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease-leave), visibility 0s 0.2s; }
.dock--menu { display: none; }
/* without motion the hidden header fades out (0.2 s) instead of sliding, and its docked control stays where it is;
   keyboard focus inside brings everything back */
html:not(.motion) .site-header :is(.wordmark, .nav > a, .site-header__back) { transition: opacity 0.2s var(--ease-arrive), visibility 0s; }
html:not(.motion) .site-header.is-hidden:not(:focus-within) :is(.wordmark, .nav > a, .site-header__back) { opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease-leave), visibility 0s 0.2s; }

/* phone / small tablet: menu button + sheet. The header stays within env(safe-area-inset-top) + 64 px, so it never
   lands on a phone text band (they start at max(14svh, env(safe-area-inset-top) + 64px): LANES 4.40) */
@media (max-width: 900px) {
  .site-header { padding: max(0.6rem, env(safe-area-inset-top, 0px)) max(1.1rem, env(safe-area-inset-right, 0px)) 0.5rem max(1.1rem, env(safe-area-inset-left, 0px)); align-items: center; }
  .js .nav { display: none; }
  .js .dock--menu { display: inline-flex; }
  .menu-btn { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 999px; background: rgba(8, 23, 40, 0.8); box-shadow: inset 0 0 0 1.5px var(--ochre); color: var(--cream); font-family: var(--font-serif); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem; cursor: pointer; }
  .menu-btn b { font-weight: 500; }
  /* docked over copy, the pill is near-opaque so the text under it does not read through */
  .site-header.is-hidden .menu-btn { background: rgba(6, 17, 31, 0.94); }
  /* without script the menu button cannot open the sheet: the links show as a wrapping row instead, and the
     header scrolls away with the page rather than covering it */
  html:not(.js) .site-header { position: absolute; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; background: rgba(8, 23, 40, 0.86); padding-bottom: 0.7rem; }
  html:not(.js) .nav { display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; padding: 0; }
  html:not(.js) .nav a { font-size: 1rem; line-height: 2.2; }
}
.menu-btn { display: none; }
@media (max-width: 900px) { .js .menu-btn { display: inline-flex; } }
/* the button's two bars cross into an X about their centres (chrome.js under motion; at once without motion) */
.menu-btn__bars { position: relative; width: 1.1rem; height: 0.55rem; flex: none; }
.menu-btn__bars i { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--cream); border-radius: 1px; }
.menu-btn__bars i:first-child { top: 0; }
.menu-btn__bars i:last-child { bottom: 0; }
html:not(.motion) .menu-btn[aria-expanded='true'] .menu-btn__bars i:first-child { transform: translateY(calc(0.275rem - 0.75px)) rotate(45deg); }
html:not(.motion) .menu-btn[aria-expanded='true'] .menu-btn__bars i:last-child { transform: translateY(calc(-0.275rem + 0.75px)) rotate(-45deg); }

/* the phone menu sheet: one translated layer with a static deckled bottom edge (no animated mask); its own scroller
   inside, so a short landscape phone still reaches the last link */
.menu { position: fixed; inset: 0; z-index: 49; visibility: hidden; background: var(--night-900); }
.menu__body { height: 100%; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: center; gap: 0.2rem; padding: max(5rem, calc(env(safe-area-inset-top, 0px) + 4rem)) max(1.6rem, env(safe-area-inset-right, 0px)) max(2rem, var(--safe-b)) max(1.6rem, env(safe-area-inset-left, 0px)); }
.menu__deckle { position: absolute; left: 0; top: calc(100% - 1px); width: 100%; height: 18px; fill: var(--night-900); pointer-events: none; }
.menu.is-open, html.motion .menu.is-closing { visibility: visible; }
html:not(.motion) .menu { opacity: 0; transition: opacity 0.2s linear, visibility 0s 0.2s; }
html:not(.motion) .menu.is-open { opacity: 1; transition: opacity 0.2s linear, visibility 0s; }
html:not(.js) .menu { display: none; }
.menu a { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.6rem, 13vw, 4.4rem); line-height: 1; text-decoration: none; padding: 0.12em 0; color: var(--cream); justify-self: start; }
.menu a[aria-current='page'], .menu a:hover { color: var(--vermilion); }
.menu__meta { margin-top: 1.6rem; display: grid; gap: 0.3rem; justify-items: start; font-family: var(--font-serif); color: var(--cream-dim); }
.menu__meta a { font: inherit; text-transform: none; color: var(--amber); padding: 0.25rem 0; }
@media (orientation: landscape) and (max-height: 500px) {
  .menu a { font-size: clamp(1.8rem, 9vh, 2.6rem); }
  .menu__body { align-content: start; padding-top: max(4.2rem, calc(env(safe-area-inset-top, 0px) + 3.6rem)); }
}

/* ---------- side tabs ---------- */
/* centred on the small viewport's middle (top = 50svh - h / 2: no translate, so GSAP's x (hover slide) and y (crank
   lag) are the tab's only transform, and the intro's xPercent its entrance). Full opacity always. */
.tab {
  --tab-h: clamp(9rem, calc(var(--sh) * 0.2476), 18rem);
  position: fixed; top: calc(50svh - var(--tab-h) / 2); z-index: 40; width: clamp(2.1rem, 2.7vw, 3.4rem); height: var(--tab-h);
  display: grid; place-items: center; text-decoration: none; color: var(--ochre); border: 2px solid var(--ochre);
  background: rgba(8, 23, 40, 0.9); opacity: 1; transition: color 0.3s, background-color 0.3s;
}
.tab--left { left: env(safe-area-inset-left, 0px); border-left: 0; border-radius: 0 0.6rem 0.6rem 0; }
.tab--right { right: env(safe-area-inset-right, 0px); border-right: 0; border-radius: 0.6rem 0 0 0.6rem; }
/* label measured from the mockup: cap height 0.97vw (14px at 1440), tracking 0.05em, ink #f7ad4e */
.tab span { writing-mode: vertical-rl; font-family: var(--font-serif); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; font-size: clamp(0.9rem, 1.4vw, 1.65rem); line-height: 1; color: #f7ad4e; transition: color 0.3s; }
.tab:hover span { color: var(--night-900); }
.tab--left span { transform: rotate(180deg); }
/* the two rings: open circles with a notch (so the hover's 90 degree turn reads), turned by --chrome-ring (GSAP,
   contract §4.1); filled ochre while the tab's target pin is stuck (.is-live, chrome.js) */
.tab::before, .tab::after { content: ''; position: absolute; left: 50%; width: 0.5rem; height: 0.5rem; margin-left: -0.25rem; border: 1.5px solid var(--ochre); border-top-color: transparent; border-radius: 50%; transform: rotate(calc(var(--chrome-ring, 0) * 1deg)); transition: background-color 0.3s, border-color 0.3s; }
.tab::before { top: 0.8rem; }
.tab::after { bottom: 0.8rem; }
.tab.is-live::before, .tab.is-live::after { background: var(--ochre); border-color: var(--ochre); }
.tab:hover { color: var(--night-900); background: var(--ochre); }
.tab:hover::before, .tab:hover::after { border-color: var(--night-900); border-top-color: transparent; }
.tab.is-live:hover::before, .tab.is-live:hover::after { background: var(--night-900); border-color: var(--night-900); }
@media (max-width: 900px), (max-aspect-ratio: 1/1) { .tab { display: none; } }

/* ---------- route rail ---------- */
/* rail.js is the only writer of the rail's transform and opacity, its line, dots, flap and li.is-here (contract
   §3.10): no opacity or transform transition here. Under motion it starts hidden (rail.js sets it at once; this is the
   first paint before the script). Without JavaScript it is not shown at all. */
.rail {
  --rail-fs: clamp(0.62rem, 1.302vw, 1.5rem);
  position: fixed; left: env(safe-area-inset-left, 0px); right: env(safe-area-inset-right, 0px); bottom: var(--safe-b); z-index: 30;
  height: max(calc(var(--sh) * 0.0575), 2.2rem); pointer-events: none;
}
html.motion .rail { opacity: 0; }
/* without script nothing drives it: kept in the page (its names stay in the text, as with script) but not shown */
html:not(.js) .rail, html.no-fit .rail { opacity: 0; }
/* its legibility band: a static navy gradient from clear to dark behind the names, running under the home indicator */
.rail::before { content: ''; position: absolute; left: 0; right: 0; top: -1.1rem; bottom: calc(-1 * var(--safe-b)); z-index: -1; background: linear-gradient(180deg, rgba(6, 17, 31, 0), rgba(6, 17, 31, 0.66) 1.1rem, rgba(6, 17, 31, 0.8)); }
/* the row keeps the mockup's span (first name at 8.9%, the last ending 5.2% from the right edge) with equal gaps */
.rail ol { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 0 5.2% 0 8.9%; }
.rail li { font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 0.32em; font-size: var(--rail-fs); line-height: 1.5; white-space: nowrap; color: var(--cream); transition: color 0.4s; }
.rail li.is-here { color: var(--vermilion); }
/* the line (1.5 px ochre) runs from the first name's centre to the last one's under the names (left and width set by
   chrome.js from the names' boxes); rail.js scales it from its left end to the journey's tip and moves the dots there */
.rail__line { position: absolute; left: 0; width: 0; top: calc(var(--rail-fs) * 1.5 + 0.38rem); height: 1.5px; margin-top: -0.75px; background: var(--ochre); transform: scaleX(0); transform-origin: 0 50%; }
.rail__dots { position: absolute; left: 0; top: calc(var(--rail-fs) * 1.5 + 0.38rem); width: 0; height: 0; }
.rail__dots i { position: absolute; border-radius: 50%; background: var(--amber); }
.rail__dots i:first-child { width: 6px; height: 6px; left: -3px; top: -3px; }
.rail__dots i:last-child { width: 4px; height: 4px; left: -12px; top: -2px; }
.rail__flap { display: none; }
/* phones (portrait): the split-flap name only, from the first frame (director's decision, LANES 4.11), 2.6 rem tall
   above the home indicator, on a solid navy band so the vermilion name reads on any artwork (contrast 4.5:1 or more) */
@media (orientation: portrait) {
  .rail { height: 2.6rem; }
  .rail ol, .rail__line, .rail__dots { display: none; }
  .rail::before { top: -1.4rem; background: linear-gradient(180deg, rgba(6, 17, 31, 0), rgba(6, 17, 31, 0.95) 1.4rem); }
  .rail__flap { position: absolute; inset: 0; display: grid; grid-template-columns: 1.6rem auto 1.6rem; column-gap: 0.9rem; justify-content: center; align-items: center; perspective: 26rem; }
  .rail__flap::before, .rail__flap::after { content: ''; height: 1px; background: var(--ochre); }
  .rail__flap::before { grid-column: 1; grid-row: 1; }
  .rail__flap::after { grid-column: 3; grid-row: 1; }
  .rail__flap > span { grid-area: 1 / 2; justify-self: center; font-family: var(--font-serif); font-weight: 600; text-transform: uppercase; letter-spacing: 0.32em; margin-right: -0.32em; font-size: 0.86rem; line-height: 1.3; white-space: nowrap; color: var(--vermilion); backface-visibility: hidden; transform-origin: 50% 50%; }
}

/* ---------- the page change (spec 12 Markup, Beats) ---------- */
/* both pages opt in; the head script (chrome.html.mjs) picks the arrival on pagereveal. Defaults: a 0.25 s linear
   cross-fade (reduced motion, and the coarse fallback); the arch (.vt-arch) and the tap arrival (.vt-tap) replace the
   new page's animation and step the old page back under a navy veil. */
@view-transition { navigation: auto; }
::view-transition { background: #06111f; }
::view-transition-group(*) { animation-duration: 0.25s; animation-timing-function: linear; }
::view-transition-group(arch-line) { animation-duration: 0.6s; }
::view-transition-new(arch-line) { animation: none; }
html.vt-arch::view-transition-new(root) { animation: none; clip-path: var(--vt-root); }
html.vt-arch::view-transition-new(arch-line) { clip-path: var(--vt-ring); }
html.vt-tap::view-transition-new(root) { animation: none; opacity: 0; }
html.vt-arch::view-transition-old(root), html.vt-tap::view-transition-old(root) { animation: chrome-vt-old 0.6s var(--ease-camera) both; }
@keyframes chrome-vt-old { to { transform: scale(0.96); opacity: 0.55; } }
/* present only while a transition runs (the head script adds and removes it): the ochre sheet whose ring-shaped clip
   rides the arch edge, or on coarse pointers a small 2 px SVG arch outline */
.vt-line { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; view-transition-name: arch-line; background: #f2a64b; }
.vt-line--tap { background: none; }
.vt-line svg { position: absolute; inset: 0; overflow: visible; }

/* ===== MODE SWITCHER (preview only; see the MODE SWITCHER block in src/scenes/chrome.html.mjs) =================
   A chip on /, /print/ and /drive/, bottom left above the route rail: cream on night-950 at 0.7, the current version in
   ochre. While a pin is stuck it steps aside (opacity 0, no pointer events, 0.3 s), so it never covers the convoy or a
   ticket; it is always shown with reduced motion (no pins then). */
.switcher { position: fixed; z-index: 45; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(var(--safe-b) + 2.6rem + 12px); display: flex; gap: 0.1rem; padding: 0.22rem; border-radius: 999px; background: rgba(6, 17, 31, 0.7); box-shadow: inset 0 0 0 1px rgba(242, 166, 75, 0.55); font-family: var(--font-serif); font-variant-caps: all-small-caps; font-size: 1.05rem; letter-spacing: 0.1em; line-height: 1; transition: opacity 0.3s var(--ease-arrive), visibility 0s; }
.switcher a { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 0.8rem 0.12em; border-radius: 999px; text-decoration: none; color: var(--cream); }
.switcher a:hover { color: var(--amber); }
.switcher a[aria-current='page'] { color: var(--ochre); box-shadow: inset 0 0 0 1px var(--ochre); }
html.pin-stuck .switcher:not(:focus-within) { opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease-leave), visibility 0s 0.3s; }
@media (max-width: 599.98px) {
  .switcher { font-size: 0.74rem; padding: 0.14rem; }
  .switcher a { min-height: 1.5rem; padding: 0 0.55rem 0.1em; }
}
/* ===== end MODE SWITCHER ===================================================================================== */
