/* ============ divtodiv — immersive 3D / wow journey ============ */
:root {
  --bg: #000;
  --ink: #f2f4f8;
  --muted: #9aa3b2;
  --cyan: #3decff;
  --green: #3fffb2;
  --blue: #7fb0ff;
  --amber: #ffb056;
  --red: #ff5d6c;
  --glass: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.12);
  --sans: "Urbanist", system-ui, sans-serif;
  --serif: "Arapey", Georgia, serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(61, 236, 255, 0.3); }

/* canvas universe behind everything */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ============ custom cursor ============ */
#cursor-dot, #cursor-ring { display: none; }
@media (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }
  input, textarea { cursor: text; }
  #cursor-dot {
    display: block; position: fixed; z-index: 200; pointer-events: none;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 10px rgba(61,236,255,0.9);
    transform: translate(-50%, -50%);
  }
  #cursor-ring {
    display: block; position: fixed; z-index: 200; pointer-events: none;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(61, 236, 255, 0.45);
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
  }
  #cursor-ring.hot {
    width: 56px; height: 56px; border-color: var(--green);
  }
}

/* ============ boot loader ============ */
#loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  transition: opacity 0.9s ease, visibility 0.9s;
}
#loader.done { opacity: 0; visibility: hidden; }
#boot {
  font-family: var(--mono); font-size: clamp(12px, 1.4vw, 15px);
  line-height: 1.9; color: #57e6a8; min-width: min(440px, 84vw);
  text-shadow: 0 0 12px rgba(63, 255, 178, 0.35);
  white-space: pre-wrap;
}
#boot::after {
  content: "█"; animation: blink 0.7s steps(1) infinite; color: var(--cyan);
}
@keyframes blink { 50% { opacity: 0; } }

/* ============ div→div signature ============ */
.dd-sig {
  display: inline-flex; align-items: center; gap: clamp(10px, 1vw, 16px);
  font-family: var(--mono); user-select: none;
}
.chip {
  display: inline-flex; align-items: center; gap: 1px;
  padding: 8px 14px; font-size: clamp(15px, 1.5vw, 21px); font-weight: 600;
  line-height: 1; border-radius: 12px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.chip b { color: #5a6270; font-weight: 600; }
.chip i { color: var(--cyan); font-style: normal; }
.chip.target i { color: var(--green); }
.link {
  position: relative; width: clamp(48px, 6vw, 80px); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(127,176,255,.12), rgba(127,176,255,.32), rgba(127,176,255,.12));
}
.pulse {
  position: absolute; top: 50%; left: 0; width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #aecbff;
  box-shadow: 0 0 12px 3px rgba(127, 176, 255, 0.85);
  animation: dd-flow 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes dd-flow {
  0% { left: 0; opacity: 0; transform: scale(0.6); }
  12% { opacity: 1; transform: scale(1); }
  88% { opacity: 1; transform: scale(1); }
  100% { left: 100%; opacity: 0; transform: scale(0.6); }
}
.chip.target { animation: dd-arrive 2.4s ease-in-out infinite; }
@keyframes dd-arrive {
  0%, 70% { border-color: rgba(255,255,255,0.14); box-shadow: none; }
  92% { border-color: rgba(127,176,255,0.6); box-shadow: 0 0 18px rgba(127,176,255,0.3); }
  100% { border-color: rgba(255,255,255,0.14); box-shadow: none; }
}
.dd-sig .flow {
  margin-left: clamp(4px, 0.6vw, 10px); font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.06em; text-transform: lowercase; color: var(--muted); white-space: nowrap;
}
.dd-sig .flow b { font-weight: 600; color: #cfe0ff; }

/* ============ header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(0,0,0,0.75), transparent);
}
.logo { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.main-nav { display: flex; gap: clamp(14px, 2.5vw, 34px); align-items: center; }
.main-nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--muted); text-decoration: none; transition: color 0.3s;
}
.main-nav a:hover { color: var(--cyan); }
.main-nav .nav-cta {
  padding: 8px 16px; border: 1px solid var(--stroke); border-radius: 999px;
  color: var(--ink); background: var(--glass);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.main-nav .nav-cta:hover { border-color: rgba(61, 236, 255, 0.5); color: var(--cyan); }

/* ============ HUD ============ */
#hud {
  position: fixed; left: clamp(16px, 3vw, 40px); bottom: 22px; z-index: 50;
  display: flex; flex-direction: column; gap: 3px; pointer-events: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: rgba(154, 163, 178, 0.85); text-transform: lowercase;
}
#hud::before {
  content: ""; position: absolute; left: -10px; top: -8px; bottom: -8px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(61,236,255,0.5), transparent);
}
#hud-sector { color: var(--cyan); }
.hud-sys { opacity: 0.55; }

