/* Sentinel Forge: one stylesheet for every page.
   Direction: the name as a monument. The company name is set across the rail yard the founder works,
   the way an owner's mark is stenciled on a container door; everything after it stays small and calm.
   One family (Archivo, width axis), navy ink on a cool steel ground, burgundy on the action only. */

:root {
  --bg: #eef0f3;
  --surface: #e1e5ea;
  --ink: #0f1b3d;
  --muted: #45506b;
  --navy: #0f1b3d;
  --navy-2: #182651;
  --on-navy: #f3f5f8;
  --on-navy-soft: #b9c1d3;
  --accent: #a3303e;
  --accent-strong: #86222f;
  --accent-ink: #ffffff;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* the five working sizes, plus the monument */
  --s-small: 0.875rem;                                /* 14 */
  --s-body: 1.0625rem;                                /* 17 */
  --s-lead: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);  /* 20-24 */
  --s-head: clamp(1.875rem, 1.4rem + 1.2vw, 2.5rem);  /* 30-40 */
  --s-xl: clamp(3rem, 1rem + 8.4vw, 9.5rem);        /* inner page titles and the close */

  --m: clamp(20px, 2.4vw, 40px);
  --g: clamp(16px, 1.7vw, 28px);
  --sec: clamp(120px, 13vw, 220px);
  --max: 1760px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--s-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 100px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.navy :focus-visible, .hero :focus-visible, .foot :focus-visible { outline-color: #fff; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
b, strong { font-weight: 650; }

.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--accent); color: #fff; padding: 12px 18px; text-decoration: none; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- frame ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.sec { padding-block: var(--sec); }
.sec + .sec { padding-top: 0; }
.navy { background: var(--navy); color: var(--on-navy); }
.tone { background: var(--surface); }
.sec.tone, .sec.navy { padding-top: var(--sec); }
.tone + .sec, .navy + .sec { padding-top: var(--sec); }

/* ---------- type roles ---------- */
.h2 { font-size: var(--s-head); line-height: 1.08; letter-spacing: -0.02em; font-stretch: 88%; }
.h3 { font-size: var(--s-body); line-height: 1.3; font-weight: 650; }
.lead { font-size: var(--s-lead); line-height: 1.38; letter-spacing: -0.01em; max-width: 46ch; }
.small { font-size: var(--s-small); line-height: 1.5; }
.soft { color: var(--muted); }
.navy .soft { color: var(--on-navy-soft); }
.xl { font-size: var(--s-xl); line-height: 0.88; letter-spacing: -0.01em; font-weight: 800; font-stretch: 62%; text-transform: uppercase; }
.prose p, .text p { max-width: 64ch; }
.text > * + * { margin-top: 1em; }

/* ---------- links and buttons ---------- */
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; text-decoration-color: var(--accent); transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.navy .link { text-decoration-color: var(--on-navy-soft); }
.arrow-after::after { content: "\2009\2192"; display: inline-block; transition: transform var(--t-ui) var(--ease-out); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: var(--s-body); line-height: 1.1; text-decoration: none; white-space: nowrap; border: 0; border-radius: 0; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.btn:active { transform: scale(0.97); }
.btn.paper { background: var(--on-navy); color: var(--navy); }
.btn.ghost { background: var(--navy-2); color: var(--on-navy); }
.btn.ink { background: var(--navy); color: var(--on-navy); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-strong); }
  .btn.paper:hover { background: #fff; }
  .btn.ghost:hover, .btn.ink:hover { background: #22336a; }
  .link:hover { color: var(--accent); }
  .navy .link:hover { color: #fff; text-decoration-color: #fff; }
  .arrow-after:hover::after, a:hover > .arrow-after::after { transform: translateX(4px); }
}

/* ---------- header ---------- */
.top { position: relative; z-index: 20; background: var(--navy); color: var(--on-navy); }
.top.over { position: absolute; inset: 0 0 auto 0; background: none; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: block; flex: none; color: #fff; }
.brand .logo { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); font-size: var(--s-small); }
.nav a:not(.btn) { color: var(--on-navy); text-decoration: none; padding: 8px 0; text-underline-offset: 0.35em; text-decoration-thickness: 2px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: var(--s-small); }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: currentColor; } }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 16px; background: var(--on-navy); color: var(--navy); font-weight: 650; font-size: var(--s-small); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--accent); color: #fff; }
.menu .drop { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 2 * var(--m))); background: var(--navy-2); padding: 10px 0; }
.menu .drop a { display: block; padding: 14px 22px; color: var(--on-navy); text-decoration: none; font-size: var(--s-body); }
.menu .drop a:last-child { background: var(--accent); color: #fff; margin: 8px 12px 2px; padding: 14px 16px; font-weight: 650; }
@media (max-width: 1080px) { .nav { display: none; } .menu { display: block; } }

/* ---------- home hero: the name across the yard ---------- */
.hero { position: relative; min-height: 100svh; min-height: max(620px, 100svh); background: var(--navy); color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero .frames { position: absolute; inset: 0; }
.hero .frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; background: var(--navy); }
.hero .frames img + img { opacity: 0; }
.hero .scrim { position: absolute; inset: 0; background:
  linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.78)); } /* taste-skill-ignore: neutral scrim for legibility */
