/* =========================================================
   Bright Anvil Games
   ========================================================= */

:root {
  --bg: #09090b;
  --bg-2: #0e0e11;
  --surface: #121215;
  --surface-2: #18181c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;

  --ember: #ff6b1a;
  --ember-hi: #ff8a3d;
  --accent: var(--ember);

  --maxw: 1240px;
  --radius: 14px;
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h2 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -.02em;
}
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--muted); }
::selection { background: var(--ember); color: #120700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .container { padding: 0 40px; } }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--text); color: #000; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.4em;
  border-radius: 10px;
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-primary {
  background: var(--accent);
  color: #0b0503;
  box-shadow: 0 8px 30px -12px var(--accent);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 36px -10px var(--accent); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .07); }
.btn-sm { padding: .6em 1em; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 1.05em 1.7em; font-size: 1rem; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(9, 9, 11, .78);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
          backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav > a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.site-nav > a:not(.btn):hover { color: var(--text); }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 819px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px;
    background: rgba(9, 9, 11, .97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 30% 62%, rgba(255, 107, 26, .13), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 0%, rgba(80, 110, 255, .07), transparent 70%),
    var(--bg);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 40% 50%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 40% 50%, #000 20%, transparent 75%);
  opacity: .55;
  pointer-events: none;
}
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.hero-inner { position: relative; z-index: 2; }
.hero-inner > .eyebrow { display: flex; width: fit-content; margin-bottom: clamp(40px, 7vw, 90px); }
.hero-inner.shake { animation: shake .45s var(--ease); }
@keyframes shake {
  0% { transform: translate(0, 0); }
  15% { transform: translate(0, 7px); }
  30% { transform: translate(-4px, -3px); }
  45% { transform: translate(3px, 2px); }
  60% { transform: translate(-2px, -1px); }
  100% { transform: translate(0, 0); }
}

/* Wordmark */
.wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(3.3rem, 13vw, 10.5rem);
  line-height: .88;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  user-select: none;
}
.wm-line { display: block; white-space: nowrap; }
.wm-left, .wm-right { display: inline-block; transition: transform .55s cubic-bezier(.3, 1.6, .5, 1); }
.wm-i { display: inline-block; transform-origin: 50% 80%; }
.wordmark .bl { display: inline-block; width: 0; height: 0; }
.wm-games {
  display: inline-block;
  margin-left: .55em;
  font-size: .2em;
  font-stretch: 100%;
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--ember);
  vertical-align: baseline;
}

.anvil {
  position: absolute; left: 0; top: 0;
  width: 1em;                           /* set by JS */
  padding: 0; border: 0; background: none;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .55));
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.anvil svg { width: 100%; height: auto; display: block; overflow: visible; }
.anvil.landed { opacity: 1; }
.anvil.landed:hover { animation: wobble .5s var(--ease); }
@keyframes wobble { 25% { rotate: -2deg; } 75% { rotate: 1.5deg; } }
.anvil .anvil-hot { transition: opacity .4s; }
.anvil.glow .anvil-hot { opacity: .9; }

.anvil-shadow {
  position: absolute; left: 0; top: 0;
  width: 1em; height: .08em;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent);
  pointer-events: none;
  opacity: 0;
}

.dust {
  position: absolute;
  width: .07em; height: .07em;
  border-radius: 50%;
  background: rgba(200, 200, 210, .55);
  pointer-events: none;
  z-index: 1;
}

.hero-foot {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid; gap: 24px;
}
@media (min-width: 960px) {
  .hero-foot { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
}
.hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: #c4c4cc; max-width: 560px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Showcases ---------- */
.showcase {
  --accent: var(--ember);
  position: relative;
  min-height: min(96vh, 920px);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}
.showcase-bg {
  position: absolute; inset: -6% 0;
  z-index: -2;
  will-change: transform;
}
.showcase-bg img { width: 100%; height: 100%; object-fit: cover; }
.showcase::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 9, 11, .94) 0%, rgba(9, 9, 11, .72) 38%, rgba(9, 9, 11, .1) 72%),
    linear-gradient(0deg, var(--bg) 2%, rgba(9, 9, 11, 0) 42%),
    linear-gradient(180deg, rgba(9, 9, 11, .7) 0%, rgba(9, 9, 11, 0) 22%);
}
.showcase.flip::before {
  background:
    linear-gradient(270deg, rgba(9, 9, 11, .94) 0%, rgba(9, 9, 11, .72) 38%, rgba(9, 9, 11, .1) 72%),
    linear-gradient(0deg, var(--bg) 2%, rgba(9, 9, 11, 0) 42%),
    linear-gradient(180deg, rgba(9, 9, 11, .7) 0%, rgba(9, 9, 11, 0) 22%);
}
.showcase-inner { padding-top: 140px; padding-bottom: 40px; }
.showcase-copy { max-width: 560px; }
.showcase.flip .showcase-copy { margin-left: auto; }

