/* ==========================================================================
   Yashworkspace.online — "The Workspace After Dark"
   ========================================================================== */

:root {
  --void: #0A0605;
  --ink: #120807;
  --plum: #3B0E09;
  --purple: #C2381E;
  --violet: #F0603A;
  --glow: #FF8A5C;
  --lilac: #EAD9C8;
  --white: #F3E6D8;
  --muted: #A8968A;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(234,217,200, 0.14);

  --grad-text: linear-gradient(180deg, #FFFFFF 0%, #EAD9C8 55%, #C9A88E 110%);
  --grad-btn: linear-gradient(135deg, #F0603A, #C2381E);
  --hero-bg: radial-gradient(85% 75% at 50% 0%, #5A160C 0%, #2A0B07 40%, transparent 72%), linear-gradient(180deg, #1A0806 0%, #0A0605 100%);
  --section-glow: linear-gradient(180deg, #2A0B07 0%, #150806 28%, #0A0605 65%);

  --f-display: "Unbounded", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --r-chip: 12px;
  --r-btn: 20px;
  --r-card: 28px;
  --r-panel: 36px;

  --shadow: 0 30px 80px -20px rgba(90,20,10, 0.45);
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--void);
  color: var(--white);
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--violet); color: #fff; }

:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.text-grad, .text-grad .c {
  background: linear-gradient(100deg, #FFFFFF 0%, #FFB08F 35%, #E04A2A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: .95; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.25rem, 6vw, 6.25rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 1.4rem;
}

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--shadow);
}

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80; box-shadow: 0 0 12px #4ADE80; margin-right: .6em; flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.7em;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  transition: box-shadow .4s var(--ease-out), background .4s, border-color .4s;
  will-change: transform;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 0 40px rgba(240,96,58,.5), 0 10px 30px -10px rgba(194,56,30,.8);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 0 70px rgba(240,96,58,.75), 0 10px 40px -10px rgba(194,56,30,.9); }
.btn--ghost { border: 1px solid var(--line); background: var(--glass); }
.btn--ghost:hover { border-color: rgba(234,217,200,.4); background: var(--glass-strong); }
.btn--sm { padding: .7em 1.2em; font-size: .88rem; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center;
  padding: .55em 1em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass);
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; color: var(--lilac);
}

/* ---------- Kinetic text ---------- */
.kinetic .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.kinetic .c { display: inline-block; will-change: transform; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--void);
}
.preloader__inner { display: grid; justify-items: center; gap: 1rem; }
.preloader__label { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.preloader__count { font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 14vw, 10rem); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.preloader__bar { width: min(260px, 60vw); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--grad-btn); box-shadow: 0 0 12px var(--violet); }

/* ---------- Grain / cursor / progress ---------- */
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 150; pointer-events: none;
  opacity: .06; mix-blend-mode: overlay;
}

.cursor { position: fixed; inset: 0 auto auto 0; z-index: 180; pointer-events: none; display: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--glow); box-shadow: 0 0 12px var(--violet); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255,138,92,.45);
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s, border-color .35s;
}
.cursor__label { font-style: normal; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-active .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(240,96,58,.22); border-color: rgba(255,138,92,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cursor.is-active .cursor__label { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

.scroll-progress { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); width: 2px; height: 28vh; background: var(--line); z-index: 60; border-radius: 2px; overflow: hidden; }
.scroll-progress i { display: block; width: 100%; height: 100%; background: linear-gradient(var(--glow), var(--purple)); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 10px var(--violet); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 70;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem);
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(18,8,7,.55);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,.6);
  transition: transform .6s var(--ease-out), opacity .4s;
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav__logo { font-family: var(--f-display); font-weight: 800; font-size: 1rem; letter-spacing: -.02em; }
.nav__logo span { color: var(--glow); font-weight: 500; }
.nav__links { display: flex; gap: 1.6rem; font-size: .9rem; color: var(--muted); }
.nav__links a { transition: color .3s; }
.nav__links a:hover { color: #fff; }
.nav__menu { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--glass-strong); position: relative; }
.nav__menu span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .4s var(--ease-out); }
.nav__menu span:first-child { top: 16px; }
.nav__menu span:last-child { top: 23px; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 65;
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  padding: 0 var(--gutter);
  background: rgba(10,6,5,.9);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.mobile-menu a { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 10vw, 3.5rem); letter-spacing: -.03em; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }

/* ---------- Shared orbs ---------- */
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.orb--a { width: 60vmax; height: 60vmax; left: -20vmax; top: -25vmax; background: radial-gradient(circle, rgba(194,56,30,.35), transparent 62%); animation: drift 22s ease-in-out infinite alternate; }
.orb--b { width: 50vmax; height: 50vmax; right: -18vmax; bottom: -22vmax; background: radial-gradient(circle, rgba(240,96,58,.28), transparent 62%); animation: drift 26s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.1); } }

/* ==========================================================================
   SCENES (shared)
   ========================================================================== */
