/* ARMO · Dark puzzle. Orbit's dark electric palette; gold is always the missing piece. */
:root {
  --bg: #05070d;
  --bg-2: #0a0e18;
  --card: #0e1422;
  --ink: #e8ecf5;
  --muted: #8792ab;
  --line: #1c2638;
  --ar: #47d7ff;
  --mo: #3d7bff;
  --gold: #ffc93c;
  --gold-soft: #ffe7a3;
  --dark: #05070d;
  --sec: #8b6cff;
  --imp: #ff5c7a;
  --soc: #ffb547;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: min(1200px, 92vw);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  --nav: 68px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background-image: radial-gradient(rgb(135 146 171 / 0.1) 1px, transparent 1.3px);
  background-size: 26px 26px;
}

a {
  color: inherit;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker {
  color: var(--muted);
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

h2 {
  font-size: clamp(2.3rem, 1.2rem + 4vw, 4.8rem);
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.35em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55em 1.1em;
  font-size: 14px;
}

.btn-ink {
  background: var(--ink);
  color: var(--bg);
}

.btn-line {
  border-color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 0 24px -6px var(--gold);
}

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

.ctas.center {
  justify-content: center;
}

/* ── Nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: max(4vw, 20px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 26px;
  overflow: visible;
}

.brand-mark .a,
.brand-mark .b {
  transition: transform 0.4s var(--spring);
}

.brand:hover .brand-mark .a {
  transform: translateX(-4px);
}

.brand:hover .brand-mark .b {
  transform: translateX(4px);
}

.links {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}

.links a {
  text-decoration: none;
  position: relative;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.links a:hover::after {
  transform: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  /* At least one screen, but it grows with its content so the example chips are never cut off
     on short screens. The board behind it redraws to the hero's real size. */
  min-height: max(640px, 100svh);
  padding-bottom: 56px;
  overflow: hidden;
}

.board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.board path {
  transform-box: fill-box;
  transform-origin: center;
  stroke: var(--bg);
  stroke-width: 3;
}

.board .slot {
  fill: color-mix(in srgb, var(--gold) 10%, transparent);
  stroke: var(--gold);
  stroke-width: 3;
  stroke-dasharray: 9 7;
  animation: march 1s linear infinite;
  transition: opacity 0.4s;
}

.board .slot.filled {
  opacity: 0;
}

.board .slot.bad {
  stroke: var(--imp);
  fill: color-mix(in srgb, var(--imp) 16%, transparent);
}

@keyframes march {
  to {
    stroke-dashoffset: -16;
  }
}

.hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 92%, transparent) 38%, transparent 64%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav) + 13vh);
  pointer-events: none;
}

.hero-copy > * {
  pointer-events: auto;
}

.hero h1 {
  font-size: clamp(2.8rem, 1.3rem + 5vw, 6.2rem);
  max-width: 10.5ch;
}

.gold-mark {
  white-space: nowrap;
  color: var(--gold);
  text-shadow: 0 0 28px rgb(255 201 60 / 0.35);
  background: linear-gradient(transparent 90%, var(--gold) 90% 97%, transparent 97%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  animation: mark 0.9s var(--ease) 1.1s forwards;
}

@keyframes mark {
  to {
    background-size: 100% 100%;
  }
}

.lead {
  max-width: 34ch;
  margin: 26px 0 32px;
  color: var(--muted);
  font-size: 1.2rem;
}

.loose {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 14px 16px rgb(20 22 28 / 0.22));
  transition: filter 0.3s;
}

.loose svg {
  display: block;
  overflow: visible;
}

.loose.idle svg {
  animation: wiggle 2.6s ease-in-out infinite;
}

.loose.dragging {
  cursor: grabbing;
  filter: drop-shadow(0 26px 26px rgb(20 22 28 / 0.3));
}

.loose.placed {
  cursor: default;
  filter: none;
}

.loose .q,
.loose .logo {
  transition: opacity 0.4s;
}

.loose .logo,
.loose.placed .q {
  opacity: 0;
}

.loose.placed .logo {
  opacity: 1;
}

@keyframes wiggle {
  0%,
  70%,
  100% {
    transform: rotate(0);
  }
  76% {
    transform: rotate(-7deg);
  }
  84% {
    transform: rotate(6deg);
  }
  92% {
    transform: rotate(-3deg);
  }
}

.hint {
  position: absolute;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  white-space: nowrap;
  transition: opacity 0.3s;
  pointer-events: none;
}

.hint-hand {
  display: inline-block;
  animation: nudge 1.2s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    transform: translate(-3px, -3px);
  }
}

