/* ==========================================================================
   Very Good Studio Inc. — Game Studio Website
   Palette: red / black / white — anime / graffiti energy
   ========================================================================== */

:root {
  --c-red: #e2101e;
  --c-red-bright: #ff2436;
  --c-red-dark: #7a0a12;
  --c-black: #0a0908;
  --c-black-soft: #141210;
  --c-black-card: #1b1917;
  --c-white: #f5f1e8;
  --c-gray: #948f86;
  --c-line: rgba(245, 241, 232, 0.12);

  /* Big display text: headlines, section titles, menu items, stat numbers. */
  --font-headline: "Archivo Black", "Anton", "Arial Narrow", sans-serif;
  --font-tag: "Permanent Marker", cursive;
  /* Small text: body copy, labels, buttons, nav — everything else. */
  --font-body: "Clarity City", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --nav-h: 92px;
}

@font-face {
  font-family: "Clarity City";
  src: url("../assets/fonts/ClarityCity-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clarity City";
  src: url("../assets/fonts/ClarityCity-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

::selection { background: var(--c-red); color: var(--c-white); }

/* scrollbar: hidden, scrolling still works */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; }

/* ==========================================================================
   Preloader
   ========================================================================== */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.6s ease;
}

#preloader::before,
#preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--c-red-dark);
  opacity: 0.4;
  pointer-events: none;
}

#preloader::before { margin: 24px; }
#preloader::after { margin: 40px; opacity: 0.2; }

.preloader-inner {
  text-align: center;
  position: relative;
}

.preloader-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.preloader-rings span {
  position: absolute;
  inset: 0;
  border: 2px solid var(--c-red);
  border-radius: 50%;
  opacity: 0;
  animation: ring-pulse 2.4s ease-out infinite;
}

.preloader-rings span:nth-child(2) { animation-delay: 0.6s; }
.preloader-rings span:nth-child(3) { animation-delay: 1.2s; }

@keyframes ring-pulse {
  0% { transform: scale(0.35); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0; }
}

.preloader-logo {
  position: relative;
  animation: glitch-jitter 3.2s infinite;
}

.preloader-logo img {
  display: block;
  margin: 0 auto 8px;
  width: clamp(96px, 15vw, 150px);
  height: auto;
}

.preloader-logo-fallback {
  display: none;
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.06em;
  color: var(--c-white);
}

.preloader-logo-fallback span { color: var(--c-red); }

.preloader-bar {
  margin: 28px auto 12px;
  width: min(260px, 60vw);
  height: 4px;
  background: rgba(245, 241, 232, 0.15);
  position: relative;
  overflow: hidden;
}

.preloader-bar span {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--c-red-dark), var(--c-red-bright));
  transition: width 0.15s linear;
}

.preloader-percent {
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--c-gray);
}

body.is-loaded #preloader {
  transform: translateY(-100%);
  opacity: 0.4;
  pointer-events: none;
}

@keyframes glitch-jitter {
  0%, 92%, 100% { transform: translate(0, 0); text-shadow: none; }
  93% { transform: translate(-2px, 1px); text-shadow: 2px 0 var(--c-red); }
  95% { transform: translate(2px, -1px); text-shadow: -2px 0 var(--c-red); }
  97% { transform: translate(-1px, 0); text-shadow: 1px 0 var(--c-white); }
}

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 700;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.topbar.is-scrolled {
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--c-line);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--c-red-bright);
  z-index: 850;
  pointer-events: none;
}

.topbar-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.topbar-logo:hover { transform: scale(1.06); }
.topbar-logo img { width: 100%; height: 100%; object-fit: contain; }

.topbar-logo-fallback {
  display: none;
  font-weight: 700;
  color: var(--c-white);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.topbar-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: clamp(0.6rem, 1.6vw, 0.78rem);
  letter-spacing: 0.25em;
  color: var(--c-white);
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(10, 9, 8, 0.65);
}

.topbar-menu-btn {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--c-white);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.topbar-menu-btn:hover { background: var(--c-red); }

.topbar-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--c-black);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s ease;
}

.topbar-menu-btn:hover span { background: var(--c-white); }

