/* Calenhad, Redirect R1: an editorial civic studio. Warm paper, dark ink, the brand forest as the one coloured band.
   One composition scaled by the viewport (docs/visual-spec.md): sizes grow with the screen and stop at 1920.
   Every nudgeable value is a token. */

@font-face { font-family: "Display"; src: url("/assets/fonts/display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Text"; src: url("/assets/fonts/text.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  /* colour */
  --paper: #F3F0E9;          /* the canvas */
  --paper-2: #E9E4D8;        /* image wells */
  --ink: #1B1D1A;            /* text and rules */
  --ink-2: #50554D;          /* secondary text */
  --line: rgb(27 29 26 / .18);
  --forest: #2F4432;         /* brand forest: the one coloured band per page */
  --forest-ink: #E8ECE3;
  --forest-2: #B7C4B2;
  --forest-rule: rgb(255 255 255 / .55);
  --forest-line: rgb(255 255 255 / .2);
  --sage: #6A7F67;
  --focus: #2F4432;
  --error: #A12A1F;

  /* type: two families, few sizes, far apart */
  --font-display: "Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-hero: clamp(2.75rem, 1.31rem + 7.43vw, 10.25rem);      /* 50 at 390, 128 at 1440, 164 at 1920 */
  --fs-h1: clamp(2.5rem, 1.36rem + 5.71vw, 8.5rem);           /* 44, 104, 131 */
  --fs-big: clamp(2.25rem, 1.3rem + 4.38vw, 6.5rem);          /* 38, 84, 104 */
  --fs-statement: clamp(1.875rem, 1.36rem + 2.1vw, 4rem);     /* 30, 52, 62 */
  --fs-lede: clamp(1.375rem, 1.09rem + 1.14vw, 2.5rem);       /* 22, 34, 39 */
  --fs-title: clamp(1.5rem, 1.3rem + 1.33vw, 3rem);           /* 26, 40, 46 */
  --fs-body-l: clamp(1.1875rem, 1.07rem + .48vw, 1.75rem);    /* 19, 24, 26 */
  --fs-body: clamp(1.0625rem, 1.016rem + .19vw, 1.25rem);     /* 17, 19, 20 */
  --fs-label: clamp(.9375rem, .84rem + .38vw, 1.25rem);       /* 15, 19, 20 */
  --fs-small: .9375rem;
  --lh-body: 1.7;

  /* space */
  --gutter: clamp(1.25rem, .9rem + 1.5vw, 2.75rem);
  --col-gap: clamp(1rem, .6rem + 1.2vw, 2rem);
  --max: 120rem;
  --pad-label: clamp(.9rem, .75rem + .5vw, 1.5rem);          /* rule to label */
  --label-gap: clamp(3.25rem, 2.4rem + 4.4vw, 8rem);         /* label to content: 57 at 390, 102 at 1440 */
  --sec-b: clamp(5rem, 3.2rem + 6.5vw, 10rem);               /* a section's bottom padding */
  --hdr-h: 4rem;
  --rule: 2px;

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 200ms;
  --t-fill: 500ms;
  --t-reveal: 1000ms;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h12.5M8.5 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 1.5rem); }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
[role="list"] { list-style: none; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, .statement { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
h3 { font-weight: 600; line-height: 1.3; }
p { text-wrap: pretty; }
::selection { background: var(--forest); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.band :focus-visible { outline-color: #fff; }

.skip { position: absolute; left: var(--gutter); top: -5rem; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; text-decoration: none; font-weight: 600; }
.skip:focus { top: .75rem; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow, .label { font-size: var(--fs-label); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.eyebrow { color: var(--ink-2); }
.label__n { font-variant-numeric: tabular-nums; }
.statement { font-size: var(--fs-statement); }
.statement--big { font-size: var(--fs-big); line-height: 1.04; letter-spacing: -0.028em; }
.body-l { font-size: var(--fs-body-l); line-height: 1.5; }

/* ---------- links and buttons: square, quiet, one arrow ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: .7em; min-height: 3.25rem; padding: .85rem 1.35rem; background: var(--forest); color: #fff; font-weight: 600; font-size: var(--fs-body); line-height: 1.2; text-decoration: none; border: 0; border-radius: 0; cursor: pointer; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: top; transition: transform var(--t-fill) var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn::after, .arrow::after { content: ""; flex: none; width: .95em; height: .95em; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform var(--t-fast) var(--ease); }
.btn:hover::after, .arrow:hover::after { transform: translateX(5px); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light::before { background: #fff; }
.arrow { display: inline-flex; align-items: center; gap: .55em; min-height: 2.75rem; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: .32em; transition: text-decoration-color var(--t-fast); }
.arrow:hover { text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }

/* ---------- header: solid canvas, leaves on the way down, returns on the way up ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--paper); padding-top: env(safe-area-inset-top); transition: transform 400ms var(--ease), box-shadow var(--t-fast); }
.hdr.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--hdr-h); }
.hdr__logo { display: inline-flex; align-items: center; min-height: 2.75rem; }
.hdr__logo img { width: 142px; height: auto; }
@media (min-width: 48rem) { .hdr__logo img { width: 168px; } }
.nav__list { list-style: none; display: flex; align-items: center; gap: clamp(1.5rem, 2.8vw, 3rem); }
.nav__list a { position: relative; display: inline-flex; align-items: center; gap: .45em; min-height: 2.75rem; font-size: var(--fs-label); font-weight: 600; text-decoration: none; }
.nav__list a::before { content: ""; position: absolute; left: 0; right: 0; bottom: .55rem; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 350ms var(--ease); }
.nav__list a:hover::before, .nav__list a[aria-current="page"]::before { transform: scaleX(1); transform-origin: left; }
.nav__cta a::after { content: ""; width: .85em; height: .85em; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform var(--t-fast) var(--ease); }
.nav__cta a:hover::after { transform: translateX(4px); }
.nav__btn { display: none; }
@media (max-width: 47.99rem) {
  .js .nav__btn { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; padding: 0 0 0 1rem; background: none; border: 0; font-size: var(--fs-label); font-weight: 600; cursor: pointer; }
  .nav__icon { position: relative; width: 1.375rem; height: 10px; }
  .nav__icon::before, .nav__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 300ms var(--ease), top 300ms var(--ease); }
  .nav__icon::before { top: 0; } .nav__icon::after { top: 8px; }
  .nav__btn[aria-expanded="true"] .nav__icon::before { top: 4px; transform: rotate(45deg); }
  .nav__btn[aria-expanded="true"] .nav__icon::after { top: 4px; transform: rotate(-45deg); }
  .js .nav__list { display: none; }
  .js .nav__list.is-open { display: flex; position: fixed; z-index: 1; inset: calc(var(--hdr-h) + env(safe-area-inset-top)) 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); background: var(--paper); overflow-y: auto; }
  .js .nav__list.is-open li { border-top: var(--rule) solid var(--ink); }
  .js .nav__list.is-open li:last-child { border-bottom: var(--rule) solid var(--ink); }
  .js .nav__list.is-open a { display: flex; justify-content: space-between; min-height: 4.25rem; font-family: var(--font-display); font-size: 2rem; font-weight: 400; letter-spacing: -0.015em; }
  .js .nav__list.is-open a::before { display: none; }
  .menu-open body { overflow: hidden; }
  html:not(.js) .nav__list { gap: 1rem; }
  html:not(.js) .nav__cta a::after { display: none; }
}

/* ---------- the section anatomy: a 2px rule, a small label, then heading left and content right ---------- */
.sec { padding-bottom: var(--sec-b); }
.sec__top { position: relative; padding-top: var(--pad-label); margin-bottom: var(--label-gap); }
.sec__top::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--rule); background: currentColor; transform-origin: left; }
.split { display: grid; gap: clamp(2.25rem, 1.5rem + 2.5vw, 4rem) var(--col-gap); align-items: start; }
.split__l:empty { display: none; }
@media (min-width: 62rem) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split__l { grid-column: 1 / span 4; }
  .split__r { grid-column: 5 / -1; }
  .split__l:empty { display: block; }
  .motion .split--sticky .split__l > * { position: sticky; top: calc(var(--hdr-h) + 2rem); } /* motion only: capture mode hides low sticky elements */
}
.statement--side { max-width: 13ch; }

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 1rem + 4vw, 5rem) 0 var(--sec-b); }
.hero .eyebrow { margin-bottom: clamp(1rem, .6rem + 1.2vw, 2rem); }
.hero__h { font-size: var(--fs-hero); line-height: .98; letter-spacing: -0.034em; text-wrap: initial; }
.hero__h .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__h .ln > span { display: inline-block; }
.hero__split { margin-top: clamp(2rem, 1rem + 3.5vw, 4.5rem); }
.hero__copy { display: grid; gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); justify-items: start; }
.hero__lede { font-size: var(--fs-body-l); line-height: 1.45; max-width: 24em; }
.hero__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
@media (min-width: 40rem) { .hero__img { aspect-ratio: 3 / 2; } }
@media (min-width: 62rem) { .hero__copy { padding-top: .35rem; } .hero__img { aspect-ratio: 16 / 10; } }

/* ---------- photographs: one grade, square corners, drifting gently inside their frames ---------- */
figure picture { width: 100%; height: 100%; }
figure img { width: 100%; height: 100%; object-fit: cover; }
.drift { overflow: hidden; background: var(--paper-2); }
.motion .drift img { height: 116%; margin-top: -8%; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.band__img, .phead__img, .disc__img { margin-top: clamp(3.5rem, 2rem + 5vw, 8rem); aspect-ratio: 4 / 3; }
@media (min-width: 40rem) { .band__img, .phead__img, .disc__img { aspect-ratio: 16 / 7; } }
@media (min-width: 62rem) { .band__img, .phead__img, .disc__img { aspect-ratio: 3.2 / 1; } }

/* 01 who we are */
.who .statement { font-size: var(--fs-big); line-height: 1.04; letter-spacing: -0.028em; max-width: 15ch; }
.who__body { display: grid; gap: 1.5rem; justify-items: start; margin-top: clamp(2.5rem, 1.5rem + 3vw, 5rem); max-width: 36rem; }
.who__body .body-l { color: var(--ink-2); }
@media (min-width: 62rem) { .who__body { margin-left: auto; margin-right: 0; width: 56%; max-width: none; } }

/* 02 where we focus: photo cards with a ruled caption */
.cards { list-style: none; display: grid; gap: clamp(3.5rem, 2.5rem + 3vw, 6rem); }
.card__img { aspect-ratio: 3 / 2; }
@media (min-width: 40rem) { .card__img { aspect-ratio: 2.4 / 1; } }
.card__cap { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .5rem 1rem; padding-top: 1.25rem; }
.card__n { font-size: var(--fs-label); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: .45em; }
.card__t { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-title); line-height: 1.12; letter-spacing: -0.018em; }
.card__d { grid-column: 2; color: var(--ink-2); max-width: 30rem; }
@media (min-width: 48rem) {
  .card__cap { grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--col-gap); }
  .card__d { grid-column: 3; padding-top: .3em; }
}

