/* ============================================================
   DTR LABS — Dreams to Reality
   Scroll-scrubbed video journey · editorial type · glassmorphism
   Display: Bricolage Grotesque · Emphasis: Instrument Serif (italic)
   Body: DM Sans
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --indigo:      #6d4aff;
  --indigo-600:  #5b3df5;
  --violet:      #8b5cf6;
  --magenta:     #c026d3;
  --lilac:       #c4b5fd;
  --teal:        #22d3ee;

  /* dark surfaces (intro + contact) */
  --bg:          #06060f;
  --bg-2:        #0a0a1a;
  --ink-deep:    #03030a;
  --text:        #eef0ff;
  --text-muted:  #a6abce;
  --text-dim:    #6e7299;

  /* light surfaces (over the white video) */
  --ink:         #14102e;   /* primary text on light video */
  --ink-soft:    #43406a;   /* secondary text on light video */
  --ink-dim:     #6f6b95;

  /* glass on dark */
  --glass-bg:        rgba(255, 255, 255, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --glass-border:    rgba(255, 255, 255, 0.10);
  --glass-hi:        rgba(255, 255, 255, 0.16);

  /* glass on light (frosted panels over video) */
  --glassL-bg:     rgba(255, 255, 255, 0.34);
  --glassL-border: rgba(255, 255, 255, 0.75);
  --glassL-shadow: 0 26px 60px -26px rgba(35, 22, 80, .42);

  /* effects */
  --grad: linear-gradient(110deg, #8b5cf6 0%, #6d4aff 45%, #c026d3 100%);
  --grad-soft: linear-gradient(135deg, rgba(109,74,255,.22), rgba(192,38,211,.18));
  --grad-red: linear-gradient(115deg, #ff5e62 0%, #e10f2b 52%, #ff3d2e 100%);  /* emphasis text */
  --ring: 0 0 0 1px var(--glass-border), inset 0 1px 0 0 var(--glass-hi);
  --shadow-card: 0 18px 50px -20px rgba(0, 0, 0, .65);

  /* layout */
  --maxw: 1200px;
  --radius: 20px;
  --radius-sm: 14px;
  --gutter: clamp(1.1rem, 4vw, 2.6rem);

  /* type */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-serif:   "Instrument Serif", Georgia, serif;
  --font-body:    "DM Sans", system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
}
body.is-locked { overflow: hidden; height: 100vh; }
/* pages that opt out of the custom glass-brain cursor use the normal pointer */
body.cursor-native { cursor: auto; }
body.cursor-native .cursor, body.cursor-native .cursor-dot { display: none; }
@media (max-width: 900px) { body { cursor: auto; } }

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

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; }

::selection { background: rgba(139, 92, 246, .35); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ink-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--indigo), var(--magenta)); border-radius: 99px; border: 3px solid var(--ink-deep); }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradShift 6s linear infinite;
}
@keyframes gradShift { to { background-position: 200% center; } }

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--ring), var(--shadow-card);
  border-radius: var(--radius);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.6rem;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 2rem; height: 2px; background: var(--grad); transform: translateY(-50%);
}

/* ---------- Scroll progress ---------- */
.scroll-progress { display: none; }

/* ---------- Custom cursor: glass brain + glowing liquid + ocean waves ---------- */
/* soft aura that trails the brain */
.cursor {
  position: fixed; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 1000;
  background: radial-gradient(circle, rgba(139,92,246,.28), transparent 70%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, opacity .3s;
}
.cursor.is-hover { width: 78px; height: 78px; background: radial-gradient(circle, rgba(192,38,211,.32), transparent 70%); }
.cursor.is-hidden { opacity: 0; }

/* the glass brain — sits on the pointer (SVG injected from JS) */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 66px; height: 54px;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 1001;
  filter: drop-shadow(0 3px 5px rgba(35,10,80,.5)) drop-shadow(0 0 9px rgba(139,92,246,.5));
  transition: opacity .3s;
}
.cursor-dot svg { width: 100%; height: 100%; display: block; overflow: visible;
  transform-origin: center; transition: transform .2s var(--ease); }
