/* The retreat kit (William, 2026-11-17: "how can you build a system that when we keep
   creating new retreats, that everything updates to be consistent"). Every retreat
   page loads this one stylesheet and /assets/retreat/retreat.js; a fix here reaches
   every retreat at once. A page brings only its words, and its config block (written
   by tools/retreats.mjs from tools/retreats.json), which names its one accent:

     --retreat       the retreat's colour, as a hex
     --retreat-rgb   the same, as three numbers for rgb(var(--retreat-rgb) / a)
     --retreat-deep  a deeper pour of it (the title chevron's second hue)
     --ring-nb-retreat, --ring-pill-retreat   the shell's chrome rings in that colour
     --sa-grain     the stepped grain, in that colour

   Nothing in this file names a colour of its own for the accent: tools/retreats.mjs
   --check fails if one appears. The programme's cards keep scent.tech's six colours,
   which are the cards' own, not the accent.

   The account below was written for Scent with Asia, the first retreat; it holds
   for every retreat.

Scent with Asia, built section for section on the home page's own modules
   (William, 2026-11-11: "the hero should have chrome exactly like the home page, we
   need to design everything in sections like we have on home").

   Every section is the home's: a stacked head (a light tracked eyebrow over a chrome
   3D title), one lead, then a module from the Stage page, at its measurements in
   tools/build-stage.py:

     hero            #top      the 3D mark in the home's liquid chrome, alone
     the invitation  #studio   an eyebrow over one dot-matrix line
     guest artist    #run      a venture card: media, pill, name, line, link
     the senses      #do       the head and reason held beside a column of cards
     the details     #run      venture cards, four across
     included        #work     the joined process cards
     host            #network  the team card

   One card of a module is lit and the rest sit back, as on the home. Nothing slides
   on its own. The accent is the retreat's own (--retreat), where the home runs its
   lightning blue. No shell card, rail, split or button classes are used: those
   brought sliding rails and a ring 2px taller than its button. */
