/* ============================================================
   moom.design — design system
   Ink #14141A · Cream #F6F2EC · Amber #FFB020 / Gold #E4C626
   ============================================================ */

:root {
  --ink: #14141A;
  --ink-soft: #1E1E26;
  --cream: #F6F2EC;
  --amber: #FFB020;
  --gold: #E4C626;
  --terra: #B96A3C;
  --mauve: #B98088;
  --slate: #4C5C7D;
  --forest: #5C7A5A;
  --head-font: 'Bricolage Grotesque', sans-serif;
  --body-font: 'Archivo', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { max-width: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; }
img, canvas { display: block; max-width: 100%; }

/* ---------- Header (kept from the version you liked) ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad-x);
  transition: padding 0.35s var(--ease-out);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header.is-scrolled { padding: 12px var(--pad-x); }

/* Frosted-glass bar: invisible at the very top of the page, fades in
   once you scroll so the nav always stays readable over any content. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 11, 18, 0);
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease,
              -webkit-backdrop-filter 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.is-scrolled::before {
  background: rgba(11, 11, 18, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: rgba(246, 242, 236, 0.09);
}
.site-header.is-scrolled.on-light::before {
  background: rgba(246, 242, 236, 0.72);
  border-bottom-color: rgba(20, 20, 26, 0.08);
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff;
}
.brand svg { height: 26px; width: auto; transition: height 0.35s var(--ease-out); }
.brand-name {
  font-family: var(--head-font); font-weight: 500; font-size: 19px;
  letter-spacing: -0.01em;
  transition: font-size 0.35s var(--ease-out), color 0.3s ease;
}
.site-header.is-scrolled .brand svg { height: 19px; }
.site-header.is-scrolled .brand-name { font-size: 16px; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a.nav-link {
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 500;
  position: relative; padding: 4px 0;
  transition: color 0.3s ease;
}

/* Explicit theme swap when the header sits over a light section */
.site-header.on-light .brand-name { color: var(--ink); }
.site-header.on-light .main-nav a.nav-link { color: var(--ink); }
.main-nav a.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.main-nav a.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 100px;
  font-family: var(--body-font); font-weight: 600; font-size: 16px;
  text-decoration: none; border: none; cursor: pointer;
  transition: box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn--cta {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 0 15px 0 rgba(228, 198, 38, 0.55);
  animation: ctaPulse 4.5s ease-in-out infinite;
}
.btn--cta:hover { box-shadow: 0 0 34px 0 rgba(228, 198, 38, 0.9); animation-duration: 2.2s; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 15px 0 rgba(228, 198, 38, 0.45); }
  50% { box-shadow: 0 0 26px 0 rgba(228, 198, 38, 0.7); }
}
.btn--ghost-light {
  border: 1.5px solid rgba(246, 242, 236, 0.65); color: var(--cream); background: rgba(246, 242, 236, 0.04);
}
.btn--ghost-light:hover { background: rgba(246, 242, 236, 0.12); border-color: rgba(246, 242, 236, 0.9); }
.btn--ghost-dark {
  border: 1px solid rgba(20, 20, 26, 0.25); color: var(--ink); background: transparent;
}
.btn--ghost-dark:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Reveal & mask motion ---------- */

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes revealUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes maskUp { from { transform: translateY(110%); } to { transform: translateY(0); } }

[data-reveal] { opacity: 0; }
[data-reveal].is-in { animation: revealUp 0.9s var(--ease-out) both; }

.mask-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask-inner { display: block; transform: translateY(110%); will-change: transform; }
.mask-line.is-in .mask-inner { animation: maskUp 1.05s var(--ease-out) both; }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; animation: none !important; }
  .mask-inner { transform: none !important; animation: none !important; }
  [data-parallax] { transform: none !important; }
  .marquee-track { animation: none !important; }
  .btn--cta { animation: none !important; }
}

/* ---------- Hero (kept) ---------- */

