/* ============================================================
   MACKIE ENTERPRISES LLC
   Design system and page styles.
   Light institutional theme: paper field, ink type, federal
   navy interaction, brass hairline details.

   Everything themeable lives in :root. Edit tokens there,
   not in the component rules below.
   ============================================================ */

/* Registered custom properties for the hero aperture.
   Registering them as <length> lets the aperture radius (--rv)
   animate with a plain CSS transition. */
@property --mx { syntax: '<length>'; inherits: false; initial-value: 50%; }
@property --my { syntax: '<length>'; inherits: false; initial-value: 50%; }
@property --rv { syntax: '<length>'; inherits: false; initial-value: 0px; }

:root {
  /* ---- Color ---- */
  --paper:      #F1F0EC;  /* warm light gray field */
  --paper-hi:   #FAF9F7;  /* brighter white, glass and cards */
  --ink:        #12161C;  /* near-black type */
  --navy:       #1E3050;  /* interactive and emphasis */
  --steel:      #4E5560;  /* secondary text, AA on paper */
  --brass:      #9A7B3F;  /* hairlines and rules only */
  --brass-ink:  #77602C;  /* brass darkened for small text, AA on paper */
  --line:        rgba(18, 22, 28, .13);
  --line-strong: rgba(18, 22, 28, .30);
  --glass-edge:  rgba(255, 255, 255, .75);

  /* ---- Type ---- */
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body:    "Archivo", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "Courier New", monospace;

  --fs-knock:     clamp(4.4rem, 15.2vw, 15.5rem);   /* MACKIE */
  --fs-mega:      clamp(3rem, min(13vw, 16vh), 14.5rem);  /* ENTERPRISES, height-aware so the full word always fits the hero */
  --fs-statement: clamp(1.65rem, 3.3vw, 3.05rem);   /* section statements */
  --fs-title:     clamp(1.3rem, 2.2vw, 2rem);
  --fs-body:      1rem;
  --fs-small:     .92rem;
  --fs-label:     .68rem;                            /* mono eyebrows */
  --fs-micro:     .62rem;

  /* ---- Space ---- */
  --sp-1: 8px;
  --sp-2: 14px;
  --sp-3: 24px;
  --sp-4: 38px;
  --sp-5: 60px;
  --sp-6: 96px;
  --sp-7: clamp(96px, 13vw, 176px);   /* section rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --measure: 60ch;

  /* ---- Motion ---- */
  --ease: cubic-bezier(.22, .61, .25, 1);
  --t-fast: .28s;
  --t-slow: .7s;

  /* ---- Hero aperture ---- */
  --ap-feather: 52px;   /* soft edge width of the reveal circle */
}

/* ============================================================
   RESET AND BASE
   ============================================================ */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

/* Visible, consistent keyboard focus */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: var(--paper-hi);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 18px;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus-visible { top: 12px; }

.mono { font-family: var(--font-mono); }