body.menu-open .topbar-menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .topbar-menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================================================
   Menu overlay
   ========================================================================== */

body.menu-open { overflow: hidden; }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  grid-template-columns: 1fr 1fr;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

body.menu-open .menu-overlay {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.menu-overlay-visual {
  position: relative;
  background: var(--c-black-soft);
  overflow: hidden;
}

.menu-overlay-visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.menu-overlay-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0.25), rgba(10,9,8,0.8));
}

.menu-overlay-panel {
  position: relative;
  background: var(--c-black);
  padding: 130px 60px 50px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.menu-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--c-white);
  border: none;
  color: var(--c-black);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu-close:hover { background: var(--c-red); color: var(--c-white); }

.menu-list {
  display: flex;
  flex-direction: column;
}

.menu-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--c-line);
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  letter-spacing: 0.02em;
  color: var(--c-white);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.menu-list a .num {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--c-gray);
}

.menu-list a:hover {
  color: var(--c-red);
  padding-left: 16px;
}

.menu-social {
  margin-top: auto;
  padding-top: 40px;
}

/* ==========================================================================
   Hero (index)
   ========================================================================== */

.hero-split {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 54px) 24px 60px;
  background: var(--c-black);
}

.hero-embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-split-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.hero-split-headline h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 5.8vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--c-white);
}

.hero-split-headline h1 .accent { color: var(--c-red); }

.hero-split-intro { padding-top: 16px; }

.hero-split-intro p {
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.7;
  color: var(--c-white);
  margin: 0;
}

.hero-video-banner {
  position: relative;
  height: 70vh;
  min-height: 420px;
  max-height: 760px;
  overflow: hidden;
  background: var(--c-black-soft);
}

.hero-video-banner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.hero-video-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0) 70%, var(--c-black) 100%);
  pointer-events: none;
}

/* ==========================================================================
   Section basics / reveal
   ========================================================================== */

.section-pad { padding: 130px 0; }

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* Whole-section entrance, layered under each section's own inner
   text stagger so every new part arrives with its own motion as it
   scrolls into view, not just a flat cut. */
.section-reveal {
  opacity: 0;
  transform: translateY(64px) scale(0.96);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.member-grid .member-card.reveal:nth-child(4n+1) { transition-delay: 0s; }
.member-grid .member-card.reveal:nth-child(4n+2) { transition-delay: 0.1s; }
.member-grid .member-card.reveal:nth-child(4n+3) { transition-delay: 0.2s; }
.member-grid .member-card.reveal:nth-child(4n+4) { transition-delay: 0.3s; }

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--c-red-bright);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.section-lede {
  color: var(--c-gray);
  max-width: 640px;
  font-size: 1.05rem;
}

.section-lede a {
  color: var(--c-red-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.text-highlight {
  color: var(--c-red-bright);
  font-weight: 700;
}

.section-lede a:hover { color: var(--c-white); }

/* ==========================================================================
   Studio Teaser (index)
   ========================================================================== */

.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-teaser-photos { position: relative; }

.about-teaser-photos img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--c-black-card);
  transition: transform 0.5s ease;
}

.about-teaser-photos img:hover { transform: scale(1.03); }

.about-teaser-photos .photo-a {
  width: 72%;
  aspect-ratio: 4 / 5;
}

.about-teaser-photos .photo-b {
  position: relative;
  z-index: 1;
  width: 44%;
  aspect-ratio: 1 / 1;
  margin: -64px 0 0 44%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.about-teaser-text p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--c-white);
  margin: 0;
}

/* ==========================================================================
   Featured Game
   ========================================================================== */

.featured-game {
  position: relative;
  background: var(--c-black-soft) url("../assets/img/5700.jpg") center 35% / cover no-repeat;
  overflow: hidden;
}

.featured-game::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--c-black-soft) 0%, transparent 22%, transparent 78%, var(--c-black-soft) 100%),
    linear-gradient(90deg, var(--c-black-soft) 0%, var(--c-black-soft) 45%, rgba(20, 18, 16, 0.7) 65%, rgba(20, 18, 16, 0.3) 82%, transparent 95%, transparent 100%);
  z-index: 0;
}

