:root {
  /* atmosphere */
  --bg: #05060d;
  --bg-2: #0a0b16;
  --surface: rgba(150, 140, 255, 0.035);
  --surface-2: rgba(150, 140, 255, 0.065);
  --text: #f2f1fa;
  --muted: #9a9bb5;
  --dim: #5f6280;
  --line: rgba(170, 165, 255, 0.11);
  --line-2: rgba(170, 165, 255, 0.2);
  --lilac: #b4a2ff;
  --violet: #7f6bff;
  --ice: #8fdcff;

  /* accent — reserved for actions, signals and highlights */
  --ember: #ff7a3d;
  --ember-hi: #ffc387;
  --ember-deep: #ff5a1f;
  --ember-grad: linear-gradient(135deg, #ffc387 0%, #ff8a47 45%, #ff5a1f 100%);
  --ember-glow: rgba(255, 122, 61, 0.45);

  --grad: linear-gradient(105deg, #e4dcff 0%, #b4a2ff 38%, #9b8cff 62%, #8fdcff 100%);

  --display: "Unbounded", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --gutter: clamp(16px, 4.5vw, 56px);
  --radius: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: rgba(255, 122, 61, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.label__num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 122, 61, 0.35);
  border-radius: 999px;
  color: var(--ember-hi);
  background: rgba(255, 122, 61, 0.08);
  letter-spacing: 0.04em;
}
.label--center { display: flex; justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border: 0;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, border-color .3s, color .3s;
}
.btn svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  color: #1c0a02;
  background: var(--ember-grad);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(120, 30, 0, 0.25),
    0 10px 30px -10px var(--ember-glow);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ember-grad);
  filter: blur(18px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.btn--primary::after {
  /* light sweep */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 120% 0;
  mix-blend-mode: soft-light;
  transition: background-position .9s var(--ease);
  pointer-events: none;
}
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 16px 40px -12px var(--ember-glow); }
.btn--primary:hover::before { opacity: 0.55; }
.btn--primary:hover::after { background-position: -30% 0; }

.btn--ghost {
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.btn--glass {
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  color: var(--text);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.09); }
.btn--sm { padding: 12px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px var(--gutter);
  transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 8px 8px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.is-scrolled .nav__inner {
  background: rgba(10, 11, 24, 0.62);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__word {
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.nav__links { position: relative; display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color .25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ember);
  transform: translateX(-50%) scale(0);
  transition: transform .35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: translateX(-50%) scale(1); }

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--text);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.nav.is-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 11, 24, 0.94);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top center;
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s;
}
.mobile-menu a:not(.btn) { padding: 13px 10px; font-size: 18px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 10px; }
.nav.is-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 901px) { .mobile-menu { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 70% 40%, rgba(127, 107, 255, 0.35), transparent 70%),
    radial-gradient(40% 30% at 80% 80%, rgba(255, 122, 61, 0.14), transparent 70%),
    var(--bg);
}
.hero__fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 6, 13, 0.25) 0%, transparent 25%, transparent 60%, var(--bg) 100%),
    radial-gradient(70% 60% at 15% 50%, rgba(5, 6, 13, 0.6), transparent 70%);
  pointer-events: none;
}
.hero__content { padding-bottom: 130px; will-change: transform, opacity; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 12px;
  color: #c9c8de;
}
.pill__dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
}
.pill__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ember);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.hero__title {
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(36px, 6.6vw, 94px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.line > span {
  display: inline-block;
  transform: translateY(105%) rotate(2deg);
  transform-origin: left bottom;
  transition: transform 1.3s var(--ease);
  transition-delay: calc(var(--d) * 110ms + 150ms);
}
.hero__in {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
  transition-delay: calc(var(--d) * 110ms + 150ms);
}
.is-ready .line > span { transform: none; }
.is-ready .hero__in { opacity: 1; transform: none; filter: none; }

.hero__lead {
  max-width: 560px;
  margin-top: 28px;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
  color: #b9b8d2;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 92px;
  width: 24px; height: 38px;
  margin-left: -12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--ember);
  animation: cue 2s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

.marquee {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.marquee__track span::after { content: "✦"; color: var(--ember); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(90px, 12vw, 160px) 0; }
.section__head { margin-bottom: clamp(44px, 6vw, 76px); }
.section__title {
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-title {
  clip-path: inset(0 0 100% 0);
  transform: translateY(30px);
  transition: clip-path 1.3s var(--ease), transform 1.3s var(--ease);
}
.reveal-title.is-visible { clip-path: inset(0 0 -10% 0); transform: none; }

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(270px, auto);
  gap: 16px;
}
.tile {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(150, 140, 255, 0.07), rgba(150, 140, 255, 0.02));
  overflow: hidden;
  isolation: isolate;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease), opacity 1s var(--ease);
}
.tile.reveal:not(.is-visible) { transform: perspective(1200px) translateY(28px); }
.tile::before {
  /* gradient border that lights up toward the cursor */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 140, 80, 0.75), transparent 60%),
    linear-gradient(var(--line), var(--line));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .5;
  transition: opacity .4s;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(180, 162, 255, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.tile:hover::before { opacity: 1; }
.tile:hover::after { opacity: 1; }

.tile--ai { grid-column: span 4; grid-row: span 2; }
.tile--design { grid-column: span 2; }
.tile--eng { grid-column: span 2; }
.tile--consult { grid-column: span 6; flex-direction: row; align-items: flex-end; gap: 40px; min-height: 250px; }

.tile__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: #d4d2ea;
  letter-spacing: 0.04em;
}
.tile__tag i {
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember-glow);
}
.tile h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.tile--ai h3 { font-size: clamp(24px, 2.6vw, 34px); max-width: 460px; }
.tile p { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; }
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  color: #cfcde4;
  background: rgba(255, 255, 255, 0.025);
}