.hero {
  position: relative;
  padding: 130px var(--pad-x) 110px;
  background: var(--ink); color: var(--cream);
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-glow-a {
  position: absolute; top: -140px; right: -120px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(249, 144, 18, 0.35), transparent 70%);
  filter: blur(10px);
}
.hero-glow-b {
  position: absolute; bottom: -160px; left: -140px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle at 70% 70%, rgba(2, 2, 10, 0.9), transparent 70%);
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.9; pointer-events: auto; cursor: crosshair;
  /* Interactive AND scrollable: `touch-action: pan-y` lets vertical
     swipes scroll the page natively while the canvas still receives
     pointer moves — the form reacts under your finger on mobile. */
  touch-action: pan-y;
}
.hero-inner {
  position: relative; max-width: 1180px; margin: 0 auto; width: 100%;
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
}
.hero-inner .btn { pointer-events: auto; }
.hero-title {
  font-family: var(--head-font); font-weight: 300;
  font-size: clamp(56px, 8.8vw, 124px); line-height: 1.04; letter-spacing: -0.015em;
  margin: 0 0 36px;
}
/* Rotating word — blur out / blur in swap.
   The slot gets a fixed width in JS (widest word) so the rest of the
   line never shifts when a longer or shorter word swaps in. */
.rotator {
  display: inline-flex; justify-content: center; vertical-align: bottom;
  padding-bottom: 0.08em; margin-bottom: -0.08em;
}
.rotator-word {
  display: inline-block; will-change: transform, opacity, filter;
  font-family: var(--body-font); font-style: italic; font-weight: 400;
  letter-spacing: 0; color: #FFD84D;
  transition: transform 0.5s var(--ease-out), opacity 0.4s ease,
              filter 0.45s ease, color 0.6s ease;
}
.rotator-word.is-out { opacity: 0; filter: blur(10px); transform: translateY(-18%); }
.rotator-word.is-in { animation: rotatorIn 0.6s var(--ease-out) both; }
@keyframes rotatorIn {
  from { opacity: 0; filter: blur(10px); transform: translateY(18%); }
  to   { opacity: 1; filter: blur(0);    transform: translateY(0); }
}
.hero-sub {
  font-size: 20px; line-height: 1.6; max-width: 560px; opacity: 0.75;
  margin: 0 auto 44px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* "Live reel" chip — floating over the canvas like a showreel badge */
.reel-chip {
  position: absolute; left: 50%; bottom: 38px; z-index: 5;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 100px;
  background: rgba(246, 242, 236, 0.08); border: 1px solid rgba(246, 242, 236, 0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--cream); font-family: var(--body-font); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease-out);
  animation: fadeUp 0.9s ease 0.4s both;
}
.reel-chip:hover { background: rgba(246, 242, 236, 0.16); border-color: rgba(255, 176, 32, 0.6); transform: translateX(-50%) translateY(-3px); }
.reel-chip-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  animation: reelPulse 1.8s ease-in-out infinite;
}
@keyframes reelPulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,176,32,0.5); } 50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(255,176,32,0); } }

/* ---------- Marquee ---------- */

.marquee {
  background: var(--ink); color: var(--cream);
  padding: 28px 0; border-top: 1px solid rgba(246, 242, 236, 0.1);
  overflow: hidden;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee-item {
  display: flex; align-items: center; gap: 44px; white-space: nowrap;
  font-family: var(--head-font); font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em; opacity: 0.72;
}
.marquee-item::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); opacity: 0.8; flex-shrink: 0;
}

/* ---------- Section scaffolding ---------- */

.section { padding: 140px var(--pad-x); }
/* Anchors must land below the fixed header, not under it */
[id] { scroll-margin-top: 84px; }
.section--dark { background: var(--ink); color: var(--cream); }
.wrap { max-width: 1320px; margin: 0 auto; }
.wrap--narrow { max-width: 1180px; margin: 0 auto; }

.section-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 48px;
}
.section-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.section-label--terra { color: var(--terra); }
.section-label--amber { color: var(--amber); }
.section-rule { flex: 1; height: 1px; background: currentColor; opacity: 0.16; }
.section-meta { font-size: 13px; font-weight: 600; opacity: 0.45; }

.h2 {
  font-family: var(--head-font); font-weight: 700;
  font-size: clamp(36px, 5vw, 68px); line-height: 1; letter-spacing: -0.03em;
  margin: 0;
}
.split-head {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px;
  align-items: end; margin-bottom: 80px;
}
.split-head p {
  font-size: 17px; line-height: 1.65; opacity: 0.62; margin: 0;
  max-width: 400px; text-wrap: pretty; justify-self: end;
}

