:root {
  --bg: #F7F5F0;
  --bg-2: #EFECE4;
  --ink: #222222;
  --ink-soft: #55534F;
  --coral: #F36B45;
  --violet: #7255E8;
  --teal: #4BAFA5;
  --accent: #7255E8;
  --display: 'Space Grotesk', 'Space Grotesk Fallback', system-ui, sans-serif;
  --text: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  --col: min(440px, 34vw);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.62; overflow-x: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.wordmark {
  font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: 0.16em;
  color: var(--ink); text-decoration: none; display: inline-flex; gap: 0.5em;
}
.wordmark span { font-weight: 400; color: var(--ink-soft); }
nav { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
nav ol { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-soft);
  text-decoration: none; position: relative; padding: 4px 0;
}
nav a { transition: color 0.3s ease; }
nav a:hover { color: var(--ink); }
/* the current chapter: darker and a touch heavier (a hairline stroke, so the labels never shift) */
nav a[aria-current] { color: var(--ink); -webkit-text-stroke: 0.35px currentColor; }
.progress { position: relative; width: 100%; height: 1.5px; background: var(--ink); opacity: 0.9; }
.progress span {
  position: absolute; left: 0; top: -3px; width: 100%; height: 7px; display: block;
}
.progress span::before {
  content: ''; position: absolute; left: -3.5px; top: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--violet);
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- Stage ---------- */
#stage {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block;
  transition: opacity 0.2s ease;
  --sw: 2.4; --dash: 5 6; --dots: 0.01 5.5;
  --mx: 0px; --my: 0px; --mw: 1px; --mh: 1px; --ma: 1;
  -webkit-mask-image: radial-gradient(var(--mw) var(--mh) at var(--mx) var(--my), rgba(0,0,0,var(--ma)) 0%, rgba(0,0,0,var(--ma)) 62%, #000 100%);
          mask-image: radial-gradient(var(--mw) var(--mh) at var(--mx) var(--my), rgba(0,0,0,var(--ma)) 0%, rgba(0,0,0,var(--ma)) 62%, #000 100%);
}
main { transition: opacity 0.2s ease; }
body.jumping #stage, body.jumping .caps, body.jumping .eyedropper { opacity: 0 !important; }
body.jumping main { opacity: 0; }

.ln { fill: none; stroke: var(--ink); stroke-width: var(--sw); stroke-linecap: round; stroke-linejoin: round; }
.thin { stroke-width: calc(var(--sw) * 0.62); }
.hair { stroke-width: calc(var(--sw) * 0.42); }
.faint { opacity: 0.42; }
.bgfill { fill: var(--bg); }
.bgfill-only { fill: var(--bg); stroke: none; }
.dashed { stroke-dasharray: var(--dash); }
.dashed-static { stroke-dasharray: 0.02 0.03; }
.dots { stroke-dasharray: var(--dots); stroke-width: calc(var(--sw) * 1.15); fill: none !important; }
.face { fill: var(--bg); stroke: var(--ink); stroke-width: var(--sw); stroke-linejoin: round; }
.face-accent { fill: var(--violet); }

.journey { fill: none; stroke: var(--ink); stroke-width: var(--sw); stroke-linecap: round; stroke-linejoin: round; }
.dot { transition: fill 0.5s ease; }
.pulse { fill: none; stroke-width: calc(var(--sw) * 0.6); }

/* draw-in on load (opening) and scroll-scrubbed draws (everything else) */
.draw, .sd { stroke-dasharray: 1 2; }
.draw { stroke-dashoffset: 0; }
.sd { stroke-dashoffset: 1.02; opacity: 0; }
body.intro .draw { animation: draw 1.5s cubic-bezier(.65,0,.25,1) both; animation-delay: var(--d, 0s); }
@keyframes draw { from { stroke-dashoffset: 1.03; } to { stroke-dashoffset: 0; } }
.dashed-static.draw { stroke-dasharray: 0.02 0.03; animation: none; }

/* opening details */
.leaf { fill: var(--teal); opacity: 0; }
.lamp { fill: var(--bg); transition: fill 0.4s ease; }
.cone { fill: none; stroke: var(--ink); stroke-width: calc(var(--sw) * 0.4); stroke-dasharray: var(--dash); opacity: 0; }
.beacon { fill: var(--coral); opacity: 0; }

/* capture details */
.rotor-blur { fill: none; stroke: var(--ink); stroke-width: calc(var(--sw) * 0.35); stroke-dasharray: var(--dash); opacity: 0; }
.lens { fill: var(--coral); opacity: 0; }
.lens--cam { fill: var(--teal); }
.reticle polyline { stroke-width: calc(var(--sw) * 1.4); transition: stroke 0.25s ease; }
.reticle.locked polyline { stroke: var(--coral); }
.ghost { opacity: 0; }
.vid, .vid .ln { stroke: color-mix(in srgb, var(--teal) var(--vc, 0%), var(--ink)); }
.river { stroke: var(--teal); }
.scanplane { fill: var(--teal); fill-opacity: 0.08; stroke: var(--teal); stroke-width: var(--sw); }
.hotspot { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.8); opacity: 0; }
.hotspot-core { fill: var(--teal); opacity: 0; }
.bracket { stroke-width: calc(var(--sw) * 1.1); transition: stroke 0.25s ease; }
.bracket.captured { stroke: var(--coral); }
.flash { fill: #fff; opacity: 0; pointer-events: none; }
.flash.on { animation: flash 0.55s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 0.95; } 100% { opacity: 0; } }
.sun { fill: var(--coral); stroke: var(--ink); stroke-width: calc(var(--sw) * 0.62); }
.timecode { font-family: var(--display); fill: var(--ink-soft); letter-spacing: 0.04em; }
.rec { fill: var(--coral); }
.print { stroke-width: calc(var(--sw) * 0.5); }

/* create details */
.accent-stroke { stroke: var(--accent); }
.accent-fill { fill: var(--accent); }
.tri { fill: var(--bg); }
.ball { fill: var(--bg); }

/* ---------- Copy ---------- */
main { position: relative; z-index: 2; pointer-events: none; }
main a, main button { pointer-events: auto; }
.beat { height: var(--h, 80vh); position: relative; }
.beat--tail { display: flex; align-items: flex-end; padding: 0 var(--gutter) 5vh; }

/* Chapter rails: copy held in a clear reading zone left of the world.
   The camera keeps illustration to the right; a soft halo in the page
   colour keeps the line from ever running through the words. */
.rail { position: fixed; inset: 0; z-index: 2; opacity: 0; pointer-events: none; }
.rail:not(.is-on) a { pointer-events: none; }
.rail-inner {
  position: absolute; left: var(--gutter); top: 52%; transform: translateY(-50%);
  width: var(--col); isolation: isolate;
  text-shadow: 0 0 10px var(--bg), 0 0 3px var(--bg);
}
.slot { display: grid; margin-top: 30px; }
.slot > * { grid-area: 1 / 1; opacity: 0; will-change: opacity, transform; }
.slot p { margin: 0 0 1em; font-size: 18px; line-height: 1.62; color: var(--ink); max-width: 31em; }
.rail--opening .rail-inner { top: max(12vh, 84px); transform: none; width: min(780px, 60vw); }
.rail--opening .slot { max-width: 450px; margin-top: 8px; }
.rail--opening .slot p { color: var(--ink-soft); }
.slot .lede { font-size: 21px; line-height: 1.45; color: var(--ink-soft); }

h1 {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02;
  font-size: clamp(40px, min(5.6vw, 9vh), 88px); margin: 0 0 0.42em; max-width: 16ch;
}
.focus-word { position: relative; white-space: nowrap; display: inline-block; padding: 0 0.08em; }
.focus-word::before, .focus-word::after {
  content: ''; position: absolute; width: 0.28em; height: 0.28em; border: 2px solid var(--coral);
  opacity: 0; transition: all 0.9s cubic-bezier(.2,.8,.2,1) 1.6s;
}
.focus-word::before { left: -0.25em; top: 0.02em; border-right: 0; border-bottom: 0; transform: translate(-0.3em, -0.3em); }
.focus-word::after { right: -0.25em; bottom: -0.06em; border-left: 0; border-top: 0; transform: translate(0.3em, 0.3em); }
body.ready .focus-word::before, body.ready .focus-word::after { opacity: 1; transform: none; }

h1 .w { display: inline-block; }
body.intro h1 .w { animation: wordIn 1.1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(0.25s + var(--i) * 0.07s); }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.45em) rotate(2deg); } to { opacity: 1; transform: none; } }
.eyebrow span { line-height: 1; }