#sfx {
  position: fixed; right: clamp(16px, 3vw, 40px); bottom: 22px; z-index: 50;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--muted); background: var(--glass);
  border: 1px solid var(--stroke); border-radius: 999px; padding: 8px 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color 0.3s, border-color 0.3s;
}
#sfx:hover, #sfx.on { color: var(--green); border-color: rgba(63, 255, 178, 0.4); }

/* ============ scroll rail ============ */
.rail {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: 50; display: flex; flex-direction: column; gap: 14px;
}
.rail-dot {
  width: 6px; height: 6px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.18);
  outline: 1px solid transparent; outline-offset: 3px;
  transition: all 0.4s ease;
}
.rail-dot:hover { background: rgba(255,255,255,0.45); }
.rail-dot.active {
  background: var(--cyan); box-shadow: 0 0 12px rgba(61, 236, 255, 0.8);
  outline-color: rgba(61, 236, 255, 0.35);
}

/* ============ panels ============ */
#journey { position: relative; z-index: 2; }
.panel {
  min-height: 100vh; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 14vh clamp(20px, 6vw, 90px);
}

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 18px;
}

/* readability: soft darkening halo behind floating copy */
.hero-inner, .problem-copy, .section-head { position: relative; }
.hero-inner::before, .problem-copy::before, .section-head::before {
  content: ""; position: absolute; inset: -14% -20%; z-index: -1;
  background: radial-gradient(ellipse closest-side,
    rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.5) 55%, transparent 100%);
  pointer-events: none;
}
h1, h2, h3, .hero-sub, .muted, .term, .kicker {
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.6);
}
.eyebrow.warn { color: var(--amber); }
.muted { color: var(--muted); line-height: 1.7; }
.small { font-size: 13px; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
em { font-family: var(--serif); font-style: italic; color: var(--blue); }

h2 {
  font-size: clamp(30px, 4.6vw, 58px); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.08; margin-bottom: 18px;
}

.term {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em;
  color: #57e6a8; margin: 18px 0 10px;
}
.term b { color: var(--green); }
.warn-term { color: #d8a05a; }
.warn-term b { color: var(--amber); }

/* glass cards — machined: hairline border, top-edge light, corner ticks */
.glass-card {
  position: relative;
  background: linear-gradient(160deg, rgba(10, 14, 22, 0.72), rgba(4, 6, 11, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: clamp(26px, 3.4vw, 52px);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.glass-card::before, .module-copy::before {
  content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}
.glass-card::after, .module-copy::after {
  --tick: rgba(61, 236, 255, 0.45);
  content: ""; position: absolute; inset: 7px; pointer-events: none; opacity: 0.6;
  background:
    linear-gradient(var(--tick) 0 0) top left / 10px 1px,
    linear-gradient(var(--tick) 0 0) top left / 1px 10px,
    linear-gradient(var(--tick) 0 0) top right / 10px 1px,
    linear-gradient(var(--tick) 0 0) top right / 1px 10px,
    linear-gradient(var(--tick) 0 0) bottom left / 10px 1px,
    linear-gradient(var(--tick) 0 0) bottom left / 1px 10px,
    linear-gradient(var(--tick) 0 0) bottom right / 10px 1px,
    linear-gradient(var(--tick) 0 0) bottom right / 1px 10px;
  background-repeat: no-repeat;
  transition: opacity 0.4s;
}
.glass-card:hover::after, .module-copy:hover::after { opacity: 1; }

/* reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(46px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ hero ============ */
.hero { justify-content: center; }
.hero-inner { max-width: 760px; }
.hero .dd-sig { margin-bottom: 34px; }
.kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em;
  color: var(--muted); margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(44px, 7.4vw, 96px); line-height: 1.02;
  font-weight: 700; letter-spacing: -0.03em; margin-bottom: 26px;
  text-shadow: 0 0 60px rgba(0,0,0,0.9);
}
.hero-title .serif { color: #e8ecf5; }
.hero-sub { max-width: 520px; color: var(--muted); line-height: 1.75; margin-bottom: 36px; }

.btn-glass {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em;
  color: var(--ink); text-decoration: none; cursor: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}
.btn-glass:hover {
  border-color: rgba(61, 236, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 30px rgba(61, 236, 255, 0.16),
    0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}
.btn-glass .arrow { transition: transform 0.35s; }
.btn-glass:hover .arrow { transform: translateX(5px); }

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint span {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, var(--cyan));
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); } 100% { opacity: 0; } }

/* ============ problem ============ */
.problem { align-items: flex-start; }
.problem-copy { max-width: 640px; position: relative; z-index: 3; }
.problem h2 { font-size: clamp(36px, 5.4vw, 72px); }
.problem em { color: var(--amber); }
.debris { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.debris span {
  position: absolute;
  font-family: var(--mono); font-size: clamp(10px, 1vw, 13px); letter-spacing: 0.06em;
  color: rgba(255, 176, 86, 0.75);
  border: 1px solid rgba(255, 120, 100, 0.25);
  background: rgba(40, 14, 10, 0.35);
  padding: 7px 12px; border-radius: 8px; white-space: nowrap;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: drift var(--dur, 8s) ease-in-out infinite alternate;
}
.debris span:nth-child(1) { top: 16%; left: 56%; --dur: 7s; }
.debris span:nth-child(2) { top: 26%; left: 74%; --dur: 9s; animation-delay: -2s; }
.debris span:nth-child(3) { top: 40%; left: 62%; --dur: 6.5s; animation-delay: -4s; }
.debris span:nth-child(4) { top: 55%; left: 78%; --dur: 8.5s; animation-delay: -1s; }
.debris span:nth-child(5) { top: 67%; left: 58%; --dur: 7.5s; animation-delay: -3s; }
.debris span:nth-child(6) { top: 78%; left: 70%; --dur: 9.5s; animation-delay: -5s; }
.debris span:nth-child(7) { top: 12%; left: 38%; --dur: 8s; animation-delay: -6s; }
.debris span:nth-child(8) { top: 84%; left: 30%; --dur: 7s; animation-delay: -2.5s; }
.debris span:nth-child(9) { top: 30%; left: 88%; --dur: 10s; animation-delay: -7s; }
@keyframes drift {
  from { transform: translate(0, 0) rotate(-2deg); }
  to { transform: translate(-26px, 22px) rotate(3deg); }
}

/* ============ about ============ */
.about .glass-card { max-width: 980px; }
.big-statement {
  font-size: clamp(22px, 2.9vw, 38px); font-weight: 500; line-height: 1.4;
  letter-spacing: -0.01em; margin-bottom: 22px;
}
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 22px; margin-top: 44px;
}
.stat { border-left: 1px solid var(--stroke); padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.stat .num {
  font-size: clamp(38px, 4.4vw, 62px); font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ============ modules (services) ============ */
.svc-intro { align-items: center; text-align: center; }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; }
.section-head.center .muted { max-width: 520px; margin: 0 auto; }

.module { justify-content: center; }
.module-copy {
  position: relative;
  max-width: 460px; width: 100%;
  background: linear-gradient(160deg, rgba(10, 14, 22, 0.7), rgba(4, 6, 11, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 16px;
  padding: clamp(26px, 3vw, 40px);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.module-copy:hover {
  border-color: rgba(61, 236, 255, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(61, 236, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.module-copy.left { margin-right: auto; }
.module-copy.right { margin-left: auto; }
.mod-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--muted); margin-bottom: 16px; text-transform: lowercase;
}
.mod-label b { color: var(--cyan); font-weight: 600; }
.module-copy h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.mod-tag {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--blue); margin-bottom: 20px;
}
.module-copy ul { list-style: none; }
.module-copy li {
  font-size: 14px; color: var(--muted); padding: 8px 0 8px 20px;
  position: relative; line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.3s, padding-left 0.3s;
}
.module-copy li:last-child { border-bottom: 0; }
.module-copy li::before {
  content: "◇"; position: absolute; left: 1px; top: 9px;
  color: rgba(63, 255, 178, 0.65); font-size: 10px;
  transition: color 0.3s;
}
.module-copy li:hover { color: #cfd7e4; padding-left: 24px; }
.module-copy li:hover::before { color: var(--green); }

.mod-enter {
  margin-top: 22px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-radius: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--green); text-transform: lowercase;
  background: linear-gradient(180deg, rgba(63, 255, 178, 0.07), rgba(63, 255, 178, 0.025));
  border: 1px solid rgba(63, 255, 178, 0.28);
  box-shadow: inset 0 1px 0 rgba(63, 255, 178, 0.12);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.mod-enter:hover {
  background: linear-gradient(180deg, rgba(63, 255, 178, 0.14), rgba(63, 255, 178, 0.05));
  border-color: rgba(63, 255, 178, 0.65);
  box-shadow: inset 0 1px 0 rgba(63, 255, 178, 0.18), 0 0 26px rgba(63, 255, 178, 0.16);
}
.mod-enter .hint { color: var(--muted); font-size: 10px; letter-spacing: 0.1em; }

/* ============ deep-dive mode ============ */
#dive {
  --dive-accent: var(--green);
  position: fixed; inset: 0; z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity 0.55s ease;
}
#dive.on { opacity: 1; pointer-events: auto; }

/* world atmosphere layers */
#dive-tint { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; }
#dive-flash { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; }
#dive-flash.go { animation: dive-flash 1.2s cubic-bezier(0.1, 0.6, 0.3, 1) both; }
@keyframes dive-flash {
  0% { opacity: 0.95; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1); }
}

/* the chosen card expands into its world */
.module-copy.expanding {
  transform: scale(1.18) !important;
  opacity: 0 !important;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.55s ease;
}

/* per-world UI theming */
#dive-label b { color: var(--dive-accent); }
#dive-env {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--dive-accent); text-transform: lowercase;
  margin-top: 7px; opacity: 0.85;
}
#dive .dive-stage-label { color: var(--dive-accent); }
#dive .dive-dots i.on {
  background: var(--dive-accent);
  box-shadow: 0 0 10px var(--dive-accent);
}
#dive .dive-panel {
  border-color: color-mix(in srgb, var(--dive-accent) 30%, rgba(255, 255, 255, 0.12));
}
#dive .dive-panel::after {
  --tick: color-mix(in srgb, var(--dive-accent) 60%, transparent);
}
body.diving #journey, body.diving .rail { opacity: 0; pointer-events: none; }
#journey, .rail { transition: opacity 0.5s ease; }

.dive-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 86px clamp(20px, 4vw, 56px) 0;
}
#dive-label { margin: 0; }
#dive-exit {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--muted); background: var(--glass);
  border: 1px solid var(--stroke); border-radius: 999px; padding: 10px 18px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color 0.3s, border-color 0.3s;
}
#dive-exit:hover { color: var(--red); border-color: rgba(255, 93, 108, 0.5); }

