/* SMATRIX — violet/indigo palette on a near-black ground.
   Deep indigo-black ground bleeding into violet, with cool blue at the rim. */
:root {
  --ground: #241046;
  --ground-deep: #0b0518;
  --ground-panel: #120926;
  --ground-raise: #1a0f33;

  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-faint: rgba(255, 255, 255, 0.46);
  --ink-ghost: rgba(255, 255, 255, 0.2);

  --violet: #7e14ff;
  --violet-lit: #a98cff;
  --violet-pale: #c9b4ff;
  --cyan: #47bfff;

  /* violet-tinted glass — a neutral grey tint reads pasted-on over this ground */
  --glass: rgba(48, 24, 92, 0.42);
  --glass-strong: rgba(32, 14, 66, 0.62);
  --hair: rgba(255, 255, 255, 0.14);
  --hair-soft: rgba(255, 255, 255, 0.08);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(18px, 2.6vw, 44px);
  --content-width: 1180px;

  --font-display: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-italic: 'Instrument Serif', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100svh;
  background: var(--ground-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

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

:focus-visible {
  outline: 2px solid var(--violet-lit);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #0b0518;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(calc(100% - 3rem), var(--content-width));
  margin-inline: auto;
}

/* Shared button system — pill geometry throughout. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.btn--light {
  padding: 0.72em 1.35em;
  background: #fff;
  color: #0e0620;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.btn--light:hover { transform: translateY(-1px); background: #f2ecff; }

.btn--violet {
  padding: 0.5em 0.5em 0.5em 1.5em;
  background: linear-gradient(96deg, var(--violet) 0%, var(--violet-lit) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(126, 20, 255, 0.38);
}
.btn--violet:hover { transform: translateY(-2px); box-shadow: 0 20px 52px rgba(126, 20, 255, 0.5); }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 1.7vw, 22px) var(--gutter);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav__logo { width: 1.3em; height: 1.3em; }

.nav__pill {
  display: none;
  padding: 5px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: rgba(26, 12, 52, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav__pill ul {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__pill a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.nav__pill a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.nav__chev { width: 10px; height: 10px; opacity: 0.7; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__cta { font-size: 13.5px; font-weight: 550; }

.nav__burger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: rgba(26, 12, 52, 0.4);
  backdrop-filter: blur(10px);
}
.nav__burger svg { width: 20px; height: 20px; }
.nav__burger .nav__icon-close { display: none; }
.nav__burger[aria-expanded="true"] .nav__icon-menu { display: none; }
.nav__burger[aria-expanded="true"] .nav__icon-close { display: block; }

.nav__sheet {
  position: fixed;
  inset: 68px 12px auto;
  padding: 18px;
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: rgba(11, 5, 24, 0.94);
  backdrop-filter: blur(20px);
}
.nav__sheet[hidden] { display: none; }
.nav__sheet ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 2px; }
.nav__sheet a {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
}
.nav__sheet a:hover { background: rgba(255, 255, 255, 0.07); }
.nav__sheet-cta { width: 100%; justify-content: center; padding: 0.85em 1.4em; }

@media (min-width: 940px) {
  .nav__pill { display: block; }
  .nav__burger { display: none; }
  .nav__sheet { display: none !important; }
}

@media (max-width: 480px) {
  .nav__cta { display: none; }
}

/* ============================================================
   Hero — copy anchored hard left, wireframe figure right of centre,
   stat cards riding below the fold line of the copy column.
   ============================================================ */
.hero {
  --scale: 1;     /* display type + vertical rhythm */
  --ui-scale: 1;  /* badge, buttons, small copy */

  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  padding: calc(86px * var(--scale)) var(--gutter) calc(26px * var(--scale));
  background: linear-gradient(165deg, var(--ground) 0%, var(--ground-deep) 70%);
}

/* ---------- background scene ---------- */
.hero__media { position: absolute; inset: 0; z-index: -1; }

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s var(--ease-out), transform 2.4s var(--ease-out);
}
.scene.is-ready { opacity: 1; transform: scale(1); }

/* Two soft lights: a violet core behind the figure and a cool blue rim
   low and right, so the ground reads lit rather than flat. */
.scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.scene__glow--core {
  top: 4%;
  right: 6%;
  width: 62vw;
  max-width: 900px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(126, 20, 255, 0.55) 0%, rgba(126, 20, 255, 0.14) 45%, transparent 70%);
  animation: breathe 11s ease-in-out infinite;
}
.scene__glow--rim {
  right: -6%;
  bottom: -12%;
  width: 42vw;
  max-width: 620px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(71, 191, 255, 0.3) 0%, transparent 68%);
  animation: breathe 15s ease-in-out infinite reverse;
}

