:root {
  /* Palette adapted from the Smart Lighting template (dark amber) */
  --bg: #060608;
  --bg-2: #0d0d12;
  --bg-3: #12121a;
  --ink: #f0e8d8;          /* warm — primary headings/text */
  --ink-soft: #d4cfc8;     /* body text */
  --mute: #6b6870;         /* dimmed text */
  --line: rgba(255, 255, 255, 0.08);
  --ghost: rgba(245, 201, 122, 0.09); /* faded amber display word */
  /* amber accent ramp (kept under the old --orange-* names) */
  --orange-1: #cda24a;     /* amber-dim (accent on dark) */
  --orange-2: #f5c97a;     /* amber */
  --orange-3: #f7d89a;     /* light amber */
  --orange-4: #fbe8c4;     /* pale amber */
  --amber-glow: rgba(245, 201, 122, 0.15);
}

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

html { scroll-behavior: auto; } /* GSAP controls smooth section snapping */

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Syne", system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(245, 201, 122, 0.08) 0%, transparent 55%),
    radial-gradient(120% 70% at 50% 0%, #12121a 0%, #0a0a0d 55%, #060608 100%);
  min-height: 100vh;
}

::selection { background: var(--orange-2); color: var(--bg); }

/* Grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
  padding: 14px 48px;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em; font-size: 16px;
  color: var(--ink); text-decoration: none;
}
.logo-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(180deg, var(--orange-3), var(--orange-1));
  box-shadow: 0 0 12px -1px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 3px rgba(120,80,20,0.4);
}
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500;
  position: relative; transition: color 0.3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--orange-2); color: var(--bg); border: none;
  padding: 12px 22px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 700; text-decoration: none;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px -6px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1), box-shadow 0.4s ease;
}
.nav-cta:hover { box-shadow: 0 10px 30px -4px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,0.25); }
.nav-cta:hover { transform: translateY(-2px); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; padding: 130px 32px 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 5; text-align: center;
}
/* Hero singularity (Three.js canvas) — fills the empty space above the eyebrow */
.hero-singularity {
  position: absolute;
  top: 26px; left: 50%; transform: translateX(-50%);
  width: min(620px, 84vw);
  height: 300px;
  z-index: 1;                 /* behind the hero text */
  pointer-events: none;       /* never blocks scroll / clicks */
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at 50% 46%, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse 68% 62% at 50% 46%, #000 30%, transparent 72%);
}
.hero-singularity canvas { display: block; width: 100% !important; height: 100% !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "DM Mono", monospace; font-size: 13px; letter-spacing: 0.02em;
  color: var(--mute); margin-bottom: 26px; position: relative; z-index: 7;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #1f9d6b;
  box-shadow: 0 0 0 0 rgba(31,157,107,0.5); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31,157,107,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(31,157,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,157,107,0); }
}
.headline {
  font-weight: 700; font-size: clamp(40px, 6.6vw, 96px);
  letter-spacing: -0.035em; line-height: 1; color: var(--ink);
  z-index: 4; position: relative;
}
.headline .word { display: inline-block; overflow: hidden; vertical-align: top; }
.headline .word > span { display: inline-block; transform: translateY(105%); }

.big-wrap {
  position: relative; width: 100%; margin-top: -14px;
  display: flex; justify-content: center; z-index: 1;
}
.big-ghost {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-weight: 600;
  font-size: clamp(110px, 22vw, 320px);
  letter-spacing: -0.02em; line-height: 0.82;
  color: var(--ghost); white-space: nowrap; user-select: none; z-index: 1;
  text-shadow: 0 4px 12px rgba(120,100,50,0.04);
}
.big-ghost .letter { display: inline-block; transform-origin: bottom; }

