/* ==========================================================================
   Cube41 — immersive scroll-driven brand site (v2, otsuka-air.jp pattern)
   Dark volumetric "stage" → glowing orb transition → luminous light world.
   One vivid accent used solidly (CTAs, logo, display words), soft light
   everywhere else. Breath, not rubber.
   ========================================================================== */

:root {
  --bg-deep: #0a0e12;
  --stage-glow: #7fb8d4;

  --accent: #1465e0;          /* vivid cube blue — logo, CTAs, display words */
  --accent-dark: #0f4fb2;
  --accent-deep: #0b3d8d;

  --world-pale: #eef4f8;      /* palest light-world tone  */
  --world-mist: #dbe7ee;      /* mid light-world tone     */
  --world-tint: #cddeeb;      /* strongest light tint     */

  --ink: #10151a;
  --ink-soft: rgba(16, 21, 26, 0.62);
  --ink-inverse: #f4f7f8;
  --ink-inverse-soft: rgba(244, 247, 248, 0.6);
  --line-dark: rgba(244, 247, 248, 0.18);
  --line-ink: rgba(16, 21, 26, 0.14);

  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-mask: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: 6vw;
}

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

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

body {
  background: var(--bg-deep);
  color: var(--ink-inverse);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(20, 101, 224, 0.25); }

a { color: inherit; text-decoration: none; }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

main, .footer { position: relative; z-index: 1; }

/* ============ Loader ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-mask), visibility 0.8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { display: flex; align-items: center; gap: 1rem; }
.loader__cube {
  width: 42px;
  height: 42px;
  animation: breathe 1.6s var(--ease-expo) infinite alternate;
}
.loader__logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.loader__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--stage-glow);
  animation: breathe 1.6s var(--ease-expo) infinite alternate;
}
@keyframes breathe {
  from { transform: scale(0.6); opacity: 0.4; }
  to   { transform: scale(1.4); opacity: 1; }
}

/* ============ Header ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 72px;
  padding-left: 2.4vw;
  transition: color 0.5s var(--ease-mask);
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.header__logo-mark {
  width: 28px;
  height: 28px;
  display: block;
  transition: transform 0.6s var(--ease-expo);
}
.header__logo:hover .header__logo-mark { transform: rotate(-12deg); }
.header__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2.8rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.header__nav a { position: relative; }
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-expo);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left center; }

/* header text follows the world: dark sections → white nav, light → ink */
.header { color: var(--ink-inverse); }
.header.on-light { color: var(--ink); }

.header__store {
  margin-left: auto;
  align-self: flex-start;
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 2rem 1.6rem 0.9rem 1.4rem;
  transition: background 0.4s var(--ease-expo);
  position: relative;
}
.header__store:hover { background: var(--accent-dark); }
.header__store-icon {
  position: absolute;
  top: 0.7rem; right: 0.9rem;
  width: 10px; height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}
