/* ==============================================================================
   KRYSKAFLOW TEAM & FOUNDER — Option 2: Zero-Loop Editorial Showcase
   GPU-composited CSS animations only (0 WebGL, 0 Canvas, 0 continuous rAF loops).
   Uses exact palette, shadows, & typography from design.md + css/tokens.css
   ============================================================================== */

:root {
  color-scheme: light dark;
  --team-bg: var(--bg-base, #FFFFFF);
  --team-surface: var(--bg-subtle, #F8FAFC);
  --team-card: var(--bg-studio-gray, #F5F5F7);
  --team-ink: var(--text-heading, #0F172A);
  --team-body: var(--text-body, #475569);
  --team-muted: var(--text-muted, #64748B);
  --team-accent: var(--accent-red, #FF1E27);
  --team-border: rgba(15, 23, 42, 0.1);
  --team-glass: rgba(255, 255, 255, 0.84);
  --team-pill-bg: rgba(15, 23, 42, 0.05);
  --team-shadow-sm: 0 2px 3px -1px rgba(0, 0, 0, 0.1),
                    0 1px 0 0 rgba(25, 28, 33, 0.02),
                    0 0 0 1px rgba(25, 28, 33, 0.08);
  --team-shadow-md: 0 0 0 1px rgba(0, 0, 0, 0.06),
                    0 1px 1px -0.5px rgba(0, 0, 0, 0.06),
                    0 3px 3px -1.5px rgba(0, 0, 0, 0.06),
                    0 6px 6px -3px rgba(0, 0, 0, 0.06),
                    0 12px 12px -6px rgba(0, 0, 0, 0.06),
                    0 24px 24px -12px rgba(0, 0, 0, 0.06);
  --drop-x: calc(100vw - 64px);
  --drop-y: 36px;
  --drop-r: 150vmax;
}

:root[data-theme="dark"],
:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  --team-bg: var(--bg-dark-obsidian, #0F172A);
  --team-surface: #131D35;
  --team-card: #1E293B;
  --team-ink: var(--text-inverse, #FFFFFF);
  --team-body: #CBD5E1;
  --team-muted: var(--text-subtle, #94A3B8);
  --team-border: rgba(255, 255, 255, 0.12);
  --team-glass: rgba(15, 23, 42, 0.82);
  --team-pill-bg: rgba(255, 255, 255, 0.08);
  --team-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --team-shadow-md: 0 12px 30px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.team-page {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--team-bg);
  color: var(--team-ink);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.team-wrap {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- View Transition Radial Liquid-Drop Flood (GPU Compositor Only) ---------- */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  animation: theme-drop-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes theme-drop-reveal {
  from {
    clip-path: circle(0px at var(--drop-x) var(--drop-y));
  }
  to {
    clip-path: circle(var(--drop-r) at var(--drop-x) var(--drop-y));
  }
}

/* ---------- Focus Accessibility ---------- */
:where(a, button):focus-visible {
  outline: 2px solid var(--team-accent);
  outline-offset: 3px;
}

/* ---------- Sticky Glass Top Bar ---------- */
.team-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: var(--team-glass);
  border-bottom: 1px solid var(--team-border);
}

.team-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-block-size: 64px;
  padding-block: 8px;
}

.team-scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--team-accent);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .team-scroll-progress {
      animation: scroll-progress-grow linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes scroll-progress-grow {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
  }
}

.team-brand-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  color: var(--team-ink);
  text-decoration: none;
  touch-action: manipulation;
}

.team-wordmark-svg {
  display: block;
  width: 158px;
  height: auto;
}

.team-wordmark-svg .wm-primary {
  fill: var(--team-ink);
}

.team-wordmark-svg .wm-accent {
  fill: var(--team-accent);
}

.team-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.team-hdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-block-size: 44px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid var(--team-border);
  background: transparent;
  color: var(--team-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease, transform 0.14s ease;
}

.team-hdr-btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .team-hdr-btn:hover {
    border-color: var(--team-ink);
    background: var(--team-pill-bg);
  }
}

/* ---------- 2x2 Frosted Sheet Sprites (Pure CSS, Zero Canvas Processing) ---------- */
.sheet-crop {
  background-repeat: no-repeat;
  background-size: 200% 200%;
  background-color: var(--team-card);
}

.sheet-1-tl { background-image: url("../assets/team/sealed-sheet-1.webp"); background-position: 0% 0%; }
.sheet-1-tr { background-image: url("../assets/team/sealed-sheet-1.webp"); background-position: 100% 0%; }
.sheet-1-bl { background-image: url("../assets/team/sealed-sheet-1.webp"); background-position: 0% 100%; }
.sheet-1-br { background-image: url("../assets/team/sealed-sheet-1.webp"); background-position: 100% 100%; }

.sheet-2-tl { background-image: url("../assets/team/sealed-sheet-2.webp"); background-position: 0% 0%; }
.sheet-2-tr { background-image: url("../assets/team/sealed-sheet-2.webp"); background-position: 100% 0%; }
.sheet-2-bl { background-image: url("../assets/team/sealed-sheet-2.webp"); background-position: 0% 100%; }
.sheet-2-br { background-image: url("../assets/team/sealed-sheet-2.webp"); background-position: 100% 100%; }

.sheet-3-tl { background-image: url("../assets/team/sealed-sheet-3.webp"); background-position: 0% 0%; }
.sheet-3-tr { background-image: url("../assets/team/sealed-sheet-3.webp"); background-position: 100% 0%; }
.sheet-3-bl { background-image: url("../assets/team/sealed-sheet-3.webp"); background-position: 0% 100%; }
.sheet-3-br { background-image: url("../assets/team/sealed-sheet-3.webp"); background-position: 100% 100%; }

/* ---------- Section 1: Editorial Hero + Tidewell-Inspired CSS Card Fan ---------- */
.team-hero {
  padding-block: clamp(44px, 6vw, 76px) clamp(32px, 5vw, 56px);
  text-align: center;
  overflow-x: clip;
}

.team-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--team-pill-bg);
  border: 1px solid var(--team-border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--team-muted);
  margin-bottom: 18px;
}

.team-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--team-accent);
}

.team-hero-title {
  margin: 0 auto 14px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2.15rem, 4.6vw, 3.85rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--team-ink);
}

.team-hero-accent {
  color: var(--team-accent);
}

.reveal-clip {
  display: block;
  overflow: hidden;
}

.reveal-line {
  display: block;
  animation: hero-line-rise 0.72s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--ri, 0) * 0.09s) both;
}

