/* ============================================
   THINKAI Solutions — Light Minimal Portfolio
   ============================================ */

:root {
  --bg: #f0eeeb;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f7f5;
  --white: #111111;
  --off-white: #1a1a1a;
  --gray-100: #333333;
  --gray-200: #555555;
  --gray-300: #888888;
  --gray-400: #aaaaaa;
  --gray-500: #d0d0d0;
  --accent: #111111;
  --accent-dim: rgba(0, 0, 0, 0.06);
  --purple: #111111;
  --magenta: #f0923a;
  --border: rgba(0, 0, 0, 0.1);

  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --max-width: 1280px;
  --nav-height: 64px;
  --announcement-height: 30px;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

html, body {
  overflow-x: hidden;
  width: 100%;
}

::selection {
  background: #111;
  color: #fff;
}

/* ============================================
   Announcement Bar
   ============================================ */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  text-align: center;
  padding: 0.55rem 1rem;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-200);
}

/* ============================================
   Nav
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: var(--nav-height);
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(240, 238, 235, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-logo {
  filter: none;
}

.brand-text {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gray-200);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #111;
}

.nav-contact-btn {
  padding: 0.55rem 1.4rem;
  background: linear-gradient(145deg, #f5f3ef, #e6e3dd);
  color: #111 !important;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.15s ease;
  box-shadow:
    4px 4px 8px rgba(0,0,0,0.1),
    -3px -3px 6px rgba(255,255,255,0.85),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.nav-contact-btn:hover {
  background: linear-gradient(145deg, #f8f6f2, #e9e6e0);
  box-shadow:
    5px 5px 10px rgba(0,0,0,0.12),
    -4px -4px 8px rgba(255,255,255,1),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.nav-contact-btn:active {
  background: #e4e0da;
  box-shadow:
    inset 4px 4px 8px rgba(0,0,0,0.12),
    inset -3px -3px 6px rgba(255,255,255,0.5);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #111;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--nav-height) + var(--announcement-height));
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  padding: 1.5rem 2rem;
  gap: 1.25rem;
  backdrop-filter: blur(20px);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gray-200);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) 3rem 4rem;
  width: 100%;
}

.hero-left {
  display: flex;
  align-items: flex-start;
}

.hero-name-block {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.hero-name-top {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: #888;
  margin: 0 0 0.25rem 0.15em;
  text-transform: uppercase;
}

.hero-name {
  font-family: var(--font-sans);
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: #111;
  margin: 0;
}

/* .hero-name-dot styling is in the Thinking Dot section below */

.hero-name-rule {
  width: 60px;
  height: 3px;
  background: #111;
  margin: 1rem 0 0.75rem;
  border-radius: 2px;
}

.hero-name-sub {
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.45em;
  color: #aaa;
  text-transform: uppercase;
}

.hero-right {
  display: flex;
  align-items: center;
}

.hero-right-content {
  animation: fadeInUp 0.8s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
  color: #111;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-tagline em {
  font-style: italic;
  color: #888;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 0.9rem;
  color: #777;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 440px;
  text-align: left;
}

/* ============================================
   Hero Eyebrow + Capabilities Grid
   ============================================ */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 0.9rem;
}

.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f0923a 60%, #f0923a);
}

.hero-eyebrow::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f0923a;
  box-shadow: 0 0 0 3px rgba(240, 146, 58, 0.15);
}

.hero-eyebrow span {
  position: relative;
}

/* ============================================
   Hero bullet list — streams in as page loads
   ============================================ */
.hero-bullets {
  list-style: none;
  margin: 1.75rem 0 0.25rem;
  padding: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-bullet {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 1rem;
  opacity: 0;
  transform: translateY(10px);
  animation: bulletIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--bullet-delay, 0ms);
}

/* The marker — a short horizontal line that "draws" in */
.bullet-marker {
  position: relative;
  flex-shrink: 0;
  display: block;
  width: 0;
  height: 2px;
  margin-top: 0.85rem;
  background: linear-gradient(90deg, #f0923a, rgba(240, 146, 58, 0.35));
  border-radius: 2px;
  animation: markerDraw 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--bullet-delay, 0ms) + 60ms);
}

.bullet-marker::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0923a;
  transform: translateY(-50%) scale(0);
  box-shadow: 0 0 0 3px rgba(240, 146, 58, 0.18);
  animation: markerDot 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--bullet-delay, 0ms) + 560ms);
}

.bullet-text {
  min-width: 0;
  position: relative;
}

.bullet-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 400;
  color: #111;
  line-height: 1.2;
  margin: 0 0 0.3rem 0;
  letter-spacing: -0.005em;
  position: relative;
  display: inline-block;
  max-width: 100%;
}

/* Wipe reveal — a bar sweeps across, unveiling the title */
.bullet-title::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  bottom: -2px;
  background: var(--bg, #f0eeeb);
  transform-origin: right center;
  animation: titleWipe 0.55s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  animation-delay: calc(var(--bullet-delay, 0ms) + 180ms);
  pointer-events: none;
  z-index: 1;
}

.bullet-desc {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #777;
  margin: 0;
  max-width: 52ch;
  opacity: 0;
  animation: bulletDescIn 0.5s ease forwards;
  animation-delay: calc(var(--bullet-delay, 0ms) + 420ms);
}

@keyframes bulletIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes markerDraw {
  from { width: 0; }
  to   { width: 32px; }
}

@keyframes markerDot {
  from { transform: translateY(-50%) scale(0); }
  to   { transform: translateY(-50%) scale(1); }
}

@keyframes titleWipe {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@keyframes bulletDescIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-bullet,
  .bullet-marker,
  .bullet-marker::after,
  .bullet-title::before,
  .bullet-desc {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .bullet-marker { width: 32px; }
  .bullet-title::before { display: none; }
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: linear-gradient(145deg, #f5f3ef, #e6e3dd);
  color: #111;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 14px;
  transition: all 0.15s ease;
  box-shadow:
    6px 6px 14px rgba(0,0,0,0.1),
    -5px -5px 12px rgba(255,255,255,0.9),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.hero-cta:hover {
  background: linear-gradient(145deg, #f8f6f2, #e9e6e0);
  transform: translateY(-1px);
  box-shadow:
    7px 7px 16px rgba(0,0,0,0.13),
    -6px -6px 14px rgba(255,255,255,1),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.hero-cta:active {
  background: #e4e0da;
  transform: translateY(0);
  box-shadow:
    inset 5px 5px 10px rgba(0,0,0,0.12),
    inset -4px -4px 8px rgba(255,255,255,0.5);
}

/* Hide old hero elements */
.hero-image-wrapper, .hero-overlay, .hero-logo { display: none; }

/* ============================================
   Large Background Section Text
   ============================================ */
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 12vw, 10rem);
  font-weight: 800;
  color: rgba(0,0,0,0.06);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  overflow: hidden;
  width: 100%;
}

.projects-inner,
.approach-inner,
.capabilities-inner,
.contact-content {
  position: relative;
  z-index: 1;
}

/* ============================================
   Section Shared
   ============================================ */
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 3.5rem;
  max-width: 600px;
}

/* ============================================
   Mission
   ============================================ */
.mission-section {
  padding: 7rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.mission-grid.mission-text-only {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.mission-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.mission-journey {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  padding: 0 1.5rem;
}

.journey-line {
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, #ccc, #111);
  transform: translateY(-50%);
  opacity: 0.4;
}

.journey-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.journey-node span {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-200);
}

.journey-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  transition: all 0.4s ease;
}

.journey-dot.idea {
  border-color: #bbb;
}

.journey-dot.build {
  border-color: #888;
  background: #f5f5f2;
}

.journey-dot.ship {
  border-color: #111;
  background: #111;
}

.mission-visual:hover .journey-dot.idea {
  border-color: #888;
}

.mission-visual:hover .journey-dot.build {
  border-color: #555;
}

.mission-visual:hover .journey-dot.ship {
  background: #333;
}

.mission-visual:hover .journey-line {
  opacity: 0.7;
}

.dot-caption {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--gray-200);
  line-height: 1.6;
}

/* ============================================
   Arcade — Ultra-minimal, Apple/Tesla aesthetic
   ============================================ */
.arcade-section {
  position: relative;
  padding: 5rem 1.5rem;
  background: var(--bg);
  overflow: hidden;
}

.arcade-label {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: #999;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.arc {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  z-index: 1;
  isolation: isolate;
  background:
    /* cool ambient sheen from above — Apple ceramic */
    radial-gradient(ellipse 120% 60% at 50% -10%,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,0.5) 30%,
      transparent 60%
    ),
    /* subtle vertical fall-off — light to slightly darker */
    linear-gradient(180deg,
      #fdfdfd 0%,
      #f5f5f7 35%,
      #eeeef0 75%,
      #e5e5e8 100%
    );
  border-radius: 44px;
  overflow: hidden;
  box-shadow:
    /* top chamfer highlight — edge catches light */
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 2px 2px rgba(255,255,255,0.8),
    /* bottom inner shadow — ambient occlusion */
    inset 0 -2px 4px rgba(0,0,0,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.08),
    /* cool side shadows */
    inset 2px 0 6px rgba(0,0,0,0.02),
    inset -2px 0 6px rgba(0,0,0,0.02),
    /* precision hairline rim — the machined edge */
    0 0 0 0.5px rgba(0,0,0,0.12),
    /* soft ambient floating shadows */
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 10px rgba(0,0,0,0.06),
    0 14px 32px rgba(0,0,0,0.08),
    0 28px 64px rgba(0,0,0,0.1),
    0 50px 100px rgba(30,30,40,0.08);
}

/* Soft top specular highlight — clean Apple gloss */
.arc::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 30%;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background:
    radial-gradient(ellipse at 50% 0%,
      rgba(255,255,255,0.9) 0%,
      rgba(255,255,255,0.3) 40%,
      transparent 75%
    );
  pointer-events: none;
  z-index: 2;
  filter: blur(8px);
  opacity: 0.6;
}

