/* Canadian Intelligence Agency, v6 design system: "Night operations" (2026-11-03).
   Dark ground, one face (General Sans), bold sans display, full-bleed archival photographs as chapter
   openers, white panels for the systems' own interfaces. Tokens first; everything references them. */
:root {
  --bg: #07080a; --bg2: #101215; --bg3: #171a1f; --line: #2a2d33;
  --fg: #ffffff; --mute: #b9b3a8; --red: #e0342c; --red-deep: #b5271f;
  --font: 'General Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --step-head: clamp(2.5rem, 1.6rem + 3.6vw, 5rem);
  --step-display: clamp(3.5rem, 9vw, 9rem);
  --margin: clamp(20px, 3.3vw, 48px); --gap: clamp(16px, 2vw, 32px); --pad: clamp(80px, 9vw, 140px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: var(--step-body); line-height: 1.45; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; } h1, h2, h3, h4, p, ul { margin: 0; } ul { padding: 0; list-style: none; } a { color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.wrap { max-width: 1400px; margin: 0 auto; padding-inline: var(--margin); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: var(--margin); top: var(--margin); }

/* type */
.display { font-weight: 700; font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.04em; }
.head { font-weight: 700; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance; }
.lead { font-size: var(--step-lead); line-height: 1.4; letter-spacing: -0.01em; }
.small { font-size: var(--step-small); line-height: 1.45; }
.kick { font-size: var(--step-small); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin-bottom: 24px; font-weight: 500; }
.statement { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 30ch; font-weight: 500; }
h3 { font-weight: 700; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.015em; }
.mute { color: var(--mute); }
.link { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; font-weight: 500; transition: text-decoration-thickness var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-thickness: 0.14em; } }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; background: var(--fg); color: var(--bg); font: 700 var(--step-body)/1 var(--font); text-decoration: none; border: 0; border-radius: 0; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--small { min-height: 44px; padding: 0 18px; background: transparent; color: var(--fg); border: 1.5px solid var(--fg); font-weight: 500; }
.button--big { min-height: 64px; padding: 0 36px; }
.button--red { background: var(--red); color: var(--fg); }
.ghost { color: var(--fg); text-decoration: none; border-bottom: 1.5px solid var(--fg); padding-bottom: 3px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .button:hover { background: #e6e1d6; } .button--small:hover { background: var(--fg); color: var(--bg); } .button--red:hover { background: var(--red-deep); } }

/* masthead */
.bar { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); padding: 22px var(--margin); font-size: var(--step-small); font-weight: 500; position: relative; z-index: 3; }
.wordmark { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-right: auto; text-decoration: none; font-size: var(--step-body); }
.wordmark img { width: 30px; height: auto; }
.bar nav { display: flex; gap: clamp(18px, 2.4vw, 32px); }
.bar nav a { text-decoration: none; } .bar nav a[aria-current] { text-decoration: underline; text-underline-offset: 0.3em; }
@media (hover: hover) and (pointer: fine) { .bar nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; } }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: clip; }
.hero picture, .chapter picture { display: contents; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.05) brightness(0.5); opacity: 0; transition: opacity 900ms ease; }
.hero__video.is-on { opacity: 1; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.05) brightness(0.5); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,10,.92) 0%, rgba(7,8,10,.55) 55%, rgba(7,8,10,.15) 100%); /* taste-skill-ignore: scrim over a photograph */ }
.hero__body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px var(--margin); max-width: 1180px; }
.hero h1 { font-weight: 700; font-size: clamp(3.25rem, 8.4vw, 8.5rem); line-height: 0.9; letter-spacing: -0.04em; margin-bottom: 32px; max-width: none; }
.hero .sub { font-size: var(--step-lead); line-height: 1.4; max-width: 44ch; color: #e6e1d6; margin-bottom: 36px; font-weight: 500; }
.ctas { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero__foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 28px var(--margin); font-size: var(--step-small); color: var(--mute); }
.ops { display: flex; gap: 26px; flex-wrap: wrap; font-weight: 500; color: var(--fg); }
.ops span::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 10px; vertical-align: 1px; }
.lines .line { display: block; overflow: clip; padding: 0.1em 0 0.08em; margin: -0.1em 0 -0.08em; } .lines [data-line] { display: block; }