.header__store-icon::before {
  content: "";
  position: absolute;
  top: -4px; left: 3px;
  width: 10px; height: 10px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.9);
  border-right: 1.5px solid rgba(255, 255, 255, 0.9);
}
.header__menu-btn {
  display: none;
  margin-left: auto;
  margin-right: 2.4vw;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ============ Dot progress nav ============ */
.dots {
  position: fixed;
  right: 2.2vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.dots a {
  position: relative;
  width: 14px; height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dots i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  transition: opacity 0.3s;
}
.dots__ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s var(--ease-expo), transform 0.4s var(--ease-expo);
}
.dots a.is-active .dots__ring { opacity: 0.8; transform: scale(1); }
.dots a.is-active i { opacity: 1; }
.dots { color: var(--ink-inverse); }
.dots.on-light { color: var(--ink); }

/* ============ Menu overlay ============ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10, 14, 18, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-mask), visibility 0.6s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__link {
  display: block;
  color: var(--ink-inverse);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo), color 0.4s;
}
.menu__link em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink-inverse-soft);
  margin-right: 1.5rem;
  vertical-align: middle;
}
.menu__link:hover { color: var(--stage-glow); }
.menu.is-open .menu__link { opacity: 1; transform: translateY(0); }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.08s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.16s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.24s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.32s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: 0.40s; }
.menu__foot {
  position: absolute;
  bottom: 2.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-inverse-soft);
  letter-spacing: 0.1em;
}

/* ============ Pinned scenes ============
   A .pin section is a tall scroll track; its .pin__view sticks to the
   viewport while scroll progress dissolves content in from the previous
   scene and out toward the next — the page never appears to "scroll",
   scenes emerge from one another. */
.pin { position: relative; height: 240vh; }
.pin--short { height: 190vh; }
/* adjacent pinned scenes overlap: the next view rises over the previous
   pinned one like a curtain, then its content dissolves in */
.pin + .pin { margin-top: -100vh; }
.pin .pin__view {
  position: sticky !important;
  top: 0;
  height: 100vh !important;
  min-height: 0 !important;
  overflow: hidden;
}
.pin .pin__view > * { will-change: transform, opacity; }
/* static fallback (reduced motion / debug) */
.no-motion .pin { height: auto !important; margin-top: 0 !important; }
.no-motion .pin__view {
  position: relative !important;
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible;
}
.no-motion .pin__view > * { opacity: 1 !important; transform: none !important; }

/* ---- no-JS fallback: static, fully visible page ---- */
html:not(.js) .loader { display: none; }
html:not(.js) .pin { height: auto !important; margin-top: 0 !important; }
html:not(.js) .pin__view {
  position: relative !important;
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible;
}
html:not(.js) .orbscene { height: auto; }
html:not(.js) .orb { transform: scale(1.2); }
html:not(.js) .orb__verse p { opacity: 1; transform: none; }
html:not(.js) .cursor, html:not(.js) .dots { display: none; }

/* ============ Reveal primitives ============
   Hidden states are gated behind html.js (set by an inline head script)
   so crawlers/users without JavaScript see all content immediately. */
.line, .reveal-line { display: block; overflow: hidden; }
.line > span, .reveal-line > span {
  display: block;
  transition: transform 1.1s var(--ease-expo);
}
.js .line > span, .js .reveal-line > span { transform: translateY(110%); }
.is-inview .line > span,
.is-inview.reveal-line > span,
.is-inview .reveal-line > span { transform: translateY(0); }
.line:nth-of-type(2) > span { transition-delay: 0.08s; }
.line:nth-of-type(3) > span { transition-delay: 0.16s; }
.verse .reveal-line:nth-of-type(1) > span { transition-delay: 0.05s; }
.verse .reveal-line:nth-of-type(2) > span { transition-delay: 0.12s; }
.verse .reveal-line:nth-of-type(3) > span { transition-delay: 0.19s; }
.verse .reveal-line:nth-of-type(4) > span { transition-delay: 0.26s; }
.verse .reveal-line:nth-of-type(5) > span { transition-delay: 0.33s; }
.verse .reveal-line:nth-of-type(6) > span { transition-delay: 0.40s; }
.verse .reveal-line:nth-of-type(7) > span { transition-delay: 0.47s; }
.verse .reveal-line:nth-of-type(8) > span { transition-delay: 0.54s; }

/* ==========================================================================
   01 · THE STAGE — dark room, volumetric light, floating cube
   ========================================================================== */
.stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(90% 60% at 50% 108%, rgba(127, 184, 212, 0.14), transparent 65%),
    var(--bg-deep);
}
.stage__room { position: absolute; inset: 0; pointer-events: none; }
.stage__cone {
  position: absolute;
  top: 0; left: 50%;
  width: 76vw; height: 96vh;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    rgba(220, 240, 250, 0.34) 0%,
    rgba(160, 205, 228, 0.13) 42%,
    rgba(127, 184, 212, 0.045) 70%,
    transparent 100%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  filter: blur(18px);
}
.stage__apex {
  position: absolute;
  top: -12vh; left: 50%;
  width: 34vw; height: 22vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(240, 250, 255, 0.95), rgba(190, 225, 245, 0.35) 55%, transparent);
  filter: blur(22px);
}
.stage__floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26vh;
  background:
    radial-gradient(60% 90% at 50% 100%, rgba(140, 190, 216, 0.22), transparent 70%),
    linear-gradient(0deg, rgba(127, 184, 212, 0.10), transparent 80%);
}
.stage__particles i {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(230, 245, 252, 0.8);
  animation: drift-up 14s linear infinite;
}
.stage__particles i:nth-child(1)  { left: 12%; top: 80%; animation-delay: 0s;   transform: scale(0.5); }
.stage__particles i:nth-child(2)  { left: 22%; top: 60%; animation-delay: -3s;  transform: scale(0.8); }
.stage__particles i:nth-child(3)  { left: 34%; top: 88%; animation-delay: -7s;  transform: scale(0.4); }
.stage__particles i:nth-child(4)  { left: 46%; top: 70%; animation-delay: -10s; transform: scale(0.9); }
.stage__particles i:nth-child(5)  { left: 55%; top: 84%; animation-delay: -5s;  transform: scale(0.6); }
.stage__particles i:nth-child(6)  { left: 64%; top: 58%; animation-delay: -12s; transform: scale(0.5); }
.stage__particles i:nth-child(7)  { left: 73%; top: 78%; animation-delay: -2s;  transform: scale(0.8); }
.stage__particles i:nth-child(8)  { left: 84%; top: 66%; animation-delay: -8s;  transform: scale(0.4); }
.stage__particles i:nth-child(9)  { left: 90%; top: 86%; animation-delay: -6s;  transform: scale(0.6); }
.stage__particles i:nth-child(10) { left: 6%;  top: 50%; animation-delay: -9s;  transform: scale(0.5); }
.stage__particles i:nth-child(11) { left: 40%; top: 46%; animation-delay: -11s; transform: scale(0.35); }
.stage__particles i:nth-child(12) { left: 60%; top: 40%; animation-delay: -4s;  transform: scale(0.5); }
@keyframes drift-up {
  0%   { opacity: 0; margin-top: 30px; }
  15%  { opacity: 0.9; }
  85%  { opacity: 0.4; }
  100% { opacity: 0; margin-top: -46vh; }
}

