/* Vorantx — 2026 design system */
:root {
  --bg: #06080d;
  --bg-2: #0b1018;
  --bg-3: #111823;
  --bg-4: #171f2b;
  --line: rgba(186, 214, 232, 0.1);
  --line-2: rgba(186, 214, 232, 0.16);
  --cyan: #00d4ff;
  --cyan-2: #6ae4ff;
  --cyan-dim: rgba(0, 212, 255, 0.14);
  --teal: #3db8e0;
  --text: #f2f5f9;
  --text-dim: #9aa6b6;
  --text-mute: #6d7888;
  --danger: #ff6b7a;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;
  --max: 1180px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16.5px;
  overflow-x: hidden;
  min-height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

::selection {
  background: var(--cyan);
  color: #041018;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 1000;
  background: var(--cyan);
  color: #041018;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* Type */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.lede {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  max-width: 42rem;
}

.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 760px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.08rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, #6ae4ff 0%, var(--cyan) 100%);
  color: #041018;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 212, 255, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan-2);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  isolation: isolate;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header.is-scrolled::before {
  background: rgba(6, 8, 13, 0.78);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  opacity: 1;
}

.site-header.menu-open::before {
  background: #06080d;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
}

.header-inner {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: max-content;
  line-height: 0;
}

.brand-mark {
  height: 34px;
  width: auto;
  display: block;
  margin-right: -8px;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 27px;
  line-height: 1;
  color: var(--text);
  transform: translateY(2px);
}

.nav-links {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 0;
  background: var(--cyan);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.header-cta {
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  justify-self: end;
  position: relative;
  z-index: 120;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  margin: 6px auto;
  transition: 0.3s var(--ease);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 110;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  pointer-events: none;
  will-change: transform;
}

/* Hero */
.hero-scene {
  --p: 0;
  height: 190vh;
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  min-height: 100svh;
  height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: inset(
    calc(var(--p) * 12vh)
    calc(var(--p) * 7vw)
    calc(var(--p) * 18vh)
    calc(var(--p) * 7vw)
    round calc(var(--p) * 32px)
  );
  transform: scale(calc(1 + var(--p) * 0.08));
  will-change: clip-path, transform;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.04 + var(--p) * 0.22));
  will-change: transform;
}

.hero-frame {
  position: absolute;
  inset: calc(var(--p) * 12vh) calc(var(--p) * 7vw) calc(var(--p) * 18vh) calc(var(--p) * 7vw);
  border: 1px solid rgba(0, 212, 255, calc(var(--p) * 0.45));
  border-radius: calc(var(--p) * 32px);
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, calc(var(--p) * 0.45));
}

@supports not (clip-path: inset(10% round 20px)) {
  .hero-media {
    clip-path: none;
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 8, 13, 0.94) 0%, rgba(6, 8, 13, 0.72) 42%, rgba(6, 8, 13, 0.28) 100%),
    linear-gradient(180deg, rgba(6, 8, 13, 0.25) 0%, rgba(6, 8, 13, 0.08) 40%, rgba(6, 8, 13, 1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 28px;
  max-width: 920px;
  opacity: calc(1 - var(--p) * 1.35);
  transform: translateY(calc(var(--p) * -48px)) scale(calc(1 - var(--p) * 0.06));
  filter: blur(calc(var(--p) * 8px));
  will-change: transform, opacity, filter;
}

.hero-handoff {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 12%;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--text);
  opacity: max(0, calc((var(--p) - 0.42) * 2.4));
  transform: translateY(calc((1 - var(--p)) * 30px));
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(3.1rem, 9vw, 7.4rem);
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan-2);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 36px;
  z-index: 2;
  opacity: calc(1 - var(--p) * 3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 14px;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--cyan), transparent);
  animation: pulse-line 2.2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.25; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Marquee */
.marquee-wrap {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  padding: 22px 0;
}

.marquee {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}

.marquee span::before {
  content: "◆";
  color: var(--cyan);
  margin-right: 48px;
  font-size: 8px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pillar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  min-height: 220px;
}