/* 03 services: large numbered rows between rules */
.rows { list-style: none; border-bottom: var(--rule) solid var(--ink); }
.rows__i { border-top: var(--rule) solid var(--ink); }
.row { position: relative; isolation: isolate; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 2.75rem; gap: .35rem .75rem; align-items: center; padding: clamp(1.15rem, .9rem + .9vw, 1.75rem) .75rem; text-decoration: none; transition: color 300ms var(--ease); }
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--forest); transform: scaleY(0); transform-origin: top; transition: transform var(--t-fill) var(--ease); }
.row:hover, .row:focus-visible { color: #fff; }
.row:hover::before, .row:focus-visible::before { transform: scaleY(1); }
.row:focus-visible { outline-offset: 0; }
.row__n { font-size: var(--fs-label); font-weight: 600; font-variant-numeric: tabular-nums; }
.row__t { font-family: var(--font-display); font-size: var(--fs-title); line-height: 1.1; letter-spacing: -0.018em; }
.row__d { grid-column: 2; grid-row: 2; font-size: var(--fs-small); line-height: 1.5; opacity: .82; }
.row__go { grid-column: 3; grid-row: 1 / span 2; justify-self: end; width: 2.75rem; height: 2.75rem; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.row__go::after { content: ""; position: absolute; inset: 0; margin: auto; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform 300ms var(--ease); }
.row:hover .row__go::after, .row:focus-visible .row__go::after { transform: translateX(3px); }
@media (min-width: 48rem) {
  .row { grid-template-columns: 3rem minmax(0, 4fr) minmax(0, 5fr) 3rem; padding-inline: 1rem; }
  .row__d { grid-column: 3; grid-row: 1; font-size: var(--fs-body); padding-right: 1rem; }
  .row__go { grid-column: 4; grid-row: 1; }
}
.rows__all { margin-top: 2rem; }

/* ruled lines: principles and beliefs */
.lines { list-style: none; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); border-bottom: var(--rule) solid var(--forest-rule); }
.lines li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: clamp(1.1rem, .9rem + .8vw, 1.6rem) 0; border-top: var(--rule) solid var(--forest-rule); }
.lines__n { font-size: var(--fs-label); font-weight: 600; font-variant-numeric: tabular-nums; opacity: .8; }
.lines__t { font-family: var(--font-display); font-size: var(--fs-title); line-height: 1.12; letter-spacing: -0.018em; }
.lines--ink { margin-top: 0; border-bottom-color: var(--ink); }
.lines--ink li { border-top-color: var(--ink); }

