/* GENERATED from homepage/index.html by tools/wp/build-homepage.mjs. Edit the draft, then rebuild. */
/* Cover Story: the homepage set like a business magazine issue.
   The cover photograph leads, the issue's contents sit beside it, and the rest of
   the page reads like the magazine's well: big type, photographs, rules, white space.
   Red is the editor's colour: labels, the progress line, links and the main button. */
:root {
    /* The cover and masthead run edge to edge. The sections below sit in a centred
       column kept to about 1200px, the measure consultancy sites use, so content
       never stretches across a wide screen and the side margins stay generous. */
    --page: 1200px;
    --gutter: clamp(20px, 5vw, 80px);
    /* The masthead and cover run full width but keep their own side margin:
       less than the content column below, enough that nothing hugs the screen edge. */
    --edge: clamp(28px, 5.5vw, 104px);
    --rule: #E7E5E2;
    --radius: 0px;
    --pod-radius: 0px;
    --pod-height: 500px;
}

/* ---------- Masthead ---------- */
.masthead { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
/* The masthead spans the full width so it lines up with the full-bleed cover:
   the logo sits on the cover's text edge, the button on the contents column's edge. */
.masthead .wrap { max-width: none; padding: 0 var(--edge); }
.logo img { width: 152px; height: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.button) { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.nav a:not(.button):hover { color: var(--red-deep); }
.menu-button { display: none; }

/* ---------- Cover ---------- */
.cover {
    display: grid;
    /* Like a news front page, the lead story and the issue's contents sit inside
       the same side margins as the masthead, as two boxes with a gap between them,
       instead of running to the screen edges. */
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    padding: 28px var(--edge) 0;
    height: min(calc(100vh - 80px), 820px);
    min-height: 600px;
}
.cover-slides { position: relative; overflow: hidden; background: #2A2A29; }
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1000ms var(--ease-out), visibility 0s linear 1000ms;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1000ms var(--ease-out); }
.slide-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 8s var(--ease-out); }
.slide.is-active .slide-image { transform: scale(1); }
.slide--bleed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(15deg, rgba(29, 29, 27, 0.86) 0%, rgba(29, 29, 27, 0.5) 38%, rgba(29, 29, 27, 0) 70%);
}
/* Framed slides: the cover sits as a photographic plate on the light ground,
   and the headline is set in ink below it. Used for covers that can't carry type. */
