/* =========================================================
   Ewinity Systems — "Ideas, made real"
   Deep space · particle core · condensed display · mono UI
   Brand: Deep Navy #041737 · Signal Blue #2E6BFF · Cyan #38BDF8
   Accent: Meskel gold #E8B33A (tibeb pattern)
   ========================================================= */

/* Licensed brand fonts (PP Formula by Pangram Pangram; Fraktion by Juri Zaech) */
@font-face {
  font-family: "PP Formula Condensed";
  src: url("../fonts/PPFormula-CondensedBlack.woff2") format("woff2"), url("../fonts/PPFormula-CondensedBlack.woff") format("woff");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraktion Mono";
  src: url("../fonts/FraktionMono-Regular.woff2") format("woff2"), url("../fonts/FraktionMono-Regular.woff") format("woff");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraktion Sans";
  src: url("../fonts/fraktionsans-regular-webfont.woff2") format("woff2"), url("../fonts/fraktionsans-regular-webfont.woff") format("woff");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #01030a;
  --navy: #041737;
  --navy-2: #072254;
  --glass: rgba(4, 23, 55, 0.55);
  --glass-2: rgba(6, 30, 70, 0.72);
  --line: rgba(56, 189, 248, 0.22);
  --line-2: rgba(56, 189, 248, 0.42);
  --hair: rgba(238, 242, 248, 0.1);

  --text: #eef2f8;
  --muted: rgba(214, 226, 245, 0.72);
  --dim: rgba(170, 190, 220, 0.5);

  --blue: #2e6bff;
  --cyan: #38bdf8;
  --sky: #7dd3fc;
  --gold: #e8b33a;
  --green: #2ba84a;
  --red: #e5383b;

  --display: "PP Formula Condensed", "Impact", "Arial Narrow Bold", sans-serif;
  --mono: "Fraktion Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Fraktion Sans", system-ui, sans-serif;
  --copy: #e2e8f0;

  --pad-l: clamp(20px, 13vw, 230px);
  --pad-r: clamp(20px, 7vw, 130px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(circle at 50% 35%, rgba(46, 107, 255, 0.05) 0%, rgba(1, 3, 10, 0.98) 50%, #000 100%) fixed, #000;
  color: var(--text);
  font: 400 14.5px/1.7 var(--mono);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }
[hidden] { display: none !important; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 10px 14px; border-radius: 6px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- stage ---------- */
#core { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(1, 3, 10, 0.85) 100%),
    radial-gradient(60% 50% at 85% 10%, rgba(46, 107, 255, 0.12), transparent 70%),
    radial-gradient(50% 50% at 10% 95%, rgba(232, 179, 58, 0.06), transparent 70%);
}
/* Ewinity watermark: faint symbol slowly turning in the corner */
.watermark {
  position: fixed; right: 3vw; bottom: 6vh; z-index: 1; pointer-events: none;
  width: clamp(240px, 29vw, 440px);
  display: grid; justify-items: center; gap: 14px;
  opacity: 0.1; transition: opacity 1.2s var(--ease);
}
.watermark img { width: 100%; height: auto; filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.45)); animation: watermark-spin 70s linear infinite; }
.watermark span { font: 400 13px/1 var(--mono); letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
@keyframes watermark-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.04); }
  100% { transform: rotate(360deg) scale(1); }
}
.loader ~ .watermark { opacity: 0; }
.is-ready .loader ~ .watermark, .no-js .loader ~ .watermark { opacity: 0.1; }
.stage-fallback { display: none; }
.no-webgl .stage-fallback {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 70% 45%, rgba(46, 107, 255, 0.3), transparent 70%), var(--bg);
}
.no-webgl .stage-fallback img { width: min(70vw, 820px); opacity: 0.16; transform: translateY(-14vh); }
.trim {
  position: fixed; top: 0; left: 0; right: 0; height: 7px; z-index: 60; pointer-events: none;
  background: url("../img/tibeb.svg") repeat-x left center / auto 7px; opacity: 0.55;
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.is-ready .loader { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__symbol { width: 74px; animation: breathe 2.2s var(--ease-io) infinite; filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.6)); }
@keyframes breathe { 50% { transform: scale(0.88); opacity: 0.7; } }
.loader__line { display: flex; align-items: center; gap: 14px; color: var(--muted); margin: 0; }
.loader__line i { position: relative; width: 120px; height: 1px; background: var(--hair); overflow: hidden; }
.loader__line i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--gold)); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 0.2s linear; }
.loader__count { margin: 0; color: var(--gold); font-size: 12px; }
.no-js .loader { display: none; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; top: 18px; left: 22px; right: 22px; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.glass, .hud__brand, .hud__nav, .hud__menu {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.hud__brand { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border-radius: 12px; }
.hud__brand img { height: 26px; width: auto; }
.hud__tag {
  font-size: 9.5px; color: var(--gold); padding: 5px 9px; border-radius: 99px;
  border: 1px solid rgba(232, 179, 58, 0.45); background: rgba(232, 179, 58, 0.08); white-space: nowrap;
}
.hud__nav { display: flex; gap: 2px; padding: 5px; border-radius: 99px; }
.hud__nav a {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 15px; border-radius: 99px; color: var(--muted);
  transition: color 0.3s, background 0.3s, box-shadow 0.3s;
}
.hud__nav a:hover { color: var(--text); }
.hud__nav a.is-active { color: #fff; background: var(--blue); box-shadow: 0 0 22px rgba(46, 107, 255, 0.7); }
.hud__menu {
  display: flex; align-items: center; gap: 22px; height: 52px; padding: 0 18px 0 20px; border-radius: 12px;
  font-weight: 700; font-size: 12px; letter-spacing: 0.18em; transition: border-color 0.3s;
}
.hud__menu:hover { border-color: var(--line-2); }
.hud__menu i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); transition: transform 0.4s var(--ease); }
.hud__menu .when-open, .menu-open .hud__menu .when-closed { display: none; }
.menu-open .hud__menu .when-open { display: inline; }
.menu-open .hud__menu i { transform: scale(1.8); }

/* ---------- lateral chapter index ---------- */
.chapters {
  position: fixed; left: 24px; top: 50%; transform: translateY(-50%); z-index: 50;
  display: flex; gap: 14px;
}
.chapters__rail { position: relative; width: 1px; background: var(--hair); }
.chapters__fill { position: absolute; left: -1px; top: 0; width: 3px; height: 0; border-radius: 3px; background: linear-gradient(var(--cyan), var(--blue) 60%, var(--gold)); transition: height 0.3s linear; }
.chapters ol { display: grid; gap: 6px; }
.chapters a { display: flex; align-items: center; gap: 10px; height: 26px; color: var(--dim); }
.chapters b {
  display: grid; place-items: center; width: 26px; height: 22px; border-radius: 5px;
  font: 500 10px/1 var(--mono); border: 1px solid transparent; transition: all 0.35s var(--ease);
}
.chapters span {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translateX(-6px); transition: opacity 0.35s, transform 0.35s var(--ease);
}
.chapters a:hover span { opacity: 0.7; transform: none; }
.chapters a.is-active { color: var(--text); }
.chapters a.is-active b { background: var(--cyan); color: var(--navy); box-shadow: 0 0 14px rgba(56, 189, 248, 0.7); }
.chapters a.is-active span { opacity: 1; transform: none; }

/* ---------- capabilities tab + drawer ---------- */
.cap-tab {
  position: fixed; right: 0; top: 50%; z-index: 55;
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  padding: 18px 9px; border-radius: 0 8px 8px 0;
  background: var(--text); color: var(--navy); font-weight: 700; font-size: 10px;
  transition: background 0.3s, padding 0.3s;
}
.cap-tab:hover { background: var(--gold); padding-right: 13px; }
.cap-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(460px, 100vw);
  background: rgba(3, 12, 30, 0.94); border-left: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  padding: 28px 28px 40px; overflow-y: auto;
  animation: drawer 0.6s var(--ease);
}
@keyframes drawer { from { transform: translateX(100%); } }
.cap-drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cap-drawer__head p { margin: 0; color: var(--gold); }
.cap-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.cap-list b { font: 500 11px/1.9 var(--mono); color: var(--cyan); }
.cap-list h3 { font: 400 22px/1.15 var(--display); letter-spacing: 0.01em; text-transform: uppercase; margin-bottom: 4px; }
.cap-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.x { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; transition: border-color 0.3s, color 0.3s; }
.x:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 65;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px;
  padding: 100px var(--pad-r) 40px var(--pad-l);
  background: linear-gradient(90deg, rgba(1, 3, 10, 0.97) 0%, rgba(1, 3, 10, 0.85) 40%, rgba(1, 3, 10, 0.12) 100%);
  animation: fade 0.5s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.menu__list { counter-reset: m; }