/* ---------- Capabilities: studio-size style expanding list ---------- */

.cap-list { border-top: 1px solid rgba(20, 20, 26, 0.16); }
.cap-row {
  position: relative; display: block; width: 100%; text-align: left;
  background: none; border: none; border-bottom: 1px solid rgba(20, 20, 26, 0.16);
  padding: 0; cursor: pointer; font-family: inherit; color: inherit;
  overflow: hidden;
}
.cap-row::before {
  content: ''; position: absolute; inset: 0; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.55s var(--ease-out);
  z-index: 0;
}
.cap-row:hover::before, .cap-row.is-open::before { transform: scaleY(1); }

.cap-row-head {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 70px 1fr auto; align-items: baseline; gap: 24px;
  padding: 26px 8px;
  transition: color 0.4s ease, padding-left 0.55s var(--ease-out);
}
.cap-row:hover .cap-row-head, .cap-row.is-open .cap-row-head { color: var(--cream); padding-left: 26px; }
.cap-index {
  font-family: var(--head-font); font-size: 15px; font-weight: 600; opacity: 0.4;
  transition: opacity 0.4s ease;
}
.cap-row:hover .cap-index { opacity: 0.85; color: var(--amber); }
.cap-name {
  font-family: var(--head-font); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 62px); line-height: 1; letter-spacing: -0.03em;
}
.cap-arrow {
  font-size: 26px; opacity: 0.35;
  transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
}
.cap-row:hover .cap-arrow, .cap-row.is-open .cap-arrow { transform: rotate(45deg); opacity: 1; color: var(--amber); }

.cap-row-body {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 70px 1fr; gap: 24px;
  max-height: 0; overflow: hidden;
  transition: max-height 0.6s var(--ease-out);
}
.cap-row.is-open .cap-row-body { max-height: 260px; }
.cap-row-body-inner {
  grid-column: 2; padding: 0 8px 34px 26px;
  color: rgba(246, 242, 236, 0.75);
}
.cap-row-body-inner p { font-size: 16px; line-height: 1.65; margin: 0 0 16px; max-width: 560px; text-wrap: pretty; }
.cap-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.cap-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; border: 1px solid rgba(246, 242, 236, 0.3);
  color: rgba(246, 242, 236, 0.8);
}

/* Floating preview that follows the cursor over the capability list */
.cap-preview {
  position: fixed; top: 0; left: 0; z-index: 40; width: 320px; height: 220px;
  border-radius: 16px; overflow: hidden; pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6); opacity: 0;
  transition: opacity 0.35s ease;
  box-shadow: 0 30px 60px rgba(20, 20, 26, 0.35);
  will-change: transform;
}
.cap-preview.is-on { opacity: 1; }
.cap-preview canvas { width: 100%; height: 100%; }

/* ---------- Statement + stats (dark) ---------- */

.statement {
  max-width: 1000px; margin: 0 auto; text-align: center;
  font-family: var(--head-font); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 56px); line-height: 1.1; letter-spacing: -0.025em;
}
.stats-grid {
  max-width: 1000px; margin: 88px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.stat { border-top: 1px solid rgba(246, 242, 236, 0.16); padding-top: 22px; }
.stat-value {
  display: block; font-family: var(--head-font);
  font-size: clamp(38px, 4.4vw, 56px); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1; color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; font-size: 14px; opacity: 0.55; margin-top: 12px; }

/* ---------- AI apps ---------- */

.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.app-card {
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  background: rgba(246, 242, 236, 0.04); border: 1px solid rgba(246, 242, 236, 0.1);
  border-radius: 22px; overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s ease, background 0.5s ease;
}
.app-card:hover { transform: translateY(-8px); border-color: rgba(255, 176, 32, 0.5); background: rgba(246, 242, 236, 0.07); }
.app-media { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--ink-soft); }
.app-media .art { position: absolute; inset: -7%; transition: transform 0.9s var(--ease-out); }
.app-card:hover .app-media .art { transform: scale(1.07); }
.app-num {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 11px; border-radius: 100px;
  background: rgba(20, 20, 26, 0.72); backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--amber);
}
.app-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.app-body h3 { font-family: var(--head-font); font-weight: 700; font-size: 23px; margin: 0; letter-spacing: -0.015em; }
.app-body p { font-size: 15px; opacity: 0.6; margin: 0; line-height: 1.6; flex: 1; text-wrap: pretty; }
.app-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid rgba(246, 242, 236, 0.1);
}
.app-stack { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--amber); opacity: 0.85; }
.app-go {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255, 176, 32, 0.4); color: var(--amber);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: background 0.35s ease, color 0.35s ease;
}
.app-card:hover .app-go { background: var(--amber); color: var(--ink); }