@keyframes hero-line-rise {
  from {
    opacity: 0;
    transform: translateY(105%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}

.team-hero-sub {
  max-width: 650px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  color: var(--team-body);
}

.team-inline-link {
  color: var(--team-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.team-em {
  color: var(--team-ink);
  font-weight: 700;
}

/* Pure CSS Fanned Portrait Deck (One-Shot Load Fan-Out + Interactive Hover Spread) */
.team-fan-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin-top: clamp(32px, 5vw, 54px);
  padding-block: 16px 26px;
  min-block-size: 310px;
}

/* Stationary hit-box button (.fan-card) prevents pointer-leave jitter when inner .fan-card-visual lifts on hover */
.fan-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(134px, 15.5vw, 196px);
  margin-inline: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--team-ink);
  cursor: pointer;
  touch-action: manipulation;
  --fan-rot: calc(var(--fi, 0) * 4.5deg);
  --fan-y: calc(var(--fi, 0) * var(--fi, 0) * 8px);
  z-index: calc(5 - var(--fi, 0) * var(--fi, 0));
}

.fan-card[hidden] {
  display: none !important;
}

.team-fan-stage.is-duo .fan-card {
  width: clamp(164px, 17vw, 206px);
  margin-inline: -6px;
  z-index: 5;
}

.team-fan-stage.is-duo .fan-card-center {
  z-index: 6;
}

.fan-card-visual {
  display: block;
  width: 100%;
  padding: 8px 8px 10px;
  border-radius: 16px;
  border: 1px solid var(--team-border);
  background: var(--team-surface);
  box-shadow: var(--team-shadow-md);
  transform-origin: 50% 105%;
  transform: translate3d(0, var(--fan-y), 0) rotate(var(--fan-rot));
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.36s ease, border-color 0.25s ease, opacity 0.25s ease;
  animation: fan-enter 0.8s cubic-bezier(0.34, 1.35, 0.64, 1) calc(0.18s + (var(--fi, 0) + 2) * 0.055s) backwards;
  pointer-events: none;
}

.fan-card-center {
  z-index: 6;
}

@keyframes fan-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 72px, 0) rotate(calc(var(--fi, 0) * 1.5deg)) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate3d(0, var(--fan-y), 0) rotate(var(--fan-rot)) scale(1);
  }
}

