/* ─────────────────────────────────────────────────────────────
   Herbert Lewis — Portfolio
   Paper / Ink / Cobalt. Archivo (wdth axis) + Instrument Serif + DM Mono
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #f1ede4;
  --ink: #101012;
  --cobalt: #2338ff;
  --cobalt-deep: #1424c9;

  --bg: var(--paper);
  --fg: var(--ink);
  --line: rgba(16, 16, 18, .16);
  --muted: rgba(16, 16, 18, .64);
  --soft: rgba(16, 16, 18, .06);

  --font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --nav-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

body.is-dark {
  --bg: var(--ink);
  --fg: var(--paper);
  --line: rgba(241, 237, 228, .18);
  --muted: rgba(241, 237, 228, .62);
  --soft: rgba(241, 237, 228, .07);
}

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

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .9s var(--ease-io), color .9s var(--ease-io);
}

body.is-loading { overflow: hidden; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }

/* ─── Utilities ─── */
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .9s var(--ease-io);
}
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--live { display: inline-flex; align-items: center; gap: 8px; }
.tag--live i, .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: pulse 2s infinite;
  display: inline-block;
}
.dot { margin-right: 8px; vertical-align: 1px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.display {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 72, "wght" 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .86;
}

em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ─── Grain ─── */
.grain {
  position: fixed; inset: -100px; z-index: 9990;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
  mix-blend-mode: multiply;
}
body.is-dark .grain { mix-blend-mode: screen; opacity: .08; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-30px, 20px); }
  40% { transform: translate(20px, -40px); } 60% { transform: translate(-40px, -10px); }
  80% { transform: translate(30px, 30px); } 100% { transform: translate(0, 0); }
}

/* ─── Cursor ─── */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; display: none; opacity: 0; transition: opacity .4s; }
.cursor.is-on { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor__dot {
  position: absolute; top: 0; left: 0;
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: var(--cobalt);
}
.cursor__ring {
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 1px solid var(--cobalt);
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, border-color .35s;
}
.cursor.is-hover .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(35, 56, 255, .12); }
.cursor.is-label .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--cobalt); border-color: var(--cobalt); }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor__label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .35s var(--ease-out);
}
.cursor.is-label .cursor__label { opacity: 1; transform: none; }

/* ─── Loader ─── */
.loader {
  position: fixed; inset: 0; z-index: 9995;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--gutter);
}
.loader__meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  opacity: .7;
}
.loader__meta span:nth-child(2) { display: none; }
@media (min-width: 700px) { .loader__meta span:nth-child(2) { display: inline; } }
.loader__count {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 66, "wght" 900;
  font-size: clamp(120px, 26vw, 400px);
  line-height: .8; letter-spacing: -.04em;
  align-self: flex-end;
  font-variant-numeric: tabular-nums;
}
.loader__count sup { font-size: .18em; vertical-align: top; margin-left: .05em; font-variation-settings: "wdth" 80, "wght" 500; color: var(--cobalt); }
.loader__bar { height: 1px; background: rgba(241, 237, 228, .2); position: relative; }
.loader__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--cobalt); }

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--paper);
  mix-blend-mode: difference;
  transition: transform .6s var(--ease-io);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-menu { mix-blend-mode: normal; }
