/* ============================================================
   EMPATECH OS — VARIATION II : THE ORGANISM
   An otherworldly WebGL organism. Gallery-grade typography.
   ============================================================ */

:root {
  --void: #050308;
  --void-2: #0a0612;
  --violet: #8b5cf6;
  --magenta: #e879f9;
  --cyan: #67e8f9;
  --text-hi: #f4f0fc;
  --text-mid: #a89dc4;
  --text-low: #635a7d;
  --line: rgba(168, 157, 196, 0.14);
  --font-display: "Syne", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Space Grotesk", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: auto; }

body {
  background: var(--void);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ------------------------------------------------------------
   WebGL canvas — fixed, full viewport, behind everything
   ------------------------------------------------------------ */
#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}
.gl-fallback {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 45%, rgba(139, 92, 246, 0.25), transparent 70%),
    radial-gradient(ellipse 30% 25% at 60% 40%, rgba(103, 232, 249, 0.12), transparent 70%),
    var(--void);
}

/* vignette so type always sits on dark */
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 50%, transparent 40%, rgba(5, 3, 8, 0.75) 100%);
}

.content { position: relative; z-index: 2; }

/* ------------------------------------------------------------
   Progress hairline
   ------------------------------------------------------------ */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: rgba(168, 157, 196, 0.08);
}
.progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--magenta), var(--cyan));
}

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.nav {
  position: fixed; top: 2px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 44px;
  mix-blend-mode: normal;
}
.nav .brand {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-hi); text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
}
.nav .brand-mark { display: block; filter: drop-shadow(0 0 8px rgba(43, 168, 224, 0.45)); }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-legal { display: flex; flex-direction: column; gap: 3px; }
.foot-legal small { font-size: 10px; letter-spacing: 0.14em; color: var(--text-low); text-transform: uppercase; }
.nav .brand span { color: var(--violet); }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-right a {
  color: var(--text-mid); text-decoration: none; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-right a:hover { color: var(--text-hi); }
.nav-cta {
  border: 1px solid rgba(232, 121, 249, 0.4) !important;
  color: var(--text-hi) !important;
  padding: 10px 22px; border-radius: 999px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s !important;
}
.nav-cta:hover { border-color: var(--magenta) !important; box-shadow: 0 0 24px rgba(232, 121, 249, 0.25); }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 44px;
}
.panel-inner { max-width: 1320px; margin: 0 auto; width: 100%; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--text-mid);
  display: flex; align-items: center; gap: 16px;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: linear-gradient(90deg, var(--violet), transparent); }
