/* ==================================================================
   HAND-SET - a live type-specimen / proof-sheet
   Stylesheet. All tunables live in :root below (EDIT-friendly).
   ================================================================== */

/* ---------------------------------
   1. DESIGN TOKENS  (tweak freely)
   --------------------------------- */
:root {
  /* -- Colour world: warm uncoated paper + ink + single proof-red -- */
  --paper:        #f4efe6;   /* base paper */
  --paper-deep:   #ece4d5;   /* shaded paper (bands, cards) */
  --paper-soft:   #f9f5ee;   /* lifted paper (card surface) */
  --ink:          #1a1714;   /* warm near-black, NEVER pure black */
  --ink-2:        #3a342d;   /* secondary ink */
  --ink-3:        #6f665a;   /* muted ink (meta) */
  --ink-4:        #a59c8d;   /* faint ink (rules, captions) */
  --rule:         rgba(26, 23, 20, 0.16);  /* hairline rules */
  --rule-strong:  rgba(26, 23, 20, 0.42);
  --red:          #d8382e;   /* vermilion proof-red (the ONE accent) */
  --red-deep:     #b62a21;   /* red for text on paper (contrast-safe) */
  --red-bright:   #f06657;   /* red for text on dark ink (contrast-safe) */
  --white:        #fdfbf7;

  /* -- Type families -- */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body:    "Space Grotesk", system-ui, -apple-system, sans-serif;
  --f-mono:    "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* -- Fluid type scale (clamp) -- */
  --fs-hero:   clamp(3.4rem, 12.5vw, 11.5rem);
  --fs-h2:     clamp(2.1rem, 5.4vw, 4.4rem);
  --fs-h3:     clamp(1.3rem, 2vw, 1.7rem);
  --fs-lede:   clamp(1.05rem, 1.4vw, 1.35rem);
  --fs-body:   clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-mono:   0.72rem;
  --fs-mono-l: 0.78rem;

  /* -- Layout / specimen grid -- */
  --maxw:      1320px;
  --gutter:    clamp(1.1rem, 3vw, 2.5rem);
  --edge:      clamp(1.1rem, 4vw, 2.75rem);   /* page edge padding */
  --cols:      12;

  /* -- Motion -- */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);  /* expo-out, weighted */
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:       0.7s;

  /* -- Misc -- */
  --radius:    2px;
  --crop-len:  clamp(16px, 2.2vw, 26px);
  --gauge-right: clamp(0.6rem, 1.2vw, 1rem);
}

/* ---------------------------------
   2. RESET / BASE
   --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

html.loading { overflow: hidden; height: 100%; }
html.loading body { overflow: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select, button { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
em { font-style: italic; }

::selection { background: var(--red); color: var(--paper); }

/* Visible, on-brand focus states */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 1px;
}
a:focus-visible, button:focus-visible { outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 0.6rem; left: 0.6rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateY(-140%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------------------------------
   3. PAPER GRAIN + SPECIMEN GRID LINES (decorative layers)
   --------------------------------- */
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../images/paper-grain.svg");
  background-size: 360px 360px;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px);
  background-size: calc(100% / var(--cols)) 100%;
  background-position: 0 0;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.9s var(--ease-soft), clip-path 1.1s var(--ease);
}
/* reveal the grid lines once load sequence hits stage-1 */
html.stage-1 .grid-lines {
  opacity: 0.6;
  clip-path: inset(0 0 0 0);
}

/* Keep content above the decorative layers.
   NOTE: .cursor is intentionally NOT here - it has its own fixed
   positioning + high z-index in section 9, and must not be forced to
   position:relative (which would break pointer-following). */
.site-header, main, .site-footer, .frame, .gauge {
  position: relative;
  z-index: 2;
}

/* ---------------------------------
   4. LAYOUT PRIMITIVES
   --------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.section { padding-block: clamp(5rem, 13vh, 9.5rem); position: relative; }
.section + .section { border-top: 1px solid var(--rule); }

/* Subtle alternating paper bands for editorial rhythm */
.services { background: linear-gradient(var(--paper-deep), var(--paper-deep)); }
.contact  { background: var(--paper-deep); }

.reg-dash { color: var(--red); font-weight: 700; margin-right: 0.35em; }