/* ---------- Opening logo (official artwork, as two thin 3D letterforms) ---------- */
.hero-logo {
  position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none; visibility: hidden;
  width: 300px; height: 130px; --split: 52.7%;
}
.hl-stage { position: absolute; inset: 0; perspective: 760px; perspective-origin: 50% 45%; }
.hl-rig { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%; will-change: transform; }
.hl-letter { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
/* a narrow coral glint that crosses the faces during the turn only */
.hl-glint {
  background: linear-gradient(104deg, transparent calc(var(--g, -30%) - 9%), color-mix(in srgb, var(--coral) 85%, transparent) var(--g, -30%), transparent calc(var(--g, -30%) + 9%));
  opacity: 0;
}
.hl-x { right: auto; width: var(--split); transform-origin: 50% 50%; }
.hl-d { left: var(--split); transform-origin: 50% 50%; }
.hl-layer {
  position: absolute; inset: 0; transform-origin: inherit;
  -webkit-mask: url("../img/xd-logo.png") center / 100% 100% no-repeat;
          mask: url("../img/xd-logo.png") center / 100% 100% no-repeat;
}
/* each letter's layers cover only its own half of the artwork */
.hl-x .hl-layer { -webkit-mask-size: calc(100% / 0.527) 100%; mask-size: calc(100% / 0.527) 100%; -webkit-mask-position: left center; mask-position: left center; }
.hl-d .hl-layer { -webkit-mask-size: calc(100% / 0.473) 100%; mask-size: calc(100% / 0.473) 100%; -webkit-mask-position: right center; mask-position: right center; }
.hl-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hl-front { background: var(--front, var(--ink)); }
.hl-back { background: var(--back, var(--teal)); }
.hl-slice { background: var(--edge, #111); }
.hl-base {
  position: fixed; left: 0; top: 0; width: 100px; height: 1.5px; background: var(--ink);
  transform-origin: 0 50%; pointer-events: none;
}
/* the mark's outline, traced from the artwork: draws the logo on load and
   becomes the charcoal line as the mark expands */
.hero-logo-line {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; visibility: hidden; overflow: visible;
  --mx: 0px; --my: 0px; --mw: 1px; --mh: 1px; --ma: 1;
  /* like the illustration, the expanding outline gives way around the copy */
  -webkit-mask-image: radial-gradient(var(--mw) var(--mh) at var(--mx) var(--my), rgba(0,0,0,var(--ma)) 0%, rgba(0,0,0,var(--ma)) 62%, #000 100%);
          mask-image: radial-gradient(var(--mw) var(--mh) at var(--mx) var(--my), rgba(0,0,0,var(--ma)) 0%, rgba(0,0,0,var(--ma)) 62%, #000 100%);
}
.hero-logo-line path {
  fill: none; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke;
  stroke-linejoin: round; stroke-linecap: round;
}

/* ---------- Large chapter titles (part of the world: the line passes behind) ---------- */
.mega {
  position: fixed; left: var(--gutter); top: 30vh; z-index: 1; pointer-events: none; visibility: hidden;
  font-family: var(--display); font-weight: 500; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(72px, min(14.5vw, 28vh), 260px); line-height: 1; letter-spacing: -0.035em;
  color: rgba(34, 34, 34, var(--fill, 0)); -webkit-text-stroke: max(1.5px, 0.006em) var(--ink);
  transform-origin: 0 0; will-change: transform;
}
.mega .word { display: inline-block; position: relative; }
.mega .ltr { display: inline-block; transform-origin: 50% 100%; will-change: transform, opacity; }
.mega i {
  display: inline-block; width: 0.3em; height: 0.3em; margin-right: 0.3em; vertical-align: 0.28em;
  border-radius: 50%; background: var(--c); transform: scale(calc(0.3 + 0.7 * var(--fill, 0)));
}

h2 {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02;
  font-size: clamp(38px, min(4.6vw, 8vh), 72px); margin: 0; max-width: 13ch;
}
.reveal-head { overflow: hidden; padding-bottom: 0.1em; }
.reveal-head > span {
  display: block; opacity: var(--in, 1);
  transform: translateY(calc((1 - var(--in, 1)) * 0.7em));
}
.eyebrow {
  font-family: var(--display); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--ink);
  opacity: var(--in, 1);
}
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; }

/* key phrases light up as the illustration shows them */
.hl {
  background-image: linear-gradient(var(--hl, var(--accent)), var(--hl, var(--accent)));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 0% 2px;
  transition: background-size 0.6s cubic-bezier(.3,.7,.2,1);
}
.hl.is-on { background-size: 100% 2px; }
#capture .hl { --hl: var(--coral); }

.chapter-list {
  font-family: var(--display); font-size: 12px !important; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft) !important; margin-top: 1.6em !important;
}
.chapter-list a {
  color: inherit; text-decoration: none; padding: 6px 0; white-space: nowrap;   /* padding = a comfier tap target, no layout change; labels never split */
  background: linear-gradient(var(--violet), var(--violet)) no-repeat 0 calc(100% - 3px) / 0% 1px;
  transition: color 0.3s ease, background-size 0.35s cubic-bezier(.2,.75,.2,1);
}
.chapter-list a:hover { color: var(--violet); background-size: calc(100% - 0.2em) 1px; }   /* stops at the last letter, not its tracking */
.chapter-list a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .chapter-list a { transition: color 0.2s linear; } }
/* only clickable while the line is actually showing */
.slot > div:not(.is-on) .chapter-list a { pointer-events: none; }
.proto-note { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 6vh; width: 1.5px; height: 44px; background: var(--ink);
  transform-origin: top; animation: cue 2.4s ease-in-out infinite 2s; opacity: 0.7;
}
@keyframes cue { 0%,100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }

/* ---------- Capability labels pinned to the world ---------- */
.caps { list-style: none; margin: 0; padding: 0; }
.cap {
  position: fixed; left: 0; top: 0; z-index: 3; opacity: 0; visibility: hidden; pointer-events: none;
  font-family: var(--display); font-weight: 600; color: var(--ink);
  font-size: clamp(22px, 2.3vw, 34px); line-height: 1.08; letter-spacing: -0.015em;
  width: max-content; max-width: 8.6em;
  text-shadow: 0 0 14px var(--bg), 0 0 6px var(--bg), 0 0 2px var(--bg);
  --o: 1;
}
.cap > span { display: block; transform: translateY(calc((1 - var(--o)) * 0.4em)); }
/* leader: a short line from the illustration to the heading, with a dot on the anchor */
.cap::before, .cap::after { content: ''; position: absolute; background: var(--ink); }
.cap::before { width: 37px; height: 1.5px; transform-origin: 0 50%; }
.cap::after { width: 6px; height: 6px; border-radius: 50%; transform: scale(var(--o)); }
.cap--ne { translate: 30px calc(-100% - 22px); }
.cap--ne::before { left: -30px; bottom: -22px; transform: rotate(-36deg) scaleX(var(--o)); }
.cap--ne::after { left: -33px; bottom: -25px; }
.cap--se { translate: 30px 22px; }
.cap--se::before { left: -30px; top: -22px; transform: rotate(36deg) scaleX(var(--o)); }
.cap--se::after { left: -33px; top: -25px; }
.cap--nw { translate: calc(-100% - 30px) calc(-100% - 22px); text-align: right; }
.cap--nw::before { right: -30px; bottom: -22px; transform-origin: 100% 50%; transform: rotate(36deg) scaleX(var(--o)); }
.cap--nw::after { right: -33px; bottom: -25px; }
.cap--sw { translate: calc(-100% - 30px) 22px; text-align: right; }
.cap--sw::before { right: -30px; top: -22px; transform-origin: 100% 50%; transform: rotate(-36deg) scaleX(var(--o)); }
.cap--sw::after { right: -33px; top: -25px; }

/* ---------- Interact ---------- */
.beyond-title {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04;
  font-size: clamp(32px, min(3.6vw, 6.4vh), 54px); margin: 0; max-width: 12ch;
}
.scr-sun { stroke: var(--ink); stroke-width: calc(var(--sw) * 0.5); }
.scr-bar { stroke: var(--teal); stroke-width: calc(var(--sw) * 0.9); stroke-linecap: round; }
.icon-violet { fill: var(--violet); }
.icon-coral { fill: var(--coral); }
.icon-teal-stroke { stroke: var(--teal); }
.ov-zone { fill: color-mix(in srgb, var(--teal) 7%, transparent); stroke: var(--teal); stroke-width: calc(var(--sw) * 1.4); stroke-dasharray: 10 8; }
.ov-link { stroke: var(--teal); stroke-width: calc(var(--sw) * 1.1); stroke-dasharray: 3 9; stroke-linecap: round; }
.ov-node { fill: var(--bg); stroke: var(--teal); stroke-width: calc(var(--sw) * 1.4); }
.ov-route { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 1.6); stroke-dasharray: 1 2; stroke-linecap: round; stroke-linejoin: round; }
.ov-exit { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 1.6); stroke-linecap: round; stroke-linejoin: round; }
.ov-zone, .ov-link, .ov-node, .ov-route, .ov-exit { opacity: 0; }
.info-panel { opacity: 0; }

