/* Design tokens */
:root {
  --primary-blue: #2563eb;
  --deep-blue: #155f7e;
  --accent-purple: #38bdf8;
  --accent-cyan: #0796a8;
  --primary-text: #0f172a;
  --secondary-text: #475569;
  --muted-text: #94a3b8;
  --soft-bg: #f8fafc;
  --white: #ffffff;

  --bg: #0b1220;
  --bg-soft: #111c2f;
  --panel: rgba(15, 23, 42, 0.9);
  --panel-hover: rgba(30, 41, 59, 0.94);
  --line: rgba(148, 163, 184, 0.2);
  --line-strong: rgba(37, 99, 235, 0.45);
  --text: #ffffff;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --accent: var(--primary-blue);
  --accent-2: var(--accent-cyan);
  --accent-3: #eff6ff;
  --accent-glow: rgba(37, 99, 235, 0.28);
  --shadow: 0 22px 70px rgba(2, 6, 23, 0.35);
  --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.16);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
}

body[data-theme="light"] {
  --primary-blue: #0796a8;
  --deep-blue: #155f7e;
  --accent-purple: #38bdf8;
  --accent-cyan: #0aa6b7;
  --primary-text: #082f49;
  --secondary-text: #365466;
  --muted-text: #70899a;
  --bg: #eefcff;
  --bg-soft: #dff8fb;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-hover: #ffffff;
  --line: rgba(8, 47, 73, 0.12);
  --line-strong: rgba(7, 150, 168, 0.36);
  --text: var(--primary-text);
  --text-2: var(--secondary-text);
  --muted: var(--muted-text);
  --accent: var(--primary-blue);
  --accent-2: var(--accent-purple);
  --accent-3: #dff8fb;
  --accent-glow: rgba(7, 150, 168, 0.18);
  --shadow: 0 24px 60px rgba(8, 47, 73, 0.11);
  --shadow-card: 0 14px 34px rgba(8, 47, 73, 0.09);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0 16%, transparent 16% 100%),
    linear-gradient(215deg, rgba(6, 182, 212, 0.1) 0 14%, transparent 14% 100%),
    linear-gradient(180deg, #0b1220 0%, #08111f 100%);
}

body[data-theme="light"]::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(7, 150, 168, 0.2) 0 14%, transparent 15% 100%),
    linear-gradient(135deg, rgba(7, 150, 168, 0.16) 0 15%, transparent 15% 100%),
    linear-gradient(215deg, rgba(56, 189, 248, 0.1) 0 10%, transparent 10% 100%),
    linear-gradient(180deg, #f8feff 0%, #eefcff 100%);
}

body::after {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, black 0%, transparent 72%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 64px;
}

.utility-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.theme-toggle,
.primary-action,
.secondary-action,
.overlay-button {
  appearance: none;
  border: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 9px 15px 9px 11px;
  font-size: 0.8rem;
  box-shadow: var(--shadow-card);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover {
  background: var(--panel-hover);
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-card);
}

.theme-toggle-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.theme-toggle-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.top-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.side-stack {
  order: 1;
  display: grid;
  gap: 20px;
}

.game-panel {
  order: 2;
}

.hero-copy,
.info-card,
.game-panel,
.detail-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy,
.detail-panel,
.info-card {
  color: var(--primary-text);
}

body[data-theme="dark"] .hero-copy,
body[data-theme="dark"] .detail-panel,
body[data-theme="dark"] .info-card {
  color: var(--text);
}

.hero-copy {
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(7, 150, 168, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 253, 255, 0.96)),
    var(--white);
}

body[data-theme="dark"] .hero-copy {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 34%),
    rgba(15, 23, 42, 0.94);
}

.brand-row {
  display: grid;
  gap: 26px;
}

.logo-placeholder {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.brand-logo {
  width: 138px;
  height: auto;
  display: none;
}

body[data-theme="light"] .brand-logo--light,
body[data-theme="dark"] .brand-logo--dark {
  display: block;
}

.hero-copy .brand-logo {
  width: 92px;
}

.brand-wordmark {
  color: var(--primary-text);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  white-space: nowrap;
}

body[data-theme="dark"] .brand-wordmark {
  color: var(--white);
}

.skills-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--secondary-text);
  font-size: 0.92rem;
  line-height: 1.6;
}

body[data-theme="dark"] .skills-list {
  color: var(--text-2);
}