.container {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   FIXED BACKGROUND STACK (hero imagery)
   Two full-bleed layers pinned to the viewport. The knockout
   title paints the same images with background-attachment:
   fixed, so the letters register pixel for pixel with these.
   Layer B sits beneath Layer A and only ever shows through
   the letterforms via the cursor aperture.
   ============================================================ */

.fx-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.fx-bg--b { background-image: url("../img/hero-layer-b.webp"); }
.fx-bg--a {
  background-image: url("../img/hero-layer-a.webp");
  /* Cursor aperture on the background stack itself, everywhere
     in the hero. The page is one image world: where the glass
     covers the aperture the reveal reads frosted, on the
     exposed side it is sharp, and inside the letterforms the
     matching text-paint mask keeps it sharp. Coordinates are
     viewport-relative because this layer is viewport-fixed.
     Driven by hero-reveal.js; radius eases via --rv. */
  --mx: 50%;
  --my: 50%;
  --rv: 0px;
  -webkit-mask-image: radial-gradient(circle var(--rv) at var(--mx) var(--my),
    transparent 0,
    transparent calc(var(--rv) - var(--ap-feather)),
    #000 var(--rv));
  mask-image: radial-gradient(circle var(--rv) at var(--mx) var(--my),
    transparent 0,
    transparent calc(var(--rv) - var(--ap-feather)),
    #000 var(--rv));
  transition: --rv .55s var(--ease);
}

/* Painting cost control: once the hero has scrolled away the
   stack is hidden (class set by scroll.js). */
html.hero-off .fx-bg { visibility: hidden; }

/* Touch devices: iOS ignores background-attachment fixed, so
   hero-reveal.js switches the whole system to absolute layers
   inside the hero and registers the letter paint by hand. */
html.no-fixed .fx-bg { position: absolute; inset: 0; z-index: 0; }
/* Same iOS limitation for the breaker window: fall back to a
   scrolling background (the reveal is desktop-only anyway). */
html.no-fixed .breaker__layer { background-attachment: scroll; }

/* Phones load the 1200x800 hero variants. Same 3:2 aspect, so
   registration is preserved. hero-reveal.js mirrors this
   breakpoint when it computes cover geometry by hand. */
@media (max-width: 640px) {
  .fx-bg--b { background-image: url("../img/hero-layer-b-small.webp"); }
  .fx-bg--a { background-image: url("../img/hero-layer-a-small.webp"); }
  .breaker__color { background-image: url("../img/hero-layer-b-small.webp"); }
  .breaker__bw { background-image: url("../img/hero-layer-a-small.webp"); }
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-3);
  padding: 18px var(--gutter);
}
.nav::before {
  /* veil that fades in once the page scrolls */
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--paper-hi) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.nav.is-scrolled::before { opacity: 1; }
.nav > * { position: relative; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  justify-self: start;
}
.brand__mark { display: block; height: 26px; width: auto; }
.brand__name {
  font-family: var(--font-display);
  /* Sized so the Anton cap height (0.87em) matches the 26px logo
     mark beside it; width scales proportionally with the type. */
  font-size: 1.87rem;
  line-height: 1;
  letter-spacing: .05em;
  color: var(--ink);
}
.brand__suffix {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--steel);
  transform: translateY(1px);
}

.nav__links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav__links a {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--t-fast);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--navy);
  transition: width var(--t-fast) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 14px; justify-self: end; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--paper-hi) 62%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.status-pill i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--navy);
  animation: pulse 2.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(30, 48, 80, .38); }
  70%  { box-shadow: 0 0 0 8px rgba(30, 48, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 48, 80, 0); }
}

.menu-btn {
  display: none;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 9px 14px;
  cursor: pointer;
}

/* Full-screen mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--paper-hi);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 6px;
  padding: var(--gutter);
}
.menu[hidden] { display: none; }
.menu a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  line-height: 1.16;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.menu a:hover { color: var(--navy); }
.menu__meta {
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
}

/* Frosted glass, left half. Bright, milky, with a lit hairline
   on its right edge. Everything behind it blurs; the knockout
   letters above it stay sharp because they repaint the image. */
.hero__glass {
  position: absolute;
  inset: 0 auto 0 0;
  width: 52%;
  z-index: 1;
  background: linear-gradient(112deg,
    rgba(250, 249, 247, .60),
    rgba(250, 249, 247, .38) 62%,
    rgba(250, 249, 247, .22));
  -webkit-backdrop-filter: blur(22px) saturate(118%) brightness(1.07);
  backdrop-filter: blur(22px) saturate(118%) brightness(1.07);
}

/* Content grid sits above the glass and above the mega word,
   so the frosted ledger chip blurs the mega where they meet */
.hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.hero__inner a, .hero__inner .knock { pointer-events: auto; }

/* ---- The knockout title ----
   Two identical spans stacked in one grid cell. Both paint a
   full-bleed image into the glyphs with background-clip: text
   and background-attachment: fixed, which keeps them in perfect
   register with the .fx-bg layers behind the glass.

   .knock__b paints HERO_LAYER_B and sits underneath.
   .knock__a paints HERO_LAYER_A on top, carrying a radial mask
   that the cursor opens. Inside the aperture the top paint is
   removed and Layer B shows through, only ever inside letters.

   No stroke, no shadow, no glow. The glyph edge is defined by
   blurred glass against sharp image. Keep it that way. */
