/* ============================================================
   SWIVEL TECHNOLOGIES — immersive dark theme
   Layer order: canvas(0) → vignette(1) → content(2) → chrome(10)
   → overlays(60) → loader(100)
   Progressive enhancement: base styles render a fully readable
   static dark site (no JS / no WebGL / small screens / reduced
   motion). html.gl unlocks the tall scroll-scene layout driven
   by the WebGL particle stage.
   ============================================================ */

:root {
  --bg: #050508;
  --bg-2: #0a0a14;
  --text: #eceaf1;
  --dim: #9b97a8;
  --faint: #5d5a6b;
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.06);

  --ember: #ff7a18;
  --gold: #ffb627;
  --violet: #7b5cff;
  --blue: #4f7cff;
  --magenta: #ff2d96;
  --teal: #2dd6c1;
  --red: #ff3d2e;

  --accent: var(--ember);

  --f-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --pad-x: clamp(20px, 5vw, 84px);
  --chrome-pad: clamp(16px, 2.4vw, 34px);
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--chrome-pad) + 76px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

html.overlay-open,
html.overlay-open body {
  overflow: hidden;
}

html:not(.overlay-open) body {
  overflow-y: visible;
}

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

::selection { background: var(--ember); color: #0a0502; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c1b26; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2c2a3a; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.mono {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- stage ---------- */
#gl {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  display: none;
  pointer-events: none;
}
html.gl #gl { display: block; }

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

main { position: relative; z-index: 2; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center; flex-direction: column;
  gap: 22px;
  background: var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s;
}
html.gl-loading .loader, html.gl .loader { display: flex; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__word { font-size: 0.78rem; color: var(--dim); }
.loader__word b { color: var(--ember); font-weight: 500; }
.loader__bar {
  width: min(220px, 50vw); height: 1px; background: var(--line-soft);
  position: relative; overflow: hidden;
}
.loader__bar span {
  position: absolute; inset: 0; transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--ember), var(--gold));
}
.loader__pct { color: var(--faint); font-size: 0.62rem; }

/* ---------- persistent chrome ---------- */
.chrome { position: fixed; z-index: 10; }

.chrome--top {
  top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--chrome-pad);
  pointer-events: none;
}
.chrome--top > * { pointer-events: auto; }

