/* ============================================================
   TAEM — Aurora identity
   One blue-black ground, light used only at key moments
   (aurora bookends: hero + contact), frosted glass for every
   container, fluted-glass ribs as the recurring texture.
   Type: Geist throughout; titles at weight 500, tightly tracked.
   ============================================================ */

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

:root {
  --bg: #05070d;
  --surface: #0b0f19;
  --ink: #eef0f4;
  --muted: #8f97a8;
  --accent: #2a5cff;
  --accent-ink: #ffffff;
  --glow: #4d86ff;
  --ice: #cfe0ff;
  --line: rgba(255, 255, 255, .08);
  --ok: #6fe0a6;
  --wait: #ffcb6b;

  --font-display: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* 5-step type scale: display, h2, h3, body, small */
  --t-display: clamp(3rem, 11.2vw, 10.1rem);
  --t-h2: clamp(2rem, 4.8vw, 4.25rem);
  --t-h3: clamp(1.4rem, 2.2vw, 2rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --margin: clamp(1.25rem, 2.5vw, 2.25rem);
  --gap-section: clamp(5rem, 11vw, 11rem);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; background: var(--bg); color-scheme: dark; -webkit-font-smoothing: antialiased; }
/* No visible page scrollbar; wheel, touch, keyboard and nav still scroll */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { font-family: var(--font-text); font-size: var(--t-body); line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; padding-inline: var(--margin); max-width: 1680px; margin-inline: auto; }

/* ─── Shared material ────────────────────────────────── */
/* Frosted glass: nav pill, project and service cards, form, contact links */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .11);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 40px rgba(0, 0, 0, .35);
}

/* Fluted-glass ribs, the hero's texture echoed at low volume */
.ribs { isolation: isolate; }
.ribs::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 100%, rgba(42, 92, 255, .18), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px, rgba(0, 0, 0, .3) 4px 5px, transparent 5px 22px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

/* Section label: the nav pill's glowing dot, repeated above every heading */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1.4rem; padding: .35rem .85rem .35rem .7rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  font-size: var(--t-small); font-weight: 500; color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7fb0ff; box-shadow: 0 0 8px var(--glow); }
.eyebrow b { color: var(--ink); font-weight: 600; }

/* ─── Bar ─────────────────────────────────────────────── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: .9rem var(--margin);
  background: rgba(5, 7, 13, .7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background 300ms var(--ease);
}
.bar.is-over-hero { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.bar__brand { font-family: var(--font-display); font-weight: 600; font-size: var(--t-h3); letter-spacing: -0.035em; justify-self: start; }
.bar__links {
  display: flex; gap: .15rem; padding: .3rem;
  border-radius: 999px;
  background: rgba(12, 14, 20, .45);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.bar__links a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .95rem; border-radius: 999px;
  color: var(--muted); font-size: .9375rem; font-weight: 500;
  transition: color 150ms var(--ease), background 200ms var(--ease);
}
.bar__links a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.bar__links a.is-active { color: var(--ink); background: rgba(255, 255, 255, .1); }
.bar__links a.is-active::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #7fb0ff; box-shadow: 0 0 8px var(--glow);
}
.bar__actions { justify-self: end; display: flex; align-items: center; gap: .5rem; }
.bar__cta {
  padding: .6rem 1.2rem; border-radius: 999px;
  background: #fff; color: var(--bg); font-weight: 600; font-size: .9375rem;
  transition: background 150ms var(--ease), transform 150ms var(--ease);
}
.bar__cta:hover { background: var(--ice); }
.bar__cta:active { transform: scale(.97); }
.bar__toggle {
  display: none; padding: .55rem 1.1rem; border-radius: 999px;
  background: rgba(12, 14, 20, .45); color: var(--ink); font-weight: 600; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.menu { position: fixed; inset: 0; z-index: 40; background: var(--bg); padding: 6rem var(--margin) 2rem; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu a { font-family: var(--font-display); font-weight: 500; font-size: var(--t-h2); letter-spacing: -0.02em; line-height: 1.3; }

/* ─── Shared ─────────────────────────────────────────── */
section { position: relative; }
.h-section {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--t-h2);
  line-height: 0.98; letter-spacing: -0.035em;
  max-width: 18ch;
}