/* --- Header: centered logo --- */
.arc-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2rem 0.95rem;
  z-index: 1;
}

/* Faint hairline seam between header and body */
.arc-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1.5rem; right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,0,0,0.08) 15%,
    rgba(0,0,0,0.12) 50%,
    rgba(0,0,0,0.08) 85%,
    transparent
  );
}

.arc-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.arc-logo {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(0,0,0,0.78);
}

.arc-logo-bold {
  font-weight: 900;
  color: #000;
}

.arc-logo-dot {
  color: #e8572a;
  font-weight: 900;
}

.arc-sub {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: rgba(0,0,0,0.7);
  text-transform: uppercase;
}

/* --- On-screen HUD — big LED readouts on the CRT --- */
.arc-screen-hud {
  position: absolute;
  top: 14px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  pointer-events: none;
  z-index: 4;
  font-family: 'SF Mono', 'Courier New', monospace;
  text-transform: uppercase;
}

.arc-hud-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.arc-hud-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.arc-hud-hi { align-items: flex-end; }

.arc-hud-lbl {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  text-shadow: 0 0 6px rgba(255,255,255,0.18);
}

.arc-hud-val {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #4ade80;
  text-shadow:
    0 0 4px rgba(74,222,128,0.85),
    0 0 12px rgba(74,222,128,0.55),
    0 0 22px rgba(74,222,128,0.35),
    0 0 36px rgba(74,222,128,0.18);
  min-width: 52px;
  text-align: right;
}

.arc-hud-hi .arc-hud-val {
  color: #ffd84a;
  text-shadow:
    0 0 4px rgba(255,216,74,0.85),
    0 0 12px rgba(255,216,74,0.55),
    0 0 22px rgba(255,216,74,0.35),
    0 0 36px rgba(255,216,74,0.18);
}

/* Top 3 mini-leaderboard — stacks under BEST on the right */
.arc-hud-top3 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.62rem;
  line-height: 1.15;
  margin-top: 4px;
}

.arc-hud-top3:empty { display: none; }

/* Section label ("You" / "AI") */
.arc-hud-top3-label {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.45);
  text-shadow: 0 0 4px rgba(255,255,255,0.15);
  margin-top: 5px;
  margin-bottom: 1px;
  text-transform: uppercase;
}

.arc-hud-top3-label:first-child { margin-top: 0; }

.arc-hud-top3-label-ai {
  color: rgba(96,165,250,0.7);
  text-shadow: 0 0 4px rgba(96,165,250,0.3);
}

.arc-hud-top3-row {
  display: grid;
  grid-template-columns: 0.85rem 2rem auto;
  align-items: baseline;
  gap: 0.45rem;
  font-weight: 700;
}

.arc-hud-top3-rank {
  color: rgba(255,216,74,0.7);
  text-shadow: 0 0 4px rgba(255,216,74,0.3);
  font-weight: 800;
  text-align: right;
}

.arc-hud-top3-init {
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
  text-shadow: 0 0 4px rgba(255,255,255,0.2);
}

.arc-hud-top3-score {
  color: #4ade80;
  text-shadow:
    0 0 4px rgba(74,222,128,0.6),
    0 0 10px rgba(74,222,128,0.3);
  font-weight: 800;
  text-align: right;
  min-width: 44px;
}

/* AI rows — blue instead of green */
.arc-hud-top3-row-ai .arc-hud-top3-rank {
  color: rgba(96,165,250,0.7);
  text-shadow: 0 0 4px rgba(96,165,250,0.3);
}
.arc-hud-top3-row-ai .arc-hud-top3-init {
  color: rgba(180,210,255,0.9);
  text-shadow: 0 0 4px rgba(96,165,250,0.25);
}
.arc-hud-top3-row-ai .arc-hud-top3-score {
  color: #60a5fa;
  text-shadow:
    0 0 4px rgba(96,165,250,0.7),
    0 0 10px rgba(96,165,250,0.35);
}

/* --- AI Commentary ticker — bottom of the game screen --- */
.arc-commentary {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  text-align: center;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e2e8f0;
  text-shadow:
    0 0 6px rgba(226,232,240,0.6),
    0 0 14px rgba(226,232,240,0.3);
  pointer-events: none;
  z-index: 5;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.arc-commentary.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .arc-commentary { font-size: 0.52rem; bottom: 8px; left: 10px; right: 10px; }
}

/* --- AI Personality selector --- */
/* Personality selector — mirrors .arc-mode toggle structure */
.arc-personality {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.4rem;
  margin-top: 0.35rem;
  padding-bottom: 0.35rem;
  animation: arcHsFade 0.2s ease-out;
}

.arc-pers-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  color: rgba(0,0,0,0.38);
  cursor: pointer;
  transition: color 0.2s ease;
}

.arc-pers-emoji {
  font-size: 1.15rem;
  line-height: 1;
  display: block;
  filter: grayscale(0.55);
  transition: filter 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.arc-pers-name {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

/* Active dot indicator — same convention as .arc-mode */
.arc-pers-btn::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  transition: background 0.2s ease;
}

.arc-pers-btn:hover {
  color: rgba(0,0,0,0.72);
}
.arc-pers-btn:hover .arc-pers-emoji {
  filter: grayscale(0);
  transform: translateY(-1px);
}

.arc-pers-btn:focus-visible {
  outline: none;
  color: rgba(0,0,0,0.72);
}

.arc-pers-btn.active {
  color: #111;
}
.arc-pers-btn.active .arc-pers-emoji {
  filter: grayscale(0);
}
.arc-pers-btn.active::after {
  background: #111;
}

.arc-pers-btn:active { opacity: 0.7; }

@media (max-width: 480px) {
  .arc-personality { gap: 1rem; }
  .arc-pers-emoji { font-size: 1rem; }
  .arc-pers-name { font-size: 0.46rem; }
}

/* --- High Score modal — retro arcade leaderboard --- */
.arc-hs-modal {
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(20,20,30,0.92) 0%, rgba(0,0,0,0.96) 80%);
  z-index: 10;
  font-family: 'SF Mono', 'Courier New', monospace;
  animation: arcHsFade 0.25s ease-out;
}

.arc-hs-modal.visible { display: flex; }

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

.arc-hs-card {
  text-align: center;
  padding: 1.2rem 1.8rem;
  max-width: 90%;
  animation: arcHsPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes arcHsPop {
  from { transform: translateY(10px) scale(0.92); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.arc-hs-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #ffd84a;
  text-shadow:
    0 0 6px rgba(255,216,74,0.6),
    0 0 16px rgba(255,216,74,0.35);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.arc-hs-subtitle {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.arc-hs-score-big {
  font-size: 2.6rem;
  font-weight: 900;
  color: #4ade80;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px rgba(74,222,128,0.8),
    0 0 20px rgba(74,222,128,0.45),
    0 0 36px rgba(74,222,128,0.25);
  margin-bottom: 0.9rem;
  line-height: 1;
}

.arc-hs-inputs {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.arc-hs-input {
  width: 2.6rem;
  height: 3.2rem;
  background: rgba(0,0,0,0.7);
  border: 2px solid rgba(74,222,128,0.55);
  border-radius: 6px;
  color: #4ade80;
  font-family: inherit;
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  outline: none;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 8px rgba(74,222,128,0.15),
    0 0 6px rgba(74,222,128,0.15);
  text-shadow:
    0 0 6px rgba(74,222,128,0.85),
    0 0 14px rgba(74,222,128,0.4);
  caret-color: #4ade80;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.arc-hs-input:focus {
  border-color: #ffd84a;
  color: #ffd84a;
  text-shadow:
    0 0 6px rgba(255,216,74,0.9),
    0 0 14px rgba(255,216,74,0.5);
  box-shadow:
    inset 0 0 10px rgba(255,216,74,0.2),
    0 0 12px rgba(255,216,74,0.35);
}

.arc-hs-submit {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  color: #052e14;
  border: none;
  padding: 0.7rem 2.2rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 0 14px rgba(74,222,128,0.55),
    0 4px 8px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.55);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.arc-hs-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 0 20px rgba(74,222,128,0.7),
    0 6px 12px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.arc-hs-submit:active {
  transform: translateY(1px);
}

.arc-hs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  min-width: 220px;
}

.arc-hs-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.35rem 0.2rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.arc-hs-list li:last-child { border-bottom: none; }

.arc-hs-list li.current {
  color: #ffd84a;
  text-shadow:
    0 0 6px rgba(255,216,74,0.6),
    0 0 14px rgba(255,216,74,0.35);
}

.arc-hs-list .arc-hs-rank {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  text-align: left;
}

.arc-hs-list .arc-hs-init {
  letter-spacing: 0.15em;
  text-align: left;
}

.arc-hs-list .arc-hs-val {
  color: #4ade80;
  text-shadow:
    0 0 4px rgba(74,222,128,0.7),
    0 0 10px rgba(74,222,128,0.35);
  font-size: 0.88rem;
  text-align: right;
}

.arc-hs-list li.current .arc-hs-val {
  color: #ffd84a;
  text-shadow:
    0 0 4px rgba(255,216,74,0.7),
    0 0 10px rgba(255,216,74,0.35);
}

/* --- Game Switcher — onyx segmented control (Maybach style) --- */
.arc-switcher {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0.85rem 1.5rem 1rem;
  border-radius: 14px;
  padding: 4px;
  background:
    radial-gradient(120% 60% at 50% -20%,
      rgba(255,255,255,0.08) 0%,
      rgba(255,255,255,0.02) 35%,
      rgba(255,255,255,0) 60%
    ),
    linear-gradient(180deg, #1a1a1e 0%, #0b0b0f 100%);
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.14),
    0 0 0 1px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.7),
    inset 0 4px 10px rgba(0,0,0,0.45),
    0 1px 2px rgba(0,0,0,0.25),
    0 6px 14px rgba(0,0,0,0.2);
}

.arc-pill {
  flex: 1;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font-sans);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  filter: grayscale(0.5) brightness(0.85) drop-shadow(0 1px 0 rgba(0,0,0,0.5));
}

.arc-pill-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.arc-pill:hover {
  filter: grayscale(0.15) brightness(1) drop-shadow(0 1px 0 rgba(0,0,0,0.5));
  transform: translateY(-0.5px);
}

/* Active — carved pocket with a warm gold underlight */
.arc-pill.active {
  background:
    radial-gradient(120% 80% at 50% 100%,
      rgba(217,180,93,0.22) 0%,
      rgba(217,180,93,0.08) 45%,
      transparent 80%),
    linear-gradient(180deg, #060608 0%, #020204 100%);
  filter: grayscale(0) brightness(1) drop-shadow(0 1px 0 rgba(0,0,0,0.6)) drop-shadow(0 0 8px rgba(217,180,93,0.4));
  box-shadow:
    0 0 0 0.5px rgba(217,180,93,0.7),
    0 0 0 1px rgba(0,0,0,0.55),
    inset 0 2px 5px rgba(0,0,0,0.8),
    inset 0 6px 12px rgba(0,0,0,0.45),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    inset 0 -6px 14px rgba(217,180,93,0.12);
}

/* --- Game Display — Apple ceramic screen with true black --- */
.arc-display {
  position: relative;
  margin: 0.25rem 1.5rem 0.25rem;
  padding: 6px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #1a1a1c 0%, #0a0a0b 50%, #151517 100%);
  aspect-ratio: 16 / 9;
  box-shadow:
    /* crisp bezel edge */
    0 0 0 0.5px rgba(0,0,0,0.4),
    /* slight lift from body — thin shadow rim */
    0 1px 2px rgba(0,0,0,0.08),
    0 2px 6px rgba(0,0,0,0.08),
    /* subtle sunken feel */
    inset 0 0.5px 0 rgba(255,255,255,0.08),
    inset 0 -0.5px 0 rgba(0,0,0,0.6);
  z-index: 1;
}

/* Inner glass screen — true black OLED feel */
.arc-display::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  background: #000;
  box-shadow:
    /* fine bezel rim */
    inset 0 0 0 1px rgba(0,0,0,1),
    inset 0 0 0 2px rgba(255,255,255,0.04),
    /* subtle screen glow */
    inset 0 0 40px rgba(100,180,255,0.015);
  pointer-events: none;
  z-index: 0;
}

/* Glass reflection overlay — soft diagonal sweep */
.arc-display::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  background:
    linear-gradient(135deg,
      rgba(255,255,255,0.04) 0%,
      rgba(255,255,255,0.015) 20%,
      transparent 40%,
      transparent 70%,
      rgba(255,255,255,0.01) 100%
    );
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  position: relative;
  border-radius: 14px;
  z-index: 2;
}

/* --- Controls — smooth ceramic panel --- */
.arc-controls-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.2rem 2.5rem 1.6rem;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(0,0,0,0.015) 50%,
      rgba(0,0,0,0.03) 100%
    );
}