html, body { background: #000; }
/* A drifting glow (the footer's, the hero's) reaches past the window's edge. The home
   clips it at the body, so the page can never slide sideways; so does this page, and
   the footer and the page's own sections clip theirs too, so nothing is wider than
   the window at all. */
body { overflow-x: clip; }
/* Links within the page travel, as on the home. */
html { scroll-behavior: smooth; }
.rs-foot { overflow-x: clip; }
/* The footer, as under the home's last panel: it waits at the bottom of the window,
   40px under the close, and the close lifts off it. It only shows once the close is
   on screen (the script at the foot of the page), so it never sits behind a gap
   higher up. On a phone it follows on in the flow. */
/* The page is backed in black down to the last panel's rounded foot, so the waiting
   footer never shows through a panel that is fading behind the next. */
.sx { position: relative; z-index: 1; background: linear-gradient(#000, #000) 0 0 / 100% calc(100% - 60px) no-repeat; }
.rs-foot { position: relative; z-index: 0; margin-top: -40px; padding-top: 136px; }
@media (min-width: 768px) {
  .rs-foot { position: sticky; bottom: 0; }
  body:not(.ft-on) .rs-foot { visibility: hidden; }
}
/* Every button and pill wears the accent's ring, the menu's "start a conversation"
   too (William, 2026-11-11 for Scent; 2026-11-17 for every retreat). */
:root:root { --ring-nb: var(--ring-nb-retreat); }
/* The footer follows too: its sign-up button wears the accent's ring and its focus
   ring is the accent (William, 2026-11-17). retreat.js swaps in the retreat's mark. */
.rs-foot { --ring-go: var(--ring-nb-retreat); }
.rs-foot .ft-su-box:has(input:focus-visible) { box-shadow: 0 0 0 2px rgb(var(--retreat-rgb) / .7); }
.rs-foot::before { background-image: var(--sa-grain); }
.rs-foot::after { background: radial-gradient(ellipse 46% 60% at 50% 55%, rgb(var(--retreat-rgb) / .035), rgb(var(--retreat-rgb) / .012) 50%, rgb(var(--retreat-rgb) / 0) 100%); }
/* In the phone menu, the number of the page that is open is in the accent here. */
.sm-item.is-here em { color: var(--retreat); }
.shell { max-width: none; border-inline: 0; }
.section-strip { display: none; }

.sx {
  --hib: var(--retreat);
  --line: rgba(239, 239, 239, .12);
  --rule: rgba(239, 239, 239, .2);
  --soft: rgba(239, 239, 239, .72);
  --dim: rgba(239, 239, 239, .62);
  --off: rgba(239, 239, 239, .4);
  --ease: cubic-bezier(.22, 1, .36, 1);
  position: relative; isolation: isolate; overflow-x: clip;
  font-family: "Fira Code", ui-monospace, monospace;
  color: #EFEFEF;
  -webkit-font-smoothing: antialiased;
}
/* The reset carries no weight of its own (:where), so every rule below wins by
   being later, never by being longer. */
:where(.sx) *, :where(.sx) *::before, :where(.sx) *::after { box-sizing: border-box; }
:where(.sx) :is(p, h1, h2, h3, ul, ol, dl, dd, dt, figure) { margin: 0; padding: 0; }
:where(.sx) :is(h1, h2, h3) { font-weight: 400; text-transform: none; }
:where(.sx) :is(ul, ol) { list-style: none; }
:where(.sx) a { color: inherit; text-decoration: none; }
.sx .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* A section, as on the home: 120px above and below, 40px at the sides, and 56px
   between its head, its lead and its module. Each is a black panel in the home's
   chrome (.sx-fr below), with the rim's 19px corners. */
.sx-s { position: relative; z-index: 1; isolation: isolate; display: flex; flex-direction: column; gap: var(--sec-gap); padding: var(--sec-pad-y) var(--sec-pad-x); border-radius: var(--panel-r); background: #000; }

/* The chrome panel (William, 2026-11-11: "the chrome hero panel that wraps
   underneath, I want all of the sections to have similar chrome panels"). It is the
   home's frame (--ring-frame, as #top, #run and #work wear it): a curve along the
   top and one along the foot, each running up or down the sides and dissolving
   into the black over 640px, so the chrome has no end to see. The hero wears the
   foot curve alone, as the home's first screen does. */
.sx-fr { --fr-h: 640px; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
/* Two pieces, as the home draws them: a head and a foot, each no taller than the fade.
   One frame the height of a whole section was a single masked picture as large as
   the section (57MB for the itinerary on a sharp screen), which the browser had to
   hold and redraw; the pieces are a quarter of that at most. */
.sx-fr::before, .sx-fr::after {
  content: ""; position: absolute; left: 0; right: 0; height: min(var(--fr-h), 100%); box-sizing: border-box;
  border-style: solid; border-image: var(--ring-frame) var(--ring-frame-slice) stretch;
}
.sx-fr::before {
  top: 0; border-width: var(--panel-r) var(--panel-r) 0; border-radius: var(--panel-r) var(--panel-r) 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 40px, rgba(0,0,0,.72) calc(var(--fr-h) * .25), rgba(0,0,0,.42) calc(var(--fr-h) * .5), rgba(0,0,0,.18) calc(var(--fr-h) * .75), rgba(0,0,0,.05) calc(var(--fr-h) * .9), transparent var(--fr-h));
          mask-image: linear-gradient(to bottom, #000 40px, rgba(0,0,0,.72) calc(var(--fr-h) * .25), rgba(0,0,0,.42) calc(var(--fr-h) * .5), rgba(0,0,0,.18) calc(var(--fr-h) * .75), rgba(0,0,0,.05) calc(var(--fr-h) * .9), transparent var(--fr-h));
}
.sx-fr::after {
  bottom: 0; border-width: 0 var(--panel-r) var(--panel-r); border-radius: 0 0 var(--panel-r) var(--panel-r);
  -webkit-mask-image: linear-gradient(to top, #000 40px, rgba(0,0,0,.72) calc(var(--fr-h) * .25), rgba(0,0,0,.42) calc(var(--fr-h) * .5), rgba(0,0,0,.18) calc(var(--fr-h) * .75), rgba(0,0,0,.05) calc(var(--fr-h) * .9), transparent var(--fr-h));
          mask-image: linear-gradient(to top, #000 40px, rgba(0,0,0,.72) calc(var(--fr-h) * .25), rgba(0,0,0,.42) calc(var(--fr-h) * .5), rgba(0,0,0,.18) calc(var(--fr-h) * .75), rgba(0,0,0,.05) calc(var(--fr-h) * .9), transparent var(--fr-h));
}
/* The foot alone (the hero, the close), and the head alone (a panel that runs on into
   the next section, which wears the foot). */
.sx-fr--foot::before { content: none; }
.sx-fr--top::after { content: none; }
/* The flow is the home's. Sections follow one another with no gap and scroll as a
   page does. Which are panels follows the home too: its ventures and process are
   framed top and foot (here the guest artist, the itinerary and the host); its
   services sit open on the ground (here the senses and what is included);
   its last section wears the foot alone, squared at the top (here the close).
   One section holds, as the home's services do under its process: the senses sit
   a layer below the panels either side, tucked 40px under each one's rounded end,
   and hold still once their foot reaches the bottom of the window (the page sets
   --pin) while the itinerary slides up and over them (the script at the foot of
   the page). */
/* The host and the close are one panel: the host wears its head, the close its foot,
   and nothing parts them. */
#host { border-radius: var(--panel-r) var(--panel-r) 0 0; padding-bottom: 0; }
#enquire { border-radius: 0 0 var(--panel-r) var(--panel-r); }
.sx-held { position: sticky; top: var(--pin, 0px); z-index: 0; margin-top: calc(var(--panel-tuck) * -1); margin-bottom: calc(var(--panel-tuck) * -1); padding-top: var(--sec-pad-held); padding-bottom: var(--sec-pad-held); border-radius: 0; }
#the-details { z-index: 2; }
#included { border-radius: 0; }
.sx-eb {
  font-size: var(--eb-fs); font-weight: var(--eb-weight); line-height: normal;
  letter-spacing: var(--eb-track); text-transform: uppercase;
  color: var(--soft);
}
/* The chrome "> Titles" at the home's 85% desktop scale (0.334px a unit, 42.5px
   tall; 0.251px and 31px on a phone). --u is the outline's width in units, from
   tools/stage-src/words3d/make-title.py. */
.st-w { display: flex; flex-direction: column; align-items: flex-start; gap: var(--head-gap); }
.st-t { position: relative; display: flex; align-items: flex-end; line-height: 0; }
.st-3d {
  position: relative; flex: none; display: block;
  width: min(calc(var(--u) * .334px), calc(100vw - 160px));
  aspect-ratio: calc(var(--u) * .334) / 42.5;
  margin-left: calc(var(--u) * -.0158px);
}
.st-fb {
  position: absolute; left: 0; bottom: 0;
  font-weight: 500; font-size: 32px; line-height: 1.1; letter-spacing: var(--track-tight);
  color: #EFEFEF; white-space: nowrap;
}
.is-drawn > .st-fb { visibility: hidden; }
/* The lead: 18px at 72% ink, 20px under its head. */
.sx-lead { max-width: var(--lead-w); margin-top: calc(var(--lead-gap) - var(--sec-gap)); font-size: var(--lead-fs); line-height: var(--lead-lh); color: var(--soft); text-wrap: pretty; }
.sx-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 700px; }
/* Description copy (a bio, the invitation, the reason beside the senses): 14 on 22, the
   size of the text on cards, in one ink. The lead under a title stays a step larger. */
.sx-copy p { font-size: var(--copy-fs); line-height: var(--copy-lh); color: var(--soft); }

/* The pill and the button are the home's: a chrome ring image, nine-sliced, on a
   box exactly as tall as the ring. The pill's text is plain. No glow. */
.sx-pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: var(--pill-h); padding: 0 var(--pill-pad);
  font-size: var(--pill-fs); font-weight: 400; line-height: 1;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase; white-space: nowrap;
  color: #fff; text-shadow: none;
  transition: color .8s var(--ease);
}
.sx-pill::before, .sx-pill::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-style: solid; border-width: var(--pill-ring);
}
.sx-pill::before { border-image: var(--ring-btn) 50% 22.32% stretch; filter: brightness(.4); }
.sx-pill::after { border-image: var(--ring-pill-retreat, var(--ring-btn)) 50% 22.32% stretch; filter: brightness(1.4); transition: opacity .8s var(--ease); }
.sx-pill--chrome::after { border-image-source: var(--ring-btn); filter: none; }
.sx-btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  height: var(--btn-h); padding: 0 var(--btn-pad);
  font-size: var(--btn-fs); font-weight: 400; line-height: 1;
  color: #EFEFEF; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.sx-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: var(--btn-ring); border-style: solid; border-width: var(--btn-ring);
  border-image: var(--ring-btn, url("/assets/stage/img/switch3.webp")) 50% 22.32% stretch;
  transition: filter .5s var(--ease);
}
.sx-btn:hover::before, .sx-btn:focus-visible::before { filter: brightness(1.35); background: rgba(255, 255, 255, .06); }
.sx-btn--go::before { border-image-source: var(--ring-nb-retreat, var(--ring-btn)); filter: brightness(1.4); }
.sx-btn--go:hover::before, .sx-btn--go:focus-visible::before { filter: brightness(1.8); }
/* A way in that is not open yet: the button's shape, quieter, and it does nothing. */
.sx-btn--soon { color: var(--soft); pointer-events: none; }
.sx-btn--soon::before { filter: brightness(.6); }
/* The senses' button: its ring is the lit sense's colour. Two rings lie one on the
   other and the page fades between them, so the colour turns rather than jumps. */
.sx-btn--sense::before { border-image-source: var(--sb-a, var(--ring-nb-retreat, var(--ring-btn))); transition: filter .5s var(--ease), opacity .8s var(--ease); }
.sx-btn--sense::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: var(--btn-ring); border-style: solid; border-width: var(--btn-ring);
  border-image: var(--sb-b, var(--ring-nb-retreat, var(--ring-btn))) 50% 22.32% stretch;
  filter: brightness(1.4); opacity: 0;
  transition: filter .5s var(--ease), opacity .8s var(--ease);
}
/* Sound's ring is the shell's blue button ring. This page turns --ring-nb to the accent for
   the menu, so the button names the blue ring's own files. */
.sx-btn--sense { --ring-nb-sound: url("/shell/rings/nb-2x.webp?v=b46a2f3f"); }
@media (max-resolution: 1dppx) { .sx-btn--sense { --ring-nb-sound: url("/shell/rings/nb-1x.webp?v=0ce9f9b8"); } }
.sx-btn--sense:hover::after, .sx-btn--sense:focus-visible::after { filter: brightness(1.8); }
.sx-btn--sense.is-b::before { opacity: 0; }
.sx-btn--sense.is-b::after { opacity: 1; }
/* The quiet link under a card, its arrow stepping out on hover. */
.sx-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--card-link-fs); line-height: normal; white-space: nowrap; color: #EFEFEF; }
.sx-go > span { display: inline-block; transition: transform .5s var(--ease); }
.sx-go:hover > span, .sx-go:focus-visible > span { transform: translate(2px, -2px); }

/* The ground the home lays under a section: a grain stepping like film, and a slow
   glow, falling to black at every edge. Here in the accent. */
.sx-ground { isolation: isolate; }
.sx-ground::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .34; background: var(--sa-grain) 0 0 / 240px 240px;
  animation: sa-grain 1.1s steps(1) infinite;
  -webkit-mask: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
          mask: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
          mask-composite: intersect;
}
.sx-ground::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 46% 52% at 50% 55%, rgb(var(--retreat-rgb) / .2), rgb(var(--retreat-rgb) / .07) 50%, rgb(var(--retreat-rgb) / 0) 100%);
  animation: rs-glow 22s ease-in-out infinite alternate;
}
/* --sa-grain, the grain in the accent, is set in each page's config block. */
@keyframes sa-grain {
  0% { background-position: 0 0; } 20% { background-position: -60px 40px; } 40% { background-position: 80px -30px; }
  60% { background-position: -40px -70px; } 80% { background-position: 50px 60px; }
}

