/* ══════════════════════════════════════════════════════════════════════
   LONGLAST CAPITAL — site.css

   Layout and components for every page. All fonts, colors, sizes and
   spacing come from theme.css — edit that file to restyle the site.

   Contents
     1  Base               6  Sections + shared pieces
     2  Header + menu      7  Interior pages (side rail, prose)
     3  Buttons + links    8  Holdings, letters, forms
     4  Reveals            9  Footer
     5  Page bands        10  Small screens (the logo intro sits just before it)
                          11  The Labs page (with its own small-screen rules)
   ══════════════════════════════════════════════════════════════════════ */


/* ── 1 · BASE ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    font-size: var(--size-base);
    scroll-behavior: smooth;
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
}
body {
    background: var(--color-bg);
    color: var(--color-body);
    font-family: var(--font-body);
    font-weight: var(--weight-body);
    font-size: 1rem;
    line-height: var(--line-body);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    color: var(--color-heading);
}
strong { font-family: var(--font-display); font-weight: var(--weight-strong); }
a { color: inherit; }
img, svg { display: block; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: var(--color-accent-tint); }
[id] { scroll-margin-top: calc(var(--header-height) + 24px); }

/* the page container: content never wider than --max-width */
.shell {
    width: 100%;
    max-width: calc(var(--max-width) + 2 * var(--page-pad));
    margin: 0 auto;
    padding: 0 var(--page-pad);
}

/* small uppercase mono label */
.earmark {
    font-family: var(--font-mono); font-weight: var(--weight-mono);
    font-size: var(--size-label); letter-spacing: var(--track-label);
    line-height: 1.4; text-transform: uppercase; color: var(--color-muted);
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--color-heading); color: var(--color-on-solid); padding: 10px 16px;
    border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* text for screen readers only (it is there, but takes no room and cannot be seen) */
.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}


/* ── 2 · HEADER + MENU ────────────────────────────────────────────────── */

header.site {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    height: var(--header-height);
    display: flex; align-items: center; gap: 28px;
    padding: 0 max(var(--page-pad), calc((100% - var(--max-width)) / 2));
    border-bottom: var(--hairline) solid transparent;
    transition: background var(--speed-button) ease, border-color var(--speed-button) ease;
}
header.site.scrolled, header.site.menu-open {
    background: color-mix(in srgb, var(--color-bg) 93%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom-color: var(--color-line-soft);
}

.lockup {
    display: flex; align-items: center; gap: 12px;
    color: var(--color-ink); text-decoration: none; margin-right: auto;
}
.lockup svg { height: 26px; width: auto; }
.lockup path, .ghost path { fill: none; stroke: currentColor; stroke-width: 9; }
.lockup .word {
    font-family: var(--font-display); font-weight: var(--weight-display);
    font-size: 20px; letter-spacing: .2px; white-space: nowrap;
}

nav.primary { display: flex; align-items: center; gap: 30px; }
nav.primary a {
    font-size: .8333rem; color: var(--color-heading); text-decoration: none;
}
nav.primary a[aria-current="page"]::after { transform: none; }

.nav-cta {
    display: inline-flex; align-items: center; min-height: 40px; padding: 6px 18px;
    font-size: 12px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
    color: var(--color-heading); border: var(--hairline) solid currentColor; border-radius: var(--radius);
    transition: background var(--speed-button) ease, border-color var(--speed-button) ease, color var(--speed-button) ease;
}
.nav-cta:hover { background: var(--color-line); border-color: var(--color-line); color: var(--color-on-solid); }

.menu-btn {
    display: none; width: 40px; height: 40px; place-items: center; cursor: pointer;
    background: transparent; color: var(--color-heading);
    border: var(--hairline) solid currentColor; border-radius: var(--radius);
}
.menu-glyph { position: relative; width: 14px; height: 9px; }
.menu-glyph::before, .menu-glyph::after {
    content: ''; position: absolute; left: 0; right: 0; height: 1px;
    background: currentColor; transition: transform var(--speed-hover) ease-in-out;
}
.menu-glyph::before { top: 0; }
.menu-glyph::after { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-glyph::before { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-glyph::after { transform: translateY(-4px) rotate(-45deg); }

/* the drop-down menu (phones + tablets) */
.scrim {
    position: fixed; inset: 0; z-index: 48; background: rgba(30, 33, 36, .35);
    opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.scrim.on { opacity: 1; pointer-events: auto; }
.launchpad {
    position: fixed; left: 0; right: 0; top: 0; z-index: 49;
    background: var(--color-bg); border-bottom: var(--hairline) solid var(--color-line);
    padding: calc(var(--header-height) + 28px) var(--page-pad) 36px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
}
.launchpad.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gutter); }
.lp-grid .earmark { display: block; border-bottom: var(--hairline) solid currentColor; padding-bottom: 12px; }
.lp-links { margin-top: 12px; }
.lp-links a { padding: 7px 0 4px; font-size: 1rem; color: var(--color-heading); text-decoration: none; }


/* ── 3 · BUTTONS + LINKS ──────────────────────────────────────────────── */

/* underline that wipes in from the left on hover */
.uw { position: relative; display: inline-block; overflow: hidden; padding-bottom: 3px; vertical-align: bottom; }
.uw::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: currentColor; transform: translateX(-101%);
    transition: transform var(--speed-hover) ease-in-out;
}
.uw:hover::after { transform: none; }

.btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 18px;
    font-family: var(--font-body); font-size: 12px; letter-spacing: .02em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; background: transparent;
    color: var(--color-heading); border: var(--hairline) solid currentColor; border-radius: var(--radius);
    transition: background var(--speed-button) ease, color var(--speed-button) ease, border-color var(--speed-button) ease;
}
.btn:hover { background: var(--color-line); border-color: var(--color-line); color: var(--color-on-solid); }
.btn.solid { background: var(--color-heading); border-color: var(--color-heading); color: var(--color-on-solid); padding: 6px 28px; }
.btn.solid:hover { background: var(--color-line); border-color: var(--color-line); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.ar { display: inline-block; transition: transform var(--speed-hover) ease-in-out; }
a:hover .ar, button:hover .ar { transform: translateX(4px); }

/* arrow link used inside copy */
.more {
    display: inline-flex; gap: 8px; margin-top: 22px; text-decoration: none;
    font-size: .8333rem; color: var(--color-accent);
}


/* ── 4 · REVEALS ──────────────────────────────────────────────────────── */
/* Content fades up once, on first view. Without JavaScript, or with
   reduced motion, everything is simply visible.                          */

html.js .obs {
    opacity: 0; transform: translateY(14px);
    transition: opacity var(--speed-reveal) ease, transform var(--speed-reveal) var(--ease);
}
html.js .obs.in { opacity: 1; transform: none; }
html.js .obs.d2 { transition-delay: .12s; }
html.js .obs.d3 { transition-delay: .24s; }

html.js .wl { clip-path: inset(0 100% 0 0); transition: clip-path var(--speed-hero) var(--ease) .15s; }
html.js .wl.d2 { transition-delay: .27s; }
html.js .wl.d3 { transition-delay: .39s; }
html.js body.in .wl { clip-path: inset(0 0 0 0); }

html.noanim *, html.noanim *::before, html.noanim *::after { transition: none !important; animation: none !important; }
html.noanim .obs { opacity: 1; transform: none; }
html.noanim .wl { clip-path: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .obs { opacity: 1; transform: none; transition: none; }
    html.js .wl { clip-path: none; transition: none; }
}


/* ── 5 · PAGE BANDS (the tinted block behind every page title) ─────────── */

.hero, .page-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, var(--color-band-top), var(--color-band-bottom));
}
.hero { padding: calc(var(--header-height) + var(--section-space) * .9) 0 calc(var(--section-space) * .95); }
.page-hero { padding: calc(var(--header-height) + var(--section-space) * .7) 0 calc(var(--section-space) * .6); }
.hero .shell, .page-hero .shell { position: relative; }