.featured-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  width: 100%;
}

.featured-media {
  position: relative;
  background: var(--c-black-soft);
  overflow: hidden;
}

.featured-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.featured-media:hover img { transform: scale(1.04); }

.featured-media .eyebrow {
  position: absolute;
  top: 24px;
  left: 24px;
  margin: 0;
  background: rgba(10, 9, 8, 0.65);
  padding: 6px 12px;
}

.featured-info {
  position: relative;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--c-black-soft) 18%, var(--c-black-soft) 100%);
  z-index: -1;
}

.game-logo {
  font-family: var(--font-headline);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--c-white);
  transform: skewX(-4deg);
}

.game-logo .hi { color: var(--c-red); display: block; }

.game-tagline {
  font-family: var(--font-tag);
  color: var(--c-red-bright);
  font-size: 1.2rem;
  margin: 14px 0 0;
}

.featured-info p {
  color: var(--c-gray);
  font-size: 1.05rem;
}

.featured-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  padding: 16px 30px;
  border: 2px solid var(--c-red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.btn-primary {
  background: var(--c-red);
  color: var(--c-white);
}

.btn-primary:hover {
  background: var(--c-red-bright);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(226, 16, 30, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--c-white);
}

.btn-outline:hover {
  background: var(--c-white);
  color: var(--c-black);
  border-color: var(--c-white);
  transform: translateY(-3px);
}

.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ==========================================================================
   Cards / grids (features, values, team)
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 50px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 50px;
}

.card {
  background: var(--c-black-card);
  border: 1px solid var(--c-line);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--c-red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-6px); border-color: var(--c-red-dark); }
.card:hover::before { transform: scaleY(1); }

.card-icon {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  color: var(--c-red);
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--font-headline);
  letter-spacing: 0.03em;
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.card p { color: var(--c-gray); margin: 0; font-size: 0.95rem; }

/* ==========================================================================
   Game page specific
   ========================================================================== */

#overview {
  position: relative;
  background: var(--c-black) url("../assets/img/background.jpg") center 16% / cover no-repeat;
  overflow: hidden;
}

#overview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--c-black) 0%, rgba(10,9,8,0.92) 38%, rgba(10,9,8,0.55) 68%, rgba(10,9,8,0.25) 100%);
}

#overview .container { position: relative; z-index: 1; }

.game-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-black);
}

.game-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1s ease;
}

.game-hero-video.is-ready { opacity: 0.55; }

.game-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0.35) 0%, rgba(10,9,8,0.55) 55%, var(--c-black) 100%);
}

.game-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 110px 24px 0;
}

.game-hero-logo-img {
  display: block;
  margin: 0 auto;
  width: min(80vw, 560px);
  height: auto;
}

.game-hero-tag {
  font-family: var(--font-tag);
  color: var(--c-red-bright);
  font-size: 1.4rem;
  margin: 18px 0 0;
}

.game-hero-content .featured-buttons {
  justify-content: center;
  margin-top: 30px;
}

.game-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-credit {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: rgba(245, 241, 232, 0.4);
}

.game-scroll-cue .arrow {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--c-red), transparent);
  animation: scroll-drop 1.8s ease-in-out infinite;
}

@keyframes scroll-drop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.trailer-frame {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--c-line);
  background: var(--c-black-card);
  overflow: hidden;
}

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

.meta-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: var(--c-gray);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta-row strong { color: var(--c-white); display: block; font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; margin-bottom: 4px; }

.concept-marquee {
  margin-top: 50px;
  overflow: hidden;
  width: 100%;
}

.concept-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: concept-scroll 32s linear infinite;
}

.concept-marquee:hover .concept-track { animation-play-state: paused; }

.concept-tile {
  flex: 0 0 auto;
  width: min(70vw, 420px);
  aspect-ratio: 4 / 3;
  background: var(--c-black-card);
  border: 1px solid var(--c-line);
  overflow: hidden;
}

.concept-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.concept-tile:hover img { transform: scale(1.08); }

@keyframes concept-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 10px)); }
}