.cursor-dot.is-hover svg { transform: scale(1.16); }
.cursor-dot.is-hidden { opacity: 0; }

/* glowing liquid inside the glass */
.brain-liquid { filter: drop-shadow(0 0 4px rgba(170,140,255,.9)); }
.brain-surface-line { filter: drop-shadow(0 0 2px rgba(220,195,255,1)); }
.brain-drop { filter: drop-shadow(0 0 3px rgba(200,170,255,.9)); }

/* tiny rising bubbles in the liquid */
.brain-bubble { animation: bubbleRise 3.2s ease-in infinite; opacity: 0; }
.brain-bubble.b2 { animation-duration: 4.1s; animation-delay: 1.4s; }
@keyframes bubbleRise {
  0%   { transform: translateY(7px);  opacity: 0; }
  18%  { opacity: .85; }
  100% { transform: translateY(-22px); opacity: 0; }
}

/* ocean-style waves radiating from the brain */
.brain-wave { transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: brainWave 2.6s ease-out infinite; }
.brain-wave.w2 { animation-delay: .87s; }
.brain-wave.w3 { animation-delay: 1.74s; }
.cursor-dot.is-hover .brain-wave { stroke: var(--magenta); }
@keyframes brainWave {
  0%   { transform: scale(.5);   opacity: 0; }
  16%  { opacity: .6; }
  100% { transform: scale(1.95); opacity: 0; }
}

@media (max-width: 900px) { .cursor, .cursor-dot { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 99px; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  isolation: isolate;
}
.btn svg { transition: transform .3s var(--ease); }
.btn--primary { color: #fff; background: var(--grad); background-size: 200% auto; box-shadow: 0 10px 30px -8px rgba(109,74,255,.7); }
.btn--primary:hover { background-position: right center; box-shadow: 0 14px 40px -6px rgba(192,38,211,.75); transform: translateY(-2px); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { color: var(--text); background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); }
.btn--ghost:hover { background: var(--glass-bg-strong); border-color: var(--glass-hi); transform: translateY(-2px); }
.btn--sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ============================================================
   INTRO / LANDING
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: radial-gradient(130% 90% at 50% -10%, #14122e 0%, var(--bg) 55%, var(--ink-deep) 100%);
  text-align: center; overflow: hidden;
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* looping background video behind the landing (scrim keeps text readable,
   auroras/grid render on top of it for ambience) */
.intro__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.intro__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro__media-scrim { position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(6,6,15,.30) 0%, rgba(6,6,15,.62) 100%),
    linear-gradient(180deg, rgba(6,6,15,.55) 0%, rgba(6,6,15,.32) 42%, rgba(6,6,15,.75) 100%);
}
.intro__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.intro__aurora { position: absolute; border-radius: 50%; filter: blur(95px); opacity: .55; mix-blend-mode: screen; will-change: transform; }
.intro__aurora--1 { width: 48vw; height: 48vw; background: radial-gradient(circle, var(--indigo), transparent 65%); top: -12%; left: -6%; animation: drift1 22s ease-in-out infinite; }
.intro__aurora--2 { width: 42vw; height: 42vw; background: radial-gradient(circle, var(--magenta), transparent 65%); top: 28%; right: -12%; animation: drift2 26s ease-in-out infinite; }
.intro__aurora--3 { width: 38vw; height: 38vw; background: radial-gradient(circle, var(--teal), transparent 70%); bottom: -16%; left: 32%; opacity: .28; animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(12vw, 9vh) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-11vw, 7vh) scale(1.1); } }
@keyframes drift3 { 50% { transform: translate(7vw, -9vh) scale(1.2); } }
.intro__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 0%, transparent 72%);
}
.intro__noise { position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.intro__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 2rem var(--gutter); }

.intro__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-size: .82rem; font-weight: 500; letter-spacing: .03em;
  color: var(--lilac); padding: .45rem 1rem; border-radius: 99px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  opacity: 0; transform: translateY(16px); animation: introUp .8s var(--ease) .15s forwards;
}
.intro__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

.intro__logo { display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 2rem;
  opacity: 0; transform: translateY(16px); animation: introUp .8s var(--ease) .28s forwards; }