.hotspots { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.hotspot-btn {
  position: absolute; left: -19px; top: -19px; width: 38px; height: 38px; border-radius: 50%; padding: 0;
  border: 1.5px solid var(--ink); background: var(--bg); color: var(--ink); cursor: pointer;
  pointer-events: auto; visibility: hidden; opacity: 0; display: grid; place-items: center;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.3s ease;
}
.hotspot-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hotspot-btn svg circle { fill: currentColor; stroke: none; }
.hotspot-btn .ic-pause { display: none; }
.hotspot-btn[aria-pressed="true"] .ic-play { display: none; }
.hotspot-btn[aria-pressed="true"] .ic-pause { display: block; }
.hotspot-btn:hover, .hotspot-btn:focus-visible, .hotspot-btn.is-active { background: var(--ink); color: var(--bg); }
.hotspot-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.hotspot-btn::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--teal);
  opacity: 0; pointer-events: none; animation: hsIdle 2.8s ease-out infinite;
}
/* every hotspot carries a quiet teal ring; it quickens as the dot arrives */
@keyframes hsIdle { 0% { opacity: 0.55; transform: scale(0.92); } 70%, 100% { opacity: 0; transform: scale(1.45); } }
.hotspot-btn.is-near::before { animation: hsPulse 1.6s ease-out infinite; }
@keyframes hsPulse { 0% { opacity: 0.95; transform: scale(0.88); } 100% { opacity: 0; transform: scale(1.6); } }
.hotspot-btn { box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; }
.hotspot-btn svg { transition: transform 0.18s ease; }
.hotspot-btn:hover, .hotspot-btn:focus-visible { box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 45%, transparent); }
.hotspot-btn:hover svg, .hotspot-btn:focus-visible svg { transform: scale(1.12); }
.hotspot-btn:active svg { transform: scale(0.88); }
.hotspot-btn.is-active { box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 55%, transparent); }
.hotspot-btn::after {
  content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%);
  font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: 0.04em; white-space: nowrap; color: var(--ink);
  text-shadow: 0 0 8px var(--bg), 0 0 3px var(--bg); opacity: 0; transition: opacity 0.2s ease; pointer-events: none;
}
.hotspot-btn:hover::after, .hotspot-btn:focus-visible::after, .hotspot-btn.is-near::after { opacity: 1; }
.hotspot-btn.spun svg { animation: hsSpin 0.6s ease; }
@keyframes hsSpin { from { transform: rotate(-180deg); } to { transform: none; } }
.hotspot-btn--sm { width: 30px; height: 30px; left: -15px; top: -15px; }
.hotspot-btn--sm svg { width: 16px; height: 16px; }
.hotspot-btn--sm::after { font-size: 11px; top: calc(100% + 7px); }
.hotspot-btn--sm[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.hotspot-btn svg rect { fill: none; }
@media (hover: none) {
  .hotspot-btn { width: 44px; height: 44px; left: -22px; top: -22px; }
  .hotspot-btn--sm { width: 38px; height: 38px; left: -19px; top: -19px; }
}
/* documents & media opened from the environment */
.doc-pop { display: none; }
.plan-screen { stroke: var(--teal); stroke-width: calc(var(--sw) * 1.4); stroke-linecap: round; }
.plan-route { stroke: var(--coral); stroke-width: calc(var(--sw) * 0.8); stroke-dasharray: var(--dash); }
.you-dot { fill: var(--teal); }
.you-ring { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.6); }
.vid-bar { stroke: var(--coral); stroke-width: calc(var(--sw) * 0.9); stroke-linecap: round; }
.doc-title { fill: var(--ink); opacity: 0.85; }
.doc-zone { fill: color-mix(in srgb, var(--teal) 18%, transparent); stroke: var(--teal); stroke-width: calc(var(--sw) * 0.6); }
.icon-teal { fill: var(--teal); }
.pv-stroke { stroke-width: calc(var(--sw) * 2.2); }
.pv { display: none; }
.share-doc { opacity: 0; }
.share-sheet { fill: var(--bg); stroke: var(--teal); stroke-width: calc(var(--sw) * 2); }
.share-line { stroke: var(--teal); stroke-width: calc(var(--sw) * 1.4); stroke-linecap: round; }
.share-lock { fill: var(--teal); }
.share-lock-arc { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 1.6); }
.share-tick { fill: none; stroke: var(--bg); stroke-width: calc(var(--sw) * 1.8); stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .hotspot-btn::before, .hotspot-btn.is-near::before, .hotspots.is-inviting .hotspot-btn::before, .hotspot-btn.spun svg, .hs-invite { animation: none; }
  .hotspot-btn::before { opacity: 0.6; transform: none; }
  .hotspot-btn { transition: none; }
}

/* the invitation beside the first interactive point: a teal label that opens it, and a little cursor tapping the icon */
.hs-invite {
  position: absolute; left: 0; top: 0; margin: 0; pointer-events: auto; cursor: pointer; visibility: hidden; opacity: 0;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; color: #fff;
  padding: 8px 14px 8px 11px; border-radius: 999px; background: var(--teal);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--teal) 35%, transparent);
  translate: 34px -50%; animation: inviteNudge 2.4s ease-in-out infinite;
}
.hs-invite:hover { background: color-mix(in srgb, var(--teal) 82%, var(--ink)); }
/* a small arrow pointing back at the icon */
.hs-invite i { position: relative; width: 14px; height: 2px; background: #fff; border-radius: 1px; flex: none; }
.hs-invite i::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-50%) rotate(45deg);
}
.hs-invite-tap { display: none; }
.hs-cursor {
  position: absolute; left: -34px; top: 50%; width: 26px; height: 26px; pointer-events: none;
  animation: cursorTap 3s ease-in-out infinite; transform-origin: 4px 3px;
}
.hs-cursor svg { display: block; width: 100%; height: 100%; fill: var(--bg); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
@keyframes cursorTap {
  0% { opacity: 0; transform: translate(26px, 24px); }
  15% { opacity: 1; }
  38% { transform: translate(2px, 2px) scale(1); }
  44% { transform: translate(2px, 2px) scale(0.82); }
  52% { transform: translate(2px, 2px) scale(1); }
  72% { opacity: 1; transform: translate(2px, 2px); }
  90%, 100% { opacity: 0; transform: translate(26px, 24px); }
}
/* until the visitor tries one, every interactive point is filled teal and pulses strongly */
.hotspots.is-inviting .hotspot-btn { background: var(--teal); border-color: var(--teal); color: #fff; }
.hotspots.is-inviting .hotspot-btn:hover, .hotspots.is-inviting .hotspot-btn:focus-visible { background: var(--ink); border-color: var(--ink); }
.hotspots.is-inviting .hotspot-btn::before { border-width: 2px; animation: hsPulse 1.6s ease-out infinite; }
@keyframes inviteNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
@media (prefers-reduced-motion: reduce) {
  .hs-cursor { animation: none; transform: translate(2px, 2px); }
}

/* controls on the platform and in Beyond: grouped and labelled */
.hs-tabs .hotspot-btn--sm { width: 34px; height: 34px; left: -17px; top: -17px; }
.hs-tabs .hotspot-btn--sm svg { width: 17px; height: 17px; }
.hs-tabs .hotspot-btn::after, .hotspot-btn[data-hotspot="share"]::after { opacity: 1; }
.hs-tabs .hotspot-btn[aria-pressed="true"]::after { font-weight: 600; }
.hotspot-btn[data-hotspot="share"] { background: color-mix(in srgb, var(--teal) 14%, var(--bg)); }
.hotspot-btn[data-hotspot="share"]:hover, .hotspot-btn[data-hotspot="share"]:focus-visible { background: var(--ink); }

/* the asset a control belongs to lights up while the control is hovered or focused */
.is-hl, .is-hl .ln, .is-hl.ln, .is-hl polygon, .is-hl rect, .is-hl path { stroke: var(--teal) !important; transition: stroke 0.2s ease; }
.face.is-hl { stroke: var(--teal) !important; }

@media (hover: none) {
  .hotspot-btn::after { opacity: 1; }
  .hs-invite-click { display: none; }
  .hs-invite-tap { display: inline; }
}

/* ---------- Eyedropper ---------- */
.eyedropper { position: fixed; inset: 0; z-index: 4; pointer-events: none; visibility: hidden; opacity: 0; }
.eyedropper button {
  position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--sw-colour); padding: 0; pointer-events: auto;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cg fill='none' stroke='%23222' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.5 3.5a2.6 2.6 0 0 1 3.7 3.7l-2.4 2.4 1 1-1.6 1.6-5-5 1.6-1.6 1 1z' fill='%23F7F5F0'/%3E%3Cpath d='M13.2 7.8 5 16v3.5L2.6 23.4l0 0M5 19.5h3.5l8.2-8.2'/%3E%3C/g%3E%3C/svg%3E") 3 23, crosshair;
  transition: box-shadow 0.25s ease;
}
.eyedropper button::after {
  content: attr(data-hex); position: absolute; left: 30px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 11px; letter-spacing: 0.1em; color: var(--ink);
  background: var(--bg); border: 1px solid var(--ink); padding: 3px 7px; white-space: nowrap;
  opacity: 0; transition: opacity 0.2s ease; pointer-events: none;
}
.eyedropper button:hover::after, .eyedropper button:focus-visible::after, .eyedropper button.picked::after { opacity: 1; }
.eyedropper button.picked::after { animation: hexfade 1.6s ease forwards; }
@keyframes hexfade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.eyedropper button[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5.5px var(--ink); }
.eyedropper button:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
@media (hover: none) {
  .eyedropper button { width: 30px; height: 30px; left: -15px; top: -15px; }
}
/* palette: an expanding ring in each swatch's own colour until a colour is chosen */
.eyedropper button { transition: box-shadow 0.25s ease, width 0.2s ease, height 0.2s ease, left 0.2s ease, top 0.2s ease; }
.eyedropper button::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--sw-colour);
  opacity: 0; pointer-events: none; animation: swPulse 2.4s ease-out infinite; animation-delay: calc(var(--i, 0) * 0.25s);
}
@keyframes swPulse { 0% { opacity: 0.85; transform: scale(0.85); } 75%, 100% { opacity: 0; transform: scale(1.7); } }
.eyedropper.chosen button::before { animation: none; opacity: 0; }
.eyedropper button:hover, .eyedropper button:focus-visible { width: 28px; height: 28px; left: -14px; top: -14px; }
.eyedropper button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink), 0 0 0 9px color-mix(in srgb, var(--sw-colour) 28%, transparent); }
.sw-label {
  position: absolute; left: 0; top: 0; margin: 0; pointer-events: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 500; font-size: 12.5px; letter-spacing: 0.02em; color: var(--ink);
  padding: 5px 11px; border: 1px solid var(--ink); border-radius: 999px; background: var(--bg);
  translate: -30% calc(-100% - 24px); transition: opacity 0.4s ease;
}
.sw-label::after { content: ''; position: absolute; left: 30%; bottom: -12px; width: 1px; height: 12px; background: var(--ink); }
.eyedropper.chosen .sw-label { opacity: 0.5; }
@media (hover: none) { .eyedropper button:hover { width: 30px; height: 30px; left: -15px; top: -15px; } }
@media (prefers-reduced-motion: reduce) {
  .eyedropper button::before { animation: none; opacity: 0.7; transform: scale(1.2); }
  .eyedropper.chosen button::before { opacity: 0; }
  .eyedropper button { transition: none; }
}