.fan-frame {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--team-border);
}

.fan-monogram {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  text-align: left;
  background: linear-gradient(155deg, #FFFFFF 0%, #F1F5F9 100%);
  color: #0F172A;
}

:root[data-theme="dark"] .fan-monogram {
  background: linear-gradient(155deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
}

.fm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--team-muted);
}

.fm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--team-accent);
}

.fm-initials {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.fm-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 9px;
}

.fm-bottom strong {
  font-size: 10px;
  letter-spacing: -0.01em;
}

.fm-bottom span {
  color: var(--team-muted);
  font-weight: 600;
}

.fan-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--team-muted);
}

.fan-card-center .fan-meta span:first-child {
  color: var(--team-accent);
}

@media (hover: hover) and (pointer: fine) {
  .fan-card:hover,
  .fan-card:focus-visible {
    z-index: 12;
  }
  .fan-card:hover .fan-card-visual,
  .fan-card:focus-visible .fan-card-visual {
    border-color: var(--team-ink);
    transform: translate3d(0, -18px, 0) rotate(0deg) scale(1.06);
  }
  .team-fan-stage:has(.fan-card:hover) .fan-card:not(:hover) .fan-card-visual {
    opacity: 0.84;
  }
}

/* ---------- Section 2: Flagship Founder Spotlight Card ---------- */
.founder-section {
  padding-block: 16px clamp(64px, 8vw, 96px);
}

.founder-card {
  display: grid;
  grid-template-columns: minmax(250px, 340px) 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(20px, 3.2vw, 36px);
  border-radius: 24px;
  border: 1px solid var(--team-border);
  background: var(--team-surface);
  box-shadow: var(--team-shadow-md);
}

.founder-plate-btn {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
}

.founder-monogram-plate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--team-border);
  background: linear-gradient(160deg, #FFFFFF 0%, #F1F5F9 100%);
  color: #0F172A;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

:root[data-theme="dark"] .founder-monogram-plate {
  background: linear-gradient(160deg, #1E293B 0%, #0B1222 100%);
  color: #FFFFFF;
}

.founder-monogram-plate.has-photo {
  background-size: cover;
  background-position: center 20%;
}

.founder-monogram-plate.has-photo .fp-center,
.founder-monogram-plate.has-photo .fp-footer,
.founder-monogram-plate.has-photo .fp-header {
  opacity: 0;
}

.fp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--team-muted);
}

.fp-beacon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--team-accent);
}

.fp-center {
  padding-block: 12px;
}

.fp-akr {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(3.4rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.fp-footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid var(--team-border);
}

.fp-name {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.fp-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--team-body);
}

.fp-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--team-muted);
}

.founder-plate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-block-size: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--team-border);
  background: var(--team-bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--team-ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .founder-plate-btn:hover .founder-monogram-plate {
    transform: translateY(-4px);
    box-shadow: var(--team-shadow-md);
  }
  .founder-plate-btn:hover .founder-plate-cta {
    border-color: var(--team-ink);
  }
}

.founder-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid var(--team-border);
  background: var(--team-bg);
}

.status-pill-active {
  color: var(--team-ink);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--team-accent);
}

.entity-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--team-muted);
}

.founder-name {
  margin: 0 0 10px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.founder-lead {
  margin: 0 0 22px;
  max-width: 58ch;
  color: var(--team-body);
  font-size: 15.5px;
}

.founder-facts {
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--team-border);
  border-bottom: 1px solid var(--team-border);
}

.ff-row dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--team-muted);
  margin-bottom: 2px;
}

.ff-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--team-ink);
}

.socials-caption {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--team-muted);
  margin-bottom: 10px;
}

.socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-block-size: 44px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid var(--team-border);
  background: var(--team-bg);
  color: var(--team-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  touch-action: manipulation;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.social-pill:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .social-pill:hover {
    border-color: var(--team-accent);
    color: var(--team-accent);
  }
}

/* ---------- Section 3: Filter Bar + Sealed Team Grid ---------- */
.gallery-section {
  padding-block: 12px clamp(48px, 6vw, 72px);
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--team-muted);
  margin-bottom: 6px;
}

.section-title {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-desc {
  margin: 0;
  max-width: 56ch;
  color: var(--team-body);
  font-size: 15px;
}

/* 5-Photo Editorial Bento Gallery */
.gallery-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 16px;
}

.gallery-frame {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--team-border);
  background: var(--team-card);
  box-shadow: var(--team-shadow-sm);
  cursor: zoom-in;
  outline: none;
}

.gallery-frame:focus-visible {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35), var(--team-shadow-sm);
  border-color: var(--team-accent);
}

.gallery-frame:nth-child(1) {
  grid-column: 1 / span 8;
  grid-row: 1 / span 2;
}

.gallery-frame:nth-child(2) {
  grid-column: 9 / span 4;
  grid-row: 1;
}

.gallery-frame:nth-child(3) {
  grid-column: 9 / span 4;
  grid-row: 2 / span 2;
}

.gallery-frame:nth-child(3) .gallery-media {
  object-position: 50% 20%;
}

.gallery-frame:nth-child(4) {
  grid-column: 1 / span 4;
  grid-row: 3;
}

.gallery-frame:nth-child(5) {
  grid-column: 5 / span 4;
  grid-row: 3;
}

.gallery-frame:nth-child(5) .gallery-media {
  object-position: left center;
}

.gallery-frame:nth-child(5) .gallery-caption {
  justify-content: flex-end;
  gap: 10px;
}

/* Future Achievement Auto-Slider Stage (05 / 05) */
.gallery-frame.is-achv-empty::after {
  display: none;
}

.achv-stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.055), transparent 68%), #0B1220;
  text-align: center;
}

