/* ─────────────────────────────────────────────────────────
   wjpearce.com
   The Signal Desk. See DESIGN.md.
   ───────────────────────────────────────────────────────── */

/* ── Fonts ──────────────────────────────────────────────── */

@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/instrument-sans-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ─────────────────────────────────────────────── */

:root {
  /* Surfaces and ink */
  --bg:        #0b0b0c;
  --bg-raise:  #111112;
  --ink:       #ece8e1;
  --ink-dim:   #9b968d;
  --ink-faint: #8b867d;              /* 5.4:1 on --bg. Safe for text. */
  --ink-ghost: #6a6660;              /* 3.4:1. Never text. Rules and marks only. */
  --line:      #232325;
  --line-soft: #17171a;
  --accent:    #c98f52;

  /* Semi-transparent edges, preferred over solid borders */
  --edge:        rgb(236 232 225 / .09);
  --edge-strong: rgb(236 232 225 / .17);
  --accent-wash: rgb(201 143 82 / .20);

  /* Elevation. Directional: light from above. Imagery only. */
  --lift:
    0 18px 40px -24px rgb(0 0 0 / .85),
    0 34px 80px -44px rgb(201 143 82 / .32),
    inset 0 0 0 1px var(--edge);
  --lift-hi:
    0 22px 48px -22px rgb(0 0 0 / .9),
    0 40px 92px -40px rgb(201 143 82 / .46),
    inset 0 0 0 1px var(--edge-strong);
  /* Non-imagery separation: tonal step plus a hairline, no cast. */
  --edge-only:    inset 0 0 0 1px var(--edge);
  --edge-only-hi: inset 0 0 0 1px var(--edge-strong), 0 12px 28px -20px rgb(0 0 0 / .8);

  /* Type */
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-2xs:  .72rem;
  --t-xs:   .8rem;
  --t-sm:   .9rem;
  --t-base: 1.0625rem;
  --t-md:   1.1875rem;
  --t-lg:   clamp(1.4rem, 2.8vw, 1.9rem);
  --t-xl:   clamp(1.9rem, 4.2vw, 2.8rem);
  --t-2xl:  clamp(2.6rem, 6.2vw, 4.6rem);

  /* Space */
  --gut:   clamp(1.25rem, 5vw, 3rem);
  --max:   1180px;
  --sec-y: clamp(4.5rem, 10vw, 8rem);

  /* Motion */
  --ease-out:   cubic-bezier(.23, 1, .32, 1);
  --ease-state: cubic-bezier(.4, 0, .2, 1);
  --dur-press:  120ms;
  --dur-state:  200ms;
  --dur-move:   250ms;
  --dur-reveal: 450ms;

  --z-grain: 2;
  --z-header: 50;
  --z-skip: 100;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* Static grain. Breaks the flatness of a large dark field. */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem;
  z-index: var(--z-skip);
  background: var(--ink);
  color: var(--bg);
  padding: .6rem 1rem;
  border-radius: 3px;
}

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

/* Shared label treatment. Budgeted to three roles: section title,
   item meta, and the wordmark. Nothing else is tracked caps. */
.label {
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Mono is for figures, indices and timecodes. Never for prose. */
.fig {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-state) var(--ease-state);
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}

.wordmark {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }

.nav a {
  position: relative;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink-dim);
  text-decoration: none;
  padding-block: .75rem;                 /* 44px touch target */
  white-space: nowrap;
  transition: color var(--dur-state) var(--ease-state);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .45rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-move) var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a.is-current { color: var(--ink); }
.nav a.is-current::after { transform: scaleX(1); }

@media (max-width: 680px) {
  .nav {
    gap: 1.1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
            mask-image: linear-gradient(90deg, #000 86%, transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3rem, 7vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--accent);
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
}

.display {
  font-size: var(--t-2xl);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 600;
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.25rem);
  max-width: 17ch;
  text-wrap: balance;
}
.display-soft { color: var(--ink-dim); }

.hero-body { max-width: 62ch; }
.hero-body p {
  margin: 0 0 1.1rem;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.hero-body strong { color: var(--ink); font-weight: 500; }

.hl {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -0.32em 0 var(--accent-wash);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

/* Portrait. One of only three elements allowed the amber cast. */
.portrait { margin: 0; position: relative; }
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 55% 22%;
  border-radius: 4px;
  filter: saturate(.92) contrast(1.03);
  box-shadow: var(--lift);
  transition: box-shadow var(--dur-move) var(--ease-state);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-text { display: contents; }
  .eyebrow   { order: 1; }
  .display   { order: 2; max-width: 22ch; }
  .portrait  { order: 3; max-width: 200px; margin-bottom: 2.25rem; }
  .hero-body { order: 4; }
}
@media (max-width: 560px) {
  .portrait { max-width: 168px; }
}

/* Proof strip. The figures a partnership buyer came to check. */
.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  text-decoration: none;
  transition: transform var(--dur-press) var(--ease-state);
}
.stat-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color var(--dur-state) var(--ease-state);
}
.stat-label {
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.stat:active { transform: translateY(1px); }

@media (max-width: 620px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .005em;
  text-decoration: none;
  padding: .82rem 1.45rem;
  border: 0;
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--edge);
  transition:
    background var(--dur-state) var(--ease-state),
    box-shadow var(--dur-state) var(--ease-state),
    color var(--dur-state) var(--ease-state),
    transform var(--dur-press) var(--ease-state);
}
.btn:hover {
  background: var(--bg-raise);
  box-shadow: inset 0 0 0 1px var(--edge-strong);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  color: #14100b;
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* ── Brands band ────────────────────────────────────────── */

.brands-band {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 4.5rem);
  border-block: 1px solid var(--line-soft);
}