/* ---------------------------------
   5. SECTION HEADERS (folio, kicker, title)
   --------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 1rem;
  row-gap: 0.4rem;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: clamp(1.6rem, 3vh, 2.4rem);
  border-bottom: 1px solid var(--rule);
  max-width: 56rem;
}
.sec-num {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-deep);
}
/* Specimen folio mark: a vermilion registration cross before the folio number */
.sec-num::before {
  content: "\271A";
  color: var(--red);
  font-size: 0.6rem;
  margin-right: 0.5em;
  vertical-align: 0.1em;
}
.sec-kicker {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sec-title {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--f-display);
  font-weight: 360;
  font-size: var(--fs-h2);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 120, "SOFT" 40, "WONK" 0;
  margin-top: 0.2rem;
}
.sec-title em { color: var(--red-deep); }
.sec-lede {
  grid-column: 1 / -1;
  grid-row: 3;
  font-size: var(--fs-lede);
  color: var(--ink-2);
  max-width: 46rem;
  margin-top: 0.8rem;
}
.section-head--wide { max-width: none; }

/* ---------------------------------
   6. HEADER / NAV
   --------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: clamp(0.9rem, 2vh, 1.3rem);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid var(--rule);
}
.site-header.is-stuck {
  background: rgba(244, 239, 230, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom-color: var(--rule-strong);
}
.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-l);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand__mark { color: var(--red); transition: transform 0.5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
}
.nav__list a {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.3s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after { transform: scaleX(1); }

.nav__cta {
  border: 1px solid var(--ink);
  padding: 0.55rem 1rem !important;
  color: var(--ink) !important;
  transition: background 0.3s var(--ease), color 0.3s var(--ease) !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--ink); color: var(--paper) !important; }

/* Mobile nav toggle - desktop: display:none (impossible to open) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-toggle__bars {
  width: 26px; height: 14px;
  position: relative;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 2px; }
.nav-toggle__bars span:nth-child(2) { bottom: 2px; }
body.menu-open .nav-toggle__bars span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-toggle__bars span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem var(--edge) 3rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__nav a {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  font-weight: 340;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease);
}
.mobile-menu__nav a:hover { color: var(--red-deep); padding-left: 0.6rem; }
.m-folio {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  color: var(--red-deep);
  letter-spacing: 0.1em;
}
.mobile-menu__note {
  margin-top: 2rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* lock background scroll while mobile menu is open */
body.menu-open { overflow: hidden; }

/* ---------------------------------
   7. FRAME - corner crop / trim marks
   --------------------------------- */
.frame { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.crop {
  position: absolute;
  width: var(--crop-len);
  height: var(--crop-len);
}
.crop::before, .crop::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.crop::before { /* horizontal arm */
  width: var(--crop-len);
  height: 1px;
  top: 50%;
  left: 0;
}
.crop::after { /* vertical arm */
  width: 1px;
  height: var(--crop-len);
  left: 50%;
  top: 0;
}
/* Corner registration crosses: centred on the corner point via per-corner -rest transform */
.crop--tl { top: var(--edge); left: var(--edge);  --rest: translate(-50%, -50%); transform: var(--rest); }
.crop--tr { top: var(--edge); right: var(--edge); --rest: translate(50%, -50%);  transform: var(--rest); }
.crop--bl { bottom: var(--edge); left: var(--edge);  --rest: translate(-50%, 50%); transform: var(--rest); }
.crop--br { bottom: var(--edge); right: var(--edge); --rest: translate(50%, 50%);  transform: var(--rest); }

/* Load sequence: crops snap in (stage-1) - scale + fade only, rest transform preserved */
html.loading .crop { opacity: 0; transform: var(--rest) scale(0.3); }
html.stage-1 .crop { animation: cropIn 0.7s var(--ease) forwards; }
html.stage-1 .crop--tl { animation-delay: 0.05s; }
html.stage-1 .crop--tr { animation-delay: 0.12s; }
html.stage-1 .crop--bl { animation-delay: 0.19s; }
html.stage-1 .crop--br { animation-delay: 0.26s; }
@keyframes cropIn {
  from { opacity: 0; transform: var(--rest) scale(0.3); }
  to   { opacity: 1; transform: var(--rest) scale(1); }
}

/* ---------------------------------
   8. SCROLL GAUGE (right rail)
   --------------------------------- */
.gauge {
  position: fixed;
  right: var(--gauge-right);
  top: 0; bottom: 0;
  width: 1px;
  z-index: 4;
  pointer-events: none;
  display: none; /* desktop only via media query */
}
.gauge__track {
  position: absolute;
  inset: 0;
  background: var(--rule);
}
.gauge__fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: var(--red);
  transform-origin: top;
  will-change: height;
}