/* Faint hairline seam between screen and controls panel */
.arc-controls-center::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,0,0,0.08) 15%,
    rgba(0,0,0,0.12) 50%,
    rgba(0,0,0,0.08) 85%,
    transparent
  );
}

/* Main control row — START | joystick | SPEED UP */
.arc-main-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
  padding: 0.5rem 0;
}

/* --- D-Pad — chunky arrow buttons on a circular chrome mounting plate --- */
.arc-dpad {
  position: relative;
  width: 210px;
  height: 210px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 60px 60px 60px;
  grid-template-rows: 60px 60px 60px;
  place-content: center;
  padding: 15px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 28%,
      #e6e6ea 0%,
      #cfcfd5 38%,
      #b4b4bb 72%,
      #9a9aa1 100%
    );
  box-shadow:
    /* subtle recessed bowl */
    inset 0 4px 10px rgba(0,0,0,0.12),
    inset 0 8px 18px rgba(0,0,0,0.06),
    inset 0 -4px 8px rgba(255,255,255,0.65),
    inset 0 -1px 0 rgba(255,255,255,1),
    /* chrome bezel rim */
    0 0 0 1px rgba(0,0,0,0.15),
    0 0 0 2px rgba(255,255,255,0.95),
    0 0 0 3px rgba(0,0,0,0.08),
    /* ambient drop shadow */
    0 3px 5px rgba(0,0,0,0.1),
    0 8px 18px rgba(0,0,0,0.12),
    0 16px 32px rgba(0,0,0,0.08),
    0 24px 52px rgba(0,0,0,0.06);
}

/* Concentric machined ring detail */
.arc-dpad::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 170px; height: 170px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
  pointer-events: none;
  z-index: 0;
}

/* Individual arrow buttons */
.arc-dir {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #ffffff;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  outline: none;
  background:
    linear-gradient(170deg,
      #4a4a52 0%,
      #343440 40%,
      #242430 75%,
      #171720 100%
    );
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.1s ease;
  box-shadow:
    /* top highlight */
    inset 0 2px 0 rgba(255,255,255,0.28),
    inset 0 3px 2px rgba(255,255,255,0.12),
    /* bottom rim */
    inset 0 -2px 2px rgba(0,0,0,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.7),
    /* side shading */
    inset 2px 0 2px rgba(255,255,255,0.05),
    inset -2px 0 2px rgba(0,0,0,0.25),
    /* drop shadow onto the plate */
    0 0 0 0.5px rgba(0,0,0,0.6),
    0 2px 3px rgba(0,0,0,0.4),
    0 4px 8px rgba(0,0,0,0.3);
  z-index: 1;
}

.arc-dir svg {
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.5));
  position: relative;
  z-index: 1;
}

.arc-dir.up    { grid-column: 2; grid-row: 1; border-radius: 14px 14px 4px 4px; }
.arc-dir.left  { grid-column: 1; grid-row: 2; border-radius: 14px 4px 4px 14px; }
.arc-dir.right { grid-column: 3; grid-row: 2; border-radius: 4px 14px 14px 4px; }
.arc-dir.down  { grid-column: 2; grid-row: 3; border-radius: 4px 4px 14px 14px; }

/* Center hub — dark molded boss tying the cross together */
.arc-dpad-hub {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  background:
    radial-gradient(circle at 45% 35%,
      #3a3a44 0%,
      #25252e 55%,
      #15151c 100%
    );
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.65),
    inset 0 -1px 1px rgba(255,255,255,0.12),
    0 0 0 0.5px rgba(0,0,0,0.6);
  z-index: 2;
  pointer-events: none;
}

/* Tiny dimple in the center */
.arc-dpad-hub::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #050509 0%, #000 100%);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.95),
    0 1px 0 rgba(255,255,255,0.2);
}

/* Hover — subtle brighten */
.arc-dir:hover {
  background:
    linear-gradient(170deg,
      #54545c 0%,
      #3c3c48 40%,
      #2a2a36 75%,
      #1c1c26 100%
    );
  color: #ffffff;
}

/* Pressed / active — depress into the plate */
.arc-dir.pressed,
.arc-dir:active {
  transform: translateY(1.5px);
  background:
    linear-gradient(170deg,
      #22222a 0%,
      #18181e 60%,
      #0e0e14 100%
    );
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,0.85),
    inset 0 4px 8px rgba(0,0,0,0.5),
    inset 0 -1px 1px rgba(255,255,255,0.05),
    0 0 0 0.5px rgba(0,0,0,0.7),
    0 1px 2px rgba(0,0,0,0.4);
}

.arc-dir:focus-visible {
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px rgba(59,130,246,0.9),
    inset 0 2px 0 rgba(255,255,255,0.28),
    inset 0 -2px 2px rgba(0,0,0,0.5),
    0 2px 3px rgba(0,0,0,0.4);
}


/* Mode Toggle — clean individual icon+label columns */
.arc-mode-toggle {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.4rem;
}

.arc-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: rgba(0,0,0,0.38);
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
}

.arc-mode-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
  transition: transform 0.15s ease;
}

.arc-mode-label {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

/* Active dot indicator under the icon */
.arc-mode::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  transition: background 0.2s ease;
}

.arc-mode:hover {
  color: rgba(0,0,0,0.7);
}

.arc-mode:hover .arc-mode-icon {
  transform: translateY(-1px);
}

.arc-mode:focus-visible {
  outline: none;
  color: rgba(0,0,0,0.7);
}

.arc-mode.active {
  color: #111;
}

.arc-mode.active::after {
  background: #111;
}

.arc-mode:active {
  opacity: 0.7;
}

@media (max-width: 480px) {
  .arc-mode-toggle { gap: 1rem; }
  .arc-mode-icon { width: 24px; height: 24px; }
  .arc-mode-label { font-size: 0.46rem; }
}

/* D-pad dimmed in watch mode — keep START/SPEED UP clickable */
.arc-main-row.ai-active .arc-dpad {
  opacity: 0.35;
  pointer-events: none;
  filter: saturate(0.5);
}

/* ============================================
   Arcade controls — per-game button layouts
   Based on the Fitts' Law / S-R compatibility brief.
   Stage is a 440x220 coordinate space; each game's
   buttons are absolutely placed with exact pixel
   dimensions matching the brief's hierarchy.
   ============================================ */
/* Stage: fluid coordinate space. We drop px positioning entirely and
   use percentages derived from a 440x220 base, then cap the stage
   width so it never overflows the console interior. */
.arc-pad-row {
  position: relative;
  width: 100%;
  max-width: min(440px, calc(100% - 16px));
  aspect-ratio: 440 / 220;
  margin: 0.8rem auto 0.5rem;
  padding: 0;
}