/* The smoke, the home's shader ground (the script at the foot of the page), here in
   accent: behind the invitation, the senses and the close. Where it
   runs, the stepped grain and glow of those sections stand down. */
.gr-cv { position: absolute; left: 0; top: 0; z-index: -1; display: block; width: 100%; pointer-events: none; }
html.gr-on .sx-s.sx-ground::before, html.gr-on .sx-s.sx-ground::after { display: none; }
/* Over the senses the gathered menu moves to the left, above the held column, so the
   cards have the right of the window to themselves, as over the home's services.
   --sv is the scroll position: 0 is the usual bar, 1 the short one on the left
   without its button. The button has gone by .3, and only then does the bar
   shorten (--sv-s). The rules are the home's (tools/build-stage.py). */
html .site-bar { --sv: 0; --sv-s: 0; --sv-dx: 0px; --sv-cut: 0px; }
html .site-bar .sb-logo, html .site-bar .sb-links, html .site-bar .nb { translate: calc(var(--sv-dx) * var(--sv) * -1) 0; }
html .site-bar .nb { filter: opacity(max(0, calc(1 - var(--sv) * 3.4))); }
html .site-bar.sv-on .nb { pointer-events: none; }
html .site-bar::before { left: calc(var(--panel-l, 0px) * var(--p) + 2px * var(--p) - var(--sv-dx) * var(--sv)); right: calc(var(--panel-l, 0px) * var(--p) + 2px * var(--p) + var(--sv-dx) * var(--sv) + var(--sv-cut) * var(--sv-s)); }
html .site-bar > .lg-bezel { left: calc(var(--panel-l, 0px) * var(--p) - var(--sv-dx) * var(--sv)); right: calc(var(--panel-l, 0px) * var(--p) + var(--sv-dx) * var(--sv) + var(--sv-cut) * var(--sv-s)); }

