/* Darrick Jones Enterprises: landing page
   World: the "Decisions Create Wealth" poster. White stock, royal blue fields,
   ink bands, expanded grotesque capitals, one brush script, diagonal shards. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Mr Dafoe";
  src: url("../assets/fonts/mr-dafoe.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --white: #fcfdff;
  --paper: #eef2f9;
  --ink: #090d16;
  --ink-soft: #131926;
  --text: #10151f;
  --text-muted: #404a5a;
  --rule: #677286;

  --brand: #1f3d88;
  --brand-bright: #4c7be0;
  --brand-deep: #172f6b;
  --brand-night: #0f2150;
  --on-brand: #ffffff;
  --on-brand-soft: #e2e9f8;
  --on-ink-soft: #c4cce0;

  --danger: #b3261e;
  --danger-bg: #fdf0ee;

  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Mr Dafoe", "Brush Script MT", cursive;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --max: 1440px;
  --nav-h: 64px;
  --skew: -24deg;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* layers */
  --z-nav: 50;
  --z-sticky: 40;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  scrollbar-color: var(--brand) var(--ink);
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  accent-color: var(--brand);
  caret-color: var(--brand);
}

::selection { background: var(--brand); color: #fff; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.receipts :focus-visible,
.apply__copy :focus-visible,
.proof :focus-visible,
.footer :focus-visible,
.band :focus-visible { outline-color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- type ---------- */

.display {
  font-weight: 900;
  font-stretch: 122%;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 17ch;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  max-width: 46ch;
  color: var(--text-muted);
}

.fineprint { font-size: 0.875rem; line-height: 1.5; max-width: 48ch; }

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --tip-bg: var(--ink);
  --tip-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: stretch;
  min-height: 58px;
  padding: 0;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 0.95rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, scale 0.15s ease;
}
.btn__label {
  position: relative;
  overflow: clip;
  display: flex;
  align-items: center;
  padding: 0 0.6rem 0 1.5rem;
}
.btn__tip {
  display: grid;
  place-items: center;
  width: 4.4rem;
  padding-left: 1.1rem;
  background: linear-gradient(114deg, transparent 0 27%, var(--tip-bg) 27.6% 100%);
  color: var(--tip-fg);
}
.btn__tip svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  transition: translate 0.25s var(--ease-out);
}
.btn:hover { --btn-bg: var(--brand-deep); }
.btn:hover .btn__tip svg { translate: 4px 0; }
.btn:active { scale: 0.98; }

@media (max-width: 479.98px) {
  .btn { font-size: 0.82rem; letter-spacing: 0.035em; }
  .btn__label { padding-left: 1.1rem; }
  .btn__tip { width: 3.6rem; }
}

.btn--small { min-height: 44px; font-size: 0.78rem; }
.btn--small .btn__label { padding-left: 1.1rem; }
.btn--small .btn__tip { width: 3.4rem; }
.btn--small .btn__tip svg { width: 1rem; height: 1rem; }

.btn--block { display: flex; width: 100%; }
.btn--block .btn__label { flex: 1; justify-content: center; padding-left: 4.4rem; }
@media (max-width: 479.98px) { .btn--block .btn__label { padding-left: 1.1rem; } }

.btn--invert { --btn-bg: #fff; --btn-fg: var(--ink); --tip-bg: var(--brand); }
.btn--invert:hover { --btn-bg: var(--on-brand-soft); }

.btn[aria-disabled="true"] { cursor: progress; --btn-bg: var(--brand-deep); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--brand-bright);
  transition: text-decoration-color 0.2s ease, text-underline-offset 0.2s ease;
}
.text-link:hover { text-decoration-color: currentColor; text-underline-offset: 0.42em; }
.text-link svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }

/* ---------- shards ---------- */

.shard {
  position: absolute;
  display: block;
  transform: skewX(var(--skew));
  transform-origin: center;
  pointer-events: none;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--white);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}
.wordmark__name {
  font-weight: 900;
  font-stretch: 122%;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
}
.wordmark__sub {
  margin-top: 0.28rem;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  color: var(--brand);
}
.wordmark--light .wordmark__sub { color: var(--brand-bright); }

.nav__links { display: none; gap: 2rem; }
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  background: linear-gradient(var(--brand), var(--brand)) 0 78% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.nav__links a:hover { background-size: 100% 2px; }
.nav .btn { display: none; }