.nav .btn { background: var(--paper); color: var(--ink); }
.nav .btn__dot, .hero__inner .tag--live i { background: #cf2886; animation-name: pulse-blend; }
@keyframes pulse-blend {
  0% { box-shadow: 0 0 0 0 rgba(207, 40, 134, .55); }
  70% { box-shadow: 0 0 0 8px rgba(207, 40, 134, 0); }
  100% { box-shadow: 0 0 0 0 rgba(207, 40, 134, 0); }
}
.nav__brand { justify-self: start; white-space: nowrap; }
.nav__links { display: flex; gap: 28px; justify-self: center; }
.nav__links a { position: relative; padding: 14px 0; }
.nav__links a::before {
  content: attr(data-index);
  position: absolute; top: -4px; left: -12px;
  font-size: 8px; color: var(--cobalt); opacity: 0; transform: translateY(4px);
  transition: opacity .3s, transform .3s var(--ease-out);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-io);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a:hover::before { opacity: 1; transform: none; }
.nav__loc { justify-self: end; display: flex; gap: 18px; opacity: .65; white-space: nowrap; }
.nav__clock { font-variant-numeric: tabular-nums; min-width: 8ch; text-align: right; }
.nav__cta { justify-self: end; }
.nav__burger {
  display: none; justify-self: end;
  width: 44px; height: 44px; margin-right: -10px;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav__burger span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-io), opacity .3s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 1100px) { .nav__loc { display: none; } .nav { grid-template-columns: 1fr auto auto; } }
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 16px;
  border-radius: 999px; min-height: 44px;
  background: var(--fg); color: var(--bg);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .9s var(--ease-io), color .9s var(--ease-io), transform .4s var(--ease-out);
  position: relative; overflow: hidden;
}
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.btn__arrow { display: inline-block; transition: transform .5s var(--ease-io); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }

/* ─── Menu overlay ─── */
.menu {
  position: fixed; inset: 0; z-index: 8990;
  background: var(--cobalt); color: var(--paper);
  clip-path: inset(0 0 100% 0);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gutter) var(--gutter);
  visibility: hidden;
}
.menu.is-open { visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 20px;
  padding: 10px 0; border-bottom: 1px solid rgba(241, 237, 228, .25);
  overflow: hidden;
}
.menu__idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; opacity: .7; }
.menu__word {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 72, "wght" 800;
  text-transform: uppercase; letter-spacing: -.02em; line-height: .95;
  font-size: clamp(56px, 13vw, 140px);
  display: inline-block;
  transform: translateY(110%);
}
.menu__foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 14px; }
.menu__foot > div { display: flex; flex-direction: column; gap: 2px; }
.menu__foot a { padding: 11px 0; }
.menu__foot .label { color: rgba(241, 237, 228, .6); margin-bottom: 4px; }
@media (max-width: 700px) { .menu__foot { grid-template-columns: 1fr 1fr; } .menu__foot > div:last-child { grid-column: 1 / -1; } }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 0;
  min-height: 100svh;
  display: flex; flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero__inner {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 16px) var(--gutter) clamp(24px, 4vh, 48px);
  min-height: 100svh;
  color: var(--paper);
  mix-blend-mode: difference;
}
.hero__tags { display: flex; gap: 22px; flex-wrap: wrap; }
.hero__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 68, "wght" 900;
  text-transform: uppercase;
  font-size: clamp(88px, min(17vw, 34vh), 330px);
  line-height: .8; letter-spacing: -.035em;
  display: flex; flex-direction: column;
  margin: 3vh 0 3vh;
}
.hero__line { display: flex; align-items: flex-end; overflow: hidden; padding-bottom: .04em; }
.hero__line--right { justify-content: space-between; }
.hero__word { display: inline-block; will-change: transform; }
.hero__note {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100, "wght" 400;
  text-transform: none; letter-spacing: 0;
  font-size: clamp(14px, 1.35vw, 20px); line-height: 1.25;
  max-width: 22ch; align-self: center;
  padding-bottom: .1em;
}
.hero__note em { font-size: 1.15em; }
.hero__bottom {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  align-items: end; gap: 24px;
}
.hero__lede {
  font-size: clamp(20px, 2.3vw, 34px);
  line-height: 1.1; letter-spacing: -.01em;
  font-variation-settings: "wdth" 96, "wght" 500;
  max-width: 18ch;
}
.rotator { display: inline-block; vertical-align: top; }
.rotator__word {
  display: inline-block;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.12em; line-height: 1.1;
  color: var(--cobalt);
  white-space: nowrap;
  will-change: opacity, transform;
}
.hero__inner .rotator__word { color: #dcc700; } /* paper - cobalt under difference blend reads warm; make it pop */
.hero__cue {
  justify-self: center;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 0;
}
.hero__cue-line { width: 1px; height: 48px; background: rgba(241, 237, 228, .35); position: relative; overflow: hidden; }
.hero__cue-line i { position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: currentColor; animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { top: -100%; } 50% { top: 0; } 100% { top: 100%; } }
.hero__loc { justify-self: end; text-align: right; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.7; }

@media (max-width: 860px) {
  .hero__title { font-size: min(19vw, 20vh); margin: 5vh 0 4vh; }
  .hero__note { display: none; }
  .hero__line--right { justify-content: flex-end; }
  .hero__bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero__cue { justify-self: start; }
  .hero__loc { justify-self: start; text-align: left; }
}

/* ─── Sections ─── */
section { position: relative; padding: clamp(96px, 14vh, 200px) var(--gutter); }

.section-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px; margin-bottom: clamp(40px, 6vh, 80px);
  transition: border-color .9s var(--ease-io);
}
.section-head .label { white-space: nowrap; }
.section-head .label:last-child { text-align: right; }
.section-head__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 66, "wght" 900;
  text-transform: uppercase; letter-spacing: -.03em; line-height: .82;
  font-size: clamp(64px, 12vw, 200px);
  text-align: center;
}
@media (max-width: 700px) {
  .section-head { grid-template-columns: 1fr 1fr; }
  .section-head__title { grid-column: 1 / -1; grid-row: 2; text-align: left; font-size: 20vw; }
}