/* ─── Aurora stages (hero + contact) ─────────────────── */
.aurora-canvas {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  display: block;
}
.is-static > .aurora-canvas { display: none; }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--margin) 2rem;
  overflow: hidden;
  isolation: isolate;
  /* Fallback when WebGL is unavailable */
  background:
    radial-gradient(60% 80% at 38% 105%, rgba(42, 92, 255, .55), transparent 70%),
    radial-gradient(40% 60% at 10% 110%, rgba(120, 180, 255, .25), transparent 70%),
    var(--bg);
}
/* Keeps the headline readable and melts the hero into the page below */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0, rgba(5, 7, 13, .55) 14%, rgba(5, 7, 13, 0) 50%),
              linear-gradient(to bottom, rgba(5, 7, 13, .6), rgba(5, 7, 13, 0) 22%);
}
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--t-display);
  line-height: 0.88; letter-spacing: -0.045em;
}
.hero__title .line { display: block; overflow: hidden; padding-top: .08em; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  align-items: end;
}
.hero__lead { max-width: 44ch; font-size: var(--t-body); color: var(--ink); }

/* ─── Projects ───────────────────────────────────────── */
/* Clip sideways only, so the glow fades out above and below instead of ending in a hard edge */
.projects { padding-block: var(--gap-section); isolation: isolate; overflow-x: clip; }
/* Blue light pooled behind the cards */
.projects::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px;
  right: -12vw; top: 55%; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(42, 92, 255, .28), rgba(42, 92, 255, .07) 55%, transparent);
  filter: blur(20px);
}
.projects__grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.project { border-radius: 22px; overflow: hidden; transition: border-color 250ms var(--ease); }
.project--link:hover { border-color: rgba(127, 166, 255, .32); }
.project__inner { display: flex; flex-direction: column; height: 100%; }
/* Preview framed as a browser window */
.project__shot {
  display: flex; flex-direction: column;
  aspect-ratio: 16 / 10; margin: .75rem .75rem 0;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: rgba(5, 7, 13, .6);
}
.project__shot img {
  flex: 1; min-height: 0; width: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 700ms var(--ease);
}
.project--link:hover .project__shot img { transform: scale(1.03); }
.project__body { flex: 1; display: flex; flex-direction: column; gap: .8rem; padding: 1.3rem 1.4rem 1.4rem; }
.project__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.project__head h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-h3); letter-spacing: -0.02em; }
.project__status { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-small); color: var(--muted); white-space: nowrap; }
.project__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(111, 224, 166, .8); }
.project__body > p { color: var(--muted); max-width: 48ch; }
.project__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.project__tags span {
  padding: .3rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font-size: .8125rem; color: rgba(238, 240, 244, .75);
}
.project__cta { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.project__cta span { transition: transform 250ms var(--ease); }
.project--link:hover .project__cta span { transform: translate(2px, -2px); }
.project__cta--soon { font-weight: 500; color: var(--muted); }

/* Trify's live panel, compacted to fit the card preview */
.project__shot .ui { flex: 1; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto 1fr; background: transparent; }
.project__shot .ui__side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .25rem; padding: .6rem .8rem; border-right: 0; border-bottom: 1px solid var(--line); }
.project__shot .ui__side b { margin: 0 .5rem 0 0; }
.project__shot .ui__tab { padding: .35rem .6rem; }
.project__shot .ui__main { padding: .8rem 1rem; overflow: hidden; }
.project__shot .ui th, .project__shot .ui td { font-size: .8125rem; }
.project__shot .ui td { padding: .55rem .5rem .55rem 0; }
.window { border-radius: 18px; overflow: hidden; }
.window__bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--line);
  font-size: var(--t-small); color: var(--muted);
}
.window__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.window__bar span { margin-left: .6rem; }
.ui { display: grid; grid-template-columns: 11rem 1fr; color: var(--ink); font-size: var(--t-small); background: rgba(5, 7, 13, .35); }
.ui__side { background: rgba(255, 255, 255, .025); border-right: 1px solid var(--line); padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.ui__side b { font-family: var(--font-display); font-size: var(--t-body); margin-bottom: .9rem; }
.ui__tab { text-align: left; border: 0; background: transparent; cursor: pointer; padding: .5rem .7rem; border-radius: 8px; color: var(--muted); transition: background 150ms var(--ease), color 150ms var(--ease), box-shadow 200ms var(--ease); }
.ui__tab:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.ui__tab.is-on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 18px rgba(42, 92, 255, .55); }
.ui__main { padding: 1.25rem 1.5rem; min-width: 0; }
.ui__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.ui__head b { font-size: var(--t-body); }
.ui__head span { color: var(--muted); font-size: var(--t-small); }
.ui table { width: 100%; border-collapse: collapse; }
.ui th { text-align: left; color: var(--muted); font-weight: 500; font-size: var(--t-small); padding: .5rem .5rem .6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ui td { padding: .8rem .5rem .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; }
.ui i { font-style: normal; font-size: var(--t-small); padding: .2rem .6rem; border-radius: 999px; }
.ui .ok { background: rgba(60, 200, 130, .16); color: var(--ok); }
.ui .wait { background: rgba(255, 190, 70, .16); color: var(--wait); }

/* ─── Services: open bento of glass cards ────────────── */
.services { padding-block: var(--gap-section); isolation: isolate; overflow-x: clip; }
/* Light pooled behind the lead card */
.services::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  left: -10vw; top: 55%; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(42, 92, 255, .22), rgba(42, 92, 255, .05) 60%, transparent);
  filter: blur(20px);
}
.projects__head, .services__head, .process__head, .faq__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end;
}
.projects__lead, .services__lead, .process__lead, .faq__lead {
  color: var(--muted); max-width: 38ch; justify-self: end; text-align: right;
}