@media (min-width: 620px) { .nav .btn { display: inline-flex; } }
@media (min-width: 980px) { .nav__links { display: flex; } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--white);
}
.hero__stage { position: relative; isolation: isolate; overflow: clip; }
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(clamp(400px, 112vw, 520px), 1fr);
  max-width: var(--max);
  min-height: calc(100dvh - var(--nav-h));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero__copy {
  position: relative;
  z-index: 2;
  padding-block: clamp(1.5rem, 5vw, 4rem) 1rem;
}
.hero__title {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.35rem, 0.6rem + 7.4vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: clip; padding-block: 0.04em; }
.hero__title .line > span { display: block; }
.hero__title em { font-style: normal; color: var(--brand); }
.hero__sub {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  max-width: 40ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
}
/* Phones: copy and CTA span the full gutter-to-gutter width, so left and right spacing match */
@media (max-width: 619px) {
  .hero__sub { max-width: none; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .btn__label { flex: 1; justify-content: center; padding-left: 1.2rem; }
}

.hero__figure {
  position: relative;
  --mx: 0;
  --my: 0;
}
.hero__cutout {
  position: absolute;
  z-index: 3;
  inset: auto 0 0 0;
  margin-inline: auto;
  width: auto;
  height: 97%;
  max-width: none;
  translate: calc(var(--mx) * 8px) calc(var(--my) * 4px);
  transition: translate 0.5s var(--ease-out);
}
.hero__skyline {
  position: absolute;
  z-index: 1;
  right: -24%;
  bottom: 14%;
  width: 96%;
  mix-blend-mode: multiply;
  opacity: 0.95;
  translate: calc(var(--mx) * -16px) calc(var(--my) * -6px);
  transition: translate 0.6s var(--ease-out);
}
.hero__vertical {
  position: absolute;
  z-index: 1;
  left: -2%;
  bottom: 8%;
  writing-mode: vertical-rl;
  rotate: 180deg;
  font-weight: 900;
  font-stretch: 125%;
  font-size: min(6.4dvh, 3.5rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #dde2ea;
  user-select: none;
}
.hero__quote {
  display: none;
  position: absolute;
  z-index: 2;
  top: 9%;
  right: -2%;
  width: 9.5ch;
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  line-height: 1.12;
  rotate: -9deg;
  color: var(--ink);
}

.nameplate {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 0;
  width: min(118%, 520px);
  translate: -50% 12%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}
.nameplate > * { grid-area: 1 / 1; }
.nameplate__brush { width: 100%; }
.nameplate__name {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 12.5vw, 4.6rem);
  line-height: 1;
  rotate: -7deg;
  translate: 0 -24%;
  text-shadow: 0 2px 0 rgb(5 20 60 / 0.35);
  white-space: nowrap;
}
.nameplate__role {
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(0.58rem, 2.4vw, 0.8rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  rotate: -7deg;
  translate: 2% 150%;
  white-space: nowrap;
}

.hero__base {
  position: absolute;
  z-index: 4;
  inset: auto 0 0 0;
  height: clamp(34px, 5vw, 64px);
  background:
    linear-gradient(114deg, transparent 0 62%, var(--brand) 62.2% 69%, transparent 69.2% 71%, var(--brand-bright) 71.2% 73%, transparent 73.2%),
    var(--ink);
}

.hero__shards { position: absolute; inset: 0; z-index: 0; }
.shard--a {
  --skew: 24deg;
  bottom: -4%;
  left: -31vw;
  width: 30vw;
  height: 46%;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand) 55%, var(--brand-deep));
}
.shard--b {
  --skew: 24deg;
  bottom: -4%;
  left: 5vw;
  width: 1.4vw;
  height: 22%;
  background: var(--ink);
}
.shard--c {
  right: -22vw;
  bottom: -6%;
  width: 34vw;
  height: 62%;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand) 60%, var(--brand-night));
}
.shard--d {
  right: 15vw;
  bottom: -6%;
  width: 1.8vw;
  height: 34%;
  background: var(--ink);
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    column-gap: clamp(1rem, 3vw, 3rem);
    min-height: min(calc(100dvh - var(--nav-h)), 900px);
  }
  .hero__copy {
    align-self: center;
    padding-block: 3rem clamp(5rem, 9vw, 8rem);
  }
  .hero__inner { grid-template-rows: minmax(0, 1fr); }
  .hero__figure { min-height: 560px; align-self: stretch; }
  .hero__skyline { right: -30%; bottom: 10%; width: 112%; }
  .hero__vertical { left: -10%; bottom: 13%; font-size: clamp(5rem, min(10.5vw, 13.5dvh), 8.4rem); }
  .hero__quote { display: block; }
  .nameplate { width: min(128%, 640px); translate: -50% 6%; }
  .nameplate__name { font-size: clamp(3.4rem, 5.6vw, 5.4rem); }
  .nameplate__role { font-size: clamp(0.66rem, 0.9vw, 0.86rem); }
  .shard--a { left: -28vw; width: 30vw; height: 52%; }
  .shard--b { left: 7vw; width: 0.8vw; height: 24%; }
  .shard--c { right: -17vw; width: 26vw; height: 70%; }
  .shard--d { right: 11.5vw; width: 0.9vw; }
}

/* ---------- recognition band ---------- */

.band {
  position: relative;
  overflow: clip;
  background: var(--ink);
  color: #fff;
  padding-block: clamp(1.4rem, 3vw, 2.4rem);
}
.band__track { padding-inline: var(--gutter); }
.band__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.7rem clamp(1.5rem, 4vw, 3rem); }
.band__list[aria-hidden="true"] { display: none; }
.band__list li::after { display: none; }
.band__list li {
  display: flex;
  align-items: center;
  font-weight: 900;
  font-stretch: 122%;
  font-size: clamp(0.95rem, 0.7rem + 1.2vw, 1.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
}
.band__list li:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand-bright);
}
.band__list li::after {
  content: "";
  flex-shrink: 0;
  width: 0.55em;
  height: 0.8em;
  margin-inline: clamp(1.2rem, 3vw, 2.6rem);
  background: var(--brand);
  transform: skewX(var(--skew));
}

/* ---------- receipts ---------- */

.receipts {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--brand);
  color: var(--on-brand);
}
.receipts::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(114deg, transparent 0 12%, rgb(15 33 80 / 0.55) 12.1% 21%, transparent 21.1% 64%, rgb(76 123 224 / 0.38) 64.1% 67%, transparent 67.1% 84%, rgb(15 33 80 / 0.45) 84.1% 100%);
}
.receipts__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--section) var(--gutter);
}
.receipts__copy { display: grid; gap: 1.25rem; align-content: start; }
.receipts .lede { color: var(--on-brand); }
.receipts .fineprint { color: var(--on-brand-soft); }
.receipts__setup {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
}
.receipts__copy .btn { justify-self: start; margin-top: 0.5rem; }
.receipts .btn--invert { --tip-bg: var(--ink); }