/* ─── Intro ─── */
.intro { display: grid; grid-template-columns: 1fr 5fr; gap: 32px; padding-top: clamp(80px, 12vh, 160px); }
.intro__label { display: flex; flex-direction: column; gap: 10px; padding-top: .5em; }
.intro__text {
  font-size: clamp(28px, 4.1vw, 64px);
  line-height: 1.08; letter-spacing: -.025em;
  font-variation-settings: "wdth" 92, "wght" 500;
  max-width: 22ch;
}
.intro__text .word { opacity: .28; }
.intro__stats { grid-column: 2; display: flex; gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vh, 72px); flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-display); font-variation-settings: "wdth" 66, "wght" 900;
  font-size: clamp(56px, 7vw, 120px); line-height: .85; letter-spacing: -.03em;
}
.stat__num::after { content: "+"; color: var(--cobalt); font-size: .5em; vertical-align: top; margin-left: .05em; }
.stat:last-child .stat__num::after { content: ""; }
.stat__lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .intro__label { flex-direction: row; gap: 18px; }
  .intro__stats { grid-column: 1; }
}

/* ─── Work ─── */
.work { padding-bottom: clamp(80px, 10vh, 140px); }
.work__list { border-top: 1px solid var(--line); }
.work__item { border-bottom: 1px solid var(--line); transition: border-color .9s var(--ease-io); }
.work__link { display: block; position: relative; }
.work__media { display: none; }
.work__row {
  display: grid; grid-template-columns: 60px 1fr auto auto 60px;
  align-items: center; gap: 24px;
  padding: clamp(22px, 3.2vh, 40px) 0;
  position: relative;
}
.work__idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.work__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 70, "wght" 800;
  text-transform: uppercase; letter-spacing: -.025em; line-height: .9;
  font-size: clamp(36px, 6.4vw, 108px);
  transition: transform .7s var(--ease-io), font-variation-settings .7s var(--ease-io);
}
.work__type, .work__year { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.work__arrow {
  justify-self: end;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 18px;
  transition: background-color .5s var(--ease-io), color .5s, transform .7s var(--ease-io), border-color .9s var(--ease-io);
}
.work__tags { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-io); }
.work__tags-inner { overflow: hidden; }
.marquee { overflow: hidden; white-space: nowrap; padding-bottom: clamp(18px, 2.4vh, 28px); }
.marquee__track { display: inline-flex; gap: 0; animation: marquee 22s linear infinite; padding-left: 60px; }
.marquee__track span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; margin-right: 10px; color: var(--muted);
}
@keyframes marquee { to { transform: translateX(-50%); } }