.pillar-index {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-bottom: 28px;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.pillar p {
  color: var(--text-dim);
}

/* Bento services */
.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: minmax(240px, auto);
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover {
  border-color: rgba(0, 212, 255, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card.featured {
  grid-row: span 2;
  min-height: 540px;
}

.card-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 168px;
  height: 168px;
  object-fit: cover;
  opacity: 0.92;
  mask-image: radial-gradient(circle at 70% 30%, #000 40%, transparent 78%);
  pointer-events: none;
}

.card.featured .card-icon {
  width: 280px;
  height: 280px;
  top: 20px;
  right: 10px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  position: relative;
}

.card p {
  color: var(--text-dim);
  position: relative;
  max-width: 34ch;
}

.card .more {
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
  position: relative;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--bg);
  padding: 48px 32px;
  text-align: left;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--cyan-2);
  margin-bottom: 10px;
  transform: scale(calc(0.86 + var(--v, 1) * 0.14));
  transform-origin: left center;
}

.stat span {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-family: var(--font-mono);
}

/* Steps preview */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-dim);
  max-width: 62ch;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 380px;
  display: grid;
  align-items: end;
  padding: 48px;
}

.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 13, 0.15), rgba(6, 8, 13, 0.88));
}

.cta-band .inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Page hero */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 72px;
  overflow: hidden;
  min-height: 52vh;
  display: grid;
  align-items: end;
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 8, 13, 0.9), rgba(6, 8, 13, 0.55) 55%, rgba(6, 8, 13, 0.35)),
    linear-gradient(180deg, rgba(6, 8, 13, 0.2), rgba(6, 8, 13, 1));
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
}

/* Service blocks */
.service-block {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.service-block:last-child {
  border-bottom: 0;
}

.service-visual {
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #070b12;
}

@media (min-width: 981px) {
  .service-visual {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 8px 0 16px;
}

.service-copy p {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.feature-list {
  display: grid;
  gap: 10px;
}

.feature-list li {
  padding-left: 22px;
  position: relative;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

/* Approach long */
.timeline {
  display: grid;
  gap: 0;
}

.tl-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  position: relative;
  padding: 0 0 56px 0;
}

.tl-item::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 36px;
  bottom: 0;
  width: 1px;
  background: var(--cyan);
  transform: scaleY(var(--v, 0));
  transform-origin: top center;
  opacity: 0.85;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 36px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.tl-item:last-child::before,
.tl-item:last-child::after {
  display: none;
}

.tl-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.06);
}

.tl-item h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.tl-item p {
  color: var(--text-dim);
  max-width: 62ch;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, 0.015);
}

.principle h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.principle p {
  color: var(--text-dim);
}

/* Contact */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.field input,
.field select,
.field textarea {
  background: #0a0f16;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-dim);
}

.form-note {
  color: var(--text-mute);
  font-size: 13px;
}

.contact-aside {
  display: grid;
  gap: 22px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, 0.015);
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.15rem;
}

.form-success {
  display: none;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan-2);
  padding: 14px 16px;
  border-radius: 12px;
}

.form-success.is-visible,
.form-error.is-visible {
  display: block;
}

.form-error {
  display: none;
  border: 1px solid rgba(255, 107, 122, 0.4);
  background: rgba(255, 107, 122, 0.1);
  color: #ffb3bb;
  padding: 14px 16px;
  border-radius: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.site-footer .brand {
  margin-bottom: 16px;
}

.site-footer .brand-mark {
  height: 30px;
  margin-right: -7px;
}

.site-footer .brand-word {
  font-size: 24px;
}

.site-footer p {
  color: var(--text-mute);
  max-width: 36ch;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--text-mute);
  margin-bottom: 14px;
}

.footer-col a,
.footer-col span {
  display: block;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--text-mute);
  font-size: 13px;
}

/* Reveal */
.reveal {
  opacity: 0;
}

.reveal.is-in {
  opacity: 1;
  transition: opacity 0.32s var(--ease);
}

[data-view] {
  --v: 1;
}