.menu__list a {
  position: relative; display: flex; align-items: baseline; gap: 18px;
  font: 400 clamp(34px, 6.6vh, 74px)/1.08 var(--display); text-transform: uppercase; letter-spacing: 0.005em;
  color: var(--text); transition: color 0.5s, text-shadow 0.5s, transform 0.5s var(--ease);
  animation: rise 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.menu__list b { font: 500 11px/1 var(--mono); color: var(--cyan); letter-spacing: 0.1em; transform: translateY(-1.6em); }
.menu__list span {
  font: 400 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  opacity: 0; transform: translateX(-12px); transition: opacity 0.4s, transform 0.5s var(--ease); white-space: nowrap;
}
.menu__list a:hover, .menu__list a:focus-visible { color: transparent; text-shadow: 0 0 6px rgba(255, 255, 255, 0.95), 0 0 30px rgba(56, 189, 248, 0.6); transform: translateX(10px); }
.menu__list a:hover span, .menu__list a:focus-visible span { opacity: 1; transform: none; }
.menu__aside { display: grid; gap: 22px; align-self: end; color: var(--muted); font-size: 10.5px; line-height: 2; }
.menu__aside a:hover { color: var(--gold); }
.menu-open { overflow: hidden; }

/* ---------- chapters ---------- */
main { position: relative; z-index: 2; }
.chapter {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--pad-r) 100px var(--pad-l);
}
.chapter__content { width: 100%; max-width: 560px; }
.chapter__content--right { margin-left: auto; }
.chapter__content--wide { max-width: 1240px; margin: 0 auto; }