/* ── Hero (#top): the home's 3D mark in its own liquid chrome, at the home's size,
   with the scent stars where the rain falls. Under it, in the place the home keeps
   its switch: the pill, the title, the three facts and the one way in. */
.sx-hero {
  --mh: clamp(400px, calc(100svh - 64px - 300px), 720px);
  position: relative; display: flex; flex-direction: column; align-items: center;
  min-height: calc(100svh - 64px); padding: 24px 40px 64px; text-align: center; background: #000;
}
.sx-mark { flex: none; width: min(720px, 100%); height: var(--mh); }
.sx-lock { display: flex; flex-direction: column; align-items: center; margin-top: calc(var(--mh) * -.1); }
.sx-title { position: relative; margin-top: 20px; line-height: 0; }
/* The hero's title is the height of a section title: 42.5px (31px on a phone). */
/* --title-u is the hero outline's width in units (the config block sets it). */
.sx-title-3d { display: block; width: min(calc(var(--title-u, 984.64) * .334px), calc(100vw - 80px)); aspect-ratio: var(--title-u, 984.64) / 127.2; }
.sx-title .st-fb { left: 50%; transform: translateX(-50%); font-size: 28px; }
.sx-facts {
  display: flex; flex-wrap: wrap; justify-content: center; margin-top: 20px;
  font-size: var(--t-small); font-weight: 300; line-height: 1.3;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--soft);
}
.sx-facts li { padding: 0 18px; border-left: 1px solid var(--rule); }
.sx-facts li:first-child { border-left: 0; }
.sx-lock .sx-btn { align-self: center; margin-top: 32px; }

/* ── The invitation (#studio): an eyebrow over one dot-matrix line, the home's
   opening statement. Then the copy, with the enquiry button below it. */
/* It follows the hero's chrome curve as the home's opening line does: on the open
   ground, with no panel of its own, and it scrolls on without holding. */