.bento {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(15.5rem, auto);
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.bento__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: .7rem;
  padding: clamp(1.25rem, 2vw, 1.75rem); border-radius: 20px;
  transition: border-color 250ms var(--ease);
}
/* Spotlight that follows the pointer */
.bento__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(77, 134, 255, .2), transparent 70%);
  opacity: 0; transition: opacity 300ms var(--ease);
}
.bento__card:hover { border-color: rgba(127, 166, 255, .3); }
.bento__card:hover::before { opacity: 1; }
.bento__card--lead { grid-column: span 2; grid-row: span 2; }
.bento__icon {
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #a9c4ff;
  background: rgba(42, 92, 255, .14);
  border: 1px solid rgba(127, 166, 255, .25);
  box-shadow: 0 0 24px rgba(42, 92, 255, .25);
  margin-bottom: auto;
}
.bento__icon svg { width: 1.35rem; height: 1.35rem; }
.bento__card--lead .bento__icon { margin-bottom: .6rem; }
.bento__card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.1;
  margin-top: 1.25rem;
}
.bento__card--lead h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 0; }
.bento__card p { color: var(--muted); max-width: 40ch; }

/* Lead card: a tiny dashboard, drawn in CSS */
.preview {
  flex: 1; display: flex; flex-direction: column;
  margin-top: 1.25rem;
  border-radius: 14px; border: 1px solid var(--line);
  background: rgba(5, 7, 13, .55);
  overflow: hidden;
}
.preview__bar { display: flex; gap: .35rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.preview__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.preview__body { flex: 1; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto 1fr; gap: .8rem; padding: 1rem; }
.preview__stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.preview__stats span {
  position: relative; height: 3.4rem; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.preview__stats span::before, .preview__stats span::after { content: ""; position: absolute; left: .75rem; border-radius: 4px; }
.preview__stats span::before { top: .7rem; width: 40%; height: 6px; background: rgba(255, 255, 255, .14); }
.preview__stats span::after { top: 1.7rem; width: 58%; height: 10px; background: rgba(127, 166, 255, .55); }
.preview__chart {
  display: flex; align-items: flex-end; gap: 5px;
  min-height: 7rem; padding: .7rem;
  border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
}
.preview__chart i {
  flex: 1; height: calc(var(--h) * 100%);
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #a9c4ff, var(--accent));
  box-shadow: 0 0 12px rgba(42, 92, 255, .45);
  transform-origin: bottom;
}
.js .bento__card--lead .preview__chart i { transform: scaleY(0); transition: transform 900ms var(--ease) calc(var(--i) * 60ms + 350ms); }
.js .bento__card--lead.is-in .preview__chart i { transform: none; }
.preview__rows { display: flex; flex-direction: column; justify-content: center; gap: .45rem; }
.preview__rows span {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .55rem .7rem; border-radius: 8px; background: rgba(255, 255, 255, .03);
}
.preview__rows b { width: 55%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.preview__rows em { width: 2.6rem; height: 12px; border-radius: 999px; }
.preview__rows .ok { background: rgba(111, 224, 166, .35); }
.preview__rows .wait { background: rgba(255, 203, 107, .35); }

/* Infinite left → right tech marquee, on a glass band */
.tech-marquee {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border-block: 1px solid var(--line);
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tech-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-ltr 28s linear infinite;
}
.tech-marquee:hover .tech-marquee__track { animation-play-state: paused; }
.tech-marquee__group {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-right: clamp(2.5rem, 5vw, 4.5rem);
}
.tech-marquee__group li {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-h3);
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, .5);
  white-space: nowrap;
  transition: color 200ms var(--ease);
}
.tech-marquee__group li:hover { color: #fff; }
.tech-marquee__group svg {
  width: 1.35em;
  height: 1.35em;
  flex-shrink: 0;
}
@keyframes marquee-ltr {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0%, 0, 0); }
}