/* the ghosted mark */
.ghost {
    position: absolute; top: 50%; height: 84%; width: auto; aspect-ratio: 1;
    right: max(var(--page-pad), calc((100% - var(--max-width)) / 2));
    transform: translateY(-44%); color: var(--color-band-mark); pointer-events: none;
}
.page-hero .ghost {
    top: calc(var(--header-height) + 12px); transform: none;
    height: calc(100% - var(--header-height) - 44px);
}

.hero h1 {
    color: var(--color-ink);
    font-size: var(--size-hero); line-height: .98; letter-spacing: var(--track-display);
}
.hero h1 .wl { display: block; padding-bottom: .14em; margin-bottom: -.14em; }
.hero-sub { margin-top: 36px; max-width: 44ch; font-size: 1.1111rem; line-height: 1.3; }
.hero-cta { margin-top: 44px; display: flex; gap: 12px; flex-wrap: wrap; }

.page-hero h1 {
    color: var(--color-ink); max-width: 16ch;
    font-size: var(--size-h1); line-height: var(--line-heading); letter-spacing: var(--track-display);
    padding-bottom: .14em; margin-bottom: -.14em;
}
.page-hero .lede { margin-top: 26px; max-width: 44ch; font-size: 1.1111rem; line-height: 1.3; }


/* ── 6 · SECTIONS + SHARED PIECES ─────────────────────────────────────── */

main { padding-bottom: var(--section-space); }
main.flush { padding-bottom: 0; }      /* pages built from bands */

/* A section is a full-width band. Bands are separated by a change of color
   (add "tint") or by a hairline (add "line", for a white band that follows a
   white band). Every edge has the same --section-space of air on both sides.
   Inside a band the title sits in the left rail and the content on the
   right, on the same two lines as every other page. Blocks inside a section
   are one --block-gap apart. */
.band { padding: var(--section-space) 0; }
.band[id] { scroll-margin-top: calc(var(--header-height) - var(--section-space) / 2); }
.tint { background: linear-gradient(180deg, var(--color-band-top), var(--color-band-bottom)); }
.band.line { padding-top: 0; }
.band.line::before {
    content: ''; display: block; height: 1px; background: var(--color-line);
    width: calc(100% - 2 * var(--page-pad)); max-width: var(--max-width);
    margin: 0 auto var(--section-space);
}

.rail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0 var(--gutter); }
.rail-head {
    position: sticky; top: calc(var(--header-height) + 28px); align-self: start;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px;
}
.no {
    font-family: var(--font-mono); font-weight: var(--weight-mono);
    font-size: var(--size-label); letter-spacing: var(--track-label); color: var(--color-accent);
}
.rail-head .no { color: var(--color-muted); }
.rail-head h2 { font-size: var(--size-section); line-height: 1.1; letter-spacing: -0.01em; }
/* a status or sub-label under a section title, e.g. "In development" */
.rail-head .sub {
    flex-basis: 100%; margin-top: 14px; padding-left: 30px;
    text-transform: none; letter-spacing: .02em; font-size: 12px; color: var(--color-accent);
}
.rail-body > * + * { margin-top: var(--block-gap); }
.rail-body > .note { margin-top: 24px; }

/* the one large statement that leads a section */
.lede {
    font-family: var(--font-display); font-weight: var(--weight-display); color: var(--color-heading);
    font-size: var(--size-lede); line-height: 1.16; letter-spacing: -0.015em;
    max-width: 21em; text-wrap: balance;
}
.lede em { font-style: normal; color: var(--color-accent); }

/* supporting text: quieter, in two columns */
.cols {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px calc(var(--gutter) * 2);
    max-width: 58rem; color: var(--color-mid);
}

/* three short points side by side */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--gutter) * 1.6); }
.trio li { border-top: var(--hairline) solid var(--color-heading); padding-top: 24px; }
.trio h3 { font-size: var(--size-h3); line-height: 1.2; margin: 26px 0 10px; }
.trio p { font-size: .8889rem; color: var(--color-mid); }

/* rows that open: one line showing, the rest on click.
   These are plain <details>, so they work without JavaScript. site.js adds
   "is-enhanced" and then the opening is animated: the row grows, the text
   rises in, the plus turns into a minus and an accent line draws across. */