/* Floating cards */
.cards-row {
  position: absolute; left: 0; right: 0; top: 34%; height: 280px;
  z-index: 3; pointer-events: none;
}
.cards-row > * { pointer-events: auto; }
.card {
  position: absolute; width: 124px; height: 156px; border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--g1) 0%, var(--g2) 100%);
  box-shadow: 0 30px 50px -16px rgba(40,30,20,0.45), 0 14px 26px -8px rgba(40,30,10,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  display: flex; align-items: flex-end; padding: 16px;
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 30% 0%, rgba(255,255,255,0.35), transparent 60%);
}
.card-tag {
  position: relative; z-index: 2; color: #fff; font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.card-1 { left: 7%;  top: 18%; }
.card-2 { left: 21%; top: 50%; }
.card-3 { left: 38%; top: 15%; }
.card-4 { left: 55%; top: 52%; }
.card-5 { left: 71%; top: 16%; }
.card-6 { left: 84%; top: 46%; }

.subline {
  max-width: 540px; margin-top: 34px; z-index: 6; position: relative;
  overflow: hidden;
}
@media (min-width: 721px) {
  .subline {
    position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%);
    margin-top: 0; width: 540px; text-align: center;
  }
}
.subline-text {
  display: inline-block; font-size: 17px; line-height: 1.55; color: var(--ink-soft);
}
.subline-text strong { color: var(--ink); font-weight: 700; }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0; overflow: hidden; background: var(--bg-2);
}
.marquee-track {
  display: inline-flex; gap: 26px; white-space: nowrap;
  font-family: "DM Mono", monospace; font-size: 15px; color: var(--ink-soft);
  animation: scroll-x 28s linear infinite;
}
.marquee-track span:nth-child(even) { color: var(--orange-2); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============ STATS ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; max-width: 1180px; margin: 0 auto; padding: 0 48px;
}
.stat-block { text-align: left; border-left: 2px solid var(--line); padding-left: 18px; }
.stat-num {
  font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; color: var(--ink);
  background: linear-gradient(160deg, var(--ink), var(--orange-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { margin-top: 10px; font-size: 13.5px; color: var(--mute); line-height: 1.4; }

/* ============ SECTIONS ============ */
.section { max-width: 1180px; margin: 0 auto; padding: 60px 48px 90px; }
.section.alt {
  max-width: none; background: var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section.alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 34px; max-width: 640px; }
.section-kicker {
  font-family: "DM Mono", monospace; font-size: 13px; letter-spacing: 0.04em;
  color: var(--orange-1); text-transform: uppercase;
}
.section-title {
  font-size: clamp(34px, 5vw, 64px); font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.02; margin-top: 14px; color: var(--ink);
}
.section-title em { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600; color: var(--orange-2); }
.section-lead { margin-top: 16px; font-size: 17px; color: var(--ink-soft); line-height: 1.55; }

/* ============ WORK ============ */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.work-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; text-decoration: none; color: var(--ink);
  transition: transform 0.45s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.45s ease, border-color 0.45s ease;
  overflow: hidden;
}
.work-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange-1), var(--orange-3));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(0.7,0,0.2,1);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -22px rgba(0,0,0,0.7), 0 0 0 1px var(--amber-glow);
  border-color: var(--orange-2);
}
.work-card:hover::after { transform: scaleX(1); }
.work-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.work-index { font-family: "DM Mono", monospace; font-size: 13px; color: var(--mute); }
.work-arrow { font-size: 20px; color: var(--mute); transition: transform 0.4s ease, color 0.4s ease; }
.work-card:hover .work-arrow { transform: translate(4px, -4px); color: var(--orange-1); }
.work-name {
  font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px;
  font-family: "DM Mono", monospace;
}
.work-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.work-desc strong { color: var(--orange-1); }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.work-tags span {
  font-size: 12px; font-weight: 500; color: var(--ink-soft);
  background: var(--bg-3); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px;
}

.ghost-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--ink); padding-bottom: 3px;
  transition: gap 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.ghost-link:hover { gap: 14px; color: var(--orange-1); border-color: var(--orange-1); }

/* ============ STACK ============ */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stack-col {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px; padding: 26px;
}
.stack-col h4 {
  font-size: 15px; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  color: var(--ink); letter-spacing: -0.01em;
}
.stack-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.stack-col li {
  font-size: 14.5px; color: var(--ink-soft); padding-left: 18px; position: relative;
}
.stack-col li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px;
  border-radius: 50%; background: linear-gradient(180deg, var(--orange-1), var(--orange-4));
}