/* Ambient warm halo behind the pad — Rolls-Royce cabin lighting */
.arc-pad-row::before {
  content: "";
  position: absolute;
  inset: -8% -4% -14%;
  border-radius: 32px;
  background:
    radial-gradient(70% 80% at 50% 50%,
      rgba(217,180,93,0.12) 0%,
      rgba(217,180,93,0.06) 35%,
      transparent 70%);
  filter: blur(40px);
  opacity: 0.75;
  z-index: -1;
  pointer-events: none;
}

.arc-pad-row.ai-active {
  opacity: 0.35;
  pointer-events: none;
  filter: saturate(0.3);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.arc-pad {
  position: absolute;
  inset: 0;
}

.arc-pad[hidden] { display: none !important; }

/* ==========================================================
   AI-NATIVE BUTTON SYSTEM
   Volumetric glass-ceramic with living conic gradient borders,
   multi-axis specular lighting, and spring-physics interactions.
   Designed to feel like a product you're afraid to touch.
   ========================================================== */

/* Register the rotation angle so the conic gradient can animate */
@property --arc-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes arcHaloSpin {
  to { --arc-angle: 360deg; }
}

/* ==========================================================
   ARCADE CONTROLS — Mercedes-Maybach / Rolls-Royce language
   Polished onyx (piano black) with hairline chrome rims,
   etched-silver iconography, and champagne-gold primary
   bezels. Every button is a precision-machined touchpoint.
   ========================================================== */
.arc-k {
  --k-accent: #c9a35a;           /* champagne gold */
  --k-accent-dk: #8e6d28;
  --k-accent-rgb: 201 163 90;
  --k-ink: #e8e8ec;              /* etched silver icon tone */

  position: absolute;
  padding: 0;
  border: none;
  border-radius: 10px;
  color: var(--k-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  outline: none;

  /* Piano-black onyx face — vertical gradient with a faint cool
     reflection cast at the top, like a polished dashboard panel */
  background:
    radial-gradient(120% 60% at 50% -20%,
      rgba(255,255,255,0.12) 0%,
      rgba(255,255,255,0.03) 35%,
      rgba(255,255,255,0) 60%
    ),
    linear-gradient(180deg,
      #1e1e24 0%,
      #141418 45%,
      #07070a 100%
    );

  /* Hairline chrome rim + brushed inner highlights + deep
     precision ambient shadow */
  box-shadow:
    /* outer chrome hairline */
    0 0 0 0.5px rgba(255,255,255,0.16),
    0 0 0 1px rgba(0,0,0,0.45),
    /* top gloss + bottom rim */
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 0 1px rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.8),
    inset 0 -6px 12px rgba(0,0,0,0.3),
    /* layered precision drop shadow */
    0 1px 2px rgba(0,0,0,0.35),
    0 4px 10px rgba(0,0,0,0.28),
    0 10px 24px rgba(0,0,0,0.22),
    0 22px 48px rgba(0,0,0,0.16),
    0 44px 80px rgba(0,0,0,0.1);

  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.25s ease,
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease;
  isolation: isolate;
}

/* ::before — top-edge specular highlight (polished reflection) */
.arc-k::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.04) 20%,
    rgba(255,255,255,0) 45%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

/* ::after — subtle ambient accent glow behind the icon, grows on hover */
.arc-k::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: inherit;
  background: radial-gradient(
    closest-side,
    rgba(var(--k-accent-rgb), 0.22) 0%,
    rgba(var(--k-accent-rgb), 0.08) 45%,
    transparent 75%
  );
  opacity: 0;
  transform: scale(0.75);
  filter: blur(8px);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.arc-k svg,
.arc-k > span {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.arc-k svg {
  width: 52%;
  height: 52%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  /* Etched silver look — bright stroke + a dark deboss shadow */
  filter:
    drop-shadow(0 0.5px 0 rgba(0,0,0,0.6))
    drop-shadow(0 1px 0 rgba(255,255,255,0.08));
}

.arc-k svg path,
.arc-k svg circle,
.arc-k svg rect {
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .arc-k:hover {
    transform: translateY(-1.5px);
    color: #f4d99a;  /* warm champagne highlight */
    box-shadow:
      0 0 0 0.5px rgba(var(--k-accent-rgb), 0.5),
      0 0 0 1px rgba(0,0,0,0.5),
      inset 0 1px 0 rgba(255,255,255,0.18),
      inset 0 0 1px rgba(var(--k-accent-rgb), 0.1),
      inset 0 -1px 0 rgba(0,0,0,0.85),
      inset 0 -6px 14px rgba(0,0,0,0.32),
      0 2px 4px rgba(0,0,0,0.36),
      0 6px 14px rgba(0,0,0,0.3),
      0 14px 32px rgba(0,0,0,0.24),
      0 28px 56px rgba(var(--k-accent-rgb), 0.18),
      0 48px 90px rgba(0,0,0,0.1);
  }
  .arc-k:hover::after {
    opacity: 1;
    transform: scale(1.1);
  }
  .arc-k:hover svg {
    transform: scale(1.05);
    filter:
      drop-shadow(0 0.5px 0 rgba(0,0,0,0.6))
      drop-shadow(0 0 8px rgba(var(--k-accent-rgb), 0.55));
  }
}

.arc-k.pressed,
.arc-k:active {
  transform: translateY(0.5px) scale(0.975);
  background:
    radial-gradient(110% 80% at 50% 100%,
      rgba(var(--k-accent-rgb), 0.08) 0%,
      rgba(6,6,10,1) 65%),
    linear-gradient(180deg, #0a0a0e 0%, #020205 100%);
  box-shadow:
    0 0 0 0.5px rgba(var(--k-accent-rgb), 0.6),
    0 0 0 1px rgba(0,0,0,0.6),
    inset 0 2px 6px rgba(0,0,0,0.8),
    inset 0 6px 14px rgba(0,0,0,0.5),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 1px 2px rgba(0,0,0,0.3);
  color: #f4d99a;
  transition:
    transform 0.12s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease;
}
.arc-k.pressed::after,
.arc-k:active::after {
  opacity: 1;
  transform: scale(0.9);
}
.arc-k.pressed svg,
.arc-k:active svg {
  transform: scale(0.94);
}

.arc-k:focus-visible {
  box-shadow:
    0 0 0 0.5px rgba(var(--k-accent-rgb), 0.9),
    0 0 0 3px rgba(var(--k-accent-rgb), 0.25),
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(0,0,0,0.8),
    0 10px 24px rgba(0,0,0,0.24);
}

/* --------------------------------------------------------
   PRIMARY — Mercedes-Maybach "Executive" button
   Deeper onyx base with a full champagne-gold chrome rim
   and an always-on warm inner glow. Hard Drop / Hop / Thrust.
   -------------------------------------------------------- */
.arc-k-cw,
.arc-k-hop,
.arc-k-thrust,
.arc-k--primary {
  /* Per-game accent is overridden here to the signature gold.
     Each pad's --k-accent is preserved for direction buttons. */
  --k-accent: #d9b45d;
  --k-accent-dk: #a67923;
  --k-accent-rgb: 217 180 93;

  color: #f7deaa;  /* warm engraved gold */

  background:
    radial-gradient(120% 60% at 50% -20%,
      rgba(255,228,160,0.18) 0%,
      rgba(255,228,160,0.04) 35%,
      rgba(255,228,160,0) 60%
    ),
    linear-gradient(180deg,
      #22201a 0%,
      #14120d 45%,
      #070604 100%
    );

  box-shadow:
    /* champagne gold rim */
    0 0 0 0.5px rgba(217,180,93,0.7),
    0 0 0 1px rgba(0,0,0,0.55),
    /* inner light */
    inset 0 1px 0 rgba(255,228,160,0.22),
    inset 0 0 1px rgba(217,180,93,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.8),
    inset 0 -8px 16px rgba(0,0,0,0.38),
    /* precision shadow with a warm gold halo */
    0 1px 2px rgba(0,0,0,0.38),
    0 6px 14px rgba(0,0,0,0.3),
    0 14px 32px rgba(0,0,0,0.24),
    0 26px 54px rgba(217,180,93,0.22),
    0 46px 88px rgba(217,180,93,0.14),
    0 70px 120px rgba(0,0,0,0.1);
}
.arc-k-cw::before,
.arc-k-hop::before,
.arc-k-thrust::before,
.arc-k--primary::before {
  background: linear-gradient(180deg,
    rgba(255,228,160,0.22) 0%,
    rgba(255,228,160,0.05) 22%,
    rgba(255,228,160,0) 45%);
}
.arc-k-cw::after,
.arc-k-hop::after,
.arc-k-thrust::after,
.arc-k--primary::after {
  opacity: 0.9;
  transform: scale(1);
  background: radial-gradient(
    closest-side,
    rgba(255,228,160,0.28) 0%,
    rgba(217,180,93,0.14) 40%,
    rgba(217,180,93,0.04) 65%,
    transparent 80%
  );
  filter: blur(12px);
}
.arc-k-cw svg,
.arc-k-hop svg,
.arc-k-thrust svg,
.arc-k--primary svg {
  width: 58%;
  height: 58%;
  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,0.7))
    drop-shadow(0 0 6px rgba(255,215,130,0.45))
    drop-shadow(0 10px 20px rgba(217,180,93,0.32));
}