.achv-stage.is-lightbox {
  width: min(86vw, 760px);
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.achv-copy {
  margin: 0;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(248, 250, 252, 0.92);
}

.achv-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.achv-slider.is-lightbox {
  max-width: min(88vw, 1180px);
  max-height: calc(100dvh - 168px);
}

.achv-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.achv-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achv-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.achv-slider .achv-dots {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
}

.achv-dot {
  width: 6px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.achv-dot.is-active {
  width: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.glx-thumb-achv {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #0F172A;
  color: rgba(248, 250, 252, 0.85);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.gallery-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 48%, rgba(15, 23, 42, 0.72) 100%);
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #FFFFFF;
}

.gallery-cap-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.gallery-cap-num {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-frame:hover .gallery-media {
    transform: scale(1.04);
  }
}

/* Fallback one-shot reveal when scroll-driven animation-timeline: view() is unavailable */
@supports not ((animation-timeline: view()) and (animation-range: entry)) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--stagger, 0) * 55ms);
  }
  .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-Driven Section Choreography (Compositor-Only, 0% Idle CPU) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fan-scatter-exit {
      exit 0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
      }
      exit 100% {
        opacity: 0.18;
        transform: translate3d(calc(var(--fi, 0) * 32px), -28px, 0) scale(0.9);
      }
    }

    .team-fan-stage .fan-card {
      animation: fan-scatter-exit linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 95%;
    }

    @keyframes founder-card-unfold {
      entry 0% {
        opacity: 0.2;
        transform: translate3d(0, 64px, 0) scale(0.96);
      }
      entry 70% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
      }
    }

    @keyframes col-glide-left {
      entry 0% {
        opacity: 0.1;
        transform: translate3d(-32px, 28px, 0) rotate(-1.6deg);
      }
      entry 72% {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(0deg);
      }
    }

    @keyframes col-glide-right {
      entry 0% {
        opacity: 0.1;
        transform: translate3d(32px, 28px, 0);
      }
      entry 72% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
      }
    }

    .founder-card {
      animation: founder-card-unfold linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    .founder-plate-col {
      animation: col-glide-left linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 72%;
    }

    .founder-info-col {
      animation: col-glide-right linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 72%;
    }

    @keyframes gallery-head-reveal {
      entry 0% {
        opacity: 0.2;
        transform: translate3d(0, 36px, 0);
      }
      entry 65% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
      }
    }

    .gallery-head {
      animation: gallery-head-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }

    @keyframes gallery-frame-rise {
      entry 0% {
        opacity: 0.15;
        transform: translate3d(0, 56px, 0) scale(0.95);
      }
      entry 70% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
      }
    }

    .gallery-frame {
      animation: gallery-frame-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

/* Subtle modal info crossfade on Prev / Next card stepping */
.dlg-info-col.is-stepping {
  animation: dlg-step-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dlg-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Native Top-Layer Bottom Sheet (PC + Mobile HOF Slide-Up + Seamless Left Image Blend) ---------- */
dialog.role-dialog {
  position: fixed;
  inset: auto 0 0 0;
  width: 100vw;
  max-width: 100vw;
  max-height: min(94dvh, 840px);
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--team-border);
  border-radius: 28px 28px 0 0;
  background: var(--team-bg);
  color: var(--team-ink);
  box-shadow: 0 -24px 64px -16px rgba(15, 23, 42, 0.24);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  contain: layout paint;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

dialog.role-dialog:focus {
  outline: none;
}

dialog.role-dialog:modal {
  overscroll-behavior: contain;
}

dialog.role-dialog::backdrop {
  background: rgba(10, 12, 18, 0.56);
  opacity: 1;
  transition: opacity 0.24s ease;
  overflow: hidden;
  overscroll-behavior: contain;
}

dialog.role-dialog.is-prep {
  transform: translate3d(0, 100%, 0);
  opacity: 0.96;
  transition: none;
}

dialog.role-dialog.is-prep::backdrop {
  opacity: 0;
}

dialog.role-dialog.is-closing {
  transform: translate3d(0, 100%, 0);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1), opacity 0.18s ease;
  pointer-events: none;
}

dialog.role-dialog.is-closing::backdrop {
  opacity: 0;
}

.dlg-shell {
  position: relative;
  padding: 0;
}

.dlg-drag-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  cursor: grab;
  touch-action: none;
}

.dlg-drag-bar:active {
  cursor: grabbing;
}

.dlg-grab-pill {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
  pointer-events: none;
}

.dlg-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--team-border);
  background: rgba(255, 255, 255, 0.96);
  color: #0F172A;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

:root[data-theme="dark"] .dlg-close {
  background: rgba(30, 41, 59, 0.96);
  color: #FFFFFF;
}

.dlg-close:focus:not(:focus-visible) {
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .dlg-close:hover {
    border-color: var(--team-accent);
    color: var(--team-accent);
  }
}

.dlg-grid {
  display: grid;
  grid-template-columns: minmax(320px, 44%) 1fr;
  gap: 0;
  min-height: min(780px, 88dvh);
  align-items: stretch;
}

.dlg-media-col {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border: 0;
  background: transparent;
  touch-action: pan-x;
  cursor: grab;
}

.dlg-media-col:active {
  cursor: grabbing;
}

.dlg-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.dlg-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 42%, var(--team-bg) 96%);
  pointer-events: none;
  z-index: 2;
}

:root[data-theme="dark"] .dlg-stage::after {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0) 42%, var(--team-bg) 96%);
}

.dlg-stage .founder-monogram-plate {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 36px 40px 104px;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.055) 0%, rgba(15, 23, 42, 0.015) 100%);
  box-shadow: none;
}

