/* ============================================================
   Addison Houck — Portfolio
   Dark cinematic theme with blue accents
   ============================================================ */

:root {
  /* Color tokens */
  --bg: #05070c;
  --surface: #0b111d;
  --surface-2: #111a2b;
  --line: rgba(140, 175, 230, 0.14);
  --line-strong: rgba(140, 175, 230, 0.28);
  --text: #eef2f8;
  --muted: #9eabc0;
  --accent: #5aa9ff;
  --accent-strong: #2f7deb;
  --accent-glow: rgba(90, 169, 255, 0.35);
  --on-accent: #03101f;
  --cyan: #8fdcff;
  --rec: #ff4d5e;

  /* Type */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing (8pt rhythm) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius: 4px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -60px;
  z-index: 2000;
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--s-1) var(--s-2);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--s-2);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.wordmark {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 75;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.wordmark .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 10px var(--rec);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 200ms var(--ease-out);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-links a.btn-primary {
  color: var(--on-accent);
  margin-left: var(--s-1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out),
    border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--cyan);
  box-shadow: 0 0 28px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.site-nav .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
}

/* ---------- Hero (About) ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 112px) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(47, 125, 235, 0.22) 0%, rgba(47, 125, 235, 0) 65%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.slate {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  margin-bottom: var(--s-3);
}

.slate span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-size: clamp(64px, 13vw, 184px);
  line-height: 0.84;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero h1 .outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.tagline {
  margin: var(--s-4) 0 0;
  max-width: 30ch;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  font-weight: 400;
  color: var(--text);
  text-wrap: balance;
}

.tagline strong {
  font-weight: 700;
  color: var(--accent);
}

.emmy-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s-3);
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.emmy-pill svg {
  width: 16px;
  height: 16px;
  color: #e8c46a;
  flex-shrink: 0;
}
.emmy-pill em {
  font-style: normal;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

/* Headshot in a viewfinder */
.viewfinder {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  /* Blue backlight behind the subject */
  background:
    radial-gradient(55% 40% at 50% 28%, rgba(47, 125, 235, 0.3), transparent 70%),
    linear-gradient(180deg, #0d1628 0%, #070b13 100%);
}

.viewfinder img,
.viewfinder .headshot-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Cinematic grade: cooler, less saturated, with a soft blue rim */
.viewfinder img {
  filter: saturate(0.88) contrast(1.05) brightness(0.92)
    drop-shadow(0 0 18px rgba(90, 169, 255, 0.28));
}

.vf-grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 52%, rgba(5, 7, 12, 0.9) 100%),
    radial-gradient(120% 95% at 50% 35%, transparent 55%, rgba(5, 7, 12, 0.6) 100%);
}

/* Blue tint blended into the photo's colors */
.vf-grade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, #5aa9ff 0%, #1d4f9e 100%);
  mix-blend-mode: soft-light;
  opacity: 0.22;
}

.headshot-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-size: 120px;
  color: var(--surface-2);
  -webkit-text-stroke: 1px var(--line-strong);
  background: linear-gradient(160deg, #0f1a2e, #070b13);
}

.viewfinder.no-photo img {
  display: none;
}
.viewfinder.no-photo .headshot-fallback {
  display: flex;
}

.vf-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--text);
  opacity: 0.85;
  pointer-events: none;
}
.vf-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.vf-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.vf-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.vf-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.vf-hud {
  position: absolute;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.vf-hud.top { top: 48px; }
.vf-hud.bottom { bottom: 48px; }

.rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rec::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rec);
  animation: blink 1.2s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 128px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 70;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  text-transform: uppercase;
}

/* Bio */
.bio {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
}

.bio-lead {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 85;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  text-wrap: balance;
}

.bio-lead span {
  color: var(--accent);
}

.bio-body p {
  margin: 0 0 var(--s-3);
  max-width: 62ch;
  color: #c9d3e3;
}

.bio-body p:last-child {
  margin-bottom: 0;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Category buttons */
.categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
}

.category {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background: var(--surface);
  transition: border-color 250ms var(--ease-out), transform 400ms var(--ease-out);
}

/* Darkening + blue tint over the preview so the text stays readable */
.category::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(5, 7, 12, 0.96) 0%, rgba(5, 7, 12, 0.7) 45%, rgba(5, 7, 12, 0.35) 100%),
    linear-gradient(200deg, rgba(47, 125, 235, 0.28), rgba(5, 7, 12, 0) 60%);
  transition: opacity 400ms var(--ease-out);
}

.category:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.category:hover::before {
  opacity: 0.8;
}

/* Rotating stills from the projects in each category */
.cat-preview {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #0c1424, #070a12);
}

.cat-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.85) brightness(0.9);
  transform: scale(1.04);
  transition: opacity 1400ms ease-in-out;
}

/* Keep the thumbnail's own title text out from behind the heading */
.cat-preview[data-preview="cinematography"] img {
  object-position: 85% center;
}

.cat-preview img.on,
.cat-preview img.out {
  animation: push-in 9s linear forwards;
}
.cat-preview img.on {
  opacity: 1;
}

@keyframes push-in {
  from { transform: scale(1.04); }
  to { transform: scale(1.14); }
}