.pillar,
.card,
.stat,
.step,
.principle,
.service-block,
.tl-item {
  transform: translateY(calc((1 - var(--v, 1)) * 16px));
}

.card {
  transform: translateY(calc((1 - var(--v, 1)) * 20px)) scale(calc(0.97 + var(--v, 1) * 0.03));
}

.cta-band {
  transform: translateY(calc((1 - var(--v, 1)) * 14px));
}

.cta-band img {
  transform: scale(calc(1.1 - var(--v, 1) * 0.1));
}

.service-visual {
  transform: scale(calc(0.92 + var(--v, 1) * 0.08));
}

.page-hero-media img {
  transform: scale(calc(1.1 - var(--v, 1) * 0.07));
}

/* Legal */
.legal {
  max-width: 760px;
  display: grid;
  gap: 28px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 1.02rem;
}

.legal ul,
.legal ol {
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.legal ul {
  list-style: disc;
}

.legal ol {
  list-style: decimal;
}

.legal a {
  color: var(--cyan);
}

.legal-note {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-mute);
  font-size: 0.92rem;
}

/* 404 */
.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gutter);
}

.not-found h1 {
  font-size: clamp(4rem, 12vw, 9rem);
  font-family: var(--font-display);
  letter-spacing: -0.06em;
}

/* Responsive */
@media (max-width: 980px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    grid-template-columns: unset;
  }

  .header-inner nav {
    position: static;
    width: 0;
    overflow: visible;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .pillars,
  .principles,
  .stats,
  .split,
  .footer-grid,
  .service-block {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .card.featured {
    grid-column: span 2;
    min-height: 420px;
  }

  .hero-scene {
    height: 155vh;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 4.4rem);
  }

  .scroll-cue {
    display: none;
  }

  .cta-band {
    padding: 32px 24px;
  }
}

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

  .card.featured {
    grid-column: auto;
    min-height: 380px;
  }



  .brand-mark {
    height: 28px;
    margin-right: -6px;
  }

  .brand-word {
    font-size: 22px;
  }

  .form,
  .cta-band {
    padding: 22px;
    border-radius: 20px;
  }

  .stat {
    padding: 28px 22px;
  }
}

.mobile-menu {
  display: none;
}

@media (max-width: 980px) {
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(0, 212, 255, 0.16), transparent 46%),
      #06080d;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
  }

  .mobile-menu.is-open .mobile-menu-backdrop {
    opacity: 1;
    transform: scale(1);
  }

  .mobile-menu-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
  }

  .mobile-menu-kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  }

  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .mobile-menu-nav a {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 11vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--text);
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.55s var(--ease),
      transform 0.55s var(--ease),
      color 0.25s var(--ease);
    transition-delay: calc(80ms * var(--i, 0));
  }

  .mobile-menu-nav a:active {
    color: var(--cyan);
  }

  .mobile-menu-cta {
    margin-top: 40px;
    align-self: flex-start;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s var(--ease) 0.22s, transform 0.5s var(--ease) 0.22s;
  }

  .mobile-menu.is-open .mobile-menu-kicker,
  .mobile-menu.is-open .mobile-menu-nav a,
  .mobile-menu.is-open .mobile-menu-cta {
    opacity: 1;
    transform: none;
  }

  .mobile-menu.is-closing .mobile-menu-backdrop,
  .mobile-menu.is-closing .mobile-menu-kicker,
  .mobile-menu.is-closing .mobile-menu-nav a,
  .mobile-menu.is-closing .mobile-menu-cta {
    opacity: 0;
    transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-scene { height: auto; }
  .hero {
    position: relative;
    height: auto;
    min-height: 100svh;
  }
  .hero-media,
  .hero-media img,
  .hero-content,
  .hero-handoff,
  .scroll-cue,
  .pillar,
  .card,
  .stat,
  .step,
  .principle,
  .service-block,
  .tl-item,
  .cta-band,
  .cta-band img,
  .service-visual,
  .page-hero-media img {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    clip-path: none !important;
  }
  .hero-handoff,
  .hero-frame { display: none !important; }
}
