/* ==========================================================================
   What Makes a Great Product?
   A talk turned into one long scroll, organised around a waterline. Light
   "surface" chapters carry the parts a user sees; dark "deep" chapters carry
   the complexity underneath. One typeface, Archivo, with its width axis doing
   the work a second family usually does.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Surface */
    --ice: #eef3f6;
    --paper: #ffffff;
    --panel: #e3ebf0;
    --ink: #0e1f2b;
    --text: #22333e;
    --muted: #5d6f7b;
    --rule: #cfdae1;

    /* Deep */
    --deep: #061019;
    --deep-2: #0b1e2c;
    --deep-rule: #1d3446;
    --on-deep: #eaf3f8;
    --on-deep-soft: #b7c9d4;
    --on-deep-muted: #7f97a6;

    /* Water */
    --water: #176b8a;
    --water-dark: #0f4f68;
    --glacier: #7fd3ef;

    --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

    --container: 1120px;
    --gutter: 24px;
    --nav-height: 60px;

    --fast: 150ms ease;
    --base: 250ms ease;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--ice);
    font-variation-settings: 'wdth' 100;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted);
    font-variation-settings: 'wdth' 92;
}

a { color: var(--water); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--water-dark); }

:focus-visible {
    outline: 2px solid var(--water);
    outline-offset: 3px;
}

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }

.shot { cursor: zoom-in; }

/* Every screenshot sits in a frame. Radius is small and consistent because
   these are documents, not cards. */
figure .shot {
    border-radius: 6px;
    background: var(--paper);
    box-shadow: 0 1px 0 rgba(14, 31, 43, 0.08), 0 8px 24px -12px rgba(14, 31, 43, 0.35);
}