.slide--framed { background: var(--light); }
.slide--framed .slide-image {
    inset: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) auto auto;
    width: 52%;
    height: 44%;
    border-radius: var(--radius);
    box-shadow: 0 40px 70px -40px rgba(29, 29, 27, 0.45);
}
.slide--auto .slide-text { visibility: hidden; }
.slide-text {
    position: absolute;
    z-index: 2;
    left: clamp(28px, 4vw, 56px);
    right: clamp(28px, 4vw, 56px);
    bottom: clamp(32px, 5vw, 64px);
    max-width: 860px;
}
.slide .meta { margin-bottom: 18px; font-size: 14px; }
.slide-title {
    color: var(--paper);
    font-weight: 900;
    font-size: clamp(38px, 5.6vw, 80px);
    line-height: 1.02;
    letter-spacing: -0.035em;
}
.slide--framed .slide-title { color: var(--ink); max-width: 24ch; font-size: clamp(32px, 3.7vw, 54px); }
.slide-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 26px; }
.slide-excerpt { max-width: 46ch; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.slide--framed .slide-excerpt { color: var(--text); }

/* Contents column: the issue's table of contents doubles as the slide tabs. */
.contents {
    display: flex;
    flex-direction: column;
    padding: 24px 26px 18px;
    background: var(--paper);
    border: 1px solid var(--rule);
}
.contents-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.contents-head h2 { font-size: 15px; font-weight: 800; }
.contents-controls { display: flex; gap: 6px; }
.round-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--ink);
    background: var(--light);
    border: 0;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 200ms var(--ease-out);
}
.round-button:hover { background: #ECEBE9; }
.contents-list { display: flex; flex-direction: column; flex: 1; }
.contents-item {
    position: relative;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    align-items: center;
    flex: 1;
    padding: 12px 0;
    text-align: left;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--rule);
    cursor: pointer;
}
.contents-item:last-child { border-bottom: 0; }
.contents-thumb { width: 76px; height: 56px; object-fit: cover; border-radius: 0; filter: saturate(0.6); opacity: 0.7; transition: filter 300ms var(--ease-out), opacity 300ms var(--ease-out); }
.contents-text { display: grid; gap: 3px; }
.contents-kind { font-size: 12px; font-weight: 800; color: var(--muted); }
.contents-title { font-size: 14.5px; font-weight: 700; line-height: 1.35; color: #5A5A5B; transition: color 200ms var(--ease-out); }
.contents-item:hover .contents-title, .contents-item.is-active .contents-title { color: var(--ink); }
.contents-item.is-active .contents-thumb, .contents-item:hover .contents-thumb { filter: none; opacity: 1; }
.contents-item.is-active .contents-kind { color: var(--red); }
.contents-track { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.contents-track span { position: absolute; inset: 0; background: var(--red); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 6vw, 92px) 0; }
.section-title { font-weight: 900; font-size: clamp(32px, 4vw, 54px); line-height: 1.06; letter-spacing: -0.03em; }
.section-intro { max-width: 58ch; margin-top: 18px; font-size: 18px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }

/* ---------- Picker: two questions written as one sentence ---------- */
.picker-sentence {
    max-width: 1100px;
    font-weight: 300;
    font-size: clamp(26px, 2.6vw, 38px);
    line-height: 1.38;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.picker-sentence .select { font-size: inherit; letter-spacing: -0.02em; padding-right: 1.1em; background-size: 0.5em; }

/* On-theme dropdown that replaces the operating system's menu. */
.choice { position: relative; display: inline-block; max-width: 100%; vertical-align: baseline; }
.choice-button {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3em;
    max-width: 100%;
    padding: 0 0.05em 0.04em 0;
    font: inherit;
    font-weight: 800;
    letter-spacing: inherit;
    text-align: left;
    color: var(--ink);
    background: none;
    border: 0;
    border-bottom: 2px solid rgba(227, 6, 33, 0.45);
    cursor: pointer;
    transition: border-color 200ms var(--ease-out);
}
.choice-button:hover, .choice.is-open .choice-button { border-bottom-color: var(--red); }
/* Nothing chosen yet: the blank reads lighter than an answer would. */
.choice.is-blank .choice-value { font-weight: 300; color: var(--muted); }
/* The second question before the first is answered. */
.choice-button:disabled { cursor: default; border-bottom-color: #C9C5C0; }
.choice-button:disabled .choice-chevron { color: #C9C5C0; }
.choice-button:focus-visible { border-radius: 2px; }
.choice-chevron { width: 0.5em; height: 0.5em; flex: none; color: var(--red); transform: translateY(-0.04em); transition: transform 300ms var(--ease-out); }
.choice.is-open .choice-chevron { transform: translateY(-0.04em) rotate(180deg); }
.choice-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 12px);
    left: 0;
    width: max-content;
    min-width: 100%;
    max-width: min(620px, calc(100vw - 2 * var(--gutter)));
    padding: 10px 0 12px;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1.35;
    background: var(--paper);
    border-top: 2px solid var(--ink);
    box-shadow: 0 1px 0 var(--rule), 0 34px 70px -30px rgba(29, 29, 27, 0.38);
    animation: choice-in 280ms var(--ease-out);
}
@keyframes choice-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.choice-title { padding: 8px 24px 8px; font-size: 13px; font-weight: 800; color: var(--muted); }
.choice-list { margin: 0; padding: 0; list-style: none; max-height: 60vh; overflow-y: auto; outline: none; }
.choice-option {
    position: relative;
    padding: 12px 24px 12px 52px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    border-top: 1px solid #F0EEEC;
}
.choice-option.is-highlighted { background: var(--light); color: var(--ink); }
.choice-option[aria-selected="true"] { color: var(--red-deep); font-weight: 800; }
.choice-option[aria-selected="true"]::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23E30621' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.choice-list:focus-visible .choice-option.is-highlighted { box-shadow: inset 3px 0 0 var(--red); }
.picker-layout { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
/* The photo keeps its own fixed shape. It used to stretch to the height of the
   answer beside it, so every new answer made the same photo crop differently. */
.picker-figure { position: relative; aspect-ratio: 5 / 7; }
.picker-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* A new challenge's photo fades in. Reduced motion turns this off (base.css). */
.picker-photo.is-fresh { animation: photo-in 420ms var(--ease-out); }
@keyframes photo-in { from { opacity: 0; } to { opacity: 1; } }
/* Before the answer: one quiet line. The result keeps a minimum height so the
   page below does not jump when the answer appears. */
.picker-result { min-height: 200px; }
.result-prompt { grid-column: 1 / -1; margin: 0; font-size: 16px; color: var(--muted); }
.result-line a { color: var(--red-deep); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.picker-intro { margin-bottom: 22px; font-size: 16px; font-weight: 700; color: var(--muted); }
.picker-result {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: clamp(20px, 2.5vw, 40px);
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid var(--rule);
}
.result-block { display: flex; flex-direction: column; gap: 10px; }
.result-label { font-size: 13px; font-weight: 800; color: var(--red); }
.result-title { font-size: 24px; font-weight: 800; line-height: 1.22; letter-spacing: -0.015em; color: var(--ink); }
.result-line { font-size: 16px; }
.result-related { display: grid; grid-template-columns: minmax(100px, 150px) 1fr; gap: 18px; align-items: start; text-decoration: none; }
.result-related img, .img-placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* Stand-in for content that has no cover image yet. */
.img-placeholder {
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #8E8A86;
    background: repeating-linear-gradient(135deg, #EEECE9 0 10px, #E7E5E2 10px 20px);
}
.result-related .result-title { font-size: 19px; }
.result-title--link { display: block; text-decoration: none; }
.result-title--link:hover { text-decoration: underline; text-decoration-color: var(--red); }
.result-related:hover .result-title { text-decoration: underline; text-decoration-color: var(--red); }

/* ---------- Insights ---------- */
.insights {
    color: rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(227, 6, 33, 0.28), rgba(227, 6, 33, 0) 70%),
        radial-gradient(50% 70% at 0% 100%, rgba(179, 29, 47, 0.18), rgba(179, 29, 47, 0) 70%),
        #19191A;
}
.insights .section-title { color: var(--paper); }
.insights .section-head { border-bottom-color: rgba(255, 255, 255, 0.14); }
.insights .text-link { color: #FF9AA5; }

/* ---------- Results ----------
   The proof the river ends in: Vanaya's three published numbers, set large in
   white on the brand red, each with what it means underneath. */
.results { color: rgba(255, 255, 255, 0.9); background: var(--red); }
.results .section-title { color: var(--paper); }
.results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}
.results-head p { max-width: 36ch; font-size: 18px; }
.results-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 4vw, 64px);
    margin: clamp(40px, 5vw, 72px) 0 0;
    padding: 0;
    list-style: none;
}
.results-list li { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.55); }
.results-figure {
    font-size: clamp(72px, 8.5vw, 128px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--paper);
    font-variant-numeric: lining-nums tabular-nums;
}
/* The unit sits smaller beside the number so the number reads first. */
.results-figure span { margin-left: 0.04em; font-size: 0.45em; letter-spacing: -0.02em; vertical-align: 0.9em; }
.results-list h3 { margin-top: 22px; font-size: 20px; font-weight: 900; color: var(--paper); }
.results-list li > p:last-child { max-width: 34ch; margin-top: 8px; font-size: 15px; line-height: 1.55; }
@media (max-width: 1100px) {
    .results-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
    .results-list { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Neurometric ----------
   The three Neurometric tools carry the section. Each is a flush panel in a
   different depth of red with a real icon (Phosphor, duotone, MIT licence).
   On hover or keyboard focus the icon and the words lift and the icon grows a
   little, so the panel answers the pointer without leaving its place in the
   row. Each panel links to that tool's own page on the live site. */
.neuro-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}
.neuro-head .section-title { max-width: 16ch; }
.neuro-head p { max-width: 42ch; font-size: 18px; }
.neuro-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: clamp(36px, 4vw, 56px) 0 0;
    padding: 0;
    list-style: none;
}
.neuro-tools li:nth-child(1) { --panel: var(--red); --panel-hover: #D0051E; }
.neuro-tools li:nth-child(2) { --panel: #C8091F; --panel-hover: #B5071B; }
.neuro-tools li:nth-child(3) { --panel: var(--red-deep); --panel-hover: #9E1828; }
.neuro-tool {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
    padding: clamp(28px, 2.8vw, 40px);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: var(--panel);
    transition: background-color 400ms var(--ease-out);
}
.neuro-icon {
    width: 88px;
    height: 88px;
    margin-bottom: auto;
    color: var(--paper);
    transform-origin: left bottom;
    transition: transform 500ms var(--ease-out);
}
.neuro-words { margin-top: 56px; transition: transform 500ms var(--ease-out); }
.neuro-tool h3 { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; color: var(--paper); }
/* Four lines held for every description, so the three titles line up. */
.neuro-tool p { min-height: 6.2em; margin-top: 10px; font-size: 15px; line-height: 1.55; }
.neuro-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--paper);
}
.neuro-more .icon { transition: transform 400ms var(--ease-out); }
.neuro-tool:hover,
.neuro-tool:focus-visible { background: var(--panel-hover); }
.neuro-tool:hover .neuro-icon,
.neuro-tool:focus-visible .neuro-icon { transform: translateY(-10px) scale(1.12); }
.neuro-tool:hover .neuro-words,
.neuro-tool:focus-visible .neuro-words { transform: translateY(-8px); }
.neuro-tool:hover .neuro-more .icon,
.neuro-tool:focus-visible .neuro-more .icon { transform: translateX(4px); }
.neuro-tool:focus-visible { outline: 2px solid var(--paper); outline-offset: -6px; }
/* With reduced motion the panel only deepens in colour. */
@media (prefers-reduced-motion: reduce) {
    .neuro-tool:hover .neuro-icon,
    .neuro-tool:focus-visible .neuro-icon,
    .neuro-tool:hover .neuro-words,
    .neuro-tool:focus-visible .neuro-words,
    .neuro-tool:hover .neuro-more .icon,
    .neuro-tool:focus-visible .neuro-more .icon { transform: none; }
}
.neuro-foot { margin-top: 28px; }
@media (max-width: 1100px) {
    .neuro-head { flex-direction: column; align-items: flex-start; }
    .neuro-tool { min-height: 340px; }
}
@media (max-width: 820px) {
    .neuro-tools { grid-template-columns: 1fr; }
    .neuro-tool { min-height: 0; }
    .neuro-tool p { min-height: 0; }
    .neuro-icon { width: 64px; height: 64px; }
    .neuro-words { margin-top: 32px; }
}

/* ---------- Brain, Behavior, Business: hulu to hilir ----------
   The river is always shown whole, never cut into pieces.
   Desktop: the section pins to the screen as one annotated picture. The landscape
   stands in the middle, the three stages are set beside their markers on the river,
   and scrolling runs the water from the spring down to the sea.
   Tablet, phone and short windows: the landscape is too small to read, so the
   river becomes a red line down the left of the stages. It fills as the reader
   scrolls, and each stage lights as the water reaches it. */
.bbb { background: var(--light); padding: clamp(56px, 6vw, 92px) 0; }
.flow-intro .section-intro { max-width: 52ch; }
.flow-art { position: absolute; width: 0; height: 0; overflow: hidden; }
.flow-steps { margin-top: 32px; }
.flow-step { padding: 28px 0; border-top: 1px solid #DEDCD9; transition: opacity 500ms var(--ease-out); }
/* While the page follows the reader, stages the water hasn't reached yet sit back. */
.flow-steps.is-tracking .flow-step:not(.is-lit) { opacity: 0.4; }
.flow-name { font-weight: 900; font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.flow-place { margin-left: 10px; font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--muted); vertical-align: middle; }
.flow-what { max-width: 44ch; margin-top: 14px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.flow-how { max-width: 46ch; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }
/* The river's closing line, which hands over to the results section below. */
.flow-outro { padding-top: 28px; border-top: 1px solid #DEDCD9; }
.flow-outro p { max-width: 24ch; font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.flow-outro .text-link { margin-top: 14px; }
.flow-outro .text-link:hover .icon { transform: translateY(3px); }
.flow-art .leader { fill: none; stroke: rgba(29, 29, 27, 0.3); stroke-width: 1; }
.flow-art .mk { fill: var(--paper); stroke: var(--red); stroke-width: 2.5; transition: fill 400ms var(--ease-out); }
/* A white ring keeps a lit marker visible where the river is as wide as the dot. */
.flow-art .mk.is-lit { fill: var(--red); stroke: var(--paper); }
.flow-art .drop { fill: var(--red); stroke: var(--paper); stroke-width: 2; }

/* Tablet, phone and short desktop windows: the river as a red line down the
   left of the stages. Everything that doesn't match the desktop rule below. */
@media (max-width: 1023px), (max-height: 599px) {
    .flow-steps { position: relative; padding-left: 36px; }
    /* The riverbed, then the water filling it as the reader scrolls. */
    .flow-steps::before,
    .flow-steps::after {
        content: "";
        position: absolute;
        left: 9px;
        top: 37px;
        width: 4px;
        border-radius: 2px;
    }
    .flow-steps::before { bottom: 0; background: #E2DED8; }
    .flow-steps::after { height: var(--flow-fill, 100%); max-height: calc(100% - 37px); background: var(--red); }
    .flow-step { position: relative; border-top: 0; }
    /* Each stage's marker sits on the line, level with its name. */
    .flow-step::before {
        content: "";
        position: absolute;
        z-index: 1;
        left: -36px;
        top: 37px;
        width: 22px;
        height: 22px;
        box-sizing: border-box;
        border: 3px solid var(--red);
        border-radius: 50%;
        background: var(--light);
        transition: background-color 400ms var(--ease-out);
    }
    .flow-step.is-lit::before { background: var(--red); }
    .flow-outro { margin-left: 36px; }
}

@media (min-width: 1024px) and (min-height: 600px) {
    .bbb { padding: 0; }
    .flow-track { height: 230vh; }
    .flow-pin {
        --pin-pad: clamp(32px, 6vh, 60px);
        /* Room kept under the river for the last stage's text, which hangs
           below its marker near the bottom of the picture. */
        --flow-tail: 56px;
        --flow-gap: clamp(32px, 4vw, 72px);
        position: sticky;
        top: 0;
        height: 100vh;
        padding: var(--pin-pad) 0;
    }
    /* The pinned river needs room for three columns, so it keeps a wider
       measure than the rest of the page. */
    .flow-grid { --page: 1400px; }
    .flow-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-rows: 1fr auto;
        column-gap: var(--flow-gap);
        height: calc(100vh - 2 * var(--pin-pad) - var(--flow-tail));
    }
    .flow-intro { grid-column: 1; grid-row: 1; align-self: start; }
    .flow-intro .section-title { font-size: clamp(30px, 2.9vw, 50px); }
    .flow-art {
        position: relative;
        grid-column: 2;
        grid-row: 1 / 3;
        width: auto;
        height: calc(100vh - 2 * var(--pin-pad) - var(--flow-tail));
        aspect-ratio: 2 / 3;
        overflow: visible;
    }
    .flow-art svg { display: block; width: 100%; height: 100%; }
    .flow-steps { position: relative; grid-column: 3; grid-row: 1 / 3; margin: 0; }
    .flow-step {
        position: absolute;
        left: 0;
        right: 0;
        top: var(--y);
        display: block;
        margin-top: -22px;
        padding: 0;
        border: 0;
        /* Hidden until the water reaches this stage's marker, then it rises in and stays. */
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 700ms var(--ease-out) 150ms, transform 900ms var(--ease-out) 150ms;
    }
    .flow-step.is-lit { opacity: 1; transform: none; }
    /* Continues the leader drawn inside the illustration across the column gap. */
    .flow-step::before {
        content: "";
        position: absolute;
        top: 22px;
        left: calc(-1 * var(--flow-gap));
        width: calc(var(--flow-gap) - 12px);
        height: 1px;
        background: rgba(29, 29, 27, 0.3);
    }
    .flow-name { font-size: clamp(38px, 3.4vw, 56px); }
    /* The closing line rises in once the river reaches the sea. */
    .flow-outro {
        grid-column: 1;
        grid-row: 2;
        align-self: end;
        max-width: 420px;
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out);
    }
    .flow-outro.is-lit { opacity: 1; transform: none; }
}

/* Visitors who ask for reduced motion get the finished picture without the pin. */
@media (prefers-reduced-motion: reduce) {
    .flow-track { height: auto; }
    .flow-pin { position: static; }
}

/* ---------- Capabilities: an index ---------- */
.solutions-layout { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.solutions-layout .text-link { margin-top: 22px; }
.solutions { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 3.5vw, 56px); margin: 0; padding: 0; list-style: none; }
.solution {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 6px 20px;
    align-items: center;
    height: 100%;
    padding: 20px 0 22px;
    text-decoration: none;
    border-top: 1px solid #D9D6D2;
}
.solution p { grid-column: 1; grid-row: 2; }
.solution-arrow { grid-column: 2; grid-row: 1 / span 2; }
.solutions li:nth-child(-n+2) .solution { border-top-color: var(--ink); }
.solution h3 { display: flex; align-items: center; font-size: clamp(22px, 1.9vw, 28px); font-weight: 800; letter-spacing: -0.025em; transition: color 220ms var(--ease-out); }
.solution-icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 0;
    height: 34px;
    margin-right: 0;
    color: var(--red);
    opacity: 0;
    overflow: hidden;
    transform: scale(0.5) rotate(-12deg);
    transition: width 460ms var(--ease-out), margin 460ms var(--ease-out), opacity 300ms var(--ease-out), transform 520ms var(--ease-out);
}
.solution-icon .icon { width: 30px; height: 30px; }
.solution:hover .solution-icon, .solution:focus-visible .solution-icon { width: 34px; margin-right: 12px; opacity: 1; transform: none; }
@media (hover: none), (max-width: 1023px) {
    .solution-icon { width: 36px; height: 36px; margin-right: 14px; opacity: 1; transform: none; }
    .solution-icon .icon { width: 30px; height: 30px; }
}
.solution p { font-size: 15.5px; line-height: 1.5; }
.solution-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 0; background: var(--light); color: var(--ink); transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out); }
.solution:hover h3 { color: var(--red-deep); }
.solution:hover .solution-arrow { background: var(--red); color: var(--paper); }

/* ---------- FAQ: the closing red band ---------- */
.faq {
    color: rgba(255, 255, 255, 0.88);
    background:
        radial-gradient(70% 90% at 100% 100%, rgba(29, 29, 27, 0.35), rgba(29, 29, 27, 0) 70%),
        linear-gradient(120deg, #E3122A 0%, #C11A2B 50%, #9E1B2B 100%);
}
.faq .section-title { color: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .button { margin-top: 30px; }
.button--white { background: var(--paper); color: var(--red-deep); }
.button--white:hover { background: #FBE9EB; }
.faq-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.7); }
.faq-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--paper);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.faq-list a:hover span { text-decoration: underline; text-underline-offset: 5px; }
.faq-list .icon { width: 22px; height: 22px; color: var(--paper); transition: transform 360ms var(--ease-out); }
.faq-list a:hover .icon { transform: translateX(4px); }
.faq :focus-visible { outline-color: var(--paper); }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 36px; background: #171717; color: rgba(255, 255, 255, 0.72); font-size: 15px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-top h2 { color: var(--paper); font-weight: 900; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -0.03em; max-width: 18ch; }
.footer-columns { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0; }
.footer-columns h3 { margin-bottom: 14px; color: var(--paper); font-size: 14px; font-weight: 800; }
.footer-columns ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-columns a { text-decoration: none; }
.footer-columns a:hover { color: var(--paper); text-decoration: underline; }
.footer-brand img { width: 152px; }
.footer-brand p { max-width: 34ch; margin-top: 18px; }
.footer-contact { margin-top: 18px; font-style: normal; line-height: 1.7; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--paper); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .cover { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; height: auto; min-height: 0; }
    .masthead .wrap { padding: 0 var(--gutter); }
    .cover-slides { height: 620px; }
    .contents { padding: 18px var(--gutter) 22px; border: 0; border-bottom: 1px solid var(--rule); }
    .contents-list { flex-direction: row; gap: 16px; overflow-x: auto; scrollbar-width: none; }
    .contents-item { flex: 0 0 210px; grid-template-columns: 1fr; border-bottom: 0; padding: 4px 0 12px; align-items: start; }
    .contents-thumb { width: 100%; height: 96px; }
    .picker-layout { grid-template-columns: 1fr; }
    .picker-figure { min-height: 0; aspect-ratio: 21 / 9; }
    .picker-result { grid-template-columns: 1fr 1fr; min-height: 0; }
    .result-block--related { grid-column: 1 / -1; }
    .solutions-layout { grid-template-columns: 1fr; }
    .footer-columns { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .faq-grid { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 680px) {
    body { font-size: 16px; }
    .masthead .wrap { height: 66px; }
    .logo img { width: 126px; }
    .nav {
        position: fixed;
        inset: 66px 0 auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 24px var(--gutter) 28px;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        opacity: 0;
        visibility: hidden;
        transition: opacity 240ms var(--ease-out), visibility 0s linear 240ms;
    }
    .menu-open .nav { opacity: 1; visibility: visible; transition: opacity 240ms var(--ease-out); }
    .nav a:not(.button) { font-size: 18px; }
    .menu-button { display: grid; place-items: center; width: 44px; height: 44px; background: var(--light); border: 0; border-radius: 0; }
    /* Phone: each slide stacks the cover photo above the headline, so the image always shows. */
    .cover-slides { height: auto; display: grid; background: var(--paper); }
    .slide { position: relative; grid-area: 1 / 1; background: var(--paper); }
    .slide--bleed::after { display: none; }
    .slide .slide-image, .slide--framed .slide-image { position: relative; inset: auto; width: 100%; height: 280px; border-radius: 0; box-shadow: none; transform: none; }
    .slide-text { position: relative; left: auto; right: auto; bottom: auto; padding: 24px var(--gutter) 8px; }
    .slide-title, .slide--framed .slide-title { color: var(--ink); max-width: none; }
    .slide .meta--light .meta-kind { color: var(--ink); }
    .slide .meta--light .meta-topic { color: var(--red); }
    .slide .meta--light .meta-date { color: var(--muted); }
    .slide-excerpt { color: var(--text); font-size: 16px; }
    .slide-foot { flex-direction: column-reverse; align-items: flex-start; gap: 22px; margin-top: 18px; }
    .contents { border-bottom: 0; padding-top: 8px; }
    .contents-head h2 { font-size: 14px; }
    .contents-item { flex-basis: 150px; }
    .contents-thumb { height: 76px; }
    .contents-title { font-size: 13.5px; }
    .picker-sentence { font-size: 26px; }
    .picker-figure { aspect-ratio: 16 / 10; }
    .result-related { grid-template-columns: 110px 1fr; }
    .picker-result { grid-template-columns: 1fr; margin-top: 28px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .solutions { grid-template-columns: 1fr; }
    .solutions li:nth-child(2) .solution { border-top-color: #D9D6D2; }
    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-columns { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; }
    .choice { display: block; }
    .choice-button { display: flex; width: 100%; justify-content: space-between; margin: 6px 0 14px; font-size: 22px; }
    .choice-panel { right: 0; width: auto; max-width: none; font-size: 16px; }
    .choice-option { padding-left: 46px; }
    .faq-list a { font-size: 17px; padding: 20px 0; }
}
