/* ==========================================================================
   TimeBuilt Solutions -- redesigned pages (homepage, projects, 404)
   ==========================================================================
   Recreates design_handoff_timebuilt_site. Load after tokens.css and
   chrome.css; these pages do not load styles.css, whose older component
   rules (.hero, .btn, .card ...) would collide with the ones here.

   Where the handoff README lists a value it is used as written (section
   rhythm 64px, the type scale, motion timings); anything it doesn't list is
   read off the prototype HTML. Behaviour lives in js/motion.js and
   js/us-map.js; every animated state here is inside a
   prefers-reduced-motion: no-preference block. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; color-scheme: dark; }
h1, h2, h3 {
  font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; margin: 0;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  hanging-punctuation: first allow-end;
  text-indent: -0.02em;
}
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
/* --n-600 is 4.08:1 on --bg, under AA for small text; captions, legal,
   hints and breadcrumbs use --n-500 (5.9:1). --n-600 stays for non-text marks. */
figcaption { font-size: var(--fs-label); color: var(--n-500); margin-top: 8px; }
a { color: var(--accent-300); text-decoration: none; transition: color var(--dur-fast) ease; }
a:hover { color: var(--accent-200); }
:focus { outline: none; }
:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-200); outline-offset: 3px; border-radius: 4px;
}
::selection { background: rgba(145, 132, 217, .3); }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gut); }

/* Figures never jitter as they count. */
.money, .hs-v, .nb-v, .rec-v.mono, .et-v, .cred-v, [data-count] {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- Shared pieces ---------- */
.kicker {
  font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  font-feature-settings: "kern" 1; font-variant-numeric: tabular-nums;
}
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--accent); color: var(--accent-300); background: transparent;
  padding: 12px 21px; border-radius: var(--radius);
  font-family: var(--font); font-size: 14.5px; font-weight: 500; cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.btn:hover { background: var(--accent-900); color: var(--accent-200); }
.btn-quiet { border-color: var(--n-700); color: var(--text); }
.btn-quiet:hover { background: var(--n-900); color: var(--text); }
.underlink { position: relative; font-size: 14.5px; border-bottom: 1px solid var(--accent-800); padding-bottom: 3px; }
.underlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease);
}
.underlink:hover::after { transform: scaleX(1); }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--accent-800); border-radius: 999px; padding: 5px 12px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-300);
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(to right, transparent, rgba(233,233,237,.16) 48px, rgba(233,233,237,.16) calc(100% - 48px), transparent);
}
.section-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); }
.label {
  font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--n-500);
  font-feature-settings: "kern" 1; font-variant-numeric: tabular-nums;
}
/* One grade across every photograph so mixed sources look deliberate. */
img.graded, .frame img { filter: var(--photo-grade); }

/* ---------- Homepage: hero ----------
   The header overlays this photo (chrome.css); the body clears it with
   --head-h + 60px on top and >=132px underneath so the credentials card,
   which overlaps the bottom edge by 56px, never touches the buttons.
   Image and text share one grid cell so a tall phone header or a long
   headline grows the hero instead of clipping it. */
.hero { position: relative; overflow: hidden; display: grid; }
.hero > img, .hero-veil, .hero-body { grid-area: 1 / 1; }
.hero > img { width: 100%; height: 100%; min-height: 680px; object-fit: cover; filter: var(--photo-grade-hero); }
/* Positioned so it paints above the photo, whose zoom-in transform would
   otherwise lift it over a static layer. */
.hero-veil { position: relative; background: linear-gradient(to right, var(--bg) 6%, rgba(22,24,38,.6) 56%, rgba(22,24,38,.15)); }
.hero-body { position: relative; display: flex; align-items: flex-end; padding-top: calc(var(--head-h) + 60px); }
.hero-body .wrap { width: 100%; padding-bottom: 132px; }
.hero h1 {
  font-size: var(--fs-hero); line-height: var(--lh-hero); letter-spacing: var(--tr-hero);
  margin-bottom: 20px; max-width: 20ch;
}
.hero h1 .ln { display: block; }
.hero-sub { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--n-300); max-width: 54ch; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Homepage: credentials card ---------- */
.creds-band { margin-top: -56px; position: relative; z-index: 6; }
.cred-card {
  background: var(--surface); box-shadow: var(--shadow-sm); border-radius: var(--radius);
  padding: 24px 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 34px;
}
/* The seal is multicolour artwork on transparent: it needs a light plate. */
.cred-seal { height: 54px; width: auto; padding: 4px 5px; background: #f4f1ea; border-radius: 4px; }
.cred { min-width: 120px; }
.cred-v { font-size: 17.5px; font-weight: 500; margin-bottom: 5px; }
.cred-v.mono { font-family: var(--mono); font-size: 16px; }
.cred-v.on { color: var(--accent-300); }
.cred-l { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--n-500); }
.cred-card .underlink { margin-left: auto; }

