/* Thounej — "Mesh" ------------------------------------------------- */

:root {
  --ink:      #050505;
  --paper:    #ededed;
  --bright:   #fafafa;
  --dim:      #9a9a9a;
  --dimmer:   #6f6f6f;
  --mg:       #e6338f;
  --wire:     rgba(237, 237, 237, .14);
  --wire-2:   rgba(237, 237, 237, .24);
  --wire-3:   rgba(237, 237, 237, .30);
  --pad:      64px;
  --wrap:     1440px;
  --ease:     cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Archivo, 'Helvetica Neue', Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p  { margin: 0; }
ul, dl { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

a { color: var(--paper); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--mg); }

.lbl {
  font-family: 'Space Mono', ui-monospace, Menlo, monospace;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
}
.dim { color: var(--dim); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--mg); color: var(--ink); padding: 12px 18px;
}
.skip:focus { left: 0; }

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

/* ── nav ──────────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  height: 80px; padding: 0 var(--pad);
  border-bottom: 1px solid var(--wire);
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 5, 5, .86);
  backdrop-filter: blur(10px);
}
.nav__logo { display: flex; }
.nav__logo img { display: block; height: 20px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  font-family: 'Space Mono', ui-monospace, Menlo, monospace;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
}
.nav__status { color: var(--mg); }

/* ── hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 44px var(--pad) 0; max-width: var(--wrap); margin: 0 auto; }

.hero__spine {
  position: absolute; left: 22px; top: 300px; color: var(--dimmer);
  writing-mode: vertical-rl; transform: rotate(180deg);
}

.reel { position: relative; border: 1px solid var(--wire-2); overflow: hidden; }
.reel__video {
  display: block; width: 100%; height: 784px; object-fit: cover;
  filter: grayscale(.45) contrast(1.12);
  background: #000 url("assets/reel-poster.jpg") center / cover no-repeat;
}
.reel__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to top,
    rgba(5,5,5,.95) 0%, rgba(5,5,5,.86) 18%, rgba(5,5,5,.55) 40%, rgba(5,5,5,0) 66%);
}
.reel__top {
  position: absolute; top: 24px; left: 26px; right: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: var(--bright);
}
.reel__marks { display: flex; align-items: center; gap: 16px; opacity: .8; }

.reel__foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 56px;
  padding: 0 46px 44px;
}
.hero__copy { display: flex; flex-direction: column; gap: 24px; max-width: 820px; }
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--mg); }
.eyebrow__rule { width: 40px; height: 1px; background: var(--mg); display: block; }
.hero__title {
  font-family: Syncopate, 'Trebuchet MS', sans-serif;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
  font-size: clamp(30px, 5.2vw, 74px); line-height: 1.1; color: var(--bright);
  max-width: 13ch; text-wrap: pretty;
}

.reel__controls { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex-shrink: 0; }
.reel__row { display: flex; align-items: center; gap: 20px; }
.reel__hint { color: var(--bright); }
.reel__play {
  width: 84px; height: 84px; flex-shrink: 0; padding: 0; cursor: pointer;
  border: 1px solid var(--mg); background: rgba(5,5,5,.35); color: var(--mg);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.reel__play:hover { background: rgba(230, 51, 143, .18); }
.reel__play .ico-pause { display: none; }
.reel.is-playing .reel__play .ico-play  { display: none; }
.reel.is-playing .reel__play .ico-pause { display: block; }
/* ── volume ───────────────────────────────────────────────────────── */
.vol {
  display: flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 14px;
  border: 1px solid rgba(237, 237, 237, .28); background: rgba(5, 5, 5, .45);
}
.vol__btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  width: 24px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--bright); transition: color .2s var(--ease);
}
.vol__btn:hover { color: var(--mg); }
.vol__btn .ico-loud { display: none; }
.reel.is-loud .vol__btn { color: var(--mg); }
.reel.is-loud .vol__btn .ico-mute { display: none; }
.reel.is-loud .vol__btn .ico-loud { display: block; }