/* ---------------------------------
   9. CUSTOM CURSOR  (registration mark + shape-morph + colour-shift)
   - .cursor: 0x0 fixed point following the pointer, above everything.
   - Default = vermilion registration crosshair (.cursor__mark + .cursor__center).
   - .cursor.is-link  (over a/button/.btn): mark scales up, thin ring draws.
   - .cursor.is-text  (over text input/textarea): mark hides, I-beam shows.
   - .cursor.is-shift (over [data-cursor-shift] = orange-hover buttons): the
     whole mark shifts to deep maroon so it stays readable on the orange fill.
   - All coloured parts use var(--cursor-color); changing that var (via
     .is-shifted) cascades everywhere with a ~200ms background/border cross-fade.
   - position:fixed + z-index:99999 + pointer-events:none throughout.
   --------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 99999;
  pointer-events: none;
  width: 0; height: 0;
  display: block;
  --cursor-color: #d8382e;    /* vermilion - single source for the mark colour */
  --cursor-shift: #5a0d08;    /* STEP 2: deep maroon for contrast on orange */
}

/* STEP 2: scoped ONLY to elements carrying [data-cursor-shift]. Add that
   marker to any future orange-hover button and the shift applies, no JS edit. */
.cursor.is-shifted { --cursor-color: var(--cursor-shift); }

/* -- Default registration mark: crosshair arms + centre dot -- */
.cursor__mark {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  transform: scale(1);
  opacity: 1;
  transition: transform 0.13s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.12s ease-out;
}
.cursor__mark::before, .cursor__mark::after {
  content: "";
  position: absolute;
  background: var(--cursor-color);
  transition: background-color 0.2s ease-out;
}
.cursor__mark::before { width: 22px; height: 1.6px; top: -0.8px; left: -11px; }   /* H arm */
.cursor__mark::after  { width: 1.6px; height: 22px; top: -11px; left: -0.8px; }   /* V arm */
.cursor__center {
  position: absolute;
  top: -3px; left: -3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cursor-color);
  transition: background-color 0.2s ease-out;
}

/* -- Hover ring (drawn over links / buttons) -- */
.cursor__ring {
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 46px;
  border: 1.4px solid var(--cursor-color);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.16s cubic-bezier(0.33, 1, 0.68, 1),
              opacity 0.12s ease-out,
              border-color 0.16s ease-out;
}