.stage__micro {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-align: center;
  color: rgba(244, 247, 248, 0.85);
  z-index: 4;
}
.stage__micro--left { left: 4vw; }
.stage__micro--right { right: 4vw; }

.stage__brace {
  position: absolute;
  top: 50%;
  transform: translateY(-54%);
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 22vh;
  line-height: 1;
  color: rgba(244, 247, 248, 0.92);
  z-index: 4;
  pointer-events: none;
}
.stage__brace--l { left: 30vw; }
.stage__brace--r { right: 30vw; }

.stage__cube-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -56%);
  z-index: 3;
  perspective: 900px;
}
.stage__cube {
  position: relative;
  width: 150px; height: 150px;
  transform-style: preserve-3d;
  animation: cube-spin 26s linear infinite, cube-bob 6s ease-in-out infinite alternate;
}
.stage__cube i {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(160, 210, 235, 0.28), rgba(127, 184, 212, 0.10));
  border: 1px solid rgba(210, 240, 252, 0.75);
  box-shadow: inset 0 0 34px rgba(190, 230, 248, 0.25);
}
.stage__cube .f1 { transform: rotateY(0deg)   translateZ(75px); }
.stage__cube .f2 { transform: rotateY(90deg)  translateZ(75px); }
.stage__cube .f3 { transform: rotateY(180deg) translateZ(75px); }
.stage__cube .f4 { transform: rotateY(270deg) translateZ(75px); }
.stage__cube .f5 { transform: rotateX(90deg)  translateZ(75px); }
.stage__cube .f6 { transform: rotateX(-90deg) translateZ(75px); }
@keyframes cube-spin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to   { transform: rotateX(-18deg) rotateY(360deg); }
}
@keyframes cube-bob {
  from { margin-top: -10px; }
  to   { margin-top: 12px; }
}
.stage__cube-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 340px; height: 340px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(190, 230, 250, 0.30), transparent 70%);
  filter: blur(10px);
}

.stage__title {
  position: relative;
  z-index: 5;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 13vh 0 21vh;
  font-weight: 400;
  text-align: center;
  pointer-events: none;
}
.stage__title .line { line-height: 1.02; }
.stage__title-top, .stage__title-bottom { display: block; }
.stage__title span { font-size: clamp(2.6rem, 7.2vw, 6.4rem); letter-spacing: -0.01em; }

.stage__sub {
  position: absolute;
  bottom: 9vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(244, 247, 248, 0.9);
  white-space: nowrap;
}