.chapter--deep figure .shot {
    box-shadow: 0 0 0 1px var(--deep-rule), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose--on-deep { color: var(--on-deep-soft); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(238, 243, 246, 0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    transition: background var(--base), color var(--base), border-color var(--base);
}

.nav--deep {
    background: rgba(6, 16, 25, 0.82);
    border-bottom-color: var(--deep-rule);
    color: var(--on-deep);
}

.nav__container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav__logo .berg-mark { flex: none; }

.nav__links {
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    display: flex;
    gap: 1.4rem;
}

.nav__link {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.72;
    padding-block: 0.3rem;
    border-bottom: 2px solid transparent;
    transition: opacity var(--fast), border-color var(--fast);
}

.nav__link:hover, .nav__link.active { opacity: 1; }
.nav__link.active { border-bottom-color: currentColor; }

.nav__byline {
    font-size: 0.85rem;
    opacity: 0.6;
    white-space: nowrap;
    font-variation-settings: 'wdth' 92;
}

.nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 8px;
    background: none;
    border: 0;
    cursor: pointer;
    color: inherit;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.nav__toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    transition: transform var(--base), opacity var(--base);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero: the surface. All the space, one question, and the tip of the berg.
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    padding: calc(var(--nav-height) + 12vh) var(--gutter) 0;
    background: var(--ice);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero__container {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto 3.5rem;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: clamp(3.2rem, 11vw, 9.5rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
    font-variation-settings: 'wdth' 112;
    max-width: 10ch;
    color: var(--ink);
    opacity: 0;
    transform: translateY(18px);
    animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 100ms forwards;
}

.hero__thesis {
    margin: 2.5rem 0 0;
    max-width: 30ch;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    line-height: 1.3;
    font-weight: 500;
    color: var(--water-dark);
    opacity: 0;
    transform: translateY(14px);
    animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 500ms forwards;
}

.hero__handle {
    margin: 1.25rem 0 0;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    font-variation-settings: 'wdth' 100;
    color: var(--muted);
    opacity: 0;
    transform: translateY(14px);
    animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 350ms forwards;
}

.hero__handle a { color: inherit; text-decoration: none; }
.hero__handle a:first-child:hover { color: var(--water-dark); }

.hero__asterisk {
    color: var(--water);
    font-weight: 700;
    margin-left: 0.1em;
}

.hero__footnote {
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    max-width: 46ch;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
    border-top: 1px solid var(--rule);
    opacity: 0;
    animation: rise 900ms ease 800ms forwards;
}

.hero__footnote .hero__asterisk { margin: 0 0.35em 0 0; }

@keyframes rise {
    to { opacity: 1; transform: translateY(0); }
}

/* The berg tip pokes above the waterline at the bottom of the hero. */
.hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--water);
    opacity: 0.55;
}

.hero__berg {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
    padding-right: 6vw;
}

.hero__berg svg {
    width: min(720px, 80vw);
    height: auto;
}

.berg-tip { fill: var(--paper); stroke: var(--rule); stroke-width: 1; }

.hero__scroll {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    margin: auto 0 2.5rem;
    margin-left: max(var(--gutter), calc((100% - var(--container)) / 2));
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    animation: rise 900ms ease 1100ms forwards;
}

.hero__scroll:hover { color: var(--water-dark); }

/* --------------------------------------------------------------------------
   Waterline: the divider between light and deep. The wave belongs to the
   dark side, so it sits on the light background and is filled with deep.
   -------------------------------------------------------------------------- */
.waterline {
    line-height: 0;
    background: var(--ice);
}

.waterline svg { width: 100%; height: 40px; display: block; }
.waterline svg path { fill: var(--deep); }

.waterline--up { background: var(--deep); }
.waterline--up svg path { fill: var(--ice); }

/* --------------------------------------------------------------------------
   Chapters
   -------------------------------------------------------------------------- */
.chapter {
    padding: clamp(4rem, 9vw, 8rem) var(--gutter);
}

.chapter--light { background: var(--ice); }
.chapter--panel { background: var(--panel); }

.chapter--deep {
    background: var(--deep);
    color: var(--on-deep-soft);
}

.chapter--deep h1, .chapter--deep h2, .chapter--deep h3 { color: var(--on-deep); }
.chapter--deep figcaption { color: var(--on-deep-muted); }
.chapter--deep a { color: var(--glacier); }

.chapter__container {
    max-width: var(--container);
    margin: 0 auto;
}

.chapter__head {
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
    max-width: 44rem;
}

.chapter__head--minor {
    margin-top: clamp(4rem, 9vw, 7rem);
    margin-bottom: 2rem;
}

.chapter__title {
    font-size: clamp(2.1rem, 5.2vw, 4rem);
    font-variation-settings: 'wdth' 108;
    letter-spacing: -0.035em;
}

.chapter__subtitle {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-variation-settings: 'wdth' 106;
    margin-top: clamp(4rem, 9vw, 7rem);
    margin-bottom: 1.5rem;
}

.chapter__head--minor .chapter__subtitle { margin-top: 0; }

.chapter__lede {
    margin: 1.25rem 0 0;
    font-size: clamp(1.1rem, 1.7vw, 1.3rem);
    line-height: 1.5;
    max-width: 40rem;
    color: var(--muted);
}

.chapter--deep .chapter__lede { color: var(--on-deep-soft); }

/* Statements: the slides that were just a sentence on black. Kept big and
   quiet, no box around them. */
.statement {
    margin: clamp(4rem, 9vw, 7rem) 0;
    padding: 2rem 0 0;
    max-width: 52rem;
    position: relative;
}

.statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4.5rem;
    height: 4px;
    background: var(--water);
}