.dive-panel {
  position: absolute; right: clamp(20px, 5vw, 80px); top: 50%;
  transform: translateY(-50%);
  max-width: 430px; width: min(430px, 86vw);
}
.dive-panel.swap > * { animation: dive-swap 0.5s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
@keyframes dive-swap {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.dive-stage-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--green); text-transform: lowercase; margin-bottom: 14px;
}
#dive-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
#dive-body { color: var(--muted); line-height: 1.75; font-size: 15px; }
#dive-cta { margin-top: 24px; }
#dive-cta[hidden] { display: none; }

.dive-dots {
  position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px;
}
.dive-dots i {
  width: 32px; height: 2px; border-radius: 2px;
  background: rgba(255,255,255,0.16); transition: background 0.4s, box-shadow 0.4s;
}
.dive-dots i.on { background: var(--green); box-shadow: 0 0 10px rgba(63,255,178,0.7); }

.dive-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em;
  color: var(--muted); text-transform: lowercase;
}

@media (max-width: 720px) {
  .dive-panel { right: 50%; transform: translate(50%, -50%); top: 56%; }
  .dive-top { padding-top: 76px; }
}

/* ============ method ============ */
.method .section-head { margin-bottom: 7vh; }
.method-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px; max-width: 1240px;
}
.step .roman {
  font-family: var(--serif); font-style: italic; font-size: clamp(40px, 4.5vw, 64px);
  color: var(--blue); display: block; margin-bottom: 14px; line-height: 1;
}
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; line-height: 1.3; }
.step p { color: var(--muted); line-height: 1.7; font-size: 15px; }

