/* XR OptiLab — landing page styles */

:root {
  --bg: #04060c;
  --bg-2: #070b16;
  --ink: #e8eef9;
  --ink-soft: #b9c4d8;
  --muted: #7f8ca6;
  --line: rgba(150, 190, 255, 0.14);
  --line-strong: rgba(150, 200, 255, 0.28);
  --blue: #3d9bff;
  --cyan: #7fdcff;
  --glass: rgba(255, 255, 255, 0.035);
  --spectrum: linear-gradient(90deg, #7a6bff, #3d9bff, #38dcff, #7dffb2, #ffe066, #ff9a3d, #ff4d78);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Sora", var(--font-body);
  --font-tech: "Michroma", var(--font-head);

  --gutter: clamp(16px, 5vw, 64px);
  --radius: 20px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: rgba(61, 155, 255, 0.35); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.topbar.is-scrolled {
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}

.topbar__logo {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}

.topbar.is-scrolled .topbar__logo {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.topbar__logo img { width: 132px; }

.topbar__nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }

.topbar__nav a {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.topbar__nav a:hover { color: #fff; }

.topbar__cta {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(61, 155, 255, 0.08);
}

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(61, 155, 255, 0.07);
  font-family: var(--font-tech);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow--plain {
  padding: 0;
  border: 0;
  background: none;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(127, 220, 255, 0.7);
  animation: ping 2.2s infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(127, 220, 255, 0.6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(127, 220, 255, 0); }
}

.spectral {
  background: var(--spectrum);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: spectral-shift 9s ease-in-out infinite alternate;
}

@keyframes spectral-shift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 15px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.btn--primary {
  color: #03101f;
  background: linear-gradient(180deg, #bfeaff, #5cb4ff);
  box-shadow: 0 0 0 1px rgba(160, 220, 255, 0.4), 0 10px 40px -10px rgba(61, 155, 255, 0.8);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(190, 235, 255, 0.7), 0 14px 50px -8px rgba(61, 155, 255, 1);
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn--ghost:hover { border-color: rgba(160, 210, 255, 0.55); background: rgba(61, 155, 255, 0.08); }

.btn[disabled] { opacity: 0.6; cursor: progress; }

.section-title {
  margin: 0 0 22px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-lede {
  max-width: 620px;
  margin: 0;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 75% 55%, rgba(30, 80, 170, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(80, 60, 200, 0.12), transparent 70%),
    var(--bg);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Breadboard holes of an optical table, revealed around the pointer */
  background-image: radial-gradient(circle at center, rgba(160, 200, 255, 0.5) 1.1px, transparent 1.7px);
  background-size: 28px 28px;
  background-position: center;
  -webkit-mask-image: radial-gradient(circle 280px at var(--mx, 70%) var(--my, 60%), #000 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.14) 100%);
  mask-image: radial-gradient(circle 280px at var(--mx, 70%) var(--my, 60%), #000 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.14) 100%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: pan-y;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 22% 48%, rgba(4, 6, 12, 0.82), rgba(4, 6, 12, 0.35) 60%, transparent 80%),
    linear-gradient(180deg, transparent 75%, var(--bg) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: calc(600px + 2 * var(--gutter));
  padding: 120px var(--gutter) 140px;
  pointer-events: none;
}

.hero__content a, .hero__content button { pointer-events: auto; }

.hero__logo { margin: 0 0 28px; }

.hero__logo img {
  width: min(100%, 520px);
  filter: drop-shadow(0 0 28px rgba(61, 155, 255, 0.35));
}

.hero__title {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero__lede {
  max-width: 500px;
  margin: 0 0 36px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-soft);
}

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

.hero__hint {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 24px;
  margin: 0;
  pointer-events: none;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.hero__hint-touch { display: none; }

@media (hover: none) {
  .hero__hint-mouse { display: none; }
  .hero__hint-touch { display: inline; }
}

/* The spectrum version: no breadboard overlay (it draws its own table) and no hint. */
[data-hero="spectrum"] .hero__grid,
[data-hero="spectrum"] .hero__hint { display: none; }

[data-hero="spectrum"] .hero__canvas { cursor: default; }

[data-hero="spectrum"] .hero {
  background:
    radial-gradient(ellipse 60% 55% at 70% 58%, rgba(40, 70, 170, 0.2), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(80, 60, 200, 0.1), transparent 70%),
    var(--bg);
}

/* ---------- Vision ---------- */

.vision {
  position: relative;
  padding: clamp(96px, 14vw, 160px) 0 clamp(80px, 10vw, 120px);
  background:
    radial-gradient(ellipse 45% 40% at 85% 20%, rgba(61, 155, 255, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 35% at 10% 75%, rgba(122, 107, 255, 0.06), transparent 70%);
}

/* One graphic that morphs between Design, Train and Industrialize */

.paths {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  margin-top: clamp(56px, 8vw, 96px);
}

.paths__scene {
  position: absolute;
  pointer-events: none;
}

.paths__list {
  position: relative;
  grid-column: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paths__item {
  position: relative;
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
  transition: border-color 0.5s;
}

.paths__item:last-child { border-bottom: 1px solid var(--line); }

.paths__item.is-active { border-top-color: rgba(var(--c), 0.35); }

.paths__head { margin: 0 0 10px; }

.paths__head button {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: 300 clamp(26px, 3vw, 36px)/1.15 var(--font-head);
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color 0.5s, text-shadow 0.5s;
}

.paths__num {
  min-width: 26px;
  font: 400 11px/1 var(--font-tech);
  letter-spacing: 0.08em;
  color: rgba(var(--c), 0.55);
  transition: color 0.5s;
}

.paths__text {
  max-width: 470px;
  margin: 0 0 0 42px;
  color: var(--ink-soft);
  font-size: 16px;
  opacity: 0.42;
  transition: opacity 0.5s;
}

.paths__item.is-active .paths__head button {
  color: #fff;
  text-shadow: 0 0 28px rgba(var(--c), 0.55);
}

.paths__item.is-active .paths__num { color: rgb(var(--c)); }
.paths__item.is-active .paths__text { opacity: 1; }

/* Without WebGL 2 the three paths stand on their own */
.paths--plain { grid-template-columns: 1fr; }
.paths--plain .paths__scene { display: none; }
.paths--plain .paths__list { grid-column: 1; }

/* Create → Visualize → Test → Validate, with a light pulse travelling through */

.pathway {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: clamp(64px, 9vw, 110px);
  padding: 26px 0;
}

.pathway::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
}

.pathway__beam {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22%;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, rgba(127, 220, 255, 0.9), #fff);
  box-shadow: 0 0 12px rgba(127, 220, 255, 0.9);
  border-radius: 2px;
  animation: pathway-beam 5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes pathway-beam {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(460%); opacity: 0; }
}

.pathway__step {
  position: relative;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--font-tech);
  font-size: clamp(9px, 1.2vw, 12px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  animation: pathway-step 5s infinite;
}

.pathway__step:nth-of-type(2) { animation-delay: 0.5s; }
.pathway__step:nth-of-type(3) { animation-delay: 1.5s; }
.pathway__step:nth-of-type(4) { animation-delay: 2.5s; }
.pathway__step:nth-of-type(5) { animation-delay: 3.4s; }

@keyframes pathway-step {
  0%, 30%, 100% { color: var(--muted); border-color: var(--line); box-shadow: none; }
  8%, 16% { color: #fff; border-color: rgba(127, 220, 255, 0.7); box-shadow: 0 0 24px -4px rgba(61, 155, 255, 0.8); }
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(61, 155, 255, 0.08), transparent 70%),
    var(--bg-2);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.email-reveal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 15px;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--cyan);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(127, 220, 255, 0.35);
  text-underline-offset: 4px;
}

.link-btn:hover { text-decoration-color: currentColor; }

.email-reveal__value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.email-reveal__value a { color: #fff; text-decoration: none; }
.email-reveal__value a:hover { color: var(--cyan); }

.form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

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

.field__label {
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__label em { font-style: normal; opacity: 0.7; text-transform: none; letter-spacing: 0.04em; }

.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 6, 12, 0.55);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(127, 220, 255, 0.6);
  background: rgba(4, 6, 12, 0.8);
  box-shadow: 0 0 0 4px rgba(61, 155, 255, 0.14);
}

.field.is-invalid input, .field.is-invalid textarea { border-color: rgba(255, 110, 140, 0.7); }

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 6px;
}

.form__status { margin: 0; flex: 1 1 220px; font-size: 14px; color: var(--ink-soft); }
.form__status.is-success { color: #8dffc4; }
.form__status.is-error { color: #ff9fb4; }

/* ---------- About page ---------- */

.topbar__nav a[aria-current="page"] { color: #fff; }

.about-intro {
  padding: clamp(140px, 18vw, 200px) 0 clamp(48px, 7vw, 80px);
  background:
    radial-gradient(ellipse 50% 60% at 80% 10%, rgba(61, 155, 255, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 50% at 5% 60%, rgba(122, 107, 255, 0.07), transparent 70%);
}

.about-intro .container { text-align: center; }
.about-intro .section-lede { margin: 0 auto; }

.founders { --gap: clamp(40px, 7vw, 96px); padding-bottom: clamp(80px, 11vw, 140px); }

/* A beam comes down, hits a splitter cube and goes to each founder */
.founders__split { position: relative; height: 112px; }

.founders__beam { position: absolute; display: block; }

.founders__beam--in {
  left: 50%;
  top: 0;
  width: 2px;
  height: 56px;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95));
  box-shadow: 0 0 10px rgba(180, 220, 255, 0.8);
}

.founders__cube {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 56px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(200, 230, 255, 0.75);
  background: linear-gradient(135deg, rgba(170, 215, 255, 0.3), rgba(90, 140, 255, 0.06));
  box-shadow: 0 0 22px rgba(127, 220, 255, 0.55);
  transform: translate(-50%, -50%) rotate(45deg);
}

.founders__beam--left, .founders__beam--right {
  top: 55px;
  height: 57px;
  border-top: 2px solid;
  animation: founders-shimmer 4s ease-in-out infinite;
}

.founders__beam--left {
  left: calc((100% - var(--gap)) / 4);
  right: 50%;
  border-left: 2px solid;
  border-color: rgba(96, 160, 255, 0.95);
  filter: drop-shadow(0 0 5px rgb(96, 160, 255));
}

.founders__beam--right {
  left: 50%;
  right: calc((100% - var(--gap)) / 4);
  border-right: 2px solid;
  border-color: rgba(170, 120, 255, 0.95);
  filter: drop-shadow(0 0 5px rgb(170, 120, 255));
  animation-delay: 2s;
}

@keyframes founders-shimmer {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.founders__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.founder { text-align: center; }

.founder__photo {
  width: min(70%, 248px);
  margin: 0 auto 30px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #7a6bff, #3d9bff, #38dcff, #7dffb2, #ffe066, #ff9a3d, #ff4d78, #7a6bff);
  box-shadow: 0 0 0 6px var(--bg), 0 0 60px -6px rgba(var(--c), 0.55);
  transition: box-shadow 0.5s, transform 0.5s;
}

.founder__photo img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
}

.founder:hover .founder__photo { transform: translateY(-3px); box-shadow: 0 0 0 6px var(--bg), 0 0 80px 0 rgba(var(--c), 0.65); }

.founder__role {
  margin: 0 0 10px;
  font-family: var(--font-tech);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(var(--c));
}

.founder__name {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.01em;
}

.founder__bio {
  max-width: 460px;
  margin: 0 auto 22px;
  color: var(--ink-soft);
}

.founder__facts {
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--muted);
}

.founder__facts li { padding: 9px 0; border-top: 1px solid var(--line); }

.about-cta {
  padding: clamp(80px, 11vw, 130px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 70% at 50% 0%, rgba(61, 155, 255, 0.1), transparent 70%),
    var(--bg-2);
  text-align: center;
}

.about-cta__inner { display: grid; justify-items: center; }
.about-cta .section-lede { margin-bottom: 32px; }

/* ---------- Footer ---------- */

.footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__logo { width: 120px; opacity: 0.8; }
.footer p { margin: 0; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }


/* ---------- Responsive ---------- */


@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; }
  .founders__split { display: none; }
  .founders__grid { grid-template-columns: 1fr; gap: 72px; }
}

@media (max-width: 760px) {
  .hero { align-items: flex-start; min-height: 100svh; }
  .hero__content { padding-top: 96px; padding-bottom: 320px; }
  .hero__lede { margin-bottom: 28px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
  .hero__logo img { width: min(100%, 380px); }
  .hero__vignette {
    background:
      linear-gradient(180deg, rgba(4, 6, 12, 0.88) 0%, rgba(4, 6, 12, 0.7) 45%, transparent 62%),
      linear-gradient(180deg, transparent 80%, var(--bg) 100%);
  }
  .topbar__nav a[href$="#vision"] { display: none; }
  .hero__hint { right: 0; left: 0; bottom: 16px; text-align: center; font-size: 12px; }
  .paths { grid-template-columns: 1fr; padding-top: 320px; margin-top: 40px; }
  .paths--plain { padding-top: 0; }
  .paths__list {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
  }
  .paths__item, .paths__item:last-child { display: contents; }
  .paths__head { grid-row: 1; margin: 0; }
  .paths__head button {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 0 18px;
    font-size: 19px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    transition: color 0.5s, text-shadow 0.5s, border-color 0.5s;
  }
  .paths__item.is-active .paths__head button { border-bottom-color: rgb(var(--c)); }
  .paths__num { min-width: 0; font-size: 10px; }
  .paths__text {
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 20px 0 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
  }
  .paths__item.is-active .paths__text { opacity: 1; visibility: visible; }
  .form__row { grid-template-columns: 1fr; }
  .pathway { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .pathway::before, .pathway__beam { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