:root[data-theme="dark"] .dlg-stage .founder-monogram-plate {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.dlg-stage .founder-monogram-plate .fp-footer {
  border-top: 0;
  padding-top: 8px;
}

.dlg-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dlg-visual-next {
  opacity: 0;
  pointer-events: none;
}

.dlg-visual-next.is-wiping {
  opacity: 1;
  animation: swatch-wipe 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes swatch-wipe {
  from {
    clip-path: circle(0% at var(--swatch-x, 50%) 100%);
  }
  to {
    clip-path: circle(155% at var(--swatch-x, 50%) 100%);
  }
}

.dlg-thumbs {
  position: absolute;
  left: clamp(24px, 3vw, 40px);
  bottom: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--team-border);
  box-shadow: var(--shadow-sm, 0 4px 16px rgba(15, 23, 42, 0.12));
}

:root[data-theme="dark"] .dlg-thumbs {
  background: rgba(15, 23, 42, 0.92);
}

.dlg-thumb-btn {
  position: relative;
  width: 52px;
  height: 44px;
  min-block-size: 44px;
  padding: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.72;
  touch-action: manipulation;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.dlg-thumb-btn.is-active {
  opacity: 1;
  border-color: var(--team-accent);
}

.dlg-info-col {
  padding: clamp(30px, 3.6vw, 46px) clamp(28px, 6vw, 96px) clamp(28px, 3.2vw, 40px) clamp(12px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dlg-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--team-muted);
  margin-bottom: 6px;
}

.dlg-title {
  margin: 0 0 16px;
  padding-right: 44px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.dlg-facts {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px 4px;
  border-radius: 16px;
  border: 1px solid var(--team-border);
  background: var(--team-card);
}

.dlg-facts .ff-row {
  padding: 2px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.dlg-facts .ff-row + .ff-row {
  border-left: 1px solid var(--team-border);
}

.dlg-fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--team-border);
  background: var(--team-bg);
  color: var(--team-ink);
  margin-bottom: 8px;
}

.dlg-facts .ff-row dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--team-muted);
  margin-bottom: 4px;
}

.dlg-facts .ff-row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--team-ink);
  word-break: break-word;
}

.dlg-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(255, 30, 39, 0.09);
  color: #DC2626;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

:root[data-theme="dark"] .dlg-status-pill {
  background: rgba(255, 30, 39, 0.18);
  color: #FCA5A5;
}

.dlg-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--team-accent);
  flex-shrink: 0;
}

.dlg-status-pill.is-active {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

:root[data-theme="dark"] .dlg-status-pill.is-active {
  color: #6EE7B7;
}

.dlg-status-pill.is-active .dlg-status-dot {
  background: #10B981;
}

.dlg-status-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--team-muted);
}

.dlg-note {
  margin: 0 0 18px;
  padding: 2px 0 18px 14px;
  border-left: 2.5px solid var(--team-accent);
  border-bottom: 1px solid var(--team-border);
  color: var(--team-body);
  font-size: 14px;
  line-height: 1.58;
}

.dlg-nav-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--team-border);
}

.dlg-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-block-size: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--team-border);
  background: var(--team-surface);
  color: var(--team-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

/* ---------- Gallery Fullscreen Lightbox (Zoom + Slide) ---------- */
dialog.gallery-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 12, 22, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #FFFFFF;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s ease;
}

dialog.gallery-lightbox[open] {
  opacity: 1;
}

dialog.gallery-lightbox.is-prep,
dialog.gallery-lightbox.is-closing {
  opacity: 0;
}

dialog.gallery-lightbox::backdrop {
  background: transparent;
}

.glx-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 14px 20px 18px;
  box-sizing: border-box;
  gap: 10px;
}

.glx-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 3;
}

.glx-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.glx-num {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
}

.glx-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glx-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.glx-icon-btn,
.glx-zoom-readout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.glx-icon-btn:focus:not(:focus-visible),
.glx-zoom-readout:focus:not(:focus-visible),
.glx-arrow:focus:not(:focus-visible),
.glx-thumb-btn:focus:not(:focus-visible) {
  outline: none;
}

.glx-icon-btn {
  width: 40px;
  padding: 0;
}

.glx-zoom-readout {
  min-width: 52px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.glx-icon-btn:disabled {
  opacity: 0.36;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .glx-icon-btn:not(:disabled):hover,
  .glx-zoom-readout:hover,
  .glx-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.34);
  }
}