.touched .hint,
.is-solved .hint {
  opacity: 0;
}

.solved {
  position: absolute;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s 0.5s, transform 0.4s var(--spring) 0.5s;
  pointer-events: none;
}

.is-solved .solved {
  opacity: 1;
  transform: none;
}

.ring {
  position: absolute;
  z-index: 2;
  border: 3px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Two minds ── */
.minds {
  position: relative;
  height: 260vh;
  border-top: 1px solid var(--line);
}

.minds-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding-top: calc(var(--nav) + 40px);
  overflow: hidden;
}

.minds-body {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.stage {
  position: relative;
  display: grid;
  justify-items: center;
}

.minds-svg {
  width: 100%;
  max-height: 58vh;
  overflow: visible;
}

.minds-svg .half {
  transform-box: fill-box;
  transform-origin: center;
}

.minds-svg .edge {
  fill: none;
  stroke-width: 7;
  stroke-linejoin: round;
}

.minds-svg .joint {
  fill: var(--gold);
  opacity: 0;
}

.locked .minds-svg .joint {
  animation: joint 1.4s var(--ease) forwards;
}

@keyframes joint {
  0% {
    opacity: 0.9;
    r: 6px;
  }
  100% {
    opacity: 0;
    r: 160px;
  }
}

.locked-line {
  color: var(--dark);
  margin-top: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.4s var(--spring);
}

.locked .locked-line {
  opacity: 1;
  transform: none;
}

.who {
  opacity: var(--q, 1);
  transform: translateY(calc((1 - var(--q, 1)) * 24px));
}

.who h3 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem);
}

.who-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--dark);
}

.who-ar .who-tag {
  background: var(--ar);
}

.who-mo .who-tag {
  background: var(--mo);
}

.who .role {
  margin: 8px 0 12px;
  color: var(--muted);
}

.who > p:not(.mono) {
  font-size: 1rem;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 13px;
  font-weight: 600;
}

.who-ar .chips {
  color: var(--ar);
}

.who-mo .chips {
  color: var(--mo);
}

.link {
  font-weight: 600;
  text-underline-offset: 4px;
}

/* ── Problems ── */
.problems {
  padding: 140px 0;
}

