/* ==========================================================================
   Gizem Yıldırım — Obsidian Atelier & Gilded Ink Design System
   Bespoke 2D Game Artist Portfolio · Pure Static CSS
   ========================================================================== */

:root {
  --bg: #0b0a0e;
  --bg-elevated: #110f16;
  --surface: #16131d;
  --surface-2: #1e1a27;
  --surface-3: #272233;

  --text: #f5f0e8;
  --text-soft: #bfb7ab;
  --text-muted: #8a8278;

  --gold: #e5b55c;
  --gold-bright: #f7d488;
  --gold-dim: rgba(229, 181, 92, 0.14);
  --ember: #d94f30;
  --ember-dim: rgba(217, 79, 48, 0.16);
  --jade: #4fd18b;

  --paper: #f3efe6;
  --paper-ink: #1e1b18;

  --border: rgba(245, 240, 232, 0.09);
  --border-strong: rgba(245, 240, 232, 0.17);
  --border-gold: rgba(229, 181, 92, 0.36);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-card: 0 22px 55px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px var(--border-gold), 0 24px 60px rgba(0, 0, 0, 0.55);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container-max: 1320px;
  --header-h: 74px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

.mono {
  font-family: var(--font-mono);
}

.container {
  width: min(var(--container-max), calc(100% - 48px));
  margin-inline: auto;
}

/* Ambient Particle Canvas & Scroll Progress */
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--ember), var(--gold), var(--gold-bright));
  z-index: 120;
  pointer-events: none;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   BUTTONS & SHARED PRIMITIVES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: transform 0.28s var(--ease-out), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #16110a;
  box-shadow: 0 10px 28px rgba(229, 181, 92, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(229, 181, 92, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-gold);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
}

.btn-ghost:hover {
  color: var(--gold-bright);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.btn-subtle:hover {
  color: var(--gold-bright);
  border-color: var(--border-gold);
  background: rgba(229, 181, 92, 0.08);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(229, 181, 92, 0.1);
  border: 1px solid rgba(229, 181, 92, 0.28);
  color: var(--gold-bright);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-pill:hover {
  background: rgba(229, 181, 92, 0.18);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all 0.2s ease;
}

.btn-icon-sm:hover {
  background: rgba(229, 181, 92, 0.14);
  border-color: var(--border-gold);
  color: var(--gold-bright);
}

/* Paper Mat Frame for White-Background Lineart / Print Sheets */
.paper-mat {
  background: var(--paper);
  padding: 14px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(30, 27, 24, 0.08), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.paper-mat img {
  border-radius: 6px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(11, 10, 14, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 10, 14, 0.92);
  border-bottom-color: rgba(229, 181, 92, 0.18);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-seal {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, #211c2b, #100e14);
  border: 1.5px solid var(--border-gold);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  color: var(--gold-bright);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.brand-seal--sm {
  width: 34px;
  height: 34px;
  font-size: 0.82rem;
}

.brand-seal-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.is-active {
  color: var(--gold-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  transition: border-color 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--border-gold);
}

.lang-opt.is-active {
  color: var(--gold-bright);
  font-weight: 600;
}

.lang-sep {
  opacity: 0.35;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1.8px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.mobile-menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-drawer {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(14, 12, 19, 0.98);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border-strong);
  padding: 20px 24px 28px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-soft);
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-bright);
}

.mobile-drawer-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-social-row {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 56px 0 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow--gold {
  width: 560px;
  height: 560px;
  top: -180px;
  right: 8%;
  background: radial-gradient(circle, rgba(229, 181, 92, 0.16), transparent 70%);
}

.hero-glow--ember {
  width: 440px;
  height: 440px;
  top: 140px;
  left: -140px;
  background: radial-gradient(circle, rgba(217, 79, 48, 0.12), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 58px;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(79, 209, 139, 0.08);
  border: 1px solid rgba(79, 209, 139, 0.25);
  font-size: 0.8rem;
  font-weight: 500;
  color: #a9f0c8;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 0 rgba(79, 209, 139, 0.7);
  animation: pulseDot 2.4s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(79, 209, 139, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(79, 209, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 209, 139, 0); }
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.hero-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.7rem, 4.9vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-title-accent {
  display: block;
  font-style: italic;
  background: linear-gradient(125deg, #fff4d9 10%, var(--gold) 65%, #d68843 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--text-soft);
  max-width: 56ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--gold-bright);
}

.stat-lbl {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* Interactive Hero Showcase Stage */
.hero-stage-wrap {
  position: relative;
}

.hero-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-stage-frame {
  position: relative;
  aspect-ratio: 16 / 10.6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #14111b;
  border: 1px solid var(--border-gold);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(229, 181, 92, 0.18);
  cursor: pointer;
}

.hero-stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), opacity 0.35s ease;
}

.hero-stage-frame.is-contain .hero-stage-img {
  object-fit: contain;
  padding: 20px;
  background: radial-gradient(circle at 50% 42%, #242034 0%, #100d17 75%);
}

.hero-stage-frame:hover .hero-stage-img {
  transform: scale(1.03);
}

.hero-stage-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 10, 14, 0.45) 0%, transparent 28%, transparent 52%, rgba(11, 10, 14, 0.92) 100%);
  pointer-events: none;
}

.hero-stage-hud-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  z-index: 2;
}

@keyframes stageFadeIn {
  from { opacity: 0.35; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

.hero-stage-img.is-swapping {
  animation: stageFadeIn 0.36s var(--ease-out);
}

.stage-tag {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(11, 10, 14, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold-bright);
}

.stage-inspect-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(11, 10, 14, 0.76);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  color: var(--text);
  transition: all 0.25s ease;
}

.stage-inspect-btn:hover {
  background: var(--gold);
  color: #16110a;
}

.hero-stage-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
}

.hero-stage-disc {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 4px;
}

.hero-stage-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.15;
}

.hero-stage-meta {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.hero-deck-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-deck-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  transition: all 0.25s var(--ease-out);
  overflow: hidden;
}

.hero-deck-btn:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.hero-deck-btn.is-active {
  border-color: var(--gold);
  background: rgba(229, 181, 92, 0.09);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.hero-deck-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #0f0d15;
}

.hero-deck-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-deck-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-deck-btn.is-active .hero-deck-label {
  color: var(--gold-bright);
}

/* Discipline Ticker Strip */
.discipline-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  padding: 13px 0;
}