/* -- Text I-beam (shown over text inputs / textarea) -- */
.cursor__ibeam {
  position: absolute;
  top: 0; left: 0;
  width: 1.8px; height: 22px;
  transform: translate(-50%, -50%) scaleX(0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.13s cubic-bezier(0.33, 1, 0.68, 1),
              opacity 0.12s ease-out,
              background-color 0.16s ease-out;
}
.cursor__ibeam, .cursor__ibeam::before, .cursor__ibeam::after {
  background: var(--cursor-color);
  transition: background-color 0.2s ease-out;
}
.cursor__ibeam::before, .cursor__ibeam::after { /* serif caps */
  content: "";
  position: absolute;
  width: 7px; height: 1.6px;
  left: -2.6px;
}
.cursor__ibeam::before { top: -1px; }
.cursor__ibeam::after  { bottom: -1px; }

/* -- STATE: over links / buttons -> scale mark + draw ring -- */
.cursor.is-link .cursor__mark { transform: scale(1.3); }
.cursor.is-link .cursor__ring {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* -- STATE: over text inputs / textarea -> collapse mark, show I-beam -- */
.cursor.is-text .cursor__mark { opacity: 0; transform: scale(0.4); }
.cursor.is-text .cursor__ibeam {
  opacity: 1;
  transform: translate(-50%, -50%) scaleX(1);
}

/* Hide the native system cursor - but ONLY on devices that can show the
   custom mark (fine pointer + hover + motion allowed). Opt-in via
   body.cursor-ready, which JS adds only after the mark is placed + live. */
body.cursor-ready,
body.cursor-ready a,
body.cursor-ready button,
body.cursor-ready input,
body.cursor-ready textarea,
body.cursor-ready select,
body.cursor-ready label,
body.cursor-ready [role="button"],
body.cursor-ready .btn,
body.cursor-ready [role="combobox"],
body.cursor-ready [role="option"] {
  cursor: none;
}
/* Over a LOADED live-preview viewport the embedded site drives its own
   native cursor, so hide the custom mark there (and show the system
   cursor over the viewport's own gutters, e.g. mobile side margins). */
.cursor.is-suppressed { opacity: 0; }
body.cursor-ready .preview.is-loaded .preview__viewport { cursor: auto; }

/* ---------------------------------
   10. BUTTONS
   --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-l);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--paper); border-color: var(--red); }
.btn__arrow { transition: transform 0.35s var(--ease); display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary::before { background: var(--red); }
.btn--primary:hover { color: var(--paper); border-color: var(--red); }

.btn--ghost { background: transparent; color: var(--ink); }

.btn--submit { width: 100%; justify-content: center; padding: 1.1rem 1.5rem; }

/* ---------------------------------
   11. HERO
   --------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: clamp(7rem, 16vh, 10rem);
  padding-bottom: clamp(4rem, 9vh, 7rem);
}
.hero__inner { position: relative; width: 100%; }

.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-mono-l);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: clamp(1.5rem, 4vh, 2.8rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-headline {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: 0.86;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  color: var(--ink);
}
.hl-line {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
}
.hl-line--em {
  font-style: italic;
  color: var(--red-deep);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  position: relative;
}
.hl-line--3 { padding-left: clamp(0.5rem, 6vw, 6rem); }

/* Specimen plate mark (top-left of the hero block) + vertical annotation */
.hero__folio {
  position: absolute;
  top: -3.4rem;
  left: 0;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.hero__annotation {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  opacity: 0.85;
}
@media (max-width: 900px) { .hero__annotation { display: none; } }

/* Per-char drop while loading (revealed on stage-2) */
.char {
  display: inline-block;
  will-change: transform, opacity;
}
html.loading .char { opacity: 0; transform: translateY(0.55em); }
html.stage-2 .char { animation: charDrop 0.8s var(--ease) forwards; animation-delay: calc(var(--i) * 0.045s); }
@keyframes charDrop {
  0%   { opacity: 0; transform: translateY(0.55em); }
  100% { opacity: 1; transform: translateY(0); }
}

/* proof-red circle around "hand-set". Hidden without JS (no way to position);
   shown + JS-positioned when .js is present. */
.circle-mark {
  position: absolute;
  pointer-events: none;
  color: var(--red);
  overflow: visible;
  z-index: 1;
  display: none;
}
.js .circle-mark { display: block; }
html.loading .circle-mark path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
html.stage-3 .circle-mark path {
  animation: drawCircle 0.9s var(--ease) 0.15s forwards;
}
@keyframes drawCircle {
  0%   { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

.hero__foot {
  margin-top: clamp(1.8rem, 4.5vh, 3rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.hero__sub {
  font-size: var(--fs-lede);
  color: var(--ink-2);
  max-width: 34rem;
}
.hero__sub em { color: var(--ink); font-style: italic; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

/* Honest specimen data strip across the hero foot - fills the dead air */
.hero__meta {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__meta li { display: inline-flex; align-items: center; }
.hero__meta li::before {
  content: "\271A";  /* vermilion registration cross separator */
  color: var(--red);
  font-size: 0.6rem;
  margin: 0 clamp(0.7rem, 1.6vw, 1.3rem);
}
.hero__meta li:first-child::before { content: none; }

/* ---------------------------------
   12. MANIFESTO
   --------------------------------- */
.manifesto__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.pull-quote {
  font-family: var(--f-display);
  font-weight: 320;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 100, "SOFT" 50;
  color: var(--ink);
  position: relative;
  padding-left: 1.4rem;
  border-left: 2px solid var(--red);
}
.pull-quote em { color: var(--red-deep); }
.manifesto__body p { color: var(--ink-2); margin-bottom: 1.1rem; }
/* Specimen data block - ruled label/value pairs instead of a loose row */
.manifesto__data { margin-top: 1.8rem; }
.manifesto__data-k {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 0.9rem;
}
.inline-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.inline-meta li {
  background: var(--paper);
  padding: 0.9rem 1rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.im-k { display: block; color: var(--ink-4); margin-bottom: 0.3rem; }
@media (max-width: 560px) { .inline-meta { grid-template-columns: 1fr; } }

/* ---------------------------------
   13. SERVICES - catalogue
   --------------------------------- */
.catalogue { border-top: 1px solid var(--rule-strong); }
.catalogue__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3.5vh, 2.4rem) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: padding-left 0.4s var(--ease);
}
.catalogue__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--red);
  transition: width 0.4s var(--ease);
}
.catalogue__item:hover { padding-left: 1.2rem; }
.catalogue__item:hover::before { width: 3px; }
.cat-num {
  font-family: var(--f-mono);
  font-size: var(--fs-mono-l);
  color: var(--red-deep);
  letter-spacing: 0.1em;
  min-width: 2.2rem;
}
.cat-title {
  font-family: var(--f-display);
  font-weight: 360;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 110, "SOFT" 40;
}
.cat-desc {
  color: var(--ink-2);
  max-width: 42rem;
  margin-top: 0.4rem;
  font-size: var(--fs-body);
}
.cat-anno {
  margin-top: 0.5rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cat-tag {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  padding-left: 1rem;
}
.catalogue__note {
  margin-top: 2rem;
  font-size: var(--fs-mono-l);
  font-family: var(--f-mono);
  color: var(--ink-3);
  letter-spacing: 0.03em;
}
.catalogue__note a { color: var(--red-deep); border-bottom: 1px solid currentColor; }

/* ---------------------------------
   13b. SELECTED WORK - project gallery
   --------------------------------- */
.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  max-width: 72rem;
}
/* Single card reads as a deliberate featured entry; more cards flow into a grid. */

.work-card {
  background: var(--paper-soft);
  border: 1px solid var(--rule-strong);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* catalogue-style hover: lift + vermilion hairline */
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 4px 0 var(--paper), 4px 4px 0 1px var(--red);
}
/* numbered badge, catalogue-style */
.work-card__num {
  position: absolute;
  top: 0.9rem; left: 1rem;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-l);
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--ink);
  padding: 0.25rem 0.55rem;
  line-height: 1;
}

/* thumbnail */
.work-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  background: var(--paper-deep);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;   /* sits above the fallback; onerror hides it when missing */
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.04); }
/* fallback placeholder (visible until the real image exists). The <img>
   renders broken until the file lands; this layer sits beneath it so the
   card never looks empty. */
.work-card__media-fallback {
  position: absolute;
  inset: 0;
  background: var(--paper-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--ink-3);
  z-index: 1;
}
.work-card__media-fallback .reg-dash { color: var(--red); font-size: 1.4rem; }

/* ---------------------------------
   13c. LIVE PREVIEW - interactive embedded site viewer
   (click-to-load iframe inside a themed browser chrome)
   --------------------------------- */
/* On a live-preview card the number badge sits over the dark chrome, so
   switch it to the vermilion accent to stay readable + on-brand. */
.work-card--live .work-card__num { background: var(--red); color: var(--paper); }

.preview {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
}

/* Browser chrome / address bar */
.preview__chrome {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
}
.preview__dots { display: inline-flex; gap: 0.35rem; flex: none; }
.preview__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.preview__dot:nth-child(2) { background: var(--red-bright); }
.preview__dot:nth-child(3) { background: var(--ink-4); }
.preview__addr {
  flex: 1;
  min-width: 0;
  padding: 0.32rem 0.7rem;
  background: rgba(244, 239, 230, 0.08);
  border-radius: 2px;
  color: rgba(244, 239, 230, 0.82);
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview__ctrls { display: inline-flex; align-items: center; gap: 0.2rem; flex: none; }
.preview__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.5rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  color: rgba(244, 239, 230, 0.72);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  text-transform: uppercase;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.preview__btn:hover { color: var(--paper); border-color: var(--red); background: rgba(216, 56, 46, 0.2); }
.preview__btn[aria-pressed="true"] { color: var(--paper); border-color: var(--red); }

/* Icon buttons expand a text label on hover/focus */
.preview__btn-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.28s var(--ease), opacity 0.2s var(--ease), margin 0.28s var(--ease);
  margin-left: 0;
}
.preview__btn:hover .preview__btn-label,
.preview__btn:focus-visible .preview__btn-label,
.preview__btn:focus .preview__btn-label {
  max-width: 5rem;
  opacity: 1;
  margin-left: 0.3rem;
}

/* Viewport */
.preview__viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 300px;
  max-height: 70vh;
  width: 100%;
  background: var(--paper-deep);
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.preview__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
  display: block;
}
.preview.is-mobile .preview__viewport { background: var(--paper); }
.preview.is-mobile .preview__frame {
  width: 390px;
  max-width: 100%;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  box-shadow: 0 0 0 1px var(--rule);
}

/* Poster / click-to-load state (covers the iframe until activated) */
.preview__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: var(--paper-deep);
  cursor: pointer;
  display: block;
  z-index: 3;
}
.preview__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.preview__poster:hover img { transform: scale(1.03); filter: saturate(1); }
/* Poster placeholder variant (no screenshot available): a themed grain
   panel with the domain + registration mark sits behind the veil. */