/* ---------- Selected work ---------- */

.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 56px 32px; }
.work-card { display: block; text-decoration: none; color: inherit; }
.work-card--w4 { grid-column: span 4; }
.work-card--w2 { grid-column: span 2; }
.work-card--w3 { grid-column: span 3; }
.work-media {
  position: relative; width: 100%; border-radius: 20px; overflow: hidden;
  background: #E5E0D8; margin-bottom: 22px;
}
.work-media .art { position: absolute; inset: -8%; transition: transform 0.9s var(--ease-out); }
.work-card:hover .work-media .art { transform: scale(1.06); }
.work-info {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  border-top: 1px solid rgba(20, 20, 26, 0.14); padding-top: 16px;
}
.work-info h3 {
  font-family: var(--head-font); font-weight: 700;
  font-size: clamp(20px, 2vw, 27px); margin: 0; letter-spacing: -0.02em;
}
.work-info span { font-size: 14px; opacity: 0.5; text-align: right; flex-shrink: 0; }

/* Custom cursor bubble ("View") */
.cursor-bubble {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* ---------- Pricing ---------- */

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; border-radius: 24px; padding: 44px 34px;
  display: flex; flex-direction: column; gap: 22px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}
.plan--light { background: var(--cream); border: 1px solid rgba(20, 20, 26, 0.12); color: var(--ink); }
.plan--dark { background: var(--ink); color: var(--cream); transform: translateY(-14px); }
.plan:hover { box-shadow: 0 22px 44px rgba(20, 20, 26, 0.16); }
.plan--light:hover { transform: translateY(-10px); }
.plan--dark:hover { transform: translateY(-24px); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.plan-badge {
  padding: 5px 12px; border-radius: 100px; background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap;
}
.plan-price { display: flex; align-items: baseline; gap: 7px; margin-top: 16px; }
.plan-price strong { font-family: var(--head-font); font-size: 52px; font-weight: 700; letter-spacing: -0.03em; }
.plan-price span { font-size: 15px; opacity: 0.6; }
.plan-desc { font-size: 15px; line-height: 1.6; opacity: 0.75; margin: 0; }
.plan-features { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li { font-size: 14px; opacity: 0.85; display: flex; gap: 10px; align-items: flex-start; }
.plan-features li::before { content: '✓'; color: var(--terra); flex-shrink: 0; }
.plan--dark .plan-features li::before { color: var(--gold); }
.plan .btn { justify-content: center; }
.pricing-note { text-align: center; font-size: 14px; opacity: 0.5; margin: 40px 0 0; }

/* ---------- Final CTA ---------- */

.cta-section {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink); color: var(--cream);
  padding: 160px var(--pad-x) 150px;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 176, 32, 0.16), transparent 70%);
}
.cta-inner { position: relative; max-width: 1000px; margin: 0 auto; }
.cta-kicker {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 28px;
}
.cta-title {
  font-family: var(--head-font); font-weight: 700;
  font-size: clamp(42px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.035em;
  margin: 0 0 44px;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--cream); padding: 0 var(--pad-x) 40px; overflow: hidden; }
.footer-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  padding: 72px 0 64px; border-top: 1px solid rgba(246, 242, 236, 0.1);
}
.footer-brand svg { height: 24px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 16px; line-height: 1.65; opacity: 0.55; margin: 0; max-width: 320px; text-wrap: pretty; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.4; }
.footer-col a {
  color: var(--cream); opacity: 0.65; text-decoration: none; font-size: 15px;
  width: fit-content; position: relative;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}