@media (min-width: 761px) and (max-height: 760px) {
  .slot p { font-size: 16.5px; line-height: 1.55; }
  .slot .lede { font-size: 19px; }
  .slot { margin-top: 20px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  :root { --col: auto; }
  body { font-size: 16px; }
  .site-header { padding: 14px 18px; }
  nav ol { gap: 10px; }
  nav a { font-size: 11.5px; letter-spacing: 0.02em; }
  .wordmark span { display: none; }

  /* chapters: world on top, copy in a calm panel at the bottom */
  .rail-inner {
    left: 0; right: 0; top: auto; bottom: 0; transform: none;
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  }
  .rail--opening .rail-inner { top: 84px; bottom: auto; width: auto; padding: 0 20px; }
  h1 { font-size: clamp(38px, 11vw, 54px); }
  h2 { font-size: clamp(30px, 8.6vw, 40px); max-width: none; }
  .eyebrow { font-size: 11.5px; margin-bottom: 10px; }
  .slot { margin-top: 14px; }
  .slot p { font-size: 15.5px; line-height: 1.55; }
  .slot .lede { font-size: 17px; }
  .rail--opening .slot p { font-size: 16px; }
  .cap { font-size: clamp(19px, 5.4vw, 24px); }
  .mega { font-size: 16vw; top: 24vh; -webkit-text-stroke-width: 1.2px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .slot p { font-size: 14.5px; }
  h2 { font-size: 28px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #stage { transition: none; }
  .scroll-cue { animation: none; transform: none; }
  .focus-word::before, .focus-word::after { transition: none; }
  .dot { transition: none; }
}
.ov-node.is-hl { fill: color-mix(in srgb, var(--teal) 35%, var(--bg)); }

/* ---------- Interact · platform toolbar & secure sharing ---------- */
.pv-toolbar {
  position: fixed; left: 0; top: 0; z-index: 4; visibility: hidden; opacity: 0;
  display: flex; align-items: center; gap: 12px; pointer-events: auto;
}
.pv-tabs {
  display: flex; gap: 2px; padding: 3px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 16%, transparent);
}
.pv-tab, .pv-share {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.pv-tab svg, .pv-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform 0.18s ease; }
.pv-tab:hover { background: color-mix(in srgb, var(--teal) 14%, var(--bg)); }
.pv-tab[aria-pressed="true"] { background: var(--teal); color: var(--ink); font-weight: 600; }
.pv-tab:focus-visible, .pv-share:focus-visible, .perm-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.pv-tab:active svg, .pv-share:active svg { transform: scale(0.88); }

.pv-share {
  position: relative; height: 44px; padding: 0 18px 0 14px; color: var(--bg); background: var(--violet);
  border: 1.5px solid var(--ink); font-weight: 600;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 22%, transparent);
}
.pv-share:hover { background: color-mix(in srgb, var(--violet) 85%, #000); box-shadow: 0 0 0 5px color-mix(in srgb, var(--violet) 30%, transparent); }
.pv-share[aria-pressed="true"] { background: var(--bg); color: var(--ink); }
.pv-share[aria-pressed="true"] svg { stroke: var(--violet); }
.pv-share::before { content: ''; position: absolute; inset: -6px; border-radius: 999px; border: 1.5px solid var(--violet); opacity: 0; pointer-events: none; }
.pv-share.is-near::before { animation: hsPulse 1.8s ease-out infinite; }
.pv-share.sent svg { animation: hsSpin 0.5s ease; }

.perm-layer { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.perm-btn {
  position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; padding: 0; cursor: pointer;
  visibility: hidden; pointer-events: auto; display: grid; place-items: center;
  border: 1.5px solid var(--ink); background: var(--bg); color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.perm-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s ease; }
.perm-btn .arc { transition: transform 0.25s ease; transform-origin: 16px 11px; }
.perm-btn[aria-pressed="true"] .arc { transform: translateX(3px) rotate(18deg); }   /* open lock: access allowed */
.perm-btn[aria-pressed="false"] { color: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 22%, transparent); }
.perm-btn:hover svg, .perm-btn:focus-visible svg { transform: scale(1.12); }
.perm-btn:active svg { transform: scale(0.88); }

.sec-link { stroke: var(--violet); stroke-width: calc(var(--sw) * 2); stroke-linecap: round; }
.sec-link.blocked { stroke: var(--coral); stroke-dasharray: 2 10; }
.sec-sheet { fill: var(--bg); stroke: var(--violet); stroke-width: calc(var(--sw) * 2); }
.sec-line { stroke: var(--violet); stroke-width: calc(var(--sw) * 1.4); stroke-linecap: round; }
.sec-block-ring { fill: var(--bg); stroke: var(--coral); stroke-width: calc(var(--sw) * 1.8); }
.sec-block-lock { fill: var(--coral); }
.sec-block-arc { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 1.6); }
.sec-source-ring { fill: var(--violet); stroke: var(--ink); stroke-width: calc(var(--sw) * 1.4); }
.sec-source-lock { fill: var(--bg); }
.sec-source-arc { fill: none; stroke: var(--bg); stroke-width: calc(var(--sw) * 1.8); }
.sec-doc, .sec-block { opacity: 0; }
.ov-node.restricted { stroke: var(--coral); }
.secure { opacity: 0; }

@media (max-width: 760px) {
  .pv-toolbar { gap: 8px; }
  .pv-tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pv-tab { padding: 0 11px; height: 40px; }
  .pv-share { height: 42px; padding: 0 14px 0 12px; font-size: 13px; }
}
@media (hover: none) { .perm-btn { width: 40px; height: 40px; left: -20px; top: -20px; } }
@media (prefers-reduced-motion: reduce) { .pv-share.is-near::before, .pv-share.sent svg { animation: none; } }
@media (max-width: 760px) {
  .sw-label { translate: calc(-100% - 22px) -50%; font-size: 12px; }
  .sw-label::after { left: auto; right: -14px; bottom: auto; top: 50%; width: 14px; height: 1px; }
}

/* ---------- AI & Innovation ---------- */
.mega--long { font-size: clamp(56px, min(8.6vw, 19vh), 170px); }
.nav-short { display: none; }
/* AI & Innovation: one space, transformed */
.ai-floor { fill: color-mix(in srgb, var(--ink) 4%, var(--bg)); stroke: none; opacity: 0; }
.ai-wall { fill: color-mix(in srgb, var(--ink) 2.5%, var(--bg)); stroke: none; opacity: 0; }
.ai-grid { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.3); stroke-opacity: 0.45; opacity: 0; }
.ai-edge { fill: none; stroke: color-mix(in srgb, var(--ink) 55%, var(--bg)); stroke-width: calc(var(--sw) * 0.5); stroke-linecap: round; stroke-linejoin: round; }
.ai-room .ai-edge { transition: stroke 0.6s; }
.ai-room.is-working .ai-edge { stroke: color-mix(in srgb, var(--teal) 70%, var(--ink)); }
.fig { stroke-width: calc(var(--sw) * 0.72); }
.ai-rlink { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.5); stroke-dasharray: 2 3; opacity: 0; }
.ai-relay.is-ai { stroke: var(--teal); }
.ai-projline.is-ai { stroke: var(--teal); stroke-dasharray: 4 3; }
.ai-collab { fill: none; stroke-width: calc(var(--sw) * 0.5); stroke-dasharray: 3 4; opacity: 0; }
.ai-collab--h { stroke: var(--coral); }
.ai-collab--r { stroke: var(--teal); }
.ai-spark { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.6); opacity: 0; }
.ai-face { fill: var(--bg); stroke: var(--ink); stroke-width: calc(var(--sw) * 0.85); stroke-linejoin: round; }
.ai-face1 { fill: color-mix(in srgb, var(--ink) 4%, var(--bg)); }
.ai-face2 { fill: color-mix(in srgb, var(--ink) 13%, var(--bg)); }
.ai-glow { fill: color-mix(in srgb, var(--violet) 18%, var(--bg)); stroke: var(--violet); stroke-width: calc(var(--sw) * 0.55); opacity: 0; }
.ai-det { fill: none; stroke: var(--ink); stroke-width: calc(var(--sw) * 0.6); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; opacity: 0; }
.ai-det--acc { stroke: color-mix(in srgb, var(--ink) 55%, var(--bg)); }
.ai-det--acc.is-boost { stroke: var(--violet); stroke-width: calc(var(--sw) * 0.55); }
.ai-wire { fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.ai-wire--draw { stroke: var(--teal); stroke-width: calc(var(--sw) * 0.6); stroke-dasharray: 1 2; }
.ai-wire--dash { stroke: var(--violet); stroke-width: calc(var(--sw) * 0.5); stroke-dasharray: 3 3; }
.ai-plane { fill: color-mix(in srgb, var(--violet) 7%, transparent); stroke: var(--violet); stroke-width: calc(var(--sw) * 0.55); opacity: 0; }
.ai-plane.is-teal { fill: color-mix(in srgb, var(--teal) 8%, transparent); stroke: var(--teal); }
.ai-ghost { fill: none; stroke-width: calc(var(--sw) * 0.4); stroke-dasharray: 2 3; opacity: 0; }
.ai-ghost--t { stroke: var(--teal); }
.ai-ghost--v { stroke: var(--violet); }
.ai-id { fill: var(--bg); stroke: var(--teal); stroke-width: calc(var(--sw) * 0.6); opacity: 0; }
.ai-id-lead { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.4); opacity: 0; }
.ai-id-tag { fill: var(--teal); opacity: 0; }
.ai-ping { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.4); opacity: 0; }
.ai-foot { fill: color-mix(in srgb, var(--teal) 10%, transparent); stroke: var(--teal); stroke-width: calc(var(--sw) * 0.45); opacity: 0; }
.ai-clear { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.35); stroke-dasharray: 2 3; opacity: 0; }
.ai-sketch { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 0.55); stroke-dasharray: 1 2; stroke-dashoffset: 1.02; opacity: 0; }
.ai-confirm { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.6); opacity: 0; }
.ai-touch { fill: color-mix(in srgb, var(--coral) 25%, var(--bg)); stroke: var(--coral); stroke-width: calc(var(--sw) * 0.5); opacity: 0; }
.ai-relay { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 0.5); stroke-dasharray: 3 4; opacity: 0; }
.ai-rbuild { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.62); stroke-dasharray: 1 2; stroke-dashoffset: 1.02; opacity: 0; }
.ai-robot .bgfill { fill: var(--bg); }
.ai-rcore { fill: color-mix(in srgb, var(--teal) 35%, var(--bg)); stroke: var(--teal); stroke-width: calc(var(--sw) * 0.4); opacity: 0; }
.ai-reye { fill: var(--teal); opacity: 0; }
.ai-rlamp { fill: var(--violet); opacity: 0; }
.ai-beam { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.5); stroke-dasharray: 2 3; opacity: 0; }
.ai-ana { fill: color-mix(in srgb, var(--teal) 22%, transparent); stroke: var(--teal); stroke-width: calc(var(--sw) * 0.6); opacity: 0; }
.ai-link { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.5); stroke-dasharray: 4 3; opacity: 0; }
.ai-link-mid { fill: var(--bg); stroke: var(--teal); stroke-width: calc(var(--sw) * 0.45); opacity: 0; }
.ai-dim { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.4); opacity: 0; }
.ai-cast { fill: color-mix(in srgb, var(--violet) 7%, transparent); stroke: none; opacity: 0; }
.ai-cast-edge { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.35); stroke-dasharray: 2 4; opacity: 0; }
.ai-imm.is-enh .ai-tile { fill: var(--violet); }
.ai-projline.is-idea { stroke: var(--coral); }
.ai-person .bgfill { fill: var(--bg); }
.ai-imm { opacity: 0; visibility: hidden; }
.ai-tile { fill: var(--teal); stroke: none; }
.ai-proj { fill: none; stroke-width: calc(var(--sw) * 0.55); stroke-dasharray: 18 10; }
.ai-proj--v { stroke: var(--violet); }
.ai-proj--t { stroke: var(--teal); }
.ai-strip { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.6); stroke-linecap: round; }
.ai-projline { stroke: var(--teal); stroke-width: calc(var(--sw) * 0.4); stroke-dasharray: 2 4; opacity: 0; }

