@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('assets/space-grotesk-700.woff2') format('woff2')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('assets/space-grotesk-600.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/inter-400.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('assets/inter-600.woff2') format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url('assets/jbmono-400.woff2') format('woff2')}

/* 234&That — tokens, reset, and everything tier 0 needs to be complete.
   Brand spec: ../../../General/Marketing-Agency-Plan/BRAND.md §3–§6
   The one rule: yellow is a text colour only on ink. On paper it is a block,
   rule, border or icon fill — never a letterform. */

:root {
  --ink: #0A0A0A;
  --ink-raised: #141414;
  --ink-line: #262626;
  --yellow: #E8B230;
  --yellow-hot: #FE9323;
  --paper: #FAFAF7;
  --paper-line: #E4E2DA;
  --text-on-dark: #F5F4F0;
  --text-on-dark-muted: #9A9892;
  --text-on-light: #171717;
  --text-on-light-muted: #5C5A55;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Nothing on this page is allowed to widen the document. */
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--yellow); }
a:hover { color: var(--yellow-hot); }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* Responsive header. This was a JS `isMobile` branch in the source component;
   as a media query the header works with no JavaScript at all. */
.at-narrow { display: none; }
.at-wide { display: contents; }
@media (max-width: 759px) {
  .at-narrow { display: block; }
  .at-wide { display: none; }
}

/* Logo. The supplied artwork is light-background only — its counters are holes
   in the paths, so it cannot be recoloured for ink. It sits on a paper plate
   until the monogram is redrawn. BRAND.md §7. */
.mark-plate {
  display: inline-grid;
  place-items: center;
  background: var(--paper);
  border-radius: 3px;
  padding: 3px 6px;
}
.mark-plate .mark { width: 40px; height: 30px; display: block; }

/* The hero speedometer. Tier 0 prints a static rule and an honest sentence;
   motion.js sets --sweep-dur from measured latency and adds .run. */
.sweep { transform-origin: left; }
:root.tier-1 .sweep, :root.tier-2 .sweep { transform: scaleX(0); }
:root.tier-1 .sweep.run, :root.tier-2 .sweep.run {
  transform: scaleX(1);
  transition: transform var(--sweep-dur, 1200ms) cubic-bezier(.22, .9, .3, 1);
}

/* Comparator. Tier 0 is a static 50/50 reveal that reads as a before/after
   without any interaction; motion.js makes it draggable. */
[role="slider"] { touch-action: none; }
:root.tier-1 [role="slider"], :root.tier-2 [role="slider"] { cursor: ew-resize; }
[role="slider"] .knob { display: none; }
:root.tier-1 [role="slider"] .knob, :root.tier-2 [role="slider"] .knob { display: grid; }

/* Section reveals — opacity only, so a failed motion.js leaves content visible. */
:root.tier-1 [data-reveal], :root.tier-2 [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .9, .3, 1);
}
:root.tier-1 [data-reveal].seen, :root.tier-2 [data-reveal].seen {
  opacity: 1;
  transform: none;
}

/* Tier 2 grain sits over the hero and must never affect layout. */
#grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .sweep { transform: none !important; }
}

/* Work section, narrow screens. The placeholder labels are set nowrap so they
   read as one token in the tile, but on a 360px phone a nowrap run overflows
   its box and widens the document even though every element box fits — the
   defect is invisible to an element-level audit and only shows in scrollWidth.
   Two of these three strings disappear when real work replaces the
   placeholders; the rule stays because captions will still be arbitrary text. */
@media (max-width: 759px) {
  #work span, #work p { white-space: normal !important; overflow-wrap: anywhere; }
  /* auto-fit with minmax(min(280px,100%),1fr) still resolved to two tracks at
     360px, leaving a sliver column that wrapped a caption one character per
     line. One column below the breakpoint is deterministic — no track maths to
     get wrong on the viewport that matters most. */
  #work > div[style*="display:grid"] { grid-template-columns: 1fr !important; }
}