.preview__poster--ph { background: var(--paper-deep); }
.preview__poster-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--ink-4);
}
.preview__poster-ph .preview__poster-reg { font-size: 1.4rem; color: var(--red); }
.preview__poster-veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(26, 23, 20, 0.45);
  color: var(--paper);
  transition: background 0.35s var(--ease);
}
.preview__poster:hover .preview__poster-veil { background: rgba(26, 23, 20, 0.55); }
.preview__poster-reg { font-size: 1.5rem; color: var(--red-bright); line-height: 1; }
.preview__poster-label {
  font-family: var(--f-display);
  font-weight: 360;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 100, "SOFT" 40;
}
.preview__poster-hint {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.7);
}
.preview.is-loaded .preview__poster { display: none; }

/* Loading state */
.preview__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: var(--paper-deep);
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.preview.is-loading .preview__loading { opacity: 1; }
.preview.is-loading .preview__poster { display: none; }
.preview__spin {
  width: 15px; height: 15px;
  border: 2px solid var(--ink-4);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: previewSpin 0.8s linear infinite;
}
@keyframes previewSpin { to { transform: rotate(360deg); } }

/* body */
.work-card__body {
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.work-card__title {
  font-family: var(--f-display);
  font-weight: 360;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 100, "SOFT" 40;
  color: var(--ink);
}
/* Title row + demo flag: keeps the title layout identical to other cards
   while making demo builds unmistakable. */
.work-card__title-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.work-card__badge {
  flex: none;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--red);
  border: 1px solid var(--red);
  padding: 0.22rem 0.5rem;
  line-height: 1;
  border-radius: 2px;
}
.work-card__desc {
  color: var(--ink-2);
  font-size: var(--fs-body);
  line-height: 1.55;
  max-width: 40rem;
}
.work-card__meta { margin-top: auto; }
.work-card__type {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.work-card__link {
  align-self: flex-start;
  margin-top: 0.6rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-l);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.work-card__link:hover { color: var(--red); gap: 0.85rem; }

/* responsive: stack to a single column under ~620px (auto-fit handles this) */
@media (max-width: 620px) {
  .work-card__num { top: 0.6rem; left: 0.7rem; }
}

/* ---------------------------------
   14. WHY ME - checklist
   --------------------------------- */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.checklist__item {
  background: var(--paper);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  align-content: start;
  position: relative;
  overflow: hidden;
}
/* Specimen corner registration cross (top-right of each cell) */
.checklist__item::before {
  content: "\271A";
  position: absolute;
  top: 0.7rem; right: 0.8rem;
  font-size: 0.6rem;
  color: var(--ink-4);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}
.checklist__item:hover::before { color: var(--red); transform: scale(1.4); }
.tick {
  grid-row: 1 / 3;
  font-family: var(--f-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--red);
  font-weight: 600;
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}
.checklist__item:hover .tick { transform: rotate(8deg) scale(1.15); }
.chk-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60, "SOFT" 30;
}
.chk-desc { color: var(--ink-2); font-size: 0.98rem; }
/* 4 items in 2 cols = clean 2x2 - no full-width span needed */