/* the projected control layer */
.ai-panel { position: fixed; left: 0; top: 0; z-index: 4; visibility: hidden; pointer-events: auto;
  display: grid; gap: 1px; padding: 9px 8px 7px; width: 136px; white-space: nowrap;
  background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1px solid color-mix(in srgb, var(--teal) 70%, var(--bg)); border-radius: 10px;
  font-family: var(--text); }
.ai-panel-head { display: flex; align-items: center; gap: 7px; margin: 0 0 4px 4px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.ai-panel-head i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.ai-ctl { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ink);
  font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background 0.2s, color 0.2s; }
.ai-ctl svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ai-ctl:hover { background: color-mix(in srgb, var(--teal) 12%, transparent); }
.ai-ctl:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.ai-ctl[aria-pressed="true"] { background: var(--violet); color: var(--bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 22%, transparent); }
.ai-ctl[aria-disabled="true"] { opacity: 0.42; cursor: default; }
.ai-ctl[aria-disabled="true"]:hover { background: transparent; }
.ai-panel.is-working .ai-panel-head i { animation: aiWork 1s ease-in-out infinite; }
@keyframes aiWork { 50% { transform: scale(1.7); background: var(--violet); } }
@media (prefers-reduced-motion: reduce) { .clients-grid li { transition: none; } .ai-panel.is-working .ai-panel-head i { animation: none; background: var(--violet); } }
.ai-panel.is-compact { width: auto; grid-auto-flow: column; padding: 6px; gap: 4px; }
.ai-panel.is-compact .ai-panel-head { display: none; }
.ai-panel.is-compact .ai-ctl { font-size: 11px; padding: 6px 7px; gap: 5px; }
.ai-panel.is-compact .ai-ctl svg { width: 15px; height: 15px; }
.ai-ctl .ai-s { display: none; }
.ai-panel.is-compact .ai-ctl .ai-l { display: none; }
.ai-panel.is-compact .ai-ctl .ai-s { display: inline; }
/* Our World */
.ow-strand, .ow-ring, .ow-arc { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ow-strand { stroke-width: calc(var(--sw) * 0.85); }
.ow-strand--back { stroke-width: calc(var(--sw) * 0.55); opacity: 0.38; }
.ow-ring { stroke-width: calc(var(--sw) * 0.85); }
.ow-ring--back { stroke-width: calc(var(--sw) * 0.5); opacity: 0.32; stroke-dasharray: 3 5; }
.ow-arc { stroke-width: calc(var(--sw) * 0.6); }
.ow-arc--back { opacity: 0.14; stroke-dasharray: 2 4; }
.ow-coral { stroke: var(--coral); } .ow-teal { stroke: var(--teal); } .ow-violet { stroke: var(--violet); }
.ow-coral-fill { fill: var(--coral); } .ow-teal-fill { fill: var(--teal); } .ow-violet-fill { fill: var(--violet); }
.ow-tip { opacity: 0; }
.ow-outline { fill: none; stroke: var(--ink); stroke-width: calc(var(--sw) * 0.72); }
.ow-body { fill: color-mix(in srgb, var(--teal) 5%, var(--bg)); stroke: none; opacity: 0; }
.ow-halo { fill: none; stroke: color-mix(in srgb, var(--violet) 45%, var(--bg)); stroke-width: calc(var(--sw) * 0.5); stroke-dasharray: 1 6; stroke-linecap: round; opacity: 0; }
.ow-grat { fill: none; stroke: var(--ink); stroke-width: calc(var(--sw) * 0.3); stroke-opacity: 0.3; stroke-linecap: round; }
.ow-grat--back { stroke-opacity: 0.1; }
.ow-node { fill: var(--bg); stroke: var(--ink); stroke-width: calc(var(--sw) * 0.65); opacity: 0; }
.ow-node.is-back { fill: none; }
.ow-route { fill: none; stroke-width: calc(var(--sw) * 0.95); stroke-linecap: round; }
.ow-route--back { stroke-width: calc(var(--sw) * 0.5); opacity: 0.3; stroke-dasharray: 3 5; }
.ow-route-lit { fill: none; stroke-width: calc(var(--sw) * 2.6); stroke-linecap: round; opacity: 0; }
.ow-route-lit.ow-coral { stroke: color-mix(in srgb, var(--coral) 35%, transparent); }
.ow-route-lit.ow-teal { stroke: color-mix(in srgb, var(--teal) 35%, transparent); }
.ow-route-lit.ow-violet { stroke: color-mix(in srgb, var(--violet) 35%, transparent); }
.ow-arrive { fill: none; stroke-width: calc(var(--sw) * 0.55); opacity: 0; }
.ow-tint { stroke: none; opacity: 0; fill: transparent; }
.ow-tint--coral { fill: color-mix(in srgb, var(--coral) 9%, transparent); }
.ow-tint--teal { fill: color-mix(in srgb, var(--teal) 10%, transparent); }
.ow-tint--violet { fill: color-mix(in srgb, var(--violet) 9%, transparent); }
.ow-final { fill: var(--violet); stroke: var(--bg); stroke-width: calc(var(--sw) * 0.7); opacity: 0; }
.ow-final-ring { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.75); opacity: 0; }
.ow-glow { opacity: 0; }
.ow-meet { fill: var(--bg); stroke: var(--ink); stroke-width: calc(var(--sw) * 0.6); opacity: 0; }
.ow-meet.is-final { fill: var(--violet); stroke: var(--bg); stroke-width: calc(var(--sw) * 0.6); }
.ow-meet-ring { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.5); opacity: 0; }
.ow-meet-ring.is-final { stroke-width: calc(var(--sw) * 0.7); }
.scene-world.is-complete .ow-meet:not(.is-final) { fill: color-mix(in srgb, var(--violet) 30%, var(--bg)); }
.ow-ping { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.45); opacity: 0; }
.rail--statement.rail--world .rail-inner { width: min(460px, 32vw); }

/* Our Experience */
.ex-acc-teal { fill: var(--teal); opacity: 0; }
.ex-acc-violet { fill: var(--violet); opacity: 0; }
.ex-disc { stroke-width: calc(var(--sw) * 0.7); }
.ex-back { stroke: color-mix(in srgb, var(--ink) 45%, var(--bg)); }
.ex-wheel { opacity: 0; }
.ex-hub { fill: var(--coral); }
.ex-counter { fill: color-mix(in srgb, var(--ink) 12%, var(--bg)); stroke: none; }
.ex-rod { opacity: 0; }
.ex-sight { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.5); stroke-dasharray: 1 2; }
.ex-tick { fill: none; stroke: var(--ink); stroke-width: calc(var(--sw) * 0.45); stroke-dasharray: 1 2; }
.ex-station { fill: var(--bg); stroke: var(--ink); stroke-width: calc(var(--sw) * 0.6); opacity: 0; transition: fill 0.4s; }
.ex-station.is-on.ex-station--teal { fill: var(--teal); stroke: var(--teal); }
.ex-station.is-on.ex-station--coral { fill: var(--coral); stroke: var(--coral); }
.ex-station.is-on.ex-station--violet { fill: var(--violet); stroke: var(--violet); }
.ex-logo { opacity: 0; }
.rail--clients .rail-inner { top: max(15vh, 96px); transform: none; width: min(720px, 60vw); }
.clients-head { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -0.01em; margin: 10px 0 0; max-width: 18em; }
.clients-grid { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Our Experience · the traveller */
.ex-tv-teal { fill: var(--teal); } .ex-tv-coral { fill: var(--coral); } .ex-tv-violet { fill: var(--violet); } .ex-tv-ink { fill: var(--ink); }
.ex-tv-coral-band { fill: var(--coral); stroke: var(--ink); stroke-width: calc(var(--sw) * 0.4); }
.ex-tv-cone { fill: color-mix(in srgb, var(--teal) 10%, transparent); stroke: var(--teal); stroke-width: calc(var(--sw) * 0.35); stroke-dasharray: 2 3; opacity: 0; }
.ex-tv-flash { fill: color-mix(in srgb, var(--teal) 25%, transparent); stroke: none; opacity: 0; }
.ex-tv-focus { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.6); stroke-linecap: round; opacity: 0; }
.ex-scan-frame { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.7); stroke-linecap: round; opacity: 0; }
.ex-scan-line { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.55); opacity: 0; }
.ex-scan-pt { opacity: 0; }
.ex-info { opacity: 0; }
.ex-win { fill: color-mix(in srgb, var(--teal) 22%, var(--bg)); stroke: var(--teal); stroke-width: calc(var(--sw) * 0.35); }
.ex-leader { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.45); stroke-dasharray: 1 2; }
.ex-card { fill: var(--bg); stroke: var(--violet); stroke-width: calc(var(--sw) * 0.55); }
.ex-card-lines { fill: none; stroke: color-mix(in srgb, var(--violet) 70%, var(--bg)); stroke-width: calc(var(--sw) * 0.5); stroke-linecap: round; }
.ex-ripple { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.5); opacity: 0; }
.ex-morph { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.45); opacity: 0; }