/* Perspective floor grid — laid flat with rotateX and scrolled toward the viewer. */
.scene__floor {
  position: absolute;
  right: -60%;
  bottom: 0;
  left: -60%;
  height: 70%;
  transform: perspective(600px) rotateX(55deg);
  transform-origin: bottom center;
  background-image:
    linear-gradient(rgba(169, 140, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 140, 255, 0.4) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 68%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 68%);
  animation: floor-drift 9s linear infinite;
}

.scene__figure {
  position: absolute;
  top: 56%;
  right: 5%;
  width: min(44vw, 540px);
  height: auto;
  transform: translateY(-50%);
  animation: float 9s ease-in-out infinite;
}

.scene__bust { fill: none; stroke-linecap: round; }

.scene__ring {
  transform-origin: 210px 196px;
  animation: ring-spin 26s linear infinite;
}

.scene__visor { animation: visor-pulse 5.5s ease-in-out infinite; }

.scene__scan { animation: scan 4.2s var(--ease-out) infinite; }

.scene__nodes { animation: breathe 6s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(calc(-50% - 10px)); }
  50% { transform: translateY(calc(-50% + 10px)); }
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes visor-pulse {
  0%, 100% { opacity: 0.92; filter: drop-shadow(0 0 16px rgba(126, 20, 255, 0.6)); }
  50% { opacity: 1; filter: drop-shadow(0 0 32px rgba(169, 140, 255, 0.85)); }
}
@keyframes scan {
  0% { transform: translateX(-60px); }
  60%, 100% { transform: translateX(210px); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
@keyframes floor-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 64px, 0 0; }
}

/* The scene is bright from the centre rightwards and near-black upper left, so
   the scrim is asymmetric: a heavy left wash under the copy, a soft floor for
   the capability strip, and almost nothing over the figure. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(6, 2, 16, 0.92) 0%, rgba(8, 3, 20, 0.7) 30%,
      rgba(12, 5, 28, 0.18) 52%, rgba(12, 5, 28, 0) 68%),
    linear-gradient(0deg, rgba(5, 2, 13, 0.82) 0%, rgba(5, 2, 13, 0.14) 28%, rgba(0, 0, 0, 0) 46%),
    linear-gradient(180deg, rgba(5, 2, 13, 0.5) 0%, rgba(0, 0, 0, 0) 22%);
}

.hero__rules {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 30%;
  pointer-events: none;
}
.hero__rules span { width: 1px; background: rgba(255, 255, 255, 0.055); }
.hero__rules span:nth-child(2) { margin-left: 14px; }

/* ---------- layout ---------- */
.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 40px;
}

.hero__lead { max-width: 640px; }

/* ---------- fine print ---------- */
.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: calc(13px * var(--ui-scale));
  border-top: 1px solid var(--hair-soft);
  width: fit-content;
  max-width: 320px;
  font-size: calc(11.5px * var(--ui-scale));
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: var(--ink-faint);
}
.hero__note-icon {
  width: calc(20px * var(--ui-scale));
  height: calc(20px * var(--ui-scale));
  flex: none;
}