/* ---------------------------------
   15. PROCESS - steps
   --------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.step {
  background: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 2vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  transition: background 0.35s var(--ease);
}
.step:hover { background: var(--paper-soft); }
.step__num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1;
  color: var(--red-deep);
  letter-spacing: 0;
  font-variation-settings: "opsz" 100, "SOFT" 60;
}
.step__title {
  font-family: var(--f-display);
  font-weight: 380;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 80, "SOFT" 40;
}
.step__desc { color: var(--ink-2); font-size: 0.96rem; }
.step:not(:last-child)::after {
  content: "\2192";  /* arrow */
  position: absolute;
  top: clamp(1.6rem, 3vw, 2.6rem);
  right: clamp(0.6rem, 1.2vw, 1rem);
  font-family: var(--f-mono);
  color: var(--ink-4);
}

/* ---------------------------------
   16. CONTACT - specimen order card
   --------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.specimen-card {
  background: var(--paper-soft);
  border: 1px solid var(--rule-strong);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  position: relative;
  box-shadow:
    4px 4px 0 var(--paper),
    4px 4px 0 1px var(--rule-strong);
}
/* registration ticks at card corners */
.specimen-card::before, .specimen-card::after {
  content: "\271A";  /* registration cross */
  position: absolute;
  font-size: 0.7rem;
  color: var(--red);
  line-height: 1;
}
.specimen-card::before { top: -0.5rem; left: -0.5rem; }
.specimen-card::after  { bottom: -0.5rem; right: -0.5rem; }