/* the coloured band (one per page) */
.band { background: var(--forest); color: var(--forest-ink); padding-top: clamp(1.25rem, 1rem + 1vw, 2rem); }
.band .sec__top::before { background: var(--forest-rule); }
.band .label, .band .statement, .band .lines__t { color: #fff; }
.band .body-l { max-width: 38rem; }
.mission .statement--big { max-width: 17ch; }

/* ---------- inner page heads ---------- */
.phead { padding: clamp(2rem, 1rem + 4vw, 5rem) 0 var(--sec-b); }
.phead .eyebrow { margin-bottom: clamp(1rem, .6rem + 1.2vw, 2rem); }
.phead__h { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.032em; max-width: 14ch; }
.phead__split { margin-top: clamp(2.5rem, 1.5rem + 3.5vw, 5rem); }
.phead__lede { font-family: var(--font-display); font-size: var(--fs-lede); line-height: 1.28; letter-spacing: -0.012em; max-width: 30ch; }
@media (min-width: 62rem) { .phead__split .split__l { order: 0; } }
.phead__img { margin-top: clamp(3rem, 2rem + 4vw, 6.5rem); }
.toc { list-style: none; display: grid; gap: 0; border-top: var(--rule) solid var(--ink); max-width: 22rem; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; align-items: center; gap: 1rem; min-height: 3rem; font-weight: 600; text-decoration: none; }
.toc a:hover { text-decoration: underline; text-underline-offset: .3em; }
.toc span { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 1.6rem; }
@media (max-width: 61.99rem) { .phead__split .split__l:not(:empty) { order: 2; } }

/* services: four disciplines */
.disc__line { font-family: var(--font-display); font-size: var(--fs-lede); line-height: 1.25; letter-spacing: -0.012em; max-width: 26ch; }
.caps__h { margin: clamp(2.25rem, 1.5rem + 2vw, 3.5rem) 0 1rem; font-size: var(--fs-label); }
.caps { list-style: none; display: grid; border-top: var(--rule) solid var(--ink); }
.caps li { padding: .95rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); } }