.tally { display: grid; margin-top: 0.5rem; border-bottom: 2px solid rgb(255 255 255 / 0.28); }
.tally__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 1.25rem;
  padding-block: 0.85rem;
  border-top: 2px solid rgb(255 255 255 / 0.28);
}
.tally dt { font-size: 0.98rem; line-height: 1.35; color: var(--on-brand); }
.tally dd {
  font-weight: 900;
  font-stretch: 122%;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.receipt { position: relative; }
.receipt__stamp {
  position: absolute;
  right: -0.9rem;
  bottom: 5.4rem;
  padding: 0.35rem 0.8rem 0.3rem;
  border: 3px solid var(--brand);
  outline: 1.5px solid var(--brand);
  outline-offset: 3px;
  font-family: var(--font-body);
  font-weight: 900;
  font-stretch: 122%;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgb(251 252 254 / 0.9);
  rotate: -11deg;
  pointer-events: none;
}


.printer {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  filter: drop-shadow(0 28px 34px rgb(4 16 48 / 0.45));
}
.printer__slot {
  position: relative;
  z-index: 2;
  height: 22px;
  margin-inline: -14px;
  background: var(--ink);
}
.printer__feed { margin-top: -4px; }

/* The proof object is a one-page funding summary on letterhead, fed out of the slot above it. */
.receipt {
  padding: 0 clamp(1.1rem, 4vw, 1.9rem) 1.6rem;
  border-top: 6px solid var(--brand);
  background: #fbfcfe;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}
.receipt::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #c9d1e2 0 50%, transparent 50.1%);
}
.doc__head { display: flex; align-items: center; gap: 0.8rem; padding-block: 1.3rem 1.1rem; border-bottom: 2px solid var(--ink); }
.doc__mark { width: auto; height: 46px; flex-shrink: 0; }
.doc__org { font-weight: 900; font-stretch: 122%; font-size: 1rem; line-height: 1.1; text-transform: uppercase; }
.doc__org-sub { margin-top: 0.25rem; font-size: 0.76rem; color: var(--text-muted); }
.doc__titlebar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }
.doc__title { font-weight: 900; font-stretch: 122%; font-size: 1.35rem; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
.doc__status {
  padding: 0.3rem 0.6rem 0.25rem;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.doc__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.9rem; }
.doc__meta dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.doc__meta dd { font-weight: 600; }

.doc__table { width: 100%; margin-top: 1.1rem; border-collapse: collapse; }
.doc__table thead th {
  padding: 0.5rem 0.6rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}
.doc__table tbody th,
.doc__table tbody td { padding: 0.62rem 0.6rem; border-bottom: 1px solid #d5dbe8; vertical-align: top; }
.doc__table tbody th { font-weight: 600; text-align: left; }
.doc__table tbody tr:nth-child(even) { background: #f1f4fa; }
.doc__table small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--text-muted); }
.doc__table .doc__no { width: 2.6rem; color: var(--text-muted); }
.doc__table thead .doc__no { color: #fff; }
.doc__table .doc__amt-h, .doc__amt, .doc__more { text-align: right; white-space: nowrap; }
.doc__amt, .doc__more { font-weight: 800; font-size: 1rem; }

.receipt__total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}
.receipt__total-label { padding-bottom: 0.5rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.receipt__total-value {
  font-weight: 900;
  font-stretch: 122%;
  font-size: clamp(2.8rem, 12vw, 3.9rem);
  line-height: 0.9;
  color: var(--brand);
}
.receipt__total-note { grid-column: 1 / -1; margin-top: 0.6rem; font-size: 0.8rem; color: var(--text-muted); }

.doc__sign { margin-top: 1.4rem; max-width: 48%; }
.doc__signature {
  padding: 0 0.4rem 0.1rem;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--font-script);
  font-size: clamp(1.45rem, 5.4vw, 1.9rem);
  line-height: 1.1;
  white-space: nowrap;
  color: var(--brand-deep);
  rotate: -2deg;
  transform-origin: left bottom;
}
.doc__signer { margin-top: 0.4rem; font-size: 0.76rem; color: var(--text-muted); }
.doc__fine { margin-top: 1.2rem; padding-right: 1.5rem; font-size: 0.72rem; line-height: 1.5; color: var(--text-muted); }
.receipt.doc .receipt__stamp { right: 0.9rem; bottom: 7rem; font-size: clamp(0.95rem, 3.4vw, 1.15rem); border-width: 2.5px; }

@media (min-width: 900px) {
  .receipts__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: start; }
  .receipts__copy { position: sticky; top: calc(var(--nav-h) + 14vh); }
  .printer { margin-inline: 0; }
}
@media (min-width: 1200px) {
  .receipts__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 440px) minmax(0, 0.25fr); }
}

/* ---------- story ---------- */

.story {
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--section) var(--gutter);
}
.story__top { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.story__copy { display: grid; gap: 1.25rem; align-content: center; }
.story__portrait {
  position: relative;
  isolation: isolate;
  width: min(86%, 440px);
  margin-inline: auto;
}
.story__portrait::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% -14% -6% 22%;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand) 60%, var(--brand-deep));
  transform: skewX(var(--skew));
}
.story__portrait img { width: 100%; }

.timeline {
  margin-top: clamp(3rem, 7vw, 6rem);
  display: grid;
  gap: 0;
}
.timeline__item {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-block: 1.4rem;
  border-top: 2px solid var(--ink);
}
.timeline__year {
  grid-row: 1 / span 2;
  font-weight: 900;
  font-stretch: 122%;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.timeline__item h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.25; }
.timeline__item p:not(.timeline__year) { margin-top: 0.35rem; font-size: 0.98rem; line-height: 1.5; color: var(--text-muted); }

@media (min-width: 900px) {
  .story__top { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; }
  .story__portrait { width: 100%; max-width: 460px; margin-inline: auto 6%; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); row-gap: 1rem; }
  .timeline__item { display: block; padding-block: 1.5rem 0; }
  .timeline__year { font-size: clamp(1.9rem, 3vw, 3rem); margin-bottom: 1rem; }
}

/* ---------- recognition ---------- */

.proof { background: var(--ink); color: #fff; }
.proof__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--section) var(--gutter);
}
.proof__grid {
  margin-top: clamp(2rem, 5vw, 4rem);
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
.frame { overflow: clip; background: var(--ink-soft); }
.frame img, .frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.proof__fig--clip .frame { aspect-ratio: 24 / 25; }
.proof__fig--clip video { object-position: 50% 18%; }
.proof__fig--wide .frame { aspect-ratio: 3 / 2; }
.proof__fig--tall .frame { aspect-ratio: 3 / 4; }
.proof__fig--tall .frame img { object-position: 50% 30%; }
.proof__fig figcaption {
  margin-top: 1rem;
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--on-ink-soft);
}
.proof__fig figcaption strong { color: #fff; font-weight: 800; }

.press {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 2px solid rgb(255 255 255 / 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
}
.press a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  font-weight: 900;
  font-stretch: 122%;
  font-size: clamp(1.05rem, 0.9rem + 0.9vw, 1.6rem);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}
.press a svg { width: 0.85em; height: 0.85em; fill: var(--brand-bright); transition: translate 0.25s var(--ease-out); }
.press a:hover { color: var(--brand-bright); }
.press a:hover svg { translate: 3px -3px; }

@media (min-width: 900px) {
  .proof__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 3.4fr) minmax(0, 3fr); align-items: start; }
}

/* ---------- services ---------- */

.services { background: var(--paper); }
.services__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--section) var(--gutter);
}
.services__photo { position: relative; isolation: isolate; width: 92%; }
.services__photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14% -10% -5% 30%;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand) 60%, var(--brand-deep));
  transform: skewX(var(--skew));
}
.services__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 6%; filter: grayscale(1) contrast(1.1); }
@media (min-width: 900px) { .services__photo img { aspect-ratio: 4 / 5; object-position: 50% 18%; } }
.service-list { margin-top: clamp(2rem, 4vw, 3rem); border-bottom: 2px solid var(--ink); }
.service {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 0.5rem;
  padding: 1.4rem 0;
  border-top: 2px solid var(--ink);
  transition: color 0.3s ease;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand);
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.45s var(--ease-out);
}
.service h3 {
  font-weight: 900;
  font-stretch: 122%;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.service p { max-width: 46ch; color: var(--text-muted); transition: color 0.3s ease, translate 0.4s var(--ease-out); }

@media (hover: hover) {
  .service > * { transition: translate 0.4s var(--ease-out); }
  .service:hover { color: #fff; }
  .service:hover > * { translate: 1rem 0; }
  .service:hover::before { scale: 1 1; }
  .service:hover p { color: var(--on-brand); }
}

@media (min-width: 900px) {
  .services__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .services__photo { width: 100%; max-width: 420px; position: sticky; top: calc(var(--nav-h) + 2rem); }
  .service { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: baseline; padding-block: 1.9rem; }
}

/* ---------- apply ---------- */

.apply {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--brand);
  color: var(--on-brand);
}
.apply__shards { position: absolute; inset: 0; z-index: -1; }
.shard--e {
  top: -10%;
  left: -18vw;
  width: 46vw;
  height: 120%;
  background: linear-gradient(180deg, var(--brand-deep), var(--brand-night));
  opacity: 0.75;
}
.shard--f {
  top: -10%;
  left: 33vw;
  width: 2.2vw;
  height: 120%;
  background: var(--brand-deep);
  opacity: 0.55;
}
.apply__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--section) var(--gutter);
}
.apply__copy { display: grid; gap: 1.25rem; align-content: start; }
.apply .lede { color: var(--on-brand); }

