/* Devgenome site styles: one file for every page.
   Colours: canvas #050609, headline #ECF0F7, body #B6C0D0, accent #58D6FF with a #050609 label. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../assets/fonts/montserrat-var.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/dm-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/dm-mono-500.woff2) format('woff2'); }

:root {
  --bg: #050609; --bg-2: #0b0e15; --ink: #ECF0F7; --ink-2: #B6C0D0; --ink-3: #8C97A8; --cyan: #58D6FF; --violet: #B79CFF; --pale: #E6ECF5; --line: rgba(236, 240, 247, .14);
  --panel: rgba(5, 6, 9, .8); --hdr: 64px; --gutter: clamp(16px, 5vw, 96px); --measure: 760px;
  --font: 'Montserrat', system-ui, sans-serif; --mono: 'DM Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); font: 400 17px/1.55 var(--font); overflow-x: clip; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--cyan); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 650; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ---- the world (home only: one persistent canvas) ---- */
.world-track { position: absolute; left: 0; right: 0; top: 0; z-index: 0; pointer-events: none; }
.world { position: sticky; top: 0; width: 100%; height: var(--wh, 100lvh); background: var(--bg); overflow: hidden; }
html.world-lost .world__canvas { visibility: hidden; }
.world__canvas, .world__fade, .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster { right: auto; bottom: auto; max-width: none; object-fit: fill; display: none; transition: visibility 0s linear 220ms; }
html.is-desktop .poster--desktop, html.is-portrait .poster--portrait { display: block; }
html.no-poster .poster, html.live .poster { visibility: hidden; }
html.no-poster .poster { transition: none; }
.world__canvas { opacity: 0; transition: opacity 150ms linear; }
html.live .world__canvas { opacity: 1; }
html.live-late .world__canvas { transition-duration: 300ms; }
.world__fade { pointer-events: none; opacity: 0; transition: opacity 200ms linear; }
.world__fade.on { opacity: 1; transition: none; }

/* ---- entry loader (home, with JavaScript): until the world is live, at most 20 s ---- */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: var(--bg); transition: opacity 300ms ease-out, visibility 0s linear 300ms; }
html.live .loader, html.world-failed .loader, html.loader-done .loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark { width: 56px; height: 56px; }
.loader__helix { width: 240px; height: 40px; overflow: visible; }
.loader__helix path, .loader__helix line { fill: none; stroke-linecap: round; }
.loader__ghost path { stroke: var(--line); stroke-width: 1.5; }
.loader__strand { stroke-width: 2; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 200ms linear; }
.loader__strand--a { stroke: var(--cyan); }
.loader__strand--b { stroke: var(--ink-2); }
.loader__rungs line { stroke: var(--line); stroke-width: 1.5; transition: stroke 250ms ease-out; }
.loader__rungs line.on { stroke: var(--cyan); }
.loader__pct { font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--ink-3); min-width: 4ch; text-align: center; }
@media (prefers-reduced-motion: reduce) { .loader__strand, .loader__rungs line { transition: none; } }

/* ---- header ---- */
.hdr { position: fixed; z-index: 20; left: 0; right: 0; top: 0; height: var(--hdr); display: flex; align-items: center; gap: 12px;
  padding: 0 var(--gutter); background: var(--bg); box-shadow: 0 10px 18px 2px var(--bg); }
.page .hdr { position: sticky; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.hdr__logo { flex: none; display: flex; align-items: center; min-height: 44px; min-width: 44px; }
.hdr__lockup { height: 34px; width: auto; }
.hdr__mark { display: none; height: 34px; width: auto; }
.hdr__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr__nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; border-radius: 999px; font-size: 15px; font-weight: 550; color: var(--ink-2); }
.home .hdr__nav a:not(.btn) { background: rgba(5, 6, 9, .72); }
.hdr__nav a:not(.btn):hover, .hdr__nav a[aria-current="page"] { color: var(--ink); }
.hdr__nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.hdr__nav .hdr__navcta { display: none; }
.hdr__menu { display: none; }
.motion { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(5, 6, 9, .72); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2); font: 500 13px/1 var(--mono); cursor: pointer; }
.motion__off { display: none; }
html.motion-off .motion__on { display: none; }
html.motion-off .motion__off { display: inline; }
.btn { border: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; text-decoration: none;
  font: 650 16px/1 var(--font); white-space: nowrap; text-align: center; }