/* sections */
.sec { padding-block: var(--pad); }
.sec--tight { padding-block: calc(var(--pad) * 0.6); }
.sec--alt { background: var(--bg2); }
.sec .head { margin-bottom: 40px; max-width: 16ch; }
.sec > .wrap > .lead { max-width: 48ch; color: #e6e1d6; }

/* briefings list */
.list { border-top: 1px solid var(--line); /* taste-skill-ignore: list rules */ }
.list a { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); /* taste-skill-ignore */ text-decoration: none; align-items: baseline; }
.list h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -0.025em; line-height: 1; }
.list p { color: var(--mute); }
@media (hover: hover) and (pointer: fine) { .list a h3 { transition: transform var(--t-ui) var(--ease-out); } .list a:hover h3 { transform: translateX(8px); } }

/* chapter: a full-bleed photograph with words at the foot */
.chapter { position: relative; min-height: 90svh; display: flex; align-items: flex-end; overflow: clip; }
.chapter__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) brightness(0.45); }
.chapter__in { position: relative; z-index: 2; padding: 80px var(--margin); max-width: 1180px; }
.chapter__in .head { margin-bottom: 20px; }
.chapter__in p { font-size: var(--step-lead); max-width: 44ch; color: #e6e1d6; }
.chapter__cap { position: absolute; right: var(--margin); bottom: 24px; z-index: 2; font-size: var(--step-small); color: var(--mute); }

/* two columns */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two .head { margin-bottom: 24px; }
.two .lead { color: #e6e1d6; max-width: 40ch; }

/* interface fragments: the systems' own screens */
.frag { background: #fff; color: #111; }
.frag__bar { display: flex; justify-content: space-between; padding: 12px 16px; background: #f1f0ec; border-bottom: 1px solid #e3e0d8; /* taste-skill-ignore */ font-weight: 700; font-size: var(--step-small); }
.frag__log { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
.frag__log td { padding: 10px 16px; border-bottom: 1px solid #ebe9e3; /* taste-skill-ignore */ vertical-align: top; line-height: 1.4; }
.frag__log td:nth-child(2) { max-width: 60ch; }
.frag__log .t { white-space: nowrap; font-variant-numeric: tabular-nums; color: #777; width: 1%; }
.frag__log .s { white-space: nowrap; font-weight: 600; width: 1%; text-align: right; color: var(--red); }
.frag figcaption, .frag__sum { padding: 12px 16px; font-size: var(--step-small); color: #666; background: #f8f7f4; max-width: 70ch; }
.frag__sum { color: #111; font-weight: 500; }
.rv { list-style: none; margin: 0; padding: 0; }
.rv li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #ebe9e3; /* taste-skill-ignore */ font-size: var(--step-small); line-height: 1.4; }
.rv__act { flex: none; font-weight: 700; color: var(--red); }

/* pictures */
.pic { position: relative; overflow: clip; }
.pic img { width: 100%; height: auto; filter: saturate(0.85) contrast(1.05); }
.pic figcaption { position: absolute; left: 0; bottom: 0; background: var(--bg); color: var(--mute); padding: 8px 12px; font-size: var(--step-small); }

/* tools board */
.board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.tile { aspect-ratio: 3 / 2; background: var(--bg); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.tile--head { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; background: var(--bg2); }
.tile--head .head { font-size: clamp(1.75rem, 2.6vw, 2.75rem); }
.tile--head p { color: var(--mute); max-width: 32ch; }
.tile--name span { font-weight: 700; font-size: var(--step-lead); line-height: 1.1; overflow-wrap: anywhere; }
.tile--mark svg { width: 40px; height: 40px; fill: currentColor; flex: none; }
.tile--mark span { font-weight: 500; font-size: var(--step-small); line-height: 1.2; }
.tools__note { margin-top: 20px; max-width: 70ch; color: var(--mute); }
.board--links .tile--link { aspect-ratio: auto; min-height: 200px; padding: 0; }
.board--links .tile--link a { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; width: 100%; height: 100%; padding: 22px; text-decoration: none; }
.board--links .tile__t { font-weight: 700; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.015em; }
.board--links .tile__l { font-size: var(--step-small); line-height: 1.4; color: var(--mute); }
@media (hover: hover) and (pointer: fine) { .board--links .tile--link a:hover { background: var(--bg3); } }

/* the pile calculator */
.pile { background: var(--red); color: var(--fg); }
.pile__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 48px; align-items: end; }
.pile__controls { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 32px; }
.pile__result { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.pile__kinds { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pile__kinds legend { font-size: var(--step-body); margin-bottom: 12px; padding: 0; }
.pile__kinds label { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; background: var(--red-deep); cursor: pointer; font-weight: 500; }
.pile__kinds input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pile__kinds label:has(input:checked) { background: var(--fg); color: var(--bg); }
.pile__kinds label:has(input:focus-visible) { outline: 3px solid var(--fg); outline-offset: 3px; }
.pile__range { display: flex; flex-direction: column; gap: 12px; }
.pile__range output { font-weight: 700; }
.pile__range input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; }
.pile__range input[type=range]::-webkit-slider-runnable-track { height: 8px; background: var(--red-deep); }
.pile__range input[type=range]::-moz-range-track { height: 8px; background: var(--red-deep); }
.pile__range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; background: var(--fg); border: 0; border-radius: 0; }
.pile__range input[type=range]::-moz-range-thumb { width: 28px; height: 28px; background: var(--fg); border: 0; border-radius: 0; }
.pile__hours { font-weight: 700; font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.05em; }
.pile__hours span { font-variant-numeric: tabular-nums; display: inline-block; }
.pile__result .lead, .pile__result .small { max-width: 44ch; }

/* doctrine */
.doc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.doc h3 { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; }
.doc .statement { margin-bottom: 14px; }
.doc p { color: var(--mute); max-width: 48ch; }
.chap { min-height: 80svh; display: flex; align-items: center; }
.chap .wrap { width: 100%; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 32px; align-items: end; }
.chap > .wrap > :first-child { grid-column: 1 / 7; } .chap > .wrap > :last-child { grid-column: 7 / 13; }
.chap .statement { margin-top: 24px; color: #e6e1d6; }
.chap__body { display: flex; flex-direction: column; gap: 28px; } .chap__body .lead { color: #e6e1d6; max-width: 44ch; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj { background: var(--bg2); display: flex; flex-direction: column; gap: 14px; padding: 0 0 28px; text-decoration: none; }
.proj .pic { aspect-ratio: 16 / 10; } .proj .pic img { width: 100%; height: 100%; object-fit: cover; }
.proj > * { padding-inline: 28px; } .proj > .pic { padding: 0; }
.proj__who { font-size: var(--step-small); color: var(--mute); font-weight: 500; }
.proj h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); letter-spacing: -0.02em; }
.proj p { color: var(--mute); font-size: var(--step-body); }
.nums { display: flex; gap: 28px; flex-wrap: wrap; margin-top: auto; }
.nums b { display: block; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -0.03em; line-height: 1; }
.nums span { font-size: var(--step-small); color: var(--mute); display: block; max-width: 22ch; }
.fine { color: var(--mute); max-width: 80ch; margin-top: 32px; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.tier { background: var(--bg); padding: 40px 32px; display: flex; flex-direction: column; gap: 12px; }
.tier h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.03em; }
.tier li { padding: 8px 0; color: var(--mute); border-bottom: 1px solid var(--line); /* taste-skill-ignore */ }
.tier .button { margin-top: auto; }
.guarantee { margin-top: 32px; padding: 28px 32px; background: var(--bg2); color: var(--fg); font-weight: 500; font-size: var(--step-lead); max-width: 60ch; }

/* questions */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; }
.faq h3 { margin-bottom: 8px; } .faq p { color: var(--mute); }
.bands .band { padding: 40px 0; border-top: 1px solid var(--line); /* taste-skill-ignore */ }
.band .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.band h3 { grid-column: 1 / 6; } .band p { grid-column: 7 / 13; color: var(--mute); max-width: 60ch; }

/* inner page header */
.file { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 40px; align-items: end; padding: clamp(40px, 6vw, 96px) var(--margin) clamp(48px, 6vw, 96px); max-width: 1400px; margin: 0 auto; }
.file__main { grid-column: 1 / 8; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.file__pic { grid-column: 9 / 13; }
.file:not(:has(.file__pic)) .file__main { grid-column: 1 / 11; }
.file__kind { font-size: var(--step-small); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.file__title { font-weight: 700; font-size: clamp(2.75rem, 6vw, 6rem); line-height: 0.9; letter-spacing: -0.04em; max-width: 16ch; }
.file__stand { font-size: var(--step-lead); color: #e6e1d6; max-width: 50ch; } .file__stand b { color: var(--fg); }
.file__out { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 56ch; }
.file__k { font-weight: 700; } .file__num { font-weight: 700; font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.04em; }

/* who does it today, behind the curtain, the target */
.today .wrap, .target .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.today__head, .target__head { grid-column: 1 / 6; } .today__text, .target__card { grid-column: 7 / 13; } .today__pic { grid-column: 1 / 6; }
.today__cost { margin-top: 16px; font-weight: 700; font-size: var(--step-lead); }
.target__card { background: var(--fg); color: var(--bg); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.target__card .g { font-weight: 500; color: #333; }
.curtain__wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.curtain__grid { grid-column: 1 / 8; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.curtain__grid h3 { margin-bottom: 10px; } .curtain__grid p { color: var(--mute); }
.curtain__wrap > .frag { grid-column: 9 / 13; }
.curtain__foot { grid-column: 1 / 13; color: var(--mute); max-width: 60ch; }
.split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.split__then { grid-column: 1 / 6; } .split__now { grid-column: 6 / 13; }
.split__cap { margin-top: 16px; color: var(--mute); max-width: 60ch; }
.ticks--big li { font-size: var(--step-lead); margin-bottom: 14px; }

/* close */
.close { padding: clamp(120px, 14vw, 200px) 0; }
.close .display { max-width: 12ch; margin-bottom: 32px; }
.close .sub { font-size: var(--step-lead); color: #e6e1d6; max-width: 44ch; margin-bottom: 36px; }

/* footer */
.foot__mark { display: block; width: 28px; height: auto; margin-bottom: 18px; opacity: 0.9; }
footer { padding: 48px var(--margin); border-top: 1px solid var(--line); /* taste-skill-ignore */ display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--gap); font-size: var(--step-small); color: var(--mute); max-width: 1400px; margin: 0 auto; }
footer > :nth-child(1) { grid-column: 1 / 5; } footer > :nth-child(2) { grid-column: 5 / 8; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; align-content: start; } footer > :nth-child(3) { grid-column: 8 / 10; } footer > :nth-child(4) { grid-column: 10 / 13; }
footer a { text-decoration: none; color: var(--fg); } footer .credits { grid-column: 1 / 13; max-width: 100ch; font-size: var(--step-body); }
footer .credits a { text-decoration: underline; color: var(--mute); }
@media (hover: hover) and (pointer: fine) { footer a:hover { text-decoration: underline; } }

/* book: qualify */
.book__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.book__grid > .qualify { grid-column: 1 / 8; } .book__grid > .book__next { grid-column: 9 / 13; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; } .book__grid > .downsell { grid-column: 1 / 8; }
.qualify { display: flex; flex-direction: column; gap: 24px; }
.qualify .q { border: 0; margin: 0; padding: 40px 32px 32px; background: var(--bg2); }
.qualify legend { padding: 0; margin-bottom: 20px; }
.q__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.q__opts label { position: relative; display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; background: var(--bg3); cursor: pointer; font-weight: 500; }
.q__opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.q__opts label:has(input:checked) { background: var(--fg); color: var(--bg); }
.q__opts label:has(input:focus-visible) { outline: 3px solid var(--fg); outline-offset: 3px; }
.qualify .q .small { margin-top: 20px; color: var(--mute); font-size: var(--step-body); }
.qualify .frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.qualify .field { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.qualify .field span { font-weight: 500; }
.qualify input[type=text], .qualify input[type=email], .qualify input[type=tel], .qualify textarea { font: inherit; padding: 14px 16px; border: 0; background: #fff; color: #111; }
.qualify textarea { resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--fg); }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
#formNote { font-weight: 500; }
.downsell { margin-top: 12px; background: var(--fg); color: var(--bg); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.downsell[hidden] { display: none; }

/* accordion (how it works) */
.acc { display: flex; height: 520px; }
.acc__panel { position: relative; flex: 1 1 0; min-width: 0; overflow: clip; transition: flex-grow 450ms cubic-bezier(0.76, 0, 0.24, 1); background: var(--bg2); }
.acc__panel + .acc__panel { border-left: 1px solid var(--line); /* taste-skill-ignore */ }
.acc__panel.is-open { flex-grow: 4.2; background: var(--bg3); }
.acc__tab { position: absolute; inset: 0; width: 100%; background: transparent; border: 0; color: inherit; cursor: pointer; font: 700 var(--step-lead)/1 var(--font); display: flex; align-items: flex-end; padding: 24px; writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; }
.acc__panel.is-open .acc__tab { opacity: 0; visibility: hidden; pointer-events: none; }
.acc__body { position: absolute; inset: 0; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; width: max(420px, 100%); opacity: 0; visibility: hidden; transition: opacity 300ms ease 120ms; pointer-events: none; }
.acc__panel.is-open .acc__body { opacity: 1; visibility: visible; pointer-events: auto; }
.acc__body h3 { font-size: var(--step-head); letter-spacing: -0.03em; } .acc__body p { max-width: 36ch; color: var(--mute); }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js [data-load] { opacity: 0; transform: translateY(12px); animation: rise 500ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .hero__img { transform: scale(1.06); animation: settle 1600ms var(--ease-soft) forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 450ms var(--ease-out), transform 600ms var(--ease-expo); transition-delay: var(--rd, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .chapter__img { transform: scale(1.08); transition: transform 1600ms var(--ease-soft); } .js .chapter.is-in .chapter__img { transform: none; }
  .js .pile__hours span { transition: transform 220ms var(--ease-out); } .js .pile__hours span.bump { transform: translateY(-6%); }
}
@keyframes line-up { to { transform: none; } } @keyframes rise { to { opacity: 1; transform: none; } } @keyframes settle { to { transform: none; } }

/* tablet */
@media (max-width: 1080px) {
  .two, .doc, .faq, .projects { grid-template-columns: 1fr 1fr; }
  .two { gap: 40px; } .projects { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .file__main, .file__pic, .file:not(:has(.file__pic)) .file__main { grid-column: 1 / 13; }
  .curtain__grid, .curtain__wrap > .frag { grid-column: 1 / 13; }
  .split__then, .split__now { grid-column: 1 / 13; }
  .today__head, .today__text, .today__pic, .target__head, .target__card { grid-column: 1 / 13; }
  .chap > .wrap > :first-child, .chap > .wrap > :last-child { grid-column: 1 / 13; }
  .book__grid > .qualify, .book__grid > .book__next, .book__grid > .downsell { grid-column: 1 / 13; } .book__grid > .book__next { position: static; }
  footer > :nth-child(n) { grid-column: 1 / 13; }
}
/* phone */
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; } .bar nav { order: 3; width: 100%; flex-wrap: wrap; gap: 6px 18px; padding-top: 12px; }
  .hero__img, .chapter__img { object-position: 50% 50% !important; }
  .hero { min-height: 92svh; } .hero h1 { font-size: 15vw; }
  .list a { grid-template-columns: 1fr; gap: 10px; }
  .two, .doc, .faq, .projects, .tiers, .curtain__grid { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tile { padding: 12px; aspect-ratio: 1; gap: 8px; } .tile--head { aspect-ratio: auto; grid-column: 1 / 4; grid-row: auto; padding: 18px; }
  .tile--mark svg { width: 30px; height: 30px; } .tile--mark span, .tile--name span { font-size: var(--step-small); font-weight: 500; }
  .board--links .tile--link { min-height: 0; } .board--links .tile--link a { padding: 16px; gap: 12px; }
  .pile__grid { grid-template-columns: 1fr; } .pile__controls, .pile__result { grid-column: 1; }
  .chapter { min-height: 70svh; } .chapter__in { padding: 48px var(--margin); }
  .chap { min-height: 0; padding-block: 72px; }
  .frag__log .t { display: none; }
  .acc { flex-direction: column; height: auto; } .acc__panel { flex: none; min-height: 64px; } .acc__panel + .acc__panel { border-left: 0; border-top: 1px solid var(--line); /* taste-skill-ignore */ }
  .acc__tab { writing-mode: horizontal-tb; transform: none; align-items: center; padding: 0 20px; height: 64px; inset: 0 0 auto 0; }
  .acc__panel.is-open .acc__tab { display: none; } .acc__body { position: static; width: 100%; display: none; padding: 24px 20px 28px; gap: 16px; } .acc__panel.is-open .acc__body { display: flex; opacity: 1; }
  .band .wrap { grid-template-columns: 1fr; row-gap: 10px; } .band h3, .band p { grid-column: 1; }
  .file__title { max-width: none; } .file__stand { max-width: none; }
  .qualify .q { padding: 24px 16px; } .q__opts label { min-height: 44px; padding: 0 14px; }
  .close .display { max-width: none; font-size: 11vw; }
  .hero h1 { font-size: 10vw; }
  .file__title { font-size: 10.5vw; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