/* ============ ABOUT ============ */
.about-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.about-left { position: sticky; top: 120px; }
.about-right p { font-size: 18px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 22px; }
.about-right strong { color: var(--ink); font-weight: 700; }
.about-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn-solid {
  background: var(--orange-2); color: var(--bg); padding: 13px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px -6px var(--amber-glow);
  transition: transform 0.4s ease; display: inline-block;
}
.btn-solid:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink); padding: 13px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--line);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.btn-ghost:hover { border-color: var(--orange-2); color: var(--orange-1); }

/* ============ CONTACT ============ */
.contact {
  text-align: center; padding: 48px 32px 28px;
  border-top: 1px solid var(--line); background: var(--bg-2);
}
.contact-big {
  font-size: clamp(38px, 5.4vw, 76px); font-weight: 800; letter-spacing: -0.04em;
  line-height: 0.9; margin: 12px 0 18px; color: var(--ink);
}
.contact-big em { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600; color: var(--orange-2); }
.contact-mail {
  display: inline-block; font-size: clamp(18px, 2.6vw, 28px); font-weight: 600;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--orange-2);
  padding-bottom: 4px; transition: color 0.3s ease;
}
.contact-mail:hover { color: var(--orange-1); }
.socials {
  list-style: none; display: flex; justify-content: center; gap: 28px;
  margin: 20px 0 12px; flex-wrap: wrap;
}
.socials a {
  font-size: 15px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  position: relative; transition: color 0.3s ease;
}
.socials a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px;
  background: var(--orange-2); transition: width 0.35s ease;
}
.socials a:hover { color: var(--ink); }
.socials a:hover::after { width: 100%; }

/* AWS regions globe inside the "Let's build" section (bare — no box/text) */
.contact-globe {
  width: 100%; max-width: 480px; height: 320px; margin: 4px auto 8px;
}
.footer-bar {
  display: flex; justify-content: space-between; max-width: 1180px; margin: 0 auto;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-family: "DM Mono", monospace; font-size: 12.5px; color: var(--mute); flex-wrap: wrap; gap: 10px;
}