.brand { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand__main {
  font-weight: 700; font-size: 1.06rem; letter-spacing: 0.06em;
  background: linear-gradient(120deg, #ffc24b 10%, var(--ember) 60%, #d94e0f);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand__sub { font-size: 0.5rem; letter-spacing: 0.42em; color: var(--dim); }

.pills { display: flex; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.62em 1.25em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 14, 0.45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
}
.pill:hover {
  border-color: var(--ember);
  box-shadow: 0 0 24px -6px rgba(255, 122, 24, 0.55);
  color: #fff;
}
.pill--accent { border-color: rgba(255, 122, 24, 0.5); color: var(--ember); }
.pill--accent:hover { background: var(--ember); color: #140700; }

.pill__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
}

/* product index — bottom left */
.chrome--index {
  left: var(--chrome-pad); bottom: var(--chrome-pad);
  display: flex; flex-direction: column; gap: 16px;
}
.windex { display: flex; flex-direction: column; gap: 7px; }
.windex a {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--f-mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--faint);
  transition: color 0.3s, transform 0.3s;
  position: relative; padding-left: 14px;
}
.windex a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 7px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.windex a:hover { color: var(--dim); }
.windex a .n { font-size: 0.54rem; color: inherit; opacity: 0.65; }
.windex li.is-active a { color: var(--item-accent, var(--ember)); transform: translateX(3px); }
.windex li.is-active a::before { transform: scaleX(1); }

.btn-outline {
  align-self: flex-start;
  padding: 0.7em 1.3em;
  border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dim);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn-outline:hover {
  border-color: var(--ember); color: var(--text);
  box-shadow: inset 0 0 18px -8px rgba(255, 122, 24, 0.6);
}

/* scroll progress — bottom right */
.chrome--progress {
  right: var(--chrome-pad); bottom: var(--chrome-pad);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.progress__label {
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.14em;
  color: var(--faint);
}
.progress__track {
  width: 1px; height: 72px; background: var(--line-soft);
  position: relative; overflow: hidden;
}
.progress__fill {
  position: absolute; inset: 0;
  background: linear-gradient(var(--ember), var(--gold));
  transform-origin: top; transform: scaleY(0);
}

/* ---------- scenes (base = readable flow layout) ---------- */
.scene { position: relative; }
.scene,
#work { scroll-margin-top: calc(var(--chrome-pad) + 76px); }
.scene__hold {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(90px, 14vh, 150px) var(--pad-x);
  max-width: 1560px; margin: 0 auto; width: 100%;
}

/* immersive heights only when the GL stage is live */
/* scenes are taller than their sticky viewport hold, creating a short dwell
   while particles transition; JS marks oversized scenes as .scene--unstick. */
html.gl .scene__hold {
  position: sticky; top: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}
html.gl .scene--intro { height: 140vh; height: 140svh; height: 140dvh; }
html.gl .scene--hero { height: 132vh; height: 132svh; height: 132dvh; }
html.gl .scene--worktitle { min-height: 108vh; min-height: 108svh; min-height: 108dvh; }
html.gl .scene--product { min-height: 145vh; min-height: 145svh; min-height: 145dvh; }
html.gl .scene--text { min-height: 118vh; min-height: 118svh; min-height: 118dvh; }
html.gl .scene--contact { min-height: 0; }
html.gl .scene--contact .scene__hold { position: relative; }
html.gl .scene.scene--unstick {
  height: auto;
  min-height: auto;
}
html.gl .scene.scene--unstick .scene__hold {
  position: relative;
  top: auto;
  min-height: auto;
}

.eyebrow { color: var(--dim); margin-bottom: 26px; }
.eyebrow b { color: var(--ember); font-weight: 500; }

h1, h2, h3 { font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; }

.title-xl { font-size: clamp(2.9rem, 9.2vw, 8.6rem); text-wrap: balance; }
.title-lg { font-size: clamp(2.2rem, 6vw, 5.2rem); text-wrap: balance; }
.title-md { font-size: clamp(1.7rem, 4.2vw, 3.4rem); }

.lede {
  font-size: clamp(1.02rem, 1.45vw, 1.3rem);
  color: var(--dim); line-height: 1.7;
  max-width: 58ch;
}

/* ---------- intro ---------- */
.scene--intro .scene__hold { align-items: center; text-align: center; justify-content: center; }
.intro__wordmark {
  font-weight: 700; line-height: 1;
  font-size: clamp(3.4rem, 13vw, 8.5rem); letter-spacing: -0.01em;
  background: linear-gradient(170deg, #ffc94f 20%, var(--ember) 58%, #c43e0a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.intro__wordsub { margin-top: 18px; color: var(--dim); letter-spacing: 0.5em; }
html.gl .intro__logo { display: none; }    /* particles draw the logo instead */
html.no-gl .scene--intro { display: none; } /* static fallback opens on the hero */

.scroll-hint {
  position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%);
  color: var(--faint); font-size: 0.6rem;
  animation: hint-pulse 2.6s ease-in-out infinite;
  white-space: nowrap;
}
/* under GL the engine reveals it (adds .is-on) once the logo has formed */
html.gl .scroll-hint { opacity: 0; animation: none; transition: opacity 1.2s ease; }
html.gl .scroll-hint.is-on { opacity: 1; animation: hint-pulse 2.6s ease-in-out infinite; }
@keyframes hint-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ---------- hero ---------- */
.scene--hero .scene__hold { align-items: center; text-align: center; }
.hero__title {
  background: linear-gradient(180deg, #fff 30%, #b9b4cc);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__tag {
  margin-top: 30px;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: var(--text); font-weight: 500; letter-spacing: 0.01em;
}
.hero__sub { margin-top: 18px; color: var(--faint); font-size: 0.62rem; }

/* ---------- work title ---------- */
.scene--worktitle .scene__hold { align-items: flex-start; }
.scene--worktitle .lede { margin-top: 24px; }

/* ---------- product scenes ---------- */
.scene--product { --accent: var(--ember); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 4.5vw, 80px);
  align-items: center;
  width: 100%;
}

.product__kicker { color: var(--accent); margin-bottom: 20px; }
.product__kicker .idx { color: var(--faint); margin-right: 10px; }
.product__title { font-family: var(--f-mono); font-weight: 700; letter-spacing: -0.01em; }
.product__tagline {
  margin-top: 16px;
  font-size: clamp(0.98rem, 1.4vw, 1.22rem);
  color: var(--dim); font-weight: 500;
}
.product__desc { margin-top: 22px; color: var(--dim); font-size: 0.95rem; line-height: 1.75; max-width: 52ch; }

.feature-list {
  margin-top: 26px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 7px 22px;
}
.feature-list li {
  font-family: var(--f-mono); font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint);
  padding-left: 14px; position: relative;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 1px; background: var(--accent);
}

.product__foot {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim); font-size: 0.62rem; line-height: 1.9;
  max-width: 60ch;
}
.product__foot b { color: var(--accent); font-weight: 500; }

.product__stat { display: flex; gap: 18px; align-items: baseline; margin-top: 26px; }
.product__stat strong {
  font-size: clamp(2.6rem, 4.5vw, 4rem); font-weight: 700; letter-spacing: -0.03em;
  color: var(--accent);
}
.product__stat span { color: var(--faint); max-width: 22ch; font-size: 0.62rem; }

.industry-grid {
  margin-top: 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.industry-grid div {
  border: 1px solid var(--line-soft); padding: 12px 14px; border-radius: 8px;
}
.industry-grid h4 {
  font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
  margin-bottom: 6px;
}
.industry-grid p { font-size: 0.72rem; color: var(--faint); line-height: 1.6; }

/* glassy 3d card */
.product__card-wrap { perspective: 1400px; }
.product__card {
  position: relative;
  aspect-ratio: 16 / 10.5;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 55%),
    radial-gradient(120% 130% at 80% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    rgba(10, 10, 18, 0.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow:
    0 40px 90px -28px rgba(0, 0, 0, 0.9),
    0 0 80px -40px color-mix(in srgb, var(--accent) 60%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform: rotateX(7deg) rotateY(-7.5deg);
  transform-style: preserve-3d;
  overflow: hidden;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.product:nth-child(even) .product__card,
.scene--product:nth-of-type(even) .product__card { transform: rotateX(7deg) rotateY(7.5deg); }
.product__card:hover { transform: rotateX(3deg) rotateY(-2deg); }

.card__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-mono); font-size: 0.56rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint);
}
.card__bar .dots { display: flex; gap: 5px; }
.card__bar .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.card__bar .dots i:first-child { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.card__bar .addr { margin-left: auto; color: var(--accent); }

.card__screen {
  position: absolute; inset: 44px 0 0 0;
  display: flex; align-items: center; justify-content: center;
}

/* placeholder cover until per-product procedural mockups land */
.card__cover { text-align: center; position: relative; z-index: 1; }
.card__cover .big {
  font-family: var(--f-mono); font-weight: 700;
  font-size: clamp(4rem, 9vw, 9rem); line-height: 1; letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 70%, transparent);
}
.card__cover .tag { margin-top: 12px; color: var(--faint); font-size: 0.56rem; }
.card__screen::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 44px 100%;
  mask-image: radial-gradient(80% 80% at 50% 50%, rgba(0,0,0,0.5), transparent);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, rgba(0,0,0,0.5), transparent);
}
.card__scan {
  position: absolute; left: 0; right: 0; height: 1px; top: 30%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
  animation: scan 5.5s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 22%; } 50% { top: 82%; } }