.eyebrow .n { color: var(--violet); font-family: var(--font-body); }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 8.2vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-top: 34px;
}
h1 .serif, .h1 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.06em;
  background: linear-gradient(95deg, var(--magenta) 0%, var(--violet) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
h2 .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  text-transform: none;
  background: linear-gradient(95deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em;
}
.lede {
  color: var(--text-mid); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7;
  max-width: 54ch; margin-top: 30px; font-weight: 300;
}
.lede b { color: var(--text-hi); font-weight: 500; }

/* word-by-word reveal */
.wline { display: block; overflow: hidden; }
.wline span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.in .wline span { transform: translateY(0); }

.fade { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.in .fade, .fade.in { opacity: 1; transform: none; }
.fade.d1 { transition-delay: 0.15s; }
.fade.d2 { transition-delay: 0.3s; }
.fade.d3 { transition-delay: 0.45s; }

/* ------------------------------------------------------------
   Hero specifics
   ------------------------------------------------------------ */
.hero { text-align: center; justify-content: center; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; gap: 18px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.orb-btn {
  font-family: var(--font-body); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-hi); text-decoration: none;
  padding: 15px 34px; border-radius: 999px;
  position: relative;
  border: 1px solid rgba(168, 157, 196, 0.3);
  transition: all 0.4s var(--ease);
  overflow: hidden;
}
.orb-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(95deg, rgba(139, 92, 246, 0.35), rgba(232, 121, 249, 0.25), rgba(103, 232, 249, 0.3));
  opacity: 0; transition: opacity 0.4s;
}
.orb-btn:hover::before { opacity: 1; }
.orb-btn:hover { border-color: rgba(232, 121, 249, 0.6); box-shadow: 0 0 40px rgba(139, 92, 246, 0.3); transform: translateY(-2px); }
.orb-btn span { position: relative; }
.orb-btn.solid { background: linear-gradient(95deg, var(--violet), #a855f7); border-color: transparent; }
.orb-btn.solid:hover { box-shadow: 0 0 50px rgba(139, 92, 246, 0.5); }

.scroll-cue {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-low);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--violet), transparent);
  animation: cueDrop 2.2s var(--ease) infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ------------------------------------------------------------
   THE WORKFORCE — the jewel
   ------------------------------------------------------------ */
.wf .panel-inner { max-width: 1180px; }

/* Skylar — Jarvis-like orchestration core */
.skylar {
  display: grid; grid-template-columns: 300px 1fr; gap: 70px;
  align-items: center;
  margin-top: 90px;
  padding: 50px 54px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(10, 6, 18, 0.55) 55%, rgba(103, 232, 249, 0.05));
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.skylar::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 121, 249, 0.7), transparent);
}
.skylar-core {
  position: relative;
  width: 260px; height: 260px;
  justify-self: center;
  flex-shrink: 0;
}
.skylar-core .ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.4);
}
.skylar-core .r1 {
  inset: 0;
  border-color: rgba(103, 232, 249, 0.25);
  border-top-color: rgba(103, 232, 249, 0.9);
  animation: spin 7s linear infinite;
}
.skylar-core .r2 {
  inset: 26px;
  border-color: rgba(139, 92, 246, 0.28);
  border-right-color: rgba(232, 121, 249, 0.9);
  animation: spin 11s linear infinite reverse;
}
.skylar-core .r3 {
  inset: 54px;
  border-style: dashed;
  border-color: rgba(168, 157, 196, 0.3);
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skylar-core .core {
  position: absolute; inset: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #e9d9ff 0%, #a855f7 34%, #4c1d95 78%, #2a1065 100%);
  box-shadow:
    0 0 40px rgba(168, 85, 247, 0.65),
    0 0 120px rgba(139, 92, 246, 0.35),
    inset 0 0 24px rgba(255, 255, 255, 0.25);
  animation: corePulse 3.4s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(168,85,247,0.65), 0 0 120px rgba(139,92,246,0.35), inset 0 0 24px rgba(255,255,255,0.25); }
  50% { transform: scale(0.94); box-shadow: 0 0 60px rgba(168,85,247,0.85), 0 0 150px rgba(139,92,246,0.5), inset 0 0 30px rgba(255,255,255,0.35); }
}
.skylar-core .orbit-dot {
  position: absolute; top: 50%; left: 50%;
  width: 7px; height: 7px; margin: -3.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(103, 232, 249, 0.9);
}
.skylar-core .od1 { animation: orbit1 7s linear infinite; }
.skylar-core .od2 { background: var(--magenta); box-shadow: 0 0 12px rgba(232, 121, 249, 0.9); animation: orbit2 11s linear infinite; }
.skylar-core .od3 { background: #c4b5fd; box-shadow: 0 0 12px rgba(196, 181, 253, 0.9); animation: orbit3 16s linear infinite; }
@keyframes orbit1 { from { transform: rotate(0deg) translateX(130px); } to { transform: rotate(360deg) translateX(130px); } }
@keyframes orbit2 { from { transform: rotate(120deg) translateX(104px); } to { transform: rotate(480deg) translateX(104px); } }
@keyframes orbit3 { from { transform: rotate(240deg) translateX(76px); } to { transform: rotate(600deg) translateX(76px); } }

.sk-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--magenta);
  border: 1px solid rgba(232, 121, 249, 0.35);
  border-radius: 999px; padding: 7px 16px;
}
.skylar-copy h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05; letter-spacing: -0.015em; text-transform: uppercase;
  margin-top: 22px;
}
.skylar-copy h3 .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none;
  background: linear-gradient(95deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skylar-copy p { color: var(--text-mid); font-size: 15.5px; line-height: 1.75; margin-top: 18px; font-weight: 300; max-width: 58ch; }
.sk-stats { margin-top: 26px; display: flex; gap: 0; flex-wrap: wrap; border-top: 1px solid var(--line); }
.sk-stats li {
  list-style: none; flex: 1; min-width: 160px;
  padding: 16px 22px 0 0;
  font-size: 12.5px; color: var(--text-mid);
}
.sk-stats li b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-hi); margin-bottom: 4px;
}

