/* ============================================================
   FLOWSTATE — an open canvas for your AI work
   design language: paper gray · ink outlines · cobalt · dot grid
   ============================================================ */

:root {
  --paper: #cfcec9;
  --paper-deep: #c4c3be;
  --card: #f4f3ee;
  --ink: #101010;
  --wire: #232323;
  --skeleton: #a3a29d;
  --blue: #0f4fc7;
  --blue-deep: #0c3f9e;
  --sticky: #ffd84d;
  --font-display: "Figtree", sans-serif;
  --font-serif: "Figtree", sans-serif;
  --font-mono: "Figtree", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 380;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: var(--card); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.aside {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  color: var(--blue);
  font-optical-sizing: auto;
}

/* emphasis is shown with the cobalt accent, never italics */
em { font-family: inherit; font-style: normal; font-weight: 600; color: var(--blue); }

/* ---------- grain ---------- */
/* grain overlay disabled site-wide (was drifting noise on top of everything, incl. video) */
.grain {
  display: none !important;
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.30;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.36'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(2) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(1.2%, -0.8%); }
  100% { transform: translate(-0.6%, 1%); }
}

/* ---------- dot grid ---------- */
.dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(16,16,16,0.22) 1.15px, transparent 1.15px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* ---------- cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 3000; pointer-events: none; mix-blend-mode: normal; }
.cursor-dot {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); transform: translate(-50%, -50%);
}
.cursor-ring {
  position: absolute; width: 30px; height: 30px; border-radius: 50%;
  border: 1.4px solid rgba(16,16,16,0.65); transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s;
}
.cursor.is-hover .cursor-ring { width: 46px; height: 46px; border-color: var(--blue); }
.cursor.is-grab .cursor-ring { width: 40px; height: 40px; border-style: dashed; border-color: var(--blue); }
/* when the custom cursor is active, hide the native OS cursor everywhere */
.cursor-none, .cursor-none * { cursor: none !important; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1.4rem;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1.4px solid rgba(16,16,16,0.12);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border-color: rgba(16,16,16,0.16);
  box-shadow: 0 8px 24px rgba(16,16,16,0.1);
}
.nav-logo {
  font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 0.6rem;
}
.nav-logo-dot { width: 32px; height: 32px; border-radius: 50%; display: inline-block; }

.nav-right { display: flex; align-items: center; gap: 0.7rem; }

/* nav links */
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link {
  position: relative;
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.005em;
  color: rgba(16,16,16,0.72);
  padding: 0.15rem 0.1rem;
  transition: color 0.22s var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -1px;
  height: 1.6px; background: var(--blue);
  transition: right 0.28s var(--ease-out);
}
.nav-link:hover { color: var(--blue); }
.nav-link:hover::after { right: 0; }
.nav-link[aria-current="page"] { color: var(--blue); }
.nav-link[aria-current="page"]::after { right: 0; }