.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 5px 14px 5px 5px; border-radius: 99px;
  border: 1px solid rgba(212, 175, 55, 0.5); background: rgba(4, 23, 55, 0.85); color: #fde68a;
  font: 400 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.badge b { display: grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 99px; background: rgba(56, 189, 248, 0.16); color: var(--cyan); font-weight: 700; }
.badge--gold { border-color: rgba(232, 179, 58, 0.5); color: var(--gold); padding-left: 14px; }
.pulse-dot { position: relative; min-width: 8px !important; width: 8px; height: 8px !important; padding: 0 !important; border-radius: 50%; background: var(--gold) !important; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.eyebrow { font-size: clamp(13px, 1.1vw, 16px); line-height: 1.45; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); margin: 0 0 14px; max-width: 560px; text-shadow: 0 2px 10px rgba(2, 11, 28, 0.95); }

.display {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(48px, 4.9vw, 96px); line-height: 0.93; letter-spacing: -0.02em;
  text-shadow: 0 8px 28px rgba(2, 11, 28, 0.95), 0 0 20px rgba(46, 107, 255, 0.35);
}
h1.display { font-size: clamp(64px, 8vw, 150px); }
.split-head .display { font-size: clamp(44px, 5vw, 84px); }
.display em { font-style: normal; text-shadow: none; filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.35)); }
.display em, .display em .w > span {
  background: linear-gradient(100deg, #9fd8ff 0%, var(--cyan) 30%, var(--blue) 60%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.display.is-split em { background: none; }
.display em.gold, .display em.gold .w > span { background: none; color: var(--gold); -webkit-text-fill-color: var(--gold); }
.display em.gold { filter: drop-shadow(0 0 22px rgba(232, 179, 58, 0.45)); }

.tibeb-rule {
  width: 100%; max-width: 280px; height: 8px; margin: 18px 0 20px; opacity: 0.9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='12' viewBox='0 0 64 12'%3E%3Cpath d='M0 6 L8 0 L16 6 L8 12 Z M16 6 L24 0 L32 6 L24 12 Z M32 6 L40 0 L48 6 L40 12 Z M48 6 L56 0 L64 6 L56 12 Z' fill='none' stroke='%23D4AF37' stroke-width='1.1' stroke-opacity='0.65'/%3E%3Cpath d='M4 6 L8 3 L12 6 L8 9 Z M36 6 L40 3 L44 6 L40 9 Z' fill='%2338BDF8' fill-opacity='0.55'/%3E%3Cpath d='M20 6 L24 3 L28 6 L24 9 Z M52 6 L56 3 L60 6 L56 9 Z' fill='%23D4AF37' fill-opacity='0.65'/%3E%3C/svg%3E") repeat-x left center / 56px 8px;
}
.lede, .rows p, .accordion__body p, .checks li, .venture p, .industries p, .steps p, .explorer__panel p, .cap-list p {
  text-transform: uppercase; letter-spacing: normal; color: var(--copy);
  text-shadow: 0 2px 10px rgba(2, 11, 28, 0.95);
}
.lede { font-size: clamp(12px, 1.02vw, 15px); line-height: 1.55; max-width: 560px; }

/* heading reveal: each word blurs in (as the original overlays) */
.split .w { display: inline-block; white-space: nowrap; }
.split .w > span {
  display: inline-block; opacity: 0; filter: blur(20px); transform: translateY(0.18em) scale(1.04);
  transition: opacity 0.8s ease, filter 0.8s ease, transform 1s var(--ease);
  transition-delay: calc(var(--i) * 80ms + 0.1s);
}
html:not(.slides) .is-in .split .w > span, .slides .is-current .split .w > span { opacity: 1; filter: blur(0); transform: none; }
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0.35s); }
html:not(.slides) .is-in .rv, .slides .is-current .rv { opacity: 1; transform: none; }
.tibeb-rule { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease) 0.5s; }
html:not(.slides) .is-in .tibeb-rule, .slides .is-current .tibeb-rule { clip-path: inset(0 0 0 0); }