.stage__scroll {
  position: absolute;
  right: 5vw; bottom: 6vh;
  z-index: 6;
  width: 46px; height: 46px;
  border: 1px solid rgba(244, 247, 248, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s var(--ease-expo), color 0.4s;
}
.stage__scroll svg { width: 18px; height: 18px; animation: nudge 2.2s var(--ease-mask) infinite; }
.stage__scroll:hover { background: var(--ink-inverse); color: var(--ink); }
@keyframes nudge {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

/* ==========================================================================
   02 · ORB SCENE — white sphere engulfs the dark world
   ========================================================================== */
.orbscene { position: relative; height: 340vh; background: var(--bg-deep); }
.orbscene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb {
  position: absolute;
  top: 50%; left: 50%;
  width: 46vmax; height: 46vmax;
  margin: -23vmax 0 0 -23vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    #ffffff 0%, #ffffff 58%,
    rgba(255, 255, 255, 0.75) 76%,
    rgba(255, 255, 255, 0) 100%);
  transform: scale(0.22);
  will-change: transform;
}
.orb__verse {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 640px;
  padding: 0 var(--gutter);
}
.orb__verse p {
  font-size: clamp(1.1rem, 1.9vw, 1.55rem);
  font-weight: 500;
  line-height: 2.15;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
}
.orb__verse p.on { opacity: 1; transform: translateY(0); }
.orbscene__flash {
  position: absolute;
  inset: 0;
  background: var(--world-pale);
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   03 · BRAND LOCKUP — light world begins
   ========================================================================== */
.lockup {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, var(--world-pale) 0%, rgba(238, 244, 248, 0) 22%),
    radial-gradient(60% 60% at 50% 50%, #f8fcfe 0%, var(--world-pale) 55%, var(--world-mist) 100%);
  color: var(--ink);
}
.lockup__mark { text-align: center; }
.lockup__logo span {
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.lockup__tag span {
  display: block;
  margin-top: 2rem;
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Floating-panel scenes (light world chapters)
   ========================================================================== */
.float-scene {
  position: relative;
  min-height: 130vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22vh var(--gutter);
  color: var(--ink);
}
.float-scene--pale {
  background: radial-gradient(70% 55% at 50% 42%, #f7fbfd 0%, var(--world-pale) 52%, var(--world-mist) 100%);
}
.float-scene__panels, .mode__collage, .cloudsc__shapes, .deep__panels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.float-scene__copy {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* floating tilted panel — an abstract UI/screenshot card */
.panel {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w);
  aspect-ratio: 4 / 3;
  transform: rotate(var(--tilt));
  background: #fff;
  border: 1px solid rgba(16, 21, 26, 0.06);
  box-shadow: 0 30px 60px rgba(30, 60, 90, 0.10);
  overflow: hidden;
  will-change: transform;
}
.panel::before { /* window chrome bar */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14%;
  background: linear-gradient(180deg, #eef3f7, #e5edf3);
  border-bottom: 1px solid rgba(16, 21, 26, 0.05);
}
.panel::after { /* content lines */
  content: "";
  position: absolute;
  left: 10%; right: 10%; top: 26%; bottom: 12%;
  background: repeating-linear-gradient(180deg,
    rgba(20, 101, 224, 0.16) 0 6%,
    transparent 6% 16%);
}
.panel--code::after {
  background: repeating-linear-gradient(180deg,
    rgba(16, 21, 26, 0.14) 0 5%,
    transparent 5% 14%);
  left: 8%; right: 26%;
}
.panel--chart::after {
  background:
    linear-gradient(0deg, rgba(20, 101, 224, 0.22) 0 34%, transparent 34%) left 4% bottom 0 / 16% 70% no-repeat,
    linear-gradient(0deg, rgba(20, 101, 224, 0.30) 0 58%, transparent 58%) left 26% bottom 0 / 16% 70% no-repeat,
    linear-gradient(0deg, rgba(20, 101, 224, 0.22) 0 42%, transparent 42%) left 48% bottom 0 / 16% 70% no-repeat,
    linear-gradient(0deg, rgba(20, 101, 224, 0.38) 0 78%, transparent 78%) left 70% bottom 0 / 16% 70% no-repeat;
}
.panel--glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(235, 245, 250, 0.45));
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.panel--glass::before, .panel--glass::after { opacity: 0.45; }
.panel--photo::before, .panel--photo::after { display: none; }
.panel--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.panel--photo-tint { border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: none; }
.panel--photo-tint img { opacity: 0.6; }
.panel--photo-tint { background: var(--accent-deep); }
.panel--photo-soft img { opacity: 0.8; }
.panel--tint {
  background: rgba(9, 52, 120, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.panel--tint::before { background: rgba(255, 255, 255, 0.10); border-bottom-color: transparent; }
.panel--tint::after {
  background: repeating-linear-gradient(180deg,
    rgba(255, 255, 255, 0.18) 0 6%,
    transparent 6% 16%);
}

/* verse & chapter type */
.verse p {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 2.15;
}
.verse--ink p { color: var(--ink); }
.verse--light p { color: rgba(255, 255, 255, 0.94); }

.chapter-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.6rem;
}
.chapter-eyebrow--ink { color: var(--accent); }
.chapter-head {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
}
.chapter-head--light { color: #fff; }
.chapter-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1.4rem;
}
.chapter-tag--ink { color: var(--ink-soft); }
.float-scene__copy .verse { margin-top: 2.6rem; }

/* solid rectangular CTA block (zeroz-style) */
.block-cta {
  display: inline-flex;
  align-items: center;
  gap: 3.2rem;
  margin-top: 4rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 1rem 1rem 1.6rem;
  min-width: 240px;
  justify-content: space-between;
  transition: background 0.4s var(--ease-expo);
}
.block-cta:hover { background: var(--accent-dark); }
.block-cta__arrow {
  width: 30px; height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.block-cta__arrow svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease-expo); }
.block-cta:hover .block-cta__arrow svg { transform: translateX(3px); }
.block-cta--ghost { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.4); }
.block-cta--ghost:hover { background: rgba(255, 255, 255, 0.24); }
.block-cta--big { font-size: 1.15rem; padding: 1.3rem 1.3rem 1.3rem 2rem; gap: 4rem; }

/* ==========================================================================
   05 · DEEP — saturated accent world (full-stack chapter)
   ========================================================================== */
.deep {
  position: relative;
  min-height: 120vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20vh var(--gutter);
  background: linear-gradient(180deg, var(--accent-deep) 0%, var(--accent) 45%, var(--accent-deep) 100%);
}
.deep__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 70vmax; height: 70vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(220, 240, 255, 0.34), transparent 70%);
  pointer-events: none;
}
.deep__bubbles i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.25) 80%);
  filter: blur(1px);
  animation: drift-up 18s linear infinite;
}
.deep__bubbles i:nth-child(1) { left: 8%;  top: 70%; width: 14px; height: 14px; animation-delay: 0s; }
.deep__bubbles i:nth-child(2) { left: 20%; top: 85%; width: 8px;  height: 8px;  animation-delay: -4s; }
.deep__bubbles i:nth-child(3) { left: 33%; top: 64%; width: 20px; height: 20px; animation-delay: -9s; }
.deep__bubbles i:nth-child(4) { left: 52%; top: 88%; width: 10px; height: 10px; animation-delay: -2s; }
.deep__bubbles i:nth-child(5) { left: 66%; top: 74%; width: 16px; height: 16px; animation-delay: -12s; }
.deep__bubbles i:nth-child(6) { left: 78%; top: 60%; width: 9px;  height: 9px;  animation-delay: -7s; }
.deep__bubbles i:nth-child(7) { left: 88%; top: 82%; width: 22px; height: 22px; animation-delay: -14s; }
.deep__bubbles i:nth-child(8) { left: 44%; top: 55%; width: 7px;  height: 7px;  animation-delay: -5s; }