.band-label {
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(.5rem, 2vw, 1rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-row li {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--ink-dim);
  padding-inline: clamp(1.25rem, 3.5vw, 2.5rem);
  transition: color var(--dur-state) var(--ease-state);
}
.marquee-row li::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .5;
  vertical-align: middle;
  margin-left: clamp(1.25rem, 3.5vw, 2.5rem);
  margin-bottom: .35em;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.brands-note {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  color: var(--ink-faint);
  font-size: var(--t-sm);
  max-width: 52ch;
}
.brands-note a {
  color: var(--ink-dim);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--line);
  transition: color var(--dur-state) var(--ease-state),
              box-shadow var(--dur-state) var(--ease-state);
}
.brands-note a:hover { color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }

/* ── Sections ───────────────────────────────────────────── */

.section {
  padding-block: var(--sec-y) calc(var(--sec-y) * 1.12);   /* optically level */
  border-bottom: 1px solid var(--line-soft);
}

/* The index hangs in a left gutter on wide screens and tracks the
   section as it scrolls. This is the page's main asymmetry. */
.sec-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}
.section-title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.idx {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: .02em;
}

@media (min-width: 1024px) {
  .sec-grid {
    grid-template-columns: 7rem minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    position: sticky;
    top: 104px;
    align-self: start;
  }
  .section-name { color: var(--ink-faint); }
}

/* ── Work list ──────────────────────────────────────────── */

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.work { border-bottom: 1px solid var(--line); }

.work a {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 11fr) minmax(0, 5fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: baseline;
  padding: clamp(1.5rem, 3.5vw, 2.15rem) 0;
  text-decoration: none;
  transition: transform var(--dur-move) var(--ease-out);
}
.work-name {
  font-size: var(--t-lg);
  letter-spacing: -0.025em;
  font-weight: 500;
  transition: color var(--dur-state) var(--ease-state);
}
.work-desc {
  color: var(--ink-dim);
  font-size: var(--t-sm);
  line-height: 1.55;
}
.work-meta {
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  white-space: nowrap;
}
.arrow {
  display: inline-block;
  margin-left: .4rem;
  transition: transform var(--dur-move) var(--ease-out);
}
.work a:active { transform: translateX(6px) scale(.995); }

@media (max-width: 820px) {
  .work a { grid-template-columns: 1fr; gap: .5rem; }
  .work-meta { text-align: left; }
}

/* ── The X-Ops Brief ────────────────────────────────────── */

.brief-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.brief-intro { max-width: 54ch; }
.brief-intro p { margin: 0; color: var(--ink-dim); }
.brief-cta { flex-shrink: 0; }

/* Asymmetric: one lead episode, two stacked. Deliberately not a 3-up. */
.ep-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
.ep-lead { grid-column: 1; grid-row: 1 / span 2; }

.ep {
  display: block;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-raise);
  box-shadow: var(--edge-only);
  transition: box-shadow var(--dur-state) var(--ease-state),
              transform var(--dur-move) var(--ease-out);
}
.ep:active { transform: translateY(0) scale(.995); }