.footer-col a:hover { opacity: 1; transform: translateX(6px); color: var(--amber); }
.footer-word { max-width: 1180px; margin: 0 auto; border-top: 1px solid rgba(246, 242, 236, 0.1); padding-top: 40px; }
.footer-word .mask-line { padding-bottom: 0; margin-bottom: 0; }
.footer-word-text {
  font-family: var(--head-font); font-weight: 800;
  font-size: clamp(48px, 11.4vw, 168px); letter-spacing: -0.05em; line-height: 0.85;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(246, 242, 236, 0.28);
  transition: color 0.6s ease, -webkit-text-stroke-color 0.6s ease;
  cursor: default; user-select: none;
}
.footer-word-text:hover { color: var(--amber); -webkit-text-stroke-color: var(--amber); }
.footer-word-logo { display: block; }
.footer-word-logo svg { display: block; width: 100%; height: auto; }
.footer-word-logo g { stroke: rgba(246, 242, 236, 0.28); stroke-width: 0.55; transition: stroke 0.6s ease, fill 0.6s ease; }
.footer-word-logo:hover g { stroke: var(--amber); fill: rgba(255, 176, 32, 0.10); }
.footer-bottom {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; padding-top: 32px;
}
.footer-bottom span { font-size: 14px; opacity: 0.42; }

/* ---------- Social rail ---------- */