.steps { counter-reset: step; margin-top: 1rem; display: grid; gap: 1.5rem; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  column-gap: 1rem;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 3.2rem;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
}
.steps h3 {
  font-weight: 900;
  font-stretch: 122%;
  font-size: 1.15rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.steps p { margin-top: 0.3rem; max-width: 36ch; color: var(--on-brand); }

.form-panel {
  background: var(--white);
  color: var(--text);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 34px 60px -24px rgb(4 16 48 / 0.6);
}
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
.form fieldset { min-width: 0; }
.form__title {
  font-weight: 900;
  font-stretch: 122%;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.form__note { margin-top: -0.8rem; font-size: 0.9rem; color: var(--text-muted); }

.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; gap: 1.35rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label,
.choice-group legend {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}
.choice-group legend { margin-bottom: 0.6rem; }
.optional { font-weight: 500; color: var(--text-muted); }

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--rule);
  border-radius: 0;
  background: #fff;
  font-size: max(1rem, 1em);
  line-height: 1.4;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover,
.field textarea:hover { border-color: var(--ink); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-color: var(--ink);
}

.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; display: inline-flex; }
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice label {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 1.05rem;
  border: 1.5px solid var(--rule);
  background: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.choice input:hover + label { border-color: var(--ink); }
.choice input:checked + label {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: inset 0 -4px 0 var(--brand-bright);
}
.choice input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  align-items: start;
}
.consent input { width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; cursor: pointer; }
.consent label { font-size: 0.92rem; line-height: 1.45; cursor: pointer; }
.consent .error { grid-column: 1 / -1; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.error {
  display: none;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--danger);
}
.error svg { flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin-top: 0.05rem; fill: currentColor; }
.has-error > .error { display: flex; }
.has-error input:not([type="radio"], [type="checkbox"]),
.has-error textarea { border-color: var(--danger); background: var(--danger-bg); }
.choice-group.has-error .choice label { border-color: var(--danger); }

.form__status:empty { display: none; }
.form__status {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}
.form__legal { font-size: 0.82rem; line-height: 1.45; color: var(--text-muted); }
.form__legal a { text-underline-offset: 0.2em; }

.form-success { display: grid; gap: 0.9rem; justify-items: start; padding-block: 1rem; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__seal { width: 3.4rem; height: 3.4rem; fill: var(--brand); }
.form-success h3 {
  font-weight: 900;
  font-stretch: 122%;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .apply__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .apply__copy { position: sticky; top: calc(var(--nav-h) + 3rem); }
}

/* ---------- faq ---------- */

.faq__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--section) var(--gutter);
}
.faq__list { border-bottom: 2px solid var(--ink); }
.faq details { border-top: 2px solid var(--ink); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 64px;
  padding-block: 1.1rem;
  font-weight: 800;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.25;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "";
  flex-shrink: 0;
  inline-size: 1.1em;
  block-size: 1.1em;
  background-color: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}
.faq details[open] > summary::before { rotate: 0deg; }
.faq summary:hover { color: var(--brand); }
.faq__answer { padding: 0 0 1.5rem 2.05em; max-width: 62ch; color: var(--text-muted); }

.faq details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.faq details:not([open])::details-content { block-size: 0; }