.knock {
  display: grid;
  margin-top: clamp(84px, 12vh, 132px);
  cursor: crosshair;
}
.knock > span {
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-knock);
  line-height: .82;
  letter-spacing: .012em;
  text-transform: uppercase;
  white-space: nowrap;
  background-image: url("../img/hero-layer-a.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.knock > .knock__b { background-image: url("../img/hero-layer-b.webp"); }
.knock > .knock__a {
  --mx: 50%;
  --my: 50%;
  --rv: 0px;
  /* transparent center punches a hole in the Layer A paint */
  -webkit-mask-image: radial-gradient(circle var(--rv) at var(--mx) var(--my),
    transparent 0,
    transparent calc(var(--rv) - var(--ap-feather)),
    #000 var(--rv));
  mask-image: radial-gradient(circle var(--rv) at var(--mx) var(--my),
    transparent 0,
    transparent calc(var(--rv) - var(--ap-feather)),
    #000 var(--rv));
  transition: --rv .55s var(--ease);
}
html.no-fixed .knock > span { background-attachment: scroll; }

/* Phones paint the letters from the small hero variants, in
   register with the .fx-bg media swap above */
@media (max-width: 640px) {
  .knock > span { background-image: url("../img/hero-layer-a-small.webp"); }
  .knock > .knock__b { background-image: url("../img/hero-layer-b-small.webp"); }
}

.knock__tag {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---- Hero foot: pitch left on glass, ledger chip right ---- */
.hero__foot {
  align-self: end;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-4);
  flex-wrap: wrap;
  /* reserve the mega word's zone: scales with the word itself */
  padding-bottom: calc(var(--fs-mega) * 1.15 + 44px);
}

.pitch { max-width: 42ch; }
.pitch h2 {
  font-weight: 600;
  font-size: clamp(1.05rem, 1.45vw, 1.38rem);
  line-height: 1.4;
  letter-spacing: -.005em;
}
.pitch p {
  color: var(--steel);
  font-size: var(--fs-small);
  margin-top: 12px;
  max-width: 40ch;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
}

.cta-row { display: flex; gap: 12px; margin-top: var(--sp-3); flex-wrap: wrap; }

.btn {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  color: var(--paper-hi);
  background: var(--navy);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--paper-hi); }

/* ---- ENTERPRISES, seated just above the hero bottom edge,
   shown in full and set off the RIGHT edge by the same gutter
   that MACKIE sits off the left edge ---- */
.hero__mega {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(10px, 2.2vh, 24px);
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-mega);
  line-height: 1;
  letter-spacing: .008em;
  text-transform: uppercase;
  color: #FFFFFF;
  white-space: nowrap;
}

/* Uniform film grain across the whole hero, above every layer.
   It never singles out the letters, so the cutout stays pure. */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: .13;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.32'/></svg>");
}

/* Hint for the reveal, fades once touched */
.hero__hint {
  position: absolute;
  right: var(--gutter);
  top: clamp(96px, 14vh, 150px);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper-hi);
  text-shadow: 0 1px 8px rgba(18, 22, 28, .45);
  opacity: .9;
  transition: opacity .6s var(--ease);
}
.hero.is-touched .hero__hint { opacity: 0; }

/* ---- Hero entrance ----
   The knock fades in with opacity only. Never put transform or
   filter on the knock or its ancestors: either one breaks
   background-attachment fixed and the cutout loses register. */
.enter-fade { opacity: 0; animation: enterFade .8s var(--ease) forwards; }
.enter-rise { opacity: 0; transform: translateY(18px); animation: enterRise .75s var(--ease) forwards; }
.ed-1 { animation-delay: .05s; }
.ed-2 { animation-delay: .16s; }
.ed-3 { animation-delay: .26s; }
.ed-4 { animation-delay: .36s; }
.ed-5 { animation-delay: .46s; }
@keyframes enterFade { to { opacity: 1; } }
@keyframes enterRise { to { opacity: 1; transform: none; } }