/* ==========================================================================
   06 · NETWORK — AI chapter (light, particle molecule)
   ========================================================================== */
.network {
  position: relative;
  min-height: 120vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20vh var(--gutter);
  background: linear-gradient(160deg, #d3e5ef 0%, var(--world-mist) 45%, #bcd6e6 100%);
}
.network__svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  filter: blur(0.4px) drop-shadow(0 0 14px rgba(255, 255, 255, 0.9));
  opacity: 0.9;
  animation: net-breathe 7s ease-in-out infinite alternate;
}
@keyframes net-breathe {
  from { transform: scale(1); opacity: 0.78; }
  to   { transform: scale(1.04); opacity: 0.95; }
}

/* ==========================================================================
   07 · CLOUD — palest scene
   ========================================================================== */
.cloudsc {
  position: relative;
  min-height: 120vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20vh var(--gutter);
  background: radial-gradient(80% 60% at 50% 30%, #fbfdfe 0%, var(--world-pale) 60%, var(--world-mist) 100%);
}
.cloudsc__pill {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 15vw; height: 8vw;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(230, 242, 250, 0.4));
  filter: blur(6px);
  will-change: transform;
}
.cloudsc__pill--sm { width: 9vw; height: 5vw; }

/* ==========================================================================
   08 · PROOF
   ========================================================================== */