.sx-say { gap: 16px; margin-top: 0; border-radius: 0; background: transparent; }
.sx-line { max-width: 1100px; font-size: 48px; font-weight: 400; line-height: 1.15; letter-spacing: var(--track-tight); }
.mx.is-matrix { line-height: 0; }
.mx.is-matrix svg { display: block; overflow: visible; font-size: var(--mx-dot); fill: #EFEFEF; shape-rendering: crispEdges; }
.mx.is-matrix .is-out { fill: #2a2a2a; }
.mx.is-matrix .is-back { fill: #6f6f6f; }
.sx-inv { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 72px; justify-items: start; align-items: start; margin-top: 56px; }

/* ── A venture card (#run): a media box, then a pill, a name, a line and a link.
   Asia's holds her card in the graded slab, at the home's 520px. Beside it, her
   story; the card stays in view while it is read. */
.sx-feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
.sx-vc { display: flex; flex-direction: column; gap: var(--venture-card-gap); min-width: 0; }
.sx-feat > .sx-vc, .sx-feat > .sx-pc { position: sticky; top: 128px; }
.sx-vc-t { display: flex; flex-direction: column; align-items: flex-start; gap: var(--venture-card-text-gap); }
/* The name with its pill beside it, as a tag on the name. */
.sx-vc-h { display: flex; align-items: center; gap: var(--venture-card-tag-gap); }
.sx-vc-n { font-size: var(--card-name-fs); line-height: var(--card-name-lh); letter-spacing: calc(var(--track-tight) / 2); }
.sx-pc .sx-vc-n { font-size: var(--person-card-name-fs); line-height: 1.1; }
.sx-pc .sx-pill { margin-bottom: var(--person-card-pill-gap); }
.sx-vc-b { margin-top: 4px; font-size: var(--card-body-fs); line-height: var(--card-body-lh); color: var(--soft); }
.sx-slab { position: relative; width: 100%; height: 520px; }

/* ── The senses (#do): on the left the head and the reason, held; on the
   right a column of cards. The card under the pointer is lit. */
.sx-svc { display: grid; grid-template-columns: minmax(600px, 1fr) minmax(0, 760px); gap: 48px; align-items: start; }
/* Held in the middle of the window below the menu bar (the script at the foot of the
   page sets --svc-top, as the home does). */
.sx-svc-l { position: sticky; top: var(--svc-top, 128px); display: flex; flex-direction: column; max-width: 640px; }
/* The head is held with the reason, so both stay in view while the cards pass. */
.sx-svc-l .st-w { margin-bottom: var(--lead-gap); }
.sx-svc-l .sx-lead { margin-top: 0; font-size: var(--copy-fs); line-height: var(--copy-lh); }
/* The close's line is description copy too (William, 2026-11-12). */
#enquire .sx-lead { font-size: var(--copy-fs); line-height: var(--copy-lh); }
.sx-svc-l .sx-copy { margin-top: 14px; gap: 14px; }
.sx-svc-l .sx-btn { margin-top: 40px; }
.sx-svc-cs { display: flex; flex-direction: column; gap: 24px; }
/* The card frame is the home's chrome rim. */
.sx-sc { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--list-card-gap); padding: var(--list-card-pad); border-radius: var(--panel-r); background: #000; transition: background-color .8s var(--ease); }
.sx-sc::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: 19px; border-style: solid; border-width: 19px;
  border-image: var(--ring-frame) var(--ring-frame-slice) stretch;
  transition: filter .8s var(--ease);
}
/* Each sense wears its scent.tech colour when it is lit: the pill's ring, the card's
   chrome frame (a second frame in the colour, faded in over the plain one). */
.sx-sc::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: 19px; border-style: solid; border-width: 19px;
  border-image: var(--sense-frame, var(--ring-frame)) var(--ring-frame-slice) stretch;
  transition: opacity .8s var(--ease);
}
.sx-sc .sx-pill::after { border-image-source: var(--sense-pill, var(--ring-pill-retreat, var(--ring-btn))); }
/* Each card names the scent.tech ring it wears (data-ring): scent, sound, sight,
   taste, touch or intuition. */
.sx-sc[data-ring="scent"] { --sense-frame: var(--ring-frame-scent); --sense-pill: var(--ring-pill-hibiscus); }
.sx-sc[data-ring="sound"] { --sense-frame: var(--ring-frame-sound); --sense-pill: var(--ring-pill); }
.sx-sc[data-ring="sight"] { --sense-frame: var(--ring-frame-sight); --sense-pill: var(--ring-pill-sight); }
.sx-sc[data-ring="taste"] { --sense-frame: var(--ring-frame-taste); --sense-pill: var(--ring-pill-taste); }
.sx-sc[data-ring="touch"] { --sense-frame: var(--ring-frame-touch); --sense-pill: var(--ring-pill-touch); }
.sx-sc[data-ring="intuition"] { --sense-frame: var(--ring-frame-intuition); --sense-pill: var(--ring-pill-indigo); }
.sx-sc p { font-size: var(--card-body-fs); line-height: var(--card-body-lh); color: var(--soft); transition: color .8s var(--ease); }
.sx-sc p + p { margin-top: -16px; }

/* ── The details (#run): venture cards, four across. */
/* Four days across, or as many as the page asks for (--days-cols). */
.sx-days { display: grid; grid-template-columns: repeat(var(--days-cols, 4), minmax(0, 1fr)); gap: 48px 24px; }
/* A day whose photograph is still to come: the frame, and a quiet line in it. */
.sx-day-m--soon { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: var(--t-caption); font-weight: 300; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--off); }
.sx-day { display: flex; flex-direction: column; gap: 20px; min-width: 0; transition: opacity .8s var(--ease); }
.sx-day-m { aspect-ratio: 4 / 5; overflow: hidden; background: #0a0a0a; }
.sx-day-m img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.sx-day:hover .sx-day-m img { transform: scale(1.035); }
.sx-day figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; }
.sx-n { font-size: var(--t-caption); font-weight: 300; line-height: 1.3; letter-spacing: var(--track-micro); font-variant-numeric: tabular-nums; color: var(--hib); }
.sx-day h3 { flex: 1; min-width: 0; font-size: var(--day-card-title-fs); line-height: var(--day-card-title-lh); letter-spacing: calc(var(--track-tight) / 2); }
.sx-day p { flex: none; width: 100%; margin-top: 4px; font-size: var(--card-body-fs); line-height: var(--card-body-lh); color: var(--soft); }

/* ── Everything included (#work): three joined panels. Their rows are shared so that
   each pill and name and list and link lines up across all three. */