/* ============================================================
   PAGE BODY (everything after the hero sits on opaque paper
   so the fixed image stack never bleeds through)
   ============================================================ */

.after-hero { position: relative; z-index: 5; background: var(--paper); }

.section { padding-block: var(--sp-7); }

.sec-head { margin-bottom: var(--sp-5); }

.statement {
  font-size: var(--fs-statement);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
  max-width: 24ch;
}
.statement .quiet { color: var(--steel); }

.lede {
  max-width: var(--measure);
  color: var(--steel);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.75;
}
.lede strong { color: var(--ink); font-weight: 600; }

/* ---- Scroll reveals (elements animate once) ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--rd, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   MANDATE
   ============================================================ */

.mandate .statement { margin-bottom: var(--sp-4); }
.mandate__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--sp-5) var(--sp-6);
  align-items: start;
}
.mandate__aside {
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 2.1;
  color: var(--steel);
  border-top: 1px solid var(--line-strong);
  padding-top: var(--sp-3);
}
.mandate__aside div {
  display: grid;
  grid-template-columns: minmax(104px, 132px) 1fr;
  gap: 16px;
}
.mandate__aside .k { color: var(--brass-ink); }

/* ============================================================
   CAPABILITIES
   ============================================================ */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.cap-card {
  position: relative;
  background: var(--paper);
  padding: clamp(26px, 2.6vw, 40px);
  min-height: 232px;
  display: flex;
  flex-direction: column;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
/* brass hairline that draws across the top on hover */
.cap-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px; width: 0;
  background: var(--brass);
  transition: width .34s var(--ease);
}
.cap-card:hover { background: var(--paper-hi); transform: translateY(-2px); }
.cap-card:hover::before { width: 100%; }

.cap-card__code {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin-bottom: auto;
}
.cap-card h3 {
  font-size: clamp(1.12rem, 1.35vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -.005em;
  margin: var(--sp-4) 0 10px;
}
.cap-card p {
  color: var(--steel);
  font-size: var(--fs-small);
  line-height: 1.6;
  max-width: 34ch;
}

/* ============================================================
   MODEL (three-step flow)
   ============================================================ */

.model__track {
  position: relative;
  list-style: none;   /* the gray .step__num numerals are the markers */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  border-top: 1px solid var(--line-strong);
  padding-top: var(--sp-4);
}
/* brass progress rule that draws in when the section reveals */
.model__track::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px;
  width: 0;
  background: var(--brass);
  transition: width 1.1s var(--ease) .15s;
}
.model__track.is-in::before { width: 100%; }

.step__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  line-height: 1;
  color: rgba(18, 22, 28, .1);
}
.step h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 600;
  margin: var(--sp-2) 0 10px;
}
.step h3 .mono-k {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-micro);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin-bottom: 8px;
}
.step p { color: var(--steel); font-size: var(--fs-small); max-width: 36ch; }

/* ============================================================
   BREAKER (quiet full-bleed image band)
   ============================================================ */

.breaker {
  position: relative;
  height: clamp(260px, 42vh, 480px);
  overflow: hidden;
}
/* Two registered layers cut to the band, the same reveal language
   as the hero and the leadership portrait: warm monochrome on top,
   its color twin beneath. Both paint the hero images with
   background-attachment: fixed, so the skyline is pinned to the
   viewport and the band is an open window that scrolls over it,
   rather than an image that scrolls with the page. The cursor
   opens a soft aperture in the monochrome layer (hero-reveal.js).
   Images are pre-graded in the webp, so no extra filter is used. */