.tile__visual { position: relative; flex: 1; min-height: 120px; margin-bottom: 22px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* AI particle morph */
.tile__visual--morph {
  min-height: 340px;
  margin: -28px -28px 18px;
  cursor: crosshair;
}
.tile__visual--morph::before {
  content: "";
  position: absolute;
  inset: 15% 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(127, 107, 255, 0.22), rgba(255, 122, 61, 0.05) 55%, transparent 72%);
  filter: blur(30px);
  pointer-events: none;
}
#morph { position: absolute; inset: 0; width: 100%; height: 100%; }
.morph__hud {
  position: absolute;
  top: 24px; left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(10, 11, 24, 0.6);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}
.morph__hud b { font-weight: 400; color: var(--ember-hi); }
.morph__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
  animation: blink 1.2s steps(1) infinite;
}
.morph__hint {
  position: absolute;
  top: 30px; right: 26px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
  pointer-events: none;
}
@media (pointer: coarse) { .morph__hint { display: none; } }

/* design UI mock */
.tile__visual--ui { display: grid; place-items: center; }
.ui {
  position: relative;
  width: 100%;
  max-width: 280px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(10, 11, 24, 0.7);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
.ui__top { display: flex; gap: 5px; margin-bottom: 10px; }
.ui__top i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.ui__hero {
  height: 56px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 122, 61, 0.45), transparent 45%),
    linear-gradient(135deg, rgba(180, 162, 255, 0.45), rgba(127, 107, 255, 0.15));
  background-size: 200% 100%;
  animation: uiHero 8s var(--ease-io) infinite alternate;
}
@keyframes uiHero { to { background-position: 100% 0; } }
.ui__row { display: flex; gap: 6px; margin-top: 8px; }
.ui__row span { flex: 1; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); }
.ui__row .ui__btn {
  flex: 0 0 52px;
  background: var(--ember-grad);
  animation: uiPress 6s var(--ease) infinite;
}
@keyframes uiPress {
  0%, 55%, 100% { transform: none; box-shadow: none; }
  60% { transform: scale(.9); box-shadow: 0 0 0 6px rgba(255, 122, 61, 0.2); }
  70% { transform: none; box-shadow: 0 0 0 12px rgba(255, 122, 61, 0); }
}
.ui__cursor {
  position: absolute;
  top: 30px; left: 30px;
  width: 16px; height: 16px;
  fill: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  animation: uiCursor 6s var(--ease) infinite;
}
@keyframes uiCursor {
  0% { transform: translate(0, 0); }
  25% { transform: translate(120px, 10px); }
  50%, 62% { transform: translate(214px, 88px); }
  64% { transform: translate(214px, 88px) scale(.85); }
  68% { transform: translate(214px, 88px); }
  100% { transform: translate(0, 0); }
}