/* ---------- section scroll arrows ---------- */
.scroll-nav {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 950;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.scroll-btn {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1.8px solid var(--ink);
  background: var(--card); color: var(--ink);
  display: grid; place-items: center;
  transition: transform 0.22s var(--ease-out),
              background 0.22s, color 0.22s, opacity 0.3s;
}
.scroll-btn svg { width: 28px; height: 28px; display: block; }
.scroll-btn:hover {
  transform: translateY(-2px); background: var(--blue); color: #f2f5ff;
  border-color: var(--blue-deep);
}
.scroll-btn:active { transform: translateY(0); }
.scroll-btn:disabled { opacity: 0.3; pointer-events: none; }
@media (pointer: coarse) { .scroll-nav { right: 0.9rem; bottom: 0.9rem; } }

/* ---------- buttons / pills / chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.72rem 1.35rem; border-radius: 999px;
  font-weight: 540; font-size: 0.92rem; letter-spacing: 0.005em;
  border: 1.6px solid var(--ink);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s, color 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(16,16,16,0.85); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 0 rgba(16,16,16,0.85); }
.btn-blue { background: var(--blue); border-color: var(--blue-deep); color: #f2f5ff; }
.btn-blue:hover { box-shadow: 0 6px 0 var(--blue-deep); }
.btn-blue:active { box-shadow: 0 2px 0 var(--blue-deep); }
.btn-ink { background: var(--ink); color: var(--card); }
.btn-ghost { background: transparent; }
.btn-big { font-size: 1.1rem; padding: 0.95rem 1.9rem; }
.btn-arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
.btn-ghost:hover .btn-arrow { transform: translateY(3px); }

.pill {
  display: inline-block;
  font-family: var(--font-display); font-weight: 480; font-size: 0.88rem;
  color: var(--blue);
  border: 1.7px solid var(--blue);
  padding: 0.42rem 1.05rem; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 86%, white);
  white-space: nowrap;
}

.chip {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.03em;
  border: 1.3px solid rgba(16,16,16,0.55);
  color: rgba(16,16,16,0.78);
  padding: 0.22rem 0.6rem; border-radius: 999px;
  background: rgba(255,255,255,0.35);
}
.chip-blue { border-color: var(--blue); color: var(--blue); background: rgba(15,79,199,0.07); }

.eyebrow { color: var(--blue); margin-bottom: 1.1rem; }

/* ============================================================
   SCENE 01 — HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
}
.hero-grid { opacity: 0.75; }

.hero-center { position: relative; z-index: 5; text-align: center; padding: 0 1.4rem; width: min(900px, 92vw); }

.hero-title {
  font-size: clamp(2.6rem, 7.4vw, 5.9rem);
  line-height: 0.98;
  font-weight: 640;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  margin: 1.2rem 0 1.6rem;
}
.scribble-wrap { position: relative; display: inline-block; color: var(--blue); }
.scribble {
  position: absolute; left: -6%; bottom: -18%; width: 112%; height: auto;
  overflow: visible; pointer-events: none;
}
.scribble path { stroke: var(--blue); opacity: 0.85; }

.hero-sub {
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.5; font-weight: 400;
  max-width: 560px; margin: 0 auto 2.1rem;
  color: rgba(16,16,16,0.82);
}
.hero-hint {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  color: rgba(16,16,16,0.5); z-index: 5;
}

.hero-stage { position: absolute; inset: 0; z-index: 3; }

/* ---------- artifact cards ---------- */
.art-card {
  position: absolute;
  left: var(--x); top: var(--y);
  rotate: var(--r, 0deg);
  width: 240px;
  background: var(--card);
  border: 1.6px solid var(--wire);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(16,16,16,0.14), 0 2px 0 rgba(16,16,16,0.5);
  overflow: hidden;
  touch-action: none;
  will-change: transform;
}
.drag-card { cursor: grab; }
.drag-card:active { cursor: grabbing; }
.art-card.is-dragging { box-shadow: 0 26px 48px rgba(16,16,16,0.28), 0 2px 0 rgba(16,16,16,0.5); z-index: 60 !important; }

.art-head {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem; font-weight: 560;
  border-bottom: 1.4px solid rgba(16,16,16,0.55);
  background: rgba(255,255,255,0.5);
  user-select: none;
}
.art-head.grab { cursor: grab; }
.art-head.grab:active { cursor: grabbing; }
.art-icon { width: 15px; height: 15px; display: inline-flex; color: var(--ink); flex: none; }
.art-icon svg { width: 100%; height: 100%; }
.art-kind {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 0.54rem; font-weight: 400;
  letter-spacing: 0.04em; color: var(--blue); text-transform: lowercase;
  white-space: nowrap;
}

.mini-table { width: 100%; border-collapse: collapse; font-size: 0.68rem; }
.mini-table th {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.54rem;
  text-align: left; letter-spacing: 0.04em; color: rgba(16,16,16,0.55);
  padding: 0.4rem 0.55rem; border-bottom: 1px solid rgba(16,16,16,0.25);
}
.mini-table td { padding: 0.38rem 0.55rem; border-bottom: 1px solid rgba(16,16,16,0.12); }
.mini-table tr:last-child td { border-bottom: none; }

.mini-chart {
  display: flex; align-items: flex-end; gap: 7px;
  height: 92px; padding: 0.8rem 0.8rem 0.7rem;
}
.mini-chart .bar {
  flex: 1; height: var(--h);
  background: rgba(16,16,16,0.24);
  border: 1.3px solid rgba(16,16,16,0.6);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s var(--ease-out);
}
.mini-chart .bar-hot { background: var(--blue); border-color: var(--blue-deep); }

.mini-todo { list-style: none; padding: 0.5rem 0.7rem 0.65rem; font-size: 0.74rem; }
.mini-todo li { display: flex; align-items: center; gap: 0.5rem; padding: 0.24rem 0; }
.mini-todo li::before {
  content: ""; width: 13px; height: 13px; flex: none;
  border: 1.4px solid var(--ink); border-radius: 4px; background: transparent;
}
.mini-todo li.done { color: rgba(16,16,16,0.45); text-decoration: line-through; }
.mini-todo li.done::before { background: var(--blue); border-color: var(--blue-deep); }

.card-sticky {
  width: 172px; background: var(--sticky);
  border: none; border-radius: 4px;
  box-shadow: 0 8px 20px rgba(16,16,16,0.2);
  padding: 0.95rem 1rem 1.1rem;
  font-family: var(--font-serif); font-style: normal; font-size: 0.95rem; line-height: 1.35;
}
.card-sticky::before {
  content: ""; position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 58px; height: 18px; background: rgba(255,255,255,0.55);
  border: 1px solid rgba(16,16,16,0.08);
}
.arrow-ink { font-style: normal; }

.mini-map { position: relative; height: 110px; background: #dcdad2; overflow: hidden; }
.mini-map-roads {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 46%, rgba(16,16,16,0.16) 46%, rgba(16,16,16,0.16) 48%, transparent 48%),
    linear-gradient(0deg, transparent 30%, rgba(16,16,16,0.13) 30%, rgba(16,16,16,0.13) 32%, transparent 32%),
    linear-gradient(38deg, transparent 60%, rgba(15,79,199,0.35) 60%, rgba(15,79,199,0.35) 63%, transparent 63%),
    linear-gradient(-25deg, transparent 20%, rgba(16,16,16,0.1) 20%, rgba(16,16,16,0.1) 21.5%, transparent 21.5%);
}
.mini-map-pin {
  position: absolute; left: 52%; top: 38%;
  width: 14px; height: 14px; border-radius: 50% 50% 50% 0;
  background: var(--blue); transform: rotate(-45deg);
  box-shadow: 0 3px 6px rgba(16,16,16,0.3);
}
.mini-map-pin::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--card);
}

/* ============================================================
   SCENE 02 — PROLOGUE
   ============================================================ */
.prologue { position: relative; }
.prologue-pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 0 1.4rem;
  position: relative; overflow: hidden;
}
.prologue-kicker { color: rgba(16,16,16,0.55); margin-bottom: 2rem; }
.prologue-year {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--blue); font-weight: 600; letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}
.prologue-line {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 620; letter-spacing: -0.03em; line-height: 1.04;
  max-width: 900px;
}
.prologue-pills {
  display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center;
  max-width: 720px; margin-top: 2.4rem;
}
.prologue-pills .pill { opacity: 0; transform: translateY(24px) scale(0.9); }
.prologue-aside {
  margin-top: 2.2rem; font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(16,16,16,0.66); opacity: 0;
}

/* ============================================================
   SCENE 03 — THE LINE
   ============================================================ */
/* ============================================================
   SCENE 05 — CHATFLOW (one chat, everything buried)
   ============================================================ */
.chatflow { position: relative; }
.chatflow-pin {
  height: 100svh; overflow: hidden; position: relative;
  display: grid; place-items: center;
}