.breaker__stack { position: absolute; inset: 0; cursor: crosshair; }
.breaker__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.breaker__color { background-image: url("../img/hero-layer-b.webp"); }
.breaker__bw {
  background-image: url("../img/hero-layer-a.webp");
  --mx: 50%;
  --my: 50%;
  --rv: 0px;
  -webkit-mask-image: radial-gradient(circle var(--rv) at var(--mx) var(--my),
    transparent 0,
    transparent calc(var(--rv) - var(--ap-feather)),
    #000 var(--rv));
  mask-image: radial-gradient(circle var(--rv) at var(--mx) var(--my),
    transparent 0,
    transparent calc(var(--rv) - var(--ap-feather)),
    #000 var(--rv));
  transition: --rv .55s var(--ease);
}
.breaker::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--paper) 0%,
    color-mix(in srgb, var(--paper) 18%, transparent) 22%,
    color-mix(in srgb, var(--paper) 18%, transparent) 78%,
    var(--paper) 100%);
}
.breaker figcaption {
  position: absolute;
  left: var(--gutter);
  bottom: 22px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================================================
   CERTIFICATIONS: credential ledger
   ============================================================ */

.certs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: var(--sp-5) var(--sp-6);
  align-items: start;
}
.certs__prose h3 {
  font-size: 1.06rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.certs__prose p {
  color: var(--steel);
  font-size: var(--fs-small);
  max-width: 44ch;
  margin-bottom: var(--sp-4);
}

.ledger {
  font-family: var(--font-mono);
  font-size: .78rem;
  border-top: 1px solid var(--line-strong);
}
.ledger__row {
  display: grid;
  grid-template-columns: minmax(96px, 190px) 1fr auto;
  gap: var(--sp-3);
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.ledger__row dt {
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
  font-size: var(--fs-micro);
}
.ledger__row dd { color: var(--ink); letter-spacing: .04em; }
.ledger__row .note {
  font-size: var(--fs-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-ink);
}

/* Pending value: a clean redaction bar instead of fake data.
   Drawn with a border, not a background, so it also prints. */
.pending {
  display: inline-block;
  width: 92px;
  height: 0;
  border-bottom: 2px solid var(--line-strong);
  vertical-align: middle;
}

/* ============================================================
   LEADERSHIP
   ============================================================ */

.lead__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: var(--sp-5) var(--sp-6);
  align-items: center;
}
.portrait {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 10px;
  max-width: 620px;
}
/* brass corner ticks, the only ornament allowed here */
.portrait::before, .portrait::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--brass);
}
.portrait::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.portrait::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
/* Founder portrait: a single photograph rendered black and white
   in CSS so it lives in the paper and ink system. object-fit
   cover with a fixed ratio keeps the framing steady across widths;
   object-position holds the founder (right of frame) and the faces
   in view if the box ratio shifts. */