.acc-item { position: relative; border-bottom: var(--hairline) solid var(--color-line-soft); }
.acc-item summary, .acc-more {
    display: grid; gap: 0 var(--gutter);
    grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.7fr) 1.6rem;
}
.acc-item summary { align-items: baseline; padding: 36px 0; cursor: pointer; list-style: none; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item:first-child summary { padding-top: 0; }
.acc-item h3 { font-size: var(--size-h3); line-height: 1.2; transition: color var(--speed-hover) ease-in-out; }
.acc-glyph {
    position: relative; width: 13px; height: 13px; justify-self: end; align-self: center;
    color: var(--color-heading);
    transition: transform var(--speed-open) var(--ease), color var(--speed-hover) ease-in-out;
}
.acc-glyph::before, .acc-glyph::after { content: ''; position: absolute; background: currentColor; }
.acc-glyph::before { left: 0; right: 0; top: 6px; height: 1px; }
.acc-glyph::after { top: 0; bottom: 0; left: 6px; width: 1px; transition: transform var(--speed-open) var(--ease); }
.acc-item summary:hover .acc-glyph { color: var(--color-accent); }
.acc-more { grid-template-rows: 1fr; color: var(--color-mid); }
.acc-more > div { grid-column: 3; position: relative; top: -20px; min-height: 0; overflow: hidden; }
.acc-more p + p { margin-top: 12px; }
.acc-more p:last-child { padding-bottom: 20px; }

/* open */
.acc-item[open] h3 { color: var(--color-accent); }
.acc-item[open] .acc-glyph { transform: rotate(180deg); color: var(--color-accent); }
.acc-item[open] .acc-glyph::after { transform: scaleY(0); }

/* animated open and close, once site.js has taken over */
.acc.is-enhanced .acc-item::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--color-accent); transform: scaleX(0); transform-origin: left;
    transition: transform calc(var(--speed-open) * 1.4) var(--ease);
}
.acc.is-enhanced .acc-more { grid-template-rows: 0fr; transition: grid-template-rows var(--speed-open) var(--ease); }
.acc.is-enhanced .acc-more p { opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.acc.is-enhanced .acc-item:not(.is-open) h3 { color: var(--color-heading); }
.acc.is-enhanced .acc-item:not(.is-open) .acc-glyph { transform: none; color: var(--color-heading); }
.acc.is-enhanced .acc-item:not(.is-open) summary:hover .acc-glyph { color: var(--color-accent); }
.acc.is-enhanced .acc-item:not(.is-open) .acc-glyph::after { transform: none; }
.acc.is-enhanced .acc-item.is-open::after { transform: scaleX(1); }
.acc.is-enhanced .acc-item.is-open .acc-more { grid-template-rows: 1fr; }
.acc.is-enhanced .acc-item.is-open .acc-more p {
    opacity: 1; transform: none;
    transition: opacity .45s ease .16s, transform var(--speed-open) var(--ease) .16s;
}
.acc.is-enhanced .acc-item.is-open .acc-more p + p { transition-delay: .26s; }

/* a diagram saved as a picture, on a panel of the picture's own ground color, so the panel
   and the picture read as one. The page picks the drawing that suits the window: the wide
   one here, a narrower one and a tall one under "SMALL SCREENS".
   "trim" is for a wide drawing with empty ground at its two sides: a little of that ground
   is cut away (the 110%), so the drawing's words come out larger. */
.figure { background: var(--color-figure, #f2f5f9); border-radius: var(--radius); overflow: hidden; padding: 20px 28px; }
.figure picture { display: block; }
.figure img { width: 100%; height: auto; }      /* the page's img carries the same two values itself, for the minutes after an upload when an older style sheet can still arrive */
@media (min-width: 77.5625em) {   /* 1241px and up: the wide drawing */
    .figure.trim { padding: 18px 0; }
    .figure.trim picture { width: 110%; margin-left: -5%; }
}

/* the one statement a page wants to land: a tinted band with larger type */
.statement .lede { font-size: var(--size-h2); line-height: 1.06; letter-spacing: var(--track-display); }
.statement .cols { color: var(--color-body); }
.tint .acc-item, .tint .row { border-bottom-color: var(--color-line); }

/* two equal columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--gutter) * 2.6); align-items: start; }
.copy .kv { margin-top: 40px; }
.copy .kv + .note { margin-top: 30px; }
.note { font-size: .8333rem; color: var(--color-mid); }

/* arrow link */
.more {
    display: inline-flex; gap: 8px; text-decoration: none;
    font-size: .8333rem; color: var(--color-accent);
}

/* label / value list */
.kv li {
    display: flex; gap: 14px; align-items: baseline; padding: 16px 0;
    border-top: var(--hairline) solid var(--color-heading); font-size: .8889rem;
}
.kv li:last-child { border-bottom: var(--hairline) solid var(--color-heading); }
.kv .k {
    min-width: 96px; font-family: var(--font-mono); font-weight: var(--weight-mono);
    font-size: var(--size-label); letter-spacing: var(--track-label);
    text-transform: uppercase; color: var(--color-muted);
}
.kv a { text-decoration: none; }

/* plain rows: number · title · one line */
.row {
    display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 0 var(--gutter); align-items: baseline; padding: 32px 0;
    border-bottom: var(--hairline) solid var(--color-line-soft);
}
.rows .row:first-child { border-top: var(--hairline) solid var(--color-heading); }
.row h3 { font-size: var(--size-h3); line-height: 1.2; }
.row p { color: var(--color-mid); }

/* large-name list: a big name on the left, details on the right, hairlines
   between. No boxes. Used for the platforms and the case studies. */
.names { border-top: var(--hairline) solid var(--color-heading); }
.name-row {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px var(--gutter);
    align-items: start; padding: 44px 0; text-decoration: none;
    border-bottom: var(--hairline) solid var(--color-line-soft);
}
.name-row h3 {
    font-size: var(--size-display); line-height: 1; letter-spacing: var(--track-display);
    transition: color var(--speed-hover) ease-in-out;
}
.name-row > div { padding-top: 10px; }
.name-row .earmark { display: block; margin-bottom: 12px; text-transform: none; letter-spacing: .02em; font-size: 12px; }
.name-row p { color: var(--color-mid); max-width: 30em; }
.name-row .more { margin-top: 24px; }
a.name-row:hover h3 { color: var(--color-accent); }
.tint .name-row { border-bottom-color: var(--color-line); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.tags span {
    font-family: var(--font-mono); font-weight: var(--weight-mono); font-size: 10px;
    letter-spacing: var(--track-label); text-transform: uppercase; color: var(--color-mid);
    border: var(--hairline) solid var(--color-line); border-radius: var(--radius); padding: 3px 7px;
}


/* ── 7 · INTERIOR PAGES ───────────────────────────────────────────────── */

/* side rail + content */
.doc {
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: var(--gutter); padding-top: var(--section-space);
}
.doc-aside { position: sticky; top: calc(var(--header-height) + 28px); align-self: start; }
.doc-aside .earmark { display: block; border-bottom: var(--hairline) solid currentColor; padding-bottom: 12px; }
.doc-aside ul { margin-top: 12px; max-width: 15rem; }
.doc-aside a { font-size: .8333rem; padding: 6px 0 4px; color: var(--color-heading); text-decoration: none; }

.prose { max-width: var(--text-width); }
.prose > * + * { margin-top: 1.3333rem; }
.prose h2 { font-size: 1.5556rem; line-height: 1.15; letter-spacing: -0.01em; margin-top: 3.5556rem; }
.prose h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: 1.1111rem; }
.prose .intro { font-size: 1.2222rem; line-height: 1.35; color: var(--color-heading); }
.prose a:not(.btn) {
    color: var(--color-accent); text-decoration: underline;
    text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.prose a:not(.btn):hover { color: var(--color-heading); }
.prose ul, .prose ol { border-top: var(--hairline) solid var(--color-line-soft); }
.prose ul li, .prose ol li {
    position: relative; padding: 12px 0 12px 2rem;
    border-bottom: var(--hairline) solid var(--color-line-soft);
}
.prose ul li::before {
    content: ''; position: absolute; left: 3px; top: calc(12px + .5em);
    width: 6px; height: 6px; background: var(--color-accent);
}
.prose ol { counter-reset: step; }
.prose ol li { counter-increment: step; }
.prose ol li::before {
    content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: calc(12px + .35em);
    font-family: var(--font-mono); font-weight: var(--weight-mono); font-size: var(--size-label);
    letter-spacing: var(--track-label); color: var(--color-accent);
}

.callout {
    background: var(--color-panel); border: var(--hairline) solid var(--color-line);
    border-radius: var(--radius); padding: 24px 26px; margin-top: 2.2222rem;
}
.callout .earmark { display: block; margin-bottom: 12px; }
.callout p + p { margin-top: 8px; }
.callout .note { font-style: italic; }

.pull {
    margin-top: 2.2222rem; padding-left: 20px; border-left: var(--hairline) solid var(--color-ink);
    font-family: var(--font-display); font-weight: var(--weight-display);
    font-size: 1.3333rem; line-height: 1.25; color: var(--color-heading);
}
.fine {
    margin-top: 2.8889rem; padding-top: 16px; border-top: var(--hairline) solid var(--color-line-soft);
    font-size: .7778rem; line-height: 1.5; color: var(--color-muted);
}

.person {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 2.2222rem;
    padding: 20px 0; border-top: var(--hairline) solid var(--color-heading);
    border-bottom: var(--hairline) solid var(--color-line-soft);
}
.person b {
    display: block; font-family: var(--font-display); font-weight: var(--weight-display);
    font-size: var(--size-h3); line-height: 1.2; color: var(--color-heading); margin: 6px 0 4px;
}
.person .note { display: block; }


/* ── 8 · HOLDINGS, LETTERS, FORMS ─────────────────────────────────────── */

.htable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.htable th {
    text-align: left; padding: 0 12px 12px; border-bottom: var(--hairline) solid var(--color-heading);
    font-family: var(--font-mono); font-weight: var(--weight-mono); font-size: var(--size-label);
    letter-spacing: var(--track-label); text-transform: uppercase; color: var(--color-muted);
}
.htable td {
    padding: 16px 12px; border-bottom: var(--hairline) solid var(--color-line-soft);
    vertical-align: middle; transition: background var(--speed-hover) ease;
}
.htable tbody tr:hover td { background: var(--color-panel); }
.htable .num { text-align: right; }
.htable .rank {
    width: 4.5rem; font-family: var(--font-mono); font-weight: var(--weight-mono);
    font-size: var(--size-label); letter-spacing: var(--track-label); color: var(--color-muted);
}
.htable .sym {
    display: block; font-family: var(--font-display); font-weight: var(--weight-display);
    font-size: 1.2222rem; line-height: 1.15; color: var(--color-heading);
}
.htable .name { display: block; font-size: .7778rem; color: var(--color-muted); }
.htable .price, .htable .chg { font-family: var(--font-mono); font-weight: var(--weight-mono); font-size: .8889rem; white-space: nowrap; }
.htable .chg.up { color: var(--color-up); }
.htable .chg.down { color: var(--color-down); }
.htable .state td {
    padding: 44px 12px; text-align: center; color: var(--color-muted);
    font-family: var(--font-mono); font-size: var(--size-label);
    letter-spacing: var(--track-label); text-transform: uppercase;
}
.htable .state:hover td { background: transparent; }
.pulse {
    display: inline-block; width: 6px; height: 6px; margin-right: 10px; vertical-align: middle;
    background: var(--color-accent); animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .2; } }
.stamp { display: block; margin-top: 18px; text-align: right; min-height: 1.4em; }

.doc-list { border-top: var(--hairline) solid var(--color-heading); }
.doc-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 22px 0; border-bottom: var(--hairline) solid var(--color-line-soft);
}
.doc-list b {
    display: block; font-family: var(--font-display); font-weight: var(--weight-display);
    font-size: var(--size-h3); line-height: 1.2; color: var(--color-heading); margin-bottom: 6px;
}
.year { margin-bottom: 16px; }
.year h2 { font-size: var(--size-h2); line-height: 1; letter-spacing: var(--track-display); }

.form { display: grid; gap: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px var(--gutter); }
.field { display: block; }
.field .earmark { display: block; margin-bottom: 4px; }
.field input, .field textarea {
    display: block; width: 100%; padding: 10px 0; background: transparent; border: 0;
    border-bottom: var(--hairline) solid var(--color-mid); border-radius: 0; outline: none;
    transition: border-color var(--speed-hover) ease, box-shadow var(--speed-hover) ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus {
    border-bottom-color: var(--color-accent); box-shadow: 0 1px 0 var(--color-accent);
}
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { font-size: .8333rem; }
.form-status.ok { color: var(--color-accent); }
.form-status.err { color: var(--color-error); }


/* ── 9 · FOOTER ───────────────────────────────────────────────────────── */

.site-foot {
    background: var(--color-dark); color: var(--color-on-dark-body);
    padding: calc(var(--section-space) * .75) 0 40px;
}
.site-foot .lockup { color: var(--color-on-dark); margin-right: 0; }
/* footer labels are sentence case, not uppercase */
.site-foot .earmark { text-transform: none; letter-spacing: .02em; font-size: 12px; }
.foot-brand .earmark { display: block; margin-top: 18px; color: var(--color-on-dark-muted); }
.foot-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px var(--gutter); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gutter); }
.foot-cols .earmark {
    display: block; color: var(--color-on-dark-muted);
    border-bottom: var(--hairline) solid currentColor; padding-bottom: 12px;
}
.foot-cols ul { margin-top: 12px; }
.foot-cols li { font-size: .8333rem; padding: 5px 0 3px; }
.foot-cols a { color: var(--color-on-dark); text-decoration: none; }
.foot-fine {
    margin-top: 64px; padding-top: 22px; border-top: var(--hairline) solid var(--color-mid);
    font-size: .7222rem; line-height: 1.5; color: var(--color-on-dark-muted);
}
.foot-fine p { max-width: 96ch; }
.foot-fine p + p { margin-top: 8px; }


/* ── LOGO INTRO (intro.js) ─────────────────────────────────────────────── */
/* One continuous move. A cover in the band color hides the page; the mark
   draws itself, slows as it completes, then runs on off the end of its own
   lines while the cover fades away. Nothing stops and starts. */

html.intro-quick { --intro-time: var(--intro-quick-time); }   /* after the first page of a visit */

#loader {
    position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
    background: linear-gradient(180deg, var(--color-band-top), var(--color-band-bottom));
    animation: cover-out var(--intro-time) linear forwards;
}
#loaderMark {
    width: 88px; height: 88px; overflow: visible;
    animation: mark-drift var(--intro-time) linear forwards;
}
#loaderMark path { fill: none; stroke: var(--color-ink); stroke-width: 9; }
#lmSmall { stroke-dasharray: 58; stroke-dashoffset: 58; animation: mark-pass-small var(--intro-time) forwards; }
#lmBig { stroke-dasharray: 82; stroke-dashoffset: 82; animation: mark-pass-big var(--intro-time) forwards; }