.proof {
  position: relative;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--world-mist) 0%, var(--world-pale) 30%, #e3edf3 100%);
  color: var(--ink);
  overflow: hidden;
}
.proof__content { position: relative; }
.proof__word {
  position: absolute;
  top: 4vh; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.proof__word span {
  font-size: clamp(6rem, 18vw, 17rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}
.proof__verse { position: relative; margin-bottom: 5rem; }
.pin__view.float-scene, .pin__view.deep, .pin__view.network,
.pin__view.cloudsc, .pin__view.mode { padding: 0 var(--gutter); }
.proof__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1050px;
  margin: 0 auto;
}
.proof__item strong {
  display: block;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.proof__item small {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.proof__spec {
  margin-top: 4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ==========================================================================
   09 · WORK — auto-drifting carousel
   ========================================================================== */
.work {
  padding: 20vh 0 16vh;
  background: linear-gradient(180deg, #e3edf3 0%, var(--world-pale) 40%, var(--world-mist) 100%);
  color: var(--ink);
  overflow: hidden;
}
.work__head { text-align: center; margin-bottom: 7rem; padding: 0 var(--gutter); }

.carousel {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.carousel.is-dragging { cursor: grabbing; }
.carousel__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  padding: 1rem 0;
  will-change: transform;
}
.work-card {
  width: min(340px, 78vw);
  flex: none;
  background: #fff;
  border: 1px solid rgba(16, 21, 26, 0.07);
  box-shadow: 0 24px 50px rgba(30, 60, 90, 0.08);
  padding: 0 0 1.8rem;
}
.work-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(20, 101, 224, 0.14), transparent 60%),
    radial-gradient(120% 120% at 85% 90%, rgba(127, 184, 212, 0.22), transparent 55%),
    #f2f7fa;
  margin-bottom: 1.4rem;
}
.work-card__glyph {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.6s var(--ease-expo);
}
.work-card__shot {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s var(--ease-expo);
}
.work-card:hover .work-card__shot { transform: scale(1.05); }
.work-card:hover .work-card__glyph { transform: scale(1.1); }
.work-card__index,
.work-card__name,
.work-card__role,
.work-card__desc,
.work-card__links { padding: 0 1.6rem; }
.work-card__index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}
.work-card__name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 0.3rem;
  color: var(--ink);
}
.work-card__role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}
.work-card__desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-top: 0.9rem;
}
.work-card__links {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.work-card__links a { position: relative; color: var(--accent); font-weight: 400; }
.work-card__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-expo);
}
.work-card__links a:hover::after { transform: scaleX(1); transform-origin: left center; }
.carousel__hint {
  margin-top: 3rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}

/* ==========================================================================
   10/11 · BUILD / RUN — giant display word + use-case list
   ========================================================================== */
.mode {
  position: relative;
  min-height: 110vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18vh var(--gutter);
  background: var(--world-mist);
  color: var(--ink);
}
.mode--flip { justify-content: flex-start; background: var(--world-pale); }
.mode__side { position: relative; z-index: 3; max-width: 480px; text-align: right; }
.mode--flip .mode__side { text-align: left; }
.mode__word span {
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  line-height: 1;
}
.mode__list { list-style: none; margin-top: 3.6rem; }
.mode__list li { margin-bottom: 2.6rem; }
.mode__list strong {
  display: block;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.mode__list small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   12 · CONTACT — the dark stage returns
   ========================================================================== */
.contact {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20vh var(--gutter);
  background:
    radial-gradient(90% 60% at 50% 108%, rgba(127, 184, 212, 0.14), transparent 65%),
    var(--bg-deep);
  color: var(--ink-inverse);
}
.contact__title {
  position: relative;
  z-index: 3;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.contact__body {
  position: relative;
  z-index: 3;
  margin-top: 2.2rem;
  color: var(--ink-inverse-soft);
  line-height: 2.1;
}
.contact .chapter-eyebrow { color: var(--stage-glow); position: relative; z-index: 3; }
.contact .chapter-tag { position: relative; z-index: 3; }
.contact .block-cta { position: relative; z-index: 3; }

/* ============ Footer ============ */
.footer {
  background: var(--world-pale);
  color: var(--ink);
  border-top: 1px solid var(--line-ink);
  padding: 4rem var(--gutter) 3rem;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.footer__logo-mark { width: 24px; height: 24px; display: block; }
.footer__nav { display: flex; gap: 2.4rem; font-size: 0.85rem; font-weight: 500; }
.footer__nav a { position: relative; }
.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-expo);
}
.footer__nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--line-ink);
  padding-top: 2rem;
}