/* ---------- generic text scenes ---------- */
.scene--text .scene__hold { align-items: flex-start; }
.scene--text .body-copy { margin-top: 34px; display: grid; gap: 22px; max-width: 70ch; }
.scene--text .body-copy p { color: var(--dim); line-height: 1.8; font-size: 0.98rem; }
.sector-strip { margin-top: 38px; color: var(--faint); font-size: 0.6rem; line-height: 2; }
.sector-strip b { color: var(--ember); font-weight: 500; }

/* why list */
.why-list { margin-top: 44px; width: 100%; }
.why-list li {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  padding: 26px 0; border-top: 1px solid var(--line-soft);
  align-items: baseline;
}
.why-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.why-list .n { font-family: var(--f-mono); font-size: 0.66rem; color: var(--ember); letter-spacing: 0.1em; }
.why-list h3 { font-size: clamp(1.2rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.015em; }
.why-list p { margin-top: 8px; color: var(--faint); font-size: 0.88rem; max-width: 64ch; }

/* mission / vision */
.mv-grid { display: grid; gap: clamp(48px, 8vh, 90px); width: 100%; }
.mv-grid article { max-width: 880px; }
.mv-grid article:nth-child(2) { justify-self: end; text-align: right; }
.mv-grid .mono { color: var(--ember); margin-bottom: 18px; display: block; }
.mv-grid p {
  font-size: clamp(1.25rem, 2.6vw, 2.1rem);
  line-height: 1.42; font-weight: 500; letter-spacing: -0.015em;
  color: var(--text);
}
.mv-grid p em { font-style: normal; color: var(--dim); }

/* ---------- team ---------- */
.founder {
  margin-top: 44px;
  display: grid; grid-template-columns: minmax(0, 220px) 1fr;
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.founder__photo { position: relative; }
.founder__photo img {
  border-radius: 14px; filter: grayscale(1) contrast(1.05);
  border: 1px solid var(--line);
  transition: filter 0.5s, box-shadow 0.5s;
}
.founder__photo:hover img {
  filter: grayscale(0.15) contrast(1.02);
  box-shadow: 0 0 70px -18px rgba(255, 122, 24, 0.7);
}
.founder h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); }
.founder .role { color: var(--ember); margin: 10px 0 16px; }
.founder p { color: var(--faint); font-size: 0.88rem; line-height: 1.75; max-width: 68ch; }
.founder p + p { margin-top: 12px; }