.scene { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.scene__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .6s;
  pointer-events: none;
}
.scene.has-video .scene__video { opacity: 1; }
.scene.has-video .fallback { display: none; }
.flash { position: absolute; inset: 0; z-index: 20; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, #fff 0%, #EAD9C8 35%, #F0603A 100%); }

.scene__captions { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.scene__caption {
  position: absolute; left: var(--gutter); bottom: clamp(32px, 8vh, 90px);
  max-width: min(720px, 90vw);
  opacity: 0;
}
.scene__caption .eyebrow { display: block; }
.scene__big { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 5.8rem); line-height: .95; letter-spacing: -.04em; text-shadow: 0 10px 50px rgba(10,6,5,.8); }

/* ==========================================================================
   01 HERO
   ========================================================================== */
.hero { perspective: 1400px; background: var(--hero-bg); }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background-image:
    linear-gradient(rgba(240,96,58,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,96,58,.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: top;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
}

.hero__intro {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: clamp(110px, 17vh, 170px);
  text-align: center; pointer-events: none;
}
.hero__intro-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(3rem, 11vw, 11rem); line-height: .88; letter-spacing: -.05em;
}
.hero__intro-title .c { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scroll-cue { position: absolute; bottom: 32px; display: inline-flex; align-items: center; gap: .8rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 20px; height: 32px; border: 1.5px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--glow); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* Laptop */
.assembly { position: absolute; inset: 0; z-index: 3; transform-style: preserve-3d; pointer-events: none; }
.laptop {
  position: absolute; left: 50%; top: 56%;
  width: min(74vw, 96vh, 1040px);
  transform-style: preserve-3d;
  will-change: transform;
}
.laptop__lid {
  padding: 1.5%;
  border-radius: 22px 22px 6px 6px;
  background: linear-gradient(180deg, #1C1617, #0C0A0B);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 0 1px rgba(234,217,200,.18), 0 50px 120px -30px rgba(194,56,30,.65), 0 0 120px -40px rgba(240,96,58,.6);
}
.laptop__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--hero-bg); }
.laptop__base {
  position: relative; height: 0;
  width: 116%; margin-left: -8%; padding-top: 2.6%;
  border-radius: 2px 2px 22px 22px;
  background: linear-gradient(180deg, #DDD6D7 0%, #A29A9C 35%, #5F5759 100%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
.laptop__base span { position: absolute; left: 50%; top: 0; width: 14%; height: 45%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: rgba(0,0,0,.25); }

/* Laptop screen contents (scale with container query units) */
.ls { position: absolute; inset: 0; container-type: inline-size; font-family: var(--f-body); }
.ls__grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(234,217,200,.14) 1px, transparent 1px); background-size: 2.4cqw 2.4cqw; opacity: .6; }
.piece { position: absolute; will-change: transform; }
.piece::after { content: ""; position: absolute; inset: -.6cqw; border-radius: 1.4cqw; border: .15cqw solid var(--glow); opacity: var(--snap, 0); box-shadow: 0 0 2cqw var(--violet); pointer-events: none; }
.p-avatar::after { border-radius: 50%; }
.drag-cursor {
  position: absolute; right: -1.6cqw; bottom: -2.2cqw; width: 2.4cqw; height: 2.4cqw;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 8.5-6.6 1.6L9.5 19z' fill='%23fff' stroke='%23C2381E' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 .6cqw rgba(240,96,58,.9));
}

.p-nav {
  left: 4%; right: 4%; top: 4.5%; height: 8%;
  display: flex; align-items: center; gap: 2.2cqw; padding: 0 1.2cqw 0 2.2cqw;
  border-radius: 99cqw; background: rgba(255,255,255,.05); border: .1cqw solid var(--line);
}
.p-nav b { font-family: var(--f-display); font-size: 1.5cqw; margin-right: auto; }
.p-nav b span { color: var(--glow); font-weight: 500; }
.p-nav i { width: 5cqw; height: .7cqw; border-radius: 1cqw; background: rgba(255,255,255,.18); }
.p-nav em { font-style: normal; font-size: 1.1cqw; font-weight: 600; padding: 1cqw 1.8cqw; border-radius: 99cqw; background: var(--grad-btn); box-shadow: 0 0 2.4cqw rgba(240,96,58,.6); }
.p-chip { left: 6%; top: 20%; display: flex; align-items: center; font-family: var(--f-mono); font-size: 1.05cqw; color: var(--lilac); padding: .8cqw 1.4cqw; border-radius: 99cqw; border: .1cqw solid var(--line); background: rgba(255,255,255,.04); }
.p-chip .dot { width: .8cqw; height: .8cqw; }
.p-title { left: 6%; top: 28%; width: 55%; font-family: var(--f-display); font-weight: 800; font-size: 4.6cqw; line-height: .95; letter-spacing: -.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-title .drag-cursor { -webkit-background-clip: border-box; background-clip: border-box; }
.p-sub { left: 6%; top: 61%; width: 40%; display: grid; gap: 1cqw; }
.p-sub i { height: .9cqw; border-radius: 1cqw; background: rgba(255,255,255,.16); }
.p-sub i:last-of-type { width: 70%; }
.p-btns { left: 6%; top: 70%; display: flex; gap: 1.2cqw; }
.p-btns em { font-style: normal; font-weight: 600; font-size: 1.25cqw; padding: 1.3cqw 2.2cqw; border-radius: 99cqw; border: .1cqw solid var(--line); background: rgba(255,255,255,.05); }
.p-btns em.is-primary { background: var(--grad-btn); border-color: transparent; box-shadow: 0 0 3cqw rgba(240,96,58,.55); }
.p-avatar { right: 8%; top: 18%; width: 27%; aspect-ratio: 1; border-radius: 50%; padding: .6cqw; background: conic-gradient(from 200deg, #C2381E, #FF8A5C, #3B0E09, #F0603A, #C2381E); box-shadow: 0 0 5cqw rgba(240,96,58,.5); }
.p-avatar::before { content: ""; position: absolute; inset: .6cqw; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #4A1209, #1C0806 75%); }
.p-avatar img { position: relative; width: 100%; height: 100%; padding-top: 5%; object-fit: contain; object-position: 50% 100%; border-radius: 50%; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 97%); mask-image: linear-gradient(to bottom, #000 70%, transparent 97%); }
.p-stat { left: 6%; bottom: 7%; display: flex; gap: 1cqw; }
.p-stat em { font-style: normal; font-family: var(--f-mono); font-size: 1cqw; padding: .8cqw 1.3cqw; border-radius: 99cqw; border: .1cqw solid var(--line); color: var(--muted); }
.p-card { right: 5%; bottom: 7%; width: 21%; padding: 1.4cqw; border-radius: 1.6cqw; background: rgba(255,255,255,.06); border: .1cqw solid var(--line); display: grid; gap: .3cqw; }
.p-card span { font-family: var(--f-mono); font-size: .9cqw; color: var(--muted); }
.p-card b { font-family: var(--f-display); font-size: 2.2cqw; }
.p-card svg { width: 100%; height: 3.2cqw; }
.p-card path { fill: none; stroke: var(--glow); stroke-width: 2.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px var(--violet)); }

/* Assembled hero */
.hero-final {
  position: absolute; inset: 0; z-index: 5;
  background: var(--hero-bg);
  visibility: hidden; opacity: 0;
  display: flex; align-items: center;
}
.hero-final__grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(234,217,200,.12) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); }
.hero-final__inner { position: relative; display: grid; grid-template-columns: 1.6fr .85fr; align-items: center; gap: clamp(24px, 4vw, 64px); padding-top: 70px; }
.hero-final__copy .chip { margin-bottom: 1.6rem; }
.hero-final__title {
  font-size: clamp(2.4rem, min(5.2vw, 9.5vh), 6.6rem); line-height: .94; letter-spacing: -.045em;
  margin-bottom: 1.6rem;
}
.hero-final__title .c { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-final__sub { max-width: 34rem; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.2rem); margin-bottom: 2.2rem; }
.hero-final__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-final__profile { position: relative; justify-self: center; width: min(100%, 440px); }
.avatar-ring {
  aspect-ratio: 1; border-radius: 50%; padding: 6px;
  background: conic-gradient(from 200deg, #C2381E, #FF8A5C, #3B0E09, #F0603A, #C2381E);
  box-shadow: 0 0 120px -10px rgba(240,96,58,.55);
  animation: ringspin 12s linear infinite;
}
.avatar-ring { position: relative; }
.avatar-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #4A1209, #1C0806 75%); animation: ringspin 12s linear infinite reverse; }
/* contain + top padding = the whole head and shoulders fit in the circle; shoulders fade into the glow */
.avatar-ring img { position: relative; width: 100%; height: 100%; padding-top: 5%; object-fit: contain; object-position: 50% 100%; border-radius: 50%; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 97%); mask-image: linear-gradient(to bottom, #000 70%, transparent 97%); animation: ringspin 12s linear infinite reverse; }
@keyframes ringspin { to { transform: rotate(360deg); } }
.name-tag { position: absolute; left: -6%; bottom: 8%; display: grid; padding: .9rem 1.3rem; border-radius: 20px; }
.name-tag b { font-family: var(--f-display); font-size: 1.3rem; }
.name-tag span { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); letter-spacing: .05em; }

/* ==========================================================================
   02 STATS
   ========================================================================== */
.stats { position: relative; z-index: 2; padding: clamp(48px, 8vw, 96px) 0; }
.stats__band { border-radius: 0; border-left: 0; border-right: 0; overflow: hidden; padding: clamp(20px, 3vw, 34px) 0; }
.stats__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.stats__band:hover .stats__track { animation-play-state: paused; }
.stat { display: flex; align-items: center; gap: 1.2rem; padding: 0 clamp(28px, 4vw, 64px); border-right: 1px solid var(--line); }
.stat__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 4.2rem); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.stat__label { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); max-width: 13rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   03 MISSION
   ========================================================================== */
.mission { position: relative; padding: clamp(100px, 18vh, 200px) 0; overflow: hidden; background: var(--section-glow); }
.orb--mission { width: 70vmax; height: 70vmax; left: 50%; top: 50%; margin: -35vmax 0 0 -35vmax; background: radial-gradient(circle, rgba(194,56,30,.25), transparent 60%); }
.mission__title { font-size: clamp(2.6rem, 8vw, 8.5rem); margin-bottom: clamp(2rem, 5vw, 4rem); max-width: 14ch; }
.mission__title .c { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mission__text { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 3.3rem); line-height: 1.15; letter-spacing: -.03em; max-width: 26ch; }
.mission__text .word { opacity: .14; transition: none; }

/* ==========================================================================
   04 PILLARS
   ========================================================================== */
.pillars { position: relative; }
.pillars__pin { min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.pillars__track { display: flex; align-items: stretch; gap: clamp(20px, 2.5vw, 36px); padding: 0 var(--gutter); will-change: transform; }
.pillars__intro { flex: 0 0 min(40vw, 560px); align-self: center; padding-right: 2vw; }
.pillars__intro h2 { font-size: clamp(2.2rem, 5vw, 5rem); margin-bottom: 1.5rem; }
.pillar {
  position: relative; flex: 0 0 clamp(300px, 30vw, 440px); min-height: min(62vh, 560px);
  display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 40px);
  border-radius: var(--r-card);
  background: linear-gradient(170deg, rgba(240,96,58,.14), rgba(255,255,255,.02) 50%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--shadow);
  overflow: hidden; transform-style: preserve-3d;
}
.pillar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(240,96,58,.22), transparent 45%);
}
.pillar:hover::before { opacity: 1; }
.pillar__num { font-size: .8rem; color: var(--glow); letter-spacing: .15em; }
.pillar__icon { width: 64px; height: 64px; margin: auto 0 2rem; padding: 14px; border-radius: 18px; background: rgba(240,96,58,.14); border: 1px solid var(--line); box-shadow: 0 0 40px -6px rgba(240,96,58,.6); }
.pillar__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--lilac); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); margin-bottom: .9rem; }
.pillar p { color: var(--muted); margin-bottom: 1.5rem; }
.pillar__tags { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .7rem; }
.pillar__tags li { padding: .4em .9em; border-radius: 99px; border: 1px solid var(--line); color: var(--lilac); }