@media (hover: hover) {
  .arc-k-cw:hover,
  .arc-k-hop:hover,
  .arc-k-thrust:hover,
  .arc-k--primary:hover {
    transform: translateY(-2px);
    color: #fcebb6;
    box-shadow:
      0 0 0 0.5px rgba(255,228,160,0.9),
      0 0 0 1px rgba(0,0,0,0.6),
      inset 0 1px 0 rgba(255,228,160,0.28),
      inset 0 0 2px rgba(255,228,160,0.18),
      inset 0 -1px 0 rgba(0,0,0,0.85),
      inset 0 -8px 18px rgba(0,0,0,0.4),
      0 2px 4px rgba(0,0,0,0.4),
      0 8px 18px rgba(0,0,0,0.3),
      0 18px 38px rgba(0,0,0,0.26),
      0 32px 66px rgba(217,180,93,0.32),
      0 60px 110px rgba(217,180,93,0.2);
  }
  .arc-k-cw:hover::after,
  .arc-k-hop:hover::after,
  .arc-k-thrust:hover::after,
  .arc-k--primary:hover::after {
    opacity: 1;
    transform: scale(1.15);
  }
  .arc-k-cw:hover svg,
  .arc-k-hop:hover svg,
  .arc-k-thrust:hover svg,
  .arc-k--primary:hover svg {
    transform: scale(1.06);
    filter:
      drop-shadow(0 1px 0 rgba(0,0,0,0.7))
      drop-shadow(0 0 10px rgba(255,215,130,0.65))
      drop-shadow(0 14px 28px rgba(217,180,93,0.4));
  }
}

/* ---------- Tetris — cyan/teal AI palette ----------
   Rotate centered above; Left / Right / Hard Drop sit in an
   equal row of three identical onyx buttons underneath. */
.arc-pad-tetris {
  --k-accent: #2ad4d4;
  --k-accent-dk: #0e8f96;
  --k-accent-rgb: 42 212 212;
  --k-ink: #0a363a;
}
.arc-pad-tetris .arc-k-cw    { left: 40%; top: 4%;  width: 20%; height: 28%; border-radius: 14px; }
.arc-pad-tetris .arc-k-left  { left: 29%; top: 36%; width: 20%; height: 28%; border-radius: 14px; }
.arc-pad-tetris .arc-k-right { left: 51%; top: 36%; width: 20%; height: 28%; border-radius: 14px; }
.arc-pad-tetris .arc-k-hard  { left: 40%; top: 68%; width: 20%; height: 28%; border-radius: 14px; }

/* ---------- Pac-Man — amber/gold AI palette ---------- */
.arc-pad-pacman {
  --k-accent: #ffcc33;
  --k-accent-dk: #d99a0f;
  --k-accent-rgb: 255 204 51;
  --k-ink: #4a3200;
}
.arc-pad-pacman .arc-k-up    { left: 40.91%; top: 4.55%;  width: 18.18%; height: 31.82%; border-radius: 16px; }
.arc-pad-pacman .arc-k-down  { left: 40.91%; top: 63.64%; width: 18.18%; height: 31.82%; border-radius: 16px; }
.arc-pad-pacman .arc-k-left  { left: 18.18%; top: 34.09%; width: 18.18%; height: 31.82%; border-radius: 16px; }
.arc-pad-pacman .arc-k-right { left: 63.64%; top: 34.09%; width: 18.18%; height: 31.82%; border-radius: 16px; }

/* ---------- Frogger — emerald AI palette ---------- */
.arc-pad-frogger {
  --k-accent: #22d18f;
  --k-accent-dk: #0e8f55;
  --k-accent-rgb: 34 209 143;
  --k-ink: #0a3e24;
}
.arc-pad-frogger .arc-k-hop   { left: 36.36%; top: 2.73%;  width: 27.27%; height: 40.91%; border-radius: 24px; }
.arc-pad-frogger .arc-k-left  { left: 12.50%; top: 59.09%; width: 19.32%; height: 34.09%; border-radius: 16px; }
.arc-pad-frogger .arc-k-right { left: 68.18%; top: 59.09%; width: 19.32%; height: 34.09%; border-radius: 16px; }
.arc-pad-frogger .arc-k-back  { left: 40.45%; top: 63.64%; width: 19.09%; height: 25.00%; border-radius: 12px;
                                 --k-accent: #a8a8b0; --k-accent-dk: #7a7a85; --k-accent-rgb: 168 168 176; --k-ink: #7a7a85; }

/* ---------- Asteroids — just left + right ---------- */
.arc-pad-asteroids {
  --k-accent: #635bff;
  --k-accent-dk: #3e35d6;
  --k-accent-rgb: 99 91 255;
  --k-ink: #15104a;
}
.arc-pad-asteroids .arc-k-left  { left: 10%; top: 20%; width: 35%; height: 60%; border-radius: 22px; }
.arc-pad-asteroids .arc-k-right { left: 55%; top: 20%; width: 35%; height: 60%; border-radius: 22px; }

/* ============================================
   Arcade — Header utility buttons (restart / speed)
   ============================================ */
.arc-header-actions {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.arc-util-btn {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 10px;
  color: #e8e8ec;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 60% at 50% -20%,
      rgba(255,255,255,0.1) 0%,
      rgba(255,255,255,0.02) 35%,
      rgba(255,255,255,0) 60%
    ),
    linear-gradient(180deg, #1e1e24 0%, #0a0a0e 100%);
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.14),
    0 0 0 1px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.75),
    0 1px 2px rgba(0,0,0,0.3),
    0 4px 10px rgba(0,0,0,0.22),
    0 10px 22px rgba(0,0,0,0.14);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.22s ease,
    box-shadow 0.25s ease;
  isolation: isolate;
}

.arc-util-btn svg {
  width: 15px;
  height: 15px;
  filter:
    drop-shadow(0 0.5px 0 rgba(0,0,0,0.6))
    drop-shadow(0 1px 0 rgba(255,255,255,0.06));
}

.arc-util-btn:hover {
  transform: translateY(-1px);
  color: #f4d99a;
  box-shadow:
    0 0 0 0.5px rgba(217,180,93,0.6),
    0 0 0 1px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.8),
    0 2px 4px rgba(0,0,0,0.32),
    0 6px 14px rgba(0,0,0,0.2),
    0 14px 28px rgba(217,180,93,0.2);
}

.arc-util-btn:active {
  transform: translateY(0.5px) scale(0.97);
  background:
    radial-gradient(110% 80% at 50% 100%,
      rgba(217,180,93,0.1) 0%,
      rgba(4,4,8,1) 60%),
    linear-gradient(180deg, #06060a 0%, #020204 100%);
  box-shadow:
    0 0 0 0.5px rgba(217,180,93,0.6),
    0 0 0 1px rgba(0,0,0,0.55),
    inset 0 2px 5px rgba(0,0,0,0.8),
    inset 0 6px 12px rgba(0,0,0,0.45),
    inset 0 -1px 0 rgba(255,255,255,0.08);
}

.arc-util-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: linear-gradient(180deg, #e3ba61 0%, #a67923 100%);
  color: #1a1408;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1.5px #f0eeeb,
    0 0 0 2px rgba(0,0,0,0.4),
    0 2px 4px rgba(0,0,0,0.25);
  pointer-events: none;
  transform: scale(0);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.arc-util-badge:not(:empty) { transform: scale(1); }

/* Action buttons — sculpted monochrome icon circles */
.arc-start {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background:
    linear-gradient(180deg,
      #ffffff 0%,
      #fafafc 30%,
      #eeeef2 70%,
      #dededf 100%
    );
  color: rgba(0,0,0,0.72);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  box-shadow:
    /* precision hairline rim */
    0 0 0 0.5px rgba(0,0,0,0.15),
    /* layered floating drop shadow */
    0 1px 2px rgba(0,0,0,0.08),
    0 4px 8px rgba(0,0,0,0.12),
    0 8px 18px rgba(0,0,0,0.12),
    0 16px 32px rgba(0,0,0,0.1),
    0 28px 50px rgba(0,0,0,0.06),
    /* convex top highlight */
    inset 0 1.5px 0 rgba(255,255,255,1),
    inset 0 3px 5px rgba(255,255,255,0.7),
    /* inner bottom shadow */
    inset 0 -3px 6px rgba(0,0,0,0.06),
    inset 0 -1px 1px rgba(0,0,0,0.1);
}

.arc-start-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
  filter: drop-shadow(0 0.5px 0 rgba(255,255,255,0.8));
}

/* Speed multiplier badge — appears when > 1x */
.arc-start-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1.5px #ffffff,
    0 2px 4px rgba(0,0,0,0.25);
  pointer-events: none;
  transform: scale(0);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.arc-start-badge:not(:empty) {
  transform: scale(1);
}

.arc-start:hover {
  color: rgba(0,0,0,0.95);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 0.5px rgba(0,0,0,0.16),
    0 3px 5px rgba(0,0,0,0.1),
    0 7px 14px rgba(0,0,0,0.14),
    0 14px 26px rgba(0,0,0,0.14),
    0 22px 42px rgba(0,0,0,0.1),
    0 36px 64px rgba(0,0,0,0.06),
    inset 0 1.5px 0 rgba(255,255,255,1),
    inset 0 3px 5px rgba(255,255,255,0.75),
    inset 0 -3px 6px rgba(0,0,0,0.06),
    inset 0 -1px 1px rgba(0,0,0,0.1);
}

.arc-start:active {
  transform: translateY(1px);
  background:
    linear-gradient(180deg,
      #e8e8ec 0%,
      #e0e0e5 50%,
      #d5d5db 100%
    );
  box-shadow:
    0 0 0 0.5px rgba(0,0,0,0.2),
    0 1px 2px rgba(0,0,0,0.08),
    0 2px 4px rgba(0,0,0,0.06),
    inset 0 3px 6px rgba(0,0,0,0.15),
    inset 0 6px 10px rgba(0,0,0,0.08),
    inset 0 -1px 1px rgba(255,255,255,0.9);
}

.arc-start:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px rgba(59,130,246,0.85),
    0 3px 6px rgba(0,0,0,0.1),
    0 6px 14px rgba(0,0,0,0.1);
}


.mission-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #888;
  margin-bottom: 1rem;
}

.mission-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 2.5rem;
}