/* the line draws in (slowing), then keeps travelling until it has left */
@keyframes mark-pass-small {
    0% { stroke-dashoffset: 58; animation-timing-function: cubic-bezier(.2, .6, .3, 1); }
    50% { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.7, 0, .8, .4); }
    100% { stroke-dashoffset: -58; }
}
@keyframes mark-pass-big {
    0% { stroke-dashoffset: 82; animation-timing-function: cubic-bezier(.2, .6, .3, 1); }
    50% { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.7, 0, .8, .4); }
    100% { stroke-dashoffset: -82; }
}
@keyframes mark-drift { from { transform: scale(.94); } to { transform: scale(1.06); } }
@keyframes cover-out { 0%, 50% { opacity: 1; } 100% { opacity: 0; } }


/* ── 10 · SMALL SCREENS ───────────────────────────────────────────────── */

@media (max-width: 77.5em) {      /* 1240px and below: the narrower drawing of a diagram, never shown much larger than it was drawn */
    .figure { padding: 20px clamp(18px, 3.2vw, 28px); }
    .figure picture { max-width: 704px; margin: 0 auto; }
}
@media (max-width: 60em) {        /* below 960px */
    nav.primary, header.site .nav-cta { display: none; }
    .menu-btn { display: grid; }

    .rail { grid-template-columns: 1fr; }
    .rail-head { position: static; margin-bottom: 32px; }
    .split { grid-template-columns: 1fr; gap: 48px; }
    .cols { grid-template-columns: 1fr; }
    .trio { grid-template-columns: 1fr; gap: 36px; }
    .trio h3 { margin-top: 18px; }
    .acc-item summary, .acc-more { grid-template-columns: 2.6rem minmax(0, 1fr) 1.6rem; }
    .acc-item summary { padding: 28px 0; }
    .acc-sum { grid-column: 2; grid-row: 2; margin-top: 10px; }
    .acc-glyph { grid-column: 3; grid-row: 1; }
    .acc-more > div { grid-column: 2; top: -12px; }
    .acc-more p:last-child { padding-bottom: 18px; }
    .row { grid-template-columns: 2.6rem minmax(0, 1fr); padding: 26px 0; }
    .row p { grid-column: 2; margin-top: 10px; }
    .name-row { grid-template-columns: 1fr; gap: 6px; padding: 32px 0; }

    .doc { grid-template-columns: 1fr; gap: 56px; }
    .doc-aside { position: static; order: 2; }
    .doc-aside.toc { display: none; }
    .foot-top { grid-template-columns: 1fr; }
    .foot-cols { grid-template-columns: 1fr 1fr; }
    .ghost { height: 70%; right: -6%; }
    .page-hero .ghost { display: none; }
}
@media (min-width: 60.0625em) {
    .scrim, .launchpad { display: none; }
}
@media (max-width: 37.5em) {      /* 600px and below: the tall drawing of a diagram (its lines run down its left side, so less room is left there) */
    .figure { padding: 14px 22px 14px 14px; }
    .figure picture { max-width: 360px; }
}
@media (max-width: 35em) {        /* below 560px */
    .ghost { display: none; }
    .lockup .word { font-size: 18px; }
    .field-row { grid-template-columns: 1fr; }
    .foot-cols > div:last-child { grid-column: span 2; }
    .htable th, .htable td { padding-left: 6px; padding-right: 6px; }
    .htable .rank { width: 2.4rem; }
    .person { flex-direction: column; align-items: flex-start; }
}