@media (hover: hover) {
  .work__link:hover .work__tags, .work__link:focus-visible .work__tags { grid-template-rows: 1fr; }
  .work__link:hover .work__title { transform: translateX(16px); font-variation-settings: "wdth" 80, "wght" 800; }
  .work__link:hover .work__arrow { background: var(--cobalt); color: var(--paper); border-color: var(--cobalt); transform: rotate(45deg); }
  .work__item:hover ~ .work__item .work__row, .work__list:hover .work__item:not(:hover) .work__row { opacity: .35; }
  .work__row { transition: opacity .5s; }
}

.work__preview {
  position: fixed; top: 0; left: 0; z-index: 8000;
  width: clamp(280px, 26vw, 440px); aspect-ratio: 16 / 11;
  pointer-events: none;
  opacity: 0; transform-origin: center;
  display: none;
}
@media (hover: hover) and (pointer: fine) { .work__preview { display: block; } }
.work__preview-inner {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55);
  background: #000;
}
.work__preview-inner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transform: scale(1.12); transition: opacity .5s var(--ease-out), transform .9s var(--ease-out);
}
.work__preview-inner img.is-active { opacity: 1; transform: scale(1); }

.work__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(40px, 6vh, 72px);
}
.work__foot p { max-width: 44ch; color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  .work__media { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 10; margin-top: 24px; }
  .work__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .work__row { grid-template-columns: 36px 1fr 44px; grid-template-rows: auto auto; padding: 20px 0 24px; row-gap: 10px; }
  .work__title { grid-column: 2; font-size: 11vw; }
  .work__type, .work__year { grid-row: 2; grid-column: 2; }
  .work__year { justify-self: end; margin-right: 0; }
  .work__type::after { content: ""; }
  .work__arrow { grid-row: 1; grid-column: 3; }
  .work__tags { grid-template-rows: 1fr; }
  .marquee { padding-bottom: 8px; }
}

/* ─── Services ─── */
.services__lede {
  max-width: 44ch; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; letter-spacing: -.01em;
  color: var(--muted); margin: -20px 0 clamp(40px, 6vh, 80px) auto;
  font-variation-settings: "wdth" 96, "wght" 450;
}
.cards { display: flex; flex-direction: column; gap: 16px; }
.card {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: var(--paper); color: var(--ink);
  border: 1px solid rgba(16, 16, 18, .16);
  border-radius: 18px;
  padding: clamp(24px, 3.4vw, 48px);
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(24px, 3vw, 56px);
  min-height: clamp(360px, 52vh, 520px);
  transform-origin: top center;
  will-change: transform;
}
.card:nth-child(2) { top: calc(var(--nav-h) + 32px); }
.card:nth-child(3) { top: calc(var(--nav-h) + 48px); }
.card:nth-child(2) { background: #e8e3d7; }
.card:nth-child(3) { background: var(--cobalt); color: var(--paper); border-color: transparent; }
.card__head { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.card__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; opacity: .8; }
.card__title {
  font-family: var(--font-display); font-variation-settings: "wdth" 68, "wght" 900;
  text-transform: uppercase; letter-spacing: -.03em; line-height: .84;
  font-size: clamp(48px, 6.4vw, 108px);
}
.card__desc { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.35; letter-spacing: -.01em; align-self: end; max-width: 30ch; font-variation-settings: "wdth" 96, "wght" 450; opacity: .85; }
.card__list { align-self: end; display: flex; flex-direction: column; }
.card__list li {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 0; border-top: 1px solid currentColor; opacity: .9;
  display: flex; justify-content: space-between;
}
.card__list li::after { content: "↗"; opacity: .4; }
@media (max-width: 860px) {
  .card { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .card__head { gap: 20px; }
  .card__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
}

/* ─── Band ─── */
.band {
  overflow: hidden; background: var(--cobalt); color: var(--paper);
  padding: clamp(20px, 3vh, 36px) 0;
  transform: rotate(-2deg) scale(1.04);
  margin: clamp(40px, 8vh, 100px) 0;
}
.band__track { display: flex; align-items: center; white-space: nowrap; will-change: transform; }
.band__track span {
  font-family: var(--font-display); font-variation-settings: "wdth" 70, "wght" 800;
  text-transform: uppercase; letter-spacing: -.02em; line-height: 1;
  font-size: clamp(40px, 7vw, 120px);
  padding: 0 .35em;
}
.band__track i { font-style: normal; font-size: clamp(18px, 2.4vw, 40px); opacity: .7; }

/* ─── About ─── */
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.about__media { position: sticky; top: calc(var(--nav-h) + 24px); }
.about__frame {
  position: relative;
  transform-style: preserve-3d;
  padding: 8% 6% 0;
}
/* soft cobalt light behind the head */
.about__frame::before {
  content: ""; position: absolute; inset: 10% 4% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(35, 56, 255, .55), rgba(35, 56, 255, .18) 55%, transparent 75%);
  filter: blur(28px);
  z-index: 0;
}
.about__frame img {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  filter: drop-shadow(0 0 28px rgba(35, 56, 255, .55)) drop-shadow(0 24px 40px rgba(16, 16, 18, .25));
  will-change: transform;
}
.about__body { display: flex; flex-direction: column; gap: clamp(24px, 4vh, 40px); }
.about__title {
  font-family: var(--font-display); font-variation-settings: "wdth" 66, "wght" 900;
  text-transform: uppercase; letter-spacing: -.03em; line-height: .9;
  font-size: clamp(56px, 8.4vw, 150px);
}
.about__title em { text-transform: none; letter-spacing: -.01em; color: var(--cobalt); font-size: 1.02em; }
.about__copy { display: flex; flex-direction: column; gap: 18px; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.4; letter-spacing: -.01em; max-width: 46ch; font-variation-settings: "wdth" 96, "wght" 450; }
.about__copy a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--cobalt); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line); }
.facts > div { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 15px; letter-spacing: -.005em; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__media { position: relative; top: 0; max-width: 420px; }
  .facts { grid-template-columns: 1fr; }
}