.mission-text p {
  font-size: 0.88rem;
  color: var(--gray-200);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.mission-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(145deg, #f5f3ef, #e6e3dd);
  color: #111;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow:
    6px 6px 14px rgba(0,0,0,0.1),
    -5px -5px 12px rgba(255,255,255,0.9),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.mission-cta:hover {
  background: linear-gradient(145deg, #f8f6f2, #e9e6e0);
  box-shadow:
    7px 7px 16px rgba(0,0,0,0.13),
    -6px -6px 14px rgba(255,255,255,1),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

/* ============================================
   Projects
   ============================================ */
.projects-section {
  padding: 4rem 3rem 7rem;
  background: var(--bg);
}

.projects-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  transition: border-color 0.3s, transform 0.3s;
}

.project-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.project-preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  display: block;
  transition: opacity 0.3s, transform 0.4s ease;
}

.project-card:hover .project-preview {
  transform: scale(1.02);
}



.project-card-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.project-card:hover .project-card-icon {
  opacity: 1;
}

.project-preview-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.project-card-header {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.project-tag {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #222;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.project-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.project-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.project-visit {
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
  color: #111;
}

.project-visit:hover {
  color: #000;
  border-bottom-color: #111;
}

.project-visit:active {
  color: #000;
}

.project-toggle {
  padding: 0.55rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #999;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.project-toggle:hover {
  color: #333;
  border-bottom-color: #333;
}

.project-card.expanded .project-toggle {
  color: #111;
  border-bottom-color: #111;
}

.toggle-chevron {
  transition: transform 0.3s ease;
}

.project-card.expanded .toggle-chevron {
  transform: rotate(180deg);
}

.project-card.expanded .toggle-text::after {
  content: '';
}

.project-card.expanded .toggle-text {
  font-size: 0;
}

.project-card.expanded .toggle-text::before {
  content: 'Hide details';
  font-size: 0.65rem;
}

.project-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}

.project-card.expanded .project-details {
  max-height: 600px;
  opacity: 1;
  margin-top: 1.25rem;
}

.project-client {
  font-size: 0.75rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--gray-200);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.project-features span {
  font-size: 0.65rem;
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #555;
  letter-spacing: 0.02em;
}

.project-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--gray-300);
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tech span {
  font-size: 0.62rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--gray-200);
  letter-spacing: 0.02em;
}

/* ============================================
   Approach
   ============================================ */
.approach-section {
  padding: 4rem 3rem 7rem;
  background: var(--bg);
}

.approach-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.approach-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step-counter;
}

.approach-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step-counter;
  background: none;
  border-radius: 0;
  transition: none;
}

.approach-card:first-child {
  border-top: 1px solid var(--border);
}

.approach-card::before {
  content: "0" counter(step-counter);
  font-family: var(--font-sans);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  color: rgba(0, 0, 0, 0.08);
  line-height: 1;
  letter-spacing: -0.04em;
}

.approach-card:hover {
  border-color: var(--border);
}

.approach-icon {
  display: none;
}

.approach-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #111;
  color: #fff;
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  align-self: center;
}

.approach-card p {
  font-size: 0.85rem;
  color: #555;
  font-weight: 400;
  line-height: 1.7;
}

/* ============================================
   About Hero
   ============================================ */
.about-hero {
  padding: 0 3rem;
}