/* ==========================================================================
   05 STORY
   ========================================================================== */
.story { padding: clamp(100px, 16vh, 180px) 0; }
.story__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.story__portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-panel); overflow: hidden; background: linear-gradient(180deg, #220C09, #0C0807); border: 1px solid var(--line); }
.story__glow { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 38%, rgba(240,96,58,.55), transparent 70%); }
.story__portrait img { position: absolute; left: 0; right: 0; bottom: -4%; width: 100%; height: 104%; object-fit: cover; object-position: 50% 0; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); transition: filter .6s; }
.story__portrait:not(.is-cut) img { mix-blend-mode: luminosity; opacity: .9; }
.story__portrait:hover img { filter: saturate(1.15) contrast(1.05); }
.story__badge { position: absolute; left: 20px; bottom: 20px; padding: .6rem 1rem; border-radius: 14px; font-size: .75rem; letter-spacing: .08em; }
.story__copy h2 { font-size: clamp(2.1rem, 4.6vw, 4.6rem); margin-bottom: 2rem; }
.story__copy p { color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.25rem); margin-bottom: 1.2rem; max-width: 36rem; }
.story__copy p em { color: var(--white); font-style: italic; }
.line { display: block; overflow: hidden; }
.line > span { display: inline-block; }

.timeline { position: relative; margin-top: 2.6rem; display: grid; gap: 1.4rem; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--glow), var(--purple), transparent); box-shadow: 0 0 10px var(--violet); transform-origin: top; transform: scaleY(var(--tl, 1)); }
.timeline li { position: relative; display: grid; gap: .15rem; }
.timeline__dot { position: absolute; left: -28px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--void); border: 2px solid var(--glow); box-shadow: 0 0 14px var(--violet); }
.timeline b { font-family: var(--f-display); font-size: 1.05rem; }
.timeline span:not(.timeline__dot) { color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   07 BUILDER (Scene 2 fallback)
   ========================================================================== */
.builder { background: radial-gradient(80% 65% at 50% 0%, #4A1209 0%, #1C0806 45%, var(--void) 80%); }
.builder__stage { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 40%; }
.builder__glow { position: absolute; left: 50%; top: 45%; width: 70vmin; height: 70vmin; margin: -35vmin 0 0 -35vmin; border-radius: 50%; background: radial-gradient(circle, rgba(240,96,58,.45), transparent 65%); }
.orbit { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; }
.orbit__panel {
  --r: min(36vw, 480px);
  position: absolute; left: 0; top: 0;
  width: clamp(140px, 15vw, 210px); padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(240,96,58,.22), rgba(26,9,7,.75));
  border: 1px solid rgba(234,217,200,.28);
  box-shadow: 0 0 40px -6px rgba(240,96,58,.55), inset 0 1px 0 rgba(255,255,255,.12);
  transform: translate(-50%, -50%) rotateY(calc(var(--i) * 60deg)) translateZ(var(--r)) translateY(var(--y, 0));
  display: grid; gap: 10px;
}
.orbit__panel > .mono { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); }
.op-palette { --i: 0; --y: -60px; }
.op-palette div { display: flex; gap: 6px; }
.op-palette i { flex: 1; aspect-ratio: 1; border-radius: 8px; }
.op-palette i:nth-child(1) { background: #0A0605; border: 1px solid var(--line); }
.op-palette i:nth-child(2) { background: #3B0E09; }
.op-palette i:nth-child(3) { background: #C2381E; }
.op-palette i:nth-child(4) { background: #F0603A; }
.op-palette i:nth-child(5) { background: #EAD9C8; }
.op-type { --i: 1; --y: 40px; }
.op-type b { font-family: var(--f-display); font-size: 3rem; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.op-type small { font-family: var(--f-mono); font-size: .62rem; color: var(--muted); }
.op-grid { --i: 2; --y: -90px; }
.op-grid div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.op-grid i { height: 26px; border-radius: 6px; background: rgba(234,217,200,.2); }
.op-grid i:first-child { grid-column: span 2; background: rgba(240,96,58,.55); }
.op-slider { --i: 3; --y: 70px; }
.op-range { height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); position: relative; }
.op-range i { position: absolute; left: 0; top: 0; bottom: 0; width: 62%; border-radius: inherit; background: var(--grad-btn); }
.op-range i::after { content: ""; position: absolute; right: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--violet); }
.op-range--b i { width: 35%; }
.op-comp { --i: 4; --y: -30px; }
.op-comp em { font-style: normal; font-size: .75rem; font-weight: 600; text-align: center; padding: .5em; border-radius: 99px; background: var(--grad-btn); }
.op-comp em.ghost { background: transparent; border: 1px solid var(--line); }
.op-wire { --i: 5; --y: 90px; }
.op-wire div { display: grid; gap: 6px; }
.op-wire i { height: 10px; border-radius: 4px; border: 1px dashed rgba(234,217,200,.45); }
.op-wire i:first-child { height: 34px; }

.builder__figure { position: absolute; left: 0; top: 0; width: min(42vh, 380px); }
.builder__figure img { width: 100%; aspect-ratio: 820 / 936; object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); mask-image: linear-gradient(to bottom, #000 70%, transparent 98%); filter: drop-shadow(0 0 30px rgba(240,96,58,.6)); }
.builder__figure:not(.is-cut) img { border-radius: 30px; }
.builder__desk { position: absolute; left: -30%; right: -30%; bottom: -6%; height: 18%; border-radius: 16px; background: linear-gradient(180deg, #2A1510, #0D0809); border-top: 1px solid rgba(234,217,200,.35); box-shadow: 0 -10px 60px -10px rgba(240,96,58,.6); }

.monitor { position: absolute; left: 50%; top: 50%; width: min(80vw, 1100px); opacity: 0; z-index: 6; }
.monitor__screen { aspect-ratio: 16 / 9; padding: 1.2%; border-radius: 22px; background: #0E0A0B; border: 1px solid rgba(234,217,200,.3); box-shadow: 0 0 120px -20px rgba(240,96,58,.7); }
.monitor__grid { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 1.2%; padding: 1.2%; border-radius: 14px; background: radial-gradient(circle at 50% 30%, #220B08, #0A0706); }
.monitor__grid > div { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }

/* ==========================================================================
   08 WORK — browser
   ========================================================================== */
.work { padding: clamp(80px, 12vh, 140px) 0 clamp(100px, 16vh, 180px); background: var(--section-glow); }
/* heading gets its own full-width row so "The workspace." stays on one line; intro sits below it */
.work__head { display: grid; gap: 1.2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.work__head h2 { font-size: clamp(1.5rem, 8.2vw, 7.2rem); white-space: nowrap; }
.work__head p { max-width: 30rem; }

.browser {
  width: calc(100% - 2 * var(--gutter)); max-width: 1440px; margin: 0 auto;
  border-radius: var(--r-panel); overflow: hidden;
  background: rgba(18,8,7,.85);
  border: 1px solid rgba(234,217,200,.22);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 60px 140px -40px rgba(194,56,30,.6), 0 0 100px -40px rgba(240,96,58,.7);
}
.browser__chrome {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 18px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
}
.browser__dots { display: flex; gap: 7px; }
.browser__dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.browser__dots i:nth-child(2) { background: #febc2e; }
.browser__dots i:nth-child(3) { background: #28c840; }
.browser__tabs { display: flex; gap: 4px; font-size: .72rem; }
.browser__tabs span { padding: .45em 1em; border-radius: 10px; color: var(--muted); }
.browser__tabs .is-active { background: rgba(240,96,58,.2); color: #fff; border: 1px solid var(--line); }
.browser__address { justify-self: center; display: flex; align-items: center; gap: .6em; padding: .55em 1.2em; border-radius: 12px; font-size: .78rem; color: var(--muted); background: rgba(0,0,0,.3); border: 1px solid var(--line); width: min(100%, 460px); }
.browser__address b { color: #fff; font-weight: 500; }
.browser__address svg { width: 13px; height: 13px; fill: none; stroke: var(--glow); stroke-width: 1.6; flex: none; }
.browser__status { display: flex; align-items: center; font-size: .7rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.browser__viewport {
  position: relative; height: clamp(440px, 72vh, 760px); overflow: hidden;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  background:
    radial-gradient(rgba(234,217,200,.12) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(80% 70% at 50% 40%, #200A08, #0B0706 80%);
}
.browser__viewport.is-dragging { cursor: grabbing; }
.browser__viewport.is-static { cursor: default; touch-action: auto; }
.browser__canvas { position: absolute; left: 0; top: 0; will-change: transform; }
.browser__hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: .6em 1.2em; border-radius: 99px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); background: rgba(18,8,7,.75); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }

.thumb { position: absolute; display: block; width: clamp(260px, 26vw, 400px); text-align: left; color: inherit; }
.thumb__frame, .thumb__meta { display: block; }
.thumb__frame { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid rgba(234,217,200,.25); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 50px -20px rgba(240,96,58,.6); transition: transform .5s var(--ease-out), box-shadow .5s; background: #000; }
.thumb:hover .thumb__frame { transform: translateY(-6px) scale(1.02); box-shadow: 0 40px 80px -20px rgba(0,0,0,.9), 0 0 80px -10px rgba(240,96,58,.85); }
.thumb__frame .mk { pointer-events: none; }
.thumb .thumb__meta { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding: 0 4px; }
/* two-line title box on every card so all cards are the same height */
.thumb__meta b { font-family: var(--f-display); font-weight: 600; font-size: .92rem; line-height: 1.25; letter-spacing: -.01em; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb__meta span { font-family: var(--f-mono); font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.thumb__tag { position: absolute; top: 10px; left: 10px; z-index: 2; padding: .35em .8em; border-radius: 99px; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(10,6,5,.75); border: 1px solid var(--line); color: var(--lilac); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.thumb__tag--live { color: #4ADE80; }

/* ---------- Mock websites (all sizes in cqw so they scale to any frame) ---------- */
.mk-wrap { container-type: inline-size; width: 100%; }
.mk { background: var(--mk-bg); color: var(--mk-fg); font-family: var(--mk-font, var(--f-body)); font-size: 1.3cqw; line-height: 1.5; }
.mk-nav { display: flex; align-items: center; gap: 3cqw; padding: 2.2cqw 5cqw; }
.mk-logo { font-family: var(--mk-display); font-weight: 700; font-size: 2cqw; margin-right: auto; letter-spacing: -.02em; }
.mk-nav span { font-size: 1.15cqw; opacity: .7; }
.mk-btn { display: inline-block; padding: 1.1cqw 2.2cqw; border-radius: var(--mk-radius, 99cqw); background: var(--mk-acc); color: var(--mk-on-acc, #fff); font-weight: 600; font-size: 1.15cqw; }
.mk-btn--ghost { background: transparent; color: var(--mk-fg); border: .12cqw solid currentColor; opacity: .85; }
.mk-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4cqw; align-items: center; padding: 4cqw 5cqw 6cqw; }
.mk-eyebrow { font-size: 1cqw; letter-spacing: .2em; text-transform: uppercase; color: var(--mk-acc2); margin-bottom: 1.6cqw; display: block; }
.mk-h1 { font-family: var(--mk-display); font-weight: 700; font-size: 5.2cqw; line-height: 1; letter-spacing: -.03em; margin-bottom: 2cqw; }
.mk-p { font-size: 1.35cqw; opacity: .72; margin-bottom: 2.6cqw; max-width: 40cqw; }
.mk-ctas { display: flex; gap: 1.2cqw; }
.mk-art { aspect-ratio: 4 / 3.4; border-radius: var(--mk-radius-lg, 2cqw); background: var(--mk-art); position: relative; overflow: hidden; }
.mk-art::after { content: ""; position: absolute; inset: 0; background: var(--mk-art-fx, none); }
.mk-strip { display: flex; justify-content: space-between; gap: 2cqw; padding: 3cqw 5cqw; border-top: .1cqw solid var(--mk-line); border-bottom: .1cqw solid var(--mk-line); }
.mk-strip div { display: grid; }
.mk-strip b { font-family: var(--mk-display); font-size: 3.2cqw; line-height: 1.1; color: var(--mk-acc2); }
.mk-strip span { font-size: 1cqw; opacity: .6; text-transform: uppercase; letter-spacing: .1em; }
.mk-sec { padding: 6cqw 5cqw; }
.mk-h2 { font-family: var(--mk-display); font-weight: 700; font-size: 3.4cqw; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 3cqw; max-width: 60cqw; }
.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.mk-card { border-radius: var(--mk-radius-lg, 2cqw); background: var(--mk-card); border: .1cqw solid var(--mk-line); overflow: hidden; }
.mk-card i { display: block; aspect-ratio: 16 / 10; background: var(--mk-art2, var(--mk-art)); }
.mk-card i.alt { filter: hue-rotate(25deg) saturate(1.1); }
.mk-card i.alt2 { filter: hue-rotate(-25deg) brightness(.95); }
.mk-card div { padding: 2cqw; }
.mk-card b { display: block; font-family: var(--mk-display); font-size: 1.7cqw; margin-bottom: .6cqw; }
.mk-card span { font-size: 1.1cqw; opacity: .65; }
.mk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw; align-items: center; }
.mk-split .mk-art { aspect-ratio: 1 / 1; }
.mk-list { display: grid; gap: 1.4cqw; margin-top: 2cqw; }
.mk-list li { display: flex; gap: 1.2cqw; align-items: center; font-size: 1.3cqw; }
.mk-list li::before { content: ""; width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--mk-acc); flex: none; }
.mk-cta { margin: 0 5cqw 6cqw; padding: 6cqw 5cqw; border-radius: var(--mk-radius-lg, 2cqw); background: var(--mk-cta-bg, var(--mk-acc)); color: var(--mk-on-acc, #fff); text-align: center; }
.mk-cta .mk-h2 { margin: 0 auto 2.4cqw; }
.mk-cta .mk-btn { background: var(--mk-on-acc, #fff); color: var(--mk-acc); }
.mk-foot { display: flex; justify-content: space-between; padding: 3cqw 5cqw; font-size: 1.05cqw; opacity: .6; border-top: .1cqw solid var(--mk-line); }

/* ---------- Preview dialog ---------- */
.preview { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 3vh 3vw; }
.preview[hidden] { display: none; }
.preview__backdrop { position: absolute; inset: 0; background: rgba(10,6,5,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.preview__card {
  position: relative; width: min(1240px, 100%); height: min(86vh, 860px);
  display: flex; flex-direction: column;
  border-radius: var(--r-panel); overflow: hidden;
  background: #0E0A0B; border: 1px solid rgba(234,217,200,.28);
  box-shadow: 0 80px 160px -40px rgba(0,0,0,.9), 0 0 120px -30px rgba(240,96,58,.7);
  transform-origin: 0 0;
}
.preview__chrome { grid-template-columns: auto 1fr auto; }
.preview__close { width: 34px; height: 34px; border-radius: 50%; background: var(--glass-strong); border: 1px solid var(--line); font-size: .85rem; transition: background .3s; }
.preview__close:hover { background: rgba(240,96,58,.35); }
.preview__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 330px; }
.preview__site { overflow-y: auto; overscroll-behavior: contain; background: #000; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.preview__info { display: flex; flex-direction: column; gap: 1rem; padding: 32px 28px; border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(240,96,58,.1), transparent 60%); overflow-y: auto; }
.preview__info > .mono { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); }
.preview__info h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.preview__meta { display: grid; gap: .3rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.preview__meta dt { font-size: .68rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.preview__actions { margin-top: auto; display: grid; gap: 10px; }
.preview__info .btn { white-space: normal; text-align: center; }
.preview__info .btn[hidden] { display: none; }
.preview__scrollhint { font-size: .66rem; color: var(--muted); text-align: center; letter-spacing: .1em; text-transform: uppercase; }

/* ==========================================================================
   09 INVITE (Scene 3 fallback)
   ========================================================================== */
.invite { background: radial-gradient(80% 65% at 50% 0%, #4A1209 0%, #1C0806 45%, var(--void) 80%); }
.invite__stage { position: absolute; inset: 0; perspective: 1000px; perspective-origin: 50% 30%; }
.invite__light { position: absolute; left: 50%; top: 62%; width: 90vmin; height: 90vmin; margin: -45vmin 0 0 -45vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,92,.65), rgba(194,56,30,.25) 40%, transparent 68%); opacity: .15; }
.invite__figure { position: absolute; left: 50%; bottom: 0; width: min(88vh, 720px); transform: translateX(-50%); -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 96%); mask-image: linear-gradient(to bottom, #000 60%, transparent 96%); filter: drop-shadow(0 0 40px rgba(240,96,58,.45)); }
.invite__figure:not(.is-cut) { border-radius: 40px 40px 0 0; opacity: .85; }
.invite__laptop { position: absolute; left: 50%; top: 80%; width: min(46vw, 54vh, 620px); transform-style: preserve-3d; }
.il__lid { position: relative; transform-origin: 50% 100%; transform-style: preserve-3d; }
.il__screen, .il__back { aspect-ratio: 16 / 10; border-radius: 18px 18px 4px 4px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.il__screen { padding: 1.6%; background: #100B0C; box-shadow: 0 0 0 1px rgba(234,217,200,.25); }
.il__screen span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 10px; background: var(--hero-bg); font-family: var(--f-display); font-weight: 800; font-size: clamp(1rem, 3.4vw, 2.6rem); letter-spacing: -.04em; text-align: center; box-shadow: inset 0 0 80px rgba(240,96,58,.5); }
.il__back { position: absolute; inset: 0; transform: rotateX(180deg); background: linear-gradient(180deg, #DBD4D5, #908789); display: grid; place-items: center; }
.il__back i { width: 12%; aspect-ratio: 1; border-radius: 30%; background: radial-gradient(circle, #fff, var(--glow) 40%, transparent 70%); box-shadow: 0 0 30px var(--glow); }
.il__base { height: 0; padding-top: 3%; width: 112%; margin-left: -6%; border-radius: 2px 2px 18px 18px; background: linear-gradient(180deg, #DDD6D7, #5F5759); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }

/* ==========================================================================
   10 CONTACT
   ========================================================================== */
.contact { padding: clamp(40px, 8vh, 100px) 0 clamp(80px, 12vh, 140px); }
.contact__screen {
  position: relative; padding: clamp(10px, 1.2vw, 16px); border-radius: calc(var(--r-panel) + 8px);
  background: linear-gradient(180deg, #1C1617, #0C0A0B);
  box-shadow: 0 0 0 1px rgba(234,217,200,.2), 0 60px 140px -40px rgba(194,56,30,.7), 0 0 120px -40px rgba(240,96,58,.7);
}
.contact__screen::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, var(--glow) 75%, var(--purple) 85%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 6s linear infinite;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --ang: 360deg; } }
.contact__bezel { display: flex; justify-content: center; padding: 0 0 clamp(8px, 1vw, 12px); }
.contact__bezel i { width: 8px; height: 8px; border-radius: 50%; background: #2A2224; box-shadow: inset 0 0 0 2px #0A0808; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); padding: clamp(28px, 5vw, 72px); border-radius: var(--r-panel); background: var(--hero-bg); }
.contact__title { font-size: clamp(2.8rem, 7vw, 7rem); margin-bottom: 1.4rem; }
.contact__title .c { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact__direct { display: grid; gap: 12px; margin-top: 2.4rem; }
.contact__link { display: grid; gap: .2rem; padding: 18px 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); transition: border-color .3s, background .3s, transform .4s var(--ease-out); }
.contact__link:hover { border-color: rgba(234,217,200,.45); background: rgba(240,96,58,.12); transform: translateX(6px); }
.contact__link .mono { font-size: .68rem; color: var(--glow); letter-spacing: .14em; text-transform: uppercase; }
.contact__link b { font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.2rem); word-break: break-word; }

.form { display: grid; gap: 14px; align-content: start; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 18px 10px; border-radius: 16px;
  background: rgba(10,6,5,.55); border: 1px solid var(--line);
  outline: none; resize: vertical; transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23FF8A5C' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 12px; }
.field select option { background: var(--ink); }
.field label { position: absolute; left: 18px; top: 18px; color: var(--muted); font-size: .95rem; pointer-events: none; transition: transform .3s var(--ease-out), font-size .3s, color .3s, top .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(240,96,58,.2), 0 0 30px -6px rgba(240,96,58,.6); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { top: 8px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--glow); font-family: var(--f-mono); }
.field.is-invalid input { border-color: #f87171; }

.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .6em 1.15em; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); font-size: .88rem; transition: all .3s; }
.chips input:checked + span { background: var(--grad-btn); border-color: transparent; box-shadow: 0 0 24px rgba(240,96,58,.55); }
.chips input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 2px; }
.form__note { font-size: .74rem; color: var(--muted); min-height: 1.2em; }
.js-submit.is-done { background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 0 40px rgba(34,197,94,.5); }

/* ==========================================================================
   11 FOOTER
   ========================================================================== */
.footer { padding: clamp(60px, 10vh, 120px) 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
/* Wordmark is sized so it always fits the 1224px content column (6.8rem cap), and the box
   shrink-wraps the text so the highlight layer covers every letter, including the last ones */
.footer__mark { position: relative; width: max-content; max-width: 100%; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.2rem, 7.4vw, 6.8rem); line-height: 1.05; letter-spacing: -.05em; white-space: nowrap; margin-bottom: clamp(40px, 6vw, 80px); }
.footer__outline { display: block; color: transparent; -webkit-text-stroke: 1px rgba(234,217,200,.35); }
.footer__fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(90deg, #EAD9C8, #F0603A 50%, #C2381E); -webkit-background-clip: text; background-clip: text; color: transparent; clip-path: inset(0 100% 0 0); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__cols > div { display: grid; gap: .6rem; align-content: start; }
.footer__cols .mono { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); margin-bottom: .4rem; }
.footer__cols a:not(.btn) { color: var(--muted); transition: color .3s; width: fit-content; word-break: break-all; }
.footer__cols a:not(.btn):hover { color: #fff; }
.footer__top { align-self: end; }
.footer__legal { padding-top: 24px; font-size: .72rem; color: var(--muted); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .preview__body { grid-template-columns: 1fr 280px; }
}

@media (max-width: 860px) {
  .nav { left: 16px; right: 16px; transform: none; justify-content: space-between; padding-left: 18px; }
  .nav.is-hidden { transform: translateY(-140%); }
  .nav__links, .nav > .btn { display: none; }
  .nav__menu { display: block; }
  .scroll-progress { display: none; }

  .laptop { width: 90vw; top: 58%; }
  .hero-final__inner { grid-template-columns: 1fr; text-align: left; padding-top: 90px; gap: 28px; }
  .hero-final__profile { order: -1; width: min(52vw, 220px); justify-self: start; }
  .name-tag { left: auto; right: -70%; bottom: 10%; padding: .6rem .9rem; }
  .name-tag b { font-size: 1rem; }
  .hero-final__title { font-size: clamp(2.3rem, 10vw, 3.6rem); }

  .pillars__pin { min-height: 0; padding: 90px 0; display: block; }
  .pillars__track { flex-direction: column; }
  .pillars__intro { flex: none; padding: 0; }
  .pillar { flex: none; min-height: 0; }
  .pillar__icon { margin: 1.6rem 0; }

  .story__grid { grid-template-columns: 1fr; }
  .story__portrait { max-width: 420px; }


  .work__head { flex-direction: column; align-items: flex-start; }
  .browser { width: calc(100% - 2 * 16px); border-radius: 24px; }
  .browser__chrome { grid-template-columns: auto 1fr auto; gap: 10px; padding: 12px 14px; }
  .browser__tabs { display: none; }
  .browser__address { font-size: .7rem; padding: .5em .9em; }
  .browser__viewport { height: 64vh; }

  .preview { padding: 0; place-items: end center; }
  .preview__card { width: 100%; height: 92vh; border-radius: 28px 28px 0 0; }
  .preview__body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .preview__info { border-left: 0; border-top: 1px solid var(--line); padding: 18px 20px 24px; gap: .6rem; max-height: 40vh; }
  .preview__info .muted, .preview__meta, .preview__scrollhint { display: none; }

  .contact__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-column: 1 / -1; }

  .orbit__panel { --r: 42vw; width: 120px; padding: 10px; }
  .builder__figure { width: min(32vh, 60vw); }
  .contact__link b { font-size: .95rem; }
  .op-type b { font-size: 2rem; }
  .invite__laptop { width: 82vw; }
}

@media (max-width: 560px) {
  .hero-final__ctas .btn { flex: 1; }
  .browser__status { display: none; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
html.reduced .hero__intro, html.reduced .assembly { display: none; }
html.reduced .hero-final { visibility: visible; opacity: 1; }
html.reduced .scene__caption { opacity: 1; }
html.reduced .scene__caption + .scene__caption { display: none; }
html.reduced .mission__text .word { opacity: 1; }
html.reduced .footer__fill { clip-path: none; }
html.reduced .orb, html.reduced .avatar-ring, html.reduced .avatar-ring img, html.reduced .stats__track, html.reduced .contact__screen::before { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}