/* ---------- headline ---------- */
.hero__title {
  margin-top: calc(24px * var(--scale));
  font-family: var(--font-display);
  font-size: calc(clamp(2.4rem, 5.6vw, 5.2rem) * var(--scale));
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}
.hero__title em {
  font-family: var(--font-italic);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.005em;
}

.hero__sub {
  margin-top: calc(20px * var(--scale));
  max-width: calc(460px * var(--scale));
  font-size: calc(15px * var(--ui-scale));
  line-height: 1.58;
  color: var(--ink-soft);
}

/* ---------- CTA row ---------- */
.hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(20px * var(--ui-scale));
  margin-top: calc(26px * var(--scale));
}

.hero__go { font-size: calc(15px * var(--ui-scale)); }

.hero__go-dot {
  display: grid;
  place-items: center;
  width: 2.55em;
  height: 2.55em;
  border-radius: 999px;
  background: #fff;
  color: #150628;
}
.hero__go-dot svg { width: 1.15em; height: 1.15em; }

.hero__proof { display: flex; align-items: center; gap: 10px; }

.hero__faces { display: flex; }
.hero__faces i {
  width: calc(28px * var(--ui-scale));
  height: calc(28px * var(--ui-scale));
  margin-left: -9px;
  border-radius: 999px;
  border: 2px solid rgba(12, 5, 26, 0.85);
  background: linear-gradient(140deg, var(--a), var(--b));
}
.hero__faces i:first-child { margin-left: 0; }

.hero__proof-text {
  display: grid;
  font-size: calc(10px * var(--ui-scale));
  line-height: 1.4;
  color: var(--ink-faint);
}
.hero__proof-text strong {
  font-size: calc(12px * var(--ui-scale));
  font-weight: 550;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- stat cards ---------- */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: calc(14px * var(--scale));
  margin: calc(30px * var(--scale)) 0 0;
  padding: 0;
  list-style: none;
}

.stat {
  position: relative;
  display: grid;
  align-content: space-between;
  width: calc(200px * var(--scale));
  min-height: calc(132px * var(--scale));
  padding: calc(18px * var(--ui-scale));
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.stat:nth-child(2) {
  background: linear-gradient(150deg, rgba(90, 30, 190, 0.5), rgba(34, 14, 72, 0.5));
}

.stat__mark {
  position: absolute;
  top: calc(14px * var(--ui-scale));
  right: calc(16px * var(--ui-scale));
  font-size: calc(15px * var(--ui-scale));
  color: var(--ink-faint);
}

.stat__value {
  font-family: var(--font-display);
  font-size: calc(clamp(1.7rem, 2.4vw, 2.3rem) * var(--scale));
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: calc(11.5px * var(--ui-scale));
  color: var(--ink-faint);
}

.stat__rule {
  position: absolute;
  right: calc(16px * var(--ui-scale));
  bottom: calc(22px * var(--ui-scale));
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

/* ---------- ghost panel ---------- */
.hero__ghost {
  display: none;
  align-self: start;
  margin-top: calc(40px * var(--scale));
  max-width: 330px;
  color: rgba(255, 255, 255, 0.26);
}

.ghost__row { display: flex; align-items: flex-end; gap: 18px; }

.ghost__bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 74px;
}
.ghost__bars span {
  width: 9px;
  border-radius: 2px 2px 0 0;
  background: rgba(255, 255, 255, 0.5);
}

.ghost__kpi { font-size: 11px; line-height: 1.4; }
.ghost__kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.55);
}

.ghost__title {
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.4);
}

.ghost__copy { margin-top: 8px; font-size: 12.5px; line-height: 1.6; }

/* ---------- footer band ---------- */
.hero__foot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: calc(22px * var(--scale));
}

.hero__watermark {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.055);
  user-select: none;
}

.hero__disciplines { text-align: right; }

.hero__disciplines-label {
  display: block;
  margin-bottom: 14px;
  font-size: calc(11.5px * var(--ui-scale));
  color: var(--ink-faint);
}

