@import url("/assets/css/work-grid.css");

/* ═══════════════════════════════════════════════════════════════════════════
   Homepage — hero, cards, about, highlights, journal, contact.
   ───────────────────────────────────────────────────────────────────────────
   Six sections, each doing one job, in the order a stranger needs them:
   who is this → what has he made → who is he → why should I believe it →
   what is he thinking about → how do I reach him.

   The broadcast vocabulary stays as TEXTURE only — the tally light, the frame
   corners, the scope trace. The numbering and timecodes are gone: a column of
   numbered rows with labels down the left reads as a tour schedule, which is
   what the previous version turned into.
   ═══════════════════════════════════════════════════════════════════════════ */

.band { padding-block: clamp(var(--s-8), 9vw, 150px); }
.band + .band { border-top: 1px solid var(--line); }
.band--sunk { background: var(--bg-sunk); }

.band__head { display: grid; gap: var(--s-4); margin-bottom: clamp(var(--s-6), 4vw, var(--s-8)); }
.band__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 62px);
  font-weight: 700; letter-spacing: -.032em; line-height: 1.02;
  color: var(--ink); max-width: 20ch; text-wrap: balance;
}
.band__title em { font-style: normal; color: var(--gold-ink); }
.band__lede { font-size: var(--t-md); line-height: 1.5; color: var(--ink-3); max-width: 54ch; }

/* ── 1. hero ───────────────────────────────────────────────────────────────
   The million-dollar frame. Nothing in it but the name, one sentence and two
   ways in. */

.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 900px);
  margin-top: -68px;
  display: grid; align-items: center;
  background: var(--bg-sunk);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero__scrim {
  position: absolute; inset: 0;
  /* Tuned against the stage frame, which is bright in the CENTRE — haze lit by
     the rig — exactly where centred type sits. A vignette darkening the edges
     is the wrong shape for this image; this darkens the middle instead and
     lets the beams stay bright at the corners where nothing is written. */
  background:
    linear-gradient(to bottom, rgba(4,5,8,.86) 0px, rgba(4,5,8,.50) 130px, rgba(4,5,8,.14) 300px),
    linear-gradient(to top, rgba(4,5,8,.90) 0%, rgba(4,5,8,.52) 30%, rgba(4,5,8,.08) 66%),
    /* Measured against the background with the copy HIDDEN — sampling a crop
       centred on the wordmark measures the glyphs, not what is behind them, and
       reported a false 2.26:1 that nearly bought a much heavier scrim than the
       image can carry. At these values the worst pixel behind the wordmark is
       rgb(46,52,62): 9.9:1, comfortably over the 3.0 floor, and the beams and
       haze still read. */
    radial-gradient(80% 66% at 50% 48%, rgba(4,5,8,.78) 0%, rgba(4,5,8,.54) 52%, rgba(4,5,8,.18) 82%, transparent 100%);
}
.hero__scope { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; }

.hero__in {
  position: relative; z-index: 3;
  display: grid; gap: clamp(var(--s-4), 1.6vw, var(--s-5));
  justify-items: center; text-align: center;
  padding-block: clamp(110px, 16vh, 190px) clamp(var(--s-8), 12vh, 130px);
}

.hero__tally {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .26em; text-transform: uppercase;
  /* --ink-2, not --ink-3: the cyan wash added over the hero lifted the
     background behind this line and took it to 4.37:1, under the 4.5 floor.
     Measured against the brightest pixel behind it, not estimated. */
  color: var(--ink-2);
}
.hero__tally i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--tally);
  box-shadow: 0 0 0 3px var(--tally-wash); animation: tally 3.4s var(--ease-io) infinite;
}
@keyframes tally { 0%, 62%, 100% { opacity: 1 } 78% { opacity: .25 } }

.hero__mark {
  font-size: clamp(52px, 11vw, 172px); font-weight: 800; line-height: .84;
  letter-spacing: -.042em; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0 .24em; margin: 0;
}
.hero__mark-a { color: var(--ink); }
.hero__mark-b { color: var(--gold-ink); }
.hero__mark .ltr { display: inline-block; will-change: transform, opacity; }