/* ---------- Homepage: two-column sections ----------
   The text column pins while the photo scrolls past (static under 900px). */
.split {
  padding-top: var(--section-y); padding-bottom: var(--section-y);
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
}
.split > div:first-child { position: sticky; top: 108px; align-self: start; }
.split h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); margin: 14px 0 20px; }
.split p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--n-300); }
.split figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.split.flip figure { order: -1; }
/* Qualified by .split so it outranks the .split p body rule. */
.split .founder-lead { font-size: var(--fs-body-2); color: var(--n-500); margin-bottom: 16px; }
.split .founder-point { font-size: 23px; line-height: 1.45; letter-spacing: -.01em; color: var(--text); max-width: 30ch; }
.frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 34%; transform: scale(1.16); transform-origin: 28% 72%; border-radius: 0;
}
.money {
  font-size: var(--fs-figure); line-height: var(--lh-figure); letter-spacing: var(--tr-figure);
  font-weight: 500; margin: 18px 0 8px;
}
.meta { font-size: 14px; color: var(--n-500); margin-bottom: 22px; }
.split .contract-desc { margin-bottom: 26px; }

/* ---------- Homepage: services ---------- */
.services { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.services h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); margin: 14px 0 34px; max-width: 26ch; }
.quads {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); box-shadow: var(--elev-2); border-radius: var(--radius); overflow: hidden;
}
.quad {
  position: relative; cursor: pointer; background: var(--bg);
  padding: 34px 30px; min-height: 190px; display: flex; flex-direction: column;
}
.quad-n { font-family: var(--mono); font-size: 11.5px; color: var(--accent); margin-bottom: auto; }
.quad h3 { font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: -.01em; margin: 22px 0 10px; padding-right: 24px; }
.quad > p { font-size: 14.5px; color: var(--n-500); line-height: 1.55; }
.quad-tog {
  position: absolute; right: 26px; top: 30px; line-height: 1;
  font-family: var(--mono); font-size: 15px; color: var(--n-600);
  transition: transform var(--dur-fast) ease, color var(--dur-fast) ease;
}
.quad:hover .quad-tog { color: var(--accent); }
.quad.is-open .quad-tog { transform: rotate(45deg); color: var(--accent-300); }
.quad-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.quad.is-open .quad-more { grid-template-rows: 1fr; }
.quad-more-in { overflow: hidden; min-height: 0; }
.quad-more p { font-size: 14px; line-height: 1.6; color: var(--n-300); margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--n-800); }

/* ---------- Homepage: eligibility ---------- */
.elig { border-top: 1px solid var(--line); }
.elig .wrap {
  padding-top: var(--section-y); padding-bottom: var(--section-y);
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: start;
}
.elig .wrap > div:first-child { position: sticky; top: 108px; align-self: start; }
.elig h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); margin: 14px 0 20px; max-width: 20ch; }
.elig-note { font-size: var(--fs-body-2); line-height: var(--lh-body-2); color: var(--n-500); max-width: 38ch; margin-bottom: 22px; }
.elig-table { box-shadow: var(--shadow-sm); border-radius: var(--radius); overflow: hidden; }
.et-row {
  display: grid; grid-template-columns: 148px 1fr; gap: 24px; padding: 15px 22px;
  border-bottom: 1px solid var(--line); align-items: baseline; transition: background var(--dur-fast) ease;
}
.et-row:last-child { border-bottom: 0; }
.et-row:hover { background: var(--n-900); }
.et-k { font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--n-500); }
.et-v { font-size: var(--fs-table); line-height: var(--lh-table); }
.et-v.mono { font-family: var(--mono); font-size: var(--fs-mono); }
.et-v.on { color: var(--accent-300); }

/* ---------- Homepage: by the numbers ----------
   The currency figure needs the wider first track or it runs into the next
   cell. */
