/* envi.Reality — shared styles */

:root {
  --font-main: "SF Compact Text", "SF Compact Display", "SF Compact", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #000000;
  --surface: #12161f;
  --surface-raised: #1a202d;
  --border: #2a3247;
  --text: #edeff5;
  --text-muted: #8a93aa;
  --accent-violet: #7c6fff;
  --accent-cyan: #4fd8e8;
  --accent-coral: #ff6f59;
  --gradient: linear-gradient(90deg, var(--accent-coral), var(--accent-violet), var(--accent-cyan));
  --rainbow: linear-gradient(90deg, #e83625, #f78627, #ffc557, #bac45a, #3787ae, #9877a7);
  --max-width: 1120px;
  --bracket: rgba(79, 216, 232, 0.55);
  --bracket-hover: rgba(79, 216, 232, 0.95);

  /* Machined-panel material system — polished chrome instead of glass/blur,
     small consistent curves instead of pills. Banded highlight/shadow
     stops simulate a curved reflective surface catching the light;
     fine brushed grain sits on top for texture. */
  --radius: 10px;
  --radius-sm: 7px;
  --metal-grain: rgba(255, 255, 255, 0.07);
  --metal-bg:
    repeating-linear-gradient(97deg, var(--metal-grain) 0px, var(--metal-grain) 1px, transparent 1px, transparent 3px),
    linear-gradient(120deg,
      #14151a 0%, #4c515c 10%, #aeb4bf 21%, #e8ebef 27%, #6a707c 36%,
      #23262d 46%, #7a808c 58%, #cdd1d8 66%, #383c45 76%,
      #969ba6 87%, #1c1e24 100%);
  --metal-edge: rgba(255, 255, 255, 0.35);
  --metal-edge-soft: rgba(255, 255, 255, 0.14);
  --metal-shadow: rgba(0, 0, 0, 0.6);
  /* A dark wash over the chrome so bright bands don't fight body text —
     the reflective surface still reads through, just muted where content
     sits on top of it. Used everywhere a .pane needs a background,
     regardless of page theme: real brushed/polished chrome reads as a dark
     material with bright streaks, not pale gray — a light "chrome" just
     reads as white and disappears against a white page. */
  --metal-panel-bg: linear-gradient(rgba(8, 9, 12, 0.74), rgba(8, 9, 12, 0.74)), var(--metal-bg);
  /* One clean highlight sweep for the nav bar — the full card recipe reads
     as too busy at this size and this shape. */
  --nav-metal-bg:
    repeating-linear-gradient(97deg, var(--metal-grain) 0px, var(--metal-grain) 1px, transparent 1px, transparent 3px),
    linear-gradient(120deg, #202329 0%, #35383f 40%, #55585f 50%, #35383f 60%, #202329 100%);
}

/* Light theme — everything past the hero video, and every page besides the
   homepage's video section, switches from the dark/black theme to this. */
.light {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #e2e4ea;
  --text: #14151c;
  --text-muted: #5c6272;
  --accent-cyan: #0c8fa3;
  --bracket: rgba(12, 143, 163, 0.4);
  --bracket-hover: rgba(12, 143, 163, 0.85);
  /* Metal tokens intentionally NOT overridden here — .pane keeps the same
     dark chrome material (with light text) on every page, light or dark
     theme, so it always contrasts clearly against a white section. */
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

h1, h2, h3 {
  font-family: var(--font-main);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* The eyebrow is the site's structural voice, not decoration: every kicker,
   card tag and section label reads like a path or a terminal comment rather
   than a generic small-caps label. */
.eyebrow {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent-cyan);
  margin: 0 0 0.75em;
  display: block;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav — one solid metallic bar. The text isn't colored for state, it's
   engraved: a dark base tone plus a light lower edge and dark upper edge
   simulate letters cut into the metal, so hover/current reads as "cut
   deeper," not as a different color. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  pointer-events: none;
}

.nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--nav-metal-bg);
  border: 1px solid var(--metal-edge);
  border-radius: var(--radius-sm);
  padding: 4px;
  box-shadow: 0 6px 16px -10px rgba(0,0,0,0.5), inset 0 1px 0 var(--metal-edge-soft);
}

.lang-btn {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 9px;
  border-radius: calc(var(--radius-sm) - 2px);
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-btn:hover { color: rgba(255, 255, 255, 0.85); }

.lang-btn.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 480px) {
  .lang-btn { padding: 5px 7px; font-size: 0.72rem; }
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  background: var(--nav-metal-bg);
  border: 1px solid var(--metal-edge);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,0.55), inset 0 1px 0 var(--metal-edge-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  text-decoration: none;
  color: #ffffff;
}

.nav-links a[aria-current="page"] {
  color: #ffffff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-cta::before {
  content: ">";
  opacity: 0.6;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-pill { position: relative; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 220px;
    padding: 8px;
    background: var(--nav-metal-bg);
    border: 1px solid var(--metal-edge);
    border-radius: var(--radius);
    box-shadow: 0 16px 30px -12px rgba(0,0,0,0.5);
  }
  .nav-pill.is-open .nav-links { display: flex; }

  .nav-links a { text-align: center; }
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 3px 0 var(--metal-shadow);
}
.btn-primary:hover { background: var(--accent-cyan); text-decoration: none; transform: translateY(-2px); box-shadow: 0 5px 0 var(--metal-shadow); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-cyan); text-decoration: none; transform: translateY(-2px); }

/* Same material and treatment as the navbar — one metallic bar, plain
   white text, no color accent. */
.btn-metal {
  background: var(--nav-metal-bg);
  border: 1px solid var(--metal-edge);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 26px -12px rgba(0,0,0,0.55), inset 0 1px 0 var(--metal-edge-soft);
}
.btn-metal:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Puzzle pane — signature element. Brushed-metal panels instead of glass
   or gradients; a hairline edge instead of a soft border; and a hover that
   physically lifts the piece off the surface, like picking one up. */

.pane {
  position: relative;
  background: var(--metal-panel-bg);
  border: 1px solid var(--metal-edge);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 1px 0 var(--metal-edge-soft) inset, 0 14px 30px -18px var(--metal-shadow);
}

/* The chrome card is always dark, so its own text stays light regardless
   of whether the page around it is in the light or dark theme. */
.pane h2,
.pane h3 {
  color: #ffffff;
}

.pane p {
  color: #b7bcc4;
}

.pane .eyebrow {
  color: #9aa0ac;
}

/* Sections */

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.skyline-section {
  padding: 0;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head-body { min-width: 0; }
.section-head-body h2 { margin-bottom: 0.4em; }
.section-head-body p { max-width: 560px; }

.section-head.center {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* The brand mark stands in for a headline here, with three chrome lines
   fanning out beneath it like a trident — one brand, splitting into the
   three things below it. */
.brand-mark {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  background-image: linear-gradient(180deg, #8a8f99 0%, #3a3d45 38%, #14151a 50%, #4c515c 62%, #8a8f99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0;
}

.trident {
  display: block;
  width: 100%;
  max-width: 640px;
  height: 64px;
  margin: 22px auto 0;
}

.trident path {
  fill: none;
  stroke: url(#tridentChrome);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .section-head .eyebrow { border-left: none; padding-left: 0; }
}

/* Grids */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* Puzzle-fit cards — panes in a grid butt up edge to edge like assembled
   pieces. Each seam gets an actual jigsaw tab (a neck plus a round head,
   drawn with clip-path — not just a circle), owned by the card to its
   left so it reads as one piece plugging into the next; only the strip's
   outer corners curve. */
.grid-3 .pane,
.grid-2 .pane {
  position: relative;
  border-radius: 0;
}

.grid-3 .pane:nth-child(1) { z-index: 3; }
.grid-3 .pane:nth-child(2) { z-index: 2; }
.grid-3 .pane:nth-child(3) { z-index: 1; }
.grid-2 .pane:nth-child(1) { z-index: 2; }
.grid-2 .pane:nth-child(2) { z-index: 1; }

.grid-3 .pane:not(:first-child),
.grid-2 .pane:not(:first-child) {
  border-left: none;
}

.grid-3 .pane:first-child,
.grid-2 .pane:first-child {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

.grid-3 .pane:last-child,
.grid-2 .pane:last-child {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }

  .grid-3 .pane:not(:first-child),
  .grid-2 .pane:not(:first-child) {
    border-left: 1px solid var(--metal-edge);
    border-top: none;
  }

  .grid-3 .pane:first-child,
  .grid-2 .pane:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .grid-3 .pane:last-child,
  .grid-2 .pane:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

/* Scrolling ticker band — separates two light sections with a hard black
   band and a loop of rainbow-gradient keywords */

.marquee {
  overflow: hidden;
  background: #000000;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 20px;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-track span:not(.dot) {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marquee-track .dot {
  color: #4a5164;
  font-size: 1.05rem;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Tables */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th, .data-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.data-table td.yes { color: var(--accent-cyan); }
.data-table td.partial { color: var(--text-muted); }
.data-table td.no { color: #4a5164; }

.data-table tr.envi-row td { color: var(--text); font-weight: 600; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.table-wrap .data-table { min-width: 640px; }
.table-wrap th:first-child, .table-wrap td:first-child { padding-left: 20px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

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

.site-footer p { margin: 0; font-size: 0.85rem; }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 0.85rem;
}

.footer-contact-label {
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--text-muted);
}

.footer-contact a:hover {
  color: var(--accent-cyan);
}

@media (max-width: 640px) {
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-contact {
    flex-direction: column;
    gap: 2px;
  }
}

/* Hero */

.hero {
  padding: 120px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(124,111,255,0.18), transparent 70%);
  pointer-events: none;
}

.hero h1 { max-width: 800px; }
.hero .lede { max-width: 560px; font-size: 1.1rem; margin-top: 20px; }

/* The headset bleeds off the right edge of the viewport, not just the
   content column — .hero already clips overflow, so the image just needs
   to be positioned relative to the full-width section, sized big enough
   that mostly the left lens stays in view and the right one crops away. */
.hero-with-image .hero-text {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-headset-img {
  position: absolute;
  top: 50%;
  right: -320px;
  transform: translateY(-50%);
  width: 760px;
  max-width: none;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero-headset-img {
    position: static;
    transform: none;
    width: 100%;
    max-width: 260px;
    margin: 32px auto 0;
    display: block;
  }
}
.cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.tag-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.tag {
  font-family: var(--font-main);
  font-size: 0.72rem;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

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

/* About page hero — dithered handshake, full-bleed under the title */

.about-hero {
  background: #000000;
  padding-top: 140px;
  overflow: hidden;
}

.about-hero .container {
  position: relative;
  z-index: 1;
}

.about-hero .eyebrow,
.about-story-section .eyebrow { color: #a9def0; }
.about-hero h1 { color: #ffffff; max-width: 800px; }
.about-hero .lede { color: #9aa0b4; max-width: 560px; font-size: 1.1rem; margin-top: 20px; }

.about-hero-img {
  width: 100%;
  height: auto;
  margin-top: 48px;
  display: block;
}

@media (max-width: 720px) {
  .about-hero { padding-top: 120px; }
  .about-hero-img { margin-top: 32px; }
}

.about-story-section {
  background: #000000;
}

.about-story-eyebrow {
  display: block;
  margin-bottom: 24px;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  gap: 40px;
  align-items: center;
}

.about-story-text { text-align: left; }

.founder-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.founder-card {
  border-left: 2px solid rgba(255,255,255,0.16);
  padding-left: 20px;
}

.founder-card h3 {
  color: #ffffff;
  margin-bottom: 4px;
}

.founder-role {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a9def0;
  margin: 0 0 10px;
}

.founder-card p:not(.founder-role) {
  font-size: 1rem;
  color: #9aa0b4;
  margin: 0 0 10px;
}

.founder-link {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 0.78rem;
  color: #a9def0;
}

.about-story-meet {
  margin-top: 24px;
  font-size: 1.05rem;
  color: #9aa0b4;
}

.about-story-note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: #6b7386;
}

/* Contact form — posts to contact.php, which emails the message via Hostinger's mail server */

.contact-pane {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 40px;
  text-align: center;
}

.contact-pane h2 { margin-bottom: 24px; }

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-status {
  display: none;
  margin: -8px 0 20px;
  font-size: 0.9rem;
  color: var(--accent-cyan);
}

.contact-status[data-status="0"] { color: #e8574f; }
.contact-status.is-visible { display: block; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form textarea {
  width: 100%;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.contact-form .btn {
  align-self: center;
  border: none;
  cursor: pointer;
}

.about-story-visual {
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #000000;
}

.globe-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.globe-ascii {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.globe-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.about-story-visual.is-static .globe-video,
.about-story-visual.is-static .globe-ascii {
  display: none;
}

.about-story-visual.is-static .globe-static {
  display: block;
}

@media (max-width: 860px) {
  .about-story { grid-template-columns: 1fr; }
  .about-story-visual { width: min(80%, 320px); margin-top: 8px; }
}

/* Interactive roadmap */

.roadmap {
  padding: 24px;
  /* No chrome here — a plain flat white panel instead of the metallic
     material used on the card grids. */
  background: #ffffff;
  border-color: #e2e4ea;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset, 0 14px 30px -18px rgba(20,21,28,0.14);
}

.roadmap-phasebar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 999px;
  overflow: hidden;
  height: 42px;
  border: none;
}

.roadmap-phase-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.roadmap-phase-seg.is-active { opacity: 1; }

.roadmap-phase-seg.phase-1 { background: linear-gradient(90deg, #e83625, #f78627); }
.roadmap-phase-seg.phase-2 { background: linear-gradient(90deg, #f78627, #ffc557, #bac45a); }
.roadmap-phase-seg.phase-3 { background: linear-gradient(90deg, #3787ae, #9877a7); }

.roadmap-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c6272;
}

.roadmap-tracks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.roadmap-exist {
  grid-column: 2 / 3;
  text-align: center;
  padding: 5px 8px;
  border: 1px dashed #e83625;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: #e83625;
}

.roadmap-parallel {
  grid-column: 2 / 4;
  text-align: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,197,87,0.22), rgba(152,119,167,0.22));
  font-size: 0.78rem;
  font-weight: 600;
  color: #14151c;
}

.roadmap-scramble {
  margin-top: 24px;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: left;
}

.roadmap-letter {
  display: inline;
  color: #33353c;
  will-change: transform, opacity;
}

.roadmap-track {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: 28px 12px 22px;
  margin-top: 20px;
}

.roadmap-track-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
}

/* Snaps flush to its trailing edge so scrolling to the end never rests with
   dangling blank space past the last card */
.roadmap-track-inner > .roadmap-step:last-child {
  scroll-snap-align: end;
}

.roadmap-connector {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  color: #b8bccc;
  font-family: var(--font-main);
  font-size: 0.9rem;
}

/* Each card is a window onto one continuous watercolor wash — the base layer's
   background-position is aligned per card in JS so it flows seamlessly from
   card to card; the gaps between cards stay plain white (the pane's own bg). */
.roadmap-step {
  position: relative;
  z-index: 1;
  overflow: hidden;
  scroll-snap-align: start;
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: #0e1018;
  border: none;
  border-radius: 12px;
  padding: 14px 16px 18px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transform: perspective(700px) rotateX(0deg) rotateY(0deg) translateY(0);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  will-change: transform;
}

.roadmap-step-fluid-base {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(90deg,
    #e83625 0%, #f78627 20%, #ffc557 40%, #bac45a 55%, #3787ae 75%, #9877a7 100%);
  filter: blur(6px) saturate(130%);
  opacity: 0.62;
}

.roadmap-step-fluid-glow {
  position: absolute;
  inset: -50%;
  z-index: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 60%);
  mix-blend-mode: overlay;
  filter: blur(18px);
  animation: fluid-glow-drift 9s ease-in-out infinite;
}

.roadmap-step:nth-child(2n) .roadmap-step-fluid-glow { animation-duration: 12s; animation-direction: reverse; }

@keyframes fluid-glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(22%, -18%) scale(1.3); }
}

.roadmap-step::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10,13,20,0.1), rgba(10,13,20,0.6) 65%);
  pointer-events: none;
}

.roadmap-step:hover,
.roadmap-step:focus-visible,
.roadmap-step.is-current {
  border-color: #4a5164;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
  outline: none;
}

.roadmap-step.is-current {
  border-color: #7c6fff;
  box-shadow: 0 0 0 1px #7c6fff, 0 20px 40px -20px rgba(124,111,255,0.4);
}

.roadmap-step-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: #ffffff;
  min-height: 1.3em;
}

.roadmap-step-desc {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  color: #eef0f6;
  line-height: 1.5;
}

.roadmap-step-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.roadmap-step-tags .tag {
  font-size: 0.6rem;
  padding: 3px 8px;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
}

@media (max-width: 720px) {
  .roadmap-exist { display: none; }
  .roadmap-parallel { grid-column: 1 / 4; }
  .roadmap-connector { display: none; }
}

/* Zoom-portal hero */

.zoom-hero {
  position: relative;
  height: 320vh;
}

.zoom-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.zoom-intro {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0 24px;
  opacity: calc(1 - var(--p, 0) * 3.2);
  transform: translateY(calc(var(--p, 0) * -30px));
  pointer-events: none;
}

.zoom-intro h1 {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: left;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
}

.zoom-stage {
  --stage-base-w: min(78vw, 1080px, 130vh);
  position: absolute;
  top: calc(60% - var(--p, 0) * 10%);
  left: 50%;
  width: calc(var(--stage-base-w) + var(--p, 0) * (100vw - var(--stage-base-w)));
  height: calc(var(--stage-base-w) * 0.6 * (1 - var(--p, 0)) + 100vh * var(--p, 0));
  transform: translate(-50%, -50%);
}

/* Outer headset bezel — a rounded-square shell at rest that fades away and
   un-rounds in sync with the screen it frames */
.zoom-visor {
  position: absolute;
  inset: 0;
  border-radius: calc(30% * (1 - var(--p, 0)));
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.03));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 40px 90px -24px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -1px 1px rgba(0,0,0,0.2);
  opacity: calc(1 - var(--p, 0) * 2.2);
}

/* The ascii video screen — inset within the bezel at rest, un-rounds and
   grows to fill the whole stage (bezel gone) as you scroll. */
.zoom-frame {
  position: absolute;
  inset: calc(6px * (1 - var(--p, 0)));
  border-radius: calc(30% * (1 - var(--p, 0)));
  overflow: hidden;
}

.zoom-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
}

.zoom-tap-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.zoom-tap-hint.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* The real video is never shown — it only exists as a source for the
   ascii canvas to sample from */
.zoom-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.zoom-ascii {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.zoom-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* Touch-primary devices skip the live video+canvas pipeline entirely in
   favor of this pre-rendered frame — see zoom-hero.js for why. */
.zoom-hero.is-static .zoom-video,
.zoom-hero.is-static .zoom-ascii {
  display: none;
}

.zoom-hero.is-static .zoom-static {
  display: block;
}

/* Touch-primary devices never run the scroll-driven zoom/un-rounding
   animation (see zoom-hero.js), so the huge scroll-jacking height below is
   just dead space for them — collapse the whole section back down to a
   normal compact block. The headset bezel itself (.zoom-visor/.zoom-frame)
   needs no override: with --p permanently 0 it already renders at its
   resting, rounded "headset" look. */
.zoom-hero.is-static {
  height: auto;
}

.zoom-hero.is-static .zoom-sticky {
  position: relative;
  height: auto;
  padding: 28px 0 32px;
  display: block;
}

.zoom-hero.is-static .zoom-intro {
  position: relative;
  top: auto;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.zoom-hero.is-static .zoom-stage {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 20px auto 0;
  width: 88vw;
  max-width: 480px;
  height: calc(min(88vw, 480px) * 0.6);
}

@media (max-width: 720px) {
  .zoom-hero { height: 260vh; }
  .zoom-stage { --stage-base-w: 88vw; }
}

@media (prefers-reduced-motion: reduce) {
  .zoom-hero { height: auto; }
  .zoom-sticky { position: relative; height: auto; padding: 90px 0; }
  .zoom-stage { position: relative; margin: 0 auto; }
  .zoom-visor { display: none; }
  .zoom-frame { position: relative; inset: 0; border-radius: 16px; }
}