/* ── 11 · THE LABS PAGE ───────────────────────────────────────────────── */
/* labs.html has layouts of its own. They are all here, top of the page to
   the bottom, with their small-screen rules at the end. The moving parts
   are in labs.js (the platforms) and labs-year.js (the year that drains).
   The page is shown dark: see "DARK PAGES" in theme.css for how to make it
   light again.                                                            */

/* dark pages: a few pieces need more than new colors */
html[data-tone="dark"] { color-scheme: dark; }
html[data-tone="dark"] .site-foot { border-top: var(--hairline) solid var(--color-line-soft); }
html[data-tone="dark"] .nav-cta:hover, html[data-tone="dark"] .btn:hover {
    background: var(--color-heading); border-color: var(--color-heading); color: var(--color-on-solid);
}

/* a band that is dark even on a light page: the usual color names, pointed at the dark-band colors */
.lx-dark {
    background: var(--color-dark); color: var(--color-on-dark-body);
    --color-ink:         var(--color-on-dark);
    --color-heading:     var(--color-on-dark);
    --color-body:        var(--color-on-dark-body);
    --color-mid:         var(--color-on-dark-mid);
    --color-muted:       var(--color-on-dark-muted);
    --color-accent:      var(--color-on-dark-accent);
    --color-accent-tint: var(--color-on-dark-tint);
    --color-line:        var(--color-on-dark-line);
    --color-line-soft:   var(--color-on-dark-soft);
}

