/* =========================================================
   DeMario King — public site
   Original comic-book style: halftone, panels, offset ink.
   Colours live in :root so they're easy to change.
   ========================================================= */
:root {
  --ink: #0a0a0c;
  --charcoal: #15151a;
  --charcoal-2: #1e1e25;
  --red: #ff2a3d;
  --blue: #1fb6ff;
  --white: #f6f6f8;
  --muted: #a7a7b3;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --shadow-offset: 6px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.4px);
  background-size: 7px 7px;
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
code { font-size: 0.85em; word-break: break-all; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); color: var(--ink); padding: .6rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #000;
  box-shadow: 0 2px 0 var(--red), 0 4px 0 var(--blue);
}
.nav { max-width: var(--max); margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand {
  font-family: var(--display); font-size: 1.8rem; letter-spacing: .04em; color: var(--white); text-decoration: none;
  text-shadow: -2px 0 var(--red), 2px 0 var(--blue);
}
.nav__links { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; align-items: center; }
.nav__links a {
  display: block; padding: .45rem .7rem; color: var(--white); text-decoration: none;
  font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
  transition: color .2s, transform .2s;
}
.nav__links a:hover { color: var(--blue); transform: translateY(-1px); }
.nav__links .nav__cta { background: var(--red); color: var(--white); border: 2px solid #000; box-shadow: 3px 3px 0 var(--blue); }
.nav__links .nav__cta:hover { color: var(--white); box-shadow: 5px 5px 0 var(--blue); }
.nav__toggle { display: none; background: none; border: 2px solid var(--white); width: 44px; height: 40px; cursor: pointer; position: relative; }
.nav__bars, .nav__bars::before, .nav__bars::after { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--white); content: ""; transition: transform .2s, opacity .2s; }
.nav__bars { top: 18px; }
.nav__bars::before { top: -7px; left: 0; right: 0; }
.nav__bars::after { top: 7px; left: 0; right: 0; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 1rem clamp(3rem, 7vw, 6rem);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  position: relative;
}
.hero::before { /* diagonal speed lines behind the hero */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(-62deg, transparent 0 22px, rgba(31, 182, 255, 0.05) 22px 24px, transparent 24px 46px, rgba(255, 42, 61, 0.05) 46px 48px);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.kicker {
  display: inline-block; margin: 0 0 1rem; padding: .25rem .7rem;
  background: var(--white); color: var(--ink); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em;
  transform: rotate(-2deg); box-shadow: 4px 4px 0 var(--red);
}
.hero__name { margin: 0; font-family: var(--display); font-weight: 400; line-height: .9; text-transform: uppercase; font-size: clamp(4rem, 13vw, 9.5rem); letter-spacing: .01em; }
.hero__name .glitch { display: block; }
.glitch { position: relative; color: var(--white); }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
}
.glitch::before { color: var(--red); transform: translate(-4px, 0); opacity: .85; z-index: -1; }
.glitch::after  { color: var(--blue); transform: translate(4px, 0); opacity: .85; z-index: -1; }
.glitch--outline { color: transparent; -webkit-text-stroke: 2px var(--white); }
.glitch--outline::before, .glitch--outline::after { -webkit-text-stroke: 0; }
@media (prefers-reduced-motion: no-preference) {
  .glitch::before { animation: glitch-a 6s infinite steps(1); }
  .glitch::after { animation: glitch-b 6s infinite steps(1); }
}
@keyframes glitch-a {
  0%, 92%, 100% { transform: translate(-4px, 0); clip-path: none; }
  93% { transform: translate(-10px, 2px); clip-path: inset(10% 0 55% 0); }
  95% { transform: translate(6px, -2px); clip-path: inset(60% 0 8% 0); }
  97% { transform: translate(-3px, 1px); clip-path: inset(35% 0 40% 0); }
}
@keyframes glitch-b {
  0%, 92%, 100% { transform: translate(4px, 0); clip-path: none; }
  93% { transform: translate(10px, -1px); clip-path: inset(50% 0 20% 0); }
  95% { transform: translate(-6px, 2px); clip-path: inset(5% 0 70% 0); }
  97% { transform: translate(3px, 0); clip-path: inset(70% 0 5% 0); }
}
.hero__tagline { margin: 1.4rem 0 0; font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.25rem); text-transform: uppercase; letter-spacing: .14em; color: var(--blue); }
.hero__intro { margin: 1rem 0 0; max-width: 36rem; color: #d9d9e0; font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* photo — the photograph itself is never filtered or recoloured */
.hero__photo { margin: 0; position: relative; justify-self: center; width: min(100%, 420px); }
.photo-frame {
  position: relative; aspect-ratio: 1025 / 1535; background: var(--charcoal);
  border: 4px solid #000; outline: 3px solid var(--white); outline-offset: -10px;
  box-shadow: -14px 14px 0 var(--red), 14px -14px 0 var(--blue), 0 30px 60px rgba(0,0,0,.6);
  transform: rotate(1.5deg); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.hero__photo:hover .photo-frame { transform: rotate(0deg) scale(1.01); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.photo-missing {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  text-align: center; padding: 1.5rem; color: var(--muted);
  background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.6px); background-size: 9px 9px;
}
.photo-missing[hidden] { display: none; }
.photo-missing strong { font-family: var(--display); font-size: 1.6rem; color: var(--white); text-transform: uppercase; font-weight: 400; }
.burst { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; }
.burst--a { width: 190px; height: 190px; top: -46px; left: -60px; background-image: radial-gradient(var(--red) 2.2px, transparent 2.6px); background-size: 11px 11px; opacity: .8; }
.burst--b { width: 220px; height: 220px; bottom: -60px; right: -70px; background-image: radial-gradient(var(--blue) 2.2px, transparent 2.6px); background-size: 11px 11px; opacity: .7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; text-decoration: none;
  border: 3px solid #000; transition: transform .15s, box-shadow .15s; word-break: break-word;
}
.btn--red { background: var(--red); color: var(--white); box-shadow: 5px 5px 0 var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); box-shadow: 5px 5px 0 var(--blue); }
.btn:hover { transform: translate(-2px, -2px); }
.btn--red:hover { box-shadow: 7px 7px 0 var(--white); }
.btn--ghost:hover { box-shadow: 7px 7px 0 var(--blue); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--white); }