/* beam from Skylar down to the departments */
.beam {
  width: 1px; height: 76px; margin: 8px auto;
  background: linear-gradient(180deg, rgba(232, 121, 249, 0.8), rgba(103, 232, 249, 0.25));
  position: relative;
}
.beam::after {
  content: ""; position: absolute; left: -2.5px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px rgba(103, 232, 249, 0.9);
  animation: beamDrop 2.4s var(--ease) infinite;
}
@keyframes beamDrop { 0% { top: 0; opacity: 0; } 25% { opacity: 1; } 90% { top: calc(100% - 6px); opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }

/* department cards — 4 + 3, second row centered */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.dept-grid .dept-card { grid-column: span 2; }
.dept-grid .dept-card:nth-child(5) { grid-column: 2 / span 2; }
.dept-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 20px 18px;
  background: rgba(10, 6, 18, 0.5);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text-mid);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease), background 0.35s;
  position: relative;
}
.dept-card:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, 0.45); }
.dept-card.active {
  border-color: rgba(232, 121, 249, 0.65);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(10, 6, 18, 0.6));
  box-shadow: 0 0 34px rgba(139, 92, 246, 0.22);
}
.dept-card .d-no {
  font-size: 10.5px; letter-spacing: 0.2em; color: var(--text-low);
  display: block;
}
.dept-card.active .d-no { color: var(--magenta); }
.dept-card h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  letter-spacing: 0.015em; text-transform: uppercase;
  color: var(--text-hi); margin-top: 10px; line-height: 1.25;
}
.dept-card p { font-size: 12px; line-height: 1.5; margin-top: 8px; font-weight: 300; color: var(--text-mid); }

/* department detail panel */
.dept-detail {
  margin-top: 14px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 20px;
  padding: 40px 46px;
  background: rgba(10, 6, 18, 0.55);
  backdrop-filter: blur(10px);
  min-height: 250px;
}
.dd-no { font-size: 12px; letter-spacing: 0.26em; color: var(--cyan); }
.dept-detail h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px); text-transform: uppercase; letter-spacing: -0.01em;
  margin-top: 12px;
}
.dd-hook {
  font-family: var(--font-serif); font-style: italic;
  font-size: 20px; margin-top: 8px;
  background: linear-gradient(95deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dd-desc { color: var(--text-mid); font-size: 14.5px; line-height: 1.75; margin-top: 16px; font-weight: 300; }
.dd-label { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-low); }
.dept-detail ul { margin-top: 14px; }
.dept-detail ul li {
  list-style: none; position: relative;
  padding: 9px 0 9px 24px;
  font-size: 13.5px; color: var(--text-mid); line-height: 1.55; font-weight: 300;
  border-bottom: 1px solid rgba(168, 157, 196, 0.09);
}
.dept-detail ul li::before {
  content: "◆"; position: absolute; left: 0; top: 10px;
  font-size: 8px; color: var(--violet);
}
.dd-report { display: block; margin-top: 18px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-low); }

/* proprietary stack */
.stack-head { margin-top: 110px; }
.stack-head h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 52px); text-transform: uppercase; letter-spacing: -0.02em;
}
.stack-head h3 .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none;
  background: linear-gradient(95deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stack-head .lede { margin-top: 16px; }
.stack {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.stack-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  background: rgba(10, 6, 18, 0.45);
  backdrop-filter: blur(8px);
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.stack-card:hover { border-color: rgba(103, 232, 249, 0.4); transform: translateY(-3px); }
.stack-card .st-no {
  font-family: var(--font-serif); font-style: italic;
  font-size: 26px; color: var(--violet); line-height: 1;
}
.stack-card h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-top: 12px; color: var(--text-hi);
}
.stack-card p { font-size: 13px; line-height: 1.65; color: var(--text-mid); margin-top: 10px; font-weight: 300; }

/* ------------------------------------------------------------
   The Discipline — five verbs, V2 voice
   ------------------------------------------------------------ */
.disc-rail { margin-top: 70px; }
.disc-row {
  display: grid; grid-template-columns: 90px 1fr 1.05fr; gap: 40px;
  padding: 38px 0; border-bottom: 1px solid var(--line);
  align-items: center;
}
.disc-row:first-child { border-top: 1px solid var(--line); }
.disc-no { font-size: 12px; letter-spacing: 0.2em; color: var(--text-low); }
.disc-word {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 4.6vw, 64px);
  letter-spacing: -0.02em; line-height: 1; text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168, 157, 196, 0.45);
  transition: all 0.6s var(--ease);
}
.disc-row.lit .disc-word {
  color: var(--text-hi);
  -webkit-text-stroke: 0px transparent;
  text-shadow: 0 0 44px rgba(139, 92, 246, 0.45);
}
.disc-desc {
  font-family: var(--font-serif); font-style: italic;
  color: var(--text-mid); font-size: 16px; line-height: 1.65;
  max-width: 46ch;
}