.statement p {
    margin: 0;
    max-width: 18ch;
    font-size: clamp(2.2rem, 5.6vw, 4.6rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.035em;
    font-variation-settings: 'wdth' 112;
    color: var(--ink);
}

.statement .statement__sub {
    margin-top: 1.5rem;
    max-width: 36ch;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.015em;
    font-variation-settings: 'wdth' 100;
    color: var(--water-dark);
}

.statement + .prose { margin-top: -1rem; }

.statement--on-deep::before { background: var(--glacier); }
.statement--on-deep p { color: var(--on-deep); }
.statement--on-deep .statement__sub { color: var(--glacier); }

/* --------------------------------------------------------------------------
   Questions: question on the left, the product that answers it on the right.
   -------------------------------------------------------------------------- */
.qa {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.qa__item {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding-top: clamp(2.5rem, 6vw, 5rem);
    border-top: 1px solid var(--rule);
}

.qa__item:first-child { border-top: 0; padding-top: 0; }

.qa__q {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-variation-settings: 'wdth' 104;
}

.qa__a {
    margin: 1.25rem 0 0;
    max-width: 36ch;
    color: var(--muted);
}

.qa__figure { width: 100%; }

/* --------------------------------------------------------------------------
   Deep chapter pieces
   -------------------------------------------------------------------------- */
.plate--wide { max-width: 900px; margin: 0 auto; }

.berg {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-top: 2rem;
}

.berg__claim {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--on-deep);
}

.berg__punch {
    margin: 1.5rem 0 2rem;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.035em;
    font-variation-settings: 'wdth' 115;
    color: var(--glacier);
}

.search__banner {
    max-width: 420px;
    margin: 0 0 1.5rem;
}

.search__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.search__note {
    margin: 2rem 0 0;
    max-width: 52ch;
    color: var(--on-deep-soft);
}

/* --------------------------------------------------------------------------
   Narratives
   -------------------------------------------------------------------------- */
.case {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    margin-top: clamp(3rem, 7vw, 5rem);
}

.split__title {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.split__note {
    margin: 1.5rem 0 0;
    color: var(--muted);
    max-width: 40ch;
}

/* The problem list is flat and grey. The narrative gets the sequence
   treatment: it is one, and the numbers are the beats of the story. */
.plain-list {
    margin: 0;
    padding: 0 0 0 1.4rem;
    color: var(--muted);
}
.plain-list li { padding: 0.3rem 0; }
.plain-list strong { color: var(--ink); font-weight: 700; }

.story-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: beat;
    border-left: 2px solid var(--water);
}

.story-list li {
    counter-increment: beat;
    position: relative;
    padding: 0.45rem 0 0.45rem 2.6rem;
    color: var(--ink);
}

.story-list li::before {
    content: counter(beat);
    position: absolute;
    left: 0.9rem;
    top: 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--water);
    font-variant-numeric: tabular-nums;
}

.split__col:last-child .split__note {
    color: var(--ink);
    font-weight: 600;
}

.story {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.story__line {
    margin: 0 0 1.5rem;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
    max-width: 24ch;
}

.story__line + .story__line { color: var(--water-dark); }
.story__text .prose { margin-top: 2rem; }

.story__figure .shot { background: var(--deep); }

/* --------------------------------------------------------------------------
   Craft: the five steps, numbered because they happened in order.
   -------------------------------------------------------------------------- */
.craft {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

.craft__step {
    counter-increment: step;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    border-top: 1px solid var(--rule);
}

.craft__step:first-child { border-top: 0; padding-top: 0; }

.craft__title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -0.025em;
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
}

.craft__title::before {
    content: counter(step);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--water);
    font-variant-numeric: tabular-nums;
}

.craft__text p {
    margin: 1rem 0 0;
    max-width: 36ch;
    color: var(--muted);
}

.craft__figures { display: grid; gap: 1rem; align-items: start; }
.craft__figures--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.craft__figures--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.craft__figures--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.craft__figures--doc { max-width: 380px; }

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.tweet { max-width: 640px; }

.evenly {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.evenly__chart {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
}

.evenly__axis-y {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    align-self: stretch;
}

.evenly__axis-x {
    grid-column: 2;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}

.evenly__plot {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
    min-height: 260px;
    border-left: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    padding: 0.75rem 0.75rem 0;
}

.evenly__col { display: flex; flex-direction: column-reverse; gap: 4px; }

.evenly__block {
    background: var(--water);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    padding: 0.55rem 0.25rem;
    border-radius: 3px;
    line-height: 1.2;
}

.evenly__block--tall { padding-block: 0.9rem; }

.evenly__block--ghost {
    background: transparent;
    color: var(--muted);
    border: 1.5px dashed var(--rule);
    padding-block: 1.6rem;
}

.evenly__text p { margin: 0 0 0.5rem; }

.evenly__claim {
    margin: 1.5rem 0 1.5rem !important;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--ink);
}

.balance { display: grid; gap: clamp(2rem, 5vw, 4rem); }

.balance__scrum { max-width: 640px; }
.balance__frame { position: relative; }

.balance__cross {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.balance__cross::before, .balance__cross::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 46%;
    height: 8px;
    background: #e5322d;
    border-radius: 4px;
    transform: rotate(28deg);
    opacity: 0.85;
}

.balance__cross::after { transform: rotate(-28deg); }