/* ============ 3D CUBE SHOWCASE ============ */
.cube-section {
  position: relative;
  height: 640vh;                 /* scroll length that drives the rotation */
  background: var(--bg);
  color: var(--ink);
}
.cube-pin {
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.cube-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* HUD */
.cube-hud {
  position: absolute; top: 40px; right: 48px; z-index: 6; text-align: right;
  font-family: "DM Mono", monospace; text-transform: uppercase;
}
.cube-hud-count { font-size: 12px; letter-spacing: 0.18em; color: var(--mute); }
.cube-progress {
  width: 140px; height: 1px; background: var(--line); margin: 10px 0 0 auto; position: relative; overflow: hidden;
}
.cube-progress-fill { position: absolute; inset: 0 auto 0 0; width: 16%; background: var(--orange-2); transition: width 0.1s linear; }
.cube-hud-name { font-size: 12px; letter-spacing: 0.1em; color: var(--orange-3); margin-top: 8px; }

/* Dot strip */
.cube-dots {
  position: absolute; left: 40px; top: 50%; transform: translateY(-50%); z-index: 6;
  display: flex; flex-direction: column; gap: 12px;
}
.cube-dot { width: 5px; height: 5px; border-radius: 50%; background: #2f2f38; transition: background 0.3s, transform 0.3s; }
.cube-dot.active { background: var(--orange-2); transform: scale(1.9); }

/* Layout */
.cube-inner {
  position: relative; z-index: 4; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 64px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}

/* Cube */
.cube-stage {
  perspective: 1300px; display: flex; align-items: center; justify-content: center; height: 100%;
}
.cube {
  --s: min(40vw, 58vh, 440px);
  width: var(--s); height: var(--s); position: relative;
  transform-style: preserve-3d; transform: rotateX(90deg) rotateY(0deg); will-change: transform;
}
.cube-face {
  position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden;
  background: var(--bg-3);
  border: 1px solid rgba(245, 201, 122, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), inset 0 0 60px rgba(0,0,0,0.6), 0 0 40px -10px var(--amber-glow);
}
.cube-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cube-face[data-face="front"]  { transform: translateZ(calc(var(--s) / 2)); }
.cube-face[data-face="back"]   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube-face[data-face="right"]  { transform: rotateY(90deg)  translateZ(calc(var(--s) / 2)); }
.cube-face[data-face="left"]   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube-face[data-face="top"]    { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.cube-face[data-face="bottom"] { transform: rotateX(90deg)  translateZ(calc(var(--s) / 2)); }

/* Copy beside the box */
.cube-copy { position: relative; }
.cube-eyebrow {
  font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--orange-3); margin-bottom: 22px;
}
.cube-panels { position: relative; min-height: 360px; }
.cube-panel {
  position: absolute; inset: 0; opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: none;
}
.cube-panel.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cube-tag {
  font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--mute);
}
.cube-panel h3 {
  font-size: clamp(28px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.04; margin: 14px 0 18px; color: var(--ink);
}
.cube-panel h3 strong { color: var(--orange-3); }
.cube-panel p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 460px; }
.cube-panel code {
  font-family: "DM Mono", monospace; font-size: 0.85em; color: var(--orange-3);
  background: rgba(245,201,122,0.12); padding: 1px 6px; border-radius: 5px;
}
.cube-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cube-chips span {
  font-size: 12px; color: var(--ink-soft); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px;
}
.cube-link {
  display: inline-block; margin-top: 26px; font-size: 14px; font-weight: 600;
  font-family: "DM Mono", monospace; color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--orange-2); padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.cube-link:hover { color: var(--orange-3); }

/* Reduced-motion / no-pin fallback: stack faces flat as a simple gallery */
.cube-section.static { height: auto; padding: 80px 0; }
.cube-section.static .cube-pin { height: auto; display: block; }
.cube-section.static .cube-stage { display: none; }
.cube-section.static .cube-panels { position: static; min-height: 0; }
.cube-section.static .cube-panel {
  position: static; opacity: 1; transform: none; pointer-events: auto;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.cube-section.static .cube-dots,
.cube-section.static .cube-hud { display: none; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); }

/* ============ FULL-VIEWPORT SECTIONS (each fills the display) ============ */
.screen { min-height: 100vh; }
.section.screen { display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 40px; }
.contact.screen { display: flex; flex-direction: column; justify-content: center; }
.stats.screen { align-content: center; }
/* allow content taller than the viewport to still breathe rather than clip */
@media (max-height: 760px) {
  .screen { min-height: auto; padding-top: 90px; padding-bottom: 90px; }
  .hero.screen { min-height: 100vh; padding-top: 130px; padding-bottom: 60px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; }
  .about-left { position: static; }
  .cube-inner {
    grid-template-columns: 1fr; gap: 18px; padding: 80px 48px 48px; align-content: center;
  }
  .cube { --s: min(54vw, 38vh, 320px); }
  .cube-panels { min-height: 300px; }
  .cube-hud { right: 24px; top: 24px; }
  .cube-dots { left: 18px; }
}
@media (max-width: 720px) {
  .nav { padding: 18px 22px; }
  .nav.scrolled { padding: 12px 22px; }
  .nav-links { display: none; }
  .section, .stats { padding-left: 22px; padding-right: 22px; }
  .cards-row { display: none; }
  .big-ghost { font-size: clamp(76px, 26vw, 120px); }
  .work-grid, .stack-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-bar { justify-content: center; text-align: center; }
  .hero-singularity { top: 24px; height: 240px; width: 92vw; }
  .contact-globe { height: 340px; }
  .contact-globe-wrap { padding: 16px 12px 10px; }
  .cube-inner { padding: 70px 22px 36px; }
  .cube { --s: min(64vw, 34vh, 280px); }
  .cube-panel h3 { font-size: clamp(24px, 7vw, 34px); }
  .cube-panel p { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .status-dot { animation: none; }
  html { scroll-behavior: auto; }
}
