/* ============================================================
   SELLERTUNE — freight-manifest industrial
   paper #F3EFE6 · ink #16171D · ultramarine #2B2BE0 · acid #ffba08
   type: Archivo (variable width/weight) + Fragment Mono
   ============================================================ */

:root {
  --paper: #f3efe6;
  --paper-deep: #eae5d6;
  --ink: #16171d;
  --ink-2: #4a4c58;
  --blue: #2b2be0;
  --blue-deep: #1e1eb0;
  --acid: #ffba08;
  --rule: rgba(22, 23, 29, 0.16);
  --rule-paper: rgba(243, 239, 230, 0.22);

  --font-d: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-m: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --bar-h: 4.25rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: auto; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-d);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 430;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
em { font-style: normal; color: var(--blue); }
sup { font-size: 0.34em; font-weight: 600; letter-spacing: 0; }

.mono {
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-transform: uppercase;
}

/* ---------- fixed furniture ---------- */

.gridlines {
  position: fixed; inset: 0;
  z-index: 2; pointer-events: none;
  display: flex;
}
.gridlines i { flex: 1; border-right: 1px solid rgba(22, 23, 29, 0.07); }
.gridlines i:last-child { border-right: 0; }

.grain {
  position: fixed; inset: -50%;
  z-index: 60; pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- loader ---------- */

.loader {
  position: fixed; inset: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
}
.loader__line { opacity: 0; }
.loader__count {
  align-self: flex-end;
  font-family: var(--font-m);
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  color: var(--acid);
  line-height: 1;
}
.loader__bar {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 5px; background: rgba(243, 239, 230, 0.12);
}
.loader__bar span {
  display: block; height: 100%; width: 100%;
  background: var(--acid);
  transform: scaleX(0); transform-origin: left center;
}

/* ---------- cursor ---------- */

.cursor {
  position: fixed; top: 0; left: 0;
  z-index: 2000; pointer-events: none;
  width: 14px; height: 14px;
  border: 2px solid #e9e5da; /* reads correctly through exclusion on both grounds */
  background: transparent;
  transition: width 0.22s var(--ease-out), height 0.22s var(--ease-out),
              background-color 0.22s;
  mix-blend-mode: exclusion;
}
.cursor.is-active {
  width: 58px; height: 58px;
  background: rgba(255, 186, 8, 0.14);
}
.cursor__label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 0.55rem; letter-spacing: 0.1em;
  color: #e9e5da;
  opacity: 0; transition: opacity 0.2s;
}
.cursor.is-active .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- top bar ---------- */

.bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 2rem;
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.bar__mark {
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.bar__nav { display: flex; gap: 1.75rem; margin-left: auto; }
.bar__nav a { position: relative; padding: 0.35em 0; }
.bar__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.3s var(--ease-out);
}
.bar__nav a:hover::after { transform: scaleX(1); }
.bar__cta {
  border: 2px solid var(--ink);
  padding: 0.55em 1em;
  background: var(--acid);
  transition: background-color 0.25s, color 0.25s;
}
.bar__cta:hover { background: var(--ink); color: var(--acid); }

/* ---------- shared bits ---------- */

.sec {
  display: inline-flex; align-items: center; gap: 0.6em;
  color: var(--ink);
}
.sec::before {
  content: ""; width: 9px; height: 9px;
  background: var(--blue); display: inline-block;
}
.sec--paper { color: var(--paper); }
.sec--paper::before { background: var(--acid); }