.team-grid {
  margin-top: 54px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 30px);
}
.team-card { position: relative; }
.team-card figure {
  aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line);
}
.team-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.92);
  transition: filter 0.55s, transform 0.55s;
}
.team-card:hover img { filter: grayscale(0.1) brightness(1); transform: scale(1.035); }
.team-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px;
  box-shadow: 0 0 80px -20px rgba(255, 122, 24, 0);
  transition: box-shadow 0.55s; pointer-events: none;
}
.team-card:hover::after { box-shadow: 0 0 80px -20px rgba(255, 122, 24, 0.65); }
.team-card h3 { margin-top: 16px; font-size: 1.02rem; font-weight: 600; }
.team-card .role { color: var(--faint); font-size: 0.6rem; margin-top: 6px; }

.stat-strip {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
}
.stat-strip div { padding: 26px 18px 0 0; }
.stat-strip strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffc24b, var(--ember));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-strip span { color: var(--faint); font-size: 0.56rem; display: block; margin-top: 8px; }

.careers-cta {
  margin-top: 64px; padding: 30px 0 0; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between;
}
.careers-cta p { color: var(--dim); font-size: 0.92rem; max-width: 46ch; }

/* ---------- contact ---------- */
.scene--contact .scene__hold { justify-content: flex-end; padding-bottom: 40px; }
.contact-grid {
  margin-top: 46px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 5vw, 90px);
  align-items: start;
}

.form { display: grid; gap: 30px; }
.form .field { position: relative; display: grid; gap: 10px; }
.form label { color: var(--faint); font-size: 0.56rem; }
.form input, .form textarea, .form select {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 2px 14px;
  color: var(--text);
  font-family: var(--f-display); font-size: 1rem;
  transition: border-color 0.3s;
  appearance: none; -webkit-appearance: none;
}
.form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239b97a8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.form select option { background: var(--bg-2); color: var(--text); }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-bottom-color: var(--accent, var(--ember));
}
.form textarea { resize: vertical; min-height: 96px; }
.form ::placeholder { color: var(--faint); }

.btn-solid {
  justify-self: start;
  padding: 1em 2.2em;
  border: 1px solid var(--ember);
  font-family: var(--f-mono); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ember);
  background: transparent;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn-solid:hover {
  background: var(--ember); color: #140700;
  box-shadow: 0 0 40px -8px rgba(255, 122, 24, 0.8);
}
.form__status { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); min-height: 1em; }
.form__status.is-ok { color: var(--teal); }
.form__status.is-err { color: var(--red); }

.contact-info { display: grid; gap: 26px; align-content: start; }
.contact-info .block h4 { color: var(--faint); font-size: 0.56rem; margin-bottom: 10px; font-weight: 500; }
.contact-info .block a, .contact-info .block p { color: var(--dim); font-size: 0.95rem; transition: color 0.3s; }
.contact-info .block a:hover { color: var(--ember); }
.socials { display: flex; gap: 18px; }
.socials a { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--faint); transition: color 0.3s; }
.socials a:hover { color: var(--ember); }