.specimen-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
  margin-top: 1.6rem;
}
.sc-email {
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.sc-email:hover { color: var(--red-deep); border-color: var(--red); }

/* Form layout */
form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
label {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.req { color: var(--red); }
.opt { color: var(--ink-4); text-transform: none; letter-spacing: 0.02em; }

input, textarea, select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 0.6rem 0;
  font-family: var(--f-body);
  font-size: 1.05rem;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
}
textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-bottom-color: var(--red);
  border-bottom-width: 2px;
  padding-bottom: calc(0.6rem - 1px);
}

.field--select { position: relative; }

/* Custom accessible combobox. The native <select> is gone; a hidden input
   named "project_type" carries the submitted value (Netlify-safe). */
.combo-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0.6rem 0;
  font-family: var(--f-body);
  font-size: 1.05rem;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.3s var(--ease), padding-bottom 0.3s var(--ease);
}
.combo-trigger__val { flex: 1; min-width: 0; }
.combo-trigger:focus,
.combo-trigger[aria-expanded="true"] {
  outline: none;
  border-bottom-color: var(--red);
  border-bottom-width: 2px;
  padding-bottom: calc(0.6rem - 1px);
}

/* Option panel - mirrors specimen-card surface + offset shadow */
.combo-list {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 0.3rem);
  z-index: 50;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--paper-soft);
  border: 1px solid var(--rule-strong);
  box-shadow: 4px 4px 0 var(--paper), 4px 4px 0 1px var(--rule-strong);
  max-height: 16rem;
  overflow-y: auto;
}
.combo-list[hidden] { display: none; }
.combo-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}
/* Highlighted (keyboard) + hovered -> the site ::selection language: red bg, paper text */
.combo-opt:hover,
.combo-opt.is-active {
  background: var(--red);
  color: var(--paper);
}
/* Selected marker: a vermilion registration cross (CSS escape). Over the
   red highlight it turns paper-coloured so it stays legible. */
.combo-opt__mark {
  display: inline-block;
  width: 0.75rem;
  text-align: center;
  color: var(--red);
  font-size: 0.8rem;
}
.combo-opt__mark::before { content: ""; }
.combo-opt[aria-selected="true"] .combo-opt__mark::before { content: "\271A"; }
.combo-opt:hover .combo-opt__mark,
.combo-opt.is-active .combo-opt__mark { color: var(--paper); }

.select-caret {
  color: var(--red);
  pointer-events: none;
  transition: transform 0.3s var(--ease);
}
.combo-trigger[aria-expanded="true"] .select-caret { transform: rotate(180deg); }

