/* Dream Labs Research — shared styles. No external requests: fonts are self-hosted in /fonts. */

@font-face { font-family: "Anton"; src: url("../fonts/anton.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-2: #0c0b10;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f5f5f5;
  --muted: #b3b1c0;
  --dim: #8d8a9c;
  --pink: #f0609e;
  --pink-deep: #e1007d;
  --yellow: #f2c14e;
  --blue: #9dbff2;
  --purple: #7d5cff;
  --violet: #4b2fb8;
  --green: #4ade80;
  --orange: #ff9a3c;
  --ink: #0b0710;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.15; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: .08em .38em; border-radius: 6px; }
kbd { font-size: .82em; border: 1px solid var(--line-2); border-bottom-width: 2px; padding: .05em .4em; border-radius: 6px; background: var(--surface-2); }
strong { font-weight: 600; color: #fff; }
::selection { background: var(--pink); color: var(--ink); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); font-weight: 800; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .01em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .78rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--pink); border-radius: 2px; }
.eyebrow.yellow::before { background: var(--yellow); }
.eyebrow.blue::before { background: var(--blue); }
.lede { font-size: clamp(1.08rem, 1.1vw + .8rem, 1.32rem); color: var(--muted); max-width: 46rem; line-height: 1.6; }
.hl-pink { color: var(--pink); }
.hl-yellow { color: var(--yellow); }
.hl-blue { color: var(--blue); }
.band {
  display: inline-block; background: var(--pink); color: var(--ink);
  padding: .02em .16em .04em; transform: rotate(-1.6deg); box-shadow: 0 .12em 0 #8a0f4b, 0 20px 60px rgba(240, 96, 158, .35);
  border-radius: 4px; max-width: 100%;
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.35em; border-radius: 999px;
  font: 600 1rem/1.1 var(--sans); text-decoration: none; letter-spacing: .01em;
  background: var(--b); color: var(--text); border: 1px solid var(--line-2);
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .35); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-pink { background: var(--pink); color: var(--ink); border-color: transparent; box-shadow: 0 10px 30px rgba(240, 96, 158, .3); }
.btn-pink:hover { background: #ff78b0; box-shadow: 0 14px 40px rgba(240, 96, 158, .45); border-color: transparent; }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: transparent; box-shadow: 0 10px 30px rgba(242, 193, 78, .25); }
.btn-yellow:hover { background: #ffd063; border-color: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 7, .72);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: 36px; }
.brand-word { font-family: var(--display); font-size: 1.28rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand-word span { color: var(--pink); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .96rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after { content: ""; display: block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--pink); }
.nav-links .nav-cta { background: var(--pink); color: var(--ink); margin-left: 8px; padding: 0 18px; }
.nav-links .nav-cta:hover { background: #ff78b0; color: var(--ink); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px; background: rgba(5, 5, 7, .97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open .nav-links { display: flex; }
  .nav-links a { min-height: 50px; font-size: 1.05rem; }
  .nav-links .nav-cta { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 380px) { .brand-word { font-size: 1.08rem; } .brand img { width: 30px; height: 30px; } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .display { font-size: clamp(2.6rem, 6.4vw, 5.6rem); margin: 16px 0 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 980px); display: flex; align-items: center;
  padding-block: clamp(96px, 14vh, 160px) clamp(72px, 10vh, 120px);
}
.hero-art { position: absolute; inset: -140px 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(5, 5, 7, .2), rgba(5, 5, 7, .85) 80%),
    linear-gradient(180deg, rgba(5, 5, 7, .35) 0%, rgba(5, 5, 7, 0) 30%, rgba(5, 5, 7, .2) 70%, var(--bg) 100%);
}
.hero h1.display { font-size: clamp(3.3rem, 12.5vw, 11.5rem); margin: 22px 0 28px; }
@media (max-width: 600px) { .hero h1.display { font-size: clamp(3.3rem, 16vw, 6rem) !important; } }
.hero h1 .row { display: block; }
.hero .lede { margin-bottom: 36px; color: #cfcdd9; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10, 10, 14, .55); font-size: .86rem; font-weight: 600; color: #dcdae6;
}
.pill img { width: 18px; height: 18px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--pink); border-radius: 2px; animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- project cards (home) ---------- */
.projects { display: grid; gap: clamp(18px, 2vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 980px) { .projects { grid-template-columns: 1fr 1fr; } }
.project {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 28px; border: 1px solid var(--line);
  min-height: 600px; padding: clamp(26px, 3.4vw, 48px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--bg-2);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.project:hover { transform: translateY(-6px); border-color: var(--line-2); }
.project-dream:hover { box-shadow: 0 30px 80px -20px rgba(240, 96, 158, .35); }
.project-machx:hover { box-shadow: 0 30px 80px -20px rgba(255, 154, 60, .3); }
.project-art { position: absolute; inset: 0; z-index: -2; }
.project-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .project-art img { transform: scale(1.04); }
.project::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.project-dream .project-art img { object-position: 72% 50%; }
.project-dream::after { background: linear-gradient(180deg, rgba(5, 5, 7, .05) 0%, rgba(5, 5, 7, .55) 42%, rgba(5, 5, 7, .96) 72%); }
.project-machx { background: radial-gradient(ellipse 80% 60% at 50% 18%, rgba(255, 140, 40, .22), transparent 65%), #08070a; }
.project-machx { justify-content: flex-start; }
.project-machx .project-art { position: relative; inset: auto; height: clamp(170px, 20vw, 250px); margin: 4px 0 28px; display: flex; justify-content: center; }
.project-machx .project-art img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.project-machx::after { display: none; }
.project .kicker { font: 600 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.project h3.display { font-size: clamp(3.4rem, 7vw, 6rem); margin: 12px 0 6px; }
.project .tag { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: .02em; margin-bottom: 14px; }
.project p { color: #d2d0dc; max-width: 34rem; }
.project ul { list-style: none; padding: 0; margin: 4px 0 26px; display: grid; gap: 8px; }
.project li { position: relative; padding-left: 20px; color: #dddbe6; font-size: .98rem; }
.project li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--pink); transform: rotate(45deg); }
.project-machx li::before { background: var(--orange); }

/* ---------- tour ---------- */
.tour {
  position: relative; display: block; border-radius: 26px; overflow: hidden; text-decoration: none;
  border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(125, 92, 255, .5);
  max-width: 1080px; margin-inline: auto;
}
.tour img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.tour:hover img { transform: scale(1.025); filter: brightness(.85); }
.tour-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(72px, 10vw, 112px); aspect-ratio: 1; border-radius: 50%;
  background: var(--pink); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(240, 96, 158, .25), 0 20px 60px rgba(0, 0, 0, .6);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.tour-play svg { width: 38%; height: 38%; margin-left: 6%; fill: var(--ink); }
.tour:hover .tour-play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 16px rgba(240, 96, 158, .2), 0 20px 60px rgba(0, 0, 0, .6); }
.tour-badge {
  position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.tour-badge span {
  background: rgba(5, 5, 7, .82); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-size: .9rem; font-weight: 600;
}
.tour-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #000; }
.tour-note { text-align: center; color: var(--dim); font-size: .95rem; margin-top: 18px; }

/* ---------- hub (built together) ---------- */
.hub { display: flex; flex-direction: column; align-items: center; }
.hub-row { display: flex; align-items: center; width: 100%; }
.node {
  border: 1px solid var(--line-2); background: rgba(14, 12, 20, .8); border-radius: 18px; padding: 20px 22px;
  text-align: center; flex: 0 1 300px;
}
.node h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.node p { font-size: .92rem; color: var(--muted); margin: 0; }
.node .logos { display: flex; justify-content: center; gap: 10px; }
.node .logos img { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: #16141c; border: 1px solid var(--line); }
.node-dream { flex: 0 0 auto; border: 0; background: none; padding: 0; }
.node-dream img { width: clamp(120px, 14vw, 180px); height: auto; margin-inline: auto; filter: drop-shadow(0 0 40px rgba(240, 96, 158, .45)); }
.node-dream .display { font-size: 2rem; margin-top: 8px; letter-spacing: .14em; color: #fff; }
.node-machx { border-color: rgba(255, 154, 60, .55); box-shadow: 0 0 60px -10px rgba(255, 154, 60, .35); flex-basis: auto; max-width: 420px; }
.node-machx img { width: 150px; margin-inline: auto; }
.node .via { display: none; }
.node-any .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.node-any .tags span { font: 400 .78rem/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--blue); }
.link { position: relative; flex: 1 1 60px; min-width: 40px; height: 2px; background: var(--line-2); margin: 0 4px; }
.link span {
  position: absolute; left: 50%; top: -30px; transform: translateX(-50%); white-space: nowrap;
  font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.link-dashed { background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 14px); opacity: .9; }
.link-cloud { background: linear-gradient(90deg, rgba(255,255,255,.2), var(--pink)); }
.link-v { flex: none; min-width: 0; width: 6px; height: 84px; margin: 6px 0; border-radius: 6px; background: linear-gradient(180deg, var(--pink), var(--orange)); box-shadow: 0 0 24px rgba(255, 154, 60, .5); }
.link-v span { top: 50%; left: 22px; transform: translateY(-50%); color: var(--yellow); }
.link .pulse { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; animation: travel 3.2s linear infinite; }
.link-v .pulse { left: -1px; top: 0; animation-name: travel-v; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 8px); } }
@keyframes travel-v { from { top: 0; } to { top: calc(100% - 8px); } }
@media (max-width: 860px) {
  .hub { gap: 12px; }
  .hub-row { display: contents; }
  .link { display: none; }
  .node-dream { order: -1; margin-bottom: 8px; }
  .node { flex: none; width: 100%; max-width: 440px; border-left: 3px solid var(--pink); }
  .node-any { border-left-color: var(--blue); }
  .node-machx { border-left-color: var(--orange); }
  .node-dream { border: 0; }
  .node .via { display: block; margin-top: 10px; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
}

.trio { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.card {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 32px);
}
.card h3 { font-size: 1.2rem; margin: 14px 0 10px; }
.card p { color: var(--muted); margin: 0 0 .8em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--pink); }
.card .icon svg { width: 22px; height: 22px; }

/* ---------- feature rows ---------- */
.feature {
  display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; grid-template-columns: 1fr;
  padding-block: clamp(40px, 5vw, 72px);
}
@media (min-width: 960px) {
  .feature { grid-template-columns: 5fr 7fr; }
  .feature.flip { grid-template-columns: 7fr 5fr; }
  .feature.flip .feature-copy { order: 2; }
}
.feature-copy .num { font: 400 .85rem/1 var(--mono); color: var(--pink); letter-spacing: .1em; }
.feature-copy h2, .feature-copy h3.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: .98; margin: 12px 0 18px; letter-spacing: .01em; }
.feature-copy > p { color: var(--muted); font-size: 1.06rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: #d6d4df; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 5px;
  background: rgba(240, 96, 158, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%23f0609e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks.yellow li::before { background-color: rgba(242, 193, 78, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%23f2c14e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ticks.orange li::before { background-color: rgba(255, 154, 60, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%23ff9a3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.shot {
  position: relative; margin: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2); background: #000;
  box-shadow: 0 30px 90px -30px rgba(125, 92, 255, .55), 0 0 0 1px rgba(0, 0, 0, .6);
}
.shot img { width: 100%; }
.shot.glow-pink { box-shadow: 0 30px 90px -30px rgba(240, 96, 158, .55), 0 0 0 1px rgba(0, 0, 0, .6); }
.shot.glow-orange { box-shadow: 0 30px 90px -30px rgba(255, 154, 60, .45), 0 0 0 1px rgba(0, 0, 0, .6); }
figcaption, .caption { font-size: .86rem; color: var(--dim); margin-top: 12px; line-height: 1.5; }
.shot + figcaption { padding-inline: 4px; }
.stack { display: grid; gap: 18px; }
.shot-pair { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .shot-pair { grid-template-columns: 1fr 1fr; } }

.mode-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.mode-chips span { font: 600 .88rem/1 var(--sans); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.mode-chips span:nth-child(1) { color: var(--blue); }
.mode-chips span:nth-child(2) { color: var(--yellow); }
.mode-chips span:nth-child(3) { color: var(--pink); }
.mode-chips span:nth-child(4) { color: #c9b8ff; }

.note {
  margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(242, 193, 78, .3);
  background: rgba(242, 193, 78, .06); color: #e8e3d2; font-size: .93rem;
}
.note strong { color: var(--yellow); }

/* ---------- sandman ---------- */
.sandman { overflow: hidden; isolation: isolate; }
.sandman-bg { position: absolute; inset: -10% -10% auto; height: 80%; z-index: -1; opacity: .55; pointer-events: none; }
.sandman-bg img { width: 100%; height: 100%; object-fit: cover; }
.sandman::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 70% 20%, rgba(240, 96, 158, .16), transparent 70%), linear-gradient(180deg, rgba(5,5,7,.2), var(--bg) 70%);
}
.sandman-title { font-size: clamp(4.6rem, 21vw, 15rem); line-height: .85; margin: 14px 0 10px; background: linear-gradient(100deg, #fff 20%, var(--pink) 55%, var(--yellow) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sandman-sub { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.8rem, 4.4vw, 3.6rem); line-height: 1; margin-bottom: 22px; }
.sandman-grid { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .sandman-grid { grid-template-columns: 7fr 5fr; } }
.sandman-tall { max-width: 460px; margin-inline: auto; width: 100%; }
.sandman-tall img { aspect-ratio: 840 / 1200; object-fit: cover; object-position: top; }

.loop { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 10px; counter-reset: loop; }
.loop li {
  counter-increment: loop; position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(12, 11, 16, .8);
}
.loop li::before {
  content: counter(loop, decimal-leading-zero); font: 400 .9rem/44px var(--mono); text-align: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted);
}
.loop h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.loop p { margin: 0; color: var(--muted); font-size: .96rem; }
.verdict { display: inline-block; font: 400 .8rem/1 var(--mono); letter-spacing: .08em; padding: 5px 8px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.verdict.no { color: var(--pink); border: 1px solid rgba(240, 96, 158, .55); background: rgba(240, 96, 158, .08); }
.verdict.yes { color: var(--green); border: 1px solid rgba(74, 222, 128, .55); background: rgba(74, 222, 128, .08); }
.loop li.is-pass { border-color: rgba(74, 222, 128, .4); box-shadow: 0 0 40px -14px rgba(74, 222, 128, .45); }
.loop li.is-pass::before { color: var(--green); border-color: rgba(74, 222, 128, .5); }

.switches { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 22px 0; }
@media (min-width: 560px) { .switches { grid-template-columns: 1fr 1fr; } }
.switch { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.switch .toggle { flex: none; width: 46px; height: 26px; border-radius: 99px; background: var(--pink); position: relative; margin-top: 2px; }
.switch .toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.switch h3 { font-size: 1rem; margin: 0 0 4px; }
.switch p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- providers table ---------- */
.providers { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 640px) and (max-width: 959px) { .providers { grid-template-columns: 1fr 1fr; } }
.provider { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.provider img, .provider .chip { flex: none; width: 36px; height: 36px; padding: 6px; border-radius: 10px; background: #15131b; border: 1px solid var(--line); }
.provider .chip { display: grid; place-items: center; padding: 0; font: 400 .62rem/1 var(--mono); color: var(--blue); }
.provider h3 { font-size: .98rem; margin: 0 0 3px; }
.provider p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- rest grid ---------- */
.rest { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rest .card h3 { margin-top: 0; font-size: 1.05rem; }
.rest .card p { font-size: .94rem; }

/* ---------- code / get started ---------- */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
.code-card { border: 1px solid var(--line); background: #09080d; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.code-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.code-card header h3 { font-size: 1rem; }
.code-card header p { margin: 2px 0 0; color: var(--dim); font-size: .86rem; }
.code-card .body { padding: 16px 18px 20px; }
.code-card .body > p { color: var(--muted); font-size: .94rem; }
pre.code {
  position: relative; margin: 0 0 12px; padding: 16px 18px; border-radius: 12px; background: #000; border: 1px solid var(--line);
  overflow-x: auto; font-size: .84rem; line-height: 1.7; color: #e9e7f0; tab-size: 2;
}
pre.code code { background: none; border: 0; padding: 0; border-radius: 0; font-size: inherit; color: inherit; }
pre.code .c { color: #7f7b90; }
pre.code .p { color: var(--pink); user-select: none; }
.copy-btn {
  position: absolute; top: 8px; right: 8px; min-height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: #17151e; color: var(--muted); font: 600 .78rem/1 var(--sans); cursor: pointer;
}
.copy-btn:hover { color: #fff; }
.copy-btn.done { color: var(--green); border-color: rgba(74, 222, 128, .5); }
.code-wrap { position: relative; margin: 0 0 12px; }
.code-wrap pre.code { margin: 0; padding-top: 44px; }
.code-wrap .copy-btn { z-index: 1; }

/* ---------- model table (machx) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
table.models { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .94rem; }
table.models th, table.models td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.models thead th { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); background: rgba(255,255,255,.02); position: sticky; top: 0; }
table.models tbody tr:last-child td, table.models tbody tr:last-child th { border-bottom: 0; }
table.models tbody th { font-weight: 400; }
table.models tbody tr:hover { background: rgba(255, 255, 255, .025); }
table.models .m { display: flex; gap: 12px; align-items: flex-start; }
table.models .m img { width: 28px; height: 28px; border-radius: 6px; background: #fff; padding: 2px; flex: none; }
table.models .m .ph { width: 28px; height: 28px; flex: none; border-radius: 6px; border: 1px dashed var(--line-2); }
table.models .m b { display: block; color: #fff; font-weight: 600; }
table.models small { color: var(--dim); font-size: .8rem; display: block; line-height: 1.45; }
table.models .n { font-weight: 800; color: var(--yellow); font-variant-numeric: tabular-nums; }
.fine { color: var(--dim); font-size: .84rem; line-height: 1.6; margin-top: 14px; max-width: 70rem; }

.arch { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.arch div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.arch b { display: block; font-size: .96rem; }
.arch span { color: var(--muted); font-size: .86rem; }
.arch em { font-style: normal; font: 400 .7rem/1 var(--mono); color: var(--yellow); border: 1px solid rgba(242,193,78,.4); padding: 3px 6px; border-radius: 5px; margin-left: 6px; vertical-align: 2px; }

.spec { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec div { background: var(--bg-2); padding: 22px; }
.spec b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; color: var(--yellow); margin-bottom: 8px; letter-spacing: .01em; }
.spec span { color: var(--muted); font-size: .9rem; }

/* ---------- CTA / support ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 30px; border: 1px solid var(--line-2);
  padding: clamp(36px, 6vw, 80px); text-align: center;
  background: radial-gradient(ellipse 70% 90% at 50% 120%, rgba(240, 96, 158, .35), transparent 60%), radial-gradient(ellipse 60% 70% at 0% 0%, rgba(125, 92, 255, .25), transparent 60%), #0a0810;
}
.cta .display { font-size: clamp(2.4rem, 6vw, 5rem); margin: 14px 0 16px; }
.cta .lede { margin: 0 auto 30px; }
.cta .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; margin-top: 0; background: linear-gradient(180deg, transparent, rgba(125, 92, 255, .06)); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font: 600 .76rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer ul a { display: inline-flex; min-height: 36px; align-items: center; color: var(--muted); text-decoration: none; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .about { color: var(--muted); font-size: .94rem; max-width: 26rem; margin-top: 14px; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--dim); font-size: .84rem; }
.legal p { margin: 0; }

/* ---------- inline links in prose ---------- */
.prose-link, .lede a, .feature-copy p a, .card p a, .note a, .fine a, .caption a, figcaption a, .code-card p a {
  color: #fff; text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 3px; text-decoration-thickness: 2px;
}
.prose-link:hover, .lede a:hover, .feature-copy p a:hover, .card p a:hover, .note a:hover, .fine a:hover { color: var(--pink); }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .link .pulse, .scroll-cue { display: none; }
  .project:hover, .btn:hover { transform: none; }
}

@media (max-width: 700px) {
  table.models { min-width: 0; }
  table.models thead { display: none; }
  table.models, table.models tbody, table.models tr, table.models th, table.models td { display: block; width: 100%; }
  table.models tr { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  table.models tbody tr:last-child { border-bottom: 0; }
  table.models th, table.models td { border: 0; padding: 6px 14px; }
  table.models td { position: relative; padding-left: calc(14px + 7.5rem); }
  table.models td::before { content: attr(data-label); position: absolute; left: 14px; top: 8px; width: 7rem; font: 600 .68rem/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
}