.sx-hw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr auto; width: min(100%, 1284px); }
.sx-hc { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; padding: var(--plan-card-pad); border: 1px solid var(--rule); background: #000; transition: background-color .8s var(--ease); }
.sx-hc + .sx-hc { border-left: 0; }
.sx-hc > .sx-pill { grid-row: 1; justify-self: start; margin-bottom: var(--plan-card-pill-gap); }
.sx-hc h3 { grid-row: 3; margin-bottom: var(--plan-card-body-gap); font-size: var(--plan-card-title-fs); line-height: var(--plan-card-title-lh); letter-spacing: var(--track-tight); text-wrap: balance; transition: color .8s var(--ease); }
/* Each card reads pill, eyebrow, title: the eyebrow is a small line of caps over the title. */
.sx-hd { grid-row: 2; min-height: var(--plan-card-eb-lh); margin-bottom: var(--plan-card-eb-gap); font-size: var(--plan-card-eb-fs); font-weight: 300; line-height: var(--plan-card-eb-lh); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--soft); transition: color .8s var(--ease); }
.sx-hc ol { grid-row: 4; align-self: start; display: flex; flex-direction: column; gap: var(--plan-card-list-gap); margin-bottom: 40px; transition: color .8s var(--ease); }
.sx-hc li { display: flex; align-items: baseline; gap: 12px; font-size: var(--plan-card-list-fs); line-height: var(--plan-card-list-lh); letter-spacing: var(--track-label); text-transform: uppercase; }
/* A bullet, not a number: nothing here happens in an order (William, 2026-11-13). */
.sx-hc li::before { content: "\2022"; flex: none; letter-spacing: 0; color: var(--dim); transition: color .8s var(--ease); }
.sx-hc .sx-btn { grid-row: 5; justify-self: start; }

/* ── The globe (the home's #earth), beside the invitation: the place named
   under it. */