/* ·· the opener ··
   Quiet on purpose: the title, one sentence, and a list of what is on the
   page. The title sits low in the band, just above that list. "Labs" is
   drawn as an outline, the same outline the platform names and the year
   further down wear before they fill with ink. Nothing here moves.        */
.lx-open {
    display: flex; flex-direction: column;
    min-height: min(88vh, 54rem); min-height: min(88svh, 54rem);
    padding: var(--header-height) 0 0;
}
.lx-open .ghost {                               /* as tall as the band allows, but never so wide that it reaches the title */
    top: calc(var(--header-height) + 28px);
    height: min(calc(100% - var(--header-height) - 140px), 43vw, 620px);
}
.lx-open-main {
    flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-end;
    padding-top: calc(var(--section-space) * .7); padding-bottom: calc(var(--section-space) * .5);
}
.lx-open .lx-title { max-width: none; font-size: var(--size-hero); line-height: .98; letter-spacing: -0.03em; }
.lx-title .wl { display: inline-block; padding: 0 .03em .14em; margin: 0 -.03em -.14em; }
.lx-hollow { color: transparent; -webkit-text-stroke: 1.25px var(--color-ink); }
.lx-open .lede { margin-top: clamp(22px, 2.6vw, 38px); max-width: 27em; font-size: clamp(19px, 1.75vw, 25px); line-height: 1.3; }

/* the list of what is on the page, along the foot of the opener */
.lx-index ul {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gutter);
    border-top: var(--hairline) solid var(--color-heading);
}
.lx-index a {
    display: inline-flex; align-items: baseline; gap: 14px; padding: 15px 20px 22px 0;
    font-size: .8889rem; color: var(--color-heading); text-decoration: none;
    transition: color var(--speed-hover) ease-in-out;
}
.lx-index .no { color: var(--color-muted); }
.lx-index i {
    font-style: normal; color: var(--color-muted);
    transition: transform var(--speed-hover) ease-in-out, color var(--speed-hover) ease-in-out;
}
.lx-index a:hover, .lx-index a:hover i { color: var(--color-accent); }
.lx-index a:hover i { transform: translateY(3px); }

/* ·· section headings ··
   A rule across the page with the number and title sitting under it. The
   rule draws itself in the first time the section is seen.                */
.lx-head { position: relative; display: flex; align-items: baseline; gap: 16px; padding-top: 18px; }
.lx-head::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--hairline);
    background: var(--color-heading); transform-origin: left;
}
html.js .lx-head::before { transform: scaleX(0); transition: transform 1.1s var(--ease) .1s; }
html.js .lx-head.in::before { transform: none; }
.lx-head .no { min-width: 2.4rem; color: var(--color-muted); }
.lx-head h2 { font-size: var(--size-section); line-height: 1.1; letter-spacing: -0.01em; }
.lx-meta {                                      /* a word or two at the far end of the rule */
    margin-left: auto; font-size: .8333rem; color: var(--color-accent);
}
.lx-head + * { margin-top: var(--block-gap); }

/* ·· platforms ··
   Three large names. Each is an outline until it is chosen, then it fills
   with ink from the bottom and its description appears beside the list.
   On a desktop they take turns until the visitor points at one.
   --on is 0 or 1: whether a name is the chosen one.                       */
.lx-plat { margin-top: calc(var(--block-gap) * 1.3); }
.lx-plat-name {
    --on: 1;
    position: relative; display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 16px 0 20px;
    text-align: left; background: none; border: 0; border-top: var(--hairline) solid var(--color-line-soft);
}
.lx-plat-name .no { min-width: 2.4rem; color: var(--color-muted); transition: color var(--speed-button) ease; }
.lx-word {
    font-family: var(--font-display); font-weight: var(--weight-display);
    font-size: var(--size-giant); line-height: .96; letter-spacing: -0.035em;
    color: transparent; -webkit-text-stroke: 1px var(--color-ink);
    background: linear-gradient(var(--color-ink), var(--color-ink)) no-repeat 0 100% / 100% calc(100% * var(--on));
    -webkit-background-clip: text; background-clip: text;
    transition: background-size .6s var(--ease);
    /* the ink is painted inside this box, so the box is let out a little to cover letters that
       overhang it (the end of an r, the tail of a p) without moving anything */
    padding: .06em .08em .2em 0; margin: -.06em -.08em -.2em 0;
}
.lx-plat-panel { padding: 6px 0 40px; }
.lx-plat-label { display: block; font-size: .8333rem; line-height: 1.4; color: var(--color-accent); }
.lx-plat-text {
    margin-top: 16px; max-width: 17em; text-wrap: balance;
    font-family: var(--font-display); font-weight: var(--weight-display); color: var(--color-heading);
    font-size: var(--size-read); line-height: 1.12; letter-spacing: -0.02em;
}