.portrait__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 64% 34%;
  filter: grayscale(1) contrast(1.08);
}
.portrait figcaption {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper-hi);
  background: linear-gradient(0deg, rgba(18, 22, 28, .55), transparent);
}
.lead__copy .service-line {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  border-top: 1px solid var(--line-strong);
  padding-top: var(--sp-3);
  margin-top: var(--sp-4);
  line-height: 2.1;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact { background: var(--paper-hi); border-block: 1px solid var(--line); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--sp-5) var(--sp-6);
  align-items: start;
}
.contact__copy p { color: var(--steel); max-width: 44ch; margin-bottom: var(--sp-4); }
.contact__meta {
  font-family: var(--font-mono);
  font-size: .74rem;
  line-height: 2.2;
  color: var(--steel);
  margin-top: var(--sp-4);
}
.contact__meta div {
  display: grid;
  grid-template-columns: minmax(88px, 110px) 1fr;
  gap: 16px;
  align-items: baseline;
}
.contact__meta .k { color: var(--brass-ink); letter-spacing: .14em; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer { padding: var(--sp-5) 0; background: var(--paper); }
.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-4);
  flex-wrap: wrap;
  border-top: 1px solid var(--line-strong);
  padding-top: var(--sp-4);
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { height: 22px; width: auto; }
.footer__brand b {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .05em;
}
.footer p {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
}
.footer__links { display: flex; gap: 22px; }
.footer__links a {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel);
}
.footer__links a:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1060px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .certs__grid, .lead__grid, .contact__grid, .mandate__grid { grid-template-columns: 1fr; }
  .lead__grid { align-items: start; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  /* min 44px tap target for the hamburger */
  .menu-btn { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Short desktop viewports: trim the hero stack so the cropped
   mega word never intrudes on the pitch or its buttons */
@media (min-width: 821px) and (max-height: 720px) {
  .knock { margin-top: clamp(68px, 10vh, 96px); }
  .pitch h2 + p { display: none; }
}

@media (max-width: 820px) {
  /* Hero flips to stacked: glass covers the top, image exposed
     below. All copy lives on the glass; the exposed image below
     carries only the cropped mega word. The reveal runs on
     auto-drift (hero-reveal.js). */
  :root { --fs-knock: clamp(3.9rem, 22vw, 9rem); }

  /* background-attachment: fixed is unreliable on most Android
     mobile browsers (and blocks screenshot compositing). Drop to
     scroll so the knockout paints a clean self-contained cutout.
     The JS touch path (html.no-fixed + registerPaint) still
     refines registration on real devices. */
  .knock > span,
  .fx-bg,
  .breaker__layer { background-attachment: scroll; }

  .hero__glass {
    inset: 0 0 auto 0;
    width: 100%;
    height: 64%;
  }
  /* soft paper ground under the cropped mega word so the ink
     glyphs read against the darker photograph */
  .hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 30%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(0deg,
      color-mix(in srgb, var(--paper) 62%, transparent),
      transparent 72%);
  }
  .knock { margin-top: clamp(76px, 11vh, 104px); }
  .knock__tag { font-size: .58rem; letter-spacing: .22em; margin-top: 14px; }
  .hero__inner { grid-template-rows: auto auto 1fr; }  /* copy follows the title */
  .hero__foot {
    align-self: start;          /* keeps all copy on the glass */
    margin-top: clamp(18px, 3.5vh, 40px);
    padding-bottom: 0;
    gap: var(--sp-3);
  }
  .hero__hint { display: none; }    /* no cursor on touch */
  .pitch h2 { font-size: .98rem; }
  .pitch p { font-size: .86rem; margin-top: 8px; }
  .cta-row { margin-top: var(--sp-2); }
  /* min 44px tap targets on touch */
  .btn {
    padding: 12px 18px;
    font-size: .6rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
  .model__track { grid-template-columns: 1fr; gap: var(--sp-4); }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { min-height: 0; }
  .cap-card h3 { margin-top: var(--sp-3); }
}

/* Tablet band of the stacked hero: the title renders large at
   these widths, so the glass takes more height to keep all the
   copy and both buttons on the panel */
@media (min-width: 561px) and (max-width: 820px) {
  .hero__glass { height: 68%; }
  .knock { margin-top: clamp(70px, 9vh, 96px); }
}

@media (max-width: 560px) {
  /* Trim the nav to brand + menu so it never overflows a phone
     width. The suffix and status pill return on wider screens. */
  .brand__suffix { display: none; }
  .status-pill { display: none; }

  /* short stack: the second pitch paragraph is redundant with
     the MANDATE section and costs too much glass height here */
  .pitch h2 + p { display: none; }

  /* ledger rows restack: key and status up top, value beneath
     at full width so nothing hyphen-wraps */
  .ledger__row {
    grid-template-areas: "k n" "v v";
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
  }
  .ledger__row dt { grid-area: k; }
  .ledger__row dd:not(.note) { grid-area: v; }
  .ledger__row .note { grid-area: n; }
}

/* ============================================================
   REDUCED MOTION
   Entrance, reveals, drift, and pulse all stand down. The
   aperture becomes a static crossfade on hover.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .enter-fade, .enter-rise { animation: none; opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .status-pill i { animation: none; }
  .model__track::before { transition: none; }
  .model__track.is-in::before { width: 100%; }
  .cap-card, .cap-card::before, .nav__links a::after { transition: none; }
  .knock__a { transition: none; }
  .knock:hover .knock__a { opacity: 0; }  /* static crossfade */
  .breaker__bw { transition: none; }
  .breaker__stack:hover .breaker__bw { opacity: 0; }  /* static crossfade */
}

/* ============================================================
   CAPABILITY STATEMENT (capability-statement.html)
   Screen shows a letter-shaped sheet; print is the real target.
   ============================================================ */

.cs-page { background: #E7E5DF; min-height: 100vh; padding: 110px var(--gutter) var(--sp-6); }
.cs-sheet {
  background: var(--paper-hi);
  max-width: 8.5in;
  margin-inline: auto;
  padding: .62in .68in;
  box-shadow: 0 24px 60px rgba(18, 22, 28, .14);
}

.cs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 18px;
}
.cs-head__id { display: flex; align-items: center; gap: 14px; }
.cs-head__id svg { height: 30px; width: auto; color: var(--ink); }
.cs-head__id h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: .04em;
  line-height: 1;
}
.cs-head__id .sub {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 6px;
}
.cs-head__meta {
  font-family: var(--font-mono);
  font-size: .6rem;
  line-height: 1.9;
  text-align: right;
  color: var(--steel);
}
.cs-head__meta b { color: var(--ink); font-weight: 400; }