.work__all { text-align: center; margin-top: 2.5rem; }
.work__all .block-cta { margin-top: 0; }

/* ==========================================================================
   Project (case study) pages — same grammar at smaller scale
   ========================================================================== */
.workhub {
  padding: 22vh var(--gutter) 14vh;
  background: linear-gradient(180deg, var(--world-pale) 0%, var(--world-mist) 100%);
  color: var(--ink);
}
.workhub__head { text-align: center; margin-bottom: 6rem; }
.workhub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem 3rem;
  max-width: 1180px;
  margin: 0 auto;
}
.workhub__grid .work-card { width: auto; }
@media (max-width: 1024px) { .workhub__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .workhub__grid { grid-template-columns: 1fr; } }
.pstage {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14vh var(--gutter) 10vh;
  background:
    radial-gradient(90% 60% at 50% 108%, rgba(127, 184, 212, 0.14), transparent 65%),
    var(--bg-deep);
  color: var(--ink-inverse);
}
.pstage > * { position: relative; z-index: 3; }
.pstage .stage__room { z-index: 0; }
.pstage__name {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.pstage__tagline {
  margin-top: 2rem;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--ink-inverse-soft);
  line-height: 2;
}
.pstage__ctas {
  display: flex;
  gap: 1.2rem;
  margin-top: 3.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pstage__ctas .block-cta { margin-top: 0; }

.pshot {
  width: min(820px, 88vw);
  margin: 0 auto 3.5rem;
  border: 1px solid rgba(16, 21, 26, 0.08);
  box-shadow: 0 40px 90px rgba(30, 60, 90, 0.18);
  overflow: hidden;
}
.pshot img { width: 100%; display: block; }
.pshot--glyph {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(20, 101, 224, 0.14), transparent 60%),
    radial-gradient(120% 120% at 85% 90%, rgba(127, 184, 212, 0.22), transparent 55%),
    #f2f7fa;
  font-family: var(--font-mono);
  font-size: 3rem;
  color: var(--accent);
}

.pcap {
  padding: 18vh var(--gutter);
  background: var(--world-mist);
  color: var(--ink);
  text-align: center;
}
.pcap .mode__list {
  max-width: 640px;
  margin: 4rem auto 0;
  text-align: left;
}
.pcap .mode__list li {
  border-top: 1px solid var(--line-ink);
  padding-top: 2rem;
}

.pfacts {
  padding: 9vh var(--gutter);
  background: var(--world-pale);
  color: var(--ink-soft);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  line-height: 2.2;
}
.pfacts strong { color: var(--accent); font-weight: 400; }

.pnext {
  padding: 14vh var(--gutter);
  background: #e3edf3;
  color: var(--ink);
  text-align: center;
}
.pnext__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.pnext__link {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--accent);
  position: relative;
  transition: opacity 0.4s;
}
.pnext__link:hover { opacity: 0.75; }

.pcontact {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16vh var(--gutter);
  background:
    radial-gradient(90% 60% at 50% 108%, rgba(127, 184, 212, 0.14), transparent 65%),
    var(--bg-deep);
  color: var(--ink-inverse);
}
.pcontact > * { position: relative; z-index: 3; }
.pcontact .stage__room { z-index: 0; }

@media (max-width: 768px) {
  .pstage__ctas { flex-direction: column; align-items: stretch; }
}