.btn--primary { background: var(--cyan); color: var(--bg); }
.btn--primary:hover { background: #7fe1ff; }
.btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(236, 240, 247, .4); color: var(--ink); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 18px; }
.hdr__cta { flex: none; }

/* ---- chapter rail (home, desktop) ---- */
.rail { position: fixed; z-index: 15; right: calc(var(--gutter) * .5); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 36px; min-width: 36px; text-decoration: none; color: var(--ink-2); }
.rail a::after { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-right: 14px; box-shadow: inset 0 0 0 1.5px var(--ink-3); flex: none; }
.rail a span { font-size: 13px; font-weight: 550; opacity: 0; transform: translateX(6px); transition: opacity .15s, transform .15s; background: var(--panel); padding: 4px 10px; border-radius: 999px; margin-right: 10px; }
.rail a:hover span, .rail a:focus-visible span, .rail a.is-active span { opacity: 1; transform: none; }
.rail a.is-active::after { background: var(--cyan); box-shadow: none; }
/* Outside the chapters the rail is hidden from pointer, keyboard and screen readers alike. */
.rail { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; }
html.in-chapters .rail { opacity: 1; visibility: visible; transition: opacity .2s, visibility 0s; }

/* ---- copy blocks ---- */
main { position: relative; z-index: 10; }
.panel { background: var(--panel); border-radius: 20px; padding: 28px 30px; box-shadow: 0 0 64px 32px var(--panel); }
.eyebrow { font: 500 13px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
h1 { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(28px, 2.8vw, 44px); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 650; text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
.panel p:not(.eyebrow):not(.caption) { color: var(--ink-2); margin-top: 16px; }
.lede { font-size: 19px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { font: 500 13px/1 var(--mono); padding: 9px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.caption { margin-top: 18px; font: 400 12px/1.4 var(--mono); letter-spacing: .06em; color: #A3AEBF; }
.helper { font-size: 15px; }
.line { color: var(--ink) !important; font-weight: 600; }

.hero { min-height: calc(var(--u, 1lvh) * 100); display: flex; align-items: center; padding: calc(var(--hdr) + 24px) var(--gutter) 64px; }
.hero__copy { max-width: 900px; }
.caps { min-height: calc(var(--u, 1lvh) * 110); display: flex; align-items: center; padding: 64px var(--gutter); }
.caps__copy { max-width: 560px; }
.caps__index { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 2px; }
.caps__index a { display: flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); }
.caps__index a:hover { color: var(--cyan); }
.caps__sup { margin-left: auto; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.caps__index .n { font: 500 13px/1 var(--mono); color: var(--cyan); }

/* A chapter link (#ai, the index, the rail) lands where the chapter's copy and its operation are
   both on screen, not at the start of the approach: 90lvh transit - 12lvh copy offset. */
.ch { scroll-margin-top: calc(var(--u, 1lvh) * -78); }
.ch__transit { height: calc(var(--u, 1lvh) * 90); }
.ch__read { height: calc(var(--u, 1lvh) * 170); padding: 0 var(--gutter); display: flex; flex-direction: column; }
.ch__exit { height: calc(var(--u, 1lvh) * 40); }
.ch__copy { position: sticky; top: calc(var(--hdr) + calc(var(--u, 1lvh) * 12)); max-width: 500px; }
/* Chapters whose operation fills the upper left of the frame read from the lower left (measured:
   the operation's footprint inside each panel position). */
.ch--low .ch__copy { margin-top: auto; top: auto; bottom: 24px; }
.ch__act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; }
.ch__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; font-size: 15px; }
.conn__in { height: calc(var(--u, 1lvh) * 40); }
.conn__read { height: calc(var(--u, 1lvh) * 260); padding: 0 var(--gutter); }
.conn__out { height: calc(var(--u, 1lvh) * 60); }
.conn__copy { position: sticky; top: calc(var(--hdr) + calc(var(--u, 1lvh) * 10)); max-width: 520px; }

/* Approach, example and questions (home): an opaque document over the held world. */
.doc { position: relative; }
.doc::before, .doc__end::before { content: ""; position: absolute; left: 0; right: 0; height: 160px; pointer-events: none; }
.doc::before { top: -160px; background: linear-gradient(rgba(5, 6, 9, 0), var(--bg)); }
.doc__end { position: relative; height: calc(var(--u, 1lvh) * 40); background: transparent; }
.doc__end::before { top: 0; background: linear-gradient(var(--bg), rgba(5, 6, 9, 0)); }
.doc__sec { padding: 88px var(--gutter) 0; background: var(--bg); }
.doc__in { max-width: 1120px; margin: 0 auto; }
.doc__head { max-width: 640px; }
.doc__head p:not(.eyebrow) { margin-top: 16px; color: var(--ink-2); }
.appr__steps { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
.appr__step { position: relative; padding: 28px 24px 24px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.appr__step p:not(.appr__n) { margin-top: 12px; color: var(--ink-2); }
.appr__n { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 650; color: var(--ink); }
.appr__n span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--cyan); font: 500 13px/1 var(--mono); color: var(--cyan); }
/* The markers sit on one rail, like the collars on the helix. */
.appr__steps::before { content: ""; position: absolute; left: 42px; right: 42px; top: 46px; height: 1px; background: rgba(88, 214, 255, .35); }
.ex__fig { position: relative; margin: 40px 0 0; padding: 40px 32px 28px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ex__rails { position: absolute; inset: 0; pointer-events: none; opacity: .3; }
.ex__rails img { position: absolute; left: 0; top: 6%; width: 100%; height: 46%; object-fit: cover; }
.ex__fig > :not(.ex__rails) { position: relative; }
.flow { --auto: var(--cyan); --review: var(--violet); position: relative; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.flow__step { position: relative; display: grid; align-content: start; gap: 44px; }
.flow__node { position: relative; display: flex; align-items: center; min-height: 76px; padding: 14px 16px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--ink); }
.flow__node--auto { box-shadow: inset 0 0 0 1.5px var(--auto); }
/* Automated hand-offs: a continuous cyan route to the next step. */
.flow__step:not(:last-child) .flow__node::after { content: ""; position: absolute; left: 100%; top: 50%; width: 28px; height: 2px; background: var(--auto); transform-origin: left center; }
/* Review: a dashed violet bracket down to a person. */
.flow__branch { position: relative; display: block; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--review); color: var(--ink); font-size: 15px; line-height: 1.4; }
.flow__branch::before { content: ""; position: absolute; left: 24px; bottom: 100%; height: 44px; border-left: 1.5px dashed var(--review); }
.flow__branch--unsure { padding-left: 42px; }
.flow__branch--unsure::after { content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--pale); }
.flow__key { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.flow__key li { display: flex; align-items: center; gap: 10px; }
.flow__key li::before { content: ""; flex: none; }
.flow__key--auto::before { width: 24px; height: 2px; background: var(--cyan); }
.flow__key--review::before { width: 24px; border-top: 1.5px dashed var(--violet); }
.flow__key--unsure::before { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--pale); }
.ex__fig .caption { margin-top: 16px; }
.ex__notes { margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ex__notes dt { font-weight: 650; color: var(--ink); }
.ex__notes dd { margin: 8px 0 0; color: var(--ink-2); }
/* The example assembles once, in order, when it comes into view (transform and opacity only). */
html.js:not(.motion-off) .flow[data-flow] .flow__node, html.js:not(.motion-off) .flow[data-flow] .flow__branch { opacity: 0; transform: translateY(12px); transition: opacity .45s ease-out, transform .45s ease-out; }
html.js:not(.motion-off) .flow[data-flow] .flow__node::after { transform: scaleX(0); transition: transform .35s ease-out; }
html.js:not(.motion-off) .flow.is-in .flow__node, html.js:not(.motion-off) .flow.is-in .flow__branch { opacity: 1; transform: none; }
html.js:not(.motion-off) .flow.is-in .flow__node::after { transform: none; }
.flow.is-in .flow__step:nth-child(2) .flow__node { transition-delay: .25s; }
.flow.is-in .flow__step:nth-child(1) .flow__node::after { transition-delay: .2s; }
.flow.is-in .flow__step:nth-child(2) .flow__node::after { transition-delay: .45s; }
.flow.is-in .flow__step:nth-child(2) .flow__branch { transition-delay: .6s; }
.flow.is-in .flow__step:nth-child(3) .flow__node { transition-delay: .5s; }
.flow.is-in .flow__step:nth-child(3) .flow__node::after { transition-delay: .7s; }
.flow.is-in .flow__step:nth-child(4) .flow__node { transition-delay: .75s; }
.flow.is-in .flow__step:nth-child(4) .flow__branch { transition-delay: 1.05s; }
.faq--home { padding-bottom: 96px; }

.close { position: relative; z-index: 11; height: calc(var(--u, 1lvh) * 260); }
.close__stage { position: sticky; top: 0; height: calc(var(--u, 1lvh) * 100); }
.close__run { height: calc(var(--u, 1lvh) * 160); }
.close__copy { position: absolute; left: 0; top: 0; width: 100%; text-align: center; opacity: 0; transition: opacity 250ms linear; pointer-events: none; }
.close__copy.is-shown { opacity: 1; pointer-events: auto; }
.close__copy .eyebrow { margin-bottom: 10px; }
.close__head h2, .close__head .eyebrow { text-shadow: 0 0 4px var(--bg), 0 0 16px var(--bg), 0 0 32px var(--bg); }
.close__copy h2 { color: var(--ink); font-size: 56px; line-height: 1.12; }
.close__body { color: var(--ink-2); font-size: 22px; line-height: 1.45; max-width: 720px; margin: 16px auto 0; }
.close__act { margin-top: 24px; }
.close__line { margin-top: 14px; color: var(--ink-3); font-size: 15px; }
/* Parts placed below the aperture's lower lip sit over the strand: give them a backing. */
.close__copy .below { background: rgba(5, 6, 9, .78); border-radius: 16px; padding: 12px 8px; box-shadow: 0 0 30px 18px rgba(5, 6, 9, .78); }
.close__copy .close__line.below { color: var(--ink-2); }
/* Without the 3D world (no WebGL, or it failed to load) the opening's copy shows as normal text. */
html.world-failed .close { height: auto; }
html.world-failed .close__stage { position: relative; height: auto; padding: 96px var(--gutter); }
html.world-failed .close__run { display: none; }
html.world-failed .close__copy { position: static; opacity: 1; pointer-events: auto; }

/* ---- enquiry form (home: a section below the opening; contact page: the page's body) ---- */
.enq { position: relative; z-index: 10; background: var(--bg); padding: 88px var(--gutter) 96px; scroll-margin-top: var(--hdr); }
.home .enq::before { content: ""; position: absolute; left: 0; right: 0; top: -240px; height: 240px; pointer-events: none;
  background: linear-gradient(rgba(5, 6, 9, 0), var(--bg) 60%); }
.enq__in { max-width: var(--measure); margin: 0 auto; }
.enq h2 { font-size: clamp(30px, 3vw, 44px); }
.enq__lead { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 36em; }
.enq__chip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 20px; padding: 10px 14px; border-radius: 12px;
  background: rgba(88, 214, 255, .08); box-shadow: inset 0 0 0 1px rgba(88, 214, 255, .35); color: var(--ink-2); font-size: 15px; }
.enq__chip[hidden] { display: none; }
.enq__chip b { color: var(--ink); font-weight: 650; }
.enq__change { margin-left: auto; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent;
  box-shadow: inset 0 0 0 1px rgba(88, 214, 255, .45); color: var(--cyan); font: 600 14px/1 var(--font); cursor: pointer; }
.enq__form { margin-top: 28px; display: grid; gap: 20px; }
.enq__form[hidden] { display: none; }
.enq__row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.fld { display: grid; gap: 8px; align-content: start; min-width: 0; }
.fld label { font-weight: 650; font-size: 16px; color: var(--ink); }
.fld .req, .fld .opt { font-weight: 400; font-size: 13px; color: var(--ink-2); margin-left: 6px; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 0; background: #0d1017;
  box-shadow: inset 0 0 0 1px rgba(236, 240, 247, .22); color: var(--ink); font: 400 16px/1.4 var(--font); }
.fld select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.fld select option { background: #0d1017; color: var(--ink); }
.fld textarea { resize: vertical; min-height: 132px; }
.fld ::placeholder { color: #8C97A8; opacity: 1; }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.fld [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #ff8a9a; }
.fld [aria-invalid="true"]:focus-visible { outline-color: #ff8a9a; outline-offset: 0; box-shadow: none; }
.fld { scroll-margin-top: calc(var(--hdr) + 24px); }
.fld .req, .fld .opt { white-space: nowrap; }
.fld__help { font-size: 14px; color: var(--ink-2); }
.fld__err { font-size: 14px; color: #ffa3af; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enq__error { padding: 14px 16px; border-radius: 12px; background: rgba(255, 138, 154, .1); box-shadow: inset 0 0 0 1px rgba(255, 138, 154, .45); color: var(--ink); }
.enq__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.enq__act .btn[disabled] { opacity: .7; cursor: progress; }
.enq__privacy { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-size: 15px; }
.enq__done { margin-top: 28px; padding: 24px; border-radius: 16px; background: rgba(88, 214, 255, .08); box-shadow: inset 0 0 0 1px rgba(88, 214, 255, .35); }
.enq__done-msg { font-size: 20px; font-weight: 600; color: var(--ink); }
.enq__alt, .enq__nojs { margin-top: 28px; color: var(--ink-2); font-size: 15px; }
.enq a { color: var(--ink); }
.enq .btn--primary { color: var(--bg); }

/* ---- footer ---- */
.ftr { position: relative; z-index: 10; background: var(--bg); border-top: 1px solid var(--line); padding: 56px var(--gutter) 40px; color: var(--ink-2); font-size: 15px; }
.ftr__top { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(140px, 1fr)); gap: 32px; }
.ftr__brand img { height: 34px; width: auto; }
.ftr__desc { margin-top: 16px; max-width: 26em; }
.ftr__contact { margin-top: 14px; line-height: 2; }
.ftr__contact a { color: var(--ink); }
.ftr__col { display: flex; flex-direction: column; align-items: flex-start; }
.ftr__h { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.ftr__col a { display: inline-flex; align-items: center; min-height: 40px; min-width: 44px; text-decoration: none; color: var(--ink-2); }
.ftr__col a:hover { color: var(--ink); text-decoration: underline; }
.ftr__base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ftr__reg { font-size: 14px; color: var(--ink-2); max-width: 60em; }
.ftr__credit { font-size: 13px; color: var(--ink-3); }
.ftr__credit a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-underline-offset: 3px; }
.ftr__credit a:hover { color: var(--cyan); }

/* ---- inner pages ---- */
.phero { padding: 88px var(--gutter) 40px; }
.phero__in, .sec__in, .cta-band__in, .legal { max-width: 1120px; margin: 0 auto; }
.phero h1 { font-size: clamp(36px, 4.4vw, 60px); max-width: 16em; }
.phero .lede { margin-top: 20px; color: var(--ink-2); }
.figure { margin: 8px auto 0; max-width: 1120px; padding: 0 var(--gutter); box-sizing: content-box; }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; background: var(--bg-2); }
.figure__frame { display: block; overflow: hidden; border-radius: 20px; clip-path: inset(0 round 20px); }
.figure__frame img { border-radius: 0; }
.figure figcaption { margin-top: 12px; font: 400 12px/1.4 var(--mono); letter-spacing: .06em; color: #A3AEBF; }
.sec { padding: 56px var(--gutter) 0; }
.sec__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 48px; }
.sec h2 { font-size: clamp(28px, 2.2vw, 32px); }
.prose { color: var(--ink-2); max-width: var(--measure); }
.prose > * + * { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose a:hover { color: var(--cyan); }
.prose h2 { color: var(--ink); font-size: 28px; line-height: 1.2; margin-top: 40px; scroll-margin-top: calc(var(--hdr) + 16px); }
.prose h3 { color: var(--ink); margin-top: 28px; }
.faq { padding: 64px var(--gutter) 0; }
.faq__in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 48px; }
.faq__list { display: grid; gap: 0; max-width: var(--measure); }
.faq__in > h2, .faq__in > .doc__head { position: sticky; top: calc(var(--hdr) + 24px); align-self: start; }
.faq__item { padding: 22px 0; border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item p { margin-top: 10px; color: var(--ink-2); }
.faq__item a { color: var(--ink); }
.cta-band { padding: 88px var(--gutter) 96px; }
.cta-band__in { padding: 40px; border-radius: 24px; background: linear-gradient(135deg, rgba(88, 214, 255, .10), rgba(88, 214, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(88, 214, 255, .28); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-band h2 { font-size: clamp(28px, 2.6vw, 38px); max-width: 18em; }
.cta-band p { margin-top: 10px; color: var(--ink-2); max-width: 36em; }
.cards { padding: 24px var(--gutter) 0; }
.cards__in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; clip-path: inset(0 round 20px); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body h2 { font-size: 26px; }
.card__body .prose { max-width: none; }
.card__cap { font: 400 12px/1.4 var(--mono); letter-spacing: .06em; color: #A3AEBF; padding: 10px 28px 0; }
.legal { padding: 0 var(--gutter) 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px 56px; box-sizing: content-box; }
.legal-meta { margin-top: 16px; color: var(--ink-3); font-size: 15px; }
.toc { position: sticky; top: calc(var(--hdr) + 24px); align-self: start; }
.toc__title { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; display: grid; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--ink); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table { min-width: 560px; }
.table td:first-child, .table td:nth-child(2) { white-space: nowrap; }
.table th { color: var(--ink); font-weight: 650; }

/* ---- inner pages: gentle motion (html.rv-on) ---- */
@keyframes dg-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes dg-drift { from { transform: scale(1.02) translate3d(-0.6%, 0.4%, 0); } to { transform: scale(1.07) translate3d(0.6%, -0.4%, 0); } }
.rv-on .phero__in > * { animation: dg-rise 700ms cubic-bezier(.2, .7, .2, 1) both; }
.rv-on .phero__in > :nth-child(2) { animation-delay: 80ms; }
.rv-on .phero__in > :nth-child(3) { animation-delay: 160ms; }
.rv-on .phero__in > :nth-child(4) { animation-delay: 240ms; }
.rv-on .figure, .rv-on .sec__in, .rv-on .faq__item, .rv-on .card, .rv-on .cta-band__in, .rv-on .page .enq__in {
  opacity: 0; transform: translateY(10px); transition: opacity 450ms ease-out, transform 450ms cubic-bezier(.2, .7, .2, 1); }
.rv-on .is-in, .rv-on .page .enq__in.is-in { opacity: 1; transform: none; }
.rv-on .figure__frame img, .rv-on .card img { animation: dg-drift 22s ease-in-out infinite alternate; will-change: transform; }
.rv-on .card:nth-child(2) img { animation-delay: -6s; }
.rv-on .card:nth-child(3) img { animation-delay: -12s; }
.rv-on .card:nth-child(4) img { animation-delay: -17s; }
html.motion-off .figure__frame img, html.motion-off .card img { animation: none; }
@media print { .rv-on .figure, .rv-on .sec__in, .rv-on .faq__item, .rv-on .card, .rv-on .cta-band__in, .rv-on .page .enq__in { opacity: 1; transform: none; } }

/* Small landscape screens: narrower chapter panels leave the operation in view. */
@media (orientation: landscape) and (max-width: 1180px) { .ch__copy, .conn__copy { max-width: 400px; } .ch__copy h2 { font-size: 26px; } }

@media (max-width: 1100px) {
  .hdr__nav a:not(.btn) { padding: 0 9px; }
  .ftr__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .faq__in > h2, .faq__in > .doc__head { position: static; }
  .sec__in, .faq__in, .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .cards__in { grid-template-columns: minmax(0, 1fr); }
  .appr__steps, .ex__notes { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .appr__steps::before { left: 41px; right: auto; top: 46px; bottom: 46px; width: 1px; height: auto; }
  /* The example runs down the page: the automated route on the left, reviews stepped in. */
  .flow { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .flow__step { gap: 20px; }
  /* One continuous route down the left, behind the steps; reviews branch off it to the right. */
  .flow::before { content: ""; position: absolute; left: 32px; top: 38px; bottom: 26px; width: 2px; background: var(--auto); transform-origin: center top; }
  .flow__step:not(:last-child) .flow__node::after { display: none; }
  .flow__branch { margin-left: 56px; }
  .flow__branch::before { left: -25px; bottom: auto; top: 50%; width: 24px; height: 0; border-left: 0; border-top: 1.5px dashed var(--review); }
  html.js:not(.motion-off) .flow[data-flow]::before { transform: scaleY(0); transition: transform 1s ease-out .15s; }
  html.js:not(.motion-off) .flow.is-in::before { transform: none; }
  .ex__rails img { top: 0; left: auto; right: 0; width: 50%; height: 100%; object-fit: cover; object-position: left center; }
}

/* ---- portrait / phones ---- */
@media (orientation: portrait), (max-width: 760px) {
  :root { --hdr: 60px; --gutter: 16px; }
  .rail { display: none; }
  .hdr__lockup { display: none; }
  .hdr__mark { display: block; }
  /* Phones: copy scrolls past under the header, so the band behind its controls is near solid. */
  .home .hdr { background: var(--bg); box-shadow: 0 12px 20px 4px var(--bg); }
  .motion { padding: 0 10px; font-size: 12px; }
  .hdr .motion { margin-left: auto; }
  .hdr__cta { min-height: 44px; padding: 0 16px; font-size: 16px; }
  /* Navigation folds into a menu; the header keeps the logo, the motion setting and the menu. */
  .js .hdr__menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
    background: rgba(5, 6, 9, .72); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 600 15px/1 var(--font); order: 3; }
  .js .hdr__cta { display: none; }
  
  .js .hdr__nav { display: none; position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; margin: 0; padding: 8px var(--gutter) 32px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); box-shadow: 0 1px 0 var(--line); overflow-y: auto; overscroll-behavior: contain; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .js .hdr.is-open .hdr__nav { display: flex; }
  .js .hdr__nav a:not(.btn) { min-height: 52px; padding: 0 4px; border-radius: 0; background: none; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .js .hdr__nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); padding-left: 14px; }
  .js .hdr__nav .hdr__navcta { display: inline-flex; margin-top: 16px; }
  html:not(.js) .hdr { height: auto; min-height: var(--hdr); flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  html:not(.js) .hdr__nav { flex-wrap: wrap; margin-left: 0; width: 100%; }
  .panel { padding: 20px 20px 22px; border-radius: 16px; }
  /* Over the 3D on phones and tablets: a denser backing whose edges dissolve into the scene. */
  .home .panel { background: rgba(5, 6, 9, .9); box-shadow: 0 0 60px 34px rgba(5, 6, 9, .9); }
  /* Shorter scroll stretches between chapters: fewer screens with nothing to read. */
  .ch__transit { height: calc(var(--u, 1lvh) * 55); }
  .ch__read { height: calc(var(--u, 1lvh) * 135); }
  .ch__exit { height: calc(var(--u, 1lvh) * 25); }
  .conn__in { height: calc(var(--u, 1lvh) * 40); } /* the pull-back to the overview (f937-990) is the largest camera move */
  .conn__read { height: calc(var(--u, 1lvh) * 170); }
  .conn__out { height: calc(var(--u, 1lvh) * 40); }
  .ch { scroll-margin-top: calc(var(--u, 1lvh) * -50); }
  .hero { align-items: flex-start; padding-top: calc(var(--hdr) + 16px); }
  .lede { font-size: 17px; }
  /* Phones: the copy scrolls through once, then the operation has the frame to itself. */
  .ch__copy, .conn__copy, .ch--low .ch__copy { position: relative; top: auto; bottom: auto; margin-top: 0; }
  h1 br { display: none; }
  .close__copy h2 { font-size: 28px; line-height: 1.15; }
  .close__body { font-size: 16px; }
  .close__copy .btn--lg { min-height: 48px; font-size: 16px; padding: 0 24px; }
  .doc__sec { padding-top: 64px; }
  .ex__fig { padding: 24px 16px 20px; }
  .enq { padding: 64px var(--gutter) 72px; }
  .enq__row { grid-template-columns: 1fr; }
  .enq .btn--lg { width: 100%; }
  .phero { padding-top: 48px; }
  .cta-band { padding: 64px var(--gutter) 72px; }
  .cta-band__in { padding: 28px 22px; }
  .cta-band .btn { width: 100%; }
  .ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  h1 { font-size: 34px; }
  .lede { font-size: 16px; }
  .hero { padding-top: calc(var(--hdr) + 8px); }
  .caps__index a { flex-wrap: wrap; row-gap: 2px; padding: 8px 0; }
  .caps__sup { flex-basis: 100%; margin-left: 32px; }
}
@media (max-width: 380px) {
  h1 { font-size: 30px; }
  .motion { padding: 0 8px; }
  .js .hdr__menu { padding: 0 12px; }
  .ftr__top { grid-template-columns: minmax(0, 1fr); }
}

/* ---- reduced motion / motion off ---- */
html.motion-off *, html.motion-off *::before, html.motion-off *::after { scroll-behavior: auto !important; }
html.motion-off .rail a span { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .rail a span, .close__copy, .poster { transition: none; }
}