/* the live chat window */
.cf-window {
  position: relative; z-index: 5;
  width: min(560px, 92vw);
  border: 1.6px solid var(--wire); border-radius: 20px;
  background: color-mix(in srgb, var(--paper) 92%, white);
  box-shadow: 0 22px 60px rgba(16,16,16,0.12);
  overflow: hidden; will-change: transform, opacity;
}
.cf-bar {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  color: rgba(16,16,16,0.6);
  border-bottom: 1px dashed rgba(16,16,16,0.3);
}
.cf-dots { display: inline-flex; gap: 5px; }
.cf-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(16,16,16,0.24); }
.cf-thread { height: min(58svh, 460px); overflow: hidden; position: relative; }
.cf-viewport {
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: 1.1rem 1.05rem 1.4rem;
  will-change: transform;
}

/* chat items */
.cf-item { opacity: 0; transform: translateY(16px); will-change: transform, opacity; }
.cf-user {
  align-self: flex-end; max-width: 84%;
  background: var(--ink); color: var(--card);
  padding: 0.7rem 0.95rem; border-radius: 16px 16px 4px 16px;
  font-size: 0.95rem; line-height: 1.4;
}
.cf-drop {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.03em;
  color: var(--blue);
  border: 1.4px dashed var(--blue); border-radius: 10px;
  background: rgba(15,79,199,0.06);
  padding: 0.42rem 0.7rem;
}
.cf-drop-icon svg { width: 15px; height: 15px; display: block; }
.cf-ai {
  align-self: flex-start; width: min(88%, 340px);
  border: 1.5px solid var(--wire); border-radius: 4px 16px 16px 16px;
  background: var(--card); overflow: hidden;
}
.cf-art-head {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 0.7rem; font-size: 0.58rem;
  color: rgba(16,16,16,0.72);
  border-bottom: 1px solid rgba(16,16,16,0.12);
}
.cf-art-head svg { width: 15px; height: 15px; flex: none; }
.cf-art .mini-chart { padding: 0.75rem 0.85rem; }
.cf-art .mini-doc { padding: 0.7rem 0.85rem 0.85rem; }

/* mid-scroll statement overlay — the payoff line */
.cf-statement {
  position: absolute; z-index: 12; inset: 0;
  display: grid; place-items: center; align-content: center;
  text-align: center; padding: 0 1.4rem;
  opacity: 0; pointer-events: none;
}
.cf-statement-line {
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  font-weight: 640; letter-spacing: -0.03em; line-height: 1.05;
}
.cf-statement em { color: var(--blue); }
.cf-statement-sub {
  margin-top: 1.4rem; color: rgba(16,16,16,0.6);
  font-size: 0.78rem;
  opacity: 0;
}

/* the swarm — chat windows that erupt out of the first one */
.cf-swarm {
  position: absolute; inset: 0; z-index: 4;
  pointer-events: none;
  will-change: transform, opacity, filter;
}
.cf-pos {
  position: absolute; left: 50%; top: 50%;
  will-change: transform, opacity;
}
.cf-mini {
  border: 1.5px solid rgba(35,35,35,0.45); border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 93%, white);
  box-shadow: 0 16px 40px rgba(16,16,16,0.14);
  overflow: hidden;
  will-change: transform;
}
.cfm-bar {
  display: flex; justify-content: space-between; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.04em;
  color: rgba(16,16,16,0.6);
  padding: 0.55rem 0.8rem;
  border-bottom: 1px dashed rgba(16,16,16,0.3);
  white-space: nowrap;
}
.cfm-bar b { color: var(--blue); font-weight: 500; }
.cfm-body { padding: 0.75rem 0.8rem 0.6rem; }
.cfm-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 11px; }
.cfm-line { height: 7px; border-radius: 99px; background: var(--skeleton); width: var(--w, 70%); opacity: 0.8; }
.cfm-line.is-right { align-self: flex-end; background: rgba(16,16,16,0.42); }
.cfm-art {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.03em;
  color: var(--ink);
  border: 1.3px solid var(--wire); border-radius: 8px;
  background: var(--card);
  padding: 0.3rem 0.55rem; margin: 0 0 11px;
}
.cfm-art svg { width: 12px; height: 12px; flex: none; }

.chatflow-hint {
  position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%);
  color: rgba(16,16,16,0.5);
  z-index: 6;
}

/* reduced-motion: lay the scene out as a static vertical stack */
.cf-static .chatflow-pin { height: auto; min-height: 100svh; overflow: visible; padding: 6rem 1.4rem; }
.cf-static .cf-thread { height: auto; }
.cf-static .cf-swarm, .cf-static .chatflow-hint { display: none; }
.cf-static .cf-statement {
  position: static; opacity: 1; margin-top: 2.4rem; inset: auto;
}
.cf-static .cf-statement-sub { opacity: 1; }

/* ============================================================
   SCENE 05 — REVEAL
   ============================================================ */