.hero__line {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.75vw, 25px); font-weight: 500; line-height: 1.42;
  letter-spacing: -.014em; color: var(--ink-2);
  max-width: 44ch; text-wrap: balance;
}
.hero__line b { font-weight: 800; color: var(--ink); }
.hero__line em { font-style: normal; color: var(--gold-ink); font-weight: 800; }

.hero__sub {
  font-size: var(--t-sm); line-height: 1.6; color: var(--ink-3);
  max-width: 50ch; text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-3); }
.hero__cue { position: absolute; z-index: 3; left: 50%; bottom: var(--s-5); transform: translateX(-50%); width: 34px; height: 46px; display: grid; place-items: center; }
.hero__cue-line { display: block; width: 1px; height: 40px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__cue-line::after { content: ""; position: absolute; inset-inline: 0; height: 14px; background: var(--gold); animation: cue 2.6s var(--ease-io) infinite; }
@keyframes cue { 0% { top: -14px } 60%, 100% { top: 40px } }
@media (prefers-reduced-motion: reduce) { .hero__cue-line::after, .hero__tally i { animation: none; } .hero__cue-line::after { top: 0 } }
@media (max-height: 640px) { .hero__cue { display: none } }

/* ── 2. cards ──────────────────────────────────────────────────────────── */

/* Six equal cards in a grid is a spreadsheet. Scale contrast is what makes a
   layout move: the lead project takes half the width and a cinematic crop, the
   rest sit smaller beside and beneath it. The eye lands on the big one, then
   travels. This is the job I mistakenly gave to colour. */
.cards {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: clamp(14px, 1.6vw, 26px);
  grid-template-columns: repeat(6, 1fr);
}
.card-x { grid-column: span 2; }

@media (min-width: 940px) {
  /* 1 lead (wide + tall), 2 stacked beside it, 3 across underneath. */
  .card-x:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .card-x:nth-child(2),
  .card-x:nth-child(3) { grid-column: span 2; }
  /* The lead card spans two rows, so its image must take the slack — otherwise
     short copy leaves a black void under the text, which reads as a bug. */
  .card-x:nth-child(1) .card-x__link { grid-template-rows: 1fr auto; }
  .card-x:nth-child(1) .card-x__shot { aspect-ratio: auto; min-height: 0; }
  .card-x:nth-child(1) .card-x__shot img { height: 100%; object-position: 50% 12%; }
  .card-x:nth-child(1) .card-x__title { font-size: clamp(26px, 2.9vw, 40px); }
  .card-x:nth-child(1) .card-x__note { font-size: var(--t-base); max-width: 52ch; }
  .card-x:nth-child(2) .card-x__shot,
  .card-x:nth-child(3) .card-x__shot { aspect-ratio: 3 / 2; }
}
@media (max-width: 939px) and (min-width: 620px) { .card-x { grid-column: span 3; } }
@media (max-width: 619px) { .card-x { grid-column: span 6; } }
.card-x { display: grid; }
.card-x__link {
  display: grid; grid-template-rows: auto 1fr; height: 100%;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; position: relative;
  transition: border-color var(--dur-2) var(--ease-io),
              transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.card-x__link:hover, .card-x__link:focus-visible {
  border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow-2);
}
.card-x__link::before {
  content: ""; position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 480ms var(--ease-out);
}
.card-x__link:hover::before, .card-x__link:focus-visible::before { transform: scaleX(1); }

.card-x__shot { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-sunk); }
/* <picture> is inline by default, so height:100% on the img resolved against
   an auto-height parent and the image sat short of the frame. */