/* ============ Start a project modal ============ */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-mask), visibility 0.5s;
}
.pmodal.is-open { opacity: 1; visibility: visible; }
.pmodal__veil {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 18, 0.66);
  backdrop-filter: blur(10px);
}
.pmodal__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  color: var(--ink);
  padding: 3.2rem 3.4rem 3rem;
  transform: translateY(36px) scale(0.98);
  transition: transform 0.6s var(--ease-expo);
}
.pmodal.is-open .pmodal__panel { transform: translateY(0) scale(1); }
.pmodal__close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  width: 40px; height: 40px;
  background: none;
  border: none;
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.3s;
}
.pmodal__close:hover { color: var(--ink); }
.pmodal__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.pmodal__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}
.pmodal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem 1.6rem;
}
.pfield { display: block; }
.pfield--full { margin-top: 1.3rem; }
.pfield__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}
.pfield__input {
  width: 100%;
  border: 1px solid rgba(16, 21, 26, 0.18);
  background: #fbfcfd;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
select.pfield__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235a6672' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
.pfield__input:focus { border-color: var(--accent); }
.pfield__input--area { resize: vertical; min-height: 120px; line-height: 1.7; }
.pmodal__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pmodal__error {
  min-height: 1.2em;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #c0392b;
}
.pmodal__submit { margin-top: 0.6rem; width: 100%; }
.pmodal__submit[disabled] { opacity: 0.6; pointer-events: none; }
.pmodal__done { text-align: center; padding: 2rem 0 1rem; }
.pmodal__done .block-cta { margin-top: 2.4rem; }
.pmodal__done-mark {
  width: 64px; height: 64px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pmodal__done-mark svg { width: 30px; height: 30px; }
.pmodal__done-text { color: var(--ink-soft); line-height: 1.9; }
@media (max-width: 640px) {
  .pmodal { padding: 0; align-items: flex-end; }
  .pmodal__panel { max-height: 96vh; padding: 2.4rem 1.6rem 2rem; }
  .pmodal__grid { grid-template-columns: 1fr; }
  .pmodal__done-text br { display: none; }
}

/* ============ Custom cursor ============ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-expo), height 0.35s var(--ease-expo),
    background 0.35s var(--ease-expo), border 0.35s;
}
.cursor__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.3s;
  color: var(--ink);
}
.cursor.is-link {
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--accent);
}
.cursor.is-view {
  width: 70px; height: 70px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line-ink);
}
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .stage__brace--l { left: 16vw; }
  .stage__brace--r { right: 16vw; }
  .panel { --w: 22vw; }
}
@media (max-width: 768px) {
  :root { --gutter: 7vw; }
  .header__nav { display: none; }
  .header__store { display: none; }
  .header__menu-btn { display: block; }
  .dots { right: 1.2vw; gap: 1.2rem; }

  .stage__brace { font-size: 13vh; }
  .stage__brace--l { left: 6vw; }
  .stage__brace--r { right: 6vw; }
  .stage__micro { display: none; }
  .stage__cube { width: 104px; height: 104px; }
  .stage__cube .f1, .stage__cube .f2, .stage__cube .f3,
  .stage__cube .f4, .stage__cube .f5, .stage__cube .f6 { transform-origin: center; }
  .stage__cube .f1 { transform: rotateY(0deg)   translateZ(52px); }
  .stage__cube .f2 { transform: rotateY(90deg)  translateZ(52px); }
  .stage__cube .f3 { transform: rotateY(180deg) translateZ(52px); }
  .stage__cube .f4 { transform: rotateY(270deg) translateZ(52px); }
  .stage__cube .f5 { transform: rotateX(90deg)  translateZ(52px); }
  .stage__cube .f6 { transform: rotateX(-90deg) translateZ(52px); }
  .stage__sub { white-space: normal; width: 86vw; }

  .panel { --w: 34vw !important; opacity: 0.55; }
  .float-scene, .deep, .network, .cloudsc { min-height: 100vh; }
  .proof__grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 1.5rem; }
  .mode { justify-content: center; }
  .mode__side { text-align: center !important; }
  .mode__collage { opacity: 0.4; }
  .footer__top, .footer__bottom { flex-direction: column; gap: 1.6rem; text-align: center; }
  .contact__body br { display: none; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .line > span, .reveal-line > span { transform: none !important; transition: none !important; }
  .orb { transform: scale(1.2) !important; }
  .orb__verse p { opacity: 1 !important; transform: none !important; }
  .grain, .stage__particles i, .deep__bubbles i, .stage__cube,
  .network__svg, .stage__scroll svg, .loader__dot { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