.intro__logo-mark { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -.04em; color: #fff; line-height: 1; }
.intro__logo-t { color: var(--indigo); }
.intro__logo-divider { width: 1px; height: 30px; background: var(--glass-hi); }
.intro__logo-tag { font-size: .7rem; line-height: 1.05; color: var(--text-muted); font-family: var(--font-body); font-weight: 500; letter-spacing: .05em; text-align: left; }

.intro__title {
  font-size: clamp(2.8rem, 9vw, 6rem); line-height: .98; color: #fff; margin-bottom: 1.4rem;
  opacity: 0; transform: translateY(20px); animation: introUp .9s var(--ease) .42s forwards;
}
.intro__title i { font-family: var(--font-serif); font-style: italic; font-weight: 400;
  background: var(--grad-red); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: gradShift 6s linear infinite; }

.intro__sub {
  font-size: clamp(1rem, 2.2vw, 1.22rem); color: var(--text-muted); max-width: 540px; margin-bottom: 2.6rem;
  opacity: 0; transform: translateY(20px); animation: introUp .9s var(--ease) .56s forwards;
}

@keyframes introUp { to { opacity: 1; transform: none; } }

/* Enter button with pulsing ring */
.enter-btn {
  position: relative; display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff;
  padding: 1.15rem 2.4rem; border-radius: 99px;
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.06));
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-hi);
  box-shadow: var(--ring), 0 18px 50px -16px rgba(10,8,26,.7);
  transition: box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  opacity: 0; transform: translateY(20px); animation: introUp .9s var(--ease) .7s forwards;
}
.enter-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.12));
  border-color: rgba(255,255,255,.55);
  box-shadow: var(--ring), 0 22px 60px -14px rgba(109,74,255,.5);
}
.enter-btn:hover svg { transform: translateX(5px); }
.enter-btn svg { transition: transform .3s var(--ease); }
.enter-btn__ring { position: absolute; inset: -6px; border-radius: 99px; border: 1.5px solid rgba(196,181,253,.5); animation: enterRing 2.4s ease-out infinite; pointer-events: none; }
@keyframes enterRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.28); opacity: 0; } }

.intro__hint { display: block; margin-top: 1.6rem; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); font-family: var(--font-body);
  opacity: 0; animation: introUp 1s var(--ease) .9s forwards; }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 150; padding: .5rem 0;
  transition: opacity .6s var(--ease), transform .6s var(--ease), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
  opacity: 0; transform: translateY(-100%); pointer-events: none; }
.nav.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.nav.is-scrolled { background: rgba(6,6,15,.55); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); border-bottom-color: var(--glass-border); }
.nav.on-light.is-scrolled { background: rgba(255,255,255,.5); border-bottom-color: rgba(255,255,255,.6); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin-inline: auto; padding: .6rem var(--gutter); }

.logo { display: inline-flex; align-items: center; gap: .7rem; transition: color .4s; }
.logo__mark { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.04em; color: #fff; line-height: 1; transition: color .4s; }
.logo__t { color: var(--indigo); }
.logo__divider { width: 1px; height: 26px; background: var(--glass-hi); transition: background .4s; }
.logo__tag { font-size: .62rem; line-height: 1.05; color: var(--text-muted); font-family: var(--font-body); font-weight: 500; letter-spacing: .04em; transition: color .4s; }
.logo--sm .logo__mark { font-size: 1.4rem; }
/* nav over the bright video → dark logo */
.nav.on-light .logo__mark { color: #14102e; }
.nav.on-light .logo__tag { color: var(--ink-soft); }
.nav.on-light .logo__divider { background: rgba(20,16,46,.25); }

/* ============================================================
   EXPERIENCE / STAGE  (scroll-scrubbed video)
   ============================================================ */
.experience { position: relative; height: 500vh; background: #eef0f4; }

.stage { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; }

.stage__videos { position: absolute; inset: 0; z-index: 0; background: #eef0f4; }
.stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s linear; will-change: opacity; }
.stage__video.is-active { opacity: 1; }

/* left light scrim to keep the typed copy readable over the bright footage */
.stage__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(244,244,250,.92) 0%, rgba(244,244,250,.66) 30%, rgba(244,244,250,.12) 55%, transparent 70%);
  transition: opacity .5s linear; }

/* ---- page overlays ---- */
.page-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; pointer-events: none;
  padding-top: 4.5rem;   /* clear the fixed nav so page text never sits under it */
  opacity: 0; will-change: opacity, transform;
  transition: opacity .5s var(--ease), transform .5s var(--ease); }