/* code */
.code {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(5, 6, 13, 0.6);
  overflow: hidden;
}
.code__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.code__bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.code__bar span { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.code code {
  display: block;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: #cfcde4;
}
.code .k { color: var(--lilac); }
.code .f { color: var(--ember-hi); }
.code .s { color: var(--ice); }
.caret {
  display: inline-block;
  width: 7px; height: 15px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--ember);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* consulting graph */
.tile--consult .tile__body { flex: 0 0 auto; max-width: 440px; }
.tile__visual--graph { order: 2; align-self: stretch; min-height: 150px; margin: 0; }
.tile__visual--graph svg { width: 100%; height: 100%; overflow: visible; }
.graph-grid path { stroke: var(--line); stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.graph-area { fill: url(#ga); opacity: 0; transition: opacity 1.4s var(--ease) .6s; }
.graph-line {
  fill: none;
  stroke: url(#gl);
  stroke-width: 2.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease-io) .2s;
}
.graph-dot {
  position: absolute;
  right: -5px; top: calc(18 / 140 * 100% - 5px);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px rgba(255, 122, 61, 0.2), 0 0 20px var(--ember);
  opacity: 0;
  transform: scale(0);
  transition: opacity .4s, transform .6s var(--ease) 2.2s;
}
.tile.is-visible .graph-line { stroke-dashoffset: 0; }
.tile.is-visible .graph-area { opacity: 1; }
.tile.is-visible .graph-dot { opacity: 1; transform: scale(1); }

/* ---------- steps ---------- */
.steps-wrap { position: relative; }
.steps-track {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.steps-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, rgba(180, 162, 255, 0.4), var(--ember));
}
.steps-track span::after {
  content: "";
  position: absolute;
  right: -5px; top: -4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px rgba(255, 122, 61, 0.18), 0 0 18px var(--ember);
  opacity: var(--p-dot, 0);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}
.step { position: relative; padding: 36px 28px 0 0; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  transition: all .5s var(--ease);
}
.step.is-on .step__num {
  border-color: transparent;
  background: var(--ember-grad);
  color: #1c0a02;
  box-shadow: 0 8px 24px -8px var(--ember-glow);
}
.step h3 {
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.035em;
  transition: color .5s;
}
.step p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.step:not(.is-on) h3 { color: #8d8ca6; }

/* ---------- why ---------- */
.why {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.why__intro { position: sticky; top: 120px; }
.why__text { margin: 24px 0 32px; max-width: 440px; color: var(--muted); }
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color .4s, transform .6s var(--ease), opacity 1s var(--ease);
}
.feature:hover { border-color: var(--line-2); transform: translateY(-4px); }
.feature__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(180, 162, 255, 0.16), rgba(10, 11, 24, 0.6));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px -12px rgba(127, 107, 255, 0.5);
}
.feature__icon svg {
  width: 28px; height: 28px;
  fill: none; stroke: #ecebf8; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--ease);
}
.feature__icon .acc { stroke: var(--ember); }
.feature__icon .acc-fill { fill: var(--ember); stroke: none; }
.feature:hover .feature__icon svg { transform: scale(1.08) rotate(-4deg); }
.feature h3 {
  margin-top: 34px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.feature p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- stack ---------- */
.stack { padding: 20px 0 40px; }
.stack__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 860px;
  margin: 24px auto 0;
  list-style: none;
}
.stack__list li {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  color: #c6c5dc;
  transition: border-color .3s, color .3s, background .3s;
}
.stack__list li:hover { border-color: rgba(255, 122, 61, 0.45); color: #fff; background: rgba(255, 122, 61, 0.06); }

/* ---------- faq ---------- */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 96px);
}
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  transition: color .25s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex-shrink: 0;
  width: 34px; height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  color: var(--muted);
  transition: transform .5s var(--ease), background-color .4s, color .4s, border-color .4s;
}
.qa[open] summary::after {
  transform: rotate(135deg);
  background-color: var(--ember);
  border-color: var(--ember);
  color: #1c0a02;
}
.qa summary:hover { color: #fff; }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 56px 26px 0; color: var(--muted); }

/* ---------- contact ---------- */
.contact { padding-top: 40px; }
.contact__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(127, 107, 255, 0.1), rgba(10, 11, 24, 0.92) 50%);
  overflow: hidden;
  isolation: isolate;
}
.contact__glow {
  position: absolute;
  z-index: -1;
  inset: -30% -10% auto auto;
  width: 60%; height: 120%;
  background:
    radial-gradient(circle at 60% 60%, rgba(255, 122, 61, 0.22), transparent 50%),
    radial-gradient(circle at 30% 30%, rgba(127, 107, 255, 0.3), transparent 60%);
  filter: blur(60px);
  animation: glow 14s var(--ease-io) infinite alternate;
}
@keyframes glow { to { transform: translate(-40%, 25%) scale(1.1); } }
.contact__text { margin-top: 20px; color: var(--muted); max-width: 380px; }
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(17px, 2vw, 24px);
  letter-spacing: -0.03em;
  transition: border-color .3s, color .3s;
}
.contact__mail svg {
  width: 18px; height: 18px;
  fill: none; stroke: var(--ember); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.contact__mail:hover { border-color: var(--ember); }
.contact__mail:hover svg { transform: translate(3px, -3px); }

.mailcard {
  position: relative;
  align-self: center;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: rgba(5, 6, 13, 0.45);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.mailcard__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mailcard__addr {
  display: block;
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  white-space: nowrap;
  background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 1px no-repeat;
  padding-bottom: 6px;
  transition: background-size .6s var(--ease);
}
.mailcard__addr:hover { background-size: 100% 1px; }
.mailcard__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
#copyMail.is-copied { border-color: rgba(110, 231, 168, 0.5); color: #b8f5d4; }
.mailcard__meta {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.mailcard__meta li { display: flex; justify-content: space-between; gap: 16px; color: var(--text); }
.mailcard__meta span { font-family: var(--mono); font-size: 12px; color: var(--dim); padding-top: 2px; }

/* ---------- footer ---------- */
.footer {
  position: relative;
  margin-top: clamp(60px, 10vw, 120px);
  padding-top: 64px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}
.footer__brand p { margin: 18px 0 22px; max-width: 280px; font-size: 14px; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col h4 {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.footer__col a, .footer__col address { width: fit-content; color: var(--muted); font-style: normal; transition: color .25s; }
.footer__col a { background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .4s var(--ease); }
.footer__col a:hover { color: var(--text); background-size: 100% 1px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}
.to-top { color: var(--muted); transition: color .25s; }
.to-top span { display: inline-block; color: var(--ember); transition: transform .4s var(--ease); }
.to-top:hover { color: var(--text); }
.to-top:hover span { transform: translateY(-3px); }
.footer__word {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(80px, 21vw, 300px);
  line-height: 0.8;
  letter-spacing: -0.07em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(180, 162, 255, 0.2), rgba(255, 122, 61, 0.06) 55%, transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  margin-bottom: -0.12em;
}

/* ---------- legal page ---------- */
.legal-hero {
  position: relative;
  padding: 180px 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.legal-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%; right: -10%;
  width: 70%; height: 140%;
  background:
    radial-gradient(circle at 60% 50%, rgba(255, 122, 61, 0.12), transparent 40%),
    radial-gradient(circle, rgba(127, 107, 255, 0.25), transparent 65%);
  filter: blur(40px);
}
.legal-hero h1 {
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.legal-hero p { margin-top: 20px; max-width: 560px; color: var(--muted); }
.legal-tabs {
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin-top: 36px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 11, 24, 0.7);
  backdrop-filter: blur(16px);
  overflow-x: auto;
  scrollbar-width: none;
}
.legal-tabs::-webkit-scrollbar { display: none; }
.legal-tabs a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s, background .25s;
}
.legal-tabs a:hover { color: var(--text); background: var(--surface-2); }
.legal-tabs a.is-active { color: #1c0a02; background: var(--ember-grad); }

.legal-body { padding-bottom: 40px; }
.legal-block {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.legal-block__head .label { margin-bottom: 16px; }
.legal-block__head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.legal-block__head small { display: block; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--dim); }

.doc { max-width: 760px; color: #c6c5dc; }
.doc h3 { margin: 32px 0 10px; font-size: 17px; font-weight: 500; color: var(--text); }
.doc h3:first-child { margin-top: 0; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 12px; }
.doc ul { list-style: none; }
.doc li { position: relative; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.7em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--ember);
}
.doc a { color: var(--ember-hi); border-bottom: 1px solid rgba(255, 122, 61, 0.35); transition: border-color .25s; }
.doc a:hover { border-color: var(--ember); }

.details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.details div { padding: 20px 22px; background: var(--bg-2); }
.details dt { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.details dd { margin-top: 6px; color: var(--text); }
.details a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.details a:hover { border-color: var(--ember); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--ai, .tile--consult { grid-column: span 2; }
  .tile--design, .tile--eng { grid-column: span 1; }
  .tile--consult { flex-direction: column; align-items: stretch; }
  .tile__visual--graph { order: 0; margin-bottom: 22px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps-track { display: none; }
  .step { padding-top: 0; }
  .why, .faq, .contact__card { grid-template-columns: 1fr; }
  .why__intro { position: static; }
  .legal-block { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .scroll-cue { display: none; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile--ai, .tile--consult, .tile--design, .tile--eng { grid-column: span 1; }
  .tile__visual--morph { min-height: 220px; margin: -28px -28px 8px; }
  .morph__hud { top: 18px; left: 18px; font-size: 11px; }
  .mailcard__meta li { flex-direction: column; gap: 2px; }
  .mailcard__addr { font-size: clamp(16px, 5.4vw, 22px); }
  .mailcard__actions .btn { flex: 1 1 100%; }
  .steps, .why__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .qa p { padding-right: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .details { grid-template-columns: 1fr; }
  .legal-hero { padding-top: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero__in { opacity: 1; transform: none; filter: none; }
  .reveal-title { clip-path: none; transform: none; }
  .line > span { transform: none; }
  .graph-line { stroke-dashoffset: 0; }
  .graph-area, .graph-dot { opacity: 1; transform: none; }
}