@media (prefers-reduced-motion: no-preference) {
  .faq summary::before { transition: rotate 0.2s ease, translate 0.2s ease; }
  .faq details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

@media (min-width: 900px) {
  .faq__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
  .faq__inner > .display { position: sticky; top: calc(var(--nav-h) + 3rem); }
}

/* ---------- footer ---------- */

.footer { position: relative; isolation: isolate; overflow: clip; background-color: var(--ink); color: #fff; }

.footer__close {
  position: relative;
  display: grid;
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--section) var(--gutter) 0;
}
.footer__close-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  justify-items: start;
  align-content: center;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.footer__quote {
  font-family: var(--font-script);
  font-size: clamp(2.3rem, 1.2rem + 5.4vw, 5.4rem);
  line-height: 1.08;
  max-width: 15ch;
  rotate: -3deg;
  transform-origin: left center;
}
.footer__quote em {
  font-style: normal;
  color: var(--brand-bright);
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.16em;
}
.footer__figure {
  position: relative;
  justify-self: center;
  width: min(72%, 300px);
  aspect-ratio: 4 / 5;
  overflow: clip;
}
.footer__figure::before {
  content: "";
  position: absolute;
  inset: 12% 4% 0 30%;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand) 55%, var(--brand-deep));
  transform: skewX(var(--skew));
}
.footer__figure img { position: relative; width: 100%; height: auto; }

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(5rem, 13vw, 11rem);
  display: grid;
  gap: 2rem;
}
.footer__meta {
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 2px solid rgb(255 255 255 / 0.22);
  display: grid;
  gap: 2.25rem 3rem;
}
.footer__brand { display: grid; gap: 1rem; align-content: start; }
.footer__place { max-width: 30ch; font-size: 0.95rem; line-height: 1.5; color: var(--on-ink-soft); }
.footer__heading {
  margin-bottom: 0.5rem;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-bright);
}
.footer__nav a,
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 2px no-repeat;
}
.footer__nav a:hover,
.footer__top:hover { color: var(--brand-bright); background-size: 100% 2px; }
.footer__nav svg, .footer__top svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.footer__top svg { rotate: -90deg; }
.footer__legal { max-width: 88ch; font-size: 0.82rem; line-height: 1.55; color: var(--on-ink-soft); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.85rem;
  color: var(--on-ink-soft);
}
.footer__top { color: #fff; }

.footer__giant {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -0.2em;
  translate: -50% 0;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.2rem, 9.4vw, 10.5rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(76 123 224 / 0.55);
  pointer-events: none;
  user-select: none;
}

@media (min-width: 900px) {
  .footer__close { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .footer__figure { justify-self: end; width: min(100%, 440px); }
  .footer__meta { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .footer__nav a, .footer__top { transition: background-size 0.3s var(--ease-out), color 0.2s ease; }
  .footer__giant { transition: -webkit-text-stroke-color 0.4s ease; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .footer__figure img {
      animation: rise-scroll linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    .footer__giant {
      animation: giant-slide linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
  }
}
@keyframes giant-slide { from { translate: -42% 0; } to { translate: -50% 0; } }

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  z-index: var(--z-sticky);
  inset: auto 0 0 0;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  box-shadow: 0 -14px 30px -18px rgb(9 13 22 / 0.35);
  translate: 0 110%;
  visibility: hidden;
  transition: translate 0.35s var(--ease-out), visibility 0.35s;
}
.sticky-cta.is-visible { translate: 0 0; visibility: visible; }
.sticky-cta .btn { min-height: 52px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (max-width: 899.98px) { .footer__inner { padding-bottom: 6.5rem; } }

/* ---------- motion ---------- */

@keyframes shard-in-left { from { transform: translate(-60vw, 40vh) skewX(var(--skew)); } }
@keyframes shard-in-right { from { transform: translate(60vw, 40vh) skewX(var(--skew)); } }
@keyframes line-up { from { transform: translateY(108%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes figure-in { from { transform: translateY(7%) scale(1.04); } }
@keyframes wipe-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes drift-in { from { opacity: 0; transform: translateX(-8%); } }
@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .shard--a, .shard--b { animation: shard-in-left 1.1s var(--ease-out) both; }
  .shard--c, .shard--d { animation: shard-in-right 1.1s var(--ease-out) 0.08s both; }
  .shard--b { animation-delay: 0.14s; }
  .shard--d { animation-delay: 0.2s; }

  .hero__title .line > span { animation: line-up 0.9s var(--ease-out) 0.15s both; }
  .hero__title .line:nth-child(2) > span { animation-delay: 0.27s; }
  .hero__sub { animation: rise 0.8s var(--ease-out) 0.5s both; }
  .hero__actions { animation: rise 0.8s var(--ease-out) 0.62s both; }

  .hero__cutout { animation: figure-in 1.2s var(--ease-out) both; transform-origin: 50% 100%; }
  .hero__skyline { animation: fade 1.4s ease 0.3s both; }
  .hero__vertical { animation: drift-in 1.2s var(--ease-out) 0.35s both; }
  .hero__quote { animation: fade 0.9s ease 1.05s both; }
  .nameplate__brush { animation: wipe-right 0.75s cubic-bezier(0.6, 0, 0.2, 1) 0.7s both; }
  .nameplate__name { animation: wipe-right 0.7s cubic-bezier(0.6, 0, 0.2, 1) 1s both; }
  .nameplate__role { animation: fade 0.6s ease 1.45s both; }
}

/* scroll-linked: progressive enhancement, static and fully visible without support */
@keyframes band-slide { to { transform: translateX(-33.333%); } }
@keyframes stamp { 0% { opacity: 0; scale: 2.2; } 70% { opacity: 1; scale: 0.94; } 100% { opacity: 1; scale: 1; } }
@keyframes head-in { from { clip-path: inset(-10% 100% -10% -5%); translate: -28px 0; } to { clip-path: inset(-10% -5% -10% -5%); translate: 0 0; } }
@keyframes write-in { from { clip-path: inset(-20% 100% -20% -5%); } to { clip-path: inset(-20% -5% -20% -5%); } }
@keyframes pop-in { from { scale: 0.6; opacity: 0; } }
@keyframes progress { from { scale: 0 1; } }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes frame-open { from { clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); } to { clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); } }
@keyframes frame-zoom { from { scale: 1.18; } }
@keyframes rise-scroll { from { opacity: 0; translate: 0 36px; } }
@keyframes grow-line { from { scale: 0 1; } }
@keyframes shard-drift { from { translate: 0 12%; } to { translate: 0 -12%; } }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .band__track { display: flex; width: max-content; padding-inline: 0; }
    .band__list, .band__list[aria-hidden="true"] { display: flex; flex-wrap: nowrap; flex-shrink: 0; gap: 0; }
    .band__list li { font-size: clamp(1.25rem, 0.8rem + 2.2vw, 2.5rem); white-space: nowrap; }
    .band__list li::after { display: block; }
    .band__track {
      animation: band-slide linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }

    main h2.display {
      animation: head-in linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 110%;
    }
    main .lede {
      animation: rise-scroll linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    .footer__quote {
      animation: write-in linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }
    .receipt__total-value {
      animation: pop-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }

    .receipt__stamp {
      animation: stamp linear both;
      animation-timeline: view();
      animation-range: cover 46% cover 56%;
    }
    .printer__feed {
      animation: print linear both;
      animation-timeline: view();
      animation-range: cover 6% cover 52%;
    }

    .frame {
      animation: frame-open linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 38%;
    }
    .frame img {
      animation: frame-zoom linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }

    .timeline__item,
    .tally__item,
    .service,
    .press li,
    .faq details,
    .proof__fig figcaption,
    .form-panel,
    .steps li {
      animation: rise-scroll linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }

    .story__portrait::before,
    .services__photo::before,
    .shard--e,
    .shard--f {
      animation: shard-drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
  }
}

/* Decorative shards may hang past the page edge; never let them widen the document. */
body { overflow-x: clip; }
main, .footer { overflow-x: clip; }

.stop { margin-left: 0.06em; }
.hero__title, .display { margin-left: -0.05em; }

/* ---------- page progress (scroll-linked, enhancement only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .nav::after {
      content: "";
      position: absolute;
      inset: auto 0 -1px 0;
      height: 3px;
      background: var(--brand);
      transform-origin: 0 50%;
      animation: progress linear both;
      animation-timeline: scroll(root block);
    }
  }
}

/* ---------- hover effects (pointer devices only) ---------- */
.btn__label::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(114deg, transparent 38%, var(--sheen, rgb(255 255 255 / 0.3)) 50%, transparent 62%);
  translate: -110% 0;
  pointer-events: none;
}
.btn--invert { --sheen: rgb(31 61 136 / 0.22); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn__label::after { transition: translate 0.7s var(--ease-out); }
  .btn:hover .btn__label::after { translate: 110% 0; }
  .btn__tip svg { transition: translate 0.25s var(--ease-out); }

  .frame img, .frame video { transition: transform 0.7s var(--ease-out); }
  .proof__fig:hover .frame img, .proof__fig:hover .frame video { transform: scale(1.05); }
  .proof__fig figcaption strong { transition: color 0.3s ease; }
  .proof__fig:hover figcaption strong { color: var(--brand-bright); }

  .printer { transition: rotate 0.5s var(--ease-out), translate 0.5s var(--ease-out); }
  .printer:hover { translate: 0 -8px; }

  .tally dd { transition: translate 0.35s var(--ease-out); }
  .tally__item:hover dd { translate: -10px 0; }

  .timeline__item { transition: border-color 0.3s ease; }
  .timeline__year { transition: translate 0.35s var(--ease-out); }
  .timeline__item:hover { border-top-color: var(--brand); }
  .timeline__item:hover .timeline__year { translate: 0 -5px; }

  .story__portrait img, .services__photo img { transition: transform 0.6s var(--ease-out), filter 0.6s ease; }
  .story__portrait:hover img { transform: translate(-8px, -8px); }
  .services__photo:hover img { transform: translate(-8px, -8px); filter: grayscale(0) contrast(1); }

  .choice label { transition: translate 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s ease; }
  .choice input:hover + label { translate: -2px -2px; box-shadow: 4px 4px 0 var(--brand); }

  .faq summary:hover::before { translate: 5px 0; }

  .steps li::before { transition: color 0.3s ease; }
  .steps li:hover::before { color: #fff; }

  .wordmark__sub { transition: translate 0.3s var(--ease-out); }
  .wordmark:hover .wordmark__sub { translate: 6px 0; }
}

@media (min-width: 900px) {
  .services__photo::before { inset: 42% 12% -5% 14%; }
  .services__photo ~ * { position: relative; z-index: 1; }
}

/* ---------- hero video slot ---------- */
.hero__watch { background: var(--ink); color: #fff; }
.hero__watch-inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(1.5rem, 4vw, 3rem);
}
.hero__watch-copy { display: grid; gap: 0.9rem; align-content: center; }
.hero__watch-title {
  font-weight: 900;
  font-stretch: 122%;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero__watch-copy p { max-width: 32ch; color: var(--on-ink-soft); }

.video-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--brand-night);
  overflow: clip;
}
.video-slot video,
.video-slot iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-slot__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(114deg, transparent 0 18%, rgb(76 123 224 / 0.3) 18.1% 21%, transparent 21.1% 58%, var(--brand) 58.1% 82%, var(--brand-deep) 82.1% 100%),
    var(--brand-night);
}
.video-slot__play {
  display: grid;
  place-items: center;
  width: clamp(4rem, 9vw, 6.5rem);
  aspect-ratio: 1;
  background: #fff;
  color: var(--ink);
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}
.video-slot__play svg { width: 38%; height: 38%; fill: currentColor; }
.video-slot__note {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.video-slot__note span { margin-left: 0.6rem; color: var(--on-ink-soft); }

@media (min-width: 900px) {
  .hero__watch-inner { gap: 2.75rem; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .video-slot__play { transition: scale 0.35s var(--ease-out); }
  .video-slot:hover .video-slot__play { scale: 1.08; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .video-slot {
      animation: frame-open linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 35%;
    }
    .hero__watch-copy {
      animation: rise-scroll linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
  }
}

/* ---------- logo mark in the header ---------- */
.wordmark:has(.wordmark__mark) { flex-direction: row; align-items: center; gap: 0.7rem; }
.wordmark__mark { width: auto; height: 42px; flex-shrink: 0; }
.wordmark__text { display: inline-flex; flex-direction: column; }

/* ---------- live application ticket: left column on desktop, inside the stepped form on phones ---------- */
.ticket {
  --tooth: 12px;
  position: relative;
  display: none;
  padding: 1.2rem 1.25rem 1.7rem;
  background: #fbfcfe;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.4;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) calc(var(--tooth) / 2) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) / 2) no-repeat;
}
.ticket__head {
  padding-bottom: 0.7rem;
  border-bottom: 2px dashed var(--ink);
  font-family: var(--font-body);
  font-weight: 900;
  font-stretch: 122%;
  text-transform: uppercase;
}
.ticket__lines div { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.55rem; }
.ticket dt { text-transform: uppercase; color: var(--text-muted); }
.ticket dd { font-weight: 700; text-align: right; text-transform: uppercase; overflow-wrap: anywhere; }
.ticket__status { margin-top: 0.6rem; border-top: 2px dashed var(--ink); }
.ticket__status dd { color: var(--brand); }
.ticket dd.is-new { animation: ticket-flash 0.6s ease-out; }
.ticket__stamp {
  position: absolute;
  right: 0.9rem;
  top: 2.6rem;
  padding: 0.25rem 0.6rem 0.2rem;
  border: 2.5px solid var(--brand);
  outline: 1px solid var(--brand);
  outline-offset: 2px;
  font-family: var(--font-body);
  font-weight: 900;
  font-stretch: 122%;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgb(251 252 254 / 0.9);
  rotate: -10deg;
  opacity: 0;
  scale: 1.8;
}
.ticket.is-ready .ticket__stamp { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: no-preference) {
  .ticket__stamp { transition: opacity 0.2s ease, scale 0.35s cubic-bezier(0.2, 1.6, 0.4, 1); }
}
@media (min-width: 900px) {
  .ticket { display: block; max-width: 21rem; margin-top: 1.5rem; rotate: -2deg; filter: drop-shadow(0 18px 22px rgb(4 16 48 / 0.4)); }
}
.form .ticket { display: block; padding: 0.8rem 0.95rem 1.2rem; font-size: 0.78rem; border: 1px solid #d5dbe8; border-bottom: 0; }
.form .ticket__head { padding-bottom: 0.45rem; font-size: 0.8rem; }
.form .ticket__lines div { padding-top: 0.35rem; }
.form .ticket__stamp { top: 0.55rem; right: 0.7rem; font-size: 0.85rem; }

@keyframes ticket-flash { from { background: rgb(76 123 224 / 0.45); } to { background: transparent; } }

/* ---------- pointer effects (fine pointers, motion allowed; values set from main.js) ---------- */
.receipt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%), rgb(76 123 224 / 0.16), transparent 70%);
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .printer {
    transform: perspective(1000px) rotateX(calc(var(--ty, 0) * -7deg)) rotateY(calc(var(--tx, 0) * 9deg));
    transition: transform 0.35s var(--ease-out), translate 0.5s var(--ease-out);
  }
  .receipt::after { transition: opacity 0.3s ease; }
  .printer:hover .receipt::after { opacity: 1; }

  .btn:not(.btn--block):not(#hero-cta) {
    translate: calc(var(--bx, 0) * 1px) calc(var(--by, 0) * 1px);
    transition: translate 0.3s var(--ease-out), scale 0.15s ease;
  }
}

/* ---------- menu: current section, proof chip ---------- */
.nav__links { scroll-target-group: auto; }
.nav__links a:target-current,
.nav__links a[aria-current="true"] { color: var(--brand); background-size: 100% 2px; }
.nav__proof { display: none; }
@media (min-width: 1240px) {
  .nav__links { gap: 1.6rem; }
  .nav__proof {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    color: var(--brand);
  }
  .nav__proof svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
  .nav__links { margin-left: auto; }
}
#how { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }

/* ---------- popup ---------- */
dialog.offer {
  width: min(44rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 40px 80px -20px rgb(4 16 48 / 0.7);
  overflow: auto;
}
dialog.offer[open] { display: grid; }
/* MANDATORY pair: keep scroll gestures from chaining to the page behind the modal */
dialog.offer:modal { overscroll-behavior: contain; }
dialog.offer::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgb(9 13 22 / 0.72);
}
.offer__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 7.5rem;
  overflow: clip;
  background:
    linear-gradient(114deg, transparent 0 20%, rgb(76 123 224 / 0.45) 20.1% 24%, transparent 24.1% 62%, var(--brand-deep) 62.1% 100%),
    var(--brand);
}
.offer__stamp {
  padding: 0.4rem 0.9rem 0.35rem;
  border: 3px solid #fff;
  outline: 1.5px solid #fff;
  outline-offset: 3px;
  font-weight: 900;
  font-stretch: 122%;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  rotate: -9deg;
}
.offer__body { display: grid; gap: 1.1rem; justify-items: start; padding: clamp(1.5rem, 5vw, 2.5rem); }
.offer__title {
  font-weight: 900;
  font-stretch: 122%;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.offer__body p { max-width: 38ch; }
.offer__skip {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.offer__skip:hover { color: var(--ink); }
.offer__fine { font-size: 0.82rem; color: var(--text-muted); }
.offer__dismiss { position: absolute; z-index: 1; top: 0.5rem; right: 0.5rem; }
.offer__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
.offer__close svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.offer__close:hover { background: var(--brand-deep); }

@media (min-width: 700px) {
  dialog.offer[open] { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .offer__art { min-height: 100%; }
  .offer__stamp { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.offer {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 0.35s var(--ease-out), translate 0.35s var(--ease-out), overlay 0.35s allow-discrete, display 0.35s allow-discrete;
  }
  dialog.offer[open] { opacity: 1; translate: 0 0; }
  @starting-style {
    dialog.offer[open] { opacity: 0; translate: 0 28px; }
  }
  dialog.offer::backdrop { opacity: 0; transition: opacity 0.35s ease, overlay 0.35s allow-discrete, display 0.35s allow-discrete; }
  dialog.offer[open]::backdrop { opacity: 1; }
  @starting-style {
    dialog.offer[open]::backdrop { opacity: 0; }
  }
}

/* hero video: centered title above a centered frame */
.hero__watch-inner { justify-items: center; }
.hero__watch-copy { justify-items: center; text-align: center; }
.hero__watch-title { max-width: 72rem; font-size: clamp(1.15rem, 0.55rem + 2.5vw, 2.5rem); line-height: 1.04; text-wrap: balance; }
.hero__watch-fine { max-width: 62ch; font-size: 0.8rem; line-height: 1.5; text-align: center; color: var(--on-ink-soft); }
.hero__watch-copy p { max-width: 46ch; }
.video-slot { width: min(100%, 60rem); }

/* ---------- hero button: a short shake every few seconds (motion allowed only) ---------- */
@keyframes cta-shake {
  0%, 86%, 100% { rotate: 0deg; }
  88% { rotate: -2.5deg; }
  90% { rotate: 2.5deg; }
  92% { rotate: -2deg; }
  94% { rotate: 2deg; }
  96% { rotate: -1deg; }
  98% { rotate: 1deg; }
}
@media (prefers-reduced-motion: no-preference) {
  #hero-cta { animation: cta-shake 5s ease-in-out 2.5s infinite; }
  #hero-cta:hover, #hero-cta:focus-visible { animation-play-state: paused; }
}

/* ---------- stepped application on phones ---------- */
.step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
.form__progress, .form__next, .step__title { display: none; }
.form.is-stepped .form__progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.4rem 1rem;
}
.form.is-stepped .form__next { display: flex; margin-top: 0.5rem; }
.form.is-stepped .step:not(.is-current) { display: none; }
.form.is-stepped .step { display: grid; gap: 1.1rem; }
.form.is-stepped .step__title,
.form.is-stepped .choice-group legend {
  display: block;
  font-weight: 900;
  font-stretch: 118%;
  font-size: 1.3rem;
  line-height: 1.15;
  text-transform: none;
  outline-offset: 4px;
}
.form.is-stepped .choices { display: grid; gap: 0.6rem; }
.form.is-stepped .choice { display: block; }
.form.is-stepped .choice label { display: flex; width: 100%; min-height: 58px; padding-inline: 1.1rem; font-size: 1.02rem; }
.form.is-stepped .choice label::after {
  content: "";
  width: 22px;
  height: 22px;
  margin-left: auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.35;
}
.form.is-stepped .choice input:checked + label::after { opacity: 1; background: radial-gradient(circle, currentColor 0 5px, transparent 5.5px); }
.form.is-stepped .field-row { grid-template-columns: 1fr; }
.form.is-stepped .form__note { display: none; }
.form__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.2rem;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}
.form__back svg { width: 1rem; height: 1rem; fill: currentColor; rotate: 180deg; }
.form__back[hidden] { visibility: hidden; display: inline-flex; }
.form__count { justify-self: end; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.form__bar {
  grid-column: 1 / -1;
  width: 100%;
  height: 6px;
  appearance: none;
  border: 0;
  background: #dfe5f0;
  color: var(--brand);
  accent-color: var(--brand);
}
.form__bar::-webkit-progress-bar { background: #dfe5f0; }
.form__bar::-webkit-progress-value { background: var(--brand); transition: inline-size 0.35s var(--ease-out); }
.form__bar::-moz-progress-bar { background: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .form.is-stepped .step.is-current { animation: step-in 0.35s var(--ease-out); }
}
@keyframes step-in { from { opacity: 0; translate: 18px 0; } }

/* ---------- pinned funding-summary scene (desktop, motion allowed; driven by main.js) ---------- */
@media (min-width: 900px) {
  .receipts.is-scene .receipts__inner { min-height: 260vh; align-items: start; }
  .receipts.is-scene .receipts__copy { top: calc(var(--nav-h) + 1.5rem); gap: 1rem; }
  .receipts.is-scene .receipts__title { font-size: clamp(2.3rem, 3.9vw, 4rem); }
  .receipts.is-scene .printer {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    scale: var(--doc-scale, 1);
    transform-origin: 50% 0;
  }
  .receipts.is-scene .printer__feed { animation: none; clip-path: inset(0 0 calc((1 - var(--feed, 0)) * 100%) 0); }
  .receipts.is-scene .doc__table tbody tr { opacity: var(--row, 0); translate: calc((1 - var(--row, 0)) * -16px) 0; }
  .receipts.is-scene .receipt__total-value { animation: none; opacity: var(--total, 0); scale: calc(0.6 + var(--total, 0) * 0.4); transform-origin: 100% 100%; }
  .receipts.is-scene .doc__sign { clip-path: inset(-20% 100% -20% 0); transition: clip-path 0.9s var(--ease-out); }
  .receipts.is-scene.is-signed .doc__sign { clip-path: inset(-20% -10% -20% 0); }
  .receipts.is-scene .doc__status,
  .receipts.is-scene .receipt__stamp { animation: none; opacity: 0; transition: opacity 0.25s ease, scale 0.4s cubic-bezier(0.2, 1.6, 0.4, 1); }
  .receipts.is-scene .receipt__stamp { scale: 2.2; }
  .receipts.is-scene.is-stamped .doc__status,
  .receipts.is-scene.is-stamped .receipt__stamp { opacity: 1; scale: 1; }
}

/* ---------- mobile conversion polish ---------- */
.btn, .choice label, .faq summary, .nav__apply { touch-action: manipulation; }
.nav__apply {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  padding-right: 1.3rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav .wordmark { flex-shrink: 0; }
.wordmark__name { white-space: nowrap; }
@media (min-width: 620px) { .nav__apply { display: none; } }
/* Small phones: logo and button must both fit on one row */
@media (max-width: 399px) {
  .nav .wordmark__name { font-size: 0.86rem; }
  .nav .wordmark__sub { font-size: 0.6rem; letter-spacing: 0.3em; }
  .nav .wordmark__mark { height: 36px; width: auto; }
  .nav__apply { padding-left: 0.8rem; padding-right: 1.1rem; font-size: 0.74rem; }
}
@media (max-width: 349px) {
  .nav .wordmark__mark { display: none; }
}

.hero__proof { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 1.1rem; }
.hero__proof li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.hero__proof svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; fill: var(--brand); }

@media (max-width: 899.98px) {
  /* Recognition photos become a swipeable row instead of a long stack. */
  .proof__grid {
    display: flex;
    gap: 1rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .proof__grid::-webkit-scrollbar { display: none; }
  .proof__fig { flex: 0 0 82%; scroll-snap-align: start; }
  .proof__fig--wide .frame, .proof__fig--clip .frame, .proof__fig--tall .frame { aspect-ratio: 4 / 5; }
  .proof__swipe { display: block; margin-top: 0.9rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-ink-soft); }

  /* Keep the bottom bar from covering the last lines of the page. */
  .footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.proof__swipe { display: none; }

/* Header menu: keep every link on one line; on mid-size screens shorten the button and drop one link */
.nav__links a { white-space: nowrap; }
.nav-cta-short { display: none; }
@media (min-width: 980px) and (max-width: 1359.98px) {
  .nav__links { gap: 1.25rem; }
  .nav__proof { display: none !important; }
  .nav__links a { font-size: 0.88rem; }
  .nav__link--wide { display: none !important; }
  .nav-cta-long { display: none; }
  .nav-cta-short { display: inline; }
}
@media (max-width: 1439.98px) { .nav__proof { display: none !important; } }

/* Home header: four links centered between the logo and one short button */
.nav__links--home { margin-inline: auto; }
@media (min-width: 980px) {
  .nav__links.nav__links--home { gap: clamp(1.75rem, 3vw, 2.75rem); margin-inline: auto; }
  .nav__links--home a { font-size: 0.95rem; }
}

@media (min-width: 1200px) {
  .timeline { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .timeline__year { font-size: clamp(1.6rem, 2.1vw, 2.2rem); }
}

/* ---------- receipt clip: card + dialog ---------- */
.clip-card {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  width: 100%; max-width: 460px; margin-top: 0.5rem; padding: 0.6rem 1rem 0.6rem 0.6rem;
  text-align: left; color: var(--on-brand); font: inherit; cursor: pointer;
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.28);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
}
.clip-card:hover { background: rgb(255 255 255 / 0.14); border-color: rgb(255 255 255 / 0.5); }
.clip-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.clip-card__thumb { width: 76px; height: 104px; object-fit: cover; object-position: 50% 30%; background: var(--ink); }
.clip-card__text { display: grid; gap: 0.2rem; }
.clip-card__kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-brand-soft); }
.clip-card__title { font-size: 1rem; font-weight: 800; line-height: 1.3; }
.clip-card__meta { font-size: 0.85rem; color: var(--on-brand-soft); }
.clip-card__play { display: grid; place-items: center; width: 44px; height: 44px; background: #fff; color: var(--brand); }
.clip-card__play svg { width: 16px; height: 16px; fill: currentColor; }
.clip-card:active { scale: 0.98; }

.clip-dialog {
  width: min(92vw, 420px); max-height: 94dvh; padding: 0; margin: auto;
  background: var(--ink); color: #fff; border: 1px solid rgb(255 255 255 / 0.2);
  overflow: auto;
}
.clip-dialog::backdrop { background: rgb(9 13 22 / 0.82); }
.clip-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.75rem 0.75rem 1rem; }
.clip-dialog__title { font-size: 1rem; font-weight: 800; line-height: 1.3; }
.clip-dialog__close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: rgb(255 255 255 / 0.1); color: #fff; border: 0; cursor: pointer; }
.clip-dialog__close:hover { background: rgb(255 255 255 / 0.2); }
.clip-dialog__close:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.clip-dialog__close svg { width: 18px; height: 18px; fill: currentColor; }
.clip-dialog__video { display: block; width: 100%; height: auto; max-height: calc(94dvh - 9rem); aspect-ratio: 9 / 16; object-fit: contain; background: #000; }
.clip-dialog__fine { padding: 0.75rem 1rem 1rem; font-size: 0.8rem; line-height: 1.45; color: var(--on-ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .clip-dialog[open] { animation: clip-in 0.22s var(--ease-out); }
  @keyframes clip-in { from { opacity: 0; translate: 0 12px; } }
}