/* ------------------------------------------------------------
   Split rows
   ------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split .right { justify-self: end; max-width: 520px; }

.metric-stack { display: flex; flex-direction: column; gap: 0; margin-top: 50px; border-top: 1px solid var(--line); max-width: 560px; }
.metric {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.metric .m-val {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 3.4vw, 54px); letter-spacing: -0.02em;
  background: linear-gradient(95deg, #c4b5fd, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric .m-cap { color: var(--text-mid); font-size: 13.5px; max-width: 30ch; text-align: right; line-height: 1.55; }

/* ------------------------------------------------------------
   Governance — order section
   ------------------------------------------------------------ */
.law-list { counter-reset: law; margin-top: 60px; max-width: 720px; }
.law {
  display: grid; grid-template-columns: 80px 1fr; gap: 30px;
  padding: 34px 0; border-top: 1px solid var(--line);
  align-items: start;
}
.law:last-child { border-bottom: 1px solid var(--line); }
.law::before {
  counter-increment: law;
  content: "0" counter(law);
  font-family: var(--font-serif); font-style: italic;
  font-size: 34px; color: var(--violet);
  line-height: 1;
}
.law h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.law p { color: var(--text-mid); font-size: 14.5px; margin-top: 8px; line-height: 1.7; max-width: 52ch; }

/* ------------------------------------------------------------
   Quote panel
   ------------------------------------------------------------ */
.quote-panel { text-align: center; justify-content: center; }
.quote-panel blockquote {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(32px, 4.6vw, 66px);
  line-height: 1.22; letter-spacing: -0.01em;
  max-width: 24ch; margin: 0 auto;
}
.quote-panel blockquote .g {
  background: linear-gradient(95deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quote-panel cite {
  display: block; margin-top: 36px;
  font-style: normal; font-family: var(--font-body);
  font-size: 11.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-low);
}

/* ------------------------------------------------------------
   The Operating Partner Brief — gated download
   ------------------------------------------------------------ */
.brief-split { align-items: start; }
.doc-mock {
  margin-top: 44px;
  width: 300px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  padding: 34px 30px 26px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(139, 92, 246, 0.18), transparent 55%),
    rgba(8, 5, 14, 0.85);
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.12);
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.doc-mock:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 30px 70px -18px rgba(0,0,0,0.8), 0 0 60px rgba(139,92,246,0.2); }
.doc-mock img { margin-bottom: 12px; }
.dm-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.18em; }
.dm-sub { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mid); }
.dm-rule { height: 1px; margin: 16px 0 10px; background: linear-gradient(90deg, var(--violet), var(--magenta), transparent); }
.dm-pages { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-low); }