.skills-list li + li {
  margin-top: 7px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow,
.panel-kicker,
.info-label,
.overlay-kicker {
  margin: 0 0 8px;
  color: var(--primary-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 0.84rem;
}

.game-panel .panel-kicker,
.game-panel .overlay-kicker {
  color: #93c5fd;
}

h1, h2, h3, h4 {
  font-family: "Poppins", sans-serif;
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 14ch;
  margin-top: 10px;
  color: var(--primary-text);
  font-size: clamp(2.15rem, 3vw, 3.5rem);
  font-weight: 800;
}

body[data-theme="dark"] h1 {
  color: var(--text);
}

h2 {
  color: var(--text);
  font-size: clamp(1.32rem, 1.7vw, 2rem);
  font-weight: 700;
}

.hero-copy h1 {
  color: var(--primary-text);
}

body[data-theme="dark"] .hero-copy h1 {
  color: var(--white);
}

.lede {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--secondary-text);
  font-size: 1rem;
  line-height: 1.7;
}

body[data-theme="dark"] .lede {
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 0.9rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-action {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-blue), var(--primary-blue));
  box-shadow: 0 14px 24px rgba(7, 150, 168, 0.24);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  background: linear-gradient(135deg, #0f4f68, #087f90);
  box-shadow: 0 16px 30px rgba(7, 150, 168, 0.3);
}

.secondary-action {
  color: var(--primary-blue);
  background: var(--white);
  border: 1px solid rgba(7, 150, 168, 0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

body[data-theme="dark"] .secondary-action {
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.04);
}

.detail-panel {
  display: grid;
  align-content: start;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.96);
}

body[data-theme="dark"] .detail-panel {
  background: rgba(15, 23, 42, 0.92);
}

.detail-block {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.detail-block:first-child {
  padding-top: 0;
}

.detail-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-block p {
  margin: 0;
  color: var(--secondary-text);
  font-size: 0.96rem;
  line-height: 1.65;
}

body[data-theme="dark"] .detail-block p {
  color: var(--text-2);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #f8fafc;
  padding: 7px 12px;
  color: var(--secondary-text);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

body[data-theme="dark"] .tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
}

.tag.active {
  border-color: rgba(37, 99, 235, 0.36);
  background: #eff6ff;
  color: var(--primary-blue);
}

body[data-theme="dark"] .tag.active {
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

.game-panel {
  padding: 24px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(21, 95, 126, 0.96), rgba(7, 56, 78, 0.98));
}

.game-panel > * {
  position: relative;
  z-index: 1;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.panel-topline h2 {
  max-width: 18ch;
  color: var(--white);
}

.panel-subcopy {
  margin: 10px 0 0;
  color: #cbd5e1;
  font-size: 0.88rem;
}

.canvas-wrap {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: #0f172a;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #0f172a;
  touch-action: pan-y;
}

.canvas-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  max-width: 430px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.9);
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(16px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.canvas-overlay.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.canvas-overlay h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.08rem;
}

.canvas-overlay p {
  margin: 0;
  color: #dbeafe;
  font-size: 0.88rem;
  line-height: 1.6;
}

.overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.overlay-button {
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--primary-blue);
  font-size: 0.84rem;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.overlay-button:hover {
  transform: translateY(-1px);
  background: #1d4ed8;
}

.overlay-button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.overlay-button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.game-help {
  margin-top: 13px;
}

.game-help p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.5;
}

.info-card {
  padding: 38px;
  background: rgba(255, 255, 255, 0.96);
}

body[data-theme="dark"] .info-card {
  background: rgba(15, 23, 42, 0.92);
}

.reveal-header {
  margin-bottom: 26px;
}

.info-card h2 {
  color: var(--primary-text);
}

body[data-theme="dark"] .info-card h2 {
  color: var(--white);
}

.info-copy {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--secondary-text);
  font-size: 0.96rem;
  line-height: 1.65;
}

body[data-theme="dark"] .info-copy {
  color: var(--text-2);
}

.reveal-stack {
  display: grid;
  gap: 16px;
}

.reveal-placeholder {
  border: 1px dashed rgba(37, 99, 235, 0.32);
  border-radius: var(--radius-md);
  background: #f8fafc;
  padding: 28px 24px;
  text-align: center;
}

body[data-theme="dark"] .reveal-placeholder {
  background: rgba(255, 255, 255, 0.04);
}

.reveal-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 26px 26px 26px 32px;
  box-shadow: var(--shadow-card);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body[data-theme="dark"] .reveal-card {
  background: rgba(15, 23, 42, 0.92);
}

.reveal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

.reveal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--card-accent, var(--primary-blue)), transparent);
}

.reveal-card h1 {
  max-width: none;
  margin: 0 0 12px;
  color: var(--primary-text);
  font-size: clamp(1.7rem, 2.2vw, 2.55rem);
}