.cases {
  display: grid;
  gap: 24px;
  margin-top: 64px;
  padding: 0;
  list-style: none;
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 36px 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.case .label {
  color: var(--muted);
  margin-bottom: 10px;
}

.case .q {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.strip {
  width: 100%;
  overflow: visible;
}

.strip .base {
  fill: var(--bg-2);
  stroke: var(--line);
  stroke-width: 2;
}

.strip .hole {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  opacity: 0.45;
  transition: opacity 0.3s;
}

.strip .fly {
  fill: var(--c);
  stroke: var(--dark);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}

.done .strip .fly {
  opacity: 1;
}

.done .strip .hole {
  opacity: 0;
}

.case-solution {
  opacity: 0.2;
  transform: translateX(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.done .case-solution {
  opacity: 1;
  transform: none;
}

.case-solution h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.9rem;
}

.case-solution p {
  margin: 8px 0 12px;
  color: var(--muted);
}

.pill {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill-realm {
  border-color: transparent;
  background: var(--rc);
  color: var(--dark);
}

/* ── Realms ── */
.realms {
  padding: 140px 0;
  background: var(--bg-2);
}

.realms-lead {
  max-width: 46ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.15rem;
}

.realm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.realm {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}

.realm.play {
  border-color: var(--c);
  box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 55%, transparent);
  transform: translateY(-6px);
}

.mini {
  width: 100%;
  max-width: 230px;
  justify-self: center;
  margin: 12px 0 18px;
  overflow: visible;
}

.mp {
  stroke: var(--card);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  transform: translate(var(--tx), var(--ty)) rotate(var(--r));
  opacity: 0.85;
  transition:
    transform 0.75s var(--spring) calc(var(--d) * 45ms),
    opacity 0.4s;
}

.realm.play .mp {
  transform: none;
  opacity: 1;
}

.realm.reset .mp,
.realm.reset .icon * {
  transition: none !important;
  animation: none !important;
}

.icon {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.3s 0.55s;
}

.realm.play .icon {
  opacity: 1;
}

.icon * {
  transform-box: fill-box;
  transform-origin: center;
}

.realm.play .icon .draw {
  stroke-dasharray: 1;
  animation: draw 0.8s var(--ease) 0.6s both;
}

.realm.play .icon .beat {
  animation: beat 1.1s ease-in-out 0.9s infinite;
}

.realm.play .icon .node {
  animation: pop 0.45s var(--spring) calc(0.6s + var(--i) * 0.09s) both;
}

.icon .node {
  fill: #fff;
  stroke: none;
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes beat {
  0%,
  45%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.16);
  }
  30% {
    transform: scale(1.04);
  }
  38% {
    transform: scale(1.1);
  }
}

@keyframes pop {
  from {
    transform: scale(0);
  }
  to {
    transform: none;
  }
}

.realm .label {
  color: var(--c);
  font-weight: 600;
}

.realm h3 {
  font-size: 2rem;
}

.realm > p:not(.label) {
  color: var(--muted);
}

.realm ul {
  display: grid;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.realm li {
  border-bottom: 1px solid var(--line);
}

.realm li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.realm li a:hover {
  color: var(--pc);
}

.realm li .arr {
  transition: transform 0.2s var(--ease);
}

.realm li a:hover .arr,
.realm li a:focus-visible .arr {
  transform: translateX(4px);
}

.realm li span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.realm li i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--pc);
}

/* ── Story ── */
.story {
  padding: 140px 0;
  background:
    radial-gradient(60% 80% at 85% 50%, rgb(255 201 60 / 0.12), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.story .kicker {
  color: #9aa0b0;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
}

.story h2 {
  font-size: clamp(2.4rem, 1.2rem + 4.2vw, 5rem);
}

.story-body {
  display: grid;
  gap: 18px;
  justify-items: start;
  color: var(--muted);
  font-size: 1.1rem;
}

.story-body strong {
  color: var(--gold);
}

/* ── Contact ── */
.contact {
  padding: 140px 0 100px;
  text-align: center;
}

.slot-wrap {
  position: relative;
  width: min(760px, 100%);
  margin: 24px auto 0;
}

.contact-svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.contact-svg path {
  fill: color-mix(in srgb, var(--gold) 10%, transparent);
  stroke: var(--gold);
  stroke-width: 4;
  stroke-dasharray: 12 9;
  animation: march 1.2s linear infinite;
  transition: fill 0.4s;
}

.slot-wrap:hover .contact-svg path {
  fill: color-mix(in srgb, var(--gold) 26%, transparent);
}

.slot-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 0 17%;
}

.slot-copy h2 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem);
}

.slot-copy p {
  color: var(--muted);
  /* This line sits level with the piece's side notches: keep it inside the clear middle
     (about 52% of the piece's width), whatever the screen size. */
  max-width: 72%;
  margin-inline: auto;
  text-wrap: balance;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 96px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .links {
    display: none;
  }
  .case {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }
  .strip {
    max-width: 300px;
  }
  .realm-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }
  .minds-body {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "stage stage"
      "ar mo";
    gap: 16px 20px;
    align-content: start;
  }
  .stage {
    grid-area: stage;
  }
  .who-ar {
    grid-area: ar;
  }
  .who-mo {
    grid-area: mo;
  }
  .who > p:not(.mono),
  .chips {
    display: none;
  }
  .minds-svg {
    max-height: 34vh;
  }
}

@media (max-width: 760px) {
  .hero-fade {
    background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 90%, transparent) 50%, transparent 72%);
  }
  .hero-copy {
    padding-top: calc(var(--nav) + 6vh);
  }
  .lead {
    font-size: 1.05rem;
    margin: 18px 0 22px;
  }
  .nav .btn {
    display: none;
  }
  .hint {
    display: none;
  }
  .slot-copy {
    position: static;
    padding: 24px 0 0;
  }
  .slot-copy p {
    max-width: none;
  }
  .contact-svg {
    display: none;
  }
  .foot {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .gold-mark {
    background-size: 100% 100%;
  }
}

/* ── Intro film ── */
html.intro-playing {
  overflow: hidden;
}

html.intro-skip .intro {
  display: none;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0e1016;
  color: var(--ink);
  overflow: hidden;
}

.intro-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-stage * {
  transform-box: view-box;
  transform-origin: 0 0;
}

.i-slot {
  fill: rgb(255 201 60 / 0.08);
  stroke: var(--gold);
  stroke-width: 3;
  stroke-dasharray: 9 7;
  animation: march 1s linear infinite;
  transition: stroke 0.2s, fill 0.2s;
}

.i-slot.i-bad {
  stroke: var(--imp);
  fill: rgb(255 77 109 / 0.12);
}

.i-slot.i-filled {
  stroke-dasharray: none;
  animation: none;
}