/* What's Next */
.wn-glow { fill: color-mix(in srgb, var(--teal) 6%, transparent); stroke: none; opacity: 0; }
.wn-spill { fill: color-mix(in srgb, var(--teal) 5%, transparent); stroke: none; opacity: 0; }
.wn-spill-edge { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.35); stroke-dasharray: 1 2; }
.wn-depth { fill: none; stroke-width: calc(var(--sw) * 0.5); stroke-linejoin: round; }
.wn-depth--ink { stroke: var(--ink); } .wn-depth--coral { stroke: var(--coral); } .wn-depth--teal { stroke: var(--teal); } .wn-depth--violet { stroke: var(--violet); }
.wn-depth-edge { fill: none; stroke: var(--ink); stroke-width: calc(var(--sw) * 0.3); stroke-dasharray: 2 4; }
.wn-echo { fill: none; stroke-width: calc(var(--sw) * 0.45); stroke-linejoin: round; opacity: 0; }
.wn-echo--coral { stroke: var(--coral); } .wn-echo--teal { stroke: var(--teal); } .wn-echo--violet { stroke: var(--violet); }
.wn-idea { opacity: 0; }
.wn-idea--coral { fill: var(--coral); } .wn-idea--teal { fill: var(--teal); } .wn-idea--violet { fill: var(--violet); }
.wn-rest { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.5); opacity: 0; }
.rail--next .rail-inner { width: min(560px, 40vw); }
.next-head { font-size: clamp(44px, 4.9vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
.next-copy p { margin: 0 0 14px; }
.rail--next-after .next-copy p { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; margin-bottom: 18px; max-width: 26em; }
.rail--next-after .rail-inner { width: min(560px, 42vw); }
.next-copy .lede { font-family: var(--display); font-size: clamp(20px, 1.6vw, 24px); color: var(--ink); margin-top: 22px; }
.next-cta-wrap { margin-top: 26px !important; }
.next-cta { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; background: transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.next-cta-arrow { display: inline-block; transition: transform 0.3s; color: var(--coral); }
.next-cta:hover, .next-cta:focus-visible { background: var(--ink); color: var(--bg); box-shadow: 0 0 0 5px color-mix(in srgb, var(--coral) 22%, transparent); }
.next-cta:hover .next-cta-arrow, .next-cta:focus-visible .next-cta-arrow { transform: translate(3px, -3px); }
.next-cta:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .next-cta, .next-cta-arrow { transition: none; } }

/* the closing statement */
.rail--statement .rail-inner { width: min(400px, 27vw); }
.statement {
  margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.022em; line-height: 1.08;
  font-size: clamp(32px, min(3.9vw, 7.4vh), 60px); color: var(--ink);
}
.statement .st-line { display: block; opacity: 0; }
.statement .st-line--2 { margin-top: 0.35em; }
.hl-violet { --hl: var(--violet); }
.statement .hl { background-size: 0% 0.09em; background-position: 0 94%; }
.statement .hl.is-on { background-size: 100% 0.09em; }

@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .mega--long { font-size: 9.6vw; }
  .rail--statement .rail-inner, .rail--statement.rail--world .rail-inner { width: auto; }
  .rail--clients .rail-inner { top: auto; width: auto; }
  .rail--next-after .next-copy p { font-size: 16px; }
  .rail--next .rail-inner { width: auto; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 28px); padding-top: 28px; }
  .next-head { font-size: clamp(34px, 10vw, 44px); }
  .next-copy p { font-size: 15px; margin-bottom: 8px; }
  .next-copy .lede { margin-top: 12px; font-size: 19px; }
  .next-cta { padding: 12px 20px; font-size: 16px; }
  #next .proto-note { display: none; }
  .clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; list-style: none; margin: 16px 0 0; padding: 0; }
  .clients-grid li { height: 46px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.5s; transition-delay: calc(var(--i) * 55ms); }
  .rail--clients.is-on .clients-grid li { opacity: 1; transform: none; }
  .clients-grid img { width: var(--w); height: var(--h); max-width: 100%; object-fit: contain; }
  .scene-exp.is-mobile .ex-logo, .scene-exp.is-mobile .ex-tick { display: none; }
  #experience .proto-note { display: none; }
  nav ol { overflow-x: auto; scrollbar-width: none; max-width: calc(100vw - 132px); scroll-behavior: smooth; }
  nav ol::-webkit-scrollbar { display: none; }
  nav li { flex: none; }
  .clients-head { font-size: 24px; }
  .statement { font-size: clamp(28px, 8vw, 38px); }
}

/* ============================================================
   Brand + contact (site-wide)
   ============================================================ */

/* The company name, set in the brand type, clearly legible from the first frame */
.site-header .wordmark { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: 0.14em; gap: 0.42em; line-height: 1; color: var(--ink); }
.site-header .wordmark span { font-weight: 500; color: var(--ink); }