body[data-theme="dark"] .reveal-card h1 {
  color: var(--white);
}

.reveal-card p {
  margin: 0;
  color: var(--secondary-text);
  font-size: 0.98rem;
  line-height: 1.66;
}

body[data-theme="dark"] .reveal-card p {
  color: var(--text-2);
}

.card-detail {
  margin-top: 10px !important;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-pill);
  padding: 0 20px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.section-action:hover {
  transform: translateY(-1px);
}

.section-action--primary {
  border: 1px solid rgba(7, 150, 168, 0.92);
  background: linear-gradient(135deg, var(--deep-blue), var(--primary-blue));
  color: var(--white);
}

.section-action--secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--primary-text);
}

body[data-theme="dark"] .section-action--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.experience-panel,
.partner-panel {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f2fdff;
  padding: 20px;
}

body[data-theme="dark"] .experience-panel,
body[data-theme="dark"] .partner-panel {
  background: rgba(255, 255, 255, 0.05);
}

.experience-panel h2 {
  margin: 8px 0 10px;
  color: var(--primary-text);
  font-size: 1.2rem;
  line-height: 1.3;
}

body[data-theme="dark"] .experience-panel h2 {
  color: var(--white);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 18px;
  color: var(--primary-text);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  transition: border-color 180ms ease, filter 180ms ease, transform 180ms ease;
}

.partner-logo:hover {
  transform: translateY(-1px);
  border-color: rgba(7, 150, 168, 0.28);
}

body[data-theme="dark"] .partner-logo {
  background: rgba(15, 23, 42, 0.66);
  color: var(--white);
}

.partner-logo img {
  display: block;
  width: 100%;
  height: 58px;
  max-width: 156px;
  max-height: 58px;
  object-fit: contain;
}

.partner-logo-image--trim {
  object-fit: cover;
}

.partner-logo-image--light,
.partner-logo-image--dark {
  display: none !important;
}

body[data-theme="light"] .partner-logo-image--light,
body[data-theme="dark"] .partner-logo-image--dark {
  display: block !important;
}

.reveal-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.reveal-card-copy {
  min-width: 0;
}

.reveal-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--secondary-text);
  font-size: 0.96rem;
  line-height: 1.65;
}

body[data-theme="dark"] .reveal-card ul {
  color: var(--text-2);
}

.reveal-card li + li {
  margin-top: 7px;
}

.card-visual-wrap {
  position: sticky;
  top: 18px;
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 100%;
}