.category .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.category h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  /* Sized to the card so the longest word ("Cinematography", ~7em) stays on one line */
  font-size: min(68px, calc(100cqi / 7.2));
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}

.category p {
  margin: var(--s-2) 0 0;
  color: #c3cddd;
  font-size: 15px;
  max-width: 32ch;
}

.category .go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.category .go svg {
  width: 18px;
  height: 18px;
  transition: transform 300ms var(--ease-out);
}
.category:hover .go svg {
  transform: translateX(6px);
}

/* CTA strip */
.cta {
  text-align: center;
}

.cta h2 {
  margin: 0 auto;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.cta h2 span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.cta p {
  margin: var(--s-3) auto var(--s-4);
  max-width: 46ch;
  color: var(--muted);
}

/* ---------- Work pages ---------- */

.page-head {
  padding: clamp(48px, 7vw, 96px) 0 var(--s-6);
}

.page-head h1 {
  margin: var(--s-2) 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-size: clamp(64px, 12vw, 168px);
  line-height: 0.85;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.page-head p {
  margin: var(--s-3) 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 18px;
}

.reel {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-bottom: var(--s-12);
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  font: inherit;
  isolation: isolate;
}

.tile-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform 900ms var(--ease-out);
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-card {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5%;
  overflow: hidden;
}

.tile-card span {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-size: clamp(80px, 16vw, 240px);
  line-height: 0.8;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(143, 220, 255, 0.22);
  white-space: nowrap;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 7, 12, 0.9) 0%, rgba(5, 7, 12, 0.45) 45%, rgba(5, 7, 12, 0.1) 100%),
    linear-gradient(0deg, rgba(5, 7, 12, 0.7) 0%, transparent 50%);
  transition: opacity 400ms var(--ease-out);
}

.tile-info {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  bottom: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 56px);
}

.tile-info .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.tile-info h2 {
  margin: 10px 0 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 70;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}

.tile-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.tile-play .circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out);
}
.tile-play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.tile:hover .tile-media {
  transform: scale(1.04);
}
.tile:hover .tile-play .circle {
  background: var(--accent);
  color: var(--on-accent);
}
.tile:hover {
  border-color: var(--line-strong);
}

.badge-emmy {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(5, 7, 12, 0.7);
  border: 1px solid rgba(232, 196, 106, 0.5);
  color: #f1d58c;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-emmy svg {
  width: 14px;
  height: 14px;
}

.other-work {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  justify-content: space-between;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
}

.other-work nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* ---------- Video modal ---------- */

.player {
  width: min(1200px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  overflow: auto;
}

.player::backdrop {
  background: rgba(2, 3, 6, 0.88);
  backdrop-filter: blur(6px);
}

.player[open] {
  animation: player-in 350ms var(--ease-out);
}

@keyframes player-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  text-align: center;
  padding: var(--s-3);
  background: radial-gradient(circle at 50% 40%, #0f1a2e, #020306 70%);
}

.player-empty strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 70;
  font-size: clamp(28px, 4vw, 48px);
  text-transform: uppercase;
}

.player-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) var(--s-4) var(--s-4);
}

.player-body h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 75;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  text-transform: uppercase;
}

.player-body p {
  margin: var(--s-2) 0 0;
  max-width: 60ch;
  color: #c3cddd;
}

.player-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(5, 7, 12, 0.8);
  color: var(--text);
  cursor: pointer;
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.player-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.player-close svg {
  width: 18px;
  height: 18px;
}

/* ---------- Contact panel ---------- */

.contact {
  width: min(440px, calc(100vw - 32px));
  padding: var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.contact::backdrop {
  background: rgba(2, 3, 6, 0.85);
  backdrop-filter: blur(6px);
}

.contact[open] {
  animation: player-in 300ms var(--ease-out);
}

.contact h2 {
  margin: var(--s-1) 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-size: 48px;
  line-height: 0.95;
  text-transform: uppercase;
}

.contact-addr {
  margin: var(--s-1) 0 var(--s-3);
  color: var(--accent);
  font-size: 18px;
  overflow-wrap: anywhere;
  user-select: all;
}

.contact-options {
  display: grid;
  gap: 10px;
}

.contact-options .btn {
  width: 100%;
  justify-content: flex-start;
}

.contact-status {
  min-height: 1.5em;
  margin: var(--s-2) 0 0;
  color: var(--cyan);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--s-4) 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
}

.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--accent);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .categories {
    grid-template-columns: 1fr;
  }
  .category {
    min-height: 260px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-1) var(--gutter) var(--s-3);
    background: rgba(5, 7, 12, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    min-height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child a {
    border-bottom: 0;
    margin-top: var(--s-2);
    justify-content: center;
  }

  .hero .container,
  .bio {
    grid-template-columns: 1fr;
  }
  .viewfinder {
    max-width: 420px;
  }
  .tile {
    aspect-ratio: 4 / 3;
  }
  .tile::after {
    background: linear-gradient(0deg, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0.35) 60%, rgba(5, 7, 12, 0.15) 100%);
  }
  .tile-card {
    justify-content: center;
    padding: 0;
    align-items: flex-start;
    padding-top: 8%;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .player-body {
    padding: var(--s-2) var(--s-2) var(--s-3);
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