/* about */
.people { list-style: none; display: grid; gap: 2.5rem var(--col-gap); }
.person { border-top: var(--rule) solid var(--ink); padding-top: 1.25rem; display: grid; gap: .35rem; }
.person__name { font-family: var(--font-display); font-size: var(--fs-statement); line-height: 1.05; letter-spacing: -0.022em; }
.person__role { color: var(--ink-2); font-weight: 600; }
@media (min-width: 40rem) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* contact */
.contact__aside { display: grid; gap: 1.25rem; }
.notice { font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); padding-left: 1rem; border-left: 3px solid var(--line); max-width: 26rem; }
.notice--preview { border-left-color: var(--forest); color: var(--ink); }
.form { display: grid; gap: 1.75rem; }
.form__row { display: grid; gap: 1.75rem var(--col-gap); }
@media (min-width: 48rem) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .5rem; align-content: start; }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field__opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 3.25rem; padding: .8rem 0; background: transparent; border: 0; border-bottom: var(--rule) solid var(--ink); border-radius: 0; font-size: var(--fs-body); line-height: 1.4; }
.field textarea { min-height: 9.5rem; resize: vertical; padding-top: .6rem; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%231B1D1A' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .25rem center; background-size: 1rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field [aria-invalid="true"] { border-bottom-color: var(--error); border-bottom-width: 3px; }
.field__err { color: var(--error); font-size: var(--fs-small); font-weight: 600; }
.field__hint { color: var(--ink-2); font-size: var(--fs-small); }
.form__errors { padding: 1.25rem 1.5rem; border: 2px solid var(--error); background: #FBF1EE; }
.form__errors p { font-weight: 600; margin-bottom: .5rem; }
.form__errors ul { padding-left: 1.2rem; }
.form__errors a { color: var(--error); font-weight: 600; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-top: .5rem; }
.form__status { font-weight: 600; max-width: 30rem; }
.form__status[data-kind="error"] { color: var(--error); }
.form__status[data-kind="ok"] { color: var(--forest); }
.btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* privacy and accessibility */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--fs-title); margin: 3rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .6rem; }