/* ─── Process: timeline, the one scroll scene ────────── */
.process { padding-block: var(--gap-section); }
.timeline { position: relative; margin-top: clamp(3rem, 6vw, 5rem); }
.timeline__steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
/* The rail runs through the nodes; its fill is the scene progress (--p) */
.timeline__rail {
  position: absolute; left: 0; right: 0; top: 6px; height: 1px;
  background: rgba(255, 255, 255, .12);
}
.timeline__rail::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent), #7fa6ff 70%, var(--ice));
  box-shadow: 0 0 10px var(--accent);
  transform: scaleX(var(--p, 1)); transform-origin: left center;
}
.timeline__rail::after {
  content: ""; position: absolute; top: -3px; left: calc(var(--p, 1) * 100%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ice); box-shadow: 0 0 12px 3px var(--glow);
  transform: translateX(-50%);
  display: none;
}
html.js .process.scene.is-live .timeline__rail::after { display: block; }
.timeline__step { position: relative; display: flex; flex-direction: column; padding-top: 2.5rem; transition: opacity 600ms var(--ease); }
.timeline__node {
  position: absolute; top: 0; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ice); border: 1px solid var(--ice);
  box-shadow: 0 0 0 4px rgba(42, 92, 255, .25), 0 0 16px var(--glow);
  transition: background 400ms var(--ease), border-color 400ms var(--ease), box-shadow 400ms var(--ease);
}
.timeline__num {
  display: block;
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--t-h2); line-height: .9; letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: #7fa6ff;
}
.timeline__step h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-h3); letter-spacing: -0.02em; margin-bottom: .6rem; }
.timeline__step > p { color: var(--muted); max-width: 32ch; margin-bottom: 1.25rem; }
.timeline__out {
  margin-top: auto; padding: .75rem .9rem;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  font-size: var(--t-small); font-weight: 500;
}
.timeline__out span {
  display: block; margin-bottom: .2rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #7fa6ff;
}