.page-inner { max-width: 640px; padding-inline: clamp(1.4rem, 7vw, 6rem); width: 100%; }

.page-eyebrow { display: inline-block; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--indigo-600); margin-bottom: 1.1rem; }

.page-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.0; letter-spacing: -.025em;
  color: var(--ink); margin-bottom: 1.3rem; min-height: 1.1em;
  text-shadow: 0 2px 30px rgba(244,244,250,.6);
}
.page-title i {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0;
  background: var(--grad-red); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: gradShift 6s linear infinite;
}
.page-sub {
  font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.6; color: var(--ink-soft); max-width: 480px;
  min-height: 1.4em; text-shadow: 0 1px 20px rgba(244,244,250,.7);
}

/* typewriter caret */
.type-caret { display: inline-block; width: .06em; min-width: 2px; margin-left: .04em;
  background: currentColor; color: var(--indigo); align-self: stretch; animation: caretBlink 1s steps(1) infinite; }
.page-title .type-caret { height: .92em; transform: translateY(.06em); }
.page-sub .type-caret { height: 1.05em; transform: translateY(.18em); opacity: .8; }
/* Slide carets sit inside non-flex text, so give them an explicit height */
.panel--idea .type-caret,
.panel--solution .type-caret { height: 1em; transform: translateY(.08em); }
@keyframes caretBlink { 50% { opacity: 0; } }

/* ---- glass stat panels ---- */
.page-panels { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem;
  opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.page-overlay.show-panels .page-panels { opacity: 1; transform: none; }
.glass-stat {
  flex: 1 1 0; min-width: 168px; padding: 1.4rem 1.5rem; border-radius: var(--radius);
  background: var(--glassL-bg);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glassL-border);
  box-shadow: var(--glassL-shadow), inset 0 1px 0 rgba(255,255,255,.6);
}
.glass-stat__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--ink); margin-bottom: .5rem; letter-spacing: -.02em; }
.glass-stat__label { font-size: .84rem; line-height: 1.4; color: var(--ink-soft); }

/* final page: let it sit a touch higher and centered-ish */
.page-overlay--final .page-inner { max-width: 720px; }

/* ---- stage counter + scroll hint ---- */
.stage__counter { position: absolute; z-index: 3; top: 6.5rem; right: clamp(1.2rem,5vw,3rem);
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; color: var(--ink-soft); letter-spacing: .12em;
  background: var(--glassL-bg); border: 1px solid var(--glassL-border); padding: .5rem .9rem; border-radius: 99px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.stage__counter b { color: var(--ink); font-weight: 700; }

.stage__hint { position: absolute; z-index: 3; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim);
  transition: opacity .5s var(--ease); }
.stage__hint-mouse { width: 24px; height: 38px; border: 2px solid rgba(20,16,46,.35); border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.stage__hint-mouse span { width: 3px; height: 7px; background: var(--indigo); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(10px); } }
.stage__hint.is-hidden { opacity: 0; }

/* ============================================================
   CLOSER / CONTACT  (dark — preserved)
   ============================================================ */