/* ---------- "Let's talk" ---------- */
.talk {
  position: fixed; z-index: 25;
  right: calc(var(--gutter) * 0.5 + 6px); bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px 0 22px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; cursor: pointer;
  font-family: var(--display); font-size: 15px; font-weight: 500; letter-spacing: 0.02em;
  box-shadow: 0 10px 28px -14px rgba(34, 34, 34, 0.55);
  opacity: 0; transform: translateY(14px) scale(0.96); pointer-events: none; visibility: hidden;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2,.75,.2,1), visibility 0s linear 0.5s, padding 0.35s cubic-bezier(.2,.75,.2,1), box-shadow 0.35s;
}
.talk.is-shown { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.talk-arrow { display: inline-block; font-size: 14px; transition: transform 0.35s cubic-bezier(.2,.75,.2,1), color 0.25s; }
.talk::before {               /* a small coloured dot, as on the line */
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 2px;
  transition: background 0.3s, transform 0.35s;
}
.talk:hover { padding-left: 26px; padding-right: 24px; box-shadow: 0 14px 32px -14px rgba(34, 34, 34, 0.6); }
.talk:hover::before { background: var(--violet); transform: scale(1.25); }
.talk:hover .talk-arrow { transform: translate(3px, -3px); }
.talk:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- the panel ---------- */
.contact[hidden] { display: none; }
.contact { position: fixed; inset: 0; z-index: 40; }
.contact-scrim { position: absolute; inset: 0; background: rgba(247, 245, 240, 0.62); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.contact-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: clamp(440px, 42vw, 680px);
  background: var(--bg); color: var(--ink);
  box-shadow: -1px 0 0 rgba(34, 34, 34, 0.14), -30px 0 60px -40px rgba(34, 34, 34, 0.35);
  overscroll-behavior: contain;
}
.contact-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.contact-line { position: absolute; top: 0; left: 0; pointer-events: none; overflow: visible; }
.contact-line path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-dot { fill: var(--violet); transition: fill 0.4s; }
.contact-ring { fill: none; stroke: var(--teal); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.contact-line.is-settled .contact-dot { fill: var(--teal); }
.contact-line.is-settled .contact-ring { animation: contact-ring 0.9s cubic-bezier(.2,.75,.2,1) both; }
@keyframes contact-ring { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }

.contact-close {
  position: absolute; top: 22px; right: 22px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(34, 34, 34, 0.22); background: var(--bg); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: border-color 0.25s, transform 0.35s cubic-bezier(.2,.75,.2,1);
}
.contact-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.contact-close:hover { border-color: var(--ink); transform: rotate(90deg); }
.contact-close:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.contact-body { position: relative; padding: clamp(72px, 10vh, 116px) clamp(56px, 5.4vw, 88px) 64px 76px; max-width: 600px; }
.contact-title { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.1vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 12em; }
.contact-title:focus { outline: none; }
.contact-intro { font-size: 18px; color: var(--ink-soft); margin: 0 0 30px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--display); font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; display: block; font: inherit; font-size: 17px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(34, 34, 34, 0.3); border-radius: 0;
  padding: 8px 0 10px; transition: border-color 0.25s, background-size 0.4s;
  background-image: linear-gradient(var(--violet), var(--violet)); background-repeat: no-repeat;
  background-size: 0% 2px; background-position: 0 100%;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.55; }
.field input:hover, .field textarea:hover { border-bottom-color: rgba(34, 34, 34, 0.55); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: transparent; background-size: 100% 2px; }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 3px 0 -1px rgba(114, 85, 232, 0.18); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--coral); }
.field-err { margin: 6px 0 0; font-size: 14px; color: #B8432A; min-height: 0; }
.field-err:empty { display: none; }
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-turnstile:empty { display: none; }
.contact-turnstile { margin: 4px 0 18px; }

.contact-actions { margin-top: 24px; }
.contact-send {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; cursor: pointer; font-family: var(--display); font-size: 16px; font-weight: 500;
  transition: background 0.25s, padding 0.35s cubic-bezier(.2,.75,.2,1);
}
.contact-send-arrow { display: inline-block; transition: transform 0.35s cubic-bezier(.2,.75,.2,1); }
.contact-send:hover { background: var(--violet); padding: 0 30px; }
.contact-send:hover .contact-send-arrow { transform: translate(3px, -3px); }
.contact-send:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.contact-send[disabled] { cursor: progress; background: #4a4946; }

.contact-status { margin-top: 18px; font-size: 15.5px; line-height: 1.55; max-width: 32em; }
.contact-status:empty { display: none; }
.contact-status.is-error { color: #B8432A; }
.contact-status.is-info { padding: 14px 16px; border-left: 2px solid var(--teal); background: rgba(75, 175, 165, 0.08); color: var(--ink); }
.contact-status.is-busy { color: var(--ink-soft); }
.contact-status-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 3px; }

.contact-done { padding: 8px 0 4px; }
.contact-done:focus { outline: none; }
.contact-done-head { font-family: var(--display); font-size: 26px; font-weight: 500; margin: 0 0 8px; display: flex; align-items: center; gap: 12px; }
.contact-done-head i { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.contact-again { margin-top: 14px; background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 3px; }

/* direct details sit inside the panel's rhythm, not as a footer */
.contact-direct { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(34, 34, 34, 0.14); display: flex; flex-wrap: wrap; gap: 18px 44px; }
.contact-direct-item { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.contact-direct-label { font-family: var(--display); font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-email, .contact-tel {
  font-family: var(--display); font-size: 19px; font-weight: 500; color: var(--ink); text-decoration: none; width: fit-content;
  background: linear-gradient(var(--teal), var(--teal)) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size 0.3s;
  overflow-wrap: break-word;
}
.contact-email:hover, .contact-tel:hover { background-image: linear-gradient(var(--violet), var(--violet)); }
.contact-email:focus-visible, .contact-tel:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.contact-phone-tbc { display: inline-block; font-size: 15px; color: var(--ink-soft); padding: 5px 12px; border: 1.5px dashed rgba(34, 34, 34, 0.28); border-radius: 999px; }

html.contact-lock, html.contact-lock body { overflow: hidden; }
html.contact-lock body { padding-right: var(--sbw, 0px); }

@media (max-width: 760px) {
  /* header: the full name always shown; the chapter list scrolls beside it */
  .site-header { gap: 16px; }
  .site-header .wordmark { font-size: 16px; letter-spacing: 0.1em; flex: none; }
  .site-header .wordmark span { display: inline; }
  .site-header nav { flex: 1; min-width: 0; }
  .site-header nav ol { max-width: 100%; }

  .talk { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); height: 42px; padding: 0 16px 0 18px; font-size: 14px; }
  .talk:hover { padding-left: 18px; padding-right: 16px; }
  /* chapter copy keeps a quiet strip clear for the button */
  .rail-inner { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  .contact-panel { width: 100%; box-shadow: none; }
  .contact-close { top: 14px; right: 14px; }
  .contact-body { padding: 78px 22px calc(40px + env(safe-area-inset-bottom)) 36px; }
  .contact-title { font-size: 32px; }
  .contact-intro { font-size: 17px; margin-bottom: 28px; }
  .field input, .field textarea { font-size: 16px; }
  .contact-direct { flex-direction: column; margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .talk, .talk-arrow, .talk::before, .contact-close, .contact-send, .contact-send-arrow { transition: opacity 0.2s linear, visibility 0s; }
  .talk:hover .talk-arrow, .contact-send:hover .contact-send-arrow { transform: none; }
  .contact-close:hover { transform: none; }
  .contact-line.is-settled .contact-ring { animation: none; }
}

/* Header balance: the name sits on the same line as the chapter names */
.site-header { align-items: flex-start; }
.site-header .wordmark { margin-top: 2px; }
nav a { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1180px) {
  .site-header nav ol { gap: 18px; }
  .site-header .nav-long { display: none; }
  .site-header .nav-short { display: inline; }
}
@media (max-width: 760px) {
  .site-header .wordmark { margin-top: 6px; }
}
.site-header { gap: 28px; }
@media (min-width: 761px) and (max-width: 1000px) {
  .site-header nav { flex: 1; min-width: 0; align-items: stretch; }
  .site-header nav ol { gap: 14px; justify-content: flex-end; overflow-x: auto; scrollbar-width: none; }
  .site-header nav ol::-webkit-scrollbar { display: none; }
  .site-header nav li { flex: none; }
  .site-header nav a { font-size: 12.5px; letter-spacing: 0.04em; }
}
@media (max-width: 760px) { .site-header { gap: 16px; } }
@media (min-width: 761px) and (max-width: 1000px) { .site-header .wordmark { font-size: 21px; margin-top: 4px; } }

/* Header name: Space Grotesk Bold, charcoal, uppercase, lightly tracked */
.site-header .wordmark { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: 0.75px; gap: 0.3em; line-height: 1; text-transform: uppercase; color: var(--ink); margin-top: 0; }
.site-header .wordmark span { font-weight: 700; color: var(--ink); }
@media (min-width: 761px) and (max-width: 1180px) { .site-header .wordmark { font-size: 23px; margin-top: 3px; } }
@media (max-width: 760px) { .site-header .wordmark { font-size: 18px; letter-spacing: 0.5px; margin-top: 4px; } }
@media (max-width: 374px) { .site-header .wordmark { font-size: 16.5px; } }
.site-header .wordmark { margin-top: 1px; }
@media (min-width: 761px) and (max-width: 1180px) { .site-header .wordmark { margin-top: 4px; } }
@media (max-width: 760px) { .site-header .wordmark { margin-top: 5px; } }
@media (max-width: 374px) { .site-header .wordmark { margin-top: 6px; } }

/* ============================================================
   Opening illustration journey: one connected world
   ============================================================ */
.hk-violet { fill: var(--violet); }
.hk-coral { fill: var(--coral); opacity: 0; }
.hk-coral-fill { fill: var(--coral); }
.hk-win { fill: none; opacity: 0; }
.hk-cone { fill: rgba(114, 85, 232, 0.06); stroke: var(--violet); stroke-width: calc(var(--sw) * 0.4); stroke-dasharray: var(--dash); opacity: 0; }
.hk-reticle { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 0.75); stroke-linecap: round; opacity: 0; }
.hk-rec { fill: var(--coral); stroke: none; opacity: 0; }
.hk-mapped { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.4); opacity: 0; }
.hk-scanpt { fill: var(--violet); opacity: 0; }
.hk-scanband { fill: url(#hk-band); opacity: 0; }
.hk-scanline { stroke: var(--coral); stroke-width: calc(var(--sw) * 0.62); opacity: 0; }
.hk-mesh .ln { stroke: var(--violet); stroke-width: calc(var(--sw) * 0.42); }
.hk-surf { fill: var(--bg-2); stroke: none; opacity: 0; }
.hk-glass { fill: rgba(114, 85, 232, 0.1); stroke: none; opacity: 0; }
.hk-panofloor { stroke: var(--violet); stroke-width: calc(var(--sw) * 0.35); opacity: 0.55; }
.hk-accent-coral { fill: var(--coral); }
.hk-accent-violet { fill: var(--violet); }
.hk-burst { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 0.6); opacity: 0; }
.hk-guide { stroke-dasharray: var(--dash); opacity: 0.6; }
.hk-proj { stroke: var(--violet); stroke-width: calc(var(--sw) * 0.38); stroke-dasharray: var(--dash); opacity: 0; }
.hk-pin { fill: var(--coral); stroke: var(--bg); stroke-width: calc(var(--sw) * 0.8); paint-order: stroke; opacity: 0; }
.hk-pin--in { opacity: 1; }
.hk-ring { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 0.5); opacity: 0; }
.hk-window { stroke: var(--violet); }
.hk-arrow { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.5); stroke-linecap: round; }
.hk-thread { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.42); stroke-dasharray: var(--dash); opacity: 0.75; }
.hk-pulse { opacity: 0; }
.hk-frame { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 0.85); stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.hk-doorglow { fill: var(--coral); stroke: none; opacity: 0; }
.hk-xp-band { fill: var(--bg); stroke: var(--violet); stroke-width: calc(var(--sw) * 0.6); }
.hk-beam { fill: rgba(114, 85, 232, 0.07); stroke: none; opacity: 0; }
.hk-nav { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.6); stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.hk-photo { fill: rgba(114, 85, 232, 0.09); stroke: none; }
.hk-venueglass { fill: rgba(114, 85, 232, 0.05); stroke: none; }

.hk-tint { fill: rgba(114, 85, 232, 0.035); stroke: none; opacity: 0; }
.hk-mask { opacity: 0; }
.hk-mask-shape { fill: rgba(114, 85, 232, 0.05); stroke: var(--violet); stroke-width: calc(var(--sw) * 0.5); stroke-linejoin: round; }
.hk-mask--match .hk-mask-shape { fill: rgba(243, 107, 69, 0.07); stroke: var(--coral); stroke-width: calc(var(--sw) * 0.7); }
.hk-tag { fill: var(--violet); opacity: 0; }
.hk-tag--match { fill: var(--coral); }
.hk-route-live { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 0.95); stroke-linecap: round; stroke-dasharray: 0.01 5.5; opacity: 0; }
.hk-route-arrow { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 0.7); stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.hk-pin-drop { fill: var(--coral); stroke: none; }
.hk-bulb { fill: var(--coral); opacity: 0; }

/* Opening · the living miniature city (scenes/opening-city.js) */
.oc-coral { fill: var(--coral); stroke: none; }
.oc-door { fill: var(--coral); transition: fill 0.8s; }
.oc-door.is-lit { fill: color-mix(in srgb, var(--coral) 60%, var(--bg)); }
.oc-win { fill: color-mix(in srgb, var(--teal) 22%, var(--bg)); transition: fill 0.9s; }
.oc-win.is-on { fill: color-mix(in srgb, var(--teal) 62%, var(--bg)); }
.oc-banner { fill: var(--violet); stroke: none; }
.oc-arena { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 0.62); stroke-linecap: round; }
.oc-speed { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 0.62); stroke-linecap: round; transition: opacity 0.3s; }
.oc-teal { fill: var(--teal); stroke: none; }
.oc-tealsoft { fill: color-mix(in srgb, var(--teal) 35%, var(--bg)); stroke: var(--teal); stroke-width: calc(var(--sw) * 0.35); }
.oc-lamp { fill: var(--violet); stroke: none; }
.oc-sun { fill: color-mix(in srgb, var(--coral) 55%, var(--bg)); stroke: none; transition: opacity 1.2s; }
.oc-raincloud { fill: color-mix(in srgb, var(--ink) 7%, var(--bg)); }
.oc-rain { fill: none; stroke: var(--teal); stroke-width: calc(var(--sw) * 0.5); stroke-linecap: round; }
.oc-umb { fill: var(--coral); stroke: none; }
.oc-frame { fill: none; stroke: var(--violet); stroke-width: calc(var(--sw) * 0.75); stroke-linecap: round; stroke-linejoin: round; }
.oc-mark { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 0.62); stroke-linecap: round; }
/* when the city is drawn smaller to fit (--oc-k), its lines keep their weight */
.oc .ln { stroke-width: calc(var(--sw) / var(--oc-k, 1)); }
.oc .ln.thin { stroke-width: calc(var(--sw) * 0.62 / var(--oc-k, 1)); }
.oc .ln.hair { stroke-width: calc(var(--sw) * 0.42 / var(--oc-k, 1)); }
.oc .oc-arena, .oc .oc-speed, .oc .oc-mark { stroke-width: calc(var(--sw) * 0.62 / var(--oc-k, 1)); }
.oc .oc-frame { stroke-width: calc(var(--sw) * 0.75 / var(--oc-k, 1)); }
.oc .oc-rain { stroke-width: calc(var(--sw) * 0.5 / var(--oc-k, 1)); }
.oc .oc-tealsoft { stroke-width: calc(var(--sw) * 0.35 / var(--oc-k, 1)); }