@media (min-width: 60.0625em) {
    .lx-verb {                                  /* a faint underline: these three words point at the platforms below */
        text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
        text-decoration-color: var(--color-line); cursor: default;
        transition: color var(--speed-button) ease, text-decoration-color var(--speed-button) ease;
    }
    .lx-verb.is-on { color: var(--color-accent); text-decoration-color: currentColor; }
    .lx-plat {
        display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-template-rows: auto auto auto 1fr; column-gap: calc(var(--gutter) * 2.4);
    }
    .lx-plat-head { grid-column: 1; }
    .lx-plat-head:nth-of-type(1) { grid-row: 1; }
    .lx-plat-head:nth-of-type(2) { grid-row: 2; }
    .lx-plat-head:nth-of-type(3) { grid-row: 3; }
    .lx-plat-name { --on: 0; cursor: pointer; }
    .lx-plat-name.is-on { --on: 1; }
    .lx-plat-name.is-on .no { color: var(--color-accent); }
    .lx-plat-name::after {                      /* the rule above a name: full when chosen, filling while it waits its turn */
        content: ''; position: absolute; left: 0; right: 0; top: -1px; height: var(--hairline);
        background: var(--color-heading); transform: scaleX(0); transform-origin: left;
        transition: transform .5s var(--ease);
    }
    .lx-plat-name.is-on::after { transform: none; }
    .lx-plat.is-auto .lx-plat-name.is-on::after { animation: lx-turn var(--speed-turn) linear forwards; }
    .lx-plat.is-auto.is-waiting .lx-plat-name.is-on::after { animation-play-state: paused; }

    .lx-plat-panel {
        grid-column: 2; grid-row: 1 / -1; align-self: start; padding: 22px 0 0;
        opacity: 0; visibility: hidden; transform: translateY(12px);
        transition: opacity .3s ease, transform .5s var(--ease), visibility 0s linear .3s;
    }
    .lx-plat-panel.is-on {
        opacity: 1; visibility: visible; transform: none;
        transition: opacity .45s ease .14s, transform .6s var(--ease) .14s, visibility 0s;
    }
}
@keyframes lx-turn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ·· use cases, and case studies ··
   Two lists of large rows that share one layout: number, title, a sentence.
   Use cases sit on a dark band. Each case study row is a link, with an arrow
   at its far end; to add a case study, copy one <li> block in the page.   */