.discipline-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: marquee 34s linear infinite;
}

.discipline-track i {
  font-style: normal;
  color: var(--gold);
  opacity: 0.7;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTIONS & HEADERS
   ========================================================================== */
.section {
  padding: 96px 0;
}

.section--elevated {
  background: linear-gradient(180deg, rgba(22, 19, 29, 0.65) 0%, rgba(15, 13, 21, 0.92) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head-left {
  max-width: 650px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-desc {
  margin: 0;
  max-width: 46ch;
  color: var(--text-soft);
  font-size: 0.97rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-pill {
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  transition: all 0.24s ease;
}

.filter-pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-pill.is-active {
  background: var(--gold);
  color: #16110a;
  border-color: var(--gold);
  font-weight: 600;
}

/* ==========================================================================
   SECTION 01 — FLAGSHIP CASE STUDIES BENTO GRID
   ========================================================================== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.case-card {
  grid-column: span 6;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.38s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s ease;
}

.case-card--featured {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.case-card--trio {
  grid-column: span 4;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 35%), rgba(229, 181, 92, 0.12), transparent 62%);
  transition: opacity 0.3s ease;
  z-index: 1;
}

.case-card:hover::after {
  opacity: 1;
}

.case-card > * {
  position: relative;
  z-index: 2;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow);
}

.case-card-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #0e0c14;
}

.case-card--featured .case-card-visual {
  min-height: 410px;
}

.case-card-visual > img.case-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.case-card:hover .case-cover-img {
  transform: scale(1.04);
}

/* Custom Mobile UI 3-Phone Fan Showcase on Shipped Game Cards */
.case-mobile-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 315px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 58px 18px 0;
  background:
    radial-gradient(circle at 50% 24%, color-mix(in srgb, var(--card-accent, #e5b55c) 24%, transparent), transparent 68%),
    linear-gradient(165deg, #1a1626 0%, #0d0b13 100%);
  overflow: hidden;
}

.case-card--trio .case-mobile-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.case-card--trio .case-mobile-logo {
  height: 40px;
  max-width: 175px;
}

.case-card--trio .case-phone-fan {
  gap: 8px;
}

.case-card--trio .fan-phone {
  width: 90px;
  border-radius: 13px 13px 0 0;
}

.case-card--trio .fan-phone:nth-child(2) {
  width: 104px;
}

.case-card--trio .case-card-body {
  padding: 22px 22px 24px;
}

.case-card--trio .case-card-title {
  font-size: 1.42rem;
}

.case-mobile-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  max-width: 92%;
}

.case-mobile-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.case-mobile-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.case-phone-fan {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  z-index: 2;
}

.fan-phone {
  width: 118px;
  aspect-ratio: 9 / 16.2;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
  background: #0b0a0e;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s var(--ease-out);
}

.fan-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.fan-phone:nth-child(1) {
  transform: translateY(18px) rotate(-5deg);
}
.fan-phone:nth-child(2) {
  width: 132px;
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(4px);
}
.fan-phone:nth-child(3) {
  transform: translateY(18px) rotate(5deg);
}

.case-card:hover .fan-phone:nth-child(1) {
  transform: translateY(8px) rotate(-7deg);
}
.case-card:hover .fan-phone:nth-child(2) {
  transform: translateY(-4px) scale(1.03);
}
.case-card:hover .fan-phone:nth-child(3) {
  transform: translateY(8px) rotate(7deg);
}

/* Custom Floating Islands 2x2 Mosaic on Floating Worlds Card */
.case-islands-stage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 58px 22px 22px;
  height: 100%;
  min-height: 330px;
  background: radial-gradient(circle at 50% 50%, #241f30 0%, #100e17 100%);
  align-content: center;
}

.case-island-tile {
  background: var(--paper);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  place-items: center;
  aspect-ratio: 1.25 / 1;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.case-island-tile img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.case-card:hover .case-island-tile:nth-child(odd) {
  transform: translateY(-4px);
}
.case-card:hover .case-island-tile:nth-child(even) {
  transform: translateY(4px);
}

.case-badge-float {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(11, 10, 14, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold-bright);
}

.case-badge-float--bottom {
  top: auto;
  bottom: 14px;
  left: 14px;
}

.case-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  flex: 1;
}

.case-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.case-cat-pill {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-card-title {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.1vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
}

.case-card-sub {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.case-card-summary {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.62;
  color: var(--text-muted);
}

.case-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.case-tools-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-tools-mini span {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.case-open-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-bright);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.case-card:hover .case-open-cta {
  transform: translateX(4px);
}

/* ==========================================================================
   SECTION 02 — INTERACTIVE 2D ANIMATION & RIGGING LAB
   ========================================================================== */
.anim-workbench {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.anim-roster {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 690px;
  overflow-y: auto;
  padding-right: 4px;
}

.anim-roster::-webkit-scrollbar {
  width: 5px;
  height: 4px;
}
.anim-roster::-webkit-scrollbar-track {
  background: transparent;
}
.anim-roster::-webkit-scrollbar-thumb {
  background: rgba(229, 181, 92, 0.28);
  border-radius: 99px;
}
.anim-roster {
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 181, 92, 0.28) transparent;
}

.anim-roster-btn {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  transition: all 0.24s ease;
}

.anim-roster-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.anim-roster-btn.is-active {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(229, 181, 92, 0.13), rgba(22, 19, 29, 0.95));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.anim-roster-thumb {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  background: #0c0a11;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.anim-roster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.anim-roster-info {
  min-width: 0;
}

.anim-roster-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 2px;
}

.anim-roster-name {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anim-roster-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.anim-stage-panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.anim-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.mode-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  gap: 4px;
}

.mode-btn {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all 0.2s ease;
}

.mode-btn.is-active {
  background: var(--gold);
  color: #16110a;
}

.mode-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.anim-toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bg-swatches {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.swatch-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-right: 2px;
}

.bg-swatch {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bg-swatch:hover {
  transform: scale(1.12);
}

.bg-swatch.is-active {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 2px rgba(229, 181, 92, 0.28);
}

.bg-swatch[data-bg="obsidian"] {
  background: radial-gradient(circle, #252036, #0d0b12);
}
.bg-swatch[data-bg="checker"] {
  background-image:
    linear-gradient(45deg, #2d2938 25%, transparent 25%),
    linear-gradient(-45deg, #2d2938 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2d2938 75%),
    linear-gradient(-45deg, transparent 75%, #2d2938 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-color: #1a1722;
}
.bg-swatch[data-bg="forest"] {
  background: linear-gradient(135deg, #16443d, #0f2c2b);
}
.bg-swatch[data-bg="parchment"] {
  background: var(--paper);
}

.anim-viewport {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  transition: background 0.3s ease;
  overflow: hidden;
}

.anim-viewport.bg--obsidian {
  background: radial-gradient(circle at 50% 45%, #231e31 0%, #0d0b12 75%);
}

.anim-viewport.bg--checker {
  background-color: #17151f;
  background-image:
    linear-gradient(45deg, #221f2e 25%, transparent 25%),
    linear-gradient(-45deg, #221f2e 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #221f2e 75%),
    linear-gradient(-45deg, transparent 75%, #221f2e 75%);
  background-size: 26px 26px;
  background-position: 0 0, 0 13px, 13px -13px, -13px 0;
}

.anim-viewport.bg--forest {
  background:
    radial-gradient(circle at 50% 50%, rgba(16, 52, 48, 0.35), rgba(8, 22, 22, 0.72)),
    url("../assets/environments/tiles/tile-01.jpg") center / 420px repeat;
}

.anim-viewport.bg--parchment {
  background: radial-gradient(circle at 50% 45%, #f9f6ef 0%, #ebe4d6 100%);
}

.anim-single-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.anim-stage-media {
  max-height: 420px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45));
  cursor: zoom-in;
}

.anim-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  align-items: center;
}

.anim-split-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(11, 10, 14, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.anim-viewport.bg--parchment .anim-split-pane {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(30, 27, 24, 0.12);
}

.anim-split-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 10, 14, 0.74);
  color: var(--gold-bright);
}

.anim-split-pane img {
  max-height: 350px;
  object-fit: contain;
  cursor: zoom-in;
}

/* Interactive Embed / Video Launch Card inside Animation Lab */
.anim-embed-launcher {
  text-align: center;
  max-width: 520px;
  padding: 36px 28px;
  border-radius: 20px;
  background: rgba(11, 10, 14, 0.76);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
}

.anim-embed-launcher h4 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.anim-embed-launcher p {
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.anim-iframe-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: #000;
}

.anim-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.anim-stage-footer {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.anim-clips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all 0.2s ease;
}

.clip-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.clip-pill.is-active {
  background: rgba(229, 181, 92, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
  font-weight: 600;
}

.clip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
}

.anim-meta-box {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.anim-meta-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.anim-meta-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.anim-meta-tag {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--gold-dim);
  color: var(--gold-bright);
}

.anim-meta-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  max-width: 64ch;
}

.anim-clip-note {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}

/* ==========================================================================
   SECTION 03 — CHARACTERS & CREATURE EVOLUTION LAB
   ========================================================================== */
.char-sheets-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.char-sheet-card {
  grid-column: span 6;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s ease;
}

.char-sheet-card:nth-child(1) { grid-column: span 5; }
.char-sheet-card:nth-child(2) { grid-column: span 7; }
.char-sheet-card:nth-child(3) { grid-column: span 6; }
.char-sheet-card:nth-child(4) { grid-column: span 6; }
.char-sheet-card:nth-child(5) { grid-column: span 8; }
.char-sheet-card:nth-child(6) { grid-column: span 4; }

.char-sheet-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card);
}

.char-sheet-media {
  position: relative;
  flex: 1;
  min-height: 290px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--paper);
  overflow: hidden;
}

.char-sheet-media img {
  max-height: 350px;
  width: 100%;
  object-fit: contain;
  transition: transform 0.55s var(--ease-out);
}

.char-sheet-card:hover .char-sheet-media img {
  transform: scale(1.03);
}

.gif-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  background: #16131d;
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
}

.char-sheet-caption {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.char-sheet-caption h3 {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 600;
}

.char-sheet-caption p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sub-block {
  margin-top: 56px;
}

.sub-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.sub-block-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 600;
}

.roster-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.roster-card {
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 35%, #231e31 0%, #13101a 100%);
  border: 1px solid var(--border);
  padding: 16px 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease;
}

.roster-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
}

.roster-card img {
  height: 105px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s var(--ease-out);
}

.roster-card:hover img {
  transform: scale(1.08);
}

.roster-card strong {
  display: block;
  font-size: 0.9rem;
}

.roster-card span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Interactive 9-Family Creature Evolution Lab */
.evo-lab-block {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(24, 20, 34, 0.9), rgba(14, 12, 20, 0.95));
  border: 1px solid var(--border);
}

.evo-global-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.evo-card {
  border-radius: var(--radius-md);
  background: rgba(11, 10, 15, 0.78);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s ease, transform 0.28s var(--ease-out);
}

.evo-card:hover {
  border-color: color-mix(in srgb, var(--evo-accent, #e5b55c) 55%, transparent);
  transform: translateY(-3px);
}

.evo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.evo-card-top h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.evo-card-role {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.evo-tier-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--evo-accent, #e5b55c) 16%, transparent);
  color: var(--evo-accent, var(--gold-bright));
  border: 1px solid color-mix(in srgb, var(--evo-accent, #e5b55c) 35%, transparent);
}

.evo-stage {
  position: relative;
  height: 152px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--evo-accent, #e5b55c) 18%, transparent), transparent 68%),
    #13111a;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.evo-stage img {
  max-height: 122px;
  max-width: 82%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55));
  transition: transform 0.3s var(--ease-out);
}

.evo-stage img.is-popping {
  animation: evoPop 0.32s var(--ease-out);
}

@keyframes evoPop {
  0% { transform: scale(0.84); opacity: 0.45; }
  65% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.evo-scrubber {
  display: flex;
  align-items: center;
  gap: 5px;
}

.evo-step-btn {
  flex: 1;
  height: 28px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.evo-step-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.evo-step-btn.is-active {
  background: var(--evo-accent, var(--gold));
  border-color: var(--evo-accent, var(--gold));
  color: #120f17;
  font-weight: 700;
}

/* ==========================================================================
   SECTION 04 — CURATED GALLERY + ISOMETRIC ATLAS
   ========================================================================== */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.gallery-item {
  grid-column: span 4;
  position: relative;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s ease;
}

.gallery-item.is-featured {
  grid-column: span 6;
}

.gallery-item.is-wide-feature {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  align-items: stretch;
}

.gallery-item.is-wide-feature .gallery-item-media {
  aspect-ratio: 16 / 9.2;
}

.gallery-item.is-wide-feature .gallery-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  border-left: 1px solid var(--border);
}

.gallery-item.is-wide-feature .gallery-item-info h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 10px;
}

.gallery-item.is-wide-feature .gallery-item-info p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card);
}

.gallery-item-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #100e16;
}

.gallery-item.is-paper .gallery-item-media {
  background: var(--paper);
  padding: 14px;
}

.gallery-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item.is-paper .gallery-item-media img {
  object-fit: contain;
}

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

.gallery-item-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(11, 10, 14, 0.78);
  backdrop-filter: blur(8px);
  color: var(--gold-bright);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-item-info {
  padding: 16px 18px;
}

.gallery-item-info h3 {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 600;
}

.gallery-item-info p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Isometric Atlas Showcase */
.atlas-showcase {
  margin-top: 64px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
}

.atlas-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.atlas-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.atlas-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 10px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.28s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}

.atlas-tile--ground {
  background: #131119;
  padding: 0;
}

.atlas-tile:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.atlas-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.atlas-tile--ground img {
  object-fit: cover;
}

.atlas-num {
  position: absolute;
  bottom: 7px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(11, 10, 14, 0.72);
  color: var(--gold-bright);
}

/* ==========================================================================
   SECTION 05 — ABOUT & CAPABILITIES
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.about-portrait-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 4.35;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-badge {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(11, 10, 14, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portrait-badge .mono {
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.portrait-badge strong {
  font-size: 0.93rem;
}

.quick-links-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.quick-links-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.social-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social-card-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.22s ease;
}

.social-card-link:hover {
  border-color: var(--border-gold);
  background: rgba(229, 181, 92, 0.08);
  transform: translateY(-2px);
}

.social-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.social-card-link strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.2;
}

.social-card-link small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.about-prose {
  margin: 22px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text-soft);
  font-size: 1rem;
}

.about-prose p {
  margin: 0;
}

.about-prose strong {
  color: var(--text);
}

.about-prose a {
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(229, 181, 92, 0.45);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.cap-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.cap-num {
  font-size: 0.74rem;
  color: var(--gold);
}

.cap-card h3 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.cap-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.tools-and-cv {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-pills span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

/* ==========================================================================
   SECTION 06 — CONTACT HUB
   ========================================================================== */
.section--contact {
  padding-top: 40px;
  padding-bottom: 110px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  padding: 46px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0% 0%, rgba(229, 181, 92, 0.13), transparent 48%),
    radial-gradient(circle at 100% 100%, rgba(217, 79, 48, 0.11), transparent 48%),
    var(--surface);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
}

.contact-desc {
  margin: 14px 0 26px;
  color: var(--text-soft);
}

.direct-email-box {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(11, 10, 14, 0.65);
  border: 1px solid var(--border-strong);
  margin-bottom: 22px;
}

.direct-email-lbl {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.direct-email-addr {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 16px;
  word-break: break-all;
}

.direct-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.contact-form {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(11, 10, 14, 0.56);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-head h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.form-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scope-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scope-pill {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all 0.2s ease;
}

.scope-pill.is-active {
  background: rgba(229, 181, 92, 0.18);
  border-color: var(--gold);
  color: var(--gold-bright);
  font-weight: 600;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-feedback {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.78rem;
  color: var(--jade);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #08070a;
  padding: 36px 0;
}

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

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

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
}

.footer-brand p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-copy {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   DEEP CASE STUDY MODAL + MOBILE PHONE MOCKUPS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(6, 5, 9, 0.86);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.22s ease;
}

.modal-backdrop[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.case-modal-shell,
.cv-modal-shell {
  width: min(1160px, 100%);
  max-height: 92vh;
  border-radius: var(--radius-xl);
  background: #121018;
  border: 1px solid var(--border-gold);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cv-modal-shell {
  width: min(880px, 100%);
}

.case-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.case-modal-crumb {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.case-modal-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}

.btn-close-modal:hover {
  background: rgba(217, 79, 48, 0.2);
  border-color: var(--ember);
}

.btn-close-modal kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-muted);
}

.btn-close-modal > *,
.hero-deck-btn > *,
.silhouette-toggle > *,
.clip-pill > *,
.lang-toggle > *,
.btn > * {
  pointer-events: none;
}

.case-modal-body {
  overflow-y: auto;
  padding: 34px 38px 54px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.cs-hero-header {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.cs-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.cs-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--border-gold);
}

.cs-logo-img {
  height: 62px;
  max-width: 270px;
  object-fit: contain;
}

.cs-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.1;
}

.cs-subtitle {
  margin: 0 0 16px;
  font-size: 1.02rem;
  color: var(--gold-bright);
}

.cs-summary {
  margin: 0;
  color: var(--text-soft);
}

.cs-meta-panel {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-meta-row span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.cs-meta-row strong {
  font-size: 0.9rem;
}

.cs-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cs-highlight-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(229, 181, 92, 0.06);
  border: 1px solid rgba(229, 181, 92, 0.2);
  font-size: 0.87rem;
  color: var(--text-soft);
}

.cs-block-head h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.cs-block-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.cs-media-grid {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.cs-media-grid--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cs-media-grid--wide {
  grid-template-columns: 1fr;
}

.cs-media-grid--mixed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cs-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: border-color 0.25s ease;
}

.cs-figure:hover {
  border-color: var(--border-gold);
}

.cs-figure-img-wrap {
  position: relative;
  background: #0d0b12;
  display: grid;
  place-items: center;
}

.cs-figure.is-paper .cs-figure-img-wrap {
  background: var(--paper);
  padding: 16px;
}

.cs-figure-img-wrap img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.cs-figure figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.cs-figure figcaption strong {
  display: block;
  font-size: 0.94rem;
}

.cs-figure figcaption span {
  font-size: 0.81rem;
  color: var(--text-muted);
}

/* Mobile UI Showcase Grid & Interactive Phone Mockups inside Case Modal */
.phone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.phone-card {
  position: relative;
  border-radius: 22px;
  padding: 8px;
  background: linear-gradient(160deg, #2b2638, #12101a);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: zoom-in;
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease;
}

.phone-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.phone-screen-wrap {
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 9 / 16.5;
  background: #09080c;
}

.phone-screen-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-card-cap {
  padding: 8px 6px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Interactive Scrollable Store Phone Showcase (ZomBees Rush Screen 05) */
.scrollable-phone-feature {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border-gold);
}

.live-scroll-bezel {
  border-radius: 30px;
  padding: 10px;
  background: linear-gradient(150deg, #322c42, #100e17);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
}

.live-scroll-screen {
  height: 440px;
  overflow-y: auto;
  border-radius: 20px;
  background: #0a090e;
}

.live-scroll-screen::-webkit-scrollbar {
  width: 5px;
}
.live-scroll-screen::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 99px;
}

.live-scroll-screen img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* Multi-State Sequence Steppers (ZomBees Rush 5 Flows) */
.seq-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.seq-card {
  flex: 1 1 285px;
  max-width: 340px;
  border-radius: 20px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Interactive Biome Mood Wipe Comparator (Thronebreaker Case Study) */
.compare-widget {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: #0d0b12;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  user-select: none;
  -webkit-user-select: none;
}

.compare-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-img--top {
  clip-path: inset(0 50% 0 0);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold-bright);
  box-shadow: 0 0 18px rgba(229, 181, 92, 0.85);
  pointer-events: none;
  z-index: 3;
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #16110a;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 2px solid #fff6e0;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.compare-label {
  position: absolute;
  bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(11, 10, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--gold-bright);
  z-index: 4;
  pointer-events: none;
}

.compare-label--left { left: 14px; }
.compare-label--right { right: 14px; }

.compare-footer {
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Animation Lab Silhouette Readability Toggle */
.anim-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.silhouette-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.silhouette-toggle:hover {
  border-color: var(--border-gold);
  color: var(--text);
}

.silhouette-toggle.is-active {
  background: rgba(229, 181, 92, 0.2);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.anim-viewport.is-silhouette img {
  filter: brightness(0) invert(0.92) sepia(0.24) saturate(1.1) drop-shadow(0 0 1px rgba(229, 181, 92, 0.6)) !important;
}

.anim-viewport.is-silhouette.bg--parchment img {
  filter: brightness(0) !important;
}

/* Floating Back-to-Top Button */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 15, 25, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 1.15rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, background 0.2s ease;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--gold);
  color: #16110a;
}

.seq-phone-box {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9 / 16.5;
  background: #0a090e;
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: zoom-in;
}

.seq-phone-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.seq-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.seq-dots {
  display: flex;
  gap: 5px;
  flex: 1;
}

.seq-dot {
  flex: 1;
  height: 26px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.seq-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #16110a;
  font-weight: 700;
}

/* ==========================================================================
   PRO ZOOM & PAN LIGHTBOX
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 6, 10, 0.96);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.lightbox-backdrop[hidden] {
  display: none;
}

.lightbox-backdrop.is-paper .lightbox-stage {
  background: var(--paper);
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 10, 14, 0.92);
  z-index: 5;
}

.lightbox-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lightbox-counter {
  font-size: 0.76rem;
  color: var(--gold);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-dim);
}

.lightbox-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lb-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.lb-btn:hover {
  background: rgba(229, 181, 92, 0.2);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.lb-btn--close:hover {
  background: rgba(217, 79, 48, 0.26);
  border-color: var(--ember);
  color: #fff;
}

.lb-zoom-readout {
  font-size: 0.76rem;
  color: var(--text-soft);
  min-width: 48px;
  text-align: center;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background 0.25s ease;
}

.lb-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 28px 72px;
  cursor: zoom-in;
}

.lb-canvas.is-zoomed {
  cursor: grab;
}

.lb-canvas.is-dragging {
  cursor: grabbing;
}

#lbImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transform-origin: center center;
  transition: transform 0.14s ease-out;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.lb-canvas.is-dragging #lbImg {
  transition: none;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border-radius: 14px;
  background: rgba(11, 10, 14, 0.76);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 4;
  transition: all 0.2s ease;
}

.lb-nav:hover {
  background: var(--gold);
  color: #16110a;
  border-color: var(--gold);
}

.lb-nav--prev { left: 18px; }
.lb-nav--next { right: 18px; }

.lightbox-hint {
  text-align: center;
  padding: 10px 16px;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(11, 10, 14, 0.92);
}

/* ==========================================================================
   PRINTABLE CV SHEET
   ========================================================================== */
.cv-sheet {
  padding: 40px 44px;
  overflow-y: auto;
  background: #faf7f2;
  color: #1a1715;
}

.cv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #1a1715;
  margin-bottom: 24px;
}

.cv-header h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: #12100e;
}

.cv-role {
  margin: 0;
  font-weight: 600;
  color: #8f5c1a;
}

.cv-contact-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #46413b;
}

.cv-sec {
  margin-bottom: 22px;
}

.cv-sec h3 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f5c1a;
  border-bottom: 1px solid rgba(26, 23, 21, 0.14);
  padding-bottom: 5px;
}

.cv-sec p,
.cv-sec li {
  font-size: 0.92rem;
  line-height: 1.58;
  color: #2c2824;
}

.cv-entry {
  margin-bottom: 14px;
}

.cv-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cv-entry-head span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #635c54;
}

.cv-sec ul {
  margin: 0;
  padding-left: 18px;
}

.cv-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  padding: 11px 20px;
  border-radius: 999px;
  background: #1b1724;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* Scroll Reveal Animation — safe non-blocking subtle lift */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.reveal.is-pending {
  opacity: 0.01;
  transform: translateY(14px);
}

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

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1140px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .case-card--featured {
    grid-template-columns: 1fr;
  }
  .case-card--trio {
    grid-column: span 6;
  }
  .anim-workbench {
    grid-template-columns: 1fr;
  }
  .anim-roster {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 6px;
  }
  .anim-roster-btn {
    min-width: 220px;
    flex-shrink: 0;
  }
  .roster-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .atlas-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-portrait-col {
    max-width: 440px;
  }
  .contact-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .cs-hero-header {
    grid-template-columns: 1fr;
  }
  .phone-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery-item.is-wide-feature {
    grid-template-columns: 1fr;
  }
  .gallery-item.is-wide-feature .gallery-item-info {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .section-head-left,
  .section-desc {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .container {
    width: calc(100% - 32px);
  }
  .btn-copy-header .copy-label {
    display: none;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-deck-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-card,
  .case-card--trio {
    grid-column: span 12;
  }
  .char-sheet-card,
  .char-sheet-card:nth-child(n) {
    grid-column: span 12;
  }
  .evo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-item,
  .gallery-item.is-featured,
  .gallery-item.is-wide-feature {
    grid-column: span 12;
  }
  .atlas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .anim-split-grid,
  .cs-highlights,
  .cs-media-grid--pair,
  .cs-media-grid--mixed,
  .capabilities-grid,
  .scrollable-phone-feature,
  .cv-two-col {
    grid-template-columns: 1fr;
  }
  .anim-meta-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .anim-clip-note {
    text-align: left;
  }
  .phone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .seq-card {
    max-width: 100%;
  }
  .case-modal-body {
    padding: 20px;
  }
}

@media (max-width: 540px) {
  .container {
    width: calc(100% - 24px);
  }
  .header-inner {
    gap: 8px;
  }
  .brand-lockup {
    gap: 9px;
    min-width: 0;
  }
  .brand-seal {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
    border-radius: 9px;
  }
  .brand-name {
    font-size: 0.94rem;
    white-space: nowrap;
  }
  .brand-sub {
    display: none;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .lang-toggle {
    padding: 6px 9px;
    font-size: 0.7rem;
  }
  .btn-copy-header {
    padding: 7px 10px;
  }
  .mobile-menu-btn {
    width: 36px;
    height: 36px;
  }
  .section {
    padding: 64px 0;
  }
  .evo-grid,
  .roster-strip,
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .atlas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .evo-lab-block,
  .atlas-showcase,
  .contact-card,
  .contact-form {
    padding: 18px;
  }
  .cv-header {
    flex-direction: column;
  }
  .cv-contact-meta {
    align-items: flex-start;
  }
  .lb-canvas {
    padding: 16px;
  }
  .lb-nav {
    width: 38px;
    height: 48px;
    font-size: 1.5rem;
  }
  .back-to-top {
    right: 10px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    opacity: 0.8;
  }
  .case-card-footer {
    padding-bottom: 6px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .discipline-track,
  .pulse-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Print Stylesheet — Prints ONLY the crisp CV Sheet cleanly */
@media print {
  body * {
    visibility: hidden;
  }
  #cvModal,
  #cvSheet,
  #cvSheet * {
    visibility: visible;
  }
  #cvModal {
    position: static !important;
    background: #fff !important;
    padding: 0 !important;
  }
  .cv-modal-shell {
    border: none !important;
    box-shadow: none !important;
    max-height: none !important;
    width: 100% !important;
  }
  .no-print {
    display: none !important;
  }
  .cv-sheet {
    padding: 0 !important;
    background: #fff !important;
  }
}