.site-foot {
  margin-top: clamp(70px, 12vh, 130px);
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: baseline;
}
.site-foot p { color: var(--faint); font-size: 0.58rem; font-family: var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.site-foot .tagline { color: var(--dim); }

/* ---------- overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(18px, 4vw, 60px);
  visibility: hidden; opacity: 0;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.overlay.is-open { visibility: visible; opacity: 1; }
.overlay__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 4, 8, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(0.8); backdrop-filter: blur(18px) saturate(0.8);
}
.overlay__panel {
  position: relative; width: min(860px, 100%);
  max-height: min(86vh, 900px); overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 9, 16, 0.82);
  padding: clamp(26px, 4vw, 54px);
  transform: translateY(26px) scale(0.985);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.overlay.is-open .overlay__panel { transform: none; }
.overlay__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; gap: 16px; }
.overlay__title { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.overlay__close { color: var(--faint); font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.2em; transition: color 0.3s; }
.overlay__close:hover { color: var(--ember); }

.ogrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ogrid a {
  --accent: var(--ember);
  border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 20px;
  display: grid; gap: 8px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.ogrid a:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  transform: translateY(-2px);
}
.ogrid .n { font-family: var(--f-mono); font-size: 0.56rem; color: var(--accent); letter-spacing: 0.18em; }
.ogrid h3 { font-family: var(--f-mono); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.ogrid p { color: var(--faint); font-size: 0.7rem; }

/* ---------- reveal animations (JS adds .in) ---------- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.16, 0.7, 0.2, 1);
}
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js [data-reveal][data-reveal-delay="1"] { transition-delay: 0.12s; }
html.js [data-reveal][data-reveal-delay="2"] { transition-delay: 0.24s; }
html.js [data-reveal][data-reveal-delay="3"] { transition-delay: 0.36s; }

/* ---------- no-WebGL / static fallback ---------- */
html.no-gl body {
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(123, 92, 255, 0.12), transparent 60%),
    radial-gradient(70% 50% at 85% 30%, rgba(255, 122, 24, 0.07), transparent 65%),
    var(--bg);
  background-attachment: fixed;
}
html.no-gl .scene--product::before,
html.no-gl .scene--text::before,
html.no-gl .scene--contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 45% at 75% 35%, color-mix(in srgb, var(--accent, var(--violet)) 10%, transparent), transparent 70%);
}

/* ---------- career page ---------- */
.page-static main { padding-top: clamp(120px, 18vh, 190px); }
.page-static .section { padding: clamp(50px, 9vh, 110px) var(--pad-x); max-width: 1280px; margin: 0 auto; }
.dept-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.dept-grid article { border: 1px solid var(--line-soft); border-radius: 12px; padding: 24px; }
.dept-grid h3 { font-family: var(--f-mono); font-size: 0.78rem; font-weight: 700; color: var(--ember); }
.dept-grid p { margin-top: 12px; color: var(--faint); font-size: 0.8rem; line-height: 1.7; }
.role-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.role-card { border: 1px solid var(--line); border-radius: 14px; padding: 30px; background: rgba(255, 255, 255, 0.015); }
.role-card h3 { font-size: 1.25rem; }
.role-card > p { margin: 14px 0 18px; color: var(--dim); font-size: 0.85rem; }
.role-card ul { display: grid; gap: 8px; }
.role-card ul li {
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); padding-left: 14px; position: relative;
}
.role-card ul li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 1px; background: var(--ember); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .product { grid-template-columns: 1fr; gap: 38px; }
  .product__card { max-width: 640px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
}

@media (max-width: 1060px), (max-height: 720px), (hover: none), (pointer: coarse) {
  html.gl .scene__hold {
    position: relative;
    top: auto;
    min-height: auto;
  }

  html.gl .scene--intro,
  html.gl .scene--hero,
  html.gl .scene--worktitle,
  html.gl .scene--product,
  html.gl .scene--text {
    height: auto;
    min-height: auto;
  }

  html.gl .scene--intro .scene__hold,
  html.gl .scene--hero .scene__hold {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }
}

@media (max-width: 900px) {
  .windex { display: none; }
  .chrome--progress .progress__track { height: 48px; }
}

@media (max-width: 700px) {
  :root { --chrome-pad: 16px; }
  .brand__sub { display: none; }
  .feature-list { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 240px; }
  .mv-grid article:nth-child(2) { justify-self: start; text-align: left; }
  .ogrid { grid-template-columns: 1fr; }
  .why-list li { grid-template-columns: 1fr; gap: 8px; }
  .chrome--index { bottom: calc(var(--chrome-pad) + 2px); }
  .scene__hold { padding-top: 110px; padding-bottom: 110px; }
}

/* ---------- reduced motion ---------- */
@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;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