.hero__disciplines ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero__disciplines li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: calc(15px * var(--ui-scale));
  font-weight: 450;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.86);
}
.hero__disciplines li svg {
  width: calc(17px * var(--ui-scale));
  height: calc(17px * var(--ui-scale));
}

/* ---------- entrance ---------- */
.hero__note,
.hero__title,
.hero__sub,
.hero__cta,
.hero__stats,
.hero__foot {
  animation: rise 0.95s var(--ease-out) both;
}
.hero__title { animation-delay: 0.06s; }
.hero__sub { animation-delay: 0.14s; }
.hero__cta { animation-delay: 0.2s; }
.hero__stats { animation-delay: 0.28s; }
.hero__foot { animation-delay: 0.36s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- hero responsive ---------- */
@media (min-width: 1120px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
    align-items: start;
  }
  .hero__ghost { display: block; justify-self: end; }
}

@media (max-width: 1119px) {
  .scene__figure { right: -6%; width: min(60vw, 480px); opacity: 0.8; }
}

/* Short laptop screens: the hero is a fixed stack of blocks, so the only way to
   keep it inside one viewport is to scale the whole rhythm down. */
@media (min-width: 861px) and (max-height: 820px) {
  .hero { --scale: 0.8; --ui-scale: 0.9; }
}

@media (min-width: 861px) and (max-height: 700px) {
  .hero { --scale: 0.7; --ui-scale: 0.85; }
}

@media (max-width: 860px) {
  .hero { padding-top: 108px; }
  .hero__rules { display: none; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__disciplines { text-align: left; }
  .hero__disciplines ul { flex-wrap: wrap; }
  .hero__watermark { font-size: 3.4rem; }
  .scene__figure { top: 34%; right: -18%; width: 82vw; opacity: 0.5; }
  .hero__scrim {
    background:
      linear-gradient(0deg, rgba(5, 2, 13, 0.9) 0%, rgba(5, 2, 13, 0.55) 40%, rgba(5, 2, 13, 0.3) 100%),
      linear-gradient(180deg, rgba(5, 2, 13, 0.6) 0%, rgba(0, 0, 0, 0) 30%);
  }
}

@media (max-width: 560px) {
  .hero { --scale: 0.9; }
  .hero__title { letter-spacing: -0.03em; }
  .stat { flex: 1 1 140px; width: auto; }
  .hero__watermark { display: none; }
}

/* ============================================================
   Content sections — same structure as before, re-grounded in the
   dark violet palette so they read as one page with the hero.
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  color: inherit;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

/* Alternating grounds: a raised panel and a deeper well. */
.section-panel { background: var(--ground-panel); }
.section-deep { background: var(--ground-deep); }

/* Hairline seam between bands, tinted violet at the centre. */
.section + .section::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(169, 140, 255, 0.28), transparent);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--violet-lit);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.section-heading > p:last-child {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- services ---------- */
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 1.5rem;
}

.service {
  border: 1px solid var(--hair-soft);
  border-radius: 18px;
  background: var(--glass);
}

.service p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.service-index {
  color: var(--violet-lit);
  font: 600 0.7rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-featured {
  position: relative;
  min-height: 100%;
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  border-color: rgba(169, 140, 255, 0.22);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(126, 20, 255, 0.34) 0%, transparent 62%),
    linear-gradient(150deg, rgba(48, 24, 92, 0.6), rgba(18, 9, 38, 0.6));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.service-featured h3 {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin-top: clamp(3rem, 8vw, 7rem);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.service-featured p:last-of-type {
  position: relative;
  z-index: 2;
  max-width: 580px;
  font-size: 1.05rem;
}

.service-diagram {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(169, 140, 255, 0.35);
  border-radius: 50%;
  animation: ring-spin 42s linear infinite;
}

.service-diagram span {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(169, 140, 255, 0.3);
  border-radius: 50%;
}

.service-diagram span:nth-child(2) { inset: 36%; }

.service-diagram span:nth-child(3) {
  inset: 49%;
  background: var(--violet-lit);
  border: 0;
  box-shadow: 0 0 24px rgba(169, 140, 255, 0.7);
}

.service-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--hair-soft);
  border-radius: 18px;
  background: var(--hair-soft);
}