.showcase-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.status {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .45em .8em; border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.platforms { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }

.showcase-title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .5);
}
.showcase-desc { color: #d0d0d6; font-size: 1.05rem; }
.features { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.features li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: .97rem; }
.features li::before {
  content: ""; flex: none; margin-top: .45em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translate(1px, -2px);
}
.showcase-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(var(--n, 3), 1fr);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
  cursor: zoom-in;
  transition: transform .35s var(--ease), border-color .35s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.thumb:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.thumb:hover img { transform: scale(1.05); }
.thumb.is-video::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat;
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(4px);
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(var(--n, 3), minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 16px; }
  .thumb { scroll-snap-align: start; }
  .showcase { min-height: auto; }
  .showcase-inner { padding-top: 62vw; }
  .showcase::before, .showcase.flip::before {
    background: linear-gradient(0deg, var(--bg) calc(100% - 78vw), rgba(9, 9, 11, .35) calc(100% - 50vw), rgba(9, 9, 11, .1) 100%);
  }
  .showcase-bg { inset: 0 0 auto 0; height: 80vw; }
  .showcase-bg img { object-position: var(--focus, 50% 50%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }

/* ---------- Catalog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.filter {
  font-size: .85rem; font-weight: 600; color: var(--muted);
  padding: .5em .95em; border-radius: 8px;
  background: none; border: 0; cursor: pointer;
  transition: background .2s, color .2s;
}
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.games-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.game-card {
  --accent: var(--ember);
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  animation: cardIn .5s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }
.game-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--accent) 60%, transparent); }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.game-card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-top .status { font-size: .65rem; }
.card-body h3 { font-size: 1.3rem; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; letter-spacing: -.01em; }
.card-body p { margin: 0; font-size: .93rem; }
.card-link { margin-top: auto; padding-top: 6px; font-size: .88rem; font-weight: 600; color: var(--text); text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.card-link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link span { transition: transform .25s var(--ease); color: var(--accent); }
.game-card:hover .card-link span { transform: translateX(4px); }

.game-card.coming {
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, .015) 12px 24px), var(--bg-2);
  border-style: dashed;
  border-color: var(--line-2);
  justify-content: center;
  min-height: 260px;
}
.game-card.coming:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.coming-inner { padding: 32px; text-align: center; }
.coming-inner .anvil-mini { width: 54px; margin: 0 auto 16px; opacity: .8; animation: tap 2.4s var(--ease) infinite; transform-origin: 50% 100%; }
@keyframes tap { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-10px); } 88% { transform: translateY(0) scaleY(.9); } }
.coming-inner h3 { margin-bottom: 6px; }
.coming-inner p { margin: 0; font-size: .92rem; }

/* ---------- Studio ---------- */
.studio { background: var(--bg-2); border-block: 1px solid var(--line); }
.studio-inner { display: grid; gap: 56px; }
@media (min-width: 960px) { .studio-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; } }
.studio-copy h2 { margin-bottom: 24px; }
.studio-copy p { font-size: 1.05rem; max-width: 520px; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pillar {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 20px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.pillar:hover { border-color: rgba(255, 107, 26, .35); transform: translateX(4px); }
.pillar-num { grid-row: span 2; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.1rem; color: var(--ember); line-height: 1.6; }
.pillar p { margin: 0; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-card {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(36px, 6vw, 72px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 120% at 100% 100%, rgba(255, 107, 26, .18), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.contact-card h2 { margin-bottom: 12px; }
.contact-card p { margin: 0; }
.contact-card .btn { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--text); }
.copyright { margin: 0; width: 100%; font-size: .85rem; color: var(--dim); }

/* ---------- Media viewer ---------- */
.viewer {
  width: min(1200px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #000;
  color: var(--text);
  overflow: visible;
}
.viewer::backdrop { background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.viewer-stage img, .viewer-stage video { width: 100%; max-height: 88vh; object-fit: contain; border-radius: 14px; background: #000; }
.viewer-close {
  position: absolute; top: -48px; right: 0;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(20, 20, 24, .9);
  cursor: pointer; display: grid; place-items: center;
}
.viewer-close svg { width: 18px; height: 18px; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }

/* ---------- Team: shared badge ---------- */
.badge { display: block; overflow: visible; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)); }
.badge-lg { width: 96px; height: 96px; }
.badge-sm { width: 52px; height: 52px; flex: none; }
.badge-photo { border-radius: 50%; object-fit: cover; }
.badge-photo.badge-lg { width: 96px; height: 96px; }
.badge-photo.badge-sm { width: 52px; height: 52px; flex: none; }
.site-nav > a[aria-current="page"] { color: var(--text); }

/* ---------- Team strip (home page) ---------- */
.section.crew { padding-bottom: 0; }
.crew-strip { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.crew-chip {
  --accent: var(--ember);
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .3s, transform .3s var(--ease), background .3s, opacity .8s var(--ease);
}
.crew-chip:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-3px); background: var(--surface-2); }
.crew-chip-text { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.crew-chip-text strong { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.1rem; }
.crew-chip-text small { color: var(--muted); font-size: .85rem; }
.crew-chip-arrow { color: var(--accent); transition: transform .25s var(--ease); }
.crew-chip:hover .crew-chip-arrow { transform: translateX(4px); }

/* ---------- Team page ---------- */
.team-hero {
  position: relative;
  padding: 170px 0 56px;
}
.team-hero-glow {
  position: absolute; inset: 0 0 -320px 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
          mask-image: linear-gradient(180deg, #000 55%, transparent);
  background:
    radial-gradient(ellipse 50% 60% at 15% 100%, rgba(255, 107, 26, .16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 20%, rgba(90, 169, 255, .07), transparent 70%);
}
.team-hero .container { position: relative; }
.team-title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.team-lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: #c4c4cc; max-width: 600px; margin: 0; }

.team-section { padding-bottom: 40px; }
.team-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.plate {
  --accent: var(--ember);
  --mx: 50%; --my: 0%;
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #17171b, #111114) padding-box,
    radial-gradient(360px circle at var(--mx) var(--my), var(--accent), rgba(255, 255, 255, .1) 55%) border-box;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateY(-36px) scale(1.06);
}
.plate::before { /* heat glow under the cursor */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
  opacity: .6;
  transition: opacity .3s;
}
.plate:hover::before { opacity: 1; }
.plate::after { /* brushed-steel texture */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px);
}
.no-js .plate, .plate.stamped { opacity: 1; transform: none; }
.plate.stamped { animation: stamp .55s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes stamp {
  0%   { opacity: 0; transform: translateY(-36px) scale(1.06); }
  55%  { opacity: 1; transform: translateY(4px) scale(.985); }
  75%  { transform: translateY(-2px) scale(1.004); }
  100% { opacity: 1; transform: none; }
}
.plate.stamped .badge { animation: badgeHeat 1.4s ease-out both; }
@keyframes badgeHeat {
  0%, 30% { filter: drop-shadow(0 0 22px var(--accent)) brightness(1.5); }
  100%    { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)) brightness(1); }
}
.plate.spotlit { box-shadow: 0 0 0 2px var(--accent), 0 30px 80px -30px var(--accent); }

.plate-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.plate-name {
  font-family: var(--font-display); font-stretch: 125%;
  font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.3rem);
  letter-spacing: -.01em; text-transform: uppercase;
  margin-bottom: 6px;
}
.plate-role { color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: 22px; }
.plate-skills {
  list-style: none; margin: 0 0 26px; padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 9px;
}
.plate-skills li { display: flex; align-items: center; gap: 12px; color: #d4d4d8; font-size: .95rem; }
.plate-skills li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--accent); flex: none; }

.plate-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.plate-actions .btn svg { width: 16px; height: 16px; fill: none; }
.copy {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%;
  padding: .6em .85em;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: .8rem;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.copy svg { width: 14px; height: 14px; flex: none; }
.copy-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy.copied { color: var(--accent); border-color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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