.form-foot {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem;
  align-items: end;
  margin-top: 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.form-note { font-size: var(--fs-mono-l); color: var(--ink-3); font-family: var(--f-mono); letter-spacing: 0.02em; max-width: 30rem; }
.form-note strong { color: var(--ink); }
.form-note a { color: var(--red-deep); }

/* honeypot */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* success banner */
.form-success {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.5rem;
}
/* The [hidden] attribute must win over display:flex above, or the banner
   shows before the form is ever submitted. */
.form-success[hidden] { display: none !important; }
.form-success .reg-dash { color: var(--red); }
.form-success p { font-size: 0.9rem; opacity: 0.85; margin-top: 0.2rem; }

/* contact aside (marginalia) */
.contact__aside { display: flex; flex-direction: column; gap: 1.6rem; padding-top: 0.4rem; position: relative; }
.aside-block { border-top: 1px solid var(--rule); padding-top: 1rem; }
.aside-k {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.4rem;
}
.aside-block p { color: var(--ink-2); }
.aside-block a { color: var(--red-deep); border-bottom: 1px solid currentColor; }

/* ---------------------------------
   17. FOOTER
   --------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 8vh, 5.5rem);
  position: relative;
  border-top: 2px solid var(--red);
}
.footer-inner { display: grid; gap: 1.4rem; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-l);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-brand .brand__mark { color: var(--red-bright); }
.footer-tagline {
  font-family: var(--f-display);
  font-weight: 340;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 38rem;
  font-variation-settings: "opsz" 100, "SOFT" 40;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: center;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
}
.footer-email { color: var(--paper); border-bottom: 1px solid rgba(244,239,230,0.4); transition: color 0.3s, border-color 0.3s; }
.footer-email:hover { color: var(--red-bright); border-color: var(--red-bright); }
.footer-loc { color: rgba(244, 239, 230, 0.6); }
.footer-cta { color: var(--red-bright); margin-left: auto; }
.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  color: rgba(244, 239, 230, 0.5);
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}

/* ---------------------------------
   18. SCROLL REVEALS (IntersectionObserver toggles .is-in)
   --------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: transform, opacity;
}
[data-reveal].is-in { opacity: 1; transform: none; }
/* stagger within grouped lists */
.catalogue__item.is-in, .checklist__item.is-in, .step.is-in {
  transition-delay: calc(var(--i, 0) * 0.07s);
}

/* Hero entrance is tied to the load sequence, not scroll reveal:
   hidden while .loading (JS-only), animate up when the lock releases.
   No-JS / reduced-motion => no .loading class => instantly visible. */
.hero__eyebrow, .hero__foot, .hero__meta {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.hero__foot { transition-delay: 0.12s; }
.hero__meta { transition-delay: 0.24s; }
html.loading .hero__eyebrow,
html.loading .hero__folio,
html.loading .hero__annotation { opacity: 0; }
html.loading .hero__eyebrow { transform: translateY(18px); }
html.loading .hero__foot { opacity: 0; transform: translateY(26px); }
html.loading .hero__meta { opacity: 0; transform: translateY(26px); }

/* ---------------------------------
   19. RESPONSIVE
   --------------------------------- */

/* Large desktop: reveal rail */
@media (min-width: 1080px) {
  .gauge { display: block; }
}

/* Tablet & below */
@media (max-width: 900px) {
  .nav { display: none; }                /* inline nav hidden, toggle shown */
  .nav-toggle { display: inline-flex; }

  .manifesto__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .hero__foot { grid-template-columns: 1fr; align-items: start; }
  .hero__actions { justify-content: flex-start; }
}

/* Small phones */
@media (max-width: 620px) {
  .checklist { grid-template-columns: 1fr; }
  /* removed: no longer needed with 4 items */
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .step { border-bottom: 1px solid var(--rule); }
  form { grid-template-columns: 1fr; }
  .form-foot { grid-template-columns: 1fr; }
  .catalogue__item {
    grid-template-columns: auto 1fr;
    row-gap: 0.3rem;
  }
  .cat-tag { grid-column: 2; padding-left: 0; }
  .footer-cta { margin-left: 0; }
  .hero { min-height: auto; padding-top: 8rem; padding-bottom: 4rem; }
  .specimen-card { box-shadow: 3px 3px 0 var(--paper), 3px 3px 0 1px var(--rule-strong); }
}

/* Coarse pointer (touch): never custom cursor */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
  body, body * { cursor: auto !important; }
  a, button, .btn, label, select, [role="button"], input[type="submit"], [role="combobox"], [role="option"] { cursor: pointer !important; }
}

/* ---------------------------------
   20. REDUCED MOTION - disable everything, content snaps visible
   --------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.loading .char,
  html.loading .crop,
  html.loading .circle-mark path,
  html.loading .grid-lines { opacity: 1; transform: none; clip-path: none; }
  html.loading .char { opacity: 1; transform: none; }
  html.loading .circle-mark path { stroke-dashoffset: 0; }
  [data-reveal], [data-reveal-auto] { opacity: 1 !important; transform: none !important; }
  .cursor { display: none !important; }
  body.cursor-ready, body.cursor-ready * { cursor: auto !important; }
}