.hero .wrap { position: relative; padding-bottom: clamp(18px, 2.2vw, 34px); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-top: clamp(28px, 3vw, 44px); }
.hero-row p { max-width: 44ch; font-size: var(--s-lead); line-height: 1.32; color: #fff; }
.hero-row p b { font-weight: 650; }
.name { font-size: clamp(64px, 15.6vw, 290px); line-height: 0.8; font-weight: 800; font-stretch: 62%; letter-spacing: -0.005em; text-transform: uppercase; white-space: nowrap; margin-left: -0.035em; }
.name span { display: inline-block; }
.hero figcaption { position: absolute; right: var(--m); top: 104px; font-size: var(--s-small); color: rgba(255, 255, 255, 0.86); max-width: 30ch; text-align: right; }
@media (max-width: 900px) { .hero-row { flex-direction: column; align-items: flex-start; } }
@media (max-width: 720px) {
  .hero .frames img { object-position: 38% 50%; }
  .name { font-size: 25vw; white-space: normal; line-height: 0.82; }
  .name span { display: block; }
  .hero figcaption { display: none; }
}

/* ---------- inner page hero ---------- */
.phero { padding-top: clamp(64px, 9vw, 150px); padding-bottom: clamp(48px, 6vw, 96px); }
.phero .grid { align-items: end; row-gap: 32px; }
.phero h1 { grid-column: 1 / 8; }
.phero .side { grid-column: 8 / 13; }
.phero .side > * + * { margin-top: 24px; }
.phero .lead { color: var(--on-navy); }
.jump { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: clamp(40px, 5vw, 72px); font-size: var(--s-small); }
.jump a { color: var(--on-navy-soft); text-decoration: none; padding: 6px 0; }
@media (hover: hover) and (pointer: fine) { .jump a:hover { color: #fff; } }
.band { position: relative; height: clamp(320px, 52vh, 620px); overflow: hidden; background: var(--navy); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.band figcaption { position: absolute; left: var(--m); bottom: 16px; font-size: var(--s-small); color: #fff; background: rgba(8, 13, 30, 0.7); padding: 6px 10px; }
@media (max-width: 900px) { .phero h1, .phero .side { grid-column: 1 / -1; } }

/* ---------- supply: one-size name columns with the code check ---------- */
/* a faint grain, like carton board, in the ink colour; flat and fixed-size so it stays subtle */
.supply { background-color: #e9ecf0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .06 0 0 0 0 .11 0 0 0 0 .24 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 220px 220px; }
.supply + .sec { padding-top: var(--sec); }
.supply .h2 { grid-column: 1 / 4; margin-bottom: clamp(56px, 6.6vw, 96px); }
.supply .cols { grid-column: 1 / 10; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); row-gap: 64px; }
.grp h3 { font-size: var(--s-body); font-weight: 650; line-height: 1.3; margin-bottom: 1.3em; }
.grp li { line-height: 1.3; padding: 3px 0; color: var(--muted); transition: color var(--t-hover) ease; }
.grp li[tabindex] { cursor: default; outline-offset: 2px; }
.grp li.hit, .grp li:focus-visible { color: var(--ink); }
.grp li.hit { font-weight: 650; }
.grp .sum { display: none; }
@media (hover: hover) and (pointer: fine) { .grp li:hover { color: var(--ink); } }
.check { grid-column: 10 / 13; grid-row: 2; align-self: start; position: sticky; top: 32px; }
.check label { display: block; font-weight: 650; line-height: 1.3; margin-bottom: 1.3em; }
.check .field { display: flex; }
.check input { width: 100%; min-width: 0; min-height: 52px; padding: 0 14px; background: #fff; border: 2px solid var(--ink); border-radius: 0; font-size: var(--s-body); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.check input::placeholder { color: #69728a; letter-spacing: 0; }
.check .out { margin-top: 20px; min-height: 9.5em; }
.check .out p + p { margin-top: 10px; }
.check .codes { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.check .codes button { min-height: 40px; padding: 0 12px; background: #fff; font-size: var(--s-small); font-variant-numeric: tabular-nums; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.check .codes button:active { transform: scale(0.96); }
.check .codes button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .check .codes button:hover { background: #d0d6de; } .check .codes button[aria-pressed="true"]:hover { background: var(--ink); } }
@media (max-width: 1000px) {
  .supply .h2 { grid-column: 1 / -1; margin-bottom: 40px; }
  .check { grid-column: 1 / -1; grid-row: auto; position: static; margin-bottom: 64px; order: -1; }
  .supply .h2 { order: -2; }
  .check .out { min-height: 0; }
  .supply .cols { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .supply .cols { grid-template-columns: 1fr; row-gap: 40px; }
  .grp li { line-height: 1.4; }
  .grp .sum { display: block; margin-top: 12px; color: var(--muted); }
}

/* ---------- route: three steps in order, one row ---------- */
.ph { overflow: hidden; }
.ph img, .band img { filter: saturate(0.78) contrast(1.04); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.route .head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 20px; align-items: end; margin-bottom: clamp(48px, 5vw, 80px); }
.route .head .h2 { grid-column: 1 / 7; }
.route .head p { grid-column: 8 / 13; }
.route ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px var(--g); }
.route .ph { aspect-ratio: 4 / 3; }
.route figcaption { margin-top: 10px; font-size: var(--s-small); color: var(--muted); }
.route h3 { font-size: var(--s-lead); line-height: 1.2; letter-spacing: -0.01em; font-weight: 650; margin: 28px 0 10px; }
.route li p { max-width: 40ch; }
.route .after { margin-top: clamp(48px, 5vw, 72px); }
@media (max-width: 900px) {
  .route .head .h2, .route .head p { grid-column: 1 / -1; }
  .route ol { grid-template-columns: 1fr; }
  .route li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--g); align-items: start; }
  .route li figure { grid-row: 1 / span 2; }
  .route h3 { margin-top: 0; }
}
@media (max-width: 560px) { .route li { display: block; } .route h3 { margin-top: 20px; } }

/* ---------- list: statement, table pushed right ---------- */
.ways h2 { font-size: var(--s-head); line-height: 1.08; letter-spacing: -0.02em; font-stretch: 88%; }
.ways h2 .in { display: block; padding-left: 3vw; }
.ways .intro { margin-top: 24px; }
.ways .grid { margin-top: 96px; row-gap: 56px; }
.ways .lbl { grid-column: 1 / 4; font-size: var(--s-small); color: var(--muted); padding-top: 4px; }
.ways .rows { grid-column: 4 / 13; }
.ways .rows li + li { margin-top: 2px; }
.ways .rows a, .ways .rows .r { display: grid; grid-template-columns: 30% 1fr auto; gap: 16px; padding: 12px 0; text-decoration: none; align-items: baseline; }
.ways .rows .k { color: var(--muted); }
.ways .rows .v { font-weight: 600; white-space: nowrap; }
.ways .rows a .v::after { content: "\2009\2192"; display: inline-block; transition: transform var(--t-ui) var(--ease-out); color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .ways .rows a:hover .v::after { transform: translateX(4px); } .ways .rows a:hover .p { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.25em; text-decoration-thickness: 2px; } }
.ways figure { grid-column: 1 / 5; grid-row: 1 / span 2; align-self: end; }
.ways figure .ph { aspect-ratio: 4 / 5; }
.ways figcaption { margin-top: 10px; font-size: var(--s-small); color: var(--muted); }
.ways .fine { grid-column: 4 / 13; font-size: var(--s-small); color: var(--muted); max-width: 60ch; }
@media (max-width: 900px) {
  .ways h2 .in { padding-left: 0; }
  .ways .grid { margin-top: 48px; row-gap: 20px; }
  .ways .lbl, .ways .rows, .ways .fine { grid-column: 1 / -1; }
  .ways .lbl { color: var(--ink); font-weight: 650; font-size: var(--s-body); margin-top: 24px; }
  .ways .rows a, .ways .rows .r { grid-template-columns: 1fr auto; row-gap: 2px; }
  .ways .rows .k { grid-column: 1 / -1; grid-row: 1; font-size: var(--s-small); }
  .ways figure { grid-column: 4 / -1; grid-row: auto; margin-top: 32px; }
}

/* markets carousel */
.ways .mk-label { grid-column: 1 / 4; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.ways .mk-label .lbl { padding-top: 4px; }
.mk-ctrl { display: flex; gap: 8px; }
.mk-ctrl button { width: 52px; height: 52px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 22px; line-height: 1; transition: background-color var(--t-hover) ease, opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.mk-ctrl button:active { transform: scale(0.95); }
.mk-ctrl button:disabled { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .mk-ctrl button:not(:disabled):hover { background: var(--accent); } }
.mk-track { grid-column: 4 / 13; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--g)) / 3); gap: var(--g); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px; }
.mk-track::-webkit-scrollbar { display: none; }
.mk-track:focus-visible { outline-offset: 6px; }
.mk { scroll-snap-align: start; background: var(--bg); padding: clamp(24px, 2.4vw, 36px); display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.mk .ab { font-size: var(--s-head); line-height: 1; font-weight: 800; font-stretch: 62%; letter-spacing: 0; color: var(--ink); }
.mk h3 { font-size: var(--s-body); font-weight: 650; padding-top: 32px; }
.mk p { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .mk-track { scroll-behavior: auto; } }
@media (max-width: 900px) {
  .ways .mk-label { grid-column: 1 / -1; flex-direction: row; align-items: center; margin-top: 24px; }
  .ways .mk-label .lbl { margin-top: 0; }
  .mk-track { grid-column: 1 / -1; grid-auto-columns: calc((100% - var(--g)) / 2); }
}
@media (max-width: 560px) { .mk-track { grid-auto-columns: 84%; } .mk { min-height: 260px; } }

/* ---------- figures: quiet figure lines ---------- */
.figs .grid { align-items: start; }
.figs .block { grid-column: 1 / -1; }
.figs dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--g); }
.figs .h2 { margin-left: calc(var(--fig) + 24px); margin-bottom: 56px; }
.figs { --fig: 15rem; }
.figs dl > div { display: grid; grid-template-columns: var(--fig) 1fr; column-gap: 24px; align-items: baseline; }

.figs dt { text-align: right; font-size: var(--s-lead); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; font-stretch: 88%; white-space: nowrap; }
.figs dd { max-width: 44ch; color: var(--muted); }
.figs dd b { color: var(--ink); }
.figs .more { margin-top: 40px; margin-left: calc(var(--fig) + 24px); }
.figs figure { grid-column: 9 / 12; margin-top: 140px; }
.figs figure .ph { aspect-ratio: 1; }
.figs figcaption { margin-top: 10px; font-size: var(--s-small); color: var(--muted); }
@media (max-width: 900px) {
  .figs { --fig: 9rem; }
  .figs dl { grid-template-columns: 1fr; gap: 30px; }
  .figs .h2, .figs .more { margin-left: 0; }
  .figs figure { grid-column: 6 / -1; margin-top: 56px; }
}
@media (max-width: 520px) {
  .figs dl > div { grid-template-columns: 1fr; }
  .figs dt { text-align: left; margin-bottom: 4px; }
}

/* ---------- about: side facts, wide paragraph ---------- */
.facts .row { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 56fr) minmax(0, 10fr); column-gap: var(--g); }
.facts .row + .row { margin-top: 120px; }
.facts .side { display: grid; gap: 20px; align-content: start; font-size: var(--s-small); max-width: 16rem; }
.facts .sidecol .side { max-width: none; }
.facts .side dt { color: var(--muted); }
.facts .side dd { font-weight: 600; }
.facts .main > * + * { margin-top: 24px; }
.facts .main .lead { max-width: none; }
.facts .lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; row-gap: 40px; }
.facts .lists h3 { font-size: var(--s-body); margin-bottom: 14px; }
.facts .lists li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 8px 0; }
.facts .lists li span:last-child { color: var(--muted); text-align: right; }
.facts .word { font-size: var(--s-small); color: var(--muted); }
@media (max-width: 900px) {
  .facts .row { grid-template-columns: 1fr; row-gap: 32px; }
  .facts .row .main { order: -1; }
  .sidecol .sfig { max-width: 60%; }
  .facts .side { grid-template-columns: 1fr 1fr; max-width: none; font-size: var(--s-small); }
  .facts .lists { grid-template-columns: 1fr; }
  .facts .row + .row { margin-top: 72px; }
}

/* ---------- the close: the idea again, inverted ---------- */
.close { min-height: 90svh; display: flex; flex-direction: column; padding-top: clamp(80px, 10vw, 160px); padding-bottom: 40px; }
.close .wrap { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.close .base { display: flex; justify-content: flex-start; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.close .base p { font-size: var(--s-lead); max-width: 34ch; color: var(--on-navy); line-height: 1.38; }
.close .btn { min-height: 56px; }
@media (max-width: 640px) { .close { min-height: 80svh; } .close .btn { width: 100%; } }

/* ---------- generic two-part section used on inner pages ---------- */
.split .grid { row-gap: 40px; align-items: start; }
.split .l { grid-column: 1 / 6; }
.split .r { grid-column: 7 / 13; }
.split .r > * + * { margin-top: 24px; }
.split .l > * + * { margin-top: 24px; }
@media (max-width: 900px) { .split .l, .split .r { grid-column: 1 / -1; } }
.plain li { padding: 10px 0 10px 22px; position: relative; max-width: 62ch; }
.plain li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 8px; height: 8px; background: var(--accent); }
.navy .plain li::before { background: var(--on-navy-soft); }
.note { font-size: var(--s-small); color: var(--muted); max-width: 64ch; }
.navy .note { color: var(--on-navy-soft); }
.panel { background: var(--surface); padding: clamp(24px, 3vw, 44px); }
.panel > * + * { margin-top: 16px; }
.tone .panel { background: var(--bg); }

/* pictures inside two-part sections */
.sfig { margin-top: 40px; }
.sfig figcaption, .strip figcaption { margin-top: 10px; font-size: var(--s-small); color: var(--muted); }
.navy .sfig figcaption { color: var(--on-navy-soft); }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); margin-top: 72px; }
.strip .sfig { margin-top: 0; }
.strip.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sidecol .sfig { max-width: 16rem; }
@media (max-width: 640px) { .strip { grid-template-columns: 1fr 1fr; } .strip .sfig:first-child { grid-column: 1 / -1; } }

/* ordered steps (a real list: the order matters) */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--g); }
.steps li { counter-increment: s; }
.steps li h3 { font-size: var(--s-lead); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; font-weight: 650; }
.steps li p { color: var(--muted); max-width: 40ch; }
.navy .steps li p { color: var(--on-navy-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* data table (a real table keeps its lines) */
.qref { width: 100%; border-collapse: collapse; font-size: var(--s-body); }
.qref th, .qref td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid #c9cfd8; }
.qref th { width: 30%; padding-right: 24px; font-weight: 600; color: var(--muted); }
.qref td { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .qref th, .qref td { display: block; width: auto; } .qref th { border: 0; padding-bottom: 2px; } }

dl.data { display: grid; grid-template-columns: minmax(9rem, 30%) 1fr; gap: 12px 24px; }
dl.data dt { color: var(--muted); font-weight: 600; }
dl.data dd { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { dl.data { grid-template-columns: 1fr; gap: 2px; } dl.data dd { margin-bottom: 12px; } }

/* forms */
.form { display: grid; gap: 22px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: block; font-weight: 600; margin-bottom: 8px; }
.form input, .form select, .form textarea { width: 100%; min-height: 52px; padding: 12px 14px; background: #fff; border: 2px solid #9aa3b5; border-radius: 0; font-size: var(--s-body); transition: border-color var(--t-hover) ease; }
.form textarea { min-height: 170px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 2px var(--ink); } /* taste-skill-ignore: focus ring, not at rest */
.form .err { color: var(--accent); font-weight: 600; min-height: 1.5em; }
@media (max-width: 640px) { .form .two { grid-template-columns: 1fr; } }

/* prose (privacy) */
.prose h2 { font-size: var(--s-lead); margin: 48px 0 12px; }
.prose p + p { margin-top: 1em; }

/* ---------- footer: the brand first, then the details ---------- */
.foot { background: #08112a; color: var(--on-navy); }
.foot .wrap { padding-top: clamp(56px, 6vw, 96px); padding-bottom: 28px; }
.foot .mark svg { width: 100%; height: auto; color: #fff; }
.foot .brandline { margin-top: clamp(28px, 3vw, 44px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.foot .brandline .lead { color: var(--on-navy); max-width: 40ch; }
.foot .cols { margin-top: clamp(56px, 6vw, 96px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--g); }
.foot .cols li { color: var(--on-navy-soft); padding: 2px 0; }
.foot .cols li:first-child { color: var(--on-navy); font-weight: 650; margin-bottom: 6px; }
.foot .cols a { color: inherit; text-decoration: none; }
.foot .cols a.tel { color: var(--on-navy); font-size: var(--s-body); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .foot .cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.25em; } }
.foot .legal { margin-top: clamp(56px, 6vw, 96px); padding-top: 24px; background: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: var(--s-small); color: var(--on-navy-soft); }
.foot .legal p { max-width: 75ch; }
.foot .legal a { color: inherit; }
@media (max-width: 900px) { .foot .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }
  .js [data-reveal].is-in > *:nth-child(2) { transition-delay: 80ms; }
  .js [data-reveal].is-in > *:nth-child(3) { transition-delay: 160ms; }
  .js [data-reveal].is-in > *:nth-child(4) { transition-delay: 240ms; }
  .js [data-reveal].is-in > *:nth-child(5) { transition-delay: 320ms; }
  .js .ph img { transform: scale(1.08); transition: transform 1600ms var(--ease-soft); }
  .js .is-in .ph img, .js .ph.is-in img { transform: none; }
  .hero .name span { animation: rise 1100ms var(--ease-expo) both; }
  .hero .name span + span { animation-delay: 90ms; }
  .hero .hero-row > * { animation: rise-s 900ms var(--ease-expo) 420ms both; }
  .hero .frames { animation: settle 2600ms var(--ease-soft) both; }
  .hero .frames img { transition: opacity 1600ms ease-in-out; }
  .phero h1, .phero .side { animation: rise-s 900ms var(--ease-expo) both; }
  .phero .side { animation-delay: 120ms; }
}

@keyframes rise { from { opacity: 0; transform: translateY(0.3em); } }
@keyframes rise-s { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { transform: scale(1.06); } }

/* ---------- print (capability statement) ---------- */
@media print {
  .top, .foot, .no-print, .skip, .close, .band { display: none !important; }
  body, main { background: #fff; color: #000; }
  .navy { background: #fff; color: #000; }
  .navy .lead, .navy .soft, .navy .note { color: #000; }
  .sec, .phero { padding-block: 24px; }
  .xl { font-size: 40pt; }
  a { text-decoration: none; }
}

/* picture credits page */
.credgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px var(--g); }
.credgrid .ph { aspect-ratio: 4 / 3; }
.credgrid figcaption { margin-top: 12px; color: var(--muted); }
.credgrid figcaption b { color: var(--ink); }
@media (max-width: 900px) { .credgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .credgrid { grid-template-columns: 1fr; } }