.lead-form, .lead-success {
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: 20px;
  padding: 40px 42px;
  background: rgba(10, 6, 18, 0.6);
  backdrop-filter: blur(12px);
  max-width: 460px;
  justify-self: end;
  width: 100%;
}
.lead-form h3, .lead-success h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.lf-sub { color: var(--text-mid); font-size: 13.5px; margin: 8px 0 24px; font-weight: 300; }
.lead-form label {
  display: block;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 16px;
}
.lead-form input {
  display: block; width: 100%;
  margin-top: 7px;
  background: rgba(5, 3, 8, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text-hi);
  font-family: var(--font-body); font-size: 14.5px; font-weight: 300;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.lead-form input::placeholder { color: rgba(99, 90, 125, 0.65); }
.lead-form input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.lead-form input.invalid { border-color: rgba(244, 114, 182, 0.7); }
.lf-error { color: #f9a8d4; font-size: 12.5px; min-height: 18px; margin: 2px 0 10px; }
.lf-btn { width: 100%; text-align: center; border: none; cursor: pointer; font-size: 13px; padding: 16px 34px; }
.lf-note { margin-top: 16px; font-size: 11.5px; color: var(--text-low); text-align: center; font-weight: 300; }
.lead-success { text-align: center; }
.ls-check {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(103, 232, 249, 0.5);
  color: var(--cyan); font-size: 22px;
  margin-bottom: 18px;
  box-shadow: 0 0 30px rgba(103, 232, 249, 0.25);
}
.lead-success p { color: var(--text-mid); font-size: 14px; line-height: 1.7; margin: 12px 0 24px; font-weight: 300; }

/* ------------------------------------------------------------
   Blueprint application questionnaire
   ------------------------------------------------------------ */
.q-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.q-modal[hidden] { display: none; }
.q-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 3, 8, 0.82);
  backdrop-filter: blur(10px);
}
.q-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  display: flex; flex-direction: column;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    rgba(10, 6, 18, 0.96);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9), 0 0 80px rgba(139, 92, 246, 0.16);
  overflow: hidden;
  animation: qIn 0.5s var(--ease);
}
@keyframes qIn { from { opacity: 0; transform: translateY(26px) scale(0.98); } to { opacity: 1; transform: none; } }
.q-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 26px;
}
.q-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-mid);
}
.q-close {
  background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 34px; height: 34px;
  color: var(--text-mid); font-size: 13px; cursor: pointer;
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.q-close:hover { color: var(--text-hi); border-color: rgba(232, 121, 249, 0.5); transform: rotate(90deg); }
.q-progress { height: 2px; background: rgba(168, 157, 196, 0.12); margin: 0 26px; border-radius: 2px; overflow: hidden; }
.q-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--magenta), var(--cyan));
  transition: width 0.5s var(--ease);
}
.q-body { padding: 34px 40px 10px; overflow-y: auto; flex: 1; }
.q-step { animation: qStep 0.45s var(--ease); }
@keyframes qStep { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.q-step.back { animation: qStepBack 0.45s var(--ease); }
@keyframes qStepBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.q-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.6vw, 27px);
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.2;
}
.q-title .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none;
  background: linear-gradient(95deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.08em;
}
.q-sub { color: var(--text-mid); font-size: 13.5px; margin-top: 10px; font-weight: 300; line-height: 1.6; }
.q-input-wrap { margin-top: 26px; }
.q-input, .q-textarea {
  width: 100%;
  background: rgba(5, 3, 8, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--text-hi);
  font-family: var(--font-body); font-size: 16px; font-weight: 300;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.q-input::placeholder, .q-textarea::placeholder { color: rgba(99, 90, 125, 0.6); }
.q-input:focus, .q-textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.q-input.invalid { border-color: rgba(244, 114, 182, 0.7); }
.q-textarea { min-height: 120px; resize: vertical; }
.q-input + .q-input { margin-top: 12px; }
.q-field-label { display: block; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-low); margin: 14px 0 6px; }
.q-error { color: #f9a8d4; font-size: 12.5px; min-height: 18px; margin-top: 10px; }
.q-hint { font-size: 11.5px; color: var(--text-low); margin-top: 12px; }
.q-hint b { color: var(--text-mid); font-weight: 500; }

.q-options { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.q-option {
  display: flex; align-items: center; gap: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  background: rgba(5, 3, 8, 0.45);
  color: var(--text-mid);
  font-family: var(--font-body); font-size: 14.5px; font-weight: 300;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.q-option:hover { border-color: rgba(139, 92, 246, 0.5); color: var(--text-hi); transform: translateX(3px); }
.q-option.selected {
  border-color: rgba(232, 121, 249, 0.65);
  background: linear-gradient(95deg, rgba(139, 92, 246, 0.18), rgba(10, 6, 18, 0.5));
  color: var(--text-hi);
}
.q-option .key {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; flex-shrink: 0;
  border: 1px solid rgba(168, 157, 196, 0.35); border-radius: 6px;
  font-size: 11px; color: var(--text-low);
  transition: all 0.25s;
}
.q-option.selected .key { border-color: var(--magenta); color: var(--magenta); }
.q-options.multi .q-option .key { border-radius: 6px; }

.q-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 26px 22px;
  gap: 14px;
}
.q-back {
  background: none; border: none; cursor: pointer;
  color: var(--text-low); font-family: var(--font-body); font-size: 12.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 6px;
  transition: color 0.25s;
}
.q-back:hover { color: var(--text-hi); }
.q-back[disabled] { opacity: 0; pointer-events: none; }
.q-count { font-size: 11px; letter-spacing: 0.2em; color: var(--text-low); }
.q-next { border: none; cursor: pointer; font-size: 12.5px; padding: 14px 30px; }
.q-next[disabled] { opacity: 0.4; pointer-events: none; }

.q-success { text-align: center; padding: 30px 10px 40px; }
.q-success .ls-check { margin-bottom: 20px; }
.q-success h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; text-transform: uppercase; }
.q-success p { color: var(--text-mid); font-size: 14.5px; line-height: 1.7; font-weight: 300; margin: 14px auto 26px; max-width: 44ch; }
.q-success .orb-btn { display: inline-block; }
.q-success .q-skip { display: block; margin-top: 18px; color: var(--text-low); font-size: 12px; }

@media (max-width: 640px) {
  .q-body { padding: 26px 22px 8px; }
  .q-foot { padding: 14px 18px 18px; }
  .q-panel { border-radius: 18px; }
}

/* ------------------------------------------------------------
   Final CTA
   ------------------------------------------------------------ */
.final { text-align: center; justify-content: center; min-height: 92vh; }
.final .lede { margin-left: auto; margin-right: auto; }
.final-meta {
  margin-top: 60px; display: flex; justify-content: center; gap: 50px;
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-low);
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: 40px 44px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-low);
  background: rgba(5, 3, 8, 0.7);
  backdrop-filter: blur(10px);
  flex-wrap: wrap; gap: 14px;
}
footer a { color: var(--text-mid); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--text-hi); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-grid .dept-card { grid-column: auto; }
  .dept-grid .dept-card:nth-child(5) { grid-column: auto; }
  .stack { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .nav-right a:not(.nav-cta) { display: none; }
  .panel { padding: 100px 24px; }
  h1, .h1 { font-size: clamp(34px, 10.4vw, 60px); }
  h2 { font-size: clamp(30px, 8.4vw, 54px); }
  .scroll-cue { display: none; }
  .split { grid-template-columns: 1fr; gap: 50px; }
  .split .right { justify-self: start; }
  .metric .m-cap { text-align: left; }
  .metric { flex-direction: column; align-items: flex-start; gap: 8px; }
  .law { grid-template-columns: 54px 1fr; gap: 18px; }
  footer { padding: 30px 24px; }
  .skylar { grid-template-columns: 1fr; gap: 40px; padding: 40px 28px; }
  .skylar-core { width: 210px; height: 210px; }
  .skylar-core .core { inset: 70px; }
  .skylar-core .od1 { animation-name: orbit1s; }
  .skylar-core .od2 { animation-name: orbit2s; }
  .skylar-core .od3 { animation-name: orbit3s; }
  .dept-detail { grid-template-columns: 1fr; gap: 30px; padding: 30px 26px; }
  .disc-row { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; }
  .disc-no { order: -1; }
  .lead-form, .lead-success { justify-self: stretch; max-width: none; padding: 32px 26px; }
  .doc-mock { width: 100%; max-width: 320px; }
  .stack { grid-template-columns: 1fr; }
}
@keyframes orbit1s { from { transform: rotate(0deg) translateX(105px); } to { transform: rotate(360deg) translateX(105px); } }
@keyframes orbit2s { from { transform: rotate(120deg) translateX(84px); } to { transform: rotate(480deg) translateX(84px); } }
@keyframes orbit3s { from { transform: rotate(240deg) translateX(61px); } to { transform: rotate(600deg) translateX(61px); } }

@media (max-width: 560px) {
  .dept-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .wline span { transform: none; }
  .fade { opacity: 1; transform: none; }
}