.numband { background: var(--section); }
.numband .wrap { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.numband .kicker { color: var(--section-label); display: inline-block; margin-bottom: 24px; }
.nb-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px 34px; }
.nb-v { font-size: clamp(28px, 3.1vw, 42px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 10px; }
.nb-l { font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--section-label); }

/* ---------- Map sections (both pages) ---------- */
.cov, .pmap { border-top: 1px solid var(--line); }
.cov .wrap {
  padding-top: var(--section-y); padding-bottom: var(--section-y);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: center;
}
.cov .wrap > div:first-child { position: sticky; top: 108px; align-self: start; }
.cov h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); margin: 14px 0 20px; max-width: 20ch; }
.cov-note { font-size: var(--fs-body-2); line-height: var(--lh-body-2); color: var(--n-500); max-width: 38ch; margin-bottom: 24px; }
.cov-legend { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.cov-key { display: flex; align-items: center; gap: 10px; color: var(--n-300); transition: color var(--dur-fast) ease; }
.cov-key.is-hot { color: var(--accent-200); }
.cov-swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; transition: transform var(--dur-fast) ease; }
.cov-swatch.hq { background: var(--accent-300); box-shadow: 0 0 0 3px var(--accent-900); }
.cov-key.is-hot .cov-swatch { transform: scale(1.45); }
.us-map { width: 100%; }
.us-map svg { display: block; width: 100%; height: auto; }
.us-map .map-dot { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform var(--dur-fast) ease; }
.us-map .map-halo { transform-box: fill-box; transform-origin: center; transition: transform 300ms ease, opacity 300ms ease; opacity: 0; transform: scale(1); }
.us-map .is-hot .map-dot { transform: scale(1.5); }
.us-map .is-hot .map-halo { opacity: 1; transform: scale(3.2); }

.pmap .wrap {
  padding-top: var(--section-y); padding-bottom: var(--section-y);
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start;
}
.pmap h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.022em; margin: 12px 0 18px; max-width: 20ch; }
.msel { box-shadow: var(--shadow-sm); border-radius: var(--radius); padding: 26px; min-height: 190px; }
.msel-k { font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.msel-t { font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -.015em; margin-bottom: 8px; }
.msel-d { font-size: 15px; color: var(--n-300); line-height: 1.6; margin-bottom: 18px; }
.msel-hint { font-size: 12.5px; color: var(--n-500); }
.mlist { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; }
.mrow {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0;
  background: none; border: 0; border-top: 1px solid var(--line);
  font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--n-300); text-align: left; cursor: pointer;
  transition: color var(--dur-fast) ease;
}
.mrow:hover { color: var(--text); }
.mrow.is-on { color: var(--accent-300); }
.mdot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.mrow.hq .mdot { background: var(--accent-300); }

/* ---------- Closing call to action (both pages) ---------- */
.cta { border-top: 1px solid var(--line); }
.cta .wrap {
  padding-top: var(--section-y); padding-bottom: var(--section-y);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.cta h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); max-width: 20ch; margin: 14px 0 0; }
.cta-note { font-size: var(--fs-body-2); line-height: 1.6; color: var(--n-500); margin-top: 14px; max-width: 40ch; }
.cta-panel { box-shadow: var(--shadow-sm); border-radius: var(--radius); overflow: hidden; }
.cta-line { display: grid; grid-template-columns: 66px 1fr; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); align-items: baseline; }
.cta-line:last-child { border-bottom: 0; }
.cta-k { font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--n-500); }
.cta-v { font-size: 15.5px; overflow-wrap: break-word; }

/* ---------- Projects: page header ----------
   Labels sit above values so both stats share a baseline. The narrative
   paragraph must stay visibly quieter than the 18px subline -- they are
   addressed by their own classes, never by position. */
.phead { border-bottom: 1px solid var(--line); }
.phead .wrap { padding-top: var(--phead-top); padding-bottom: var(--phead-bottom); }
.crumb { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: 12.5px; color: var(--n-500); margin-bottom: 34px; }
.crumb a { color: var(--n-500); }
.crumb a:hover { color: var(--accent-300); }
.crumb .here { color: var(--n-300); }
.phead h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tr-h1); margin: 14px 0 16px; text-wrap: pretty; }
.phead .phead-sub { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--n-300); max-width: 52ch; margin: 0; }
.phead-stats { display: grid; grid-template-columns: auto 1fr; gap: 20px 56px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.hs-l { font-size: var(--fs-label); letter-spacing: .11em; text-transform: uppercase; color: var(--n-500); margin-bottom: 12px; }
.hs-v { font-size: var(--fs-figure); font-weight: 500; letter-spacing: var(--tr-figure); line-height: var(--lh-figure); }
.hs-v.alt { font-size: 17px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--n-300); max-width: 26ch; }
.phead .phead-nar { font-size: var(--fs-body-2); line-height: var(--lh-body-2); color: var(--n-500); max-width: 60ch; margin: 30px 0 0; }

/* ---------- Projects: list ----------
   Every contract record sits in the same right-hand column so figures
   compare across projects. */
.plist { border-top: 1px solid var(--line); }
.pitem {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start;
  padding: 56px 0; border-bottom: 1px solid var(--line);
}
.pitem:last-child { border-bottom: 0; }
.pitem h2 { font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--tr-title); font-weight: 500; margin: 16px 0 8px; max-width: 26ch; }
.pitem-ag { font-size: 15px; color: var(--n-500); margin-bottom: 20px; }
.pitem p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--n-300); margin: 0 0 24px; max-width: 56ch; }
.pitem figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.rec { box-shadow: var(--shadow-sm); border-radius: var(--radius); overflow: hidden; }
.rec-row { display: grid; grid-template-columns: 148px 1fr; gap: 18px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.rec-row:last-child { border-bottom: 0; }
.rec-k { font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--n-500); }
.rec-v { font-size: var(--fs-table); line-height: var(--lh-table); }
.rec-v.mono { font-family: var(--mono); font-size: var(--fs-mono); }

/* ---------- 404 ---------- */
.phead-404 .wrap { padding-top: 88px; padding-bottom: 104px; }
.phead-404 h1 { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.06; letter-spacing: -.03em; margin: 14px 0 16px; }
.phead-404 .lost-intro { font-size: 17.5px; line-height: 1.6; color: var(--n-300); max-width: 48ch; margin: 0 0 40px; }
.lost { box-shadow: var(--shadow-sm); border-radius: var(--radius); overflow: hidden; max-width: 620px; }
.lost-row {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 22px;
  border-bottom: 1px solid var(--line); color: var(--text); transition: background var(--dur-fast) ease;
}
.lost-row:last-child { border-bottom: 0; }
.lost-row:hover { background: var(--n-900); color: var(--text); }
.lost-n { font-family: var(--mono); font-size: 11.5px; color: var(--accent); padding-top: 4px; }
.lost-row > span:last-child { display: flex; flex-direction: column; gap: 5px; }
.lost-row strong { font-size: 16.5px; font-weight: 500; }
.lost-row span span { font-size: 13.5px; color: var(--n-500); }
.lost-foot {
  display: flex; flex-wrap: wrap; gap: 22px; align-items: baseline;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--n-500);
}