/* Our Experience · the kinetic machine (scenes/exp-machine.js) */
.scene-exp--machine > :not(.ex-route) { display: none !important; }   /* the section shows the machine; its client collection stays */
.km-coral { fill: var(--coral); stroke: none; }
.km-violet { fill: var(--violet); stroke: none; }
.km-teal { fill: var(--teal); stroke: none; }
.km-ink { fill: var(--ink); stroke: none; }
.km-water { fill: color-mix(in srgb, var(--teal) 38%, var(--bg)); stroke: none; }
.km-ray { fill: none; stroke: var(--coral); stroke-width: calc(var(--sw) * 0.62); stroke-linecap: round; opacity: 0; }
.km .ln { stroke-width: calc(var(--sw) * 1.38); }
.km .ln.thin { stroke-width: calc(var(--sw) * 0.86); }
.km .ln.hair { stroke-width: calc(var(--sw) * 0.6); }
.km .ln.rim { stroke-width: calc(var(--sw) * 1.7); }
.km-stripe { fill: var(--coral); opacity: 0.55; stroke: none; }

/* ============================================================
   Phase 3 · phones and tablets
   Everything here is scoped to phones (≤760px), tablets held upright
   (≤1100px portrait) or short landscape phones. Desktop is unaffected.
   ============================================================ */
.nav-toggle { display: none; }

/* ---------- Tablets held upright: the stacked composition, at tablet sizes ---------- */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  body { font-size: 17px; }
  .site-header { padding: 22px 40px; }
  .site-header .wordmark span { display: inline; }
  .site-header nav a { font-size: 12.5px; letter-spacing: 0.04em; }
  .rail-inner { padding: 30px 48px calc(96px + env(safe-area-inset-bottom)); }
  .rail-inner > * { max-width: 620px; }
  .rail--opening .rail-inner { top: 128px; padding: 0 48px; }
  h1 { font-size: clamp(52px, 7.4vw, 76px); max-width: 14ch; }
  h2 { font-size: clamp(40px, 5.8vw, 56px); max-width: 15ch; }
  .eyebrow { font-size: 12.5px; margin-bottom: 14px; }
  .slot { margin-top: 18px; }
  .slot p { font-size: 18px; line-height: 1.6; }
  .slot .lede { font-size: 20px; }
  .rail--opening .slot { max-width: 560px; }
  .rail--opening .slot p { font-size: 18px; }
  .cap { font-size: clamp(22px, 3.4vw, 30px); }
  .mega { font-size: 13vw; top: 22vh; -webkit-text-stroke-width: 1.5px; }
  .mega--long { font-size: 8.6vw; }
  .next-head { font-size: clamp(44px, 7vw, 60px); }
  .next-copy p, .rail--next-after .next-copy p { font-size: 18px; }
  .next-copy .lede { font-size: 22px; }
  .clients-grid { grid-template-columns: repeat(4, 1fr); gap: 18px 26px; }
  .clients-grid li { height: 58px; }
  .clients-head { font-size: 30px; }
}

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  /* headings break into balanced lines, never a lonely last word */
  h1, h2, .next-head, .clients-head { text-wrap: balance; }

  /* the chapter list folds into a small menu named after the current chapter */
  .site-header { align-items: center; padding: 10px 16px 10px 18px; }
  .site-header .wordmark { margin-top: 0; }
  .site-header nav { flex: none; margin-left: auto; position: relative; align-items: stretch; gap: 2px; min-width: 128px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: flex-end; gap: 9px;
    min-height: 40px; padding: 4px 2px 2px 8px; margin: 0; background: none; border: 0; cursor: pointer;
    font-family: var(--display); font-weight: 500; font-size: 13.5px; letter-spacing: 0.03em; color: var(--ink);
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
  .nav-toggle-label { white-space: nowrap; }
  .nav-toggle-icon { position: relative; width: 15px; height: 10px; flex: none; }
  .nav-toggle-icon::before, .nav-toggle-icon::after {
    content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); border-radius: 1px;
    transition: transform 0.25s ease, top 0.25s ease;
  }
  .nav-toggle-icon::before { top: 1px; }
  .nav-toggle-icon::after { top: 7px; }
  .menu-open .nav-toggle-icon::before { top: 4px; transform: rotate(45deg); }
  .menu-open .nav-toggle-icon::after { top: 4px; transform: rotate(-45deg); }

  .site-header nav ol {
    position: absolute; top: calc(100% + 12px); right: -4px; z-index: 2;
    display: flex; flex-direction: column; gap: 0; min-width: 232px; max-width: calc(100vw - 24px);
    margin: 0; padding: 8px 0; overflow: visible; scroll-behavior: auto;
    background: var(--bg); border: 1px solid var(--ink); border-radius: 16px;
    box-shadow: 0 14px 36px rgba(34, 34, 34, 0.12);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .menu-open .site-header nav ol { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .site-header nav li { flex: none; }
  .site-header nav ol a {
    display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px;
    font-size: 16px; letter-spacing: 0.01em; color: var(--ink-soft); -webkit-text-stroke: 0;
  }
  .site-header nav ol a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: transparent; flex: none; }
  .site-header nav ol a[aria-current] { color: var(--ink); font-weight: 600; }
  .site-header nav ol a[aria-current]::before { background: var(--violet); }
  .site-header nav ol a:focus-visible { outline: 2px solid var(--teal); outline-offset: -4px; border-radius: 10px; }
  .site-header nav ol .nav-long { display: inline; }
  .site-header nav ol .nav-short { display: none; }
  .progress { height: 1.5px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .site-header nav ol, .menu-open .site-header nav ol, .nav-toggle-icon::before, .nav-toggle-icon::after { transition: none; }
}

/* ---------- Small phones (iPhone SE and similar) ---------- */
@media (max-width: 374px) {
  h1 { font-size: 33px; }
  h2 { font-size: 27px; }
  .rail--opening .rail-inner { top: 72px; }
  .rail--opening .slot p, .slot p { font-size: 14.5px; line-height: 1.52; }
  .slot .lede { font-size: 16px; }
  .rail-inner { padding-left: 18px; padding-right: 18px; }
  .site-header nav { min-width: 112px; }
  .nav-toggle { font-size: 12.5px; gap: 7px; }
}

/* ---------- Phones held sideways: a short screen, so everything a little tighter ---------- */
@media (min-width: 561px) and (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  .site-header { padding-top: 10px; padding-bottom: 10px; }
  .site-header .wordmark { font-size: 17px; }
  .rail-inner { top: calc(50% + 22px); }
  .rail--opening .rail-inner { top: 58px; }
  h1 { font-size: clamp(28px, 7.4vh, 38px); }
  h2 { font-size: clamp(24px, 7vh, 32px); }
  .eyebrow { margin-bottom: 6px; }
  .slot { margin-top: 10px; }
  .slot p { font-size: 14px; line-height: 1.5; }
  .slot .lede { font-size: 15.5px; }
  .rail--opening .slot p { font-size: 14px; }
  .mega { font-size: clamp(48px, 24vh, 110px); top: 26vh; }
  .talk { height: 38px; font-size: 13px; }
  #next .proto-note, #experience .proto-note { display: none; }
}

/* phones and upright tablets: a soft cream fade behind the header, so the name and menu
   stay legible as the illustration passes underneath */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .site-header::before {
    content: ''; position: absolute; inset: 0 0 -18px 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 62%, transparent 100%);
  }
}