.closer { position: relative; padding: clamp(5rem, 12vw, 9rem) 0 0; text-align: center; overflow: hidden;
  background-color: #06060f;
  background-image:
    linear-gradient(180deg, rgba(6,6,15,.58) 0%, rgba(6,6,15,.72) 55%, rgba(3,3,10,.92) 100%),
    url("../assets/cosmic-bg.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat; }
.closer__glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 60% at 50% 22%, rgba(109,74,255,.3), transparent 70%); }
.closer__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.closer__title { font-size: clamp(2.4rem, 7vw, 4.6rem); margin-bottom: 1.2rem; }
.closer__sub { color: var(--text-muted); font-size: 1.15rem; max-width: 560px; margin-bottom: 2.4rem; }
.closer__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.6rem; }
.socials { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.social { display: flex; flex-direction: column; padding: .9rem 1.4rem; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600; transition: transform .3s var(--ease), border-color .3s; }
.social:hover { transform: translateY(-3px); border-color: var(--glass-hi); }
.social small { color: var(--text-muted); font-weight: 400; font-size: .78rem; }

.footer { position: relative; z-index: 1; margin-top: 5rem; border-top: 1px solid var(--glass-border); padding: 2.4rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; color: var(--text-muted); font-size: .9rem; }
/* credit/copyright on the left, logo on the right */
.footer__inner > .footer__muted { order: 1; }
.footer__inner > p:not(.footer__muted) { order: 2; }
.footer__inner > .logo { order: 3; }
.footer__muted { color: var(--text-dim); font-family: var(--font-display); }
.footer__credit { color: var(--lilac); font-weight: 600; transition: color .25s; }
.footer__credit:hover { color: #fff; }

/* ============================================================
   NAV LINKS  (centered section links + Get-in-touch CTA)
   ============================================================ */
.nav__links { display: flex; gap: 2.2rem; }
.nav__link { font-family: var(--font-body); font-weight: 500; font-size: .95rem; color: var(--text-muted); letter-spacing: .01em; transition: color .25s; }
.nav__link:hover { color: #fff; }
.nav__link--active { color: #fff; }
.nav__link--active::after { content: ""; display: block; height: 2px; width: 100%; margin-top: 3px; background: var(--grad); border-radius: 2px; }
.nav.on-light .nav__link { color: var(--ink-soft); }
.nav.on-light .nav__link:hover, .nav.on-light .nav__link--active { color: var(--ink); }
.nav__cta { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--lilac); padding: .5rem 1rem; border-radius: 99px; transition: color .25s, background .25s; }
.nav__cta:hover { color: #fff; background: var(--glass-bg); }
.nav.on-light .nav__cta { color: var(--indigo-600); }
.nav.on-light .nav__cta:hover { color: var(--indigo-600); background: rgba(20,16,46,.06); }

/* Mobile menu toggle (hamburger) — hidden on desktop */
.nav__toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 2.6rem; height: 2.6rem; padding: 0;
  border-radius: 12px; cursor: pointer;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  -webkit-tap-highlight-color: transparent;
  transition: background .25s, border-color .25s;
}
.nav__toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav.on-light .nav__toggle span { background: var(--ink); }
.nav.is-open .nav__toggle { background: var(--glass-bg-strong); border-color: var(--glass-hi); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   SLIDES — Idea · Solution · Contact
   The video journey ENDS at a clean line, then each topic plays
   out as its own set of full-screen slides (one idea per screen).
   Scrolling is free and continuous — no snap / lock.
   (.panel__bg is the mount point for scroll video later.)
   ============================================================ */
.panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6.5rem, 13vh, 10rem) 0 clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  background: var(--bg);
}
.panel + .panel,
.experience + .panel { border-top: 1px solid rgba(255, 255, 255, .05); }
.panel > .container { position: relative; z-index: 1; width: 100%; }

/* per-topic tint */
.panel--idea     { background: radial-gradient(115% 80% at 12% -12%, #15122f 0%, var(--bg) 60%); }
.panel--solution { background: radial-gradient(115% 80% at 88% -12%, #17112c 0%, var(--bg) 60%); }
.panel--contact  { background: radial-gradient(120% 100% at 50% -12%, #141033 0%, var(--ink-deep) 72%); }

/* soft aurora glows (placeholder ambience until video is added) */
.panel__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ---- fixed background video behind all 5 slides (Idea + Solution) ---- */
.slide-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1s var(--ease);
}
.slide-bg.is-ready { opacity: 1; }
.slide-bg__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* dark scrim keeps the slide text readable over the footage */
.slide-bg__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 0%, transparent 0%, rgba(6,6,15,.5) 72%),
    linear-gradient(180deg, rgba(6,6,15,.55) 0%, rgba(6,6,15,.35) 45%, rgba(6,6,15,.7) 100%);
}
/* let the fixed video show through the slides */
#ideaMain .panel--idea,
#solutionMain .panel--solution { background: transparent; }
#ideaMain .panel--idea .panel__bg,
#solutionMain .panel--solution .panel__bg { display: none; }
#ideaMain .panel,
#solutionMain .panel { border-top: none; }
#ideaMain > .panel,
#ideaMain > .footer,
#solutionMain > .panel,
#solutionMain > .footer { position: relative; z-index: 1; }
#ideaMain .footer,
#solutionMain .footer { background: var(--ink-deep); }
.info__aurora { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .26; mix-blend-mode: screen; }
.info__aurora--a { width: 42vw; height: 42vw; background: radial-gradient(circle, var(--indigo), transparent 65%); top: -12%; left: -8%; }
.info__aurora--b { width: 36vw; height: 36vw; background: radial-gradient(circle, var(--magenta), transparent 65%); bottom: -16%; right: -6%; }

/* opening statement of each topic */
.panel__hero { display: flex; flex-direction: column; }
.panel__title {
  font-size: clamp(2.9rem, 8.6vw, 7.5rem); line-height: .95; letter-spacing: -.035em; margin: .5rem 0 1.6rem; max-width: 15ch;
  background: linear-gradient(174deg, #ffffff 0%, #ffffff 40%, #b6b6cc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.panel__title i {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: gradShift 6s linear infinite;
}
.panel__lead { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--text-muted); max-width: 640px; line-height: 1.6; }

/* headings inside content slides */
.kicker { display: inline-block; font-family: var(--font-body); font-size: .76rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--lilac); margin-bottom: 1.4rem; }
.block__title { font-size: clamp(1.7rem, 3.6vw, 2.8rem); color: #fff; letter-spacing: -.02em; max-width: 20ch; margin-bottom: 1rem; }
.block__text { color: var(--text-muted); max-width: 640px; font-size: 1.08rem; line-height: 1.6; }

/* Idea · the problem */
.problem-list { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.4rem; }
.problem { display: flex; gap: 1.6rem; padding: 1.9rem; border-radius: var(--radius); background: var(--glass-bg); border: 1px solid var(--glass-border); }
.problem__num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; flex: 0 0 auto; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.problem h3 { font-size: 1.35rem; color: #fff; margin-bottom: .6rem; letter-spacing: -.01em; }
.problem p { color: var(--text-muted); line-height: 1.6; }

/* Idea · stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 1.4rem; }
.stat { padding: 1.7rem 1.5rem; border-radius: var(--radius); background: var(--glass-bg); border: 1px solid var(--glass-border); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.02em; margin-bottom: .5rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--text-muted); font-size: .9rem; line-height: 1.45; }

/* Idea · invisible wall */
.wall-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; margin: 2rem 0; }
.chip { padding: 1.2rem 1rem; border-radius: var(--radius-sm); background: var(--glass-bg); border: 1px solid var(--glass-border); text-align: center; }
.chip strong { display: block; color: #fff; font-family: var(--font-display); font-weight: 600; margin-bottom: .35rem; }
.chip span { color: var(--text-dim); font-size: .82rem; }
.wall__close { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 2rem); color: #fff; letter-spacing: -.01em; margin-top: .5rem; }
.wall__close i { font-family: var(--font-serif); font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Solution · flow steps */
.flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1.4rem; }
.flow-step { padding: 2rem; border-radius: var(--radius); background: var(--glass-bg); border: 1px solid var(--glass-border); }
.flow-step__num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--lilac); letter-spacing: .1em; }
.flow-step__kind { font-size: .74rem; text-transform: uppercase; letter-spacing: .2em; color: var(--indigo); margin: .9rem 0 .3rem; }
.flow-step h3 { font-size: 1.5rem; color: #fff; margin-bottom: .7rem; letter-spacing: -.01em; }
.flow-step p { color: var(--text-muted); line-height: 1.6; }
.flow-step__tags { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--glass-border); font-size: .82rem; color: var(--text-dim); }

/* Solution · comparison table */
.compare { margin-top: 1.5rem; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--glass-border); background: var(--glass-bg); }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: .95rem 1.1rem; text-align: center; border-bottom: 1px solid var(--glass-border); font-size: .92rem; }
.compare thead th { color: var(--text-muted); font-family: var(--font-body); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; }
.compare thead th:first-child, .compare tbody th { text-align: left; }
.compare tbody th { color: #fff; font-family: var(--font-display); font-weight: 500; }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: none; }
.compare .yes { color: #4ade80; font-weight: 700; }
.compare .no  { color: #5b5f86; }
.compare .mid { color: #fbbf24; font-weight: 600; }
.compare tr.is-dtr { background: rgba(109, 74, 255, .14); }
.compare tr.is-dtr th { color: var(--lilac); font-weight: 700; }

/* Solution · principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.4rem; }
.principle { padding: 1.9rem 1.7rem; border-radius: var(--radius); background: var(--glass-bg); border: 1px solid var(--glass-border); }
.principle h3 { font-size: 1.22rem; color: #fff; margin-bottom: .55rem; letter-spacing: -.01em; }
.principle p { color: var(--text-muted); font-size: .96rem; line-height: 1.55; }

/* inter-slide CTA */
.slide-cta { display: flex; flex-direction: column; gap: .5rem; padding: clamp(3rem, 7vh, 5rem) 0 clamp(4rem, 10vh, 7rem); }
.slide-cta > span { color: var(--text-muted); font-size: 1.1rem; }
.slide-cta a { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.6rem); color: #fff; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .5rem; width: fit-content; transition: gap .25s var(--ease), color .25s; }
.slide-cta a:hover { gap: .95rem; color: var(--lilac); }
.slide-cta a svg { color: var(--indigo); }

/* --- Contact --- */
.contact__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 2rem; margin-top: 3.2rem; text-align: left; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 2rem; }
.contact__block { display: flex; flex-direction: column; }
.contact__block-label { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff; margin-bottom: .9rem; }
.contact__meta { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .35rem; }
.contact__link { display: inline-flex; align-items: baseline; gap: .5rem; color: var(--text); font-family: var(--font-display); font-weight: 500; padding: .25rem 0; transition: color .25s; width: fit-content; }
.contact__link small { color: var(--text-muted); font-weight: 400; font-size: .82rem; }
.contact__link:hover { color: var(--lilac); }

.contact__panel { padding: clamp(1.6rem, 3vw, 2.4rem); }
.contact__form { display: grid; gap: 1.05rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .82rem; color: var(--text-muted); font-family: var(--font-body); }
.field .req { color: var(--magenta); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .98rem; color: var(--text);
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px;
  padding: .85rem 1rem; outline: none; cursor: text;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a6abce' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--indigo); background: var(--glass-bg-strong); box-shadow: 0 0 0 3px rgba(109, 74, 255, .18);
}
.contact__form .btn { justify-content: center; margin-top: .3rem; }
/* Glassmorphism send button */
.contact__form .btn--primary {
  color: var(--text);
  background: var(--grad-soft);
  border: 1px solid var(--glass-hi);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--ring), 0 10px 30px -12px rgba(109,74,255,.5);
}
.contact__form .btn--primary:hover {
  background: var(--glass-bg-strong);
  border-color: var(--glass-hi);
  box-shadow: var(--ring), 0 16px 44px -10px rgba(192,38,211,.55);
  transform: translateY(-2px);
}
.contact__form .btn--primary:hover svg { transform: translateX(4px); }
.contact__note { font-size: .8rem; color: var(--text-dim); text-align: center; }

.contact__success { display: none; text-align: center; padding: 2.4rem 1rem; color: var(--text); }
.contact__success.is-shown { display: block; animation: introUp .6s var(--ease) forwards; }
.contact__success svg { margin: 0 auto 1rem; color: var(--teal); }
.contact__success h3 { font-size: 1.6rem; color: #fff; margin-bottom: .5rem; }
.contact__success p { color: var(--text-muted); }
.panel--contact + .footer { margin-top: clamp(3rem, 6vw, 5rem); }

/* ---- Contact · DTR logo image background + glowing star mark ---- */
.contact-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.contact-bg__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.contact-bg__scrim { position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 32%, rgba(6,6,15,.35) 0%, rgba(6,6,15,.72) 100%),
    linear-gradient(180deg, rgba(6,6,15,.5) 0%, rgba(6,6,15,.38) 45%, rgba(6,6,15,.82) 100%);
}
/* DTR flame logo — frosted-glass corner mark that flares purple every 5s */
/* left/top are set precisely in js/main.js (lockBrandStar); these are a
   pre-JS fallback for a typical landscape screen. transform centres the
   mark on that point so it sits exactly over the ✦ video watermark. */
.brand-star { position: fixed; left: 90.3vw; top: 83.6vh; transform: translate(-50%, -50%); z-index: 320;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  width: clamp(52px, 6vw, 66px); height: clamp(40px, 4.6vw, 54px); padding: clamp(7px, 1vw, 10px);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  animation: starGlow 5s ease-in-out infinite; }
.brand-star img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
@keyframes starGlow {
  0%, 80%, 100% { box-shadow: 0 8px 20px -10px rgba(0,0,0,.55), inset 0 1px 0 0 rgba(255,255,255,.2), 0 0 0 0 rgba(150,120,255,0); }
  90%           { box-shadow: 0 8px 20px -10px rgba(0,0,0,.55), inset 0 1px 0 0 rgba(255,255,255,.2), 0 0 16px 3px rgba(168,140,255,.45); }
}
/* keep the contact content above the image + star */
.panel--contact .panel__hero { position: relative; z-index: 2; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .stage__scrim { background: linear-gradient(180deg, rgba(244,244,250,.9) 0%, rgba(244,244,250,.55) 40%, rgba(244,244,250,.78) 100%); }
  .page-overlay { align-items: flex-start; padding-top: 0; }
  .page-inner { padding-top: calc(4.5rem + 8vh); }
  .page-panels { gap: .8rem; }
  .glass-stat { min-width: calc(50% - .4rem); padding: 1.1rem 1.2rem; }
  .glass-stat__num { font-size: 1.6rem; }
  .stage__counter { top: 5rem; }

  /* slides shrink to content on mobile — no forced full height */
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .nav__inner { position: relative; }
  .nav__links {
    display: flex; flex-direction: column; gap: .15rem;
    position: absolute; top: calc(100% + .5rem); left: var(--gutter); right: var(--gutter);
    padding: .5rem; border-radius: 16px;
    background: rgba(10, 10, 20, .72);
    backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .65);
    transform-origin: top; transform: translateY(-8px) scale(.98);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav.on-light .nav__links .nav__link,
  .nav .nav__links .nav__link { color: var(--text); padding: .9rem 1rem; border-radius: 10px; font-size: 1rem; transition: background .2s; }
  .nav .nav__links .nav__link:hover,
  .nav .nav__links .nav__link--active { color: #fff; background: var(--glass-bg-strong); }
  .nav__links .nav__link--active::after { display: none; }
  .panel { min-height: auto; padding: clamp(4.5rem, 14vh, 7rem) 0 clamp(2.5rem, 8vh, 4rem); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .wall-chips { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .problem { flex-direction: column; gap: .8rem; }
  .contact__grid { grid-template-columns: 1fr; gap: 2.4rem; }
}

@media (max-width: 480px) {
  .glass-stat { min-width: 100%; }
}

/* short viewports: shrink the journey copy so the 86B+/95% panels never clip */
@media (max-height: 800px) {
  .page-overlay { padding-top: 4rem; }
  .page-title { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: .8rem; }
  .page-sub { font-size: clamp(.95rem, 1.8vw, 1.08rem); }
  .page-panels { margin-top: 1.2rem; }
  .glass-stat { padding: 1rem 1.2rem; }
  .glass-stat__num { font-size: 1.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .intro__aurora { animation: none; }
  .enter-btn__ring { display: none; }
}