.i-path {
  stroke: #4a5368;
  stroke-width: 1.5;
}

.i-ar,
.i-mo {
  stroke: #0e1016;
}

.i-bob {
  animation: bob 3s ease-in-out infinite alternate;
}

.i-lift .i-bob,
.i-still .i-bob {
  animation: none;
}

.i-lift .i-path {
  filter: drop-shadow(0 12px 14px rgb(0 0 0 / 0.5));
}

@keyframes bob {
  from {
    transform: translateY(-4px);
  }
  to {
    transform: translateY(4px);
  }
}

.i-ret path {
  fill: none;
  stroke: #47d7ff;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.i-read {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-hud {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  color: #8a90a2;
}

.intro-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13vh;
  padding: 0 6vw;
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  opacity: 0;
}

.intro-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
}

.intro-mark {
  width: 120px;
  height: 80px;
  overflow: visible;
}

.intro-word {
  font-size: clamp(4rem, 2rem + 11vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.intro-tag {
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  font-weight: 600;
  color: #b8bdca;
}

.intro-tag span {
  color: var(--gold);
}

.intro-time {
  position: absolute;
  left: 28px;
  bottom: 26px;
  color: #8a90a2;
  font-variant-numeric: tabular-nums;
}

.intro-skip-btn {
  position: absolute;
  right: 24px;
  bottom: 18px;
  padding: 10px 16px;
  border: 1px solid #3a4152;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.intro-skip-btn:hover {
  background: #1c2030;
  border-color: var(--gold);
}

.intro-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #1c2030;
}

.intro-bar span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

/* ── Command bar: describe a problem, the piece flies into the slot ── */
.ask {
  max-width: 580px;
  margin-top: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ask-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border: 1.5px solid color-mix(in srgb, var(--mo) 65%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 30px -6px color-mix(in srgb, var(--mo) 60%, transparent);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ask-bar:focus-within {
  border-color: var(--ar);
  box-shadow: 0 0 34px -4px color-mix(in srgb, var(--ar) 55%, transparent);
}

.ask-mark {
  flex: none;
  width: 30px;
  height: 20px;
  overflow: visible;
}

.ask input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 1.05rem var(--display);
  outline: none;
}

.ask input::placeholder {
  color: #8792ab;
}

.ask-go {
  flex: none;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: #2f5fe0; /* a deeper blue keeps white text readable (5.5:1) */
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.ask-go:hover {
  background: #2552c9;
}

.ask-error {
  margin-top: 8px;
  color: var(--imp);
  font-size: 14px;
}

.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 75%, transparent);
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.result {
  position: absolute;
  z-index: 3;
  width: 300px;
  padding: 18px 20px;
  border: 1.5px solid var(--c, var(--gold));
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 44px -12px var(--c, var(--gold));
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--spring);
}

.result.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.r-kicker {
  color: var(--c);
}

.r-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.r-name i {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--c);
}

.r-line {
  color: var(--muted);
  font-size: 0.95rem;
}

.r-cta {
  display: inline-block;
  margin-top: 12px;
  color: var(--c);
  text-decoration: none;
  border-bottom: 1px solid var(--c);
}

.case:target {
  border-color: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent);
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 100svh;
    padding-bottom: 190px;
  }
  .result {
    position: relative;
    width: auto;
    margin: 18px 4vw 0;
  }
  .result:not(.show) {
    display: none;
  }
}

/* Dark puzzle: the hero carries the command bar, so the headline is a touch smaller. */
.hero-copy {
  padding-top: calc(var(--nav) + 8vh);
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 1.2rem + 4.2vw, 5.4rem);
}

.hero .lead {
  margin: 20px 0 22px;
}

/* Intro text is always light, whatever the page palette. */
.intro,
.intro-cap,
.intro-word,
.intro-skip-btn {
  color: #e8ecf5;
}

/* "AR" and "MO" on the two minds' pieces in the intro: they pop in as the pieces lock. */
.intro-stage .i-tag {
  fill: #05070d;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: scale(0.3);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.35s ease-out, transform 0.55s cubic-bezier(0.3, 1.6, 0.5, 1);
  pointer-events: none;
}

.intro-stage .i-tag.on {
  opacity: 1;
  transform: none;
}

/* Below ~900 px the outlined piece is too small to hold this copy: stack it plainly instead. */
@media (max-width: 900px) {
  .contact-svg {
    display: none;
  }
  .slot-copy {
    position: static;
    padding: 24px 0 0;
  }
  .slot-copy p {
    max-width: none;
  }
}