.ep-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--line-soft);
}
.ep-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .88;
  transition: opacity var(--dur-state) var(--ease-state),
              transform var(--dur-move) var(--ease-out);
}
.ep-time {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-2xs);
  font-weight: 500;
  color: var(--ink);
  background: rgb(8 8 9 / .82);
  padding: .12rem .38rem;
  border-radius: 3px;
}
.ep-body { display: block; padding: 1rem 1.1rem 1.2rem; }
.ep-num {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-2xs);
  color: var(--accent);
  margin-bottom: .45rem;
}
.ep-title {
  display: block;
  font-size: var(--t-sm);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.ep-lead .ep-title { font-size: var(--t-md); line-height: 1.3; }
.ep-lead .ep-body { padding: 1.25rem 1.35rem 1.5rem; }

/* The two secondary episodes read as rows, not as small copies of the lead. */
.ep:not(.ep-lead) {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  align-items: center;
  gap: 0 1rem;
}
.ep:not(.ep-lead) .ep-body { padding: .9rem 1rem .9rem 0; }

@media (max-width: 900px) {
  .ep-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .ep-lead { grid-column: auto; grid-row: auto; }
}
@media (max-width: 520px) {
  .ep:not(.ep-lead) { display: block; }
  .ep:not(.ep-lead) .ep-body { padding: 1rem 1.1rem 1.2rem; }
}

/* ── Feature blocks (course, book) ──────────────────────── */

.feature {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature--flip .feature-shot { order: 2; }

.feature-shot {
  margin: 0;
  border-radius: 4px;
  background: var(--bg-raise);
  box-shadow: var(--lift);
  transition: box-shadow var(--dur-move) var(--ease-state);
}
.feature-shot img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: saturate(.9) contrast(1.02);
}

.feature-title {
  font-size: var(--t-xl);
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 .5rem;
  text-wrap: balance;
}
.feature-kicker {
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
.feature-copy p { margin: 0 0 1rem; max-width: 52ch; text-wrap: pretty; }
.feature-copy .muted { color: var(--ink-dim); }
.feature-copy .btn { margin-top: 1rem; }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-shot { order: 0; }
}

/* ── Appearances ────────────────────────────────────────── */
/* Deliberately not cards. Hairline rows, matching the work list. */

.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.press-list li { border-bottom: 1px solid var(--line); }

.press {
  display: grid;
  grid-template-columns: clamp(96px, 14vw, 148px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  padding: clamp(1rem, 2.5vw, 1.35rem) 0;
  text-decoration: none;
  transition: transform var(--dur-move) var(--ease-out);
}
.press-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line-soft);
  box-shadow: var(--edge-only);
}
.press-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: opacity var(--dur-state) var(--ease-state);
}
.press-host {
  display: block;
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}
.press-title {
  display: block;
  font-size: var(--t-sm);
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color var(--dur-state) var(--ease-state);
  text-wrap: pretty;
}
.press-go {
  color: var(--ink-faint);
  transition: transform var(--dur-move) var(--ease-out),
              color var(--dur-state) var(--ease-state);
}
.press:active { transform: translateX(6px) scale(.995); }

@media (max-width: 520px) {
  .press { grid-template-columns: 84px minmax(0, 1fr); }
  .press-go { display: none; }
}

/* ── Contact ────────────────────────────────────────────── */

.contact {
  padding-block: clamp(5rem, 12vw, 8.5rem) clamp(5.5rem, 13vw, 9.5rem);
  border-bottom: none;
}
.contact-head {
  font-size: var(--t-2xl);
  letter-spacing: -0.042em;
  font-weight: 600;
  line-height: 1.02;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.contact-sub {
  color: var(--ink-dim);
  margin: 1.1rem 0 2.5rem;
  max-width: 46ch;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}
.contact-mail {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--line);
  padding-bottom: .3rem;
  transition: color var(--dur-state) var(--ease-state),
              box-shadow var(--dur-state) var(--ease-state);
}
.contact-mail:hover { color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }

.copy {
  font-family: var(--sans);
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  border-radius: 2px;
  padding: .6rem .85rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--edge);
  transition: color var(--dur-state) var(--ease-state),
              box-shadow var(--dur-state) var(--ease-state),
              transform var(--dur-press) var(--ease-state);
}
.copy:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge-strong); }
.copy:active { transform: translateY(1px); }
.copy.is-copied { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 2.25rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-xs);
  color: var(--ink-faint);
}
.socials { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.socials a {
  text-decoration: none;
  padding-block: .25rem;
  transition: color var(--dur-state) var(--ease-state);
}
.socials a:hover { color: var(--ink); }

/* ── Media kit ──────────────────────────────────────────── */

.mk-hero .display { max-width: 20ch; }
.mk-hero .hero-body { margin-top: 0; }

.mk-figures {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
}
.mk-figures li {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.mk-fig {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.mk-unit { color: var(--accent); }
.mk-fig-label {
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.mk-source {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  color: var(--ink-faint);
  font-size: var(--t-sm);
  max-width: 56ch;
}

.mk-brands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.mk-brands li {
  font-size: var(--t-md);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  padding-right: 1.5rem;
}

@media (max-width: 560px) {
  .mk-figures { grid-template-columns: 1fr; }
}

/* Gate. The rate card is encrypted, not merely hidden. */

.gate {
  max-width: 44rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 4px;
  background: var(--bg-raise);
  box-shadow: var(--edge-only);
}
.gate-title {
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 .6rem;
}
.gate-sub {
  margin: 0 0 1.75rem;
  color: var(--ink-dim);
  font-size: var(--t-sm);
  max-width: 52ch;
}
.gate-sub a { color: var(--ink); box-shadow: inset 0 -1px 0 var(--line); text-decoration: none; }
.gate-sub a:hover { color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }

.gate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem;
}
.gate-label {
  display: block;
  width: 100%;
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .55rem;
}
.gate-input {
  flex: 1 1 15rem;
  min-width: 0;
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--ink);
  background: var(--bg);
  border: 0;
  border-radius: 2px;
  padding: .82rem 1rem;
  box-shadow: inset 0 0 0 1px var(--edge);
  transition: box-shadow var(--dur-state) var(--ease-state);
}
.gate-input::placeholder { color: var(--ink-ghost); }
.gate-input:hover { box-shadow: inset 0 0 0 1px var(--edge-strong); }
.gate-input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
.gate-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gate-submit { flex: 0 0 auto; }
.gate-submit[disabled] { opacity: .6; cursor: progress; }

.gate-msg {
  margin: 1rem 0 0;
  min-height: 1.4em;
  font-size: var(--t-sm);
  color: var(--ink-dim);
}
.gate-msg.is-error { color: var(--accent); }

/* Decrypted rate card */

.rates {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.rates-cap {
  caption-side: top;
  text-align: left;
  color: var(--ink-faint);
  font-size: var(--t-sm);
  margin-bottom: 1.5rem;
}
.rates th, .rates td {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.rates thead th {
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: .75rem;
}
.rates thead th:last-child, .rates td { text-align: right; }
.rates tbody th {
  font-size: var(--t-md);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.rates td {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-md);
  letter-spacing: -0.02em;
  color: var(--accent);
  white-space: nowrap;
}
.rates-note {
  margin: 1.75rem 0 0;
  color: var(--ink-faint);
  font-size: var(--t-sm);
  max-width: 56ch;
}
.rates-note a { color: var(--ink-dim); box-shadow: inset 0 -1px 0 var(--line); text-decoration: none; }
.rates-note a:hover { color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }

.rates-out:focus { outline: none; }
.rates-out:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* ── Reveal ─────────────────────────────────────────────── */
/* Keyframes, not transitions, so the entry never leaves a stale
   transition-delay behind on elements that also animate on hover.
   Hidden state is applied only when JS is present, so the page is
   fully readable if the script never runs. */

.js .reveal { opacity: 0; }
.js .reveal.in {
  animation: reveal-in var(--dur-reveal) var(--ease-out) both;
  animation-delay: var(--rd, 0ms);
}

@keyframes reveal-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ── Hover, gated so touch cannot latch a sticky false hover ── */

@media (hover: hover) and (pointer: fine) {
  .portrait:hover img    { box-shadow: var(--lift-hi); }
  .feature-shot:hover    { box-shadow: var(--lift-hi); }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .marquee-row li:hover  { color: var(--ink); }

  .work a:hover           { transform: translateX(10px); }
  .work a:hover .work-name{ color: var(--accent); }
  .work a:hover .arrow    { transform: translate(3px, -3px); }
  .work a:hover .arrow-down { transform: translateY(3px); }

  .ep:hover               { box-shadow: var(--edge-only-hi); transform: translateY(-2px); }
  .ep:hover .ep-thumb img { opacity: 1; transform: scale(1.03); }

  .press:hover              { transform: translateX(10px); }
  .press:hover .press-title { color: var(--accent); }
  .press:hover .press-thumb img { opacity: 1; }
  .press:hover .press-go    { color: var(--accent); transform: translate(3px, -3px); }

  .stat:hover .stat-num   { color: var(--accent); }
}

/* ── Reduced motion ─────────────────────────────────────── */
/* Fewer and gentler, not zero. Colour and opacity feedback stays;
   position and scale changes go. */

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

  .js .reveal, .js .reveal.in { opacity: 1; animation: none; }
  .marquee-track { animation: none; }
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .work a, .press, .ep, .stat, .btn, .copy { transition-property: color, background, box-shadow; }
  .work a:hover, .press:hover, .ep:hover { transform: none; }
  .work a:active, .press:active, .ep:active,
  .stat:active, .btn:active, .copy:active { transform: none; }
  .arrow, .press-go, .ep-thumb img { transition: none; }
  .work a:hover .arrow, .work a:hover .arrow-down,
  .press:hover .press-go, .ep:hover .ep-thumb img { transform: none; }
  .nav a::after { transition: none; }
}