.cta-band {
  position: relative;
  background: var(--c-red) url("../assets/img/background.jpg") center 50% / cover no-repeat;
  padding: 110px 0;
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0.55) 0%, rgba(226,16,30,0.78) 60%, rgba(10,9,8,0.7) 100%);
}

.cta-band .container { position: relative; z-index: 1; }

.cta-band h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 26px;
  color: var(--c-white);
}

.cta-band .btn-outline {
  border-color: var(--c-white);
}

.cta-band .btn-outline:hover {
  background: var(--c-black);
  color: var(--c-white);
  border-color: var(--c-black);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--c-gray);
  margin-bottom: 30px;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--c-red-bright); }

/* ==========================================================================
   About page specific
   ========================================================================== */

.team-collage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--c-black);
  padding: 56px 0;
}

.team-track {
  display: flex;
  width: max-content;
  gap: 20px;
  padding: 0 20px;
  animation: team-scroll 36s linear infinite;
}

.team-collage:hover .team-track { animation-play-state: paused; }

.team-tile {
  flex: 0 0 auto;
  width: min(70vw, 480px);
  aspect-ratio: 4 / 3;
  background: var(--c-black-card);
  border: 1px solid var(--c-line);
  overflow: hidden;
}

.team-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-tile:hover img { transform: scale(1.08); }

@keyframes team-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 10px)); }
}

.about-hero {
  padding: calc(var(--nav-h) + 56px) 0 48px;
  background: var(--c-black);
  position: relative;
  overflow: hidden;
}

.about-heading {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 24px;
}

.about-copy .section-lede { margin: 0 0 10px; max-width: 760px; }

.group-heading {
  font-family: var(--font-headline);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.02em;
  margin: 0 0 28px;
}

/* Columns are sized to their content (not equal 1fr shares), with the
   leftover width distributed as gaps — so the first/last card sit
   flush with the container edges (equal left/right margins) instead
   of leaving a dead zone to the right of a narrow column. */
.member-grid {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: space-between;
  gap: 40px 24px;
}

.member-card { text-align: left; width: 190px; }

.member-avatar {
  width: 160px;
  height: 160px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Photo avatars drop the white disc and show the character's own
   transparent-background art instead of a hard circle crop. */
.member-avatar:has(img) {
  background: transparent;
  overflow: visible;
}

.member-avatar:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 14px 30px rgba(226, 16, 30, 0.4);
}

.member-avatar:has(img):hover { box-shadow: none; }

.member-avatar span {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  color: var(--c-black);
}

.member-avatar img {
  width: 160px;
  height: auto;
  max-height: 160px;
  object-fit: contain;
}

.member-card h4 {
  font-family: var(--font-headline);
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  font-size: 1rem;
}

.member-title { color: var(--c-gray); font-size: 0.8rem; margin: 0 0 8px; }

.member-linkedin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.member-linkedin svg { width: 15px; height: 15px; fill: var(--c-white); }

.member-linkedin:hover {
  background: var(--c-red-bright);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--c-line);
  padding: 50px 0;
  background: var(--c-black);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-gray);
  font-size: 0.9rem;
}

.footer-brand .dot { color: var(--c-red); }

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--c-red);
  border-color: var(--c-red);
  transform: translateY(-2px);
}

.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

.footer-copy {
  width: 100%;
  color: var(--c-gray);
  font-size: 0.8rem;
  margin-top: 10px;
  border-top: 1px solid var(--c-line);
  padding-top: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-info { padding: 28px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: repeat(2, max-content); }
  .about-teaser-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-teaser-photos { max-width: 420px; }
}

@media (max-width: 760px) {
  .menu-overlay { grid-template-columns: 1fr; }
  .menu-overlay-visual { display: none; }
  .menu-overlay-panel { padding: 110px 24px 40px; }
  .hero-split-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-split-intro { padding-top: 0; }
  .about-teaser-photos .photo-b { margin: -40px 0 0 38%; }
}

@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(2, max-content); }
  .section-pad { padding: 90px 0; }
}

@media (max-width: 480px) {
  .topbar-mark { display: none; }
  .member-grid { grid-template-columns: 1fr; justify-content: start; }
}