/* ---------- the shared ending and the footer (one canvas, ruled) ---------- */
.close { padding-bottom: clamp(3.5rem, 2.5rem + 3vw, 6rem); }
.close__grid { position: relative; display: grid; gap: 2.5rem var(--col-gap); align-items: end; padding-top: clamp(2.5rem, 1.5rem + 3vw, 5rem); }
.close__grid::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: var(--rule); background: var(--ink); transform-origin: left; }
.band + .close .close__grid::before { display: none; }
.band + .close .close__grid { padding-top: var(--sec-b); }
.close__h { font-size: var(--fs-big); line-height: 1.02; letter-spacing: -0.03em; max-width: 13ch; }
.close__side { display: grid; gap: 1.75rem; justify-items: start; max-width: 28rem; }
.close__side p { color: var(--ink-2); font-size: var(--fs-body-l); line-height: 1.45; }
@media (min-width: 62rem) { .close__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } .close__h { grid-column: 1 / span 8; } .close__side { grid-column: 9 / span 4; padding-bottom: .6rem; } }

.ftr { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
.ftr__grid { display: grid; gap: 2.5rem var(--col-gap); padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0; border-top: var(--rule) solid var(--ink); }
.ftr__logo { display: inline-flex; min-height: 2.75rem; align-items: center; }
.ftr__logo img { width: clamp(168px, 12rem + 6vw, 300px); height: auto; }
.ftr__tag { margin-top: 1rem; color: var(--ink-2); max-width: 22rem; }
.ftr__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem var(--col-gap); }
.ftr__nav ul { list-style: none; display: grid; align-content: start; }
.ftr__nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-weight: 600; }
.ftr__nav a:hover, .ftr__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); }
@media (min-width: 62rem) {
  .ftr__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / span 6; }
  .ftr__nav { grid-column: 9 / -1; }
}

/* ---------- motion: rules draw, words rise from a mask, blocks rise once (final state under reduced motion and capture) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion .sec__top[data-reveal] { opacity: 1; transform: none; }
.motion .sec__top::before { transform: scaleX(0); transition: transform 1100ms var(--ease-io); }
.motion .sec__top.is-in::before { transform: scaleX(1); }
.motion .sec__top .label { display: inline-block; opacity: 0; transform: translateY(-12px); transition: opacity 900ms var(--ease) 250ms, transform 900ms var(--ease) 250ms; }
.motion .sec__top.is-in .label { opacity: 1; transform: none; }
.motion .cards .card:nth-child(n) { transition-delay: 0ms; }
.motion .rows__i:nth-child(2) { transition-delay: 70ms; } .motion .rows__i:nth-child(3) { transition-delay: 140ms; } .motion .rows__i:nth-child(4) { transition-delay: 210ms; }
.motion .lines li:nth-child(2), .motion .caps li:nth-child(2) { transition-delay: 70ms; }
.motion .lines li:nth-child(3), .motion .caps li:nth-child(3) { transition-delay: 140ms; }
.motion .lines li:nth-child(4), .motion .caps li:nth-child(4) { transition-delay: 210ms; }
.motion .caps li:nth-child(5) { transition-delay: 280ms; } .motion .caps li:nth-child(6) { transition-delay: 350ms; }
.motion .hero__h .ln > span { animation: rise 1200ms var(--ease) both; }
.motion .hero__h .ln + .ln > span { animation-delay: 110ms; }
.motion .hero .eyebrow, .motion .phead .eyebrow { animation: fade 900ms var(--ease) both; }
.motion .phead__h { animation: lift 1100ms var(--ease) 60ms both; }
.motion .hero__copy, .motion .phead__split { animation: lift 1100ms var(--ease) 260ms both; }
.motion .hero__img picture, .motion .phead__img picture { animation: fade 1400ms var(--ease) 200ms both; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

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

@media (max-width: 22rem) { :root { --fs-hero: 2.5rem; --fs-h1: 2.25rem; --fs-big: 2rem; } }

@media print {
  .hdr, .close, .ftr__nav, .skip { display: none !important; }
  body { background: #fff; }
  .band { background: #fff; color: #000; }
  .band .label, .band .statement, .band .lines__t { color: #000; }
}

.draft-img { display: block; width: 100%; height: 100%; min-height: 12rem; background: repeating-linear-gradient(45deg, #ddd6c8 0 12px, #e6e0d3 12px 24px); }