.lx-uses { margin-top: calc(var(--block-gap) * 1.2); border-top: var(--hairline) solid var(--color-line); }
.lx-cases { border-top: var(--hairline) solid var(--color-heading); }
.lx-uses li, .lx-cases a {
    display: grid; grid-template-columns: 3.4rem minmax(0, 5fr) minmax(0, 6fr); gap: 0 var(--gutter);
    align-items: baseline; padding: clamp(26px, 3vw, 40px) 0;
    border-bottom: var(--hairline) solid var(--color-line-soft);
}
.lx-uses li { transition: opacity var(--speed-button) ease; }
.lx-cases a { text-decoration: none; }
.lx-uses h3, .lx-cases h3 {
    font-size: var(--size-row); line-height: 1.05; letter-spacing: var(--track-display);
    transition: color var(--speed-hover) ease-in-out;
}
.lx-uses p, .lx-cases p { max-width: 30em; color: var(--color-mid); }
@media (hover: hover) {                          /* pointing at one use case quiets the others */
    .lx-uses:hover li { opacity: .38; }
    .lx-uses li:hover { opacity: 1; }
}
.lx-case-text { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.lx-cases .tags { margin-top: 16px; }
.lx-cases .ar { font-size: 1.2222rem; color: var(--color-muted); }
.lx-cases a:hover h3, .lx-cases a:hover .ar { color: var(--color-accent); }
.lx-cases + .note { margin-top: 24px; }

/* ·· the year that drains ··
   A dark band of its own. labs-year.js runs it: it starts when the band
   scrolls into view and it never holds the page. A giant year sits on the
   left, what is happening sits beside it, and the century runs underneath
   as a chart that can be dragged. --yr-surface is the color behind it all
   (it rings the marks on the chart).                                      */
.yr {
    --yr-surface: var(--color-bg);
    display: grid; align-items: end;
    grid-template-columns: minmax(0, 9fr) minmax(0, 3fr);
    grid-template-areas: "figure info" "time time";
    gap: clamp(40px, 5.2vw, 72px) calc(var(--gutter) * 2.4);
}
.lx-dark .yr { --yr-surface: var(--color-dark); }
.yr-figure { grid-area: figure; position: relative; }
.yr-info { grid-area: info; }
.yr-time { grid-area: time; }

/* the giant year */
.yr-num { display: block; width: 100%; height: auto; overflow: visible; }
.yr-num text { font-family: var(--font-display); font-weight: var(--weight-display); }
.yr-num-line { fill: none; stroke: var(--color-ink); }
.yr-num-ink { fill: var(--color-ink); }
.yr-level { stroke: var(--color-accent); }

/* the small readings: the date, "3.9% below its high", the line under the chart, the two buttons */
.yr-read, .yr-when, .yr-key, .yr-btn { font-size: .8333rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.yr-read {                                      /* rides on the ink level */
    position: absolute; right: 0; transform: translateY(calc(-100% - 7px));
    padding: 1px 0 1px 8px; white-space: nowrap; color: var(--color-accent);
    background: color-mix(in srgb, var(--yr-surface) 86%, transparent);
}

/* what is happening: the date, and the crash it belongs to */
.yr-info { border-top: var(--hairline) solid var(--color-heading); padding-top: 16px; min-height: 11rem; }
.yr-when { color: var(--color-accent); }
.yr-under { display: none; }                    /* phones only: see the small-screen rules */
.yr-under::before { content: ' \00b7  '; white-space: pre; }
.yr-name {
    margin-top: 12px; font-family: var(--font-display); font-weight: var(--weight-display);
    font-size: var(--size-section); line-height: 1.1; letter-spacing: -0.01em; color: var(--color-heading);
}
.yr-facts { margin-top: 8px; max-width: 24em; font-size: .8889rem; color: var(--color-mid); }
.yr-name, .yr-facts { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s var(--ease); }
.yr-info.is-on .yr-name, .yr-info.is-on .yr-facts { opacity: 1; transform: none; }

/* the whole century, small: drag it to move through time */
.yr-plot {
    position: relative; height: clamp(60px, 9vh, 92px);
    cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.yr-plot::before { content: ''; position: absolute; inset: -16px 0 -28px; }       /* a taller target for fingers */
.yr-plot:focus-visible { outline-offset: 14px; }
.yr-plot svg { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.yr-plot .wash { fill: var(--color-accent-tint); }
.yr-plot .line, .yr-plot .high { fill: none; stroke: var(--color-ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.yr-dot {
    position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; pointer-events: none;
    background: var(--color-accent); box-shadow: 0 0 0 2px var(--yr-surface);
}
.yr-head { position: absolute; top: -10px; bottom: -6px; width: 1px; background: var(--color-ink); pointer-events: none; }
.yr-head::before {
    content: ''; position: absolute; left: -5px; top: -5px; width: 11px; height: 11px;
    border-radius: 50%; background: var(--color-ink); transition: transform var(--speed-hover) ease;
}
.yr-plot:hover .yr-head::before, .yr.is-dragging .yr-head::before { transform: scale(1.35); }
.yr-decades {
    position: relative; height: 16px; margin-top: 12px; pointer-events: none; color: var(--color-muted);
    font-family: var(--font-mono); font-weight: var(--weight-mono); font-size: 10px; letter-spacing: .02em; line-height: 1.5;
}
.yr-decades span { position: absolute; top: 0; transform: translateX(-50%); }

/* Pause, Skip, one line saying how to read it, and where the figures come from */
.yr-ctrl { display: flex; align-items: flex-start; gap: 6px 26px; margin-top: 22px; }
.yr-btn {
    color: var(--color-heading); background: none; border: 0; padding: 6px 0 4px; cursor: pointer;
    border-bottom: var(--hairline) solid currentColor; white-space: nowrap;
    transition: color var(--speed-hover) ease-in-out;
}
.yr-btn:hover { color: var(--color-accent); }
.yr-key { margin-left: auto; max-width: 40em; text-align: right; text-wrap: balance; color: var(--color-mid); }
.yr-source { margin-top: 26px; font-size: .7778rem; line-height: 1.5; color: var(--color-muted); }

/* ·· contact ·· */
/* The closing statement is a banner: the Studio poster "The signals are there", rebuilt as part of the
   page so it runs the section's full width without growing tall. Its colors are the poster's own (a lilac
   ground, dark ink and dots: --color-poster... in theme.css), the same on the dark page and the light
   one. The words are real text. The hexagons are the poster's own drawing, cut out of it
   (assets/posters/labs-signals-hive.png); they run off the banner's right and lower edges as they did
   off the poster's. To make the banner taller or shorter, change its min-height. */
.lx-banner-in {
    --pad: clamp(26px, 3.6vw, 54px); --say: clamp(30px, 5vw, 74px);
    position: relative; overflow: hidden; border-radius: var(--radius);
    min-height: clamp(280px, 29vw, 440px); padding: var(--pad); color: var(--color-poster-ink, #1d1933);
    background: var(--color-poster, #ebe7f9) radial-gradient(circle, var(--color-poster-line, #67637a) 1px, transparent 1.6px) 0 0 / 40px 40px;
}
.lx-banner-say {
    position: relative; z-index: 1;
    font-family: var(--font-display); font-weight: var(--weight-display);
    font-size: var(--say); line-height: .98; letter-spacing: -0.03em;
}
.lx-banner-say span { display: block; }
.lx-banner-mark {                               /* the lockup in the corner, level with the first line of the words */
    position: absolute; z-index: 1; top: calc(var(--pad) + var(--say) * .3); right: var(--pad);
    display: flex; align-items: center; gap: .6em; white-space: nowrap;
    font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(14px, 1.3vw, 19px);
}
.lx-banner-mark svg { width: 1.25em; height: 1.25em; }
.lx-banner-mark path { fill: none; stroke: currentColor; stroke-width: 9; }
.lx-banner-art { position: absolute; right: 0; bottom: 0; width: 54%; height: auto; }

/* the banner unveils itself the first time it is seen: wiped in from the left, the same move and speed
   as the home page's headline, while the hexagons settle from a touch larger. Without JavaScript, with
   reduced motion or with ?skip=1 it is simply there. (The wipe is on the banner's inside, not on the
   block that is watched: a block wiped away to nothing is never counted as seen.) */
html.js .lx-banner.obs { opacity: 1; transform: none; }
html.js .lx-banner.obs .lx-banner-in { clip-path: inset(0 100% 0 0); transition: clip-path var(--speed-hero) var(--ease) .15s; }
html.js .lx-banner.obs .lx-banner-art { transform: scale(1.06); transform-origin: 100% 100%; transition: transform calc(var(--speed-hero) * 1.6) var(--ease) .15s; }
html.js .lx-banner.obs.in .lx-banner-in { clip-path: inset(0 0 0 0); }
html.js .lx-banner.obs.in .lx-banner-art { transform: none; }
html.noanim .lx-banner.obs .lx-banner-in { clip-path: none; }
html.noanim .lx-banner.obs .lx-banner-art { transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.js .lx-banner.obs .lx-banner-in { clip-path: none; transition: none; }
    html.js .lx-banner.obs .lx-banner-art { transform: none; transition: none; }
}
.lx-reach {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 40px;
    margin-top: var(--block-gap); padding-top: 22px; border-top: var(--hairline) solid var(--color-heading);
}
.lx-reach p { color: var(--color-mid); }
.lx-mail {
    display: inline-flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--color-heading);
    font-family: var(--font-display); font-weight: var(--weight-display);
    font-size: clamp(22px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -0.015em;
    transition: color var(--speed-hover) ease-in-out;
}
.lx-mail:hover { color: var(--color-accent); }

/* ·· the Labs page on small screens (below 960px) ·· */
@media (max-width: 60em) {
    .lx-open { min-height: min(78vh, 36rem); min-height: min(78svh, 36rem); }
    .lx-open-main { padding-top: 40px; padding-bottom: 34px; }
    .lx-index ul { grid-template-columns: 1fr 1fr; }
    .lx-index a { padding: 13px 12px 13px 0; }
    .lx-index li:nth-child(n + 3) a { padding-top: 0; padding-bottom: 20px; }

    .lx-uses li, .lx-cases a { grid-template-columns: 2.6rem minmax(0, 1fr); }
    .lx-uses p, .lx-case-text { grid-column: 2; margin-top: 10px; }

    .yr { grid-template-columns: 1fr; grid-template-areas: "figure" "info" "time"; gap: 24px; }
    .yr-read { display: none; }                     /* too cramped on the year: the reading moves beside the date */
    .yr-under { display: inline; }
    .yr-info { min-height: 7.4rem; padding-top: 12px; }
    .yr-name { margin-top: 8px; }
    .yr-decades span:nth-child(even) { display: none; }
    .yr-ctrl { flex-wrap: wrap; }
    .yr-key { flex-basis: 100%; margin: 12px 0 0; text-align: left; }

    .lx-banner-art { width: 62%; }
}
@media (max-width: 37.5em) {      /* 600px and below: the banner stands taller, the hexagons across its foot, and the lockup is left out */
    .lx-banner-in { --say: clamp(24px, 8.1vw, 42px); min-height: max(270px, 66vw); padding: 22px 20px; }     /* each sentence stays on one line */
    .lx-banner-mark { display: none; }
    .lx-banner-art { width: 100%; }
}