.vol__range {
  -webkit-appearance: none; appearance: none;
  width: 104px; height: 44px; margin: 0; padding: 0;
  background: transparent; cursor: pointer; flex-shrink: 0;
}
.vol__range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--mg) 0 var(--pct, 20%), rgba(237,237,237,.26) var(--pct, 20%) 100%);
}
.vol__range::-moz-range-track { height: 2px; background: rgba(237,237,237,.26); }
.vol__range::-moz-range-progress { height: 2px; background: var(--mg); }
.vol__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 8px; height: 16px; margin-top: -7px;
  background: var(--bright); border: 0; border-radius: 0;
  transition: background .2s var(--ease);
}
.vol__range::-moz-range-thumb {
  width: 8px; height: 16px; background: var(--bright);
  border: 0; border-radius: 0;
}
.vol__range:hover::-webkit-slider-thumb { background: var(--mg); }
.vol__range:hover::-moz-range-thumb { background: var(--mg); }
.reel.is-muted .vol__range::-webkit-slider-runnable-track {
  background: linear-gradient(to right, rgba(237,237,237,.4) 0 var(--pct, 20%), rgba(237,237,237,.16) var(--pct, 20%) 100%);
}

.vol__val {
  font-family: 'Space Mono', ui-monospace, Menlo, monospace;
  font-size: 11px; color: var(--dim); width: 22px; text-align: right; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.hero__below {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 72px;
  padding-top: 40px;
}
.lede { font-size: 17px; line-height: 1.66; color: var(--dim); max-width: 56ch; text-wrap: pretty; }

.btns { display: flex; gap: 12px; flex-shrink: 0; }
.btn {
  display: flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 28px;
  /* a <button> otherwise keeps the UA's light buttonface background, which
     made paper-coloured text invisible on the ghost variant */
  -webkit-appearance: none; appearance: none;
  background: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--fill  { background: var(--mg); color: var(--ink); }
.btn--fill:hover  { background: var(--bright); color: var(--ink); }
.btn--ghost { border: 1px solid var(--wire-3); color: var(--paper); }
.btn--ghost:hover { border-color: var(--mg); color: var(--mg); }
.btn--lg { height: 60px; padding: 0 40px; font-size: 12px; }

/* ── clients ──────────────────────────────────────────────────────── */
.clients {
  display: flex; align-items: center; gap: 44px;
  max-width: var(--wrap); margin: 56px auto 0; padding: 24px var(--pad);
  border-top: 1px solid var(--wire); border-bottom: 1px solid var(--wire);
}
.clients__cap { color: var(--dimmer); flex-shrink: 0; }
.clients__list { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.clients__list li { display: flex; align-items: center; }
/* padding gets the 24px logo up to a 44px touch target */
.clients__link { display: flex; align-items: center; padding: 10px 0; min-height: 44px; }

/* Held back at rest so three brands don't out-shout a page built on one
   accent; full colour on hover. */
.clients__logo {
  display: block; height: 24px; width: auto;
  filter: grayscale(1); opacity: .6;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}

/* Optical centring. Each logo is cropped differently, so their boxes line up
   while the letterforms don't: measured against the peak-ink band, Asterisk's
   caps sit at 54.9% of its box and unboring's at 43.2% (its drips drag the box
   down). Percentage translate resolves against the element's own height, so
   one value works at any size. Latitude measured 49% — near enough. */
.clients__logo--tall { height: 34px; }
.clients__logo[src*="asterisk"], .card__logo[src*="asterisk"] { transform: translateY(-5%); }
.clients__logo[src*="unboring"], .card__logo[src*="unboring"] { transform: translateY(7%); }
.clients__link:hover .clients__logo,
.clients__link:focus-visible .clients__logo { filter: none; opacity: 1; }

/* ── sections ─────────────────────────────────────────────────────── */
.sec { max-width: var(--wrap); margin: 0 auto; padding: 96px var(--pad) 0; }
.sec__head { display: flex; align-items: center; gap: 20px; margin-bottom: 44px; color: var(--mg); }
.sec__rule { flex-grow: 1; height: 1px; background: var(--wire); display: block; }
.sec__title {
  font-family: Syncopate, 'Trebuchet MS', sans-serif;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
  font-size: clamp(24px, 2.9vw, 40px); line-height: 1.2; color: var(--bright);
  max-width: 20ch; margin-bottom: 56px; text-wrap: pretty;
}

/* ── work cards ───────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 18px; }
.card__media { position: relative; overflow: hidden; }
.card__media img {
  display: block; width: 100%; height: 250px; object-fit: cover;
  filter: grayscale(.6) contrast(1.1);
  transition: filter .45s var(--ease), transform .45s var(--ease);
}
.card:hover .card__media img { filter: grayscale(0) contrast(1.05); transform: scale(1.03); }
.card__c { position: absolute; width: 22px; height: 22px; display: block; }
.card__c--tl { top: 0; left: 0;  border-top: 1px solid var(--mg); border-left: 1px solid var(--mg); }
.card__c--br { bottom: 0; right: 0; border-bottom: 1px solid var(--mg); border-right: 1px solid var(--mg); }
.card__meta { display: flex; align-items: center; gap: 12px; color: var(--mg); }
.card__meta .lbl { color: var(--dimmer); }
.card__num { font-family: 'Space Mono', ui-monospace, Menlo, monospace; font-size: 11px; }
.card { color: var(--paper); }
.card:hover { color: var(--paper); }
.card__title { margin: 0; }
/* the client's own wordmark stands in for the project title */
.card__logo {
  display: block; height: 26px; width: auto; max-width: 100%;
  filter: grayscale(1); opacity: .72;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.card:hover .card__logo,
.card:focus-visible .card__logo { filter: none; opacity: 1; }

.card__title--text {
  font-family: Syncopate, 'Trebuchet MS', sans-serif;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
  font-size: 18px; line-height: 1.25; color: var(--bright);
}
.card__body { font-size: 15px; line-height: 1.6; color: var(--dim); text-wrap: pretty; }

.card__go {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start; margin-top: 2px; min-height: 32px;
  color: var(--dimmer); transition: color .3s var(--ease);
}
.card__go::after {
  content: ""; width: 9px; height: 9px; flex-shrink: 0;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
}
.card__go:hover, .card__go:focus-visible { color: var(--mg); }

/* the still is the click target for the video, so it reads as pressable */
.card__media { cursor: pointer; }


/* ── client films ─────────────────────────────────────────────────── */
.films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.film { display: flex; flex-direction: column; gap: 20px; }
.film__media { position: relative; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.film__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  border: 1px solid var(--mg); background: rgba(5,5,5,.45); color: var(--mg);
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.film__play:hover { background: rgba(230, 51, 143, .2); }
.film__media.is-playing .film__play { opacity: 0; pointer-events: none; }
.film__body { display: flex; flex-direction: column; gap: 14px; }

/* ── gameplay carousel ────────────────────────────────────────────── */
.reel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 44px; }
.reel-head .sec__title { margin-bottom: 0; }
.reel-head__note { font-size: 15px; line-height: 1.6; color: var(--dim); max-width: 30ch; flex-shrink: 0; }

.carousel { position: relative; }
.carousel__stage { position: relative; overflow: hidden; border: 1px solid var(--wire-2); background: #000; }
.carousel__track { display: flex; transition: transform .5s var(--ease); }
.carousel__slide { flex: 0 0 100%; position: relative; aspect-ratio: 16 / 9; }
.carousel__thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.carousel__frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.carousel__veil {
  position: absolute; inset: 0; cursor: pointer; border: 0; padding: 0; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  gap: 10px; text-align: left; color: var(--paper);
  background: linear-gradient(to top, rgba(5,5,5,.9) 0%, rgba(5,5,5,.5) 34%, rgba(5,5,5,0) 68%);
  padding: 0 0 34px 34px;
  transition: background .3s var(--ease);
}
.carousel__veil:hover { background: linear-gradient(to top, rgba(5,5,5,.92) 0%, rgba(5,5,5,.58) 40%, rgba(5,5,5,.12) 75%); }
.carousel__chan { color: var(--mg); }
.carousel__name {
  font-family: Syncopate, 'Trebuchet MS', sans-serif;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
  font-size: clamp(16px, 1.8vw, 24px); line-height: 1.22; color: var(--bright); max-width: 22ch;
}
.carousel__go { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--paper); }
.carousel__go span {
  width: 42px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--mg); color: var(--mg);
}

.carousel__nav {
  position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; z-index: 3;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  border: 1px solid var(--wire-3); background: rgba(5,5,5,.72); color: var(--paper);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.carousel__nav:hover { border-color: var(--mg); color: var(--mg); background: rgba(5,5,5,.9); }
.carousel__nav--prev { left: 18px; }
.carousel__nav--next { right: 18px; }

.carousel__bar { display: flex; align-items: center; gap: 24px; padding-top: 18px; }
.carousel__count { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.carousel__dots { display: flex; align-items: center; gap: 8px; flex-grow: 1; }
.carousel__dot {
  width: 26px; height: 2px; padding: 0; border: 0; cursor: pointer;
  background: rgba(237,237,237,.26); transition: background .3s var(--ease);
}
.carousel__dot.is-on { background: var(--mg); }
.carousel__hint { color: var(--dimmer); flex-shrink: 0; }

@media (max-width: 860px) {
  .films { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .reel-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .reel-head__note { max-width: none; }
  .carousel__veil { padding: 0 0 20px 18px; }
  .carousel__nav { width: 44px; height: 44px; }
  .carousel__nav--prev { left: 8px; }
  .carousel__nav--next { right: 8px; }
  .carousel__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track { transition: none; }
}

/* ── about ────────────────────────────────────────────────────────── */
.portrait { margin: 0; width: 460px; max-width: 100%; aspect-ratio: 460 / 600; overflow: hidden; }
.portrait img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.25) brightness(.92);
}

.about { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 80px; align-items: start; }









.about__body { display: flex; flex-direction: column; gap: 26px; padding-top: 8px; }
.about__title {
  font-family: Syncopate, 'Trebuchet MS', sans-serif;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
  font-size: clamp(22px, 2.5vw, 34px); line-height: 1.22; color: var(--bright);
  max-width: 17ch; text-wrap: pretty;
}
.about__body p { font-size: 17px; line-height: 1.72; color: #c4c4c4; max-width: 60ch; text-wrap: pretty; }
.about__body p.dim { color: #8a8a8a; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 14px; }
/* the tools list is long, so it gets its own full-width row rather than a narrow column */
.facts > div:last-child { grid-column: 1 / -1; }
.facts > div { border-top: 1px solid var(--wire-2); padding-top: 16px; }
.facts dt { color: var(--dimmer); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 16px; color: var(--paper); }

/* ── availability ─────────────────────────────────────────────────── */
.status {
  position: relative; margin-top: 6px;
  border-top: 1px solid var(--wire-2); border-bottom: 1px solid var(--wire-2);
  padding: 16px 0; max-width: 460px;
}
.status__row { display: flex; align-items: center; gap: 12px; }
.status__gap { flex-grow: 1; }

.status__dot {
  width: 7px; height: 7px; flex-shrink: 0; display: block;
  background: var(--dimmer); transition: background .3s var(--ease);
}
.status.is-live .status__dot { background: var(--mg); animation: st-pulse 2.4s ease-in-out infinite; }
.status.is-away .status__dot { background: #7a6a4e; }
@keyframes st-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.status__label { color: var(--dim); }
.status.is-live .status__label { color: var(--paper); }
.status__clock { color: var(--dimmer); font-variant-numeric: tabular-nums; }

/* ── contact ──────────────────────────────────────────────────────── */
.contact {
  max-width: var(--wrap); margin: 0 auto;
  padding: 128px var(--pad) 96px;
  display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center;
}
.contact__mark { color: var(--mg); }
.contact__title {
  font-family: Syncopate, 'Trebuchet MS', sans-serif;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
  font-size: clamp(26px, 3.6vw, 48px); line-height: 1.18; color: var(--bright);
  max-width: 18ch; text-wrap: pretty;
}
.contact__lede { font-size: 17px; line-height: 1.65; color: var(--dim); max-width: 52ch; text-wrap: pretty; }

/* ── footer ───────────────────────────────────────────────────────── */
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  max-width: var(--wrap); margin: 0 auto;
  padding: 30px var(--pad) 40px; border-top: 1px solid var(--wire);
  color: var(--dimmer);
}
.foot img { display: block; height: 22px; width: auto; }
.foot__social { display: flex; gap: 26px; }
.foot__social a { color: var(--dimmer); }

/* ── scroll reveals ───────────────────────────────────────────────── */
.js .reveal {
  opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
}
.js .reveal.in-view { opacity: 1; transform: none; filter: none; }
.cards .card:nth-child(2).in-view { transition-delay: .1s; }
.cards .card:nth-child(3).in-view { transition-delay: .2s; }

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .reel__video { height: 62vh; min-height: 420px; }
  .hero__spine { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 380px minmax(0, 1fr); gap: 48px; }
  }

@media (max-width: 860px) {
  :root { --pad: 22px; }
  .nav { height: 68px; gap: 20px; }
  .nav__links { gap: 20px; }
  .nav__status { display: none; }

  .reel__video { height: 78vh; min-height: 460px; }
  /* Syncopate is a very wide face — 13ch at 30px runs past the frame and clips. */
  .hero__title { font-size: clamp(21px, 6.2vw, 30px); max-width: 100%; }
  .reel__foot { flex-direction: column; align-items: flex-start; gap: 26px; padding: 0 22px 26px; }
  .reel__controls { flex-direction: row; align-items: center; gap: 16px; align-self: stretch; }
  .reel__play { width: 56px; height: 56px; }
  .reel__sound { text-align: left; }


  .hero__below { flex-direction: column; align-items: stretch; gap: 28px; }
  .btns { flex-direction: column; }
  .btn { width: 100%; }

  .clients { flex-direction: column; align-items: flex-start; gap: 16px; }
  .clients__list { gap: 22px; }

  .sec { padding-top: 72px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .card__media img { height: 210px; }

  .about { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts > div { padding: 16px 0; }

  .contact { padding: 88px var(--pad) 72px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
            .card:hover .card__media img { transform: none; }
}

/* ── contact dialog ───────────────────────────────────────────────── */
.modal[hidden] { display: none; }        /* [hidden] loses to our own display */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(5, 5, 5, .88); backdrop-filter: blur(6px);
  opacity: 0;
}
.modal.is-open .modal__scrim { animation: md-scrim .22s var(--ease) forwards; }
@keyframes md-scrim { to { opacity: 1; } }

.modal__panel {
  position: relative; width: 100%; max-width: 560px;
  background: var(--ink); border: 1px solid var(--wire-2);
  padding: 34px 36px 36px;
  display: flex; flex-direction: column; gap: 22px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  opacity: 0; transform: translateY(12px) scale(.97);
}
.modal.is-open .modal__panel { animation: md-panel .26s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes md-panel { to { opacity: 1; transform: none; } }

/* flush inside the border, not at -1px: a scrolling panel turns that 1px of
   overflow into an unwanted scrollbar on both axes */
.modal__c { position: absolute; width: 22px; height: 22px; display: block; }
.modal__c--tl { top: 0; left: 0;     border-top: 1px solid var(--mg); border-left: 1px solid var(--mg); }
.modal__c--br { bottom: 0; right: 0; border-bottom: 1px solid var(--mg); border-right: 1px solid var(--mg); }

.modal__head { display: flex; align-items: center; gap: 12px; color: var(--mg); }
.modal__gap { flex-grow: 1; }
.modal__x {
  background: none; border: 0; padding: 0; cursor: pointer;
  width: 44px; height: 44px; margin: -12px -12px -12px 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); transition: color .2s var(--ease);
}
.modal__x:hover { color: var(--mg); }

.modal__title {
  font-family: Syncopate, 'Trebuchet MS', sans-serif;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; color: var(--bright);
}
.modal__lede { font-size: 15px; line-height: 1.6; color: var(--dim); }

.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field__label { color: var(--dimmer); }
.field__input {
  font-family: Archivo, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 15px; color: var(--paper);
  background: rgba(237, 237, 237, .03);
  border: 1px solid var(--wire-2); border-radius: 0;
  padding: 13px 14px; width: 100%; min-height: 48px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field__input::placeholder { color: var(--dimmer); }
.field__input:focus {
  outline: none; border-color: var(--mg); background: rgba(237, 237, 237, .05);
}
.field__area { resize: vertical; min-height: 120px; line-height: 1.55; }
.field.is-bad .field__input { border-color: #d4453f; }
.field__err {
  font-family: 'Space Mono', ui-monospace, Menlo, monospace;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: #d4453f; min-height: 12px;
}
.field__trap {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.form__send { align-self: flex-start; min-width: 160px; }
.form__send[disabled] { opacity: .5; cursor: default; }
.form__note { font-size: 14px; line-height: 1.55; color: var(--dim); min-height: 20px; }
.form__note.is-ok  { color: var(--mg); }
.form__note.is-bad { color: #d4453f; }

.contact__alt { color: var(--dimmer); }
.contact__alt a { color: var(--dim); border-bottom: 1px solid var(--wire-3); }
.contact__alt a:hover { color: var(--mg); border-color: var(--mg); }

body.is-locked { overflow: hidden; }

@media (max-width: 860px) {
  .modal { padding: 0; align-items: stretch; }
  .modal__panel {
    max-width: none; max-height: none; min-height: 100%;
    padding: 26px 22px 32px; border: 0; justify-content: flex-start;
  }
  .form__send { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .modal.is-open .modal__scrim,
  .modal.is-open .modal__panel { animation: none; opacity: 1; transform: none; }
}

/* ── cookie consent (Silktide) overrides ───────────────────────────── */
html #stcm-wrapper {
  --boxShadow: -5px 5px 10px 0px #00000012, 0px 0px 50px 0px #0000001a;
  --fontFamily: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --primaryColor: #E6338F;
  --backgroundColor: #050505;
  --textColor: #FAFAFA;
  --backdropBackgroundColor: #00000033;
  --backdropBackgroundBlur: 0px;
  --iconColor: #FAFAFA;
  --iconBackgroundColor: #050505;
}

/* Silktide's own promo link in the preferences panel. The library is MIT, which
   asks for the notice in the source and not in the rendered UI, so hiding it is
   fine — their copyright header stays untouched in the file we load from the CDN. */
#stcm-wrapper .stcm-credit-link { display: none !important; }

/* ── 04 graphic design grid ───────────────────────────────────────── */
/* Multi-column rather than grid: the posters are mixed ratios (four portrait,
   one 16:9 overlay) and columns let each keep its own shape with no gaps and
   no cropping — important when the work IS the composition. */
.gd { columns: 3; column-gap: 14px; margin-top: 28px; }

.gd__item {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; break-inside: avoid; margin: 0 0 14px;
  padding: 0; border: 0; border-radius: 0; background: none;
  cursor: pointer; text-align: left; position: relative;
  color: var(--paper);
}
.gd__img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--wire-2);
  /* these are colour pieces, so they stay in colour — a light dim at rest keeps
     the grid calm against the black without hiding the actual design work */
  opacity: .86;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.gd__item:hover .gd__img,
.gd__item:focus-visible .gd__img { opacity: 1; border-color: var(--mg); }
.gd__item:focus-visible { outline: 1px solid var(--mg); outline-offset: 3px; }

.gd__cap { display: flex; flex-direction: column; gap: 3px; padding: 9px 1px 0; }
.gd__title { font-size: 14px; color: var(--paper); }
.gd__kind  { color: var(--dimmer); }
.gd__item:hover .gd__kind { color: var(--mg); }

@media (max-width: 860px) { .gd { columns: 2; } }
@media (max-width: 480px) { .gd { columns: 1; } }

/* ── lightbox ─────────────────────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.lb[hidden] { display: none; }
.lb__scrim { position: absolute; inset: 0; background: rgba(5,5,5,.93); }

.lb__panel {
  position: relative; max-width: min(1100px, 100%); max-height: 100%;
  display: flex; flex-direction: column; background: var(--ink);
  border: 1px solid var(--wire-2); padding: 14px;
}
.lb__img {
  display: block; margin: 0 auto; max-width: 100%;
  max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain;
}

.lb__c { position: absolute; width: 9px; height: 9px; border: 1px solid var(--mg); pointer-events: none; }
.lb__c--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.lb__c--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.lb__bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--wire-2); }
.lb__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb__title { font-size: 14px; color: var(--paper); }
.lb__kind { color: var(--dimmer); }
.lb__gap { flex-grow: 1; }
.lb__count { color: var(--dimmer); }

.lb__nav, .lb__x {
  -webkit-appearance: none; appearance: none;
  position: absolute; display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--wire-2); border-radius: 0; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lb__nav { top: 50%; transform: translateY(-50%); width: 40px; height: 56px; }
.lb__nav--prev { left: -21px; }
.lb__nav--next { right: -21px; }
.lb__x { top: -17px; right: -17px; width: 34px; height: 34px; }
.lb__nav:hover, .lb__x:hover,
.lb__nav:focus-visible, .lb__x:focus-visible { border-color: var(--mg); color: var(--mg); }

@media (max-width: 720px) {
  .lb { padding: 14px; }
  .lb__nav--prev { left: 0; }
  .lb__nav--next { right: 0; }
  .lb__x { top: 0; right: 0; border-top: 0; border-right: 0; }
  .lb__img { max-height: calc(100vh - 190px); }
}

@media (prefers-reduced-motion: reduce) {
  .gd__img, .lb__nav, .lb__x { transition: none; }
}