/* slide mode (desktop): each scroll switches section like a live presentation */
.slides { scroll-snap-type: y mandatory; }
.slides .chapter { scroll-snap-align: start; scroll-snap-stop: always; }
.slides .footer { scroll-snap-align: end; }
.slides .chapter > .chapter__content, .slides .chapter > .hero, .slides .chapter > .scroll-cue {
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease);
}
.slides .chapter:not(.is-current) > .chapter__content,
.slides .chapter:not(.is-current) > .hero,
.slides .chapter:not(.is-current) > .scroll-cue { opacity: 0; transform: translateY(6vh) scale(0.985); filter: blur(12px); }
.no-js .rv, .no-js .split .w > span { opacity: 1; filter: none; transform: none; }
.no-js .tibeb-rule { clip-path: none; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  --bg: linear-gradient(135deg, rgba(46, 107, 255, 0.92) 0%, rgba(2, 132, 199, 0.92) 100%);
  position: relative; display: inline-flex; align-items: center; gap: 18px;
  height: 54px; padding: 0 7px 0 20px; border-radius: 8px;
  background: var(--bg); color: #fff; border: 1.5px solid var(--gold);
  font: 700 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(46, 107, 255, 0.4);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, color 0.4s;
  will-change: transform;
}
.btn i {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 7px;
  background: var(--gold); color: var(--navy); font-style: normal; font-size: 18px; font-weight: 700;
  transition: transform 0.4s var(--ease);
}
.btn:hover { --bg: linear-gradient(135deg, var(--gold) 0%, #d97706 100%); color: #020b1c; box-shadow: 0 10px 34px rgba(232, 179, 58, 0.45); }
.btn:hover i { background: #020b1c; color: var(--gold); }
.btn:hover i { transform: translateX(3px); }
.btn--ghost { --bg: rgba(4, 23, 55, 0.7); border-color: rgba(56, 189, 248, 0.5); box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.12); backdrop-filter: blur(8px); }
.btn--ghost:hover { box-shadow: 0 0 30px -6px rgba(56, 189, 248, 0.6), inset 0 0 18px rgba(56, 189, 248, 0.2); }
.btn--gold { --bg: linear-gradient(135deg, #f3c552, #d9a12a); color: var(--navy); border-color: rgba(255, 230, 160, 0.7); box-shadow: 0 10px 40px -10px rgba(232, 179, 58, 0.8); }
.btn--gold i { background: var(--navy); color: var(--gold); }
.btn--sm { height: 46px; font-size: 11px; }
.btn--sm i { width: 34px; height: 34px; }

/* ---------- hero ---------- */
.chapter--hero { align-items: flex-end; padding-bottom: 120px; }
.hero { width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero h1.display { font-size: clamp(56px, 6.4vw, 120px); }
.hero .lede { margin: 18px 0 0; }
.hero__side { justify-self: end; display: grid; justify-items: end; gap: 22px; }
.hero__side .actions { margin-top: 0; justify-content: flex-end; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 12px; color: var(--muted); font-size: 10px;
}
.scroll-cue i { position: relative; width: 1px; height: 46px; background: var(--hair); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: linear-gradient(transparent, var(--gold)); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- process layout ---------- */
.chapter--process { align-items: stretch; padding-top: 110px; padding-bottom: 60px; }
.chapter--process .chapter__content { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.stack-top .display { font-size: clamp(42px, 5.2vw, 84px); }

/* ---------- divisions explorer ---------- */
.explorer { margin-top: 30px; }
.explorer__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.explorer__tabs button {
  position: relative; display: grid; gap: 6px; text-align: left; padding: 14px 14px 16px; border-radius: 12px;
  background: rgba(3, 14, 36, 0.55); border: 1px solid var(--line); overflow: hidden;
  transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease), box-shadow 0.4s;
}
.explorer__tabs button b { color: var(--dim); font-size: 10px; transition: color 0.4s; }
.explorer__tabs button span { font: 400 clamp(17px, 1.5vw, 22px)/1.05 var(--display); text-transform: uppercase; color: var(--muted); transition: color 0.4s; }
.explorer__tabs button:hover { border-color: var(--line-2); transform: translateY(-2px); }
.explorer__tabs button.is-active { background: linear-gradient(160deg, rgba(46, 107, 255, 0.35), rgba(3, 14, 36, 0.7)); border-color: rgba(125, 211, 252, 0.6); box-shadow: 0 10px 40px -14px rgba(46, 107, 255, 0.9); }
.explorer__tabs button.is-active b { color: var(--gold); }
.explorer__tabs button.is-active span { color: #fff; }
.explorer__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--cyan), var(--gold)); transform: scaleX(0); transform-origin: left; }
.explorer__tabs button.is-active .explorer__bar { transform: scaleX(1); transition: transform 0.4s var(--ease); }
.explorer.is-auto .explorer__tabs button.is-active .explorer__bar { transform: scaleX(0); animation: fill var(--auto, 5.5s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.explorer__panels { position: relative; margin-top: 18px; padding: 22px 22px 20px; border-radius: 14px; background: rgba(3, 14, 36, 0.6); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-height: 190px; }
.explorer__panel h3 { font: 400 30px/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.explorer__panel p { color: var(--muted); font-size: 13.5px; }
.explorer__panel.is-active { animation: panel 0.7s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
.link { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 10.5px; font-weight: 700; }
.link i { font-style: normal; transition: transform 0.4s var(--ease); }
.link:hover i { transform: translateX(5px); }

/* ---------- cursor ring ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); will-change: transform; }
.cursor__dot { width: 6px; height: 6px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.cursor__ring {
  display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(125, 211, 252, 0.6);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.cursor__label { font: 700 8px/1 var(--mono); letter-spacing: 0.16em; color: var(--navy); opacity: 0; transition: opacity 0.2s; }
.cursor.is-link .cursor__ring { width: 58px; height: 58px; border-color: var(--gold); background: rgba(232, 179, 58, 0.08); }
.is-dragging .cursor__ring, .is-holding .cursor__ring { width: 64px; height: 64px; background: rgba(125, 211, 252, 0.85); border-color: transparent; }
.is-holding .cursor__ring { width: 30px; height: 30px; background: var(--gold); box-shadow: 0 0 40px 10px rgba(232, 179, 58, 0.5); }
.is-dragging .cursor__label { opacity: 1; }
.is-dragging, .is-dragging * { cursor: grabbing !important; user-select: none; }
.is-holding, .is-holding * { user-select: none; }

/* ---------- rows (about) ---------- */
.rows { margin-top: 28px; border-top: 1px solid var(--hair); }
.rows li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.rows b { color: var(--cyan); font-size: 11px; padding-top: 4px; }
.rows h3 { font: 400 26px/1.1 var(--display); text-transform: uppercase; margin-bottom: 4px; }
.rows p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- accordion (services) ---------- */
.accordion { border-top: 1px solid var(--hair); }
.accordion details { border-bottom: 1px solid var(--hair); }
.accordion summary {
  display: flex; align-items: center; gap: 18px; padding: 18px 0; cursor: pointer; list-style: none;
  font: 400 clamp(22px, 2vw, 30px)/1.1 var(--display); text-transform: uppercase; transition: color 0.3s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary b { color: var(--cyan); font-size: 11px; }
.accordion summary span { flex: 1; }
.accordion summary i { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.accordion summary i::before, .accordion summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--gold); transition: transform 0.4s var(--ease); }
.accordion summary i::after { transform: rotate(90deg); }
.accordion details[open] summary i::after { transform: rotate(0); }
.accordion summary:hover { color: var(--sky); }
.accordion__body { padding: 0 0 20px 36px; animation: open 0.6s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }
.accordion__body p { color: var(--muted); font-size: 13.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--sky); background: rgba(56, 189, 248, 0.06); }

/* ---------- checks (platform) ---------- */
.checks { display: grid; gap: 12px; margin-top: 24px; }
.checks li { position: relative; padding-left: 34px; font-size: 13.5px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 5px;
  background: rgba(56, 189, 248, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338BDF8' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--line-2);
}

/* ---------- ventures ---------- */
.chapter--ventures { padding-top: 140px; padding-bottom: 140px; }
.split-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.split-head .lede { margin: 0; }
.ventures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }
.venture {
  position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 26px;
  border-radius: 16px; background: rgba(3, 14, 36, 0.66); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform-style: preserve-3d; transition: border-color 0.4s, box-shadow 0.4s, transform 0.6s var(--ease), opacity 1s var(--ease);
  overflow: hidden;
}
.venture::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.2), transparent 60%);
}
.venture:hover { border-color: var(--line-2); box-shadow: 0 30px 80px -30px rgba(46, 107, 255, 0.8); }
.venture:hover::before { opacity: 1; }
html:not(.slides) .is-in .venture, .slides .is-current .venture { transition: border-color 0.4s, box-shadow 0.4s, transform 0.6s var(--ease), opacity 1s var(--ease); transition-delay: 0s, 0s, 0s, var(--d); }
.ventures .venture:nth-child(1) { --d: 0.25s; } .ventures .venture:nth-child(2) { --d: 0.33s; } .ventures .venture:nth-child(3) { --d: 0.41s; }
.ventures .venture:nth-child(4) { --d: 0.49s; } .ventures .venture:nth-child(5) { --d: 0.57s; } .ventures .venture:nth-child(6) { --d: 0.65s; } .ventures .venture:nth-child(7) { --d: 0.73s; }
.venture--wide { grid-column: 1 / -1; min-height: 0; }
.venture--wide p { max-width: 80ch; }
.venture--featured {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(150deg, rgba(46, 107, 255, 0.24), rgba(3, 14, 36, 0.78) 55%);
  box-shadow: 0 0 70px -26px rgba(46, 107, 255, 0.9);
}
.venture--featured h3 { font-size: clamp(34px, 3.2vw, 52px); }
.venture--featured p { max-width: 92ch; }
.venture__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 44px; }
.venture__meta .mono { color: var(--dim); font-size: 9.5px; }
.venture h3 { font: 400 30px/1.05 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.venture p { margin: 0; color: var(--muted); font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 700 9.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px; border: 1px solid currentColor; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status--live { color: #4ade80; }
.status--live::before { animation: blink 1.4s ease-in-out infinite; }
.status--done { color: var(--sky); }
.status--proto { color: var(--gold); }
.status--dev { color: var(--dim); }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- industries ---------- */
.industries { margin-top: 30px; border-top: 1px solid var(--hair); }
.industries li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--hair); cursor: default; outline: none;
}
.industries b { color: var(--cyan); font-size: 10px; }
.industries h3 { font: 400 clamp(26px, 2.6vw, 40px)/1.05 var(--display); text-transform: uppercase; transition: color 0.4s, transform 0.5s var(--ease), text-shadow 0.4s; }
.industries p {
  grid-column: 2; margin: 0; max-height: 0; opacity: 0; overflow: hidden; color: var(--muted); font-size: 13px;
  transition: max-height 0.6s var(--ease), opacity 0.4s, margin 0.4s;
}
.industries li:hover h3, .industries li:focus-visible h3 { color: var(--sky); transform: translateX(8px); text-shadow: 0 0 24px rgba(56, 189, 248, 0.6); }
.industries li:hover p, .industries li:focus-visible p, .industries li.is-open p { max-height: 120px; opacity: 1; margin-top: 6px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li {
  position: relative; padding: 22px; border-radius: 14px;
  background: rgba(3, 14, 36, 0.62); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.steps li::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.steps li:nth-child(4)::before { background: linear-gradient(90deg, var(--blue), var(--gold)); }
.steps li:nth-child(1) { --d: 0.3s; } .steps li:nth-child(2) { --d: 0.42s; } .steps li:nth-child(3) { --d: 0.54s; } .steps li:nth-child(4) { --d: 0.66s; }
.steps b { color: var(--gold); font-size: 10px; display: block; margin-bottom: 18px; }
.steps h3 { font: 400 28px/1.05 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- contact ---------- */
.channels { margin-top: 34px; border-top: 1px solid var(--hair); }
.channels a { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--hair); transition: background 0.3s, padding 0.4s var(--ease); }
.channels span { color: var(--dim); font-size: 10px; }
.channels b { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.channels i { font-style: normal; color: var(--gold); transition: transform 0.4s var(--ease); }
.channels a:hover { background: rgba(56, 189, 248, 0.06); padding-left: 12px; }
.channels a:hover i { transform: translate(3px, -3px); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; background: linear-gradient(transparent, rgba(1, 3, 10, 0.95) 30%); }
.footer__tibeb { height: 12px; background: url("../img/tibeb.svg") repeat-x left center / auto 12px; opacity: 0.7; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 34px var(--pad-r) 40px var(--pad-l); }
.footer__inner img { height: 30px; width: auto; }
.footer__inner p { margin: 0; color: var(--muted); font-size: 10px; }
.footer__meta { color: var(--dim) !important; }

/* ---------- modal form ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1, 3, 10, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade 0.4s var(--ease); }
.modal__panel {
  position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 34px; border-radius: 18px;
  background: linear-gradient(170deg, rgba(7, 34, 84, 0.95), rgba(3, 12, 30, 0.97));
  border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(46, 107, 255, 0.8);
  animation: pop 0.6s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.modal__panel > .x { position: absolute; right: 20px; top: 20px; }
.modal__title { font: 400 clamp(36px, 5vw, 56px)/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.modal__sub { color: var(--muted); text-transform: none; letter-spacing: 0.02em; font-size: 12px; margin-bottom: 24px; }
.modal__sub a { color: var(--gold); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 8px;
  font: 400 15px/1.4 var(--mono); letter-spacing: 0; color: var(--text);
  background: rgba(1, 3, 10, 0.55); border: 1px solid var(--line); transition: border-color 0.3s, box-shadow 0.3s;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237DD3FC' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.form select option { background: var(--navy); }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15); }
.form .is-invalid { border-color: var(--red); }
.form .btn { justify-self: start; }
.form__note { margin: 0; min-height: 1em; color: #4ade80; text-transform: none; letter-spacing: 0.02em; }
.form__note.is-error { color: #f87171; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .hud__nav a { padding: 10px 11px; letter-spacing: 0.1em; }
}
@media (max-width: 1100px) {
  .hud__nav, .chapters { display: none; }
  :root { --pad-l: clamp(20px, 7vw, 90px); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ventures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --pad-l: 20px; --pad-r: 20px; }
  .chapter { min-height: auto; padding-top: 110px; padding-bottom: 90px; }
  .chapter--hero { min-height: 100vh; min-height: 100svh; padding-bottom: 96px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero__side { justify-self: start; justify-items: start; }
  .hero__side .actions { justify-content: flex-start; }
  .chapter__content, .chapter__content--right { max-width: 640px; margin-left: 0; }
  .chapter__content--wide { margin: 0; }
  .vignette { background: linear-gradient(180deg, rgba(1, 3, 10, 0.2), rgba(1, 3, 10, 0.55)); }
  .split-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cap-tab { display: none; }
  .menu { grid-template-columns: minmax(0, 1fr); align-content: center; padding-top: 90px; background: rgba(1, 3, 10, 0.92); }
  .menu__aside { align-self: start; }
  .menu__list span { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .hud { top: 12px; left: 12px; right: 12px; }
  .hud__brand { height: 46px; padding: 0 12px; }
  .hud__brand img { height: 22px; }
  .hud__tag { display: none; }
  .hud__menu { height: 46px; gap: 14px; padding: 0 14px; }
  .chapter--hero { min-height: 118vh; min-height: 118svh; padding-bottom: 80px; }
  .watermark { width: 62vw; right: -12vw; bottom: 4vh; }
  .watermark span { display: none; }
  .explorer__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ventures, .steps, .form__row { grid-template-columns: minmax(0, 1fr); }
  .venture { min-height: 0; }
  .venture__meta { margin-bottom: 24px; }
  .actions .btn { width: 100%; justify-content: space-between; }
  .channels a { grid-template-columns: minmax(0, 1fr) auto; }
  .channels span { grid-column: 1 / -1; }
  .channels i { grid-row: 2; grid-column: 2; }
  .industries p { max-height: 120px; opacity: 1; margin-top: 4px; }
  .modal__panel { padding: 26px 20px; }
  .form .btn { justify-self: stretch; justify-content: space-between; }
  .scroll-cue { bottom: 18px; }
  .menu__list a { font-size: clamp(30px, 5.6vh, 52px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