/* ---------- Responsive: 1060 / 1000 / 900 / 640 ---------- */
@media (max-width: 1060px) {
  .cred-card .underlink {
    margin-left: 0; flex: 0 0 100%; border-bottom: 0;
    text-decoration: underline; text-decoration-color: var(--accent-800); text-underline-offset: 4px;
  }
  .cred-card .underlink::after { display: none; }
}
@media (max-width: 1000px) {
  .nb-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero > img { min-height: 460px; }
  .hero-veil { background: linear-gradient(to top, var(--bg) 10%, rgba(22,24,38,.55)); }
  .split, .elig .wrap, .cov .wrap, .pmap .wrap, .cta .wrap, .pitem { grid-template-columns: 1fr; }
  .split > div:first-child, .elig .wrap > div:first-child, .cov .wrap > div:first-child { position: static; }
  .quads { grid-template-columns: 1fr; }
  .pitem { gap: 32px; }
  .phead-stats { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  .et-row, .cta-line, .rec-row { grid-template-columns: 1fr; gap: 5px; }
  .et-k, .cta-k, .rec-k { letter-spacing: .09em; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .elig h2, .cov h2, .split h2, .services h2, .cta h2 { font-size: 28px; }
  .split .founder-point { font-size: 20px; }
  .cred-card { padding: 22px; gap: 22px; }
  .quad { padding: 26px 22px; min-height: 0; }
  .nb-grid { grid-template-columns: 1fr; }
}

/* ---------- Motion ----------
   One curve (--ease), two durations (--dur, --dur-fast). js/motion.js adds
   the .mask / .draw / .fade classes and the .in state, and only when motion
   is allowed -- so nothing is ever hidden for a reduced-motion visitor or
   when the script does not run. */
@media (prefers-reduced-motion: no-preference) {
  .hero > img { animation: heroZoom 1400ms var(--ease) both; }
  @keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
  .hero-sub, .hero .actions { animation: up var(--dur) var(--ease) both; }
  .hero-sub { animation-delay: 420ms; }
  .hero .actions { animation-delay: 560ms; }
  @keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  .hero h1.is-split .ln { overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
  .hero h1.is-split .ln > span { display: block; transform: translateY(106%); animation: lnUp 760ms var(--ease) both; }
  .hero h1.is-split .ln:nth-child(1) > span { animation-delay: 0ms; }
  .hero h1.is-split .ln:nth-child(2) > span { animation-delay: 230ms; }
  .hero h1.is-split .ln:nth-child(3) > span { animation-delay: 460ms; }
  @keyframes lnUp { to { transform: none; } }

  .prog { position: fixed; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); z-index: 40; pointer-events: none; }
  .mask { overflow: hidden; display: block; }
  .mask > span { display: block; transform: translateY(106%); transition: transform var(--dur) var(--ease); }
  .mask.in > span { transform: none; }
  .draw { position: relative; display: inline-block; }
  .draw::after { content: ""; position: absolute; left: 0; bottom: -11px; height: 1px; width: 0; background: var(--accent); transition: width var(--dur) var(--ease) 120ms; }
  .draw.in::after { width: 64px; }
  .fade { opacity: 0; transform: translateY(20px); transition: opacity var(--dur) var(--ease) 80ms, transform var(--dur) var(--ease) 80ms; }
  .fade.in { opacity: 1; transform: none; }
  .cred-card.will-reveal { opacity: 0; transform: translateY(30px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .cred-card.will-reveal.in { opacity: 1; transform: none; }
  .quads.will-reveal .quad { opacity: 0; transform: translateY(22px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur-fast) ease; }
  .quads.will-reveal.in .quad { opacity: 1; transform: none; }
  .quads.will-reveal.in .quad:nth-child(2) { transition-delay: 90ms; }
  .quads.will-reveal.in .quad:nth-child(3) { transition-delay: 180ms; }
  .quads.will-reveal.in .quad:nth-child(4) { transition-delay: 270ms; }
  .quads.in .quad:hover { background: var(--surface); transform: translateY(-3px); transition-delay: 0ms; }
  .quad:hover .quad-n { color: var(--accent-200); }
  .split figure img { transition: transform 1.2s var(--ease); }
  .split figure:hover img { transform: scale(1.03); }
  .frame:hover img { transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .quad-more, .quad-tog { transition: none; }
}

/* ---------- Print ----------
   Black on white. Nav, photos, map, decoration and the indigo band drop
   out; everything revealed is forced visible; credential and contract
   tables print intact. */
@media print {
  :root {
    --bg: #fff; --text: #111; --n-200: #333; --n-300: #333; --n-500: #555; --n-600: #666;
    --line: #ccc; --surface: #fff; --section: #fff; --section-label: #555;
    --accent: #333; --accent-300: #333; --shadow-sm: 0 0 0 1px #ccc; --elev-2: 0 0 0 1px #ccc;
  }
  body { background: #fff; color: #111; }
  .prog, .hero-veil, .numband, .cov, .pmap, .hero > img, .split figure, .pitem figure, .cred-seal { display: none !important; }
  .hero { display: block; }
  .hero-body { padding-top: 0; }
  .hero-body .wrap { padding-bottom: 24px; }
  .creds-band { margin-top: 0; }
  a { color: #111; text-decoration: underline; }
  .fade, .mask > span, .cred-card, .quad, .hero-sub, .hero .actions, .hero h1 .ln > span { opacity: 1 !important; transform: none !important; animation: none !important; }
  .quads { grid-template-columns: 1fr 1fr; }
  .quad-more { grid-template-rows: 1fr; }
  section { break-inside: avoid; }
  .rec, .elig-table, .cta-panel, .cred-card { break-inside: avoid; }
}

/* Every remaining transition (hover colours, the underline wipe, the quad
   slide) no-ops for visitors who ask for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
}