.about-hero-image {
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  min-height: 70vh;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.about-hero-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.about-hero-content p {
  font-size: 0.9rem;
  color: var(--gray-100);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}


/* ============================================
   Capabilities
   ============================================ */
.capabilities-section {
  padding: 4rem 3rem 7rem;
}

.capabilities-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.cap-group {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.cap-group h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.cap-group p {
  font-size: 0.82rem;
  color: var(--gray-200);
  font-weight: 300;
  line-height: 1.7;
}

/* ============================================
   Contact
   ============================================ */
.contact-section {
  position: relative;
  padding: 8rem 3rem 6rem;
  text-align: center;
  overflow: hidden;
}

.contact-glow {
  display: none;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.contact-sub {
  font-size: 0.9rem;
  color: var(--gray-200);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.contact-chats {
  margin-bottom: 2rem;
  justify-content: center;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.contact-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(145deg, #f5f3ef, #e6e3dd);
  color: #111;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 14px;
  transition: all 0.15s ease;
  margin-bottom: 3rem;
  box-shadow:
    6px 6px 14px rgba(0,0,0,0.1),
    -5px -5px 12px rgba(255,255,255,0.9),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.contact-btn:hover {
  background: linear-gradient(145deg, #f8f6f2, #e9e6e0);
  transform: translateY(-1px);
  box-shadow:
    7px 7px 16px rgba(0,0,0,0.13),
    -6px -6px 14px rgba(255,255,255,1),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.contact-response {
  font-size: 0.72rem;
  color: var(--gray-400);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
  margin-top: -2rem;
}

.contact-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-details span,
.contact-details a {
  font-size: 0.78rem;
  color: var(--gray-200);
}

.contact-details a:hover {
  color: #111;
}

.contact-divider {
  color: var(--gray-400);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 3rem;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner span {
  font-size: 0.7rem;
  color: var(--gray-300);
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: var(--gray-300);
  transition: color 0.2s;
  display: flex;
}

.footer-links a:hover {
  color: #111;
}

.footer-links a svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   Scroll Reveal
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Hero Chat Widgets
   ============================================ */
.hero-chats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-chat-widget {
  position: relative;
}

/* --- Chat trigger inputs — neumorphic input bars --- */
.chat-trigger-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem 0.7rem 1.1rem;
  background: #e8e5df;
  border: none;
  border-radius: 18px;
  box-shadow:
    8px 8px 20px rgba(0,0,0,0.12),
    -6px -6px 16px rgba(255,255,255,0.8),
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 0 0 1px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 100%;
}

.chat-trigger-input:hover {
  box-shadow:
    10px 10px 24px rgba(0,0,0,0.14),
    -8px -8px 20px rgba(255,255,255,0.9),
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 0 0 1px rgba(0,0,0,0.04);
}

.chat-trigger-input:focus-within {
  box-shadow:
    10px 10px 24px rgba(0,0,0,0.16),
    -8px -8px 20px rgba(255,255,255,0.9),
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 0 0 2px rgba(0,0,0,0.08);
}

.chat-trigger-input input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #111;
  background: #e4e0da;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  box-shadow:
    inset 3px 3px 7px rgba(0,0,0,0.1),
    inset -2px -2px 5px rgba(255,255,255,0.5);
}

.chat-trigger-input input::placeholder {
  color: #999;
  font-weight: 500;
}

.chat-trigger-input .chat-send {
  flex-shrink: 0;
  transform: translateX(2px);
}

/* Chat window */
.chat-window {
  display: none;
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  max-height: 480px;
  background: #e8e5df;
  border: none;
  border-radius: 24px;
  box-shadow:
    16px 16px 40px rgba(0,0,0,0.18),
    -12px -12px 30px rgba(255,255,255,0.6),
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 0 0 1px rgba(0,0,0,0.04);
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 50;
}

.chat-window.open {
  display: flex;
}

@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* Contact section chats open pinned to the right of the viewport on desktop
   so they don't overlap the arcade/game section above. */
@media (min-width: 769px) {
  .contact-chats .chat-window {
    position: fixed;
    top: 50%;
    right: 3rem;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    animation: chatSlideInRight 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 100;
  }

  @keyframes chatSlideInRight {
    from {
      opacity: 0;
      transform: translateY(-50%) translateX(20px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateY(-50%) translateX(0) scale(1);
    }
  }
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #e8e5df;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.chat-close {
  background: linear-gradient(145deg, #f5f3ef, #e6e3dd);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: rgba(0,0,0,0.35);
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
  box-shadow:
    3px 3px 6px rgba(0,0,0,0.1),
    -2px -2px 4px rgba(255,255,255,0.8),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.chat-close:hover {
  color: #111;
  box-shadow:
    4px 4px 8px rgba(0,0,0,0.12),
    -3px -3px 6px rgba(255,255,255,0.9),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.chat-close:active {
  background: #e4e0da;
  box-shadow:
    inset 3px 3px 6px rgba(0,0,0,0.12),
    inset -2px -2px 4px rgba(255,255,255,0.5);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 200px;
  max-height: 340px;
  background: #e2dfda;
  margin: 0 0.75rem;
  border-radius: 16px;
  box-shadow:
    inset 4px 4px 10px rgba(0,0,0,0.12),
    inset -3px -3px 8px rgba(255,255,255,0.4);
}

.chat-msg {
  max-width: 82%;
  padding: 0.8rem 1.15rem;
  border-radius: 18px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.chat-msg.bot {
  background: linear-gradient(145deg, #f5f3ef, #e8e5df);
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  box-shadow:
    5px 5px 12px rgba(0,0,0,0.1),
    -4px -4px 10px rgba(255,255,255,0.7),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.chat-msg.user {
  background: #111;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  font-weight: 500;
  box-shadow:
    5px 5px 12px rgba(0,0,0,0.15),
    -3px -3px 8px rgba(255,255,255,0.3);
}

.chat-msg.success {
  background: linear-gradient(145deg, #e8f5e9, #d7eed9);
  color: #2e7d32;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  box-shadow:
    4px 4px 8px rgba(0,0,0,0.06),
    -3px -3px 6px rgba(255,255,255,0.7);
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-top: none;
  background: #e8e5df;
}

.chat-input-row input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #111;
  background: #e4e0da;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  box-shadow:
    inset 3px 3px 7px rgba(0,0,0,0.1),
    inset -2px -2px 5px rgba(255,255,255,0.5);
}

.chat-input-row input::placeholder {
  color: #aaa;
}

.chat-send {
  background: linear-gradient(145deg, #f5f3ef, #e6e3dd);
  border: none;
  cursor: pointer;
  color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  transition: all 0.15s ease;
  box-shadow:
    4px 4px 8px rgba(0,0,0,0.1),
    -3px -3px 6px rgba(255,255,255,0.85),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.chat-send:hover {
  color: #111;
  box-shadow:
    5px 5px 10px rgba(0,0,0,0.12),
    -4px -4px 8px rgba(255,255,255,1),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.chat-send:active {
  background: #e4e0da;
  box-shadow:
    inset 4px 4px 8px rgba(0,0,0,0.12),
    inset -3px -3px 6px rgba(255,255,255,0.5);
}

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 0.7rem 1rem;
  align-self: flex-start;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--gray-300);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .project-cards {
    grid-template-columns: 1fr;
  }

  .approach-card {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
  }
  .approach-card h3 {
    grid-column: 1 / -1;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mission-visual {
    min-height: 500px;
  }

}

@media (max-width: 768px) {
  * { max-width: 100vw; box-sizing: border-box; }
  section, .hero, .arcade-section, .footer { overflow-x: hidden; }

  .nav {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: calc(var(--nav-height) + 2rem) 1.25rem 2rem;
    text-align: center;
  }

  .hero-left { justify-content: center; }
  .hero-name-block { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-name { text-align: center; font-size: clamp(4rem, 18vw, 7rem); }
  .hero-name-top { margin-left: 0; }
  .hero-name-sub { text-align: center; }
  .hero-right-content { text-align: center; }
  .hero-subtitle { text-align: center; margin-left: auto; margin-right: auto; font-size: 0.85rem; }
  .hero-tagline { text-align: center; font-size: 1.35rem; }
  .hero-eyebrow { justify-content: center; }
  .hero-bullets {
    margin: 1.5rem auto 0.25rem;
    max-width: 440px;
    gap: 0.95rem;
    text-align: left;
  }
  .bullet-title { font-size: 1.1rem; }
  .bullet-desc { font-size: 0.74rem; }
  .hero-chats { justify-content: center; flex-direction: column; align-items: center; gap: 0.6rem; margin-top: 1rem; }

  .hero-logo-sub {
    font-size: 0.75rem;
  }

  .hero-chats {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .chat-window {
    width: calc(100vw - 3rem);
    max-width: 380px;
    position: fixed;
    bottom: auto;
    top: 50%;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%);
    animation: chatSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  @keyframes chatSlideUp {
    from {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }

  .chat-trigger {
    font-size: 0.8rem;
    padding: 0.85rem 1.5rem;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .mission-section {
    padding: 3rem 1.25rem;
  }

  .mission-grid {
    gap: 2rem;
  }

  .mission-visual {
    min-height: auto;
    aspect-ratio: auto;
    padding: 1.5rem;
  }

  /* Arcade — MUCH larger on mobile */
  .arcade-section {
    padding: 2rem 0;
  }

  .arc {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .arc-display {
    margin: 0 0.5rem;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
  }

  /* --- Mobile HUD scaling --- */
  .arc-screen-hud {
    top: 8px;
    left: 10px;
    right: 10px;
  }

  .arc-hud-lbl {
    font-size: 0.42rem;
    letter-spacing: 0.15em;
  }

  .arc-hud-val {
    font-size: 0.85rem;
    min-width: 36px;
  }

  .arc-hud-top3 {
    font-size: 0.48rem;
    gap: 1px;
    margin-top: 2px;
  }

  .arc-hud-top3-label {
    font-size: 0.38rem;
    margin-top: 3px;
  }

  .arc-hud-top3-row {
    grid-template-columns: 0.65rem 1.4rem auto;
    gap: 0.3rem;
  }

  .arc-hud-top3-score {
    min-width: 30px;
  }

  .arc-header {
    flex-direction: row;
    padding: 0.75rem 1rem;
  }

  .arc-switcher {
    margin: 0 0.75rem;
    margin-bottom: 0.5rem;
  }

  .arc-controls-center {
    padding: 1rem 1rem 1.25rem;
  }

  .arc-controls {
    gap: 1rem;
  }

  .arc-dpad {
    grid-template-columns: 36px 36px 36px;
    grid-template-rows: 36px 36px 36px;
  }

  .arc-header-actions { right: 0.85rem; gap: 0.35rem; }
  .arc-util-btn { width: 30px; height: 30px; border-radius: 9px; }
  .arc-util-btn svg { width: 14px; height: 14px; }

  .arc-btn {
    width: 40px;
    height: 40px;
  }

  .projects-section,
  .approach-section {
    padding: 3rem 1.25rem;
  }

  .capabilities-section {
    padding: 3rem 1.25rem;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 3rem 1.25rem;
  }

  .contact-details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-divider {
    display: none;
  }

  .footer {
    padding: 1.25rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .approach-card {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .approach-card h3 {
    grid-column: 1 / -1;
    font-size: 0.75rem;
  }

  .approach-card::before {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* Prevent any horizontal overflow */
  [data-bg-text]::before {
    font-size: clamp(3rem, 12vw, 6rem);
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: calc(var(--nav-height) + 1.5rem) 1rem 1.5rem;
    gap: 1rem;
  }

  .hero-name {
    font-size: clamp(3.5rem, 20vw, 5rem);
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .project-card {
    padding: 1.25rem;
  }

  .project-preview {
    height: 150px;
  }

  .arc-display {
    aspect-ratio: 4 / 3;
  }

  /* Hide the top 3 list on very small screens to prevent overlap */
  .arc-hud-top3 { display: none; }

  .arc-hud-val {
    font-size: 0.72rem;
    min-width: 28px;
  }

  .arc-hud-lbl {
    font-size: 0.38rem;
  }

  .arc-dpad {
    grid-template-columns: 34px 34px 34px;
    grid-template-rows: 34px 34px 34px;
  }

  .arc-header-actions { right: 0.6rem; gap: 0.3rem; }
  .arc-util-btn { width: 28px; height: 28px; border-radius: 8px; }
  .arc-util-btn svg { width: 13px; height: 13px; }

  .arc-btn {
    width: 38px;
    height: 38px;
  }

  .nav {
    padding: 0 0.75rem;
  }

  .nav-contact-btn {
    display: none;
  }

  .mission-section {
    padding: 2rem 1rem;
  }

  .approach-card {
    padding: 2rem 0;
  }
}

/* ============================================
   Feature 1: Loading Overlay
   ============================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #f0eeeb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-overlay .loading-logo {
  font-family: var(--font-sans);
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #888;
  user-select: none;
}

.loading-overlay .loading-logo strong {
  font-weight: 900;
  color: #111;
}

.loading-overlay .loading-logo .loading-dot {
  color: #e8572a;
  font-weight: 900;
}

/* ============================================
   Feature 2: Sticky "Let's Talk" CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 999;
  padding: 0.7rem 1.4rem;
  background: #111;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.2s ease;
}

.sticky-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sticky-cta:hover {
  background: #333;
}

/* ============================================
   "The Thinking Dot" — AI-powered theme toggle
   The orange period in "AI." IS the toggle.
   Pulses like a neuron. Hover to activate.
   ============================================ */

/* --- The dot itself --- */
.hero-name-dot {
  position: relative;
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  vertical-align: 0.06em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  margin-left: -0.02em;
}

.dot-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dot-core {
  fill: #e8572a;
  transition: fill 0.6s ease, filter 0.6s ease;
}

/* Pulse rings — concentric circles that expand outward and fade */
.dot-ring {
  fill: none;
  stroke: #e8572a;
  stroke-width: 0.8;
  opacity: 0;
  transform-origin: 16px 16px;
  animation: dotPulse 3s ease-out infinite;
}
.dot-ring-2 { animation-delay: 1s; }
.dot-ring-3 { animation-delay: 2s; }

@keyframes dotPulse {
  0%   { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0;   transform: scale(2.8); }
}

/* Hover: burst mode — rings fire rapidly */
.hero-name-dot:hover .dot-ring {
  animation-duration: 0.6s;
  stroke-width: 1.2;
}

.hero-name-dot:hover .dot-core {
  fill: #4a9eff;
  filter: drop-shadow(0 0 4px rgba(74,158,255,0.6));
}

/* Dark mode: warm glow behind the dot */
[data-theme="dark"] .dot-core {
  filter: drop-shadow(0 0 3px rgba(232,87,42,0.5));
}

[data-theme="dark"] .hero-name-dot:hover .dot-core {
  fill: #4a9eff;
  filter: drop-shadow(0 0 5px rgba(74,158,255,0.7));
}

[data-theme="dark"] .hero-name-dot:hover .dot-ring {
  stroke: #4a9eff;
}

/* Light mode: subtle flat dot, blue rings on hover */
[data-theme="light"] .dot-core {
  filter: none;
}

[data-theme="light"] .dot-ring {
  stroke: #e8572a;
  opacity: 0;
}

[data-theme="light"] .hero-name-dot:hover .dot-ring {
  stroke: #e8572a;
}

/* Dark mode theme overrides */
[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-card: #1a1a22;
  --bg-card-hover: #222230;
  --white: #e8e8e8;
  --off-white: #d0d0d0;
  --gray-100: #c0c0c0;
  --gray-200: #999;
  --gray-300: #666;
  --gray-400: #555;
  --gray-500: #333;
  --accent: #e8e8e8;
  --accent-dim: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.1);
}


[data-theme="dark"] body {
  background: #0a0a0f;
  color: #d0d0d0;
}

[data-theme="dark"] .nav.scrolled {
  background: rgba(10, 10, 15, 0.9);
  border-bottom-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .nav-links a:hover {
  color: #fff;
}

[data-theme="dark"] .nav-contact-btn {
  background: linear-gradient(145deg, #2a2a34, #1a1a22);
  color: #fff !important;
  box-shadow:
    4px 4px 8px rgba(0,0,0,0.4),
    -3px -3px 6px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

[data-theme="dark"] .hero-name-top { color: #666; }
[data-theme="dark"] .hero-name { color: #e8e8e8; }
[data-theme="dark"] .hero-name-rule { background: #e8e8e8; }
[data-theme="dark"] .hero-name-sub { color: #555; }
[data-theme="dark"] .hero-tagline { color: #e8e8e8; }
[data-theme="dark"] .hero-tagline em { color: #888; }
[data-theme="dark"] .hero-subtitle { color: #888; }
[data-theme="dark"] .hero-eyebrow { color: #7c7c7c; }
[data-theme="dark"] .bullet-title { color: #ededed; }
[data-theme="dark"] .bullet-desc { color: #8a8a8a; }

[data-theme="dark"] .hero-cta,
[data-theme="dark"] .mission-cta,
[data-theme="dark"] .contact-btn {
  background: linear-gradient(145deg, #2a2a34, #1a1a22);
  color: #e8e8e8;
  box-shadow:
    4px 4px 10px rgba(0,0,0,0.5),
    -3px -3px 8px rgba(255,255,255,0.03),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

[data-theme="dark"] .section-title {
  color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .project-card {
  background: #1a1a22;
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .project-card:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

[data-theme="dark"] .project-card h3 { color: #e8e8e8; }
[data-theme="dark"] .project-visit { color: #ccc; }
[data-theme="dark"] .project-visit:hover { color: #fff; border-bottom-color: #fff; }
[data-theme="dark"] .project-toggle { color: #888; }
[data-theme="dark"] .project-toggle:hover { color: #ccc; border-bottom-color: #ccc; }
[data-theme="dark"] .project-card.expanded .project-toggle { color: #e8e8e8; border-bottom-color: #e8e8e8; }
[data-theme="dark"] .project-features span {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #aaa;
}
[data-theme="dark"] .project-tech span {
  border-color: rgba(255,255,255,0.1);
  color: #999;
}
[data-theme="dark"] .project-stats { border-bottom-color: rgba(255,255,255,0.08); }

[data-theme="dark"] .approach-card {
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .approach-card::before { color: rgba(255,255,255,0.08); }
[data-theme="dark"] .approach-card h3 { background: #e8e8e8; color: #111; }

[data-theme="dark"] .cap-group { border-top-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .cap-group h4 { color: #e8e8e8; }

[data-theme="dark"] .mission-text h2 { color: #e8e8e8; }

[data-theme="dark"] .chat-trigger-input {
  background: #1a1a22;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.5), -3px -3px 8px rgba(255,255,255,0.03);
}
[data-theme="dark"] .chat-trigger-input input {
  background: #12121a;
  color: #e8e8e8;
  box-shadow: inset 3px 3px 7px rgba(0,0,0,0.3), inset -2px -2px 5px rgba(255,255,255,0.02);
}
[data-theme="dark"] .chat-trigger-input input::placeholder { color: #666; }
[data-theme="dark"] .chat-send {
  background: linear-gradient(145deg, #2a2a34, #1a1a22);
  color: rgba(255,255,255,0.5);
  box-shadow: 3px 3px 6px rgba(0,0,0,0.4), -2px -2px 4px rgba(255,255,255,0.03);
}
[data-theme="dark"] .chat-send:hover { color: #fff; }

[data-theme="dark"] .footer {
  background: #0a0a0f;
  border-top-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .mobile-menu {
  background: #0a0a0f;
  border-bottom-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .mobile-menu a { color: #ccc; }

[data-theme="dark"] .mobile-menu-btn span { background: #ccc; }

[data-theme="dark"] ::selection {
  background: #fff;
  color: #111;
}

[data-theme="dark"] .loading-overlay {
  background: #0a0a0f;
}
[data-theme="dark"] .loading-overlay .loading-logo { color: #666; }
[data-theme="dark"] .loading-overlay .loading-logo strong { color: #e8e8e8; }

/* ============================================
   Feature 5: Mobile Menu Polish
   ============================================ */
@media (max-width: 768px) {
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 280px;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    background: rgba(240, 238, 235, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    border-left: 1px solid var(--border);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    visibility: hidden;
  }

  .mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
  }

  .mobile-menu a {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gray-100);
    padding: 1rem 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
  }

  .mobile-menu a:last-child {
    border-bottom: none;
  }

  .mobile-menu a:hover {
    color: #111;
  }

  [data-theme="dark"] .mobile-menu {
    background: rgba(10, 10, 15, 0.98);
    border-left-color: rgba(255,255,255,0.08);
  }
  [data-theme="dark"] .mobile-menu a {
    border-bottom-color: rgba(255,255,255,0.08);
  }
  [data-theme="dark"] .mobile-menu a:hover { color: #fff; }

  .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .mobile-backdrop.visible {
    opacity: 1;
    visibility: visible;
  }
}

/* ============================================
   Feature 7: Project Detail Modal
   ============================================ */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 2rem;
}

.project-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.project-modal {
  background: var(--bg-card);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.project-modal-overlay.open .project-modal {
  transform: scale(1) translateY(0);
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: var(--gray-200);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}

.project-modal-close:hover {
  background: rgba(0,0,0,0.12);
  color: #111;
}

[data-theme="dark"] .project-modal {
  background: #1a1a22;
}

[data-theme="dark"] .project-modal-close {
  background: rgba(255,255,255,0.1);
  color: #999;
}
[data-theme="dark"] .project-modal-close:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.project-modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
  border-radius: 20px 20px 0 0;
  display: block;
}

.project-modal-body {
  padding: 2rem 2.5rem 2.5rem;
}

.project-modal-body h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.project-modal-body .project-client {
  margin-bottom: 1.5rem;
}

.project-modal-body .project-desc {
  margin-bottom: 1.5rem;
}

.project-modal-body .project-features {
  margin-bottom: 1.5rem;
}

.project-modal-body .project-stats {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.project-modal-body .project-tech {
  margin-bottom: 1.5rem;
}

.project-modal-visit {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}

.project-modal-visit:hover {
  background: #333;
  color: #fff;
}

[data-theme="dark"] .project-modal-visit {
  background: #e8e8e8;
  color: #111;
}
[data-theme="dark"] .project-modal-visit:hover {
  background: #fff;
  color: #111;
}

@media (max-width: 768px) {
  .project-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .project-modal {
    max-height: 95vh;
    border-radius: 20px 20px 0 0;
    max-width: 100%;
  }

  .project-modal-img {
    height: 200px;
    border-radius: 20px 20px 0 0;
  }

  .project-modal-body {
    padding: 1.5rem;
  }

  .project-modal-body h3 {
    font-size: 1.4rem;
  }
}

/* ============================================
   Feature 6: Arcade Sound Toggle
   ============================================ */
.arc-sound-toggle {
  position: relative;
  margin-left: 0.15rem;
  padding: 0;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #cfcfd4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background:
    radial-gradient(120% 60% at 50% -20%,
      rgba(255,255,255,0.1) 0%,
      rgba(255,255,255,0.02) 35%,
      rgba(255,255,255,0) 60%
    ),
    linear-gradient(180deg, #1e1e24 0%, #0a0a0e 100%);
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.14),
    0 0 0 1px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.75),
    0 1px 2px rgba(0,0,0,0.3),
    0 4px 10px rgba(0,0,0,0.22),
    0 10px 22px rgba(0,0,0,0.14);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.22s ease,
    box-shadow 0.25s ease;
}

.arc-sound-toggle:hover {
  transform: translateY(-1px);
  color: #f4d99a;
  box-shadow:
    0 0 0 0.5px rgba(217,180,93,0.6),
    0 0 0 1px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.8),
    0 2px 4px rgba(0,0,0,0.32),
    0 6px 14px rgba(0,0,0,0.2),
    0 14px 28px rgba(217,180,93,0.2);
  background:
    radial-gradient(120% 60% at 50% -20%,
      rgba(255,255,255,0.1) 0%,
      rgba(255,255,255,0.02) 35%,
      rgba(255,255,255,0) 60%
    ),
    linear-gradient(180deg, #1e1e24 0%, #0a0a0e 100%);
}

.arc-sound-toggle svg {
  width: 15px;
  height: 15px;
  filter:
    drop-shadow(0 0.5px 0 rgba(0,0,0,0.6))
    drop-shadow(0 1px 0 rgba(255,255,255,0.06));
}

.arc-sound-toggle .icon-muted { display: block; }
.arc-sound-toggle .icon-unmuted { display: none; }
.arc-sound-toggle.unmuted .icon-muted { display: none; }
.arc-sound-toggle.unmuted .icon-unmuted { display: block; }

/* Hero layout */
.hero {
  position: relative;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

/* ============================================
   Feature: Gradient Border Glow on Cards/Inputs
   ============================================ */
@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes glowRotate {
  to {
    --glow-angle: 360deg;
  }
}

.project-card,
.chat-trigger-input {
  position: relative;
}

.project-card::before,
.chat-trigger-input::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    rgba(74, 240, 255, 0.4),
    rgba(74, 158, 255, 0.4),
    rgba(138, 74, 255, 0.4),
    rgba(255, 74, 200, 0.4),
    rgba(74, 240, 255, 0.4)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: glowRotate 9s linear infinite;
}

.project-card:hover::before,
.chat-trigger-input:hover::before {
  opacity: 1;
}

/* Inner mask: card bg covers glow except at edges */
.project-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--bg-card);
  z-index: -1;
}

[data-theme="dark"] .project-card::after {
  background: #1a1a22;
}

.chat-trigger-input::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: #e8e5df;
  z-index: -1;
}

[data-theme="dark"] .chat-trigger-input::after {
  background: #1a1a22;
}

/* Arcade cabinet — uses box-shadow because of overflow:hidden */
.arc {
  transition: box-shadow 0.3s ease;
}

.arc:hover {
  box-shadow:
    0 0 0 0.5px rgba(0,0,0,0.12),
    0 0 0 2px rgba(74, 240, 255, 0.25),
    0 0 12px rgba(74, 158, 255, 0.15),
    0 0 24px rgba(138, 74, 255, 0.1),
    0 14px 32px rgba(0,0,0,0.08),
    0 28px 64px rgba(0,0,0,0.1);
}