/* ============ reviews ============ */
.reviews .section-head { margin-bottom: 7vh; }
.review-orbit {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px; max-width: 1240px;
}
.review { padding: 28px; border-radius: 14px; }
.review blockquote {
  font-family: var(--serif); font-style: italic; font-size: 19px;
  line-height: 1.55; color: #dce3ef; margin-bottom: 20px;
}
.review figcaption { display: flex; flex-direction: column; gap: 3px; }
.review figcaption b { font-size: 14px; }
.review figcaption span { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }

/* ============ field work — portals ============ */
.work { align-items: center; text-align: center; }
.work .section-head { margin-bottom: 6vh; }
.work-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px; max-width: 1240px; width: 100%; text-align: left;
}
.work-card {
  --wc: var(--cyan);
  position: relative; cursor: none;
  background: linear-gradient(160deg, rgba(10, 14, 22, 0.72), rgba(4, 6, 11, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 16px;
  padding: clamp(24px, 2.6vw, 38px);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}
.work-card.light { --wc: #f5f3ee; }
.work-card.gold { --wc: #d4af6a; }
.work-card.ember { --wc: #ff8c42; }
.work-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--wc), transparent);
  opacity: 0.45; transition: opacity 0.4s;
}
.work-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--wc) 12%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.work-card:hover, .work-card:focus-visible {
  border-color: color-mix(in srgb, var(--wc) 45%, transparent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 50px color-mix(in srgb, var(--wc) 12%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}
.work-card:hover::before, .work-card:hover::after { opacity: 1; }
.work-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--muted); text-transform: lowercase; margin-bottom: 14px;
}
.work-card h3 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.work-desc { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.work-theme { display: flex; gap: 7px; margin-bottom: 20px; }
.work-theme i {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18); display: inline-block;
}
.work-enter {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: lowercase;
  color: var(--wc);
  background: color-mix(in srgb, var(--wc) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--wc) 30%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--wc) 12%, transparent);
  transition: background 0.3s, border-color 0.3s;
}
.work-card:hover .work-enter {
  background: color-mix(in srgb, var(--wc) 13%, transparent);
  border-color: color-mix(in srgb, var(--wc) 60%, transparent);
}
.work-enter b { font-weight: 400; transition: transform 0.3s; }
.work-card:hover .work-enter b { transform: translateX(5px); }