/* ---------- sections & panels ---------- */
.panel-section { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 1rem; }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem; border-bottom: 3px solid var(--white); padding-bottom: .6rem; position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 120px; height: 6px; background: var(--red); }
.panel-section--blue .section-head::after { background: var(--blue); }
.section-num { font-family: var(--display); font-size: 1.1rem; color: var(--ink); background: var(--blue); padding: .1rem .5rem; transform: skew(-8deg); }
.panel-section--red .section-num { background: var(--red); color: var(--white); }
.section-head h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1; letter-spacing: .02em; }

.panel {
  background: var(--charcoal); border: 3px solid #000; padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--blue);
}
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.panel-grid + .panel-grid, .lead + .panel-grid, .tags + .panel-grid { margin-top: 1.6rem; }
.lead { margin: 0 0 1rem; font-size: 1.15rem; max-width: 62ch; color: #e4e4ea; }
.panel .lead:last-child { margin-bottom: 0; }

.card {
  position: relative; background: var(--charcoal-2); border: 3px solid #000; padding: 1.4rem 1.4rem 1.6rem;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--red);
  transition: transform .2s, box-shadow .2s;
}
.card:nth-child(even) { box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--blue); }
.card:hover { transform: translate(-3px, -3px); }
.card::before { /* halftone corner */
  content: ""; position: absolute; top: 0; right: 0; width: 70px; height: 70px; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.3px, transparent 1.7px); background-size: 7px 7px;
  mask-image: linear-gradient(225deg, #000, transparent 70%);
}
.card__meta { margin: 0 0 .4rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); }
.card__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; line-height: 1.1; letter-spacing: .02em; }
.card__sub { margin: .35rem 0 0; font-weight: 700; color: var(--white); }
.card__details { margin: .7rem 0 0; color: var(--muted); }
.card__link { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--red); text-decoration: none; }
.card__link:hover { text-decoration: underline; }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tag { padding: .35rem .8rem; border: 2px solid var(--blue); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }

.coming-soon {
  border: 3px dashed rgba(255,255,255,.3); padding: 1.6rem; text-align: center; color: var(--muted); grid-column: 1 / -1;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px); background-size: 6px 6px;
}
.panel .coming-soon { border: none; padding: 0; background: none; }
.coming-soon p { margin: .6rem 0 0; }
.coming-soon__tag { display: inline-block; background: var(--white); color: var(--ink); padding: .2rem .7rem; font-family: var(--display); font-size: 1.1rem; letter-spacing: .05em; transform: rotate(-2deg); text-transform: uppercase; }

.panel--contact { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--red); }
.contact-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }

/* reveal on scroll */
.will-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.will-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.site-footer { max-width: var(--max); margin: 0 auto; padding: 2rem 1rem 3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); border-top: 2px solid var(--charcoal-2); font-size: .9rem; }
.site-footer a { color: var(--muted); }
.noscript { text-align: center; padding: 1rem; background: var(--red); margin: 0; }


/* =========================================================
   BIO
   ========================================================= */
.anchor { display: block; height: 0; }
.bio { display: grid; gap: 1.8rem; }
.bio__heading, .section-tagline {
  margin: 0 0 .9rem; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1; letter-spacing: .02em; color: var(--white);
  text-shadow: -3px 0 var(--red), 3px 0 var(--blue);
}
.section-tagline { margin-bottom: 1.2rem; }
.bio .lead { margin-bottom: 0; }
.bio__highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.highlight {
  position: relative; background: var(--ink); border: 3px solid var(--white); padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: 6px 6px 0 var(--red); overflow: hidden;
}
.highlight:nth-child(even) { box-shadow: 6px 6px 0 var(--blue); }
.highlight::after {
  content: ""; position: absolute; right: -10px; bottom: -10px; width: 90px; height: 90px; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.2) 1.4px, transparent 1.8px); background-size: 8px 8px;
}
.highlight__label { margin: 0 0 .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.highlight:nth-child(even) .highlight__label { color: var(--red); }
.highlight__title { position: relative; z-index: 1; margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.bio__subhead { margin: 0 0 .8rem; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   FOOTBALL TIMELINE
   ========================================================= */
.timeline { list-style: none; margin: 2.2rem 0 0; padding: 0; position: relative; display: grid; gap: 1.4rem; }
.timeline::before { /* the "field" line with yard ticks */
  content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 4px;
  background: repeating-linear-gradient(to bottom, var(--white) 0 18px, transparent 18px 26px);
  opacity: .35;
}
.timeline__item { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 1rem; align-items: start; }
.timeline__marker {
  position: relative; z-index: 1; width: 46px; height: 46px; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.3rem; background: var(--red); color: var(--white);
  border: 3px solid #000; box-shadow: 3px 3px 0 var(--white); transform: rotate(-4deg);
}
.timeline__item:nth-child(even) .timeline__marker { background: var(--blue); color: var(--ink); transform: rotate(4deg); }
.timeline__card {
  background: var(--charcoal-2); border: 3px solid #000; padding: 1.1rem 1.3rem 1.2rem;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--red); transition: transform .2s;
}
.timeline__item:nth-child(even) .timeline__card { box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--blue); }
.timeline__card:hover { transform: translate(-3px, -3px); }
.timeline__top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.timeline__period { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.timeline__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 1.9rem); text-transform: uppercase; line-height: 1.05; letter-spacing: .02em; }
.timeline__detail { margin: .45rem 0 0; color: #d4d4dc; }

/* upcoming season stands out as "not yet played" */
.timeline__item.is-upcoming .timeline__marker { background: var(--ink); color: var(--blue); border: 3px dashed var(--blue); box-shadow: none; }
.timeline__item.is-upcoming .timeline__card { background: transparent; border: 3px dashed var(--blue); box-shadow: none; }
.upcoming-badge {
  display: inline-block; padding: .15rem .6rem; background: var(--blue); color: var(--ink);
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; border: 2px solid #000;
}
@media (prefers-reduced-motion: no-preference) {
  .upcoming-badge { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(31, 182, 255, .25); } }

@media (min-width: 900px) { /* two-column zig-zag on wide screens */
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .timeline__item { grid-template-columns: 1fr 46px 1fr; gap: 1.4rem; }
  .timeline__item .timeline__marker { grid-column: 2; grid-row: 1; }
  .timeline__item:nth-child(odd) .timeline__card { grid-column: 1; grid-row: 1; text-align: right; }
  .timeline__item:nth-child(odd) .timeline__top { justify-content: flex-end; }
  .timeline__item:nth-child(even) .timeline__card { grid-column: 3; grid-row: 1; }
  .timeline { gap: .6rem; }
}

/* =========================================================
   GAME ZONE — game cards
   ========================================================= */
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.8rem; }
.game-grid + .tags, .game-grid + .panel-grid { margin-top: 1.8rem; }
.lead + .game-grid { margin-top: 1.4rem; }
.game-card {
  --gold: #d4a73c;
  position: relative; display: flex; flex-direction: column; max-width: 760px;
  background: #0d0b0a; border: 3px solid #000;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--red);
  transition: transform .2s, box-shadow .2s;
}
.game-card::after { /* gold inner frame, drawn above the art so it runs all the way round */
  content: ""; position: absolute; inset: 5px; z-index: 2; pointer-events: none;
  border: 2px solid var(--gold);
}
.game-card:hover { transform: translate(-3px, -3px); box-shadow: calc(var(--shadow-offset) + 3px) calc(var(--shadow-offset) + 3px) 0 var(--red); }
.game-card__media { position: relative; aspect-ratio: 1400 / 511; overflow: hidden; background: #000; border-bottom: 3px solid #000; }
.game-card__img { width: 100%; height: 100%; object-fit: cover; }
.game-card__media::after { /* darken the middle so the title reads over the art */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 22%, rgba(0,0,0,.62) 38%, rgba(0,0,0,.62) 62%, transparent 78%),
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,0,0,.55), transparent 80%);
}
.game-card__title {
  position: absolute; inset: 0; z-index: 1; margin: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; line-height: 1;
  font-size: clamp(3.2rem, 13vw, 6.5rem); color: #f7e3a1;
  text-shadow: 0 2px 0 #8a6417, 0 4px 0 #000, -3px 0 var(--red), 0 0 24px rgba(212, 167, 60, .55);
}
.game-card__body { display: flex; flex-direction: column; gap: .2rem; padding: 1.3rem 1.5rem 1.6rem; }
.game-card__body .card__meta { color: var(--gold); }
.game-card__desc { margin: 0 0 1.2rem; color: #e4e4ea; }
.game-card__play { align-self: flex-start; background: var(--red); box-shadow: 5px 5px 0 var(--gold); }
.game-card__play:hover { box-shadow: 7px 7px 0 var(--gold); }
.game-card__domain { margin: .9rem 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.game-card__soon {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; padding: .7rem 1.4rem;
  border: 2px dashed var(--gold); color: #f7e3a1; font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
}
@media (max-width: 600px) {
  /* the art is small and busy on phones: darken it more so TURK stands out */
  .game-card__media::after { background: rgba(0,0,0,.5); }
  .game-card__title { background: linear-gradient(to bottom, transparent 18%, rgba(0,0,0,.7) 34%, rgba(0,0,0,.7) 66%, transparent 82%); }
}
/* cards whose artwork already shows the game's name (e.g. Who Dat): no dark overlay, title sits under the art */
.game-card__picture { display: contents; }
.game-card--art-title .game-card__media::after { content: none; }
.game-card__name { margin: 0 0 .3rem; font-family: var(--display); font-weight: 400; font-size: 2rem; letter-spacing: .05em; text-transform: uppercase; color: #f7e3a1; line-height: 1.1; }
@media (max-width: 600px) {
  /* phones get the full square cover so the whole artwork stays readable */
  .game-card--art-title .game-card__media { aspect-ratio: 1 / 1; }
}
@media (max-width: 480px) {
  .game-card__body { padding: 1.1rem 1.1rem 1.3rem; }
  .game-card__play, .game-card__soon { align-self: stretch; justify-content: center; }
}

/* =========================================================
   PROJECTS — rich project cards (image, subtitle, tags, button)
   ========================================================= */
.project-card {
  position: relative; display: flex; flex-direction: column; background: var(--charcoal-2); border: 3px solid #000;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--blue); transition: transform .2s, box-shadow .2s;
}
.project-card:hover { transform: translate(-3px, -3px); box-shadow: calc(var(--shadow-offset) + 3px) calc(var(--shadow-offset) + 3px) 0 var(--blue); }
.project-card--featured { grid-column: 1 / -1; }
.project-card__media { background: #0b1322; border-bottom: 3px solid #000; aspect-ratio: 16 / 9; overflow: hidden; }
.project-card__img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { display: flex; flex-direction: column; gap: .2rem; padding: 1.3rem 1.4rem 1.5rem; }
.project-card__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.project-card__subtitle { margin: .2rem 0 0; font-weight: 700; color: var(--blue); }
.project-card__desc { margin-top: .6rem; color: #d4d4dc; max-width: 62ch; }
.project-card__tags { margin-top: 1rem; gap: .45rem; }
.project-card__tags .tag { font-size: .74rem; padding: .25rem .6rem; }
.project-card__btn { align-self: flex-start; margin-top: 1.3rem; }
@media (min-width: 860px) {
  .project-card--featured { display: grid; grid-template-columns: 1.1fr 1fr; }
  .project-card--featured .project-card__media { aspect-ratio: auto; border-bottom: 0; border-right: 3px solid #000; min-height: 100%; }
  .project-card--featured .project-card__img { object-fit: contain; }
  .project-card--featured .project-card__body { justify-content: center; padding: 1.8rem 2rem; }
}
@media (max-width: 480px) {
  .project-card__body { padding: 1.1rem 1.1rem 1.3rem; }
  .project-card__btn { align-self: stretch; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem; min-height: 84px; padding: 1rem 1.2rem; text-decoration: none;
  color: var(--white); background: var(--charcoal); border: 3px solid #000;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--red); transition: transform .15s, box-shadow .15s;
}
.contact-card:nth-child(even) { box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--blue); }
.contact-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--red); }
.contact-card:nth-child(even):hover { box-shadow: 9px 9px 0 var(--blue); }
.contact-card__icon {
  flex: none; width: 44px; height: 44px; padding: 8px; background: var(--white); color: var(--ink); border: 2px solid #000;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.contact-card__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.contact-card__label { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
.contact-card__handle { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.contact-card__arrow { font-size: 1.4rem; color: var(--blue); transition: transform .15s; }
.contact-card:hover .contact-card__arrow { transform: translateX(4px); }

/* ---------- tablet & mobile ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero__photo { order: -1; width: min(82%, 380px); margin-top: .5rem; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 3px solid var(--red); padding: .5rem 1rem 1rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .9rem .4rem; font-size: 1rem; border-bottom: 1px solid var(--charcoal-2); }
  .nav__links .nav__cta { margin-top: .6rem; text-align: center; }
}
@media (max-width: 480px) {
  :root { --shadow-offset: 4px; }
  .photo-frame { box-shadow: -9px 9px 0 var(--red), 9px -9px 0 var(--blue), 0 20px 40px rgba(0,0,0,.6); }
  .hero__actions .btn { flex: 1 1 100%; }
  .panel-grid { grid-template-columns: 1fr; }
}
/* phone landscape / short screens: photo and text side by side, photo capped to the screen height */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { grid-template-columns: 1.4fr 1fr; gap: 2rem; padding-top: 1.5rem; padding-bottom: 2rem; }
  .hero__photo { order: 0; width: auto; height: 70vh; aspect-ratio: 1025 / 1535; margin-top: 0; }
  .hero__photo .photo-frame { height: 100%; }
  .hero__name { font-size: clamp(2.4rem, 15vh, 4.5rem); }
  .kicker { margin-bottom: .5rem; }
  .hero__tagline { margin-top: .6rem; font-size: .85rem; letter-spacing: .1em; }
  .hero__intro { margin-top: .5rem; font-size: .95rem; }
  .hero__actions { margin-top: 1rem; gap: .7rem; }
  .hero__actions .btn { flex: 0 1 auto; padding: .5rem 1rem; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