.reveal { position: relative; }
.reveal-pin {
  height: 100svh; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.reveal-grid { opacity: 0; transform: scale(1.14); }
.reveal-ask {
  position: absolute; z-index: 6; text-align: center;
  font-size: clamp(1.9rem, 4.8vw, 3.6rem);
  font-weight: 620; letter-spacing: -0.03em; line-height: 1.08;
  padding: 0 1.4rem;
}
.reveal-ask em { color: var(--blue); }
.reveal-brand { position: relative; z-index: 5; text-align: center; opacity: 0; }
.reveal-wordmark {
  font-size: clamp(3.4rem, 11vw, 9rem);
  font-weight: 660; letter-spacing: -0.045em; line-height: 1;
  font-variation-settings: "opsz" 96;
}
.reveal-tag {
  margin-top: 1rem; font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(16,16,16,0.75);
}
.reveal-pills .pill {
  position: absolute; left: var(--px); top: var(--py);
  rotate: var(--pr, 0deg);
  opacity: 0; transform: scale(0.7);
}
.reveal-pills { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

/* ============================================================
   SCENE 06 — PLAYGROUND
   ============================================================ */
.playground { position: relative; padding: 9rem 0 6rem; }
.playground-head { text-align: center; padding: 0 1.4rem; margin-bottom: 2.6rem; }
.playground-head h2 {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  font-weight: 630; letter-spacing: -0.032em; line-height: 1.02;
}
.playground-head h2 em { color: var(--blue); }
.playground-hint { margin-top: 1.3rem; color: rgba(16,16,16,0.55); }

.canvas-frame {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: min(88svh, 900px);
  min-height: 560px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--paper) 94%, white);
}
.canvas-grid { opacity: 0.85; }
.canvas-plane { position: absolute; inset: 0; }
.canvas-frame-label {
  position: absolute; left: 1rem; bottom: 0.85rem;
  color: rgba(16,16,16,0.5);
  background: rgba(244,243,238,0.8);
  border: 1px solid rgba(16,16,16,0.25);
  border-radius: 999px; padding: 0.28rem 0.7rem;
  pointer-events: none;
}

