/* GeoLiquefy home and scorecard pages. One white ground, one blue, real photographs. Sans only (Inter).
   One system, top to bottom:
   - Ground: white from the hero to "Get in touch."; grey (#F5F5F7) only as a tile surface and as the closing zone.
   - Headings: the hero and the close are centred; every other section heading is .h2, on the .wrap left edge.
   - Rhythm: every section opens with --sec; every heading (with its lede) sits --head above its content.
   - Photographs: one radius (--r-tile), one caption style (.photo / .shot figcaption), the wide measure (.wide).
   - Text stays on the .wrap measure.
   Spacing scale: 4 8 12 16 24 32 48 64 96 128. Type scale: 13 15 17 19 21 24 28 40 64 80. */

@font-face {
    font-family: "Inter";
    src: url("/fonts/inter-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --white: #FFFFFF;
    --grey: #F5F5F7;          /* tile surface and closing zone */
    --line: #D2D2D7;
    --ink: #1D1D1F;           /* 16.8:1 on white, 15.5:1 on grey */
    --ink-2: #6E6E73;         /* 5.07:1 on white, 4.66:1 on grey */
    --blue: #0066CC;          /* 5.57:1 on white, 5.11:1 on grey */
    --blue-hover: #0058B0;
    --blue-on-dark: #2997FF;  /* 5.58:1 on #1D1D1F */
    --signal: #E5541B;        /* hazard marks only */
    --dark: #1D1D1F;
    --dark-2: #A1A1A6;        /* 6.54:1 on #1D1D1F */
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    --r-tile: 28px;           /* every photograph and every tile */
    --wrap: clamp(1120px, 56.25vw, 1440px); /* the text measure: 1120 up to a 1990px window, 1440 at 2560 */
    --wide: 1920px;           /* the photograph measure */
    --gutter: 24px;
    --nav-h: 52px;
    --sec: 128px;             /* space above every section */
    --head: 64px;             /* heading (and lede) to content */
    --g: 32px;                /* column gap */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    font-feature-settings: "cv11", "ss03";
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* A link inside running text shows by more than its colour (WCAG 1.4.1): a thin underline, full strength on hover. */
main p a:not([class]), main li a:not([class]), main dd a:not([class]) {
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, currentColor 38%, transparent);
}
main p a:not([class]):hover, main li a:not([class]):hover, main dd a:not([class]):hover { text-decoration-color: currentColor; }
main .mh-links a:not([class]), main .crumb a:not([class]), main .newline a:not([class]), main :is(h1, h2, h3) a:not([class]) { text-decoration: none; }
main .mh-links a:not([class]):hover { text-decoration: underline; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}
/* Plain links get soft ring corners; pills and buttons keep their own shape when focused. */
a:not([class]):focus-visible, .tlink:focus-visible { border-radius: 6px; }
.dark :focus-visible { outline-color: var(--blue-on-dark); }

.skip {
    position: absolute; left: 16px; top: -64px; z-index: 100;
    background: var(--ink); color: var(--white); padding: 8px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wide { max-width: calc(var(--wide) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- Nav: frosted glass ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-in {
    max-width: calc(var(--wrap) + 2 * var(--gutter)); height: 100%;
    margin: 0 auto; padding: 0 var(--gutter);
    display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: auto; }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a { color: var(--ink); font-size: 13px; opacity: 0.8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-btn {
    font-size: 13px; font-weight: 500; color: var(--white);
    background: var(--blue); padding: 6px 14px; border-radius: 8px;
}
.nav-btn:hover { background: var(--blue-hover); text-decoration: none; }

.menu { display: none; position: static; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after {
    display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 1px;
    transition: transform .25s ease, background-color .25s ease;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: var(--white);
    box-shadow: 0 24px 48px rgba(29, 29, 31, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px var(--gutter) 24px;
    display: flex; flex-direction: column;
}
.menu-panel a { color: var(--ink); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; padding: 12px 0; border-bottom: 1px solid #E8E8ED; }
.menu-panel a:last-child { border-bottom: 0; }

/* ---------- Type ---------- */
/* The headline also follows the window height, so the photograph keeps its place on a laptop screen. */
h1 {
    font-size: clamp(44px, min(5.6vw, 7.2svh), 80px);
    font-weight: 700; line-height: 1.05; letter-spacing: -0.035em;
    text-wrap: balance;
}
h1 .grey { display: block; text-wrap: balance; }
.sub {
    font-size: clamp(19px, 1.9vw, 24px); line-height: 1.38; font-weight: 400;
    color: var(--ink-2); letter-spacing: -0.01em;
    max-width: 820px; margin: 24px auto 0; text-wrap: balance;
}
.h2 {
    font-size: clamp(36px, 5.2vw, 64px);
    font-weight: 700; line-height: 1.06; letter-spacing: -0.03em;
    text-wrap: balance;
}
/* The closing zone (FAQ) and the scorecard page use the smaller heading. */
.h2.sm { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.028em; line-height: 1.08; }
.h2 .grey { display: block; text-wrap: balance; }
.grey { color: var(--ink-2); }
.lede {
    font-size: clamp(19px, 1.7vw, 21px); line-height: 1.42; color: var(--ink-2);
    max-width: 620px; margin: 16px auto 0; text-wrap: pretty;
}
.lede.left { margin-left: 0; margin-right: 0; max-width: 680px; }
strong { font-weight: 600; }

/* One link style for the whole page: blue, 17px, a chevron. */
.tlink { font-size: 17px; font-weight: 500; white-space: nowrap; }
.tlink::after {
    /* In em, so the mark keeps one proportion at 15, 17 and 19px. */
    content: ""; display: inline-block; width: .41em; height: .41em; margin-left: .35em;
    border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor;
    transform: translateY(-.12em) rotate(45deg);
}

/* ---------- One caption style for every photograph ---------- */
.photo figcaption, .shot figcaption {
    margin-top: 12px;
    font-size: 13px; line-height: 1.45; color: var(--ink-2);
}
.photo figcaption span:first-child, .shot figcaption span:first-child { text-wrap: pretty; }
.credit { white-space: nowrap; }
.credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.credit a:hover { color: var(--ink); }
/* Narrow photographs: the credit goes under the caption. */
.shot figcaption { display: flex; flex-direction: column; gap: 2px; }
/* Wide photographs: the caption on the left, the credit on the right. */
.photo figcaption, .problem.lead .shot figcaption { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 4px 48px; }
.photo figcaption span:first-child, .problem.lead .shot figcaption span:first-child { max-width: 760px; text-wrap: balance; }
@media (max-width: 900px) {
    .photo figcaption, .problem.lead .shot figcaption { flex-direction: column; gap: 2px; }
}

/* ---------- Hero: statement, then the photograph ---------- */
.hero { padding-top: clamp(32px, 5svh, 88px); }
.hero-copy { text-align: center; }
.newline { margin-bottom: clamp(16px, 2.8svh, 32px); }
.newline a {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 5px 14px 5px 5px; border-radius: 980px;
    background: var(--grey); color: var(--ink); font-size: 14px; line-height: 1.3;
    transition: background-color .2s ease;
}
.newline a:hover { background: #EBEBF0; text-decoration: none; }
.newline time { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.new-tag {
    display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
    color: var(--blue); background: var(--white); border-radius: 980px; padding: 3px 9px;
}
.hero-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 32px; margin-top: 24px; }
.hero-links .tlink { font-size: 19px; }

/* Who backs the lab: one calm centred row, a hairline between the two groups. */
.support {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px 56px;
    margin-top: clamp(24px, 3.5svh, 48px);
}
.sup { display: flex; align-items: center; gap: 16px; }
.sup p { font-size: 15px; line-height: 1; color: var(--ink-2); }
.sup img { height: 44px; width: auto; }
/* The badge is a boxed lockup with small type; it needs a little more height to sit level with the wordmark. */
.sup img[src*="nvidia"] { height: 48px; }
.sup + .sup { padding-left: 56px; border-left: 1px solid var(--line); }

.photo { margin-top: clamp(32px, 4.5svh, 64px); }
.photo-frame {
    border-radius: var(--r-tile); overflow: hidden; aspect-ratio: 16 / 9;
    background: #E8E8ED;
}
/* The horizon sits in the top 5% of the image and the largest scars in the bottom third. A short, wide frame keeps the horizon. */
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Desktop and landscape tablets: the hero fills the first screen. The frame takes the free height,
   and the caption sits under it, so the caption ends one gutter above the bottom of the window. */
@media (min-width: 681px) and (orientation: landscape) {
    .hero {
        display: flex; flex-direction: column;
        min-height: calc(100svh - var(--nav-h));
        padding-bottom: var(--gutter);
    }
    .hero-copy { flex: none; width: 100%; }
    .hero .photo {
        flex: 1 0 0; width: 100%;
        display: flex; flex-direction: column; position: relative;
        /* Never a thin strip, never a tower: 300px at least, 16:9 of the frame width at most. */
        min-height: 300px;
        max-height: calc(min(100vw - 2 * var(--gutter), var(--wide)) * 0.5625);
    }
    .hero .photo-frame { flex: 1 1 auto; aspect-ratio: auto; }
    .hero .photo figcaption { flex: none; padding: 0 var(--gutter); }
}

/* ---------- Section rhythm ---------- */
.research, .how, .work, .product, .team { padding-top: var(--sec); }

/* ---------- Research: four photographs on the wide measure ---------- */
.problems {
    margin-top: var(--head);
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); row-gap: 0;
}
.shot-frame { border-radius: var(--r-tile); overflow: hidden; aspect-ratio: 3 / 2; background: #E8E8ED; }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }

.problem h3 { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.problem .q { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty; }
.status { display: block; font-size: 15px; color: var(--ink-2); }

/* The lead: soil liquefaction. Its photograph spans two of the three columns; its text stands in the third. */
.problem.lead {
    grid-column: 1 / -1; margin-bottom: 64px;
    display: grid; grid-template-columns: subgrid; grid-template-rows: auto auto;
}
.problem.lead .shot { grid-column: 1 / span 2; grid-row: 1 / span 2; display: grid; grid-template-rows: subgrid; }
.problem.lead .problem-text { grid-column: 3; grid-row: 1; align-self: end; padding-bottom: 8px; }
.problem.lead h3 { font-size: 28px; line-height: 1.15; letter-spacing: -0.022em; }
.problem.lead .problem-text > p:not(.q) { margin-top: 12px; font-size: 19px; line-height: 1.47; color: var(--ink-2); max-width: 440px; text-wrap: pretty; }
.problem.lead .q { margin-top: 32px; font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.problem.lead .tlink { display: inline-block; margin-top: 24px; }

/* The three: one row. Subgrid rows keep the names, the questions and the status lines level across the row. */
.problem:not(.lead) { grid-row: span 5; display: grid; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); }
/* Reading order in a tile: photograph, name, question, status, and the caption with its credit last.
   The figure spans all five rows, so its caption can sit in the last one; the text takes the three between. */
.problem:not(.lead) .shot { grid-column: 1; grid-row: 1 / span 5; display: grid; grid-template-rows: subgrid; }
.problem:not(.lead) .shot-frame { grid-row: 1; }
.problem:not(.lead) .shot figcaption { grid-row: 5; margin-top: 20px; }
.problem:not(.lead) .problem-text { grid-column: 1; grid-row: 2 / span 3; display: grid; grid-template-rows: subgrid; align-items: start; }
.problem:not(.lead) h3 { margin-top: 24px; }
.problem:not(.lead) .q { margin-top: 8px; }
.problem:not(.lead) .status { margin-top: 16px; }

/* ---------- How we work ---------- */
.how-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 0 64px; align-items: start; }
.points { margin-top: var(--head); max-width: 520px; }
.points p { font-size: 19px; line-height: 1.47; color: var(--ink-2); letter-spacing: -0.005em; text-wrap: pretty; }
.points p + p { margin-top: 24px; }
.points strong { color: var(--ink); }

.globe-stage { position: relative; text-align: center; }
.globe-wrap { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin: 0 auto; }
/* The disc that shows before the script runs, or without it. Matches the canvas body (R = 0.47 W). */
.globe-wrap::before {
    content: ""; position: absolute; inset: 3%; border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, #FFFFFF 0%, #F2F2F5 46%, #DCDCE1 100%);
    box-shadow: inset -24px -32px 64px rgba(29, 29, 31, 0.06);
}
.globe-wrap::after {
    content: ""; position: absolute; left: 18%; right: 18%; bottom: -2.5%; height: 7%;
    background: radial-gradient(closest-side, rgba(29, 29, 31, 0.14), rgba(29, 29, 31, 0));
    z-index: 0;
}
#globe { position: relative; z-index: 1; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 1.4s ease; }
#globe.ready { opacity: 1; }
#globe:active { cursor: grabbing; }
.legend {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 24px; font-size: 13px; color: var(--ink-2);
}
.mark-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(229, 84, 27, 0.16); }
/* Pause and play for the turning globe (WCAG 2.2.2). Text only, in the legend's size and grey. The fixed min-width
   keeps the legend still when the label changes. globe.js shows it only while the globe can turn. */
.globe-toggle {
    flex: none; min-width: 48px; min-height: 24px; margin: 0 0 0 4px; padding: 0 4px;
    border: 0; border-radius: 6px; background: none; cursor: pointer;
    font: inherit; color: var(--ink-2); text-align: center;
}
.globe-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.globe-toggle[hidden] { display: none; }

/* ---------- Recent work: a dated log on white; the scorecard row is a grey tile ---------- */
.log { margin-top: var(--head); border-bottom: 1px solid var(--line); }
.log > li {
    display: grid; grid-template-columns: 220px 1fr; gap: 8px 40px;
    padding: 32px 0; border-top: 1px solid var(--line);
}
.log-meta { display: flex; flex-direction: column; gap: 6px; padding-top: 5px; font-family: var(--mono); font-size: 13px; line-height: 1.3; }
.log-meta time { color: var(--ink); font-variant-numeric: tabular-nums; }
.kind { color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.log-body h3 { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.log-body h3 a { color: var(--ink); text-wrap: balance; }
.log-body h3 a::after {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px;
    border-top: 1.6px solid var(--blue); border-right: 1.6px solid var(--blue);
    transform: translateY(-3px) rotate(45deg); transition: transform .2s ease;
}
.log-body h3 a:hover { color: var(--blue); text-decoration: none; }
.log-body h3 a:hover::after { transform: translate(3px, -3px) rotate(45deg); }
.log-body > p { margin-top: 8px; font-size: 17px; line-height: 1.47; color: var(--ink-2); max-width: 640px; text-wrap: pretty; }
.log-body .proof { margin-top: 16px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--ink); }
.proof span { color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; margin-right: 12px; }
/* On white the tag takes the tile grey, as the hero pill does the other way round. */
.log .new-tag { background: var(--grey); }
/* The one heavier row: the scorecard. Its text keeps the column edge; the tile reaches past it. */
.log > li.major {
    background: var(--grey); border-top: 0; border-radius: var(--r-tile);
    margin: 0 -40px; padding: 40px;
}
.log > li.major + li { border-top: 0; }
.log > li.major .log-body h3 { font-size: 28px; letter-spacing: -0.025em; }

/* ---------- The engine: one dark tile ---------- */
.engine {
    border-radius: var(--r-tile); padding: 64px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; align-items: center;
}
.dark { background: var(--dark); color: #F5F5F7; }
.dark p { color: var(--dark-2); }
.dark .tlink { color: var(--blue-on-dark); }
.tag { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.engine .tag { color: var(--dark-2); }
.engine-h { font-size: clamp(28px, 2.75vw, 40px); line-height: 1.14; letter-spacing: -0.028em; font-weight: 700; }
.engine-h span { display: block; color: #86868B; }
.engine-h span.on { color: #F5F5F7; }
.engine-copy p { font-size: 19px; line-height: 1.47; max-width: 460px; text-wrap: pretty; }
.engine-copy p + p { margin-top: 12px; }
.engine-copy .engine-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn-solid {
    display: inline-block; background: var(--blue); color: var(--white);
    font-size: 17px; font-weight: 500; padding: 12px 22px; border-radius: 980px;
}
.btn-solid:hover { background: var(--blue-hover); text-decoration: none; }

/* ---------- Team: four people in one row; two by two below 1104px (see Responsive) ---------- */
.masthead { margin-top: var(--head); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px var(--g); }
/* Black and white; white studio grounds take the tile grey. */
.portrait {
    width: 240px; max-width: 100%; aspect-ratio: 1; border-radius: var(--r-tile); overflow: hidden;
    background: var(--grey); isolation: isolate;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; mix-blend-mode: multiply; filter: grayscale(1); }
.mh-text { margin-top: 24px; }
.masthead :is(h2, h3) { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.022em; }
.mh-cred { margin-top: 8px; font-family: var(--mono); font-size: 12px; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.mh-note { margin-top: 16px; font-size: 17px; line-height: 1.47; color: var(--ink-2); max-width: 340px; text-wrap: pretty; }
.mh-note span { color: var(--ink); }
.mh-more { margin-top: 48px; }
/* Each card spans five shared rows (portrait, name, title, note, links), so every part starts level across a row
   and the rows size to the tallest card. The home cards have no links: their fifth row is empty and has no height.
   A row gap on the masthead would also open inside each card, so the 48px between rows of cards is a top margin
   on each card after the first row instead (four columns from 1104px, two below). Without subgrid, and in the
   phone list, each card lays out on its own. */
@supports (grid-template-rows: subgrid) {
    @media (min-width: 681px) {
        ul.masthead { row-gap: 0; }
        .masthead > li { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; }
        .masthead .mh-text { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
    }
    @media (min-width: 1104px) {
        .masthead > li:nth-child(n+5) { margin-top: 48px; }
    }
    @media (min-width: 681px) and (max-width: 1103px) {
        .masthead > li:nth-child(n+3) { margin-top: 48px; }
    }
}

/* ---------- Close: who we work for. Three columns on the text measure, a hairline above each ---------- */
.close { padding: var(--sec) 0; }
/* A page that can be shorter than the window (404, Team): the footer sits on the bottom edge. */
body.short { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.short > main { flex: 1 0 auto; }
/* Subgrid rows keep the names, the paragraphs and the links level across the row. */
/* One written sentence. The three groups are in ink; the rest of the sentence is grey. */
.statement {
    margin: 32px auto 0; max-width: 860px;
    font-size: 32px; font-weight: 600; line-height: 1.22; letter-spacing: -0.022em;
    color: var(--ink-2); text-wrap: balance;
}
.statement span { color: var(--ink); }
.close-link { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.close-link .tlink { font-size: 19px; }

/* ---------- Footer ---------- */
.foot { background: var(--grey); border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 13px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot .brand { font-size: 15px; }
.foot .brand img { width: 20px; }
.foot-tag { margin-top: 8px; color: var(--ink-2); }
.foot-mail { margin-top: 4px; }
.foot-mail a { color: var(--ink-2); }
.foot-mail a:hover { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-nav a { color: var(--ink); }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); display: grid; gap: 8px; font-size: 12px; }
.foot-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.foot-legal a:hover { color: var(--ink); }

/* ---------- Motion: quiet, and only for readers who accept it ---------- */
@media (prefers-reduced-motion: no-preference) {
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    @keyframes settle { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
    .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
    .hero-copy > :nth-child(2) { animation-delay: .06s; }
    .hero-copy > :nth-child(3) { animation-delay: .14s; }
    .hero-copy > :nth-child(4) { animation-delay: .22s; }
    .hero-copy > :nth-child(5) { animation-delay: .3s; }
    .photo-frame { animation: settle 1.2s cubic-bezier(.2, .7, .2, 1) .2s both; }
    @supports (animation-timeline: view()) {
        .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 32%; }
    }
}

/* ---------- Responsive ---------- */
/* Below 1248px the scorecard tile cannot reach 40px past the column without leaving the window. */
@media (max-width: 1248px) {
    .log > li.major { margin: 0 -16px; padding: 32px 16px; }
}
/* Four 240px portraits and three 32px gaps need 1056px of measure: a 1104px window with the gutters.
   Above that the columns are 256px (1120px measure), so the name and the note step down one size. */
@media (min-width: 1104px) {
    .masthead :is(h2, h3) { font-size: 24px; }
    .mh-note { font-size: 16px; }
    /* The title and the credential take one line each, so no line wraps at a chance point and the notes start level. */
    .mh-part { display: block; }
    .mh-dot { display: none; }
    /* The longest credential line is 32 characters; it must stay on one line in a 256px column in the system mono font. */
    .mh-cred { letter-spacing: 0.04em; }
    /* Three links (LinkedIn, Google Scholar, Website) stay on one line down to the 240px column at 1104px (they need about 210px plus the gaps). */
    .masthead .mh-links { font-size: 14px; gap: 4px 12px; }
}
/* Below it, and above the phone list: two columns by two rows. */
@media (max-width: 1103px) {
    .masthead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    :root { --sec: 96px; --head: 48px; --g: 24px; }
    .nav-links { display: none; }
    .nav-btn { margin-left: auto; }
    .menu { display: block; margin-right: -8px; }
    .nav-in { gap: 12px; }

    /* Research: one column. */
    .problems { display: block; }
    .problem.lead, .problem.lead .shot, .problem:not(.lead), .problem:not(.lead) .shot, .problem:not(.lead) .problem-text { display: block; }
    .problem.lead { margin-bottom: 0; }
    .problem.lead .problem-text { padding-bottom: 0; }
    .problem.lead h3 { margin-top: 32px; }
    .problem.lead .q { margin-top: 24px; font-size: 32px; }
    .problem + .problem { margin-top: 64px; }

    .how-grid { grid-template-columns: 1fr; gap: 48px; }
    .points { max-width: 560px; }
    .globe-wrap { width: min(440px, 100%); }

    .log > li { grid-template-columns: 1fr; padding: 28px 0; }
    .log-meta { flex-direction: row; gap: 16px; padding-top: 0; }
    .log > li.major { padding: 28px 16px; }
    .log > li.major .log-body h3 { font-size: 26px; }

    .engine { grid-template-columns: 1fr; padding: 56px 40px; align-items: start; }

    .masthead { gap: 48px 24px; }
    .masthead :is(h2, h3) { font-size: 24px; }
    .mh-note { font-size: 15px; }

    /* Who we work for: one column, the same hairline above each. */
    .statement { font-size: 28px; }

}
@media (max-width: 680px) {
    :root { --gutter: 16px; --r-tile: 20px; --sec: 80px; --head: 40px; }
    .hero { padding-top: 48px; }
    .newline a { font-size: 13px; gap: 8px; }
    .newline time { display: none; }
    .sub { font-size: 18px; margin-top: 20px; }
    .photo { margin-top: 44px; }
    .photo-frame { aspect-ratio: 4 / 3; }
    /* 4:3 crops only the sides; the road and the car sit at 47 to 52% across, so centre it. */
    .photo img { object-position: 49% 50%; }
    .photo figcaption, .problem.lead .shot figcaption { flex-direction: column; gap: 2px; }
    .credit { white-space: normal; }

    /* Phones: each label sits over its logo, so both stay on one line. */
    .support { flex-wrap: nowrap; align-items: stretch; gap: 0 28px; margin-top: 36px; }
    .sup { flex-direction: column; justify-content: space-between; gap: 10px; }
    .sup + .sup { padding-left: 28px; }
    .sup p { font-size: 13px; }
    .sup img { height: 30px; }
    .sup img[src*="nvidia"] { height: 33px; }

    .problem.lead .problem-text > p:not(.q) { font-size: 17px; }
    .problem.lead .q { font-size: 28px; }
    .problem:not(.lead) h3, .problem.lead h3 { margin-top: 24px; }
    .problem .q { font-size: 21px; }

    .points p { font-size: 17px; }

    .log-body h3 { font-size: 21px; }

    .engine { padding: 40px 24px; }
    .engine-h { font-size: 26px; }
    .engine-copy p { font-size: 17px; }

    /* The masthead becomes a list: a portrait beside each name. */
    .masthead { grid-template-columns: 1fr; gap: 0; }
    .masthead li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 24px 0; }
    .masthead li:first-child { padding-top: 0; }
    .masthead li + li { border-top: 1px solid var(--line); }
    .portrait { width: 96px; border-radius: 20px; }
    .mh-text { margin-top: 0; }
    .masthead :is(h2, h3) { font-size: 21px; }
    .statement { font-size: 23px; margin-top: 24px; }
    .close-link { margin-top: 32px; }
    .close-link .tlink { font-size: 17px; }
    .mh-part { display: block; }
    .mh-dot { display: none; }
    .mh-note { margin-top: 8px; }
    .mh-more { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }

    .foot-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- The scorecard page: a document, limits first ---------- */

/* The earthquake record figure. */
.record-fig { margin-top: 48px; }
.record-fig img { width: 100%; height: auto; border-radius: 0; }
.record-fig figcaption {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 64px;
    margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
    font-size: 15px; line-height: 1.5; color: var(--ink-2);
}
.record-fig figcaption strong { color: var(--ink); }
.record-fig .credit { white-space: normal; }
@media (max-width: 900px) {
    .record-fig figcaption { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .record-fig { margin: 32px -8px 0; }
    .record-fig figcaption { margin-left: 8px; margin-right: 8px; }
}

/* The current page in the nav: ink at full strength, medium weight. The mobile panel links are ink already. */
.nav-links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.menu-panel a[aria-current="page"] { color: var(--blue); }

.doc-head { padding: 72px 0 0; }
/* A top-level page has no crumb line, so its h1 opens the head. */
.doc-head .doc-h1:first-child { margin-top: 0; }
/* One or two links under the page sub, or under a paragraph. */
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 32px; }
/* A full paper citation under a paragraph. */
.cite { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 680px; text-wrap: pretty; }
.crumb { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); display: flex; gap: 10px; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--ink); text-decoration: none; }
.doc-h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.034em; margin-top: 20px; max-width: 900px; }
.doc-sub { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.38; color: var(--ink-2); letter-spacing: -0.01em; max-width: 680px; margin-top: 20px; text-wrap: pretty; }
.facts {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 56px 0 0;
    border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
.facts > div { padding: 18px 24px 20px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.facts dd { margin: 6px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.facts dd a { font-weight: 600; }

.doc-sec { padding: 88px 0 0; }
.doc-sec.last { padding-bottom: 120px; }
.doc-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 32px 64px; align-items: start; }
.doc-grid > * { min-width: 0; }
.doc-grid > .h2 { position: sticky; top: calc(var(--nav-h) + 32px); font-size: clamp(28px, 3vw, 36px); }
.doc-lede { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.32; font-weight: 600; letter-spacing: -0.018em; max-width: 680px; text-wrap: pretty; }
.doc-p { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 680px; text-wrap: pretty; }
.doc-p + .tbl-wrap, .tbl-wrap + .doc-p { margin-top: 32px; }
.doc-p + .doc-p { margin-top: 16px; }
.doc-note { margin-top: 24px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 680px; }
.doc-h3 + .doc-p { margin-top: 10px; }
.doc .record-fig { margin-top: 28px; }
.doc .record-fig figcaption { grid-template-columns: 1fr; margin-top: 16px; }
.doc-h3 { margin-top: 48px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
/* A sub-heading can open the right column; a statement can close a step list; a paragraph can follow a statement. */
.doc-h3:first-child { margin-top: 0; }
.doc-p code { font-family: var(--mono); font-size: .88em; }
/* Subscripts and superscripts sit on the text line and never change the line spacing. */
sub, sup { font-size: .68em; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -.26em; }
sup { top: -.5em; }
.doc-p code { line-height: 1; }
.files + .doc-p { margin-top: 24px; }
.doc-grid > div > .limits:first-child { margin-top: 0; }
.steps + .doc-lede { margin-top: 40px; }
.doc-lede + .doc-p { margin-top: 16px; }
.plain + .doc-p, .doc-p + .files { margin-top: 24px; }
.plain .cite { margin-top: 8px; }
/* A fact row with three facts. */
.facts.three { grid-template-columns: repeat(3, 1fr); }

/* Limits: the hazard colour marks them, once. */
.limits { margin-top: 36px; border-bottom: 1px solid var(--line); }
.limits li {
    display: grid; grid-template-columns: 5fr 7fr; gap: 6px 32px; align-items: baseline;
    padding: 18px 0 18px 20px; border-top: 1px solid var(--line); position: relative;
}
.limits li::before { content: ""; position: absolute; left: 0; top: 27px; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.limits strong { font-size: 17px; letter-spacing: -0.01em; }
.limits span { font-size: 17px; line-height: 1.47; color: var(--ink-2); }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; }
.tbl caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: 13px; color: var(--ink-2); }
.tbl th, .tbl td { padding: 14px 16px 14px 0; text-align: left; border-top: 1px solid var(--line); font-weight: 400; white-space: nowrap; }
.tbl thead th { border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.tbl tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.tbl tbody th { font-weight: 600; letter-spacing: -0.01em; }
.tbl .num { text-align: right; padding-right: 0; padding-left: 16px; }

.plain { margin-top: 16px; border-bottom: 1px solid var(--line); max-width: none; }
.doc-grid > .plain { margin-top: 0; }
.plain li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.47; color: var(--ink-2); }
.plain strong { color: var(--ink); }
/* A paragraph inside a list item keeps the text measure of the paragraphs around it (Engine: reference curves). */
.plain li > p:not([class]) { max-width: 680px; }
/* A status line or a link on its own line under a list item. */
.plain .status { margin-top: 6px; }
.plain li > .tlink { display: block; width: fit-content; margin-top: 6px; }

/* Home components in a document page. The log sits in the right column with a narrower date column;
   at full width under a heading it keeps the home layout. The masthead can open a section. */
.doc-grid > .log, .doc .masthead:first-child { margin-top: 0; }
.doc-grid .log > li { grid-template-columns: 160px minmax(0, 1fr); gap: 8px 32px; }
.mh-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }

.steps { border-bottom: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; padding: 20px 0; border-top: 1px solid var(--line); }
.steps .n { font-family: var(--mono); font-size: 13px; color: var(--ink-2); padding-top: 4px; }
.steps p { font-size: 17px; line-height: 1.47; color: var(--ink-2); max-width: 640px; }
.steps strong { color: var(--ink); }

.term { margin-top: 28px; border-radius: 20px; padding: 28px 32px 32px; }
.term .term-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dark-2); margin: 24px 0 10px; }
.term .term-label:first-child { margin-top: 0; }
.term pre { margin: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: #F5F5F7; white-space: pre-wrap; overflow-wrap: anywhere; }
.term pre.hash { color: var(--blue-on-dark); }
.term code { font-family: inherit; }

.files { border-bottom: 1px solid var(--line); }
.files li { display: grid; grid-template-columns: 5fr 7fr; gap: 4px 32px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.files a { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.files span { font-size: 17px; color: var(--ink-2); }
/* A short set of symbols and their values, set apart from the sentence: the name in grey, the value in ink, on the text measure. */
.files.params { max-width: 680px; }
.files.params li { grid-template-columns: 1fr 1fr; padding: 13px 0; }
.files.params strong { font-weight: 400; font-size: 17px; color: var(--ink-2); }
.files.params span { color: var(--ink); }

.credits p { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 680px; }
.credits p + p { margin-top: 10px; }
a[href^="https://doi.org/"] { white-space: nowrap; }
.credits .updated { margin-top: 40px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 900px) {
    .doc-head { padding-top: 48px; }
    .facts { grid-template-columns: 1fr 1fr; margin-top: 40px; }
    .facts.three { grid-template-columns: repeat(3, 1fr); }
    .facts:not(.three) > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .facts:not(.three) > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .doc-sec { padding-top: 64px; }
    .doc-sec.last { padding-bottom: 88px; }
    .doc-grid { grid-template-columns: 1fr; gap: 24px; }
    .doc-grid > .h2 { position: static; }
    .doc-grid .log > li { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .facts.three { grid-template-columns: 1fr; }
    .facts.three > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .limits li, .files li { grid-template-columns: 1fr; }
    .doc-p { font-size: 17px; }
    .tbl { font-size: 15px; }
    .tbl th, .tbl td { padding: 12px 8px 12px 0; }
    .tbl thead th { white-space: normal; font-size: 11px; vertical-align: bottom; }
    .tbl .num { padding-left: 8px; }
    .term { padding: 22px 20px 24px; border-radius: 16px; }
    .term pre { font-size: 12.5px; }
}

/* ---------- Mission essay: one argument in the right column, in ink; photographs on the text measure, 3:2 ---------- */
.essay .doc-p { color: var(--ink); line-height: 1.6; max-width: 660px; }
.essay .doc-p + .doc-p { margin-top: 20px; }
.essay .doc-lede { max-width: 660px; }
.essay .doc-lede + .doc-p { margin-top: 24px; }
.essay-fig { margin: 72px auto 0; }
.essay-fig .photo-frame { aspect-ratio: 3 / 2; }
.essay-fig img { object-position: 50% 50%; }
.essay-fig + .doc-grid { margin-top: 56px; }
/* Prose that resumes after a photograph keeps the right column. */
.essay-cont { grid-column: 2; }
/* The one quotation: larger grey text, its source under it. */
.essay-quote { margin: 40px 0; max-width: 660px; }
.essay-quote blockquote { margin: 0; font-size: 24px; line-height: 1.38; letter-spacing: -0.012em; color: var(--ink-2); text-wrap: pretty; }
.essay-quote figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.essay .plain { margin-top: 24px; max-width: 660px; }
.essay .plain li { padding: 20px 0; font-size: 19px; line-height: 1.6; color: var(--ink); }
.essay .plain + .doc-p { margin-top: 24px; }
.essay .doc-note { margin-top: 32px; }
.refs { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; line-height: 1.5; color: var(--ink-2); max-width: 660px; }
.refs li + li { margin-top: 8px; }
.refs a { overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .essay-fig { margin-top: 56px; }
    .essay-fig + .doc-grid { margin-top: 40px; }
    .essay-cont { grid-column: auto; }
}
@media (max-width: 680px) {
    .essay-fig { margin-top: 40px; }
    .essay-fig + .doc-grid { margin-top: 32px; }
    .essay .doc-p + .doc-p { margin-top: 16px; }
    .essay .plain li { font-size: 17px; }
    .essay-quote { margin: 32px 0; }
    .essay-quote blockquote { font-size: 21px; }
}

/* ---------- Note to AI agents: in the page for agents and the Markdown edition, out of sight for readers ---------- */
.agent-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