.glx-stage {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.glx-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.glx-media-slot {
  --glx-tx: 0px;
  --glx-ty: 0px;
  --glx-scale: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  transform: translate3d(var(--glx-tx), var(--glx-ty), 0) scale(var(--glx-scale));
  transform-origin: center center;
  will-change: transform;
  cursor: zoom-in;
}

.glx-media-slot.is-smooth {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.glx-media-slot.is-zoomed {
  cursor: grab;
}

.glx-media-slot.is-grabbing {
  cursor: grabbing;
}

.glx-media-slot.is-sliding-next {
  animation: glxSlideNext 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.glx-media-slot.is-sliding-prev {
  animation: glxSlidePrev 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes glxSlideNext {
  from { opacity: 0.35; transform: translate3d(38px, 0, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes glxSlidePrev {
  from { opacity: 0.35; transform: translate3d(-38px, 0, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.glx-img {
  max-width: min(88vw, 1180px);
  max-height: calc(100dvh - 168px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  display: block;
  pointer-events: none;
}

.glx-placeholder {
  width: min(84vw, 720px);
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.glx-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.glx-arrow.is-prev { left: 8px; }
.glx-arrow.is-next { right: 8px; }

.glx-bottombar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.glx-thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.glx-thumb-btn {
  width: 48px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.58;
  touch-action: manipulation;
  transition: opacity 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.glx-thumb-btn img,
.glx-thumb-btn .sheet-crop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glx-thumb-btn.is-active {
  opacity: 1;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.glx-hint {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Minimal Footer ---------- */
.team-footer {
  border-top: 1px solid var(--team-border);
  background: var(--team-surface);
  padding-block: 28px;
}

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

.footer-brand-copy {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer-logo-text {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-sub {
  font-size: 13px;
  color: var(--team-muted);
}

.footer-sub a {
  color: var(--team-ink);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  font-size: 13px;
  font-weight: 600;
  color: var(--team-muted);
  text-decoration: none;
  transition: color 0.16s ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover {
    color: var(--team-ink);
  }
}

/* ---------- Tablet (769px - 1024px) ---------- */
@media (max-width: 1024px) {
  .gallery-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 225px;
  }
  .gallery-frame:nth-child(1) {
    grid-column: span 2;
    grid-row: 1;
  }
  .gallery-frame:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .gallery-frame:nth-child(3) {
    grid-column: 2;
    grid-row: 2 / span 2;
  }
  .gallery-frame:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }
  .gallery-frame:nth-child(5) {
    grid-column: span 2;
    grid-row: 4;
  }
}

/* ---------- Mobile (<= 768px) ---------- */
@media (max-width: 768px) {
  .team-wrap {
    width: min(100% - 32px, 680px);
  }

  .team-wordmark-svg {
    width: 136px;
  }

  .team-hdr-btn {
    padding: 0 12px;
    font-size: 11px;
  }

  .team-fan-stage {
    min-block-size: 220px;
    margin-top: 24px;
  }

  .fan-card {
    width: clamp(78px, 21vw, 118px);
    margin-inline: -10px;
  }

  .team-fan-stage.is-duo .fan-card {
    width: clamp(130px, 36vw, 166px);
    margin-inline: -7px;
  }

  .team-fan-stage.is-duo .fm-initials {
    font-size: 1.75rem;
  }

  .team-fan-stage.is-duo .fm-bottom strong {
    font-size: 8.5px;
  }

  .fan-card-visual {
    padding: 5px 5px 7px;
    border-radius: 12px;
  }

  .fan-monogram {
    padding: 7px;
  }

  .fm-top {
    font-size: 7.5px;
  }

  .fm-initials {
    font-size: 1.35rem;
  }

  .fm-bottom strong {
    font-size: 7.5px;
    line-height: 1.1;
  }

  .fm-bottom span {
    display: none;
  }

  .fan-meta {
    justify-content: center;
    font-size: 8px;
  }

  .fan-meta span:last-child {
    display: none;
  }

  .founder-card {
    grid-template-columns: 1fr;
  }

  .founder-monogram-plate {
    aspect-ratio: 4 / 3;
  }

  .gallery-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 196px 112px 112px 182px;
    grid-auto-rows: 130px;
    gap: 10px;
  }

  .gallery-frame {
    border-radius: 14px;
  }

  .gallery-frame:nth-child(1) {
    grid-column: span 2;
    grid-row: 1;
  }

  .gallery-frame:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .gallery-frame:nth-child(3) {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  .gallery-frame:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .gallery-frame:nth-child(5) {
    grid-column: span 2;
    grid-row: 4;
  }

  .gallery-caption {
    left: 10px;
    right: 10px;
    bottom: 9px;
    gap: 6px;
  }

  .gallery-cap-title {
    font-size: 11px;
    line-height: 1.24;
  }

  .gallery-cap-num {
    font-size: 9px;
  }

  dialog.role-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 92dvh;
    max-height: 92dvh;
    border-inline: 0;
    border-radius: 26px 26px 0 0;
  }

  .dlg-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dlg-media-col {
    height: 46dvh;
    min-height: 46dvh;
  }

  .dlg-stage::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 44%, var(--team-bg) 96%);
  }

  :root[data-theme="dark"] .dlg-stage::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 44%, var(--team-bg) 96%);
  }

  .dlg-stage .founder-monogram-plate {
    padding: 26px 20px 64px;
  }

  .dlg-thumbs {
    left: 16px;
    bottom: 10px;
    gap: 6px;
    padding: 5px;
  }

  .dlg-thumb-btn {
    width: 46px;
  }

  .dlg-info-col {
    padding: 2px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .dlg-kicker {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .dlg-title {
    font-size: 1.32rem;
    margin-bottom: 12px;
    padding-right: 0;
  }

  .dlg-facts {
    margin-bottom: 12px;
    padding: 10px 2px;
    border-radius: 14px;
  }

  .dlg-facts .ff-row {
    padding: 0 7px;
  }

  .dlg-fact-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    margin-bottom: 6px;
  }

  .dlg-facts .ff-row dt {
    font-size: 8.5px;
    margin-bottom: 3px;
  }

  .dlg-facts .ff-row dd {
    font-size: 10.5px;
    line-height: 1.25;
  }

  .dlg-status-pill {
    font-size: 9px;
    padding: 2px 6px;
    gap: 4px;
  }

  .dlg-status-dot {
    width: 5px;
    height: 5px;
  }

  .dlg-status-sub {
    font-size: 9.5px;
    margin-top: 3px;
  }

  .dlg-note {
    font-size: 12.5px;
    line-height: 1.45;
    padding: 0 0 12px 11px;
    margin-bottom: 12px;
  }

  .socials-caption {
    font-size: 9.5px;
    margin-bottom: 7px;
  }

  .socials-row {
    gap: 6px;
  }

  .social-pill {
    min-block-size: 38px;
    padding: 0 11px;
    font-size: 10.5px;
    gap: 5px;
  }

  .dlg-nav-row {
    margin-top: 12px;
    padding-top: 12px;
  }

  .dlg-nav-btn {
    min-block-size: 40px;
    padding: 0 13px;
    font-size: 11px;
  }

  .founder-facts {
    grid-template-columns: 1fr;
  }

  .glx-shell {
    padding: 10px 12px 14px;
  }

  .glx-title {
    display: none;
  }

  .glx-img {
    max-width: 96vw;
    max-height: calc(100dvh - 216px);
    border-radius: 10px;
  }

  .glx-viewport {
    padding-bottom: 52px;
    box-sizing: border-box;
  }

  .glx-arrow {
    top: auto;
    bottom: 2px;
    transform: none;
    width: 44px;
    height: 44px;
  }

  .glx-arrow.is-prev { left: calc(50% - 54px); }
  .glx-arrow.is-next { right: calc(50% - 54px); }

  .glx-thumb-btn {
    width: 42px;
    height: 32px;
  }

  .glx-hint {
    display: none;
  }
}

/* ---------- Reduced Motion Safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }

  .reveal-line,
  .fan-card-visual,
  .dlg-visual-next.is-wiping {
    animation: none !important;
  }

  dialog.role-dialog,
  dialog.role-dialog::backdrop,
  dialog.gallery-lightbox,
  .glx-media-slot.is-smooth {
    transition: none !important;
  }

  .glx-media-slot.is-sliding-next,
  .glx-media-slot.is-sliding-prev {
    animation: none !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fan-card-visual,
  .gallery-media {
    transition: none;
  }
}