.cs-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cs-label::after { content: ""; flex: 1; height: 0; border-top: 1px solid var(--line); }

.cs-sheet .intro { font-size: .82rem; line-height: 1.55; color: var(--ink); max-width: 66ch; }

.cs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.cs-item { padding: 7px 0; border-bottom: 1px solid var(--line); }
.cs-item b { display: block; font-size: .74rem; font-weight: 600; }
.cs-item span { font-size: .68rem; color: var(--steel); line-height: 1.4; display: block; margin-top: 2px; }
.cs-item .code {
  font-family: var(--font-mono);
  font-size: .54rem;
  letter-spacing: .16em;
  color: var(--brass-ink);
  text-transform: uppercase;
}

.cs-diff { list-style: none; }
.cs-diff li {
  font-size: .72rem;
  line-height: 1.5;
  color: var(--ink);
  padding: 6px 0 6px 18px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.cs-diff li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 8px; height: 0;
  border-top: 1px solid var(--brass);
}

.cs-ledger { font-family: var(--font-mono); font-size: .62rem; }
.cs-ledger .row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.cs-ledger .row .k { letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.cs-ledger .row .v { color: var(--ink); }

.cs-foot {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
}

.cs-actions {
  max-width: 8.5in;
  margin: 0 auto 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cs-actions a, .cs-actions button {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  padding: 8px 0;
}
.cs-actions a:hover, .cs-actions button:hover { color: var(--ink); }

@media print {
  @page { size: letter; margin: 0; }
  body.cs-page { background: #fff; padding: 0; }
  .cs-actions, .skip-link { display: none !important; }
  .cs-sheet {
    box-shadow: none;
    max-width: none;
    width: 100%;
    min-height: 0;
    padding: .42in .55in;
  }
  /* compress vertical rhythm so the sheet holds one page */
  .cs-label { margin: 13px 0 7px; }
  .cs-sheet .intro { font-size: .78rem; line-height: 1.45; }
  .cs-item { padding: 5px 0; }
  .cs-item span { font-size: .65rem; }
  .cs-diff li { padding: 4px 0 4px 16px; }
  .cs-diff li::before { top: 10px; }
  .cs-ledger .row { padding: 4px 0; }
  .cs-foot { margin-top: 14px; padding-top: 9px; }
  .cs-head { padding-bottom: 12px; }
  .cs-sheet, .cs-head, .cs-cols, .cs-ledger, .cs-diff li { break-inside: avoid; page-break-inside: avoid; }
  a { text-decoration: none; color: inherit; }
}

/* ============================================================
   404
   ============================================================ */

.err-page {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: var(--sp-3);
  padding: var(--gutter);
}
.err-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: .9;
  color: var(--ink);
}
.err-page p { color: var(--steel); font-size: var(--fs-small); }
.err-page .mono-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.err-page a { margin-inline: auto; }