.sx-gl { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sx-globe { width: min(520px, 100%); aspect-ratio: 1; }
.sx-gl-cap { margin-top: 6px; font-size: var(--t-lede); font-weight: 300; line-height: 1.7; letter-spacing: var(--track-label); text-transform: uppercase; text-align: center; color: var(--soft); }

/* ── Host (#network): the team card, the portrait on its accent ground. */
.sx-pc { display: flex; min-width: 0; border: 1px solid var(--rule); background: #000; }
.sx-pc i { position: relative; isolation: isolate; flex: none; display: block; width: 208px; min-height: 208px; overflow: hidden; background: #000; }
.sx-pc i img { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.sx-pc i::before {
  content: ""; position: absolute; inset: -14%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 72% 66% at 50% 40%, rgb(var(--retreat-rgb) / .3) 0%, rgb(var(--retreat-rgb) / .2) 42%, rgb(var(--retreat-rgb) / .05) 76%, rgb(var(--retreat-rgb) / 0) 100%);
  animation: rs-glow 22s ease-in-out infinite alternate;
}
.sx-pc > div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px; padding: var(--person-card-pad); }


/* ── The run, the home's (William, 2026-11-11: "the same LLM loading style and
   animations that we have"). A section loads the way an LLM answers: its eyebrow
   switches on letter by letter, its title writes in, the chevron pours into its ring
   and a clock counts beside it while the section thinks, the lead streams in in
   thinking ink under a sheen, and then the content renders in reading order, each
   frame, then its pictures scanning in and its words. Nothing moves. The rules are
   the home's (tools/build-stage.py); the script is at the foot of the page. */
.sx .eb-ch { display: inline-block; white-space: pre; opacity: 0; }
.sx .eb-go .eb-ch { animation: eb-on .08s linear both; }
.sx .eb-now .eb-ch { animation-delay: 0s !important; }
@keyframes eb-on { from { opacity: 0; } to { opacity: 1; } }
.sx .clock { --ck-h: var(--clock-h); --ck-w: var(--clock-w); position: relative; flex: none; display: flex; height: var(--ck-h); margin: 0 0 var(--clock-lift); opacity: 0; }
.sx .clock.on { opacity: 1; }
.sx .clock.done { opacity: .62; }
.sx .ck-bake { position: absolute; left: 0; top: 0; width: 296px; height: 42px; opacity: 0; pointer-events: none; overflow: hidden; }
.sx .ck-d { display: block; flex: none; width: var(--ck-w); height: var(--ck-h); background-repeat: no-repeat; background-size: calc(var(--ck-w) * 12) var(--ck-h); }
.sx .tw { opacity: 0; color: var(--off); transition: opacity .1s linear, color .5s var(--ease); }
.sx .tw.on { opacity: 1; }
.sx .tw.set { color: var(--soft); }
@property --sx-sw { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --shp { syntax: "<number>"; inherits: true; initial-value: 0; }
.sx .think.shim { animation: rs-shim 1.8s linear infinite; }
@keyframes rs-shim { from { --shp: 0; } to { --shp: 1; } }
.sx .think.shim .tw {
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, rgba(239,239,239,0), #EFEFEF 40%, #EFEFEF 60%, rgba(239,239,239,0)), linear-gradient(currentColor, currentColor);
  background-size: 260px 100%, 100% 100%; background-repeat: no-repeat;
  background-position: calc(var(--shp) * (var(--lw, 600px) + 260px) - 260px - var(--ox, 0px)) 0, 0 0;
  -webkit-background-clip: text; background-clip: text;
}
/* Held back until the reveal has taken the hero's pieces over (the page's head
   script and retreat.js), so the finished hero never flashes before it writes in. */
html.sx-pre .sx-lock { visibility: hidden; }
.sx .rf, .sx .at { opacity: 0; transition: opacity .1s linear; }
.sx .rf.on, .sx .at.on { opacity: 1; }
.sx .at.at-now { transition: none; }
.sx .scan-wait { clip-path: inset(0 0 100% 0); }
.sx .scan-wait.scan { animation: rs-scan .42s steps(14) both; }
@keyframes rs-scan { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* One card of a module is lit and the rest sit back, as on the home, at every width.
   A pointer chooses the card; with no pointer, or as the senses scroll past, the card
   nearest the middle of the window is the one (the script at the foot of the page). */
@media all {
  .sx-sc.is-sel, .sx-hc.is-sel { background: #0a0a0a; }
  .sx-sc:not(.is-sel)::before { filter: brightness(.5); }
  .sx-sc:not(.is-sel)::after { opacity: 0; }
  .sx-sc:not(.is-sel) p, .sx-sc:not(.is-sel) .sx-pill,
  .sx-hc:not(.is-sel) h3, .sx-hc:not(.is-sel) .sx-hd, .sx-hc:not(.is-sel) ol, .sx-hc:not(.is-sel) li::before,
  .sx-hc:not(.is-sel) .sx-pill, .sx-hc:not(.is-sel) .sx-btn { color: var(--off); }
  .sx-sc.is-sel p { color: #EFEFEF; }
  .sx-sc:not(.is-sel) .sx-pill::after, .sx-hc:not(.is-sel) .sx-pill::after { opacity: 0; }
  .sx-hc:not(.is-sel) .sx-btn::before { filter: brightness(.4); }
}
@media (hover: hover) and (min-width: 768px) {
  .sx-hc:not(.is-sel) .sx-btn:hover { color: #EFEFEF; }
  .sx-hc:not(.is-sel) .sx-btn:hover::before { filter: brightness(1.8); }
  .sx-days:hover .sx-day:not(:hover) { opacity: .4; }
}

@media (max-width: 1247px) {
  .sx-feat { gap: 56px; }
  .sx-svc { grid-template-columns: minmax(0, 1fr); }
  .sx-svc-l { position: static; max-width: none; }
  .sx-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sx-inv { grid-template-columns: minmax(0, 1fr); }
  .sx-gl { grid-column: 1; grid-row: 2; }
}
@media (max-width: 767px) {
  /* Inside the chrome the words keep 28px from its sides, clear of the rim's curve. */
  .sx-s { gap: var(--sec-gap-p); padding: var(--sec-pad-top-p) var(--sec-pad-x-p) var(--sec-pad-bottom-p); }
  .sx-held { padding-top: var(--sec-pad-held-top-p); padding-bottom: var(--sec-pad-held-bottom-p); }
  .sx-fr { --fr-h: 480px; }
  .sx-eb { font-size: var(--eb-fs-p); }
  .st-3d { width: min(calc(var(--u) * .251px), calc(100vw - 112px)); aspect-ratio: calc(var(--u) * .251) / 31; margin-left: calc(var(--u) * -.012px); }
  .st-fb { font-size: var(--t-title); }
  .sx .clock { --ck-h: var(--clock-h-p); --ck-w: var(--clock-w-p); margin: 0 0 var(--clock-lift-p); }
  .sx-lead { margin-top: calc(var(--lead-gap-p) - var(--sec-gap-p)); font-size: var(--lead-fs-p); line-height: var(--lead-lh-p); }
  .sx-copy { gap: 16px; }
  .sx-copy p, .sx-svc-l .sx-lead, #enquire .sx-lead { font-size: var(--copy-fs-p); line-height: var(--copy-lh-p); }
  .sx-vc { gap: var(--venture-card-gap-p); }
  .sx-vc-t { gap: var(--venture-card-text-gap-p); }
  .sx-vc-n { line-height: var(--card-name-lh-p); letter-spacing: normal; }
  .sx-pc .sx-vc-n { font-size: var(--person-card-name-fs-p); line-height: 1.1; }
  .sx-pc .sx-pill { margin-bottom: var(--person-card-pill-gap-p); }
  .sx-gl-cap { font-size: var(--t-small); line-height: 1.75; letter-spacing: var(--track-head); }

  .sx-hero { --mh: clamp(300px, calc(100svh - 64px - 290px), 358px); padding: 8px 16px 48px; }
  .sx-mark { width: min(358px, 100%); }
  .sx-pill { height: var(--pill-h-p); padding: 0 var(--pill-pad-p); font-size: var(--pill-fs-p); }
  .sx-pill::before, .sx-pill::after { border-width: var(--pill-ring-p); }
  .sx-title { margin-top: 16px; }
  .sx-title-3d { width: min(calc(var(--title-u, 984.64) * .2437px), calc(100vw - 32px)); }
  .sx-title .st-fb { font-size: 20px; }
  .sx-facts { flex-direction: column; gap: 8px; margin-top: 20px; font-size: var(--t-caption); }
  .sx-facts li { padding: 0; border: 0; }
  .sx-lock .sx-btn { margin-top: 28px; }

  .sx-say { gap: 10px; }
  .sx-line { font-size: 28px; line-height: 1.2; }
  .mx.is-matrix svg { font-size: var(--mx-dot-p); }
  .sx-feat { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sx-inv { margin-top: 32px; }
  .sx-feat > .sx-vc, .sx-feat > .sx-pc { position: static; }
  .sx-slab { height: auto; aspect-ratio: 4 / 5; }

  .sx-svc { gap: 32px; }
  /* The sense cards swipe sideways in a row, as the home's services do on a phone, with
     the next card showing at the edge and each one snapping into place; the way in
     sits under the row. The column's parts stand directly in the section's flow so
     the button can follow the cards. */
  .sx-svc { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .sx-svc-l { display: contents; }
  .sx-svc-l .sx-btn { order: 2; align-self: flex-start; margin-top: var(--sec-gap-p); }
  .sx-svc-cs {
    order: 1; flex-direction: row; align-items: stretch; gap: 12px; min-width: 0;
    margin: var(--sec-gap-p) calc(var(--sec-pad-x-p) * -1) 0; padding: 0 var(--sec-pad-x-p);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--sec-pad-x-p);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .sx-svc-cs::-webkit-scrollbar { display: none; }
  .sx-svc-cs > .sx-sc { flex: 0 0 calc(100% - 40px); box-sizing: border-box; scroll-snap-align: start; }
  .sx-sc { padding: var(--list-card-pad-p); gap: var(--list-card-gap-p); }
  .sx-sc p + p { margin-top: -8px; }
  /* One card a row, as the home's venture cards stand on a phone, at the desktop's type. */
  .sx-days { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .sx-day { gap: var(--venture-card-gap-p); }
  .sx-day h3 { font-size: var(--day-card-title-fs-p); }
  .sx-hw { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .sx-hc { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; align-items: flex-start; padding: var(--plan-card-pad-p); }
  .sx-hc > .sx-pill { margin-bottom: var(--plan-card-pill-gap-p); }
  .sx-hc h3 { margin-bottom: var(--plan-card-body-gap-p); font-size: var(--plan-card-title-fs-p); line-height: var(--plan-card-title-lh-p); }
  .sx-hc + .sx-hc { border-left: 1px solid var(--rule); border-top: 0; }
  .sx-hc ol { margin-bottom: 32px; }
  /* What is included, on a phone: the home's switch (its project / partnership), here
     three ways. A chrome capsule with a thumb chooses the card; the three cards share
     one place and cross over on the switch's own number (--sx-sw: 0, 1, 2), so the
     page keeps its length as they change. The thumb is in the accent over the two scent
     cards and plain chrome over scent.tech's, as their pills are. */
  .sx-sw { --sx-sw: 0; position: relative; isolation: isolate; display: flex; box-sizing: border-box; height: var(--switch-h); padding: var(--switch-pad); transition: --sx-sw var(--switch-ms) cubic-bezier(.16, 1, .3, 1); }
  .sx-sw::before { content: ""; position: absolute; inset: 0; z-index: -2; box-sizing: border-box; border-radius: var(--switch-ring); background: rgba(255, 255, 255, .04); border-style: solid; border-width: var(--switch-ring); border-image: var(--ring-sw, var(--ring-bar)) 49% 22.32% stretch; }
  .sx-sw button {
    --on: clamp(0, calc(1 - max(var(--sx-sw) - var(--i), var(--i) - var(--sx-sw))), 1);
    flex: 1; position: relative; z-index: 1; padding: 0; background: none; border: 0;
    font: inherit; font-size: var(--switch-fs); line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent;
    color: color-mix(in srgb, #fff calc(var(--on) * 100%), rgba(239, 239, 239, .5));
  }
  .sx-sw button:nth-of-type(1), .sx-hw.is-sw .sx-hc:nth-child(1) { --i: 0; }
  .sx-sw button:nth-of-type(2), .sx-hw.is-sw .sx-hc:nth-child(2) { --i: 1; }
  .sx-sw button:nth-of-type(3), .sx-hw.is-sw .sx-hc:nth-child(3) { --i: 2; }
  .sx-sw i { position: absolute; z-index: 0; top: var(--switch-pad); bottom: var(--switch-pad); left: calc(var(--switch-pad) + (100% - var(--switch-pad) * 2) / 3 * var(--sx-sw)); width: calc((100% - var(--switch-pad) * 2) / 3); }
  .sx-sw i::before, .sx-sw i::after { content: ""; position: absolute; inset: 0; box-sizing: border-box; border-style: solid; border-width: var(--switch-thumb-ring); }
  .sx-sw i::before { border-image: var(--ring-nb-retreat, var(--ring-btn)) 50% 22.32% stretch; filter: brightness(1.4); opacity: clamp(0, calc(2 - var(--sx-sw)), 1); }
  .sx-sw i::after { border-image: var(--ring-btn) 50% 22.32% stretch; opacity: clamp(0, calc(var(--sx-sw) - 1), 1); }
  /* The box is the height of the card that is showing, and moves to the next one's
     height as they cross (the script sets --sw-h), so a short card leaves no empty
     space under it. The lists drop their numbers here, so more fits on a line. */
  .sx-hw.is-sw { --sx-sw: 0; height: var(--sw-h, auto); transition: --sx-sw var(--switch-ms) cubic-bezier(.16, 1, .3, 1), height var(--switch-ms) cubic-bezier(.16, 1, .3, 1); }
  .sx-hw.is-sw .sx-hc li::before { content: none; }
  .sx-hw.is-sw .sx-hc { grid-area: 1 / 1; align-self: start; border-top: 1px solid var(--rule); opacity: clamp(0, calc(1 - max(var(--sx-sw) - var(--i), var(--i) - var(--sx-sw))), 1); transition: visibility 0s linear var(--switch-ms); }
  .sx-hw.is-sw .sx-hc:not(.is-shown) { visibility: hidden; }
  .sx-hw.is-sw .sx-hc.is-shown { transition: none; }
  .sx .sw-ch.is-off { visibility: hidden; }
  .sx-globe { width: min(360px, 100%); }
  .sx-pc i { width: 132px; min-height: 132px; }
  .sx-pc > div { padding: var(--person-card-pad-p); }
  .sx-pc .sx-go { font-size: var(--t-eyebrow); line-height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-ground::before, .sx-ground::after, .sx-pc i::before { animation: none; }
  .sx-day-m img, .sx-btn::before, .sx-sc::before, .sx-day, .sx-sw, .sx-hw.is-sw { transition: none; }
}