.acid-chip { background: var(--acid); color: var(--ink); padding: 0.1em 0.45em; }
.acid-mark { color: var(--blue); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; gap: 0.8em;
  font-family: var(--font-m);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 2px solid var(--ink);
  padding: 1.05em 1.55em;
  background: transparent; color: var(--ink);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background-color 0.25s, color 0.25s;
}
.btn span { transition: transform 0.25s var(--ease-out); }
.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--acid), 4px 4px 0 1px var(--ink);
}
.btn:hover span { transform: translate(2px, -2px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--acid { background: var(--acid); color: var(--ink); border-color: var(--ink); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--bar-h) + clamp(1.5rem, 4vh, 3rem)) 0 0;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
/* paper scrims: keep the headline zone and the ledger edge on clean ground */
.hero::before {
  content: ""; position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 24%, rgba(243, 239, 230, 0) 56%),
    linear-gradient(0deg, var(--paper) 0%, rgba(243, 239, 230, 0) 30%);
}
.hero__head { position: relative; z-index: 2; padding: 0 var(--gutter); }
.hero__meta { margin-bottom: clamp(1rem, 2.5vh, 2rem); }
.hero__title {
  visibility: hidden; /* revealed by the intro timeline (or reduced-motion override) */
  position: relative; /* anchors the correction stamp */
  font-size: clamp(3.1rem, 11.6vw, 11.5rem);
  font-weight: 900;
  font-stretch: 121%;
  line-height: 0.88;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero__row { display: block; overflow: hidden; }

/* --- the correction mark: strike through "HIGH." + stamped annotation --- */
.fix { position: relative; display: inline-block; }
.fix__strike {
  position: absolute; inset: -4% -3%;
  width: 106%; height: 108%;
  pointer-events: none;
  overflow: visible;
}
.fix__strike path {
  fill: none;
  stroke: var(--acid);
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 0 rgba(22, 23, 29, 0.35));
}
.fix__stamp {
  position: absolute; /* placed via JS against the struck word */
  z-index: 3;
  background: var(--acid);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 0.5em 0.8em;
  font-size: clamp(0.6rem, 0.9vw, 0.78rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
  transform: rotate(-7deg);
  box-shadow: 3px 3px 0 rgba(22, 23, 29, 0.9);
}

/* --- live annotation pinned to a tuned carton in the field --- */
.hero__leader {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
}
.hero__leader line { stroke: var(--ink); stroke-width: 2; }
.hero__leader rect { fill: var(--ink); }
.hero__tag {
  position: absolute; z-index: 2;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 0.45em 0.7em;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 920px) {
  .hero__tag, .hero__leader { display: none; }
}

.hero__foot {
  position: relative; z-index: 2;
  margin-top: auto;
  padding: clamp(2rem, 5vh, 4rem) var(--gutter) clamp(2rem, 5vh, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2.5rem;
  justify-content: space-between;
}
.hero__pitch { max-width: 34ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); text-wrap: balance; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero .btn:not(.btn--ink) { background: var(--paper); }

.hero__ledger {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.hero__cell {
  padding: 1.1rem var(--gutter) 1.2rem;
  border-right: 1px solid var(--rule);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero__cell i { font-style: normal; color: var(--ink-2); }
.hero__cell--last { border-right: 0; text-align: right; color: var(--ink-2); }

/* ============================================================
   TICKER
   ============================================================ */

.ticker {
  background: var(--ink);
  color: var(--acid);
  overflow: hidden;
  border-block: 2px solid var(--ink);
  padding: 0.85rem 0;
}
.ticker__track { display: flex; white-space: nowrap; width: max-content; }
.ticker__chunk {
  font-weight: 800; font-stretch: 112%;
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
  letter-spacing: 0.04em;
}

/* ============================================================
   THE CREW
   ============================================================ */

.crew {
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
  display: flex; flex-direction: column; gap: clamp(2rem, 5vh, 3.5rem);
}
.crew__title {
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  font-weight: 900; font-stretch: 118%;
  line-height: 0.95; text-transform: uppercase;
  overflow: hidden;
}
.crew__body {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.crew__copy { max-width: 58ch; display: flex; flex-direction: column; gap: 1.25rem; }
.crew__copy p { font-size: clamp(1.05rem, 1.35vw, 1.25rem); }
.crew__ledger { list-style: none; border-top: 1px solid var(--rule); }
.crew__ledger li {
  display: flex; justify-content: space-between; gap: 2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.crew__ledger li span:first-child { color: var(--ink-2); }
.crew__ledger li span:last-child { color: var(--blue); text-align: right; }

/* ============================================================
   CASE FILES
   ============================================================ */

.files { background: var(--paper-deep); padding: clamp(5rem, 12vh, 9rem) 0 clamp(4rem, 9vh, 6rem); }
.files__head {
  padding: 0 var(--gutter) clamp(2.5rem, 6vh, 4.5rem);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.files__title {
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  font-weight: 900; font-stretch: 118%;
  line-height: 0.95; text-transform: uppercase;
  overflow: hidden;
}

.file { border-top: 1px solid var(--rule); }
.file:last-child { border-bottom: 1px solid var(--rule); }
.file > a {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 5vh, 3.5rem) var(--gutter);
  align-items: center;
  transition: background-color 0.3s var(--ease-out);
}
.file > a:hover { background: var(--paper); }

.file__media { display: flex; gap: 1rem; min-width: 0; }
.file__shot { flex: 1; min-width: 0; }
.file__shot img {
  width: 100%; height: clamp(180px, 26vw, 340px);
  object-fit: cover; object-position: left top;
  display: block;
  border: 1px solid var(--rule);
  filter: saturate(0.92);
  transition: filter 0.3s;
}
.file > a:hover .file__shot img { filter: saturate(1); }
.file__shot figcaption { margin-top: 0.5rem; color: var(--ink-2); }
.file__shot--wide img { object-position: center top; }

.file__meta { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.file__idx { color: var(--blue); }
.file__name {
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  font-weight: 800; font-stretch: 112%;
  line-height: 1; text-transform: uppercase;
}
.file__desc { max-width: 40ch; color: var(--ink-2); }
.file__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.file__open {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.25em;
  transition: transform 0.3s var(--ease-out);
}
.file > a:hover .file__open { transform: translateX(0.4em); }

/* ============================================================
   PROOF — pinned horizontal
   ============================================================ */

.proof { position: relative; }
.proof__pin { overflow: hidden; }
.proof__track { display: flex; width: max-content; }

.panel {
  width: 100vw; min-height: 100svh;
  flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(1.25rem, 3vh, 2.25rem);
  padding: calc(var(--bar-h) + 2rem) var(--gutter) 3.5rem;
}
.panel--paper { background: var(--paper); color: var(--ink); }
.panel--blue  { background: var(--blue);  color: var(--paper); }
.panel--ink   { background: var(--ink);   color: var(--paper); }

.panel__sec { opacity: 0.75; }
.panel--paper .panel__sec { color: var(--blue); opacity: 1; }

.panel__giant {
  font-size: clamp(3rem, 9.5vw, 9rem);
  font-weight: 900; font-stretch: 121%;
  line-height: 0.9; text-transform: uppercase;
  letter-spacing: -0.01em;
}
.panel--paper .panel__giant em { color: var(--blue); }
.panel--cta .panel__giant em { color: var(--blue); }

.panel__note { max-width: 44ch; font-size: 1.1rem; }
.panel__hint { color: var(--blue); }

.panel__figure {
  display: flex; align-items: baseline; gap: clamp(0.75rem, 2vw, 2rem);
  flex-wrap: wrap;
}
.panel__num {
  font-size: clamp(4.25rem, 13.5vw, 12.5rem);
  font-weight: 900; font-stretch: 125%;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.panel__num--acid { color: var(--acid); }
.panel__arrow { font-size: clamp(2.25rem, 6vw, 5.5rem); font-weight: 200; opacity: 0.8; }
.panel__pct { font-size: clamp(2.25rem, 6vw, 5.5rem); font-weight: 800; color: var(--acid); }
.panel__unit { opacity: 0.8; }

.ledger {
  list-style: none;
  max-width: 620px; width: 100%;
  border-top: 1px solid var(--rule-paper);
}
.ledger li {
  display: flex; justify-content: space-between; gap: 2rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule-paper);
}
.ledger b { color: var(--acid); font-weight: 400; }

/* ============================================================
   SERVICES — manifest
   ============================================================ */

.services { padding: clamp(5rem, 12vh, 9rem) 0 0; }
.services__head {
  padding: 0 var(--gutter) clamp(2.5rem, 6vh, 4.5rem);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.services__title {
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  font-weight: 900; font-stretch: 118%;
  line-height: 0.95; text-transform: uppercase;
  overflow: hidden; /* clips SplitText line reveals */
}

.manifest { list-style: none; border-top: 1px solid var(--rule); }
.manifest__row { border-bottom: 1px solid var(--rule); }
.manifest__row a {
  display: grid;
  grid-template-columns: 3.5rem 1fr minmax(0, 34ch) auto;
  align-items: center; gap: 2rem;
  padding: 1.4rem var(--gutter);
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.manifest__idx { color: var(--blue); }
.manifest__name {
  font-size: clamp(1.5rem, 3.2vw, 2.9rem);
  font-weight: 800; font-stretch: 112%;
  line-height: 1; text-transform: uppercase;
  transition: transform 0.3s var(--ease-out);
}
.manifest__desc { color: var(--ink-2); transition: color 0.3s; }
.manifest__sku { color: var(--ink-2); transition: color 0.3s; white-space: nowrap; }

.manifest__row a:hover { background: var(--blue); color: var(--paper); }
.manifest__row a:hover .manifest__idx { color: var(--acid); }
.manifest__row a:hover .manifest__name { transform: translateX(0.35em); }
.manifest__row a:hover .manifest__desc,
.manifest__row a:hover .manifest__sku { color: var(--paper); }

/* ============================================================
   METHOD — pinned protocol
   ============================================================ */

.method { background: var(--ink); color: var(--paper); }
.method__pin {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-content: center;
  padding: calc(var(--bar-h) + 2rem) var(--gutter) 3rem;
}
.method__left { display: flex; flex-direction: column; align-self: stretch; }

.dial {
  width: min(430px, 88%);
  position: relative;
  margin: auto; /* centers the instrument in the leftover column space */
}
.dial svg { width: 100%; height: auto; display: block; overflow: visible; }
.dial__ring { fill: none; stroke: rgba(243, 239, 230, 0.28); stroke-width: 1; }
.dial__needle { stroke: var(--acid); stroke-width: 3; }
.dial__hub { fill: var(--paper); }
.dial .tick { stroke: rgba(243, 239, 230, 0.45); stroke-width: 1.5; }
.dial .tick--major { stroke: var(--paper); stroke-width: 2.5; }
.dial__read {
  margin-top: 1.5rem;
  color: var(--acid);
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 0.35em;
}

.steps { list-style: none; display: flex; flex-direction: column; counter-reset: step; }
.step {
  counter-increment: step;
  padding: clamp(1.25rem, 3.2vh, 2.25rem) 0;
  border-bottom: 1px solid var(--rule-paper);
  opacity: 0.28;
  transition: opacity 0.45s var(--ease-out);
}
.step:first-child { border-top: 1px solid var(--rule-paper); }
.step.is-on { opacity: 1; }
.step__name {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  font-weight: 900; font-stretch: 121%;
  line-height: 1; text-transform: uppercase;
}
.step__name::before {
  content: "0" counter(step);
  font-family: var(--font-m);
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--acid);
}
.step__copy { margin-top: 0.7rem; max-width: 52ch; color: rgba(243, 239, 230, 0.78); }

/* ============================================================
   CREATIVE OUTPUT — image belts
   ============================================================ */

.work {
  background: var(--ink); color: var(--paper);
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(5rem, 11vh, 7rem);
  overflow: hidden;
}
.work__head {
  padding: 0 var(--gutter) clamp(2.5rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.5rem 3rem;
}
.work__head .sec { grid-column: 1 / -1; }
.work__title {
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  font-weight: 900; font-stretch: 118%;
  line-height: 0.95; text-transform: uppercase;
  overflow: hidden;
}
.work__title em { color: var(--acid); }
.work__all {
  margin-left: auto;
  color: var(--acid);
  border-bottom: 2px solid var(--acid);
  padding-bottom: 0.3em;
}

.work__belt { display: flex; flex-direction: column; gap: 1.25rem; }
.work__track { display: flex; width: max-content; will-change: transform; }
.work__set { display: flex; gap: 1.25rem; padding-right: 1.25rem; }
.work__item { flex-shrink: 0; }
.work__item img {
  /* the source files are full-length A+ pages (very tall) — crop them into
     uniform specimen cards, anchored to the top of the design */
  width: clamp(220px, 22vw, 300px);
  height: clamp(280px, 40vh, 400px);
  object-fit: cover; object-position: center top;
  display: block;
  border: 1px solid var(--rule-paper);
  background: var(--paper);
}
.work__item figcaption { margin-top: 0.45rem; color: rgba(243, 239, 230, 0.55); }

/* ============================================================
   REFERENCES
   ============================================================ */

.refs { padding: clamp(5rem, 12vh, 9rem) var(--gutter) clamp(2rem, 5vh, 4rem); }
.refs__grid {
  margin-top: clamp(2rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.ref {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: 2rem;
  min-height: 260px;
}
.ref::before {
  content: "❝";
  color: var(--acid);
  -webkit-text-stroke: 1px var(--ink);
  font-size: 2.4rem; line-height: 1;
}
.ref__quote {
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}
.ref footer { margin-top: auto; color: var(--blue); }

/* ============================================================
   FIELD NOTES
   ============================================================ */

.notes { padding: clamp(5rem, 12vh, 9rem) 0 clamp(4rem, 9vh, 7rem); }
.notes__head {
  padding: 0 var(--gutter) clamp(2.5rem, 6vh, 4rem);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.notes__title {
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  font-weight: 900; font-stretch: 118%;
  line-height: 0.95; text-transform: uppercase;
  overflow: hidden; /* clips SplitText line reveals */
}

.index { list-style: none; border-top: 1px solid var(--rule); }
.index__row { border-bottom: 1px solid var(--rule); }
.index__row a {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: center; gap: 2rem;
  padding: 1.5rem var(--gutter);
  position: relative;
  isolation: isolate;
}
.index__row a::before {
  content: ""; position: absolute; inset: 0;
  background: var(--acid);
  transform: scaleY(0); transform-origin: bottom center;
  transition: transform 0.32s var(--ease-out);
  z-index: -1;
}
.index__row a:hover::before { transform: scaleY(1); }
.index__date { color: var(--blue); }
.index__title {
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  font-weight: 700; font-stretch: 106%;
}
.index__col { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.index__meta { color: var(--ink-2); }
.index__arrow { font-size: 1.4rem; transition: transform 0.3s var(--ease-out); }
.index__row a:hover .index__arrow { transform: translate(4px, -4px); }

.notes__all {
  display: inline-block;
  margin: 2.25rem var(--gutter) 0;
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.3em;
}

/* ============================================================
   AUDIT CTA — blue drench
   ============================================================ */

.audit {
  position: relative;
  background: var(--blue);
  color: var(--paper);
  padding: clamp(6rem, 16vh, 11rem) var(--gutter);
  display: flex; flex-direction: column; gap: 2rem;
  overflow: hidden;
}
.audit__title {
  font-size: clamp(3.4rem, 12.5vw, 12rem);
  font-weight: 900; font-stretch: 121%;
  line-height: 0.87; text-transform: uppercase;
  letter-spacing: -0.015em;
}
.audit__title span { display: block; overflow: hidden; }
.audit__title em { color: var(--acid); }
.audit__copy { max-width: 40ch; font-size: 1.15rem; color: rgba(243, 239, 230, 0.85); }
.audit .btn { align-self: flex-start; }
.audit .btn--acid:hover { box-shadow: 4px 4px 0 var(--paper), 4px 4px 0 1px var(--ink); }

.audit__badge {
  position: absolute;
  right: clamp(1rem, 6vw, 6rem);
  bottom: clamp(1rem, 5vh, 4rem);
  width: clamp(110px, 14vw, 180px);
  opacity: 0.95;
}
.audit__badgeText { fill: var(--paper); font-size: 10.5px; letter-spacing: 0.14em; }

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

.foot {
  background: var(--ink); color: var(--paper);
  padding: clamp(4rem, 9vh, 7rem) var(--gutter) 1.5rem;
  display: flex; flex-direction: column; gap: 3.5rem;
}
.foot__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
}
.foot__cols a { display: block; padding: 0.3em 0; color: rgba(243, 239, 230, 0.75); }
.foot__cols a:hover { color: var(--acid); }
.foot__label { color: var(--acid); margin-bottom: 0.75em; }
.foot__stamp p { color: rgba(243, 239, 230, 0.75); }
.foot__barcode { width: 120px; height: 28px; margin-top: 0.9rem; }
.foot__barcode rect { fill: var(--paper); }

.foot__mark {
  font-size: clamp(3.4rem, 13.5vw, 13rem);
  font-weight: 900; font-stretch: 125%;
  line-height: 0.82; text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--paper);
  border-top: 1px solid var(--rule-paper);
  padding-top: 2.5rem;
  white-space: nowrap;
}
.foot__fine { color: rgba(243, 239, 230, 0.5); }

/* ============================================================
   SUB-PAGES
   ============================================================ */

.bar__nav a.is-here::after { transform: scaleX(1); }

.phead {
  padding: calc(var(--bar-h) + clamp(2.5rem, 9vh, 5.5rem)) var(--gutter) clamp(2.25rem, 6vh, 4rem);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.phead__title {
  visibility: hidden; /* revealed by page.js (or the reduced-motion override) */
  font-size: clamp(2.7rem, 9.5vw, 9rem);
  font-weight: 900; font-stretch: 121%;
  line-height: 0.88; text-transform: uppercase;
  letter-spacing: -0.015em;
}
.phead__title .rowline { display: block; overflow: hidden; }
.phead__intro { max-width: 52ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.phead--blue { background: var(--blue); color: var(--paper); }
.phead--blue .phead__intro { color: rgba(243, 239, 230, 0.85); }
.phead--blue em, .phead--ink em { color: var(--acid); }
.phead--ink { background: var(--ink); color: var(--paper); }
.phead--ink .phead__intro { color: rgba(243, 239, 230, 0.8); }

.page-blue { background: var(--blue); }
.page-ink { background: var(--ink); }

/* --- service detail rows --- */
.svc { border-top: 1px solid var(--rule); }
.svc:last-of-type { border-bottom: 1px solid var(--rule); }
.svc__in {
  display: grid;
  grid-template-columns: 4rem minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  padding: clamp(2rem, 5vh, 3.25rem) var(--gutter);
  align-items: start;
}
.svc__idx { color: var(--blue); }
.svc__name {
  font-size: clamp(1.7rem, 3.6vw, 3.3rem);
  font-weight: 800; font-stretch: 112%;
  line-height: 1; text-transform: uppercase;
  margin-bottom: 0.6em;
}
.svc__desc { max-width: 58ch; color: var(--ink-2); }
.svc__aside { display: flex; flex-direction: column; gap: 1rem; }
.svc__list { list-style: none; border-top: 1px solid var(--rule); }
.svc__list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex; gap: 0.6em; align-items: baseline;
}
.svc__list li::before { content: "◆"; color: var(--blue); font-size: 0.55em; }
.svc__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.svc__links a { color: var(--blue); border-bottom: 2px solid var(--blue); padding-bottom: 0.25em; }

/* --- case study detail blocks --- */
.case { padding: clamp(3rem, 8vh, 5.5rem) 0; border-top: 1px solid var(--rule); }
.case__head { padding: 0 var(--gutter) clamp(1.5rem, 4vh, 2.5rem); display: flex; flex-direction: column; gap: 1rem; }
.case__name {
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 900; font-stretch: 118%;
  line-height: 0.95; text-transform: uppercase;
}
.case__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 0 var(--gutter);
  align-items: start;
}
.case__media { display: flex; gap: 1rem; }
.case__media figure { flex: 1; min-width: 0; }
.case__media img {
  width: 100%; height: clamp(200px, 30vw, 420px);
  object-fit: cover; object-position: left top;
  border: 1px solid var(--rule); display: block;
}
.case__media figcaption { margin-top: 0.5rem; color: var(--ink-2); }
.case__body { display: flex; flex-direction: column; gap: 1.5rem; }
.case__body p { color: var(--ink-2); max-width: 52ch; }
.ledger--paper { border-top: 1px solid var(--rule); }
.ledger--paper li { border-bottom: 1px solid var(--rule); }
.ledger--paper b { color: var(--blue); }

/* --- portfolio masonry --- */
.masonry {
  padding: 0 var(--gutter) clamp(3rem, 8vh, 5rem);
  columns: 3 320px;
  column-gap: 1.25rem;
}
.masonry figure {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border: 1px solid var(--rule-paper);
  background: #0f0f14;
}
.masonry img { width: 100%; display: block; }
.masonry figcaption { padding: 0.6rem 0.75rem; color: rgba(243, 239, 230, 0.6); }

/* --- audit intake form --- */
.intake {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: 0 var(--gutter) clamp(4rem, 10vh, 7rem);
  align-items: start;
}
.fform { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.fform label { display: flex; flex-direction: column; gap: 0.5rem; }
.fform label.wide { grid-column: 1 / -1; }
.fform .flabel { font-family: var(--font-m); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243, 239, 230, 0.7); }
.fform input, .fform select, .fform textarea {
  font: inherit; color: var(--paper);
  background: rgba(243, 239, 230, 0.06);
  border: 2px solid rgba(243, 239, 230, 0.4);
  padding: 0.8em 0.9em; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.fform select option { color: var(--ink); }
.fform input:focus, .fform select:focus, .fform textarea:focus {
  outline: none; border-color: var(--acid);
}
.fform textarea { min-height: 7.5em; resize: vertical; }
.fform button { grid-column: 1 / -1; justify-content: center; }

.intake__aside { display: flex; flex-direction: column; gap: 1.5rem; }
.intake__aside .ledger b { color: var(--acid); }
.intake__note { color: rgba(243, 239, 230, 0.6); }

.lodged { position: relative; text-align: center; padding: clamp(2rem, 6vh, 4rem) 0; display: none; }
.lodged.is-on { display: block; }
.lodged__stamp {
  display: inline-block;
  background: var(--acid); color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(22, 23, 29, 0.9);
  transform: rotate(-5deg);
  padding: 1em 1.4em;
  font-family: var(--font-m); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.lodged__links { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- bottom CTA band for sub-pages --- */
.band {
  background: var(--blue); color: var(--paper);
  padding: clamp(3.5rem, 9vh, 6rem) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 4rem;
}
.band__title {
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  font-weight: 900; font-stretch: 118%;
  line-height: 0.95; text-transform: uppercase;
  flex: 1 1 420px;
}
.band__title em { color: var(--acid); }
.band .btn--acid:hover { box-shadow: 4px 4px 0 var(--paper), 4px 4px 0 1px var(--ink); }

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

@media (max-width: 920px) {
  .bar__nav { display: none; }

  /* fewer registration lines on small screens */
  .gridlines i:nth-child(1), .gridlines i:nth-child(3) { border-color: transparent; }

  .hero__title { font-size: clamp(2.2rem, 10.4vw, 4.6rem); line-height: 0.9; }
  .hero__ledger { grid-template-columns: 1fr 1fr; }
  .hero__cell { border-bottom: 1px solid var(--rule); }
  .hero__cell:nth-child(2n) { border-right: 0; }
  .hero__cell--last { display: none; }

  /* proof panels stack vertically: the horizontal pin only exists on desktop */
  .proof__track { display: block; width: auto; }
  .panel { width: 100%; min-height: auto; padding-top: 4rem; padding-bottom: 4rem; }
  .panel__giant { font-size: clamp(2.4rem, 11vw, 5rem); }
  .panel__num { font-size: clamp(3.2rem, 15vw, 6rem); }

  .services__title, .notes__title, .files__title, .work__title { font-size: clamp(1.9rem, 8.5vw, 3.2rem); }
  .crew__title { font-size: clamp(2rem, 9vw, 3.4rem); }
  .crew__body { grid-template-columns: 1fr; gap: 2.25rem; }
  .crew__ledger li { flex-direction: column; gap: 0.15rem; }
  .crew__ledger li span:last-child { text-align: left; }

  .file > a { grid-template-columns: 1fr; gap: 1.5rem; }
  .file__shot img { height: clamp(140px, 30vw, 220px); }

  .work__item img { width: 180px; height: 230px; }
  .work__all { justify-self: start; }

  .refs__grid { grid-template-columns: 1fr; }
  .ref { min-height: 0; }

  .phead__title { font-size: clamp(2.1rem, 10.5vw, 4.4rem); }
  .svc__in { grid-template-columns: 2.5rem 1fr; }
  .svc__aside { grid-column: 2; }
  .case__grid { grid-template-columns: 1fr; }
  .case__media img { height: clamp(150px, 32vw, 260px); }
  .intake { grid-template-columns: 1fr; }
  .fform { grid-template-columns: 1fr; }
  .masonry { columns: 2 160px; }

  .audit { padding-bottom: clamp(9rem, 22vh, 12rem); }
  .audit__title { font-size: clamp(2.3rem, 11vw, 4.6rem); }
  .audit__badge { width: 96px; right: 1.25rem; bottom: 1.25rem; }

  .manifest__row a {
    grid-template-columns: 2.5rem 1fr auto;
    grid-template-areas: "idx name sku" "idx desc sku";
    row-gap: 0.4rem;
  }
  .manifest__idx { grid-area: idx; }
  .manifest__name { grid-area: name; }
  .manifest__desc { grid-area: desc; }
  .manifest__sku { grid-area: sku; }

  .method__pin {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 5rem; padding-bottom: 4rem;
    min-height: 0;
  }
  .dial { width: min(240px, 62%); margin: 2rem auto 0; }

  .index__row a { grid-template-columns: 3.5rem 1fr auto; gap: 1rem; }

  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__mark { white-space: normal; word-break: break-word; }
}

@media (max-width: 560px) {
  .hero__ledger { grid-template-columns: 1fr; }
  .hero__cell { border-right: 0; padding-block: 0.8rem; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .manifest__desc { display: none; }
  .foot__mark { padding-top: 1.5rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .hero__title, .phead__title { visibility: visible; }
  .cursor { display: none; }
}