/* Live: pinned, the light walks the rail and lights each stage */
html.js .process.scene.is-live { padding-block: 0; --p: 0; }
html.js .process.scene.is-live > .scene-stage {
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 5.5rem 3rem;
}
html.js .process.scene.is-live .timeline__step { opacity: .4; }
html.js .process.scene.is-live .timeline__node { background: var(--bg); border-color: rgba(255, 255, 255, .3); box-shadow: none; }
html.js .process.scene.is-live:not([data-beat]) .timeline__step:first-child,
html.js .process.scene.is-live[data-beat="0"] .timeline__step:nth-child(-n+1),
html.js .process.scene.is-live[data-beat="1"] .timeline__step:nth-child(-n+2),
html.js .process.scene.is-live[data-beat="2"] .timeline__step:nth-child(-n+3),
html.js .process.scene.is-live[data-beat="3"] .timeline__step { opacity: 1; }
html.js .process.scene.is-live:not([data-beat]) .timeline__step:first-child .timeline__node,
html.js .process.scene.is-live[data-beat="0"] .timeline__step:nth-child(-n+1) .timeline__node,
html.js .process.scene.is-live[data-beat="1"] .timeline__step:nth-child(-n+2) .timeline__node,
html.js .process.scene.is-live[data-beat="2"] .timeline__step:nth-child(-n+3) .timeline__node,
html.js .process.scene.is-live[data-beat="3"] .timeline__step .timeline__node {
  background: var(--ice); border-color: var(--ice);
  box-shadow: 0 0 0 4px rgba(42, 92, 255, .25), 0 0 16px var(--glow);
}

/* ─── FAQ (Open editorial layout — no clicks, no cards) ─ */
.faq { padding-block: var(--gap-section); }
.faq__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.faq__item {
  padding-top: 1.5rem;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(127, 166, 255, .4), rgba(255, 255, 255, .06) 55%, transparent) 1;
}
.faq__item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-h3);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 0.9rem;
  color: var(--ink);
  max-width: 24ch;
}
.faq__item p {
  color: var(--muted);
  max-width: 48ch;
  font-size: var(--t-body);
}

/* ─── Contact (closing aurora, mirrored) ─────────────── */
.contact {
  padding-block: var(--gap-section);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 80% at 62% 105%, rgba(42, 92, 255, .5), transparent 70%),
    var(--bg);
}
.contact::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0, rgba(5, 7, 13, .35) 28%, rgba(5, 7, 13, .2) 55%, rgba(5, 7, 13, .6) 80%, var(--bg) 100%),
              linear-gradient(to right, rgba(5, 7, 13, .55), rgba(5, 7, 13, 0) 55%);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); }
.contact__lead h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-h2); line-height: .95; letter-spacing: -0.035em; max-width: 14ch; }
.contact__lead p:not(.eyebrow) { margin-top: 1.75rem; max-width: 36ch; font-size: var(--t-body); color: rgba(238, 240, 244, .82); }

.brief { display: flex; flex-direction: column; gap: 1.5rem; align-self: end; padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: 20px; }
.brief fieldset { border: 0; }
.brief legend { font-weight: 600; margin-bottom: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .55rem 1.05rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-weight: 500; transition: background 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease), box-shadow 200ms var(--ease); }
.chips label:hover span { background: rgba(255, 255, 255, .12); }
.chips input:checked + span { background: #fff; border-color: #fff; color: var(--bg); box-shadow: 0 0 18px rgba(127, 166, 255, .45); }
.chips input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 3px; }
.chips label:active span { transform: scale(.97); }
.field { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; }
.field input, .field textarea { background: rgba(5, 7, 13, .5); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: .85rem 1rem; resize: vertical; font-weight: 400; transition: border-color 150ms var(--ease), box-shadow 200ms var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(42, 92, 255, .25); }
.btn { align-self: flex-start; padding: 1rem 1.75rem; border-radius: 999px; background: #fff; color: var(--bg); font-weight: 600; border: 0; cursor: pointer; transition: transform 150ms var(--ease), background 150ms var(--ease); }
.btn:hover { background: var(--ice); }
.btn:active { transform: scale(.97); }

.direct { list-style: none; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(2rem, 4vw, 4rem); border-radius: 20px; overflow: hidden; }
.direct li + li { border-left: 1px solid var(--line); }
.direct a { display: block; padding: 1.75rem 2rem; font-family: var(--font-display); font-weight: 500; font-size: var(--t-h3); letter-spacing: -0.02em; transition: background 200ms var(--ease); }
.direct a:hover { background: rgba(255, 255, 255, .06); }

/* ─── Footer ─────────────────────────────────────────── */
.footer { position: relative; padding-top: 3rem; overflow: hidden; }
.footer__mark {
  font-family: var(--font-display); font-weight: 500; font-size: var(--t-display); line-height: .88; letter-spacing: -0.045em;
  padding-inline: var(--margin); white-space: nowrap; user-select: none;
  color: var(--ink);
}
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem 2rem; color: var(--muted); font-size: var(--t-small); border-top: 1px solid var(--line); }
.footer__row nav { display: flex; gap: 1.5rem; }
.footer__row a:hover { color: var(--ink); }