.service-compact {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border: 0;
  border-radius: 0;
  background: var(--glass-strong);
  transition: background-color 0.35s var(--ease-out);
}
.service-compact:hover { background: rgba(60, 30, 112, 0.6); }

.service-compact h3 { font-size: 1.2rem; }

/* ---------- featured project ---------- */
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.project-introduction {
  align-self: start;
  position: sticky;
  top: 110px;
}

.project-lead {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.project-media { margin-top: 2rem; }

.project-media img,
.project-media video {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--hair);
  border-radius: 14px;
}

.project-details { margin: 0; }

.project-details > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--hair-soft);
}

.project-details > div:last-child { border-bottom: 1px solid var(--hair-soft); }

.project-details dt {
  color: var(--violet-lit);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.project-details dd {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- process ---------- */
.process-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.process-heading { margin-bottom: 0; }

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--hair-soft);
}

.process-list li:last-child { border-bottom: 1px solid var(--hair-soft); }

.process-list span {
  color: var(--violet-lit);
  font: 600 0.75rem var(--font-mono);
}

.process-list strong {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ---------- about ---------- */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 9vw, 8rem);
}

.about-copy {
  display: grid;
  gap: 1.2rem;
  padding-top: 2rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ---------- contact ---------- */
.contact-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(126, 20, 255, 0.22) 0%, transparent 60%),
    var(--ground-raise);
}

.contact-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 9vw, 7rem);
}

.contact-copy > p:last-child {
  max-width: 480px;
  color: var(--ink-soft);
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.field { margin-bottom: 1.3rem; }

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  font: inherit;
  background: rgba(8, 3, 20, 0.6);
  border: 1px solid var(--hair);
  border-radius: 10px;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-ghost); }

.field input:focus,
.field textarea:focus {
  border-color: var(--violet-lit);
  background: rgba(8, 3, 20, 0.85);
}

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

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #ff7b7b; }

.field-error {
  min-height: 1.3rem;
  display: block;
  margin-top: 0.3rem;
  color: #ff9d9d;
  font-size: 0.84rem;
}

.form-submit {
  padding: 0.85em 1.6em;
  justify-content: center;
}

.form-notice,
.form-status {
  max-width: 620px;
  margin: 1rem 0 0;
  color: var(--ink-faint);
  font-size: 0.86rem;
}

.form-status:not(:empty) {
  padding: 0.75rem 0.9rem;
  color: var(--ink-soft);
  background: rgba(126, 20, 255, 0.14);
  border-left: 3px solid var(--violet-lit);
  border-radius: 0 8px 8px 0;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 2rem 0;
  color: var(--ink-faint);
  background: var(--ground-deep);
  border-top: 1px solid var(--hair-soft);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

.footer-content strong { color: var(--ink-soft); }

/* ---------- section responsive ---------- */
@media (max-width: 900px) {
  html { scroll-padding-top: 4rem; }

  .services-layout,
  .project-layout,
  .process-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-featured { min-height: 420px; }
  .project-introduction { position: static; }

  .process-layout,
  .about-layout,
  .contact-layout { gap: 2.5rem; }

  .about-copy { padding-top: 0; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 2rem), var(--content-width)); }

  .section { padding: 4.5rem 0; }

  .service-featured { min-height: 380px; }

  .service-compact,
  .project-details > div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .form-submit { width: 100%; }

  .footer-content {
    display: grid;
    gap: 0.3rem;
  }
}

@media (min-width: 1600px) {
  :root { --content-width: 1320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  /* The scene fades in via a class; without motion it must simply be present. */
  .scene { opacity: 1; transform: none; }

  .hero__note,
  .hero__title,
  .hero__sub,
  .hero__cta,
  .hero__stats,
  .hero__foot { animation: none; }

  .btn:hover { transform: none; }
}