/* ─── Contact ─── */
.contact { display: flex; flex-direction: column; gap: clamp(32px, 5vh, 64px); padding-bottom: clamp(48px, 8vh, 96px); }
.contact__title {
  font-family: var(--font-display); font-variation-settings: "wdth" 64, "wght" 900;
  text-transform: uppercase; letter-spacing: -.035em; line-height: .88;
  font-size: clamp(72px, 15.5vw, 300px);
}
.contact__title em { text-transform: none; letter-spacing: -.02em; color: var(--cobalt); font-size: 1.02em; }
.contact__row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.contact__email {
  font-size: clamp(22px, 3.6vw, 56px); letter-spacing: -.02em; line-height: 1;
  font-variation-settings: "wdth" 80, "wght" 500;
  position: relative;
}
.contact__email::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-io); }
.contact__email:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__copy { margin-left: auto; }
.contact__copy.is-copied { background: var(--cobalt); color: var(--paper); border-color: var(--cobalt); }
.contact__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 15px; }
.contact__links > div { display: flex; flex-direction: column; gap: 6px; }
.contact__links .label { margin-bottom: 6px; }
.contact__links a { width: max-content; padding: 11px 0; }
@media (max-width: 700px) { .contact__links { grid-template-columns: 1fr 1fr; } .contact__links > div:last-child { grid-column: 1 / -1; } }

/* ─── Footer ─── */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px var(--gutter) max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.footer a { padding: 13px 0; }
.footer__top { color: var(--fg); }
@media (max-width: 700px) { .footer__mid { display: none; } }

/* ─── Split text helpers ─── */
.line-mask { overflow: hidden; display: block; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__cue-line i, .marquee__track, .tag--live i, .dot { animation: none !important; }
  .hero__word, .hero__fade, .menu__word, .rotator__word { transform: none !important; opacity: 1 !important; }
  .intro__text .word { opacity: 1 !important; }
  .loader { display: none; }
}

/* ─── Accessibility ─── */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 10000;
  padding: 12px 18px; border-radius: 999px;
  background: var(--cobalt); color: var(--paper);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; outline: none; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.work__link:focus-visible { outline-offset: -2px; }
[tabindex="-1"]:focus { outline: none; }
body.cursor-custom, body.cursor-custom a, body.cursor-custom button { cursor: none; }
.btn svg { width: 14px; height: 14px; flex: none; }