/* ─── Motion: arrival + scroll reveals ───────────────── */
/* Title waits for the aurora intro to light the stage */
.js .hero__title .line > span { transform: translateY(105%); animation: rise 900ms var(--ease) 1100ms forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: 1210ms; }
.js .hero__foot { opacity: 0; animation: fade 700ms var(--ease) 1650ms forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* Blur-in reveal, everywhere */
.js .reveal { opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity 700ms var(--ease), transform 800ms var(--ease), filter 800ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__title .line > span, .js .hero__foot, .js .reveal, .tech-marquee__track, .js .bento__card--lead .preview__chart i { animation: none; transform: none; opacity: 1; filter: none; transition: none; }
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--lead { grid-row: auto; }
}
@media (max-width: 900px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar__links, .bar__cta { display: none; }
  .bar__toggle { display: inline-block; }
  .hero__foot, .projects__head, .services__head, .process__head, .faq__head, .faq__list, .contact__grid, .projects__grid { grid-template-columns: 1fr; }
  .projects__lead, .services__lead, .process__lead, .faq__lead { justify-self: start; text-align: left; }
  .direct { grid-template-columns: 1fr; }
  .direct li + li { border-left: 0; border-top: 1px solid var(--line); }
  .direct a { padding: 1.25rem 1.5rem; }
  .ui { grid-template-columns: 1fr; }
  .ui__side { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .ui__side b { margin: 0 .5rem 0 0; }
  .ui__main { overflow-x: auto; }
  .projects::before { width: 120vw; height: 120vw; right: -40vw; top: 70%; }
}
@media (max-width: 767px) {
  .timeline__steps { grid-template-columns: 1fr; gap: 2.75rem; }
  .timeline__step { padding: 0 0 0 2.25rem; }
  .timeline__rail { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .timeline__rail::before { background: linear-gradient(180deg, var(--accent), #7fa6ff 70%, var(--ice)); }
}
@media (max-width: 520px) {
  /* Trify's panel needs more height than a screenshot to stay readable */
  .project__shot[data-ui] { aspect-ratio: auto; }
  .project__shot .ui__side b, .project__shot .ui__head span { display: none; }
  .project__shot .ui__tab { padding: .3rem .45rem; font-size: .75rem; }
  .project__shot .ui__main { padding: .7rem .9rem .4rem; }
  .project__shot .ui tr:nth-child(n+4) { display: none; }
  .project__shot .ui tr:nth-child(3) { border-bottom: 0; }
  .project__shot .ui__head { margin-bottom: .3rem; }
  /* The desktop table reads as a phone list: name, one detail below, status on the right */
  .project__shot .ui table, .project__shot .ui tbody { display: block; }
  .project__shot .ui thead { display: none; }
  .project__shot .ui tr {
    display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .75rem;
    padding: .6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06);
  }
  .project__shot .ui td { display: none; padding: 0; border: 0; }
  .project__shot .ui td:first-child { display: block; grid-column: 1; font-size: .875rem; font-weight: 500; }
  .project__shot .ui td:nth-child(2) { display: block; grid-column: 1; font-size: .75rem; color: var(--muted); }
  .project__shot .ui td:last-child { display: block; grid-column: 2; grid-row: 1 / span 2; }
  .project__shot .ui td:first-child, .project__shot .ui td:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__card--lead { grid-column: auto; }
  .bento__card h3 { margin-top: 1rem; }
  .preview__body { grid-template-columns: 1fr; }
}