.social-rail {
  position: fixed; left: 14px; bottom: 32px; z-index: 55;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  mix-blend-mode: difference;
}
.social-rail a { color: #fff; display: flex; transition: transform 0.35s var(--ease-out); }
.social-rail a:hover { transform: translateY(-4px); }

/* ---------- Generative art slots ---------- */

.art { position: relative; width: 100%; height: 100%; }
.art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Inner pages ---------- */

.page-hero { padding: 170px var(--pad-x) 80px; }
.page-hero--grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
}
.page-hero h1 {
  font-family: var(--head-font); font-weight: 700;
  font-size: clamp(38px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -0.02em;
  margin: 20px 0 28px;
}
.page-hero p { font-size: 18px; line-height: 1.7; opacity: 0.7; max-width: 520px; margin: 0; }
.page-kicker { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); font-weight: 600; }
.portrait-frame { width: 100%; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; background: #E5E0D8; }

.values-grid {
  max-width: 1180px; margin: 0 auto; padding: 60px 0 100px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px;
}
.value-card h3 { font-family: var(--head-font); font-size: 22px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.01em; }
.value-card p { font-size: 15px; line-height: 1.7; opacity: 0.65; margin: 0; }

.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: rgba(20, 20, 26, 0.12); border: 1px solid rgba(20, 20, 26, 0.12);
}
.step { background: var(--cream); padding: 32px 28px; transition: background 0.4s ease; }
.step:hover { background: #fff; }
.step-index { font-family: var(--head-font); font-size: 14px; font-weight: 700; }
.step h4 { font-family: var(--head-font); font-size: 19px; font-weight: 700; margin: 14px 0 8px; }
.step p { font-size: 14px; line-height: 1.6; opacity: 0.6; margin: 0; }

/* Case study */
.cs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; border-top: 1px solid rgba(20, 20, 26, 0.12); padding-top: 56px; }
.cs-meta-item span:first-child { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.5; margin-bottom: 8px; }
.cs-meta-item span:last-child { font-family: var(--head-font); font-size: 19px; font-weight: 600; }
.cs-cover { width: 100%; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #E5E0D8; }
.cs-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cs-gallery--trio { grid-template-columns: repeat(3, 1fr); }
.cs-gallery .cell { aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; background: #E5E0D8; }
.cs-gallery .cell--wide { grid-column: 1 / -1; aspect-ratio: 21/9; }
.cs-body { max-width: 900px; margin: 0 auto; }
.cs-body h2 { font-family: var(--head-font); font-weight: 700; font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -0.02em; margin: 0 0 24px; }
.cs-body p { font-size: 19px; line-height: 1.75; opacity: 0.7; margin: 0; }
.back-link { text-decoration: none; opacity: 0.55; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.back-link:hover { opacity: 1; }

/* Contact */
.contact-page { background: var(--ink); color: var(--cream); min-height: 100vh; display: flex; flex-direction: column; }
.contact-grid {
  flex: 1; width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 170px var(--pad-x) 120px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: start;
}
.contact-page .page-kicker { color: var(--mauve); }
.contact-links { display: flex; flex-direction: column; gap: 22px; margin-top: 48px; }
.contact-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid rgba(246, 242, 236, 0.15);
  text-decoration: none; color: var(--cream);
  transition: padding-left 0.45s var(--ease-out);
}
.contact-link:hover { padding-left: 12px; }
.contact-link:hover .contact-link-arrow { transform: translate(4px, -4px); color: var(--amber); }
.contact-link small { display: block; font-size: 13px; opacity: 0.5; margin-bottom: 4px; }
.contact-link strong { font-family: var(--head-font); font-size: 22px; font-weight: 600; }
.contact-link-arrow { font-size: 20px; transition: transform 0.4s var(--ease-out), color 0.3s ease; }
.contact-form {
  background: var(--cream); color: var(--ink); border-radius: 20px; padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 13px; font-weight: 600; opacity: 0.6; }
.form-field input, .form-field textarea {
  padding: 14px 16px; border: 1px solid rgba(20, 20, 26, 0.15); border-radius: 10px;
  font-family: var(--body-font); font-size: 15px; background: #fff; resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(185, 106, 60, 0.15);
}
.form-submit {
  margin-top: 8px; padding: 16px 24px; background: var(--ink); color: var(--cream);
  border: none; border-radius: 100px; font-size: 16px; font-weight: 600; cursor: pointer;
  font-family: var(--body-font);
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}
.form-submit:hover { background: var(--terra); }
.form-note { font-size: 14px; opacity: 0.55; margin: 0; text-align: center; }

/* ---------- Shape customizer (dev tuning tool) ---------- */

.shape-tuner { position: fixed; right: 18px; bottom: 18px; z-index: 90; font-family: var(--body-font); }
.shape-tuner-btn {
  padding: 9px 16px; border-radius: 100px; cursor: pointer;
  background: rgba(11, 11, 18, 0.6); color: var(--cream);
  border: 1px solid rgba(246, 242, 236, 0.25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.shape-tuner-btn:hover { background: rgba(11, 11, 18, 0.85); border-color: rgba(255, 176, 32, 0.6); }
.shape-tuner-panel {
  position: absolute; right: 0; bottom: 46px; width: 240px;
  background: rgba(11, 11, 18, 0.85); border: 1px solid rgba(246, 242, 236, 0.18);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 16px; padding: 16px; color: var(--cream);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.stp-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-bottom: 12px; }
.shape-tuner-panel label { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12px; margin-bottom: 12px; align-items: center; }
.shape-tuner-panel output { font-size: 11px; opacity: 0.6; font-variant-numeric: tabular-nums; }
.shape-tuner-panel input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--amber); height: 18px; cursor: pointer; }
.stp-actions { display: flex; gap: 8px; margin-top: 4px; }
.stp-copy, .stp-reset {
  flex: 1; padding: 8px 0; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid rgba(246, 242, 236, 0.25); background: transparent; color: var(--cream);
  transition: background 0.25s ease;
}
.stp-copy { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.stp-copy:hover { background: var(--gold); }
.stp-reset:hover { background: rgba(246, 242, 236, 0.1); }
.stp-note { margin-top: 8px; font-size: 11px; color: var(--amber); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .work-grid { gap: 40px 24px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 22px; }
  .split-head { grid-template-columns: 1fr; gap: 26px; margin-bottom: 56px; }
  .split-head p { justify-self: start; }
  .work-grid { grid-template-columns: 1fr; gap: 48px; }
  .work-card--w2, .work-card--w3, .work-card--w4 { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero--grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .cs-gallery, .cs-gallery--trio { grid-template-columns: 1fr; }
  .cap-row-head { grid-template-columns: 44px 1fr auto; gap: 16px; }
  .cap-row-body { grid-template-columns: 44px 1fr; }
  .social-rail { display: none; }
  .section { padding: 100px var(--pad-x); }
}
@media (max-width: 620px) {
  .main-nav a.nav-link { display: none; }
  .hero { min-height: 80vh; }
  .cap-preview { display: none; }
  /* Portrait hero: form sits low behind the copy, softly faded
     so the centered headline keeps full contrast. */
  #hero-canvas {
    opacity: 0.7;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, #000 40%, #000 75%, rgba(0,0,0,0.3) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, #000 40%, #000 75%, rgba(0,0,0,0.3) 100%);
  }
  .hero { padding: 110px var(--pad-x) 120px; }
  .hero-title { font-size: clamp(44px, 13vw, 60px); }
  /* No reel chip on phones — it only cluttered the hero and could
     overflow narrow screens. Desktop keeps it. */
  .reel-chip { display: none; }
  /* Compact mobile header */
  .site-header { padding-top: 16px; padding-bottom: 16px; }
  .brand svg { height: 20px; }
  .brand-name { font-size: 16px; white-space: nowrap; }
  .site-header.is-scrolled .brand svg { height: 17px; }
  .site-header.is-scrolled .brand-name { font-size: 14px; }
  .main-nav .btn { padding: 9px 16px !important; font-size: 13px !important; white-space: nowrap; }
  .hero { padding: 120px var(--pad-x) 56px; min-height: 92svh; }
  /* tighter, cleaner rhythm on small screens */
  .statement { font-size: clamp(26px, 7.4vw, 34px); }
  .stats-grid { gap: 24px 20px; }
  .plan { padding: 34px 26px; }
  .plan--dark { transform: none; }
  .plan--dark:hover { transform: translateY(-8px); }
  .footer-grid { padding: 52px 0 44px; }
  .cap-row-head { padding: 20px 4px; }
  .cap-row:hover .cap-row-head, .cap-row.is-open .cap-row-head { padding-left: 14px; }
  .cap-row-body-inner { padding-left: 14px; }
}

/* Case study — Aurora */
.cs-lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.6; opacity: 0.65; max-width: 640px; margin: 0; }
.cs-figure { margin: 0; }
.cs-caption { font-size: 13px; letter-spacing: 0.02em; opacity: 0.5; margin-top: 14px; line-height: 1.5; }
.cs-gallery figure.cs-figure { display: flex; flex-direction: column; }
.cs-gallery figure.cs-figure img { flex: 1; min-height: 0; border-radius: 16px; }
.cs-fictional { display: inline-block; font-style: normal; font-family: var(--body-font); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); border: 1px solid currentColor; border-radius: 99px; padding: 2px 9px; margin-left: 8px; vertical-align: middle; opacity: 0.8; }
.cs-note { background: rgba(20,20,26,0.045); border: 1px dashed rgba(20,20,26,0.25); border-radius: 16px; display: flex; align-items: center; justify-content: center; padding: 32px; }
.cs-note-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); display: block; margin-bottom: 12px; }
.cs-note p { font-size: 15px; line-height: 1.7; opacity: 0.65; margin: 0; }
.cs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.cs-stat strong { font-family: var(--head-font); font-weight: 700; font-size: clamp(36px, 4.5vw, 56px); letter-spacing: -0.02em; display: block; line-height: 1; }
.cs-stat span { font-size: 14px; opacity: 0.55; display: block; margin-top: 8px; }

/* Price cards and price table (2026-10-20) */
.price-cards { align-items: stretch; }
.price-card { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.price-card .price-card-price { margin-top: auto; padding-top: 14px; opacity: 1; }
.price-card .price-card-time { margin-top: 4px; }
.price-note { width: 100%; margin-top: 24px; }
@media (max-width: 640px) {
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; box-sizing: border-box; }
  .price-table thead { display: none; }
  .price-table tr { padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.12); }
  .price-table td { padding: 0 !important; white-space: normal !important; }
  .price-table td:nth-child(2) { margin-top: 10px; }
  .price-table td:nth-child(2)::before { content: "Price: "; opacity: 0.6; font-weight: 400; }
  .price-table td:nth-child(3)::before { content: "Delivery: "; }
  .price-table td:nth-child(3) { margin-top: 2px; }
}