.card-x__shot picture { display: block; width: 100%; height: 100%; }
.card-x__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  transition: transform 900ms var(--ease-out); filter: saturate(.9); }
.card-x__link:hover .card-x__shot img { transform: scale(1.04); }
.card-x__body { padding: clamp(18px, 1.9vw, 26px); display: grid; gap: var(--s-2); align-content: start; }
.card-x__cat {
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase; color: var(--gold-ink);
}
.card-x__title {
  font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--ink);
}
.card-x__note { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.55; }

/* ── 3. about ──────────────────────────────────────────────────────────── */

.about-band {
  display: grid; gap: clamp(var(--s-6), 5vw, var(--s-9));
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: center;
}
.about-band__figure { position: relative; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.about-band__figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.about-band__copy { display: grid; gap: var(--s-4); align-content: start; max-width: 56ch; }
.about-band__copy p { color: var(--ink-2); line-height: 1.68; }
@media (max-width: 880px) { .about-band { grid-template-columns: 1fr; } }

/* ── 4. highlights ─────────────────────────────────────────────────────── */

.hl { display: grid; gap: clamp(var(--s-6), 4vw, var(--s-8)); }
.hl__stats {
  display: grid; gap: 1px; margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  background: var(--line); border-block: 1px solid var(--line);
}
.hl__cell { background: var(--bg); padding: clamp(20px, 2.5vw, 36px) clamp(14px, 1.6vw, 24px); display: grid; gap: var(--s-2); }
.hl__n {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-size: clamp(36px, 4.8vw, 72px); font-weight: 800;
  letter-spacing: -.045em; line-height: .92; color: var(--ink);
}
.hl__n span { font-size: .42em; color: var(--gold); letter-spacing: 0; margin-left: .06em; }
.hl__l { margin: 0; font-family: var(--font-display); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }

.hl__names { font-size: var(--t-md); line-height: 1.5; color: var(--ink-3); max-width: 76ch; text-wrap: pretty; }
.hl__names b { color: var(--ink); font-weight: 600; }

.hl__nets { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 3vw, 50px); }
.hl__nets img { height: clamp(24px, 2.3vw, 34px); width: auto; opacity: .5; filter: grayscale(1); transition: opacity var(--dur-2) var(--ease-io); }
.hl__nets li:hover img { opacity: .92; }
.hl__nets span {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(15px, 1.7vw, 24px);
  letter-spacing: -.01em; color: var(--ink-4); transition: color var(--dur-2) var(--ease-io);
}
.hl__nets li:hover span { color: var(--ink-2); }

/* ── 5. journal ────────────────────────────────────────────────────────── */

.posts { list-style: none; padding: 0; margin: 0; display: grid; }
.posts > li { border-top: 1px solid var(--line); }
.posts > li:last-child { border-bottom: 1px solid var(--line); }
.posts a {
  display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto;
  gap: var(--s-2) var(--s-6); align-items: baseline;
  padding-block: clamp(16px, 1.9vw, 26px);
  transition: background var(--dur-2) var(--ease-io);
}
.posts a:hover { background: var(--bg-raised); }
.posts__date { font-family: var(--font-display); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.posts__title { font-family: var(--font-display); font-size: clamp(19px, 2vw, 28px);
  font-weight: 700; letter-spacing: -.022em; line-height: 1.12; color: var(--ink); }
.posts__desc { grid-column: 2; font-size: var(--t-sm); color: var(--ink-3); line-height: 1.55; max-width: 62ch; }
.posts__go { font-family: var(--font-display); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap;
  transition: color var(--dur-1) var(--ease-io), transform var(--dur-1) var(--ease-io); }
.posts a:hover .posts__title, .posts a:hover .posts__go { color: var(--gold-ink); }
.posts a:hover .posts__go { transform: translateX(4px); }
@media (max-width: 720px) {
  .posts a { grid-template-columns: 1fr; }
  .posts__date, .posts__title, .posts__desc, .posts__go { grid-column: 1; }
}

/* ── 6. contact ────────────────────────────────────────────────────────── */

.contact-band { display: grid; gap: var(--s-5); justify-items: start; }
.contact-band .band__title { max-width: 16ch; }