.card-visual {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  max-height: 540px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.reveal-card.layout-hero .card-visual {
  min-height: 420px;
  aspect-ratio: 1 / 1;
  object-position: center;
}

.reveal-card.layout-compact .card-visual {
  min-height: 360px;
  aspect-ratio: 4 / 5;
}

.reveal-card.layout-side .card-visual {
  min-height: 380px;
  aspect-ratio: 4 / 5;
}

.reveal-card.layout-side:nth-child(even) .card-visual {
  object-position: center;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.mini-card {
  min-height: 164px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  padding: 20px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

body[data-theme="dark"] .mini-card {
  background: rgba(255, 255, 255, 0.05);
}

.mini-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
  background: #eff6ff;
}

body[data-theme="dark"] .mini-card:hover {
  background: rgba(37, 99, 235, 0.12);
}

.mini-card h2 {
  margin-bottom: 10px;
  color: var(--primary-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

body[data-theme="dark"] .mini-card h2 {
  color: var(--white);
}

.mini-card p {
  margin: 0 !important;
  color: var(--secondary-text);
  font-size: 0.94rem;
  line-height: 1.62;
}

.contact-panel {
  margin-top: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  padding: 16px 18px;
  transition: border-color 180ms ease, background 180ms ease;
}

body[data-theme="dark"] .contact-card {
  background: rgba(255, 255, 255, 0.05);
}

.contact-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: #eff6ff;
}

body[data-theme="dark"] .contact-card:hover {
  background: rgba(37, 99, 235, 0.12);
}

.contact-label {
  display: block;
  margin-bottom: 7px;
  color: var(--primary-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-link,
.contact-value {
  color: var(--primary-text);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

body[data-theme="dark"] .contact-link,
body[data-theme="dark"] .contact-value {
  color: var(--white);
}

.contact-link:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: var(--radius-pill);
  background: #eff6ff;
  padding: 10px 15px;
  color: var(--primary-blue);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

body[data-theme="dark"] .social-pill {
  background: rgba(37, 99, 235, 0.14);
  color: #bfdbfe;
}

.social-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.5);
  background: #dbeafe;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
}

.social-pill svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: currentColor;
}

.social-pill[data-network="linkedin"]:hover { border-color: rgba(10, 102, 194, 0.45); }
.social-pill[data-network="facebook"]:hover { border-color: rgba(24, 119, 242, 0.45); }
.social-pill[data-network="instagram"]:hover { border-color: rgba(124, 58, 237, 0.45); }
.social-pill[data-network="whatsapp"]:hover { border-color: rgba(22, 163, 74, 0.45); }

.seo-footer {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

body[data-theme="dark"] .seo-footer {
  background: rgba(15, 23, 42, 0.92);
}

.seo-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.seo-link-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-pill);
  background: #eff6ff;
  padding: 0 14px;
  color: var(--primary-blue);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

body[data-theme="dark"] .seo-link-grid a {
  background: rgba(37, 99, 235, 0.14);
  color: #bfdbfe;
}

.static-page .page-shell {
  width: min(1180px, calc(100% - 40px));
}

.static-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.static-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.static-nav a,
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86);
  padding: 0 13px;
  color: var(--primary-blue);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

body[data-theme="dark"] .static-nav a,
body[data-theme="dark"] .back-link {
  background: rgba(15, 23, 42, 0.88);
  color: #bfdbfe;
}

.static-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

body[data-theme="dark"] .static-hero {
  background: rgba(15, 23, 42, 0.92);
}

.static-hero-media {
  width: 100%;
  height: min(48vw, 440px);
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.static-hero-body {
  padding: 38px;
}

.static-hero h1 {
  max-width: 18ch;
}

.static-summary {
  max-width: 70ch;
  margin: 16px 0 0;
  color: var(--secondary-text);
  font-size: 1.08rem;
  line-height: 1.7;
}

body[data-theme="dark"] .static-summary {
  color: var(--text-2);
}

.static-detail {
  max-width: 76ch;
  margin: 12px 0 0;
  color: var(--secondary-text);
  line-height: 1.72;
}

body[data-theme="dark"] .static-detail {
  color: var(--text-2);
}

.static-content {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.static-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.static-list,
.static-contact {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

body[data-theme="dark"] .static-list,
body[data-theme="dark"] .static-contact {
  background: rgba(15, 23, 42, 0.92);
}

.static-list ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--secondary-text);
  line-height: 1.7;
}

body[data-theme="dark"] .static-list ul {
  color: var(--text-2);
}

.static-contact .contact-panel {
  margin-top: 0;
}

@media (max-width: 1120px) {
  .top-grid {
    grid-template-columns: 1fr;
  }

  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reveal-card-body {
    grid-template-columns: 1fr;
  }

  .card-visual-wrap {
    position: relative;
    top: auto;
    order: -1;
  }

  .card-visual,
  .reveal-card.layout-hero .card-visual,
  .reveal-card.layout-compact .card-visual,
  .reveal-card.layout-side .card-visual {
    min-height: 260px;
    max-height: 360px;
    aspect-ratio: 16 / 9;
  }

}

@media (max-width: 820px) {
  body::before {
    position: absolute;
    height: 100vh;
  }

  body::after {
    display: none;
  }

  .page-shell {
    width: calc(100% - 28px);
    padding-top: 16px;
  }

  .side-stack {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .static-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .static-nav {
    justify-content: flex-start;
  }

  .static-card-grid {
    grid-template-columns: 1fr;
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .canvas-overlay {
    backdrop-filter: none;
  }

  .reveal-card:hover,
  .mini-card:hover,
  .partner-logo:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .hero-copy,
  .info-card,
  .detail-panel,
  .game-panel {
    border-radius: var(--radius-md);
    padding: 20px;
  }

  .utility-bar {
    margin-bottom: 14px;
  }

  .theme-toggle {
    width: 100%;
    justify-content: center;
  }

  .brand-logo {
    width: 112px;
  }

  .hero-copy .brand-logo {
    width: 72px;
  }

  .brand-wordmark {
    font-size: 1rem;
    letter-spacing: 0.16em;
  }

  h1 {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .panel-topline {
    align-items: stretch;
  }

  .canvas-overlay {
    position: static;
    margin: 12px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .reveal-card {
    padding: 22px 20px 22px 26px;
  }

  .card-visual,
  .reveal-card.layout-hero .card-visual,
  .reveal-card.layout-compact .card-visual,
  .reveal-card.layout-side .card-visual {
    min-height: 220px;
    max-height: 280px;
  }

  .seo-footer,
  .static-hero-body,
  .static-list,
  .static-contact {
    padding: 20px;
  }

  .static-hero-media {
    min-height: 220px;
  }
}