.play-card { width: 300px; }
.pc-map iframe { width: 100%; height: 210px; border: 0; display: block; filter: saturate(0.82) contrast(1.02); }
.pc-video { width: 340px; }
.yt-lite { position: relative; aspect-ratio: 16/9; background: #111; overflow: hidden; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; inset: 0; margin: auto;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--blue); border: 2px solid rgba(255,255,255,0.85);
  display: grid; place-items: center;
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.yt-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.yt-play:hover { transform: scale(1.1); background: var(--blue-deep); }

.pc-tweet, .pc-tweet2 { width: 320px; }
.tweet-body { padding: 0.8rem 0.9rem 0.9rem; }
.tweet-who { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.tweet-who img { width: 36px; height: 36px; border-radius: 50%; border: 1.4px solid rgba(16,16,16,0.4); }
.tweet-who strong { display: block; font-size: 0.85rem; font-weight: 600; }
.tweet-who .mono { color: rgba(16,16,16,0.5); font-size: 0.62rem; }
.tweet-body p { font-size: 0.86rem; line-height: 1.45; }
.tweet-meta { display: flex; gap: 1.1rem; margin-top: 0.7rem; color: rgba(16,16,16,0.5); font-size: 0.6rem; }

.big-chart { height: 120px; }

.pc-sticky { width: 190px; }

/* source tiles — recognizable brand boxes you can drag onto the canvas */
.src-card {
  width: auto;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.95rem 0.6rem 0.7rem;
  border-radius: 13px;
  cursor: grab;
}
.src-card:active { cursor: grabbing; }
.src-logo { width: 26px; height: 26px; flex: none; display: inline-flex; }
.src-logo svg { width: 100%; height: 100%; display: block; }
.src-label { font-size: 0.9rem; font-weight: 540; letter-spacing: -0.005em; white-space: nowrap; }

/* ============================================================
   FINALE — THE COLLABORATIVE CANVAS
   ============================================================ */
.collab {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
}
.collab-grid { opacity: 0.85; }
.collab-stage { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.collab-item {
  position: absolute; left: var(--x); top: var(--y);
  rotate: var(--r, 0deg);
  will-change: transform, opacity;
}
.collab-center { position: relative; z-index: 5; text-align: center; padding: 5rem 1.4rem; }
.collab-title {
  margin: 1.1rem 0 2.3rem;
  font-size: clamp(2.5rem, 6.8vw, 5.4rem);
  font-weight: 650; letter-spacing: -0.04em; line-height: 1.0;
}
.collab-title em { color: var(--blue); }

/* crew cursors */
.collab-cursor {
  position: absolute; left: -10%; top: -10%; z-index: 8;
  opacity: 0;
  transform-origin: 3px 3px;
  filter: drop-shadow(0 3px 7px rgba(16,16,16,0.28));
}
.collab-cursor svg {
  width: 21px; height: 21px; display: block;
  fill: var(--c); stroke: #fff; stroke-width: 1.1;
}
.collab-name {
  position: absolute; left: 15px; top: 19px;
  background: var(--c); color: #fff;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.05em;
  padding: 0.16rem 0.52rem; border-radius: 999px;
  white-space: nowrap;
}

/* dropped items */
.collab-q {
  width: 232px; background: var(--card);
  border: 1.7px solid var(--blue);
  border-radius: 16px; border-bottom-left-radius: 5px;
  padding: 0.65rem 0.85rem 0.75rem;
  box-shadow: 0 10px 26px rgba(15,79,199,0.18), 0 2px 0 rgba(15,79,199,0.55);
}
.collab-q .q-tag { display: block; color: var(--blue); font-size: 0.56rem; margin-bottom: 0.32rem; }
.collab-q p { font-size: 0.88rem; line-height: 1.42; }
.collab-video { width: 224px; }
.collab-video .yt-lite { pointer-events: none; }
.yt-play-mini { width: 42px; height: 42px; }
.yt-play-mini svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.collab-tweet { width: 250px; }
.collab-chart { width: 210px; }
.collab-todo { width: 200px; }
.collab-sticky.card-sticky { width: 156px; font-size: 0.88rem; }
.footer {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.7rem;
  color: rgba(16,16,16,0.62);
  border-top: 1px dashed rgba(16,16,16,0.3);
  background: color-mix(in srgb, var(--card) 60%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.footer .mono { font-size: 0.82rem; }
.footer-left { justify-self: start; }
.footer-center { justify-self: center; display: flex; align-items: center; gap: 1.6rem; }
.footer-right { justify-self: end; }
.footer-link {
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.005em;
  color: rgba(16,16,16,0.72);
  transition: color 0.2s var(--ease-out);
}
.footer-link:hover { color: var(--blue); }
.footer-right {
  font-family: var(--font-display); font-size: 0.86rem; font-weight: 500;
  color: rgba(16,16,16,0.72);
  transition: color 0.2s var(--ease-out);
}
.footer-right:hover { color: var(--blue); }

/* ============================================================
   SCENE 08 — THE JOURNAL (blog)
   ============================================================ */
.blog {
  position: relative;
  padding: 7rem 1.4rem 6rem;
  max-width: 1180px; margin: 0 auto;
}
.blog-grid { opacity: 0.4; }
.blog .playground-head { position: relative; z-index: 2; }

.blog-rail {
  position: relative; z-index: 2;
  margin-top: 3.2rem;
  display: flex; flex-direction: column;
  gap: clamp(1.2rem, 2.6vw, 2rem);
}

/* shared card softening — trade the hard sticker shadow for a gentler lift */
.blog-featured, .blog-post, .blog-sub {
  position: static; width: 100%; rotate: 0deg;
  border-radius: 20px;
  border-color: rgba(35,35,35,0.14);
  box-shadow: 0 1px 2px rgba(16,16,16,0.05), 0 14px 34px rgba(16,16,16,0.10);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

/* featured post — horizontal editorial lead */
.blog-featured {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  overflow: hidden;
}
.blog-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 4px rgba(16,16,16,0.06), 0 26px 56px rgba(16,16,16,0.16);
}
.blog-cover {
  position: relative; overflow: hidden; min-height: 100%;
  background: var(--paper-deep); border-right: 1.6px solid rgba(35,35,35,0.14);
}
.blog-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.blog-featured:hover .blog-cover img,
.blog-post:hover .blog-cover img { transform: scale(1.05); }
.blog-badge {
  position: absolute; left: 0.9rem; top: 0.9rem;
  background: var(--blue); color: #f2f5ff;
  padding: 0.32rem 0.7rem; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(15,79,199,0.3);
}
.blog-source {
  position: absolute; right: 0.9rem; top: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(16,16,16,0.7); color: #f4f3ee;
  padding: 0.3rem 0.6rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.blog-source svg { width: 12px; height: 12px; }

.blog-body { padding: clamp(1.5rem, 2.6vw, 2.1rem) clamp(1.6rem, 2.6vw, 2.1rem); display: flex; flex-direction: column; gap: 0.85rem; }
.blog-meta { color: rgba(16,16,16,0.55); display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.blog-meta .dot-sep { color: rgba(16,16,16,0.3); }
.blog-title {
  font-family: var(--font-display); font-weight: 620; letter-spacing: -0.022em;
  line-height: 1.08; font-size: clamp(1.5rem, 2.7vw, 2.15rem);
}
.blog-title-sm { font-size: clamp(1.32rem, 2.2vw, 1.7rem); }
.blog-excerpt { font-size: 1.0rem; line-height: 1.58; color: rgba(16,16,16,0.75); max-width: 56ch; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.blog-read {
  margin-top: auto; padding-top: 0.6rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--blue); font-weight: 560; font-size: 0.98rem;
}
.blog-read-arrow { transition: transform 0.3s var(--ease-out); }
.blog-featured:hover .blog-read-arrow,
.blog-post:hover .blog-read-arrow,
.blog-sub:hover .blog-read-arrow { transform: translateX(5px); }

/* second row: post 02 + newsletter */
.blog-side {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.2rem, 2.6vw, 2rem); align-items: stretch;
}

/* post 02 — cover on top, body below */
.blog-post {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
}
.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 4px rgba(16,16,16,0.06), 0 26px 56px rgba(16,16,16,0.16);
}
.blog-cover-sm {
  aspect-ratio: 16 / 9; min-height: 0;
  border-right: none; border-bottom: 1.6px solid rgba(35,35,35,0.14);
}

/* newsletter card */
.blog-sub {
  background: var(--blue); color: #eef3ff;
  padding: clamp(1.5rem, 2.4vw, 1.9rem) clamp(1.4rem, 2.2vw, 1.7rem);
  display: flex; flex-direction: column; gap: 0.75rem;
  border-color: transparent;
}
.blog-sub:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 4px rgba(15,79,199,0.2), 0 26px 52px rgba(15,79,199,0.3);
}
.blog-mini-tag { color: #bcd0ff; }
.blog-mini-title { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; line-height: 1.12; letter-spacing: -0.015em; }
.blog-mini-sub { font-size: 0.88rem; line-height: 1.5; color: rgba(238,243,255,0.82); }
.blog-sub-cta {
  margin-top: auto; padding-top: 0.4rem;
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 560;
}
.blog-sub-note {
  margin-top: 0.85rem; padding-top: 0.85rem;
  border-top: 1px solid rgba(238,243,255,0.22);
  color: rgba(238,243,255,0.62); font-size: 0.64rem; letter-spacing: 0.03em;
}

/* standalone blog page */
.blog-page { min-height: 100vh; position: relative; }
.blog-hero { position: relative; z-index: 2; text-align: center; padding: 8.5rem 1.4rem 0; }
.blog-hero .eyebrow { margin-bottom: 0.8rem; }
.blog-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.035em; line-height: 1.0;
}
.blog-hero p {
  max-width: 560px; margin: 1.15rem auto 0;
  color: rgba(16,16,16,0.72); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.5;
}
.blog-back {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1.5rem;
  color: var(--blue); font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: lowercase;
}
.blog-back svg { width: 15px; height: 15px; }
.blog-back:hover { text-decoration: underline; }
.blog-page .blog { padding-top: 3.2rem; }

@media (max-width: 860px) {
  .blog-featured { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .blog-featured .blog-cover { aspect-ratio: 16 / 9; min-height: 0; border-right: none; border-bottom: 1.6px solid rgba(35,35,35,0.14); }
  .blog-side { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .blog { padding-top: 4.5rem; }
  .blog-page .blog { padding-top: 1.5rem; }
  .blog-hero { padding-top: 6.5rem; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .art-card { width: 200px; }
  .card-table .mini-table td:nth-child(2), .card-table .mini-table th:nth-child(2) { display: none; }
  .hero .card-chart, .hero .card-map-mini, .hero .card-todo { display: none; }
  .hero .card-table { left: 3%; top: 6.5%; width: 168px; font-size: 0.9em; }
  .hero .card-sticky { left: 58%; top: 8%; width: 134px; font-size: 0.82rem; padding: 0.75rem 0.8rem 0.9rem; }
  .hero-title { line-height: 1.02; }
  .nav { padding: 0.9rem 0.7rem; }
  .nav-cta { padding: 0.5rem 0.75rem; font-size: 0.72rem; white-space: nowrap; }
  .nav-right { gap: 0.4rem; }
  .nav-logo { font-size: 1.4rem; }
  .nav-links { gap: 0.95rem; }
  .nav-link { font-size: 0.84rem; letter-spacing: 0.005em; }
  .scroll-btn { width: 52px; height: 52px; }
  .scroll-btn svg { width: 25px; height: 25px; }
  .cf-thread { height: 52svh; }
  .cf-statement-line { font-size: clamp(1.7rem, 8vw, 2.4rem); }

  /* reveal pills: fewer + smaller, keep clear of the wordmark */
  .pill { font-size: 0.76rem; padding: 0.34rem 0.85rem; }
  .reveal-pills .pill:nth-child(2n) { display: none; }
  .reveal-pills .pill:nth-child(3) { left: 6%; top: 27%; }

  /* playground: cascade cards down a taller canvas */
  .play-card, .pc-video, .pc-tweet, .pc-tweet2, .pc-doc, .pc-sheet, .pc-code { width: 250px; }
  .pc-map iframe { height: 150px; }
  .canvas-frame { height: 2300px; min-height: 0; }
  /* big representation cards down the left */
  .pc-map    { left: 3%; top: 1%; }
  .pc-doc    { left: 6%; top: 9%; }
  .pc-video  { left: 4%; top: 17%; }
  .pc-tweet  { left: 6%; top: 27%; }
  .pc-sheet  { left: 4%; top: 37%; }
  .pc-code   { left: 6%; top: 46%; }
  .pc-tweet2 { left: 5%; top: 56%; }
  .pc-sticky { left: 8%; top: 66%; }
  /* source tiles interspersed down the right */
  .src-docs   { left: 54%; top: 3%; }
  .src-sheets { left: 52%; top: 9%; }
  .src-slides { left: 55%; top: 15%; }
  .src-x      { left: 52%; top: 21%; }
  .src-web    { left: 54%; top: 31%; }
  .src-gh     { left: 52%; top: 40%; }
  .src-notion { left: 55%; top: 49%; }
  .src-li     { left: 55%; top: 58%; }
  .src-pdf    { left: 45%; top: 70%; }
  .src-figma  { left: 10%; top: 75%; }

  .playground { padding-top: 6rem; }

  /* collab finale: shrink the dropped items so the canvas stays busy but readable */
  .collab-item { scale: 0.62; transform-origin: left top; }
  .collab-title { line-height: 1.05; }
  #ciTweet { --x: 52%; }
  #ciVideo { --x: 56%; }
  #ciSticky { --x: 70%; }
  .footer {
    grid-template-columns: 1fr; justify-items: center; text-align: center;
    gap: 0.45rem; padding: 0.95rem 1rem;
  }
  .footer-left, .footer-center, .footer-right { justify-self: center; }
  .footer-center { gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  html { scroll-behavior: auto; overflow-x: clip; }
}

/* ============================================================
   NEW CANVAS CARDS — Google Docs · Sheets · Code
   ============================================================ */
.art-icon.brand { width: 17px; height: 17px; }

.mini-doc { padding: 0.75rem 0.85rem 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; }
.doc-line { height: 7px; border-radius: 99px; background: var(--skeleton); width: var(--w, 100%); }
.doc-line.doc-h { height: 9px; width: 52%; background: rgba(15,79,199,0.5); }
.doc-line.doc-h2 { margin-top: 0.4rem; }

.mini-sheet { padding: 0.55rem 0.7rem 0.75rem; font-family: var(--font-mono); font-size: 0.6rem; }
.sheet-row { display: grid; grid-template-columns: 1.4fr 1fr 0.7fr 0.9fr; }
.sheet-row > span {
  padding: 0.3rem 0.42rem; text-align: right; color: rgba(16,16,16,0.8);
  border-bottom: 1px solid rgba(16,16,16,0.12);
  border-right: 1px solid rgba(16,16,16,0.1);
}
.sheet-row > span:last-child { border-right: none; }
.sheet-row:last-child > span { border-bottom: none; }
.sheet-row > span:first-child { text-align: left; }
.sheet-row.sheet-head > span {
  color: rgba(16,16,16,0.42); text-align: center;
  background: rgba(16,16,16,0.05);
}
.sheet-v { color: var(--ink); }
.sheet-hot { color: var(--blue); font-weight: 600; }

.mini-code {
  font-family: var(--font-mono); font-size: 0.62rem; line-height: 1.8;
  background: #16181d; color: #c9cdd6;
  padding: 0.55rem 0.7rem 0.7rem;
}
.mini-code .code-line { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.mini-code .ln { display: inline-block; width: 1.1rem; color: #4b515e; }
.mini-code .tok-kw { color: #c07cf0; }
.mini-code .tok-fn { color: #6fb3ff; }
.mini-code .tok-num { color: #f0a35e; }
.mini-code .tok-com { color: #626b7a; font-style: normal; }

/* ============================================================
   SCENE 03 — ARTIFACTS GRID
   ============================================================ */
.artifacts { position: relative; padding: 7rem 1.4rem 5rem; max-width: 1180px; margin: 0 auto; }
.artifacts .playground-head { margin-bottom: 0; }
.artifact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.4vw, 2rem);
  margin-top: 3.2rem;
}
.af-card { position: static; left: auto; top: auto; rotate: 0deg; width: 100%; }
.af-card .big-chart { height: 130px; }

.mini-calendar { padding: 0.6rem 0.8rem 0.85rem; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span {
  text-align: center; padding-bottom: 0.35rem;
  font-family: var(--font-mono); font-size: 0.5rem; color: rgba(16,16,16,0.45);
}
.cal-grid span {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: 0.62rem; border-radius: 6px; color: rgba(16,16,16,0.8);
}
.cal-grid .cal-dim { color: rgba(16,16,16,0.3); }
.cal-grid .cal-on { background: rgba(15,79,199,0.12); color: var(--blue); }
.cal-grid .cal-hot { background: var(--blue); color: #fff; }

.mini-timeline {
  position: relative; padding: 1.9rem 1.1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.tl-line { position: absolute; left: 1.6rem; right: 1.6rem; top: 50%; height: 2px; background: rgba(16,16,16,0.25); }
.tl-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.tl-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); }
.tl-lbl { font-family: var(--font-mono); font-size: 0.55rem; color: rgba(16,16,16,0.6); }
.tl-active .tl-dot { background: var(--blue); border-color: var(--blue-deep); box-shadow: 0 0 0 4px rgba(15,79,199,0.15); }
.tl-active .tl-lbl { color: var(--blue); }

.mini-tool { padding: 0.85rem 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.tool-row { display: flex; justify-content: space-between; align-items: center; }
.tool-lbl { font-size: 0.74rem; color: rgba(16,16,16,0.7); }
.tool-val { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; }
.tool-val.tool-hot { color: var(--blue); }
.tool-slider { position: relative; height: 9px; }
.tool-track { position: absolute; inset: 0; border-radius: 99px; background: rgba(16,16,16,0.15); }
.tool-track::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 62%; border-radius: 99px; background: var(--blue); }
.tool-knob {
  position: absolute; left: 62%; top: 50%;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--blue-deep);
  transform: translate(-50%, -50%);
}

/* ============================================================
   SCENE 04 — INTERACT (auto-playing question demo)
   ============================================================ */
.interact { position: relative; padding: 7rem 1.4rem 6rem; max-width: 1180px; margin: 0 auto; }
.interact-stage { position: relative; width: 100%; margin: 2.6rem auto 0; }
.interact-svg { width: 100%; height: auto; overflow: visible; display: block; }

.ix-card { filter: drop-shadow(0 10px 22px rgba(16,16,16,0.14)); }
.ix-bg { fill: var(--card); stroke: var(--wire); stroke-width: 1.6; }
.ix-div { stroke: rgba(16,16,16,0.45); stroke-width: 1.4; }
.ix-title { font-family: var(--font-display); font-weight: 560; font-size: 15px; fill: var(--ink); }
.ix-kind { font-family: var(--font-mono); font-size: 11px; fill: var(--blue); letter-spacing: 0.03em; }
.ix-img { fill: #dcdad2; }
.ix-img-sun { fill: var(--sticky); }
.ix-img-hill { fill: rgba(16,16,16,0.32); }

.ix-q-bg { fill: var(--card); stroke: var(--blue); stroke-width: 2; }
.ix-q-badge { fill: var(--blue); }
.ix-q-mark { font-family: var(--font-display); font-weight: 700; font-size: 20px; fill: #fff; }
.ix-q-line1, .ix-q-line2 { font-family: var(--font-display); font-weight: 520; font-size: 16px; fill: var(--ink); }
.ix-q-kind { font-family: var(--font-mono); font-size: 11px; fill: var(--blue); letter-spacing: 0.03em; }

.ix-th { font-family: var(--font-mono); font-size: 12px; fill: rgba(16,16,16,0.55); }
.ix-td { font-family: var(--font-display); font-size: 15px; fill: var(--ink); }
.ix-num { font-variant-numeric: tabular-nums; }
.ix-rowline { stroke: rgba(16,16,16,0.25); stroke-width: 1.2; }
.ix-total-l { font-family: var(--font-display); font-weight: 560; font-size: 15px; fill: var(--ink); }
.ix-total { font-family: var(--font-display); font-weight: 640; font-size: 16px; fill: var(--blue); }
.ix-hl { fill: rgba(15,79,199,0.15); opacity: 0; }

.ix-wire { stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; }

@media (min-width: 641px) and (max-width: 820px) {
  .artifact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .artifact-grid { grid-template-columns: 1fr; }
  .artifacts, .interact { padding-top: 4.5rem; }
  .interact-stage { margin-top: 1.6rem; }
}

/* ============================================================
   SCENE 07 — WHAT YOU CAN DO (use-case grid)
   ============================================================ */
.usecases { position: relative; padding: 7rem 1.4rem 6rem; max-width: 1180px; margin: 0 auto; }
.usecase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.4vw, 2rem);
  margin-top: 3.2rem;
}
.usecase-card {
  background: var(--card);
  border: 1.6px solid var(--wire);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(16,16,16,0.14), 0 2px 0 rgba(16,16,16,0.5);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.usecase-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(16,16,16,0.2), 0 2px 0 rgba(16,16,16,0.5); }
.usecase-card .art-head { font-size: 0.94rem; padding: 0.7rem 0.85rem; }
.usecase-card .art-icon { width: 17px; height: 17px; }
.usecase-body {
  padding: 1rem 1.05rem 1.15rem;
  font-size: 0.92rem; line-height: 1.5;
  color: rgba(16,16,16,0.74);
}

/* colorful per-card accents */
.usecase-card { --uc: var(--blue); }
.usecase-card:nth-child(1) { --uc: #0f4fc7; }
.usecase-card:nth-child(2) { --uc: #e0563f; }
.usecase-card:nth-child(3) { --uc: #14976b; }
.usecase-card:nth-child(4) { --uc: #8a4fd8; }
.usecase-card:nth-child(5) { --uc: #d9930d; }
.usecase-card:nth-child(6) { --uc: #c33d7b; }
.usecase-card .art-head {
  background: color-mix(in srgb, var(--uc) 14%, #fff 86%);
  border-bottom-color: var(--uc);
}
.usecase-card .art-icon,
.usecase-card .art-kind { color: var(--uc); }
.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px color-mix(in srgb, var(--uc) 32%, transparent), 0 3px 0 var(--uc);
}

@media (min-width: 641px) and (max-width: 820px) {
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .usecase-grid { grid-template-columns: 1fr; }
  .usecases { padding-top: 4.5rem; }
}

/* ============================================================
   MODE SWITCH — normal / crazy
   ============================================================ */
.mode-toggle {
  position: relative;
  display: inline-flex; align-items: center;
  border: 1.6px solid var(--ink); border-radius: 999px;
  background: var(--card);
  padding: 3px;
}
.mode-btn {
  position: relative; z-index: 1;
  padding: 0.36rem 0.78rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: lowercase;
  color: rgba(16,16,16,0.6);
  transition: color 0.3s var(--ease-out);
}
.mode-btn:hover { color: var(--ink); }
.mode-btn.is-active, .mode-btn.is-active:hover { color: #f2f5ff; }
.mode-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0;
  border-radius: 999px; background: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue-deep);
  transition: left 0.4s var(--ease-out), width 0.4s var(--ease-out);
}
@media (max-width: 640px) { .mode-toggle { display: none; } }

/* full-screen cobalt wipe while switching modes */
.mode-wipe {
  position: fixed; inset: 0; z-index: 2600;
  background: var(--blue);
  pointer-events: none;
  clip-path: circle(0px at var(--wx, 92%) var(--wy, 4%));
  transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.mode-wipe.is-on { clip-path: circle(145vmax at var(--wx, 92%) var(--wy, 4%)); pointer-events: auto; }
.mode-wipe.no-anim { transition: none; }

/* ============================================================
   CRAZY MODE — the scroll dives *into* the canvas
   Scenes live at increasing depths in one 3D world; scrolling
   drives the camera forward so each scene grows, hits the
   screen plane, then flies past the viewer.
   ============================================================ */
.warp-viewport {
  position: fixed; inset: 0; z-index: 10;
  perspective: 1400px; perspective-origin: 50% 50%;
  overflow: hidden;
}
.warp-world { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.warp-layer {
  position: absolute; left: 50%; top: 50%; width: 100vw;
  pointer-events: none;
  will-change: opacity;
  backface-visibility: hidden;
}
.warp-layer.is-focus { pointer-events: auto; }
.warp-fit { transform-origin: 50% 50%; }

/* depth dust — small brand specks drifting between the scenes */
.warp-dust { position: absolute; display: block; pointer-events: none; opacity: 0; will-change: opacity; }
.wd-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(16,16,16,0.42); }
.wd-ring { width: 13px; height: 13px; border-radius: 50%; border: 1.6px solid rgba(16,16,16,0.42); }
.wd-sq { width: 10px; height: 10px; border: 1.5px solid rgba(16,16,16,0.38); border-radius: 2px; background: rgba(255,216,77,0.55); }
.wd-plus { width: 12px; height: 12px; }
.wd-plus::before, .wd-plus::after { content: ""; position: absolute; background: rgba(16,16,16,0.4); border-radius: 2px; }
.wd-plus::before { left: 0; right: 0; top: calc(50% - 1px); height: 2px; }
.wd-plus::after { top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; }
.wd-blue.wd-dot { background: rgba(15,79,199,0.6); }
.wd-blue.wd-ring { border-color: rgba(15,79,199,0.6); }
.wd-blue.wd-sq { background: rgba(15,79,199,0.16); border-color: rgba(15,79,199,0.55); }
.wd-blue.wd-plus::before, .wd-blue.wd-plus::after { background: rgba(15,79,199,0.55); }

/* subtle tunnel vignette */
.warp-vignette {
  position: fixed; inset: 0; z-index: 11; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(16,16,16,0.16) 100%);
}

/* depth progress hairline */
.warp-progress { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 900; background: rgba(16,16,16,0.1); }
.warp-progress-bar { display: block; height: 100%; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left center; }

/* crazy mode: element states are owned by the scrubbed scene timelines in main.js */

/* ============================================================
   MOBILE HARDENING — narrow phones (≤430px)
   Scoped tightly so nothing here can affect tablet/desktop.
   ============================================================ */
@media (max-width: 430px) {
  /* nav: keep logo + links + CTA on one comfortable row */
  .nav { padding: 0.7rem 0.75rem; }
  .nav-logo { font-size: 1.28rem; }
  .nav-logo-dot { width: 27px; height: 27px; }
  .nav-links { gap: 0.75rem; }
  .nav-link { font-size: 0.8rem; letter-spacing: 0.005em; }
  .nav-right { gap: 0.35rem; }
  .nav-cta { padding: 0.44rem 0.66rem; font-size: 0.66rem; }

  /* corner scroll arrows: still generous but clear of the thumb zone */
  .scroll-btn { width: 48px; height: 48px; }
  .scroll-btn svg { width: 23px; height: 23px; }

  /* hero: guarantee the headline never overflows very narrow screens */
  .hero-center { padding: 0 1rem; }
  .hero-title { font-size: clamp(2rem, 10.5vw, 2.5rem); }
  .hero-sub { font-size: 0.98rem; }

  /* section intros: tighten side padding + long mono hint lines */
  .playground-head,
  .artifacts .playground-head,
  .interact .playground-head,
  .usecases .playground-head { padding-left: 1rem; padding-right: 1rem; }
  .playground-hint { font-size: 0.6rem; line-height: 1.5; }

  /* CTA button: comfortable tap target without overflowing */
  .btn-big { font-size: 1rem; padding: 0.85rem 1.5rem; }
}