/* ============ contact ============ */
.contact { gap: 8vh; }
.contact-card { max-width: 780px; width: 100%; margin: 0 auto; }
.contact-card .term { margin: 0 0 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
#contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.form-status { font-size: 14px; line-height: 1.5; }
.form-status.ok { color: var(--green); }
.form-status.error { color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#contact-form input, #contact-form textarea {
  width: 100%; padding: 15px 18px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--stroke);
  color: var(--ink); font-family: var(--sans); font-size: 15px;
  outline: none; transition: border-color 0.3s, box-shadow 0.3s; resize: vertical;
}
#contact-form input:focus, #contact-form textarea:focus {
  border-color: rgba(61, 236, 255, 0.5); box-shadow: 0 0 20px rgba(61, 236, 255, 0.1);
}
#contact-form ::placeholder { color: #5a6270; }
#contact-form .btn-glass { align-self: flex-start; }
.contact-card .small { margin-top: 18px; }
.contact-card a { color: var(--cyan); text-decoration: none; }

/* footer */
.site-footer {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px; padding-top: 6vh; border-top: 1px solid var(--stroke);
}
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--cyan); margin-bottom: 6px; }
.foot-col a, .foot-col span {
  font-size: 13px; color: var(--muted); text-decoration: none;
  font-family: var(--mono); letter-spacing: 0.08em; line-height: 1.7;
}
.foot-col a:hover { color: var(--ink); }
.copyright {
  grid-column: 1 / -1; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; color: #5a6270; padding-top: 20px;
}

/* ============ responsive ============ */
@media (max-width: 720px) {
  .main-nav a:not(.nav-cta) { display: none; }
  .rail { display: none; }
  #hud { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .dd-sig .flow { display: none; }
  .module-copy.left, .module-copy.right { margin: 0 auto; }
  .debris span:nth-child(n+6) { display: none; }

  .site-header { padding: 14px 18px; }
  .logo { font-size: 20px; }
  .panel { padding: 11vh 18px; }
  .hero-title { font-size: clamp(34px, 11vw, 60px); }
  .hero-sub { font-size: 14px; margin-bottom: 28px; }
  .hero .dd-sig { margin-bottom: 24px; }
  h2 { font-size: clamp(26px, 8vw, 40px); }
  .problem h2 { font-size: clamp(30px, 9.6vw, 48px); }
  .big-statement { font-size: clamp(19px, 5.6vw, 26px); }
  .glass-card, .module-copy { padding: 22px 18px; }
  .stats { gap: 14px; margin-top: 28px; grid-template-columns: 1fr 1fr; }
  .stat { padding-left: 14px; }
  .stat .num { font-size: clamp(30px, 9vw, 40px); }
  .btn-glass { padding: 13px 22px; font-size: 12px; }
  .review blockquote { font-size: 17px; }
  .scroll-hint { bottom: 22px; }
  #sfx { bottom: 18px; padding: 7px 12px; }

  /* dive overlay on small screens */
  .dive-top { padding-top: 68px; }
  #dive-exit { padding: 9px 14px; }
  .dive-panel { max-height: 56vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .dive-hint { display: none; }
  .dive-dots { bottom: 46px; }

  .work-grid { gap: 14px; }
  .work-card { padding: 22px 18px; }
}

/* very narrow phones */
@media (max-width: 380px) {
  .hero-title { font-size: 30px; }
  .chip { padding: 6px 10px; font-size: 13px; }
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .debris span { animation: none; }
}