.balance__curve {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.balance__curve svg {
    width: 100%;
    height: auto;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
}

.curve__axis { stroke: var(--ink); stroke-width: 1.5; }
.curve__line { fill: none; stroke: var(--water); stroke-width: 4; stroke-linecap: round; }
.curve__dot { fill: var(--ink); }
.curve__label { font-family: var(--font); font-size: 14px; fill: var(--muted); }
.curve__label--mark { fill: var(--ink); font-weight: 700; }

.balance__lead { margin: 0 0 0.5rem; font-weight: 600; color: var(--ink); }
.balance__list { margin: 0 0 1.5rem; padding: 0 0 0 1.2rem; }
.balance__list li { padding: 0.15rem 0; }

/* --------------------------------------------------------------------------
   Close
   -------------------------------------------------------------------------- */
.close { padding-bottom: clamp(5rem, 12vw, 10rem); }

.close__title {
    font-size: clamp(3rem, 9vw, 7rem);
    letter-spacing: -0.04em;
    font-variation-settings: 'wdth' 115;
}

.close__lede {
    margin: 2rem 0 1rem;
    color: var(--on-deep-muted);
}

.close__list {
    margin: 0;
    padding: 0 0 0 1.6rem;
    max-width: 34ch;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--on-deep);
}

.close__list li { padding: 0.4rem 0; }
.close__list li::marker { color: var(--glacier); font-weight: 700; }

.close__byline {
    margin: 3rem 0 0;
    color: var(--on-deep-muted);
    max-width: 48ch;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--deep-2);
    color: var(--on-deep-muted);
    border-top: 1px solid var(--deep-rule);
    padding: 2.5rem var(--gutter);
    font-size: 0.9rem;
}

.footer__container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    align-items: flex-start;
    justify-content: space-between;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--on-deep);
    font-weight: 700;
}

.footer__text { margin: 0.5rem 0 0; max-width: 46ch; }

.footer__meta { display: flex; gap: 1.5rem; }
.footer__meta a { color: var(--on-deep-soft); text-decoration: none; }
.footer__meta a:hover { color: var(--glacier); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(6, 16, 25, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1rem 3rem;
}

.lightbox.active { display: flex; }

.lightbox__content { max-width: 100%; max-height: 100%; }

.lightbox__image {
    max-width: min(1400px, 100%);
    max-height: calc(100vh - 7rem);
    object-fit: contain;
    border-radius: 4px;
    background: var(--paper);
}

.lightbox__caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.75rem;
    text-align: center;
    color: var(--on-deep-soft);
    font-size: 0.85rem;
}

.lightbox__close, .lightbox__prev, .lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--on-deep);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox__prev:disabled, .lightbox__next:disabled { opacity: 0.25; cursor: default; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .nav__byline { display: none; }
    .qa__item { grid-template-columns: 1fr; }
    .berg, .story, .evenly, .balance__curve { grid-template-columns: 1fr; }
    .craft__step { grid-template-columns: 1fr; gap: 1.5rem; }
    .craft__figures--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .nav__links {
        position: fixed;
        inset: var(--nav-height) 0 0 0;
        flex-direction: column;
        gap: 0;
        padding: 1rem var(--gutter);
        background: var(--ice);
        color: var(--ink);
        transform: translateX(100%);
        transition: transform var(--base);
    }
    .nav--deep .nav__links { background: var(--deep); color: var(--on-deep); }
    .nav__links.open { transform: translateX(0); }
    .nav__link { display: block; font-size: 1.3rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); opacity: 1; }
    .nav__link.active { border-bottom-color: var(--rule); color: var(--water); }
    .nav--deep .nav__link { border-bottom-color: var(--deep-rule); }
    .nav--deep .nav__link.active { color: var(--glacier); }
    .nav__toggle { display: flex; }
    .nav__logo span { font-size: 0.9rem; }

    .hero { padding-top: calc(var(--nav-height) + 8vh); }
    .hero__title { max-width: 8ch; }
    .case, .split, .search__grid { grid-template-columns: 1fr; }
    .craft__figures--three, .craft__figures--four, .craft__figures--two { grid-template-columns: 1fr; }
    .evenly__plot { min-height: 200px; }
    .evenly__block { font-size: 0.7rem; }
    .lightbox__prev, .lightbox__next { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__title, .hero__handle, .hero__thesis, .hero__footnote, .hero__scroll {
        animation: none;
        opacity: 1;
        transform: none;
    }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
