/* R-01 · r-01.dev. One stylesheet for the home page (the arcade adds css/arcade.css).
   Dark on purpose: the brand is an OLED-black robot with red LEDs. */

@font-face { font-family: "Quattro"; src: url("/fonts/quattro-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Quattro"; src: url("/fonts/quattro-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Quattro"; src: url("/fonts/quattro-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Mono"; src: url("/fonts/mono-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mono"; src: url("/fonts/mono-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --black: #050304; --panel: #110b0c; --panel2: #1a1112; --line: rgba(244, 237, 228, .12); --line2: rgba(244, 237, 228, .2);
  --ink: #f4ede4; --ink2: #fff8ef; --muted: #a2948c; --dim: #6f625c;
  --red: #d7263d; --red2: #ff5964; --pink: #f2bac3; --sel: #5c111b; --ok: #6ee7a8;
  --body: "Quattro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--black); color: var(--ink); font: 400 1.04rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--ink2); text-underline-offset: 3px; text-decoration-color: rgba(255, 89, 100, .6); }
a:hover { color: var(--red2); }
img, video { max-width: 100%; }
::selection { background: var(--sel); color: var(--ink2); }
:focus-visible { outline: 2px solid var(--red2); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(1180px, 100% - 64px); } }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--red2); color: var(--black); font-weight: 700; }
.skip:focus { top: 12px; }
.dots { background-image: radial-gradient(circle, rgba(244, 237, 228, .085) 1.3px, transparent 1.8px); background-size: 22px 22px; }

.led { --c: var(--ok); display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 8px var(--c); animation: led 2.2s ease-out infinite; }
.led--red { --c: var(--red2); }
.led--amber { --c: #ffb547; }
@keyframes led { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent), 0 0 8px var(--c); } 70%, 100% { box-shadow: 0 0 0 7px transparent, 0 0 8px var(--c); } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(5, 3, 4, .72); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .head { width: 38px; height: auto; }
.logo .wm { height: 20px; width: auto; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 13px; border-radius: 999px; color: var(--muted); text-decoration: none; font: 400 .9rem/1 var(--mono); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink2); background: rgba(244, 237, 228, .07); }
.nav-play { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; text-decoration: none; background: var(--red); color: #fff; font: 700 .86rem/1 var(--mono); box-shadow: 0 0 24px rgba(215, 38, 61, .45); }
.nav-play:hover { background: var(--red2); color: #fff; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-play { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; border: 1px solid var(--red2); background: var(--red); color: #fff; text-decoration: none; cursor: pointer;
  font: 700 .98rem/1 var(--mono); box-shadow: 0 0 30px rgba(215, 38, 61, .35); transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); background: var(--red2); color: #fff; box-shadow: 0 0 40px rgba(255, 89, 100, .5); }
.btn--ghost { background: transparent; border-color: var(--line2); color: var(--ink2); box-shadow: none; }
.btn--ghost:hover { background: rgba(244, 237, 228, .06); border-color: var(--ink); color: var(--ink2); box-shadow: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); text-decoration: none; cursor: pointer;
  font: 700 .84rem/1 var(--mono); transition: background .2s, border-color .2s, color .2s; }
.pill:hover { border-color: var(--red2); color: var(--red2); }
.pill--go { background: var(--ink2); border-color: var(--ink2); color: var(--black); }
.pill--go:hover { background: var(--red2); border-color: var(--red2); color: #fff; }
.pill--soon { cursor: default; color: var(--muted); border-style: dashed; font-weight: 400; }
.pill--soon:hover { color: var(--muted); border-color: var(--line2); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: max(680px, 100svh); display: flex; align-items: center; padding: 104px 0 64px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(circle, rgba(244, 237, 228, .09) 1.3px, transparent 1.8px); background-size: 22px 22px;
  -webkit-mask: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 80%); mask: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 80%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -180px; top: 50%; margin-top: -450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 38, 61, .28), rgba(215, 38, 61, .06) 45%, transparent 70%); pointer-events: none; }
/* The reel, playing silently behind the hero like a landing-page video. Darkened on the left (headline),
   lighter on the right, faded into black at the bottom. */
.hero-bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: #050304; }
.hero-loop { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; opacity: .55; filter: blur(1.5px) saturate(1.1) contrast(1.05); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, #050304 0%, rgba(5, 3, 4, .94) 34%, rgba(5, 3, 4, .6) 58%, rgba(5, 3, 4, .38) 100%),
  linear-gradient(180deg, rgba(5, 3, 4, .55) 0%, transparent 22%, transparent 70%, #050304 100%),
  radial-gradient(ellipse at 75% 50%, rgba(215, 38, 61, .18), transparent 60%); }
@media (max-width: 960px) {
  .hero-loop { opacity: .5; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(5, 3, 4, .55) 0%, rgba(5, 3, 4, .78) 45%, #050304 100%); }
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.kick { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font: 400 .8rem/1 var(--mono); color: var(--muted); }
.hero h1 { margin: 0; font: 700 clamp(2.6rem, 6.4vw, 5.4rem)/1 var(--body); letter-spacing: -.03em; color: var(--ink2); text-wrap: balance; }
.hero h1 em, .title em { font-style: italic; font-weight: 400; color: var(--red2); letter-spacing: -.03em; text-shadow: 0 0 40px rgba(255, 89, 100, .35); }
.lede { max-width: 46ch; margin: 28px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: #cfc3b9; }
.lede b { color: var(--ink2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-bot { position: relative; display: grid; justify-items: center; gap: 18px; }
.marquee { width: min(88%, 380px); height: auto; filter: drop-shadow(0 0 18px rgba(255, 248, 239, .25)); }
.bot--hero { width: min(84%, 340px); margin-top: -6px; }
.bot--hero .r-bubble { left: 74%; bottom: 74%; }
@media (max-width: 960px) { .bot--hero .r-bubble { left: 50%; right: auto; bottom: 96%; transform: translateX(-50%) translateY(8px); max-width: min(260px, 80vw); } .bot--hero .r-bubble.show { transform: translateX(-50%); } }

.gate { width: min(100%, 440px); padding: 18px 18px 16px; border-radius: 20px; background: linear-gradient(180deg, rgba(34, 21, 23, .94), rgba(16, 10, 11, .96));
  border: 1px solid var(--line2); box-shadow: 0 0 0 1px rgba(215, 38, 61, .28), 0 30px 60px -20px rgba(0, 0, 0, .8); font-family: var(--mono); }
.gate-head { display: flex; align-items: center; gap: 9px; margin: 0; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red2); }
.gate-count { margin-left: auto; letter-spacing: .04em; text-transform: none; color: var(--dim); }
.gate-q { margin: 14px 0 6px; font-size: .86rem; color: var(--muted); }
.gate-cmd { margin: 0; padding: 12px 14px; border-radius: 12px; background: #070405; color: var(--pink); font-size: .92rem; line-height: 1.45; min-height: 3.1em; }
.gate-cmd::before { content: "$ "; color: var(--dim); }
.gate-cmd.risky { box-shadow: inset 0 0 0 1px rgba(255, 89, 100, .5); }
.gate-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.gb { padding: 11px 8px; border-radius: 12px; border: 1px solid var(--line2); background: #1c1213; color: var(--ink2); cursor: pointer; font: 700 .86rem/1 var(--mono); transition: background .15s, border-color .15s, transform .1s; }
.gb:hover { border-color: var(--ink); }
.gb:active { transform: translateY(1px); }
.gb--yes { background: var(--red); border-color: var(--red2); }
.gb--yes:hover { background: var(--red2); }
.gb:disabled { opacity: .45; cursor: default; }
.gate-note { margin: 12px 0 0; font-size: .74rem; color: var(--dim); }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-bot { margin-top: 12px; }
  .marquee { width: min(70%, 300px); }
  .bot--hero { width: min(46%, 190px); }
}

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); background: #0a0607; }
.ticker-track { display: inline-flex; padding: 14px 0; animation: marquee 70s linear infinite; font: 700 .8rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red2); text-shadow: 0 0 10px rgba(255, 89, 100, .55); }
.ticker span { padding: 0 24px; }
.ticker span::after { content: "■"; margin-left: 48px; color: var(--dim); text-shadow: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font: 700 .74rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--red2); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.title { margin: 18px 0 0; max-width: 18ch; font: 700 clamp(2.1rem, 5vw, 3.9rem)/1.02 var(--body); letter-spacing: -.028em; color: var(--ink2); text-wrap: balance; }
.section-lede { max-width: 56ch; margin: 22px 0 0; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 9px; font: 400 .74rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.code { font: 700 .72rem/1 var(--mono); letter-spacing: .1em; padding: 6px 9px; border-radius: 6px; background: var(--red); color: #fff; }
.feats { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.feats li { position: relative; padding-left: 24px; color: #d4c8be; }
.feats li::before { content: "▸"; position: absolute; left: 2px; color: var(--red2); }
kbd { font: 700 .78em/1 var(--mono); padding: 3px 7px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; color: var(--ink2); }

/* ---------- Agents ---------- */
.agent { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(44px, 6vw, 72px); }
.agent h3 { margin: 18px 0 0; font: 700 clamp(2rem, 4vw, 3.2rem)/1 var(--body); letter-spacing: -.04em; color: var(--ink2); }
.agent h3 small { font: italic 400 .5em/1 var(--body); color: var(--red2); letter-spacing: 0; margin-left: 8px; }
.agent p.desc { margin: 16px 0 0; color: #d4c8be; max-width: 58ch; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; }
.platforms span { font: 700 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red2); margin-right: 6px; }
.platforms b { padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255, 89, 100, .5); font: 700 .84rem/1 var(--mono); color: var(--ink2); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.agent--small { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.agent--small .reel { order: -1; }
.agent--small h3 small { color: #8ea2ff; }
@media (max-width: 860px) {
  .agent, .agent--small { grid-template-columns: 1fr; }
  .agent .reel { max-width: 320px; }
}

/* ---------- Games ---------- */
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(44px, 6vw, 64px); }
.game { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, transform .2s; }
.game:hover { border-color: rgba(255, 89, 100, .45); transform: translateY(-3px); }
.game-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.game-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.game:hover .game-art img { transform: scale(1.04); }
.game-art .px { image-rendering: pixelated; }
.game-art--p62 { background: linear-gradient(180deg, #8fd0ff, #fff1d2); display: grid; place-items: center; }
.game-art--p62 img { width: 82%; height: auto; object-fit: contain; }
.game-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 18px; }
.game h3 { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; font: 700 1.5rem/1.1 var(--body); letter-spacing: -.03em; color: var(--ink2); }
.game h3 img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; }
.game .genre { margin: 6px 0 0; font: 400 .78rem/1.4 var(--mono); color: var(--red2); }
.game p.pitch { margin: 12px 0 0; color: #cfc3b9; font-size: .96rem; }
.game .links { margin-top: auto; padding-top: 18px; }
.game--wide { grid-column: span 2; }
.game--wide .game-art { aspect-ratio: 32 / 10; }
.arcade-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 24px 26px; border-radius: var(--radius);
  border: 1px solid rgba(255, 89, 100, .4); background: radial-gradient(ellipse at 0% 50%, rgba(215, 38, 61, .25), transparent 60%), var(--panel); }
.arcade-banner b { display: block; font: 700 1.4rem/1.2 var(--body); color: var(--ink2); letter-spacing: -.02em; }
.arcade-banner span { color: var(--muted); }
.fine { margin: 14px 0 0; font-size: .78rem; color: var(--dim); }
@media (max-width: 960px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .games { grid-template-columns: 1fr; } .game--wide { grid-column: auto; } .game--wide .game-art { aspect-ratio: 16 / 10; } }

/* ---------- Screening room ---------- */
.reels { display: grid; gap: 18px; margin-top: 52px; align-items: start; }
.reels--top { grid-template-columns: 1.5fr 1fr; }
.reels--tall { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 18px; }
.reel { margin: 0; min-width: 0; }
.screen { position: relative; overflow: hidden; border-radius: 18px; background: #000; border: 1px solid rgba(255, 89, 100, .3); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9); }
.reel--wide .screen { aspect-ratio: 16 / 9; }
.reel--tall .screen { aspect-ratio: 9 / 16; }
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.play { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; border: 0; padding: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 3, 4, .6)); }
.play[hidden] { display: none; }
.play span { display: grid; place-items: center; width: 70px; height: 70px; padding-left: 5px; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.4rem;
  box-shadow: 0 0 0 10px rgba(215, 38, 61, .22), 0 0 40px rgba(255, 89, 100, .5); transition: transform .2s; }
.play:hover span { transform: scale(1.08); }
.reel--tall .play span { width: 52px; height: 52px; font-size: 1.1rem; }
.reel figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-top: 10px; }
.reel figcaption b { font: 700 .98rem/1.3 var(--body); color: var(--ink2); }
.reel figcaption span { font: 400 .7rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1000px) { .reels--tall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .reels--top { grid-template-columns: 1fr; } .reels--tall { grid-template-columns: 1fr 1fr; } }

/* ---------- Principles ---------- */
.rules { list-style: none; margin: clamp(40px, 6vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rules li { padding: 26px 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.rules .n { font: 700 .82rem/1 var(--mono); color: var(--red2); letter-spacing: .1em; }
.rules h3 { margin: 12px 0 8px; font: 700 1.4rem/1.15 var(--body); letter-spacing: -.02em; color: var(--ink2); }
.rules p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); margin-top: clamp(36px, 5vw, 56px); align-items: start; }
.studio p { margin: 0 0 1em; color: #cfc3b9; }
.studio p.big { font: 400 clamp(1.3rem, 2.2vw, 1.75rem)/1.35 var(--body); letter-spacing: -.015em; color: var(--ink2); }
.does { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.does li { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.does b { display: block; font: 700 1.15rem/1.2 var(--body); color: var(--ink2); }
.does span { display: block; margin-top: 4px; color: var(--muted); font-size: .95rem; }
.stats { margin: clamp(44px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { padding: 22px 20px; display: flex; flex-direction: column-reverse; gap: 6px; background: var(--panel); }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font: 400 .72rem/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0; font: 700 clamp(2.2rem, 4.6vw, 3.4rem)/1 var(--mono); letter-spacing: -.04em; color: var(--ink2); }
.stats div:nth-child(4) dd { color: var(--red2); text-shadow: 0 0 20px rgba(255, 89, 100, .5); }
.formerly { margin: 22px 0 0; font: 400 .8rem/1.5 var(--mono); color: var(--dim); }
@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div + div { border-left: 0; }
  .stats div { border-top: 1px solid var(--line); }
  .stats div:nth-child(-n+2) { border-top: 0; }
  .stats div:nth-child(even) { border-left: 1px solid var(--line); }
  .stats div:last-child { grid-column: span 2; border-left: 0; }
}

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact::after { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; left: -200px; bottom: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(215, 38, 61, .22), transparent 65%); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.mail-link { font: 700 clamp(2rem, 7vw, 4.6rem)/1 var(--mono); letter-spacing: -.05em; color: var(--ink2); text-decoration: none; overflow-wrap: anywhere; text-shadow: 0 0 40px rgba(255, 89, 100, .25); }
.mail-link:hover { color: var(--red2); }
.copy { cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); font: 700 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.copy:hover { border-color: var(--red2); color: var(--red2); }
.reasons { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.reasons li { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: .94rem; color: #d4c8be; }
.reasons span { color: var(--red2); font-family: var(--mono); margin-right: 6px; }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-brand .logo .head { width: 56px; }
.foot-brand .logo .wm { height: 26px; }
.foot-brand p { margin: 16px 0 0; max-width: 36ch; }
.footer nav { display: grid; align-content: start; justify-items: start; gap: 8px; }
.footer h3 { margin: 0 0 4px; font: 700 .72rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--red2); }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink2); }
.term-open { cursor: pointer; padding: 0; border: 0; background: none; color: var(--ok); font: 400 .86rem/1.4 var(--mono); text-align: left; }
.term-open:hover { text-decoration: underline; }
.disclaimer { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--dim); }
.copyright { margin: 8px 0 0; font: 400 .76rem/1.4 var(--mono); color: var(--dim); }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; } }

/* ---------- Console ---------- */
.term { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 4, .65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.term[hidden] { display: none; }
.term-win { width: min(720px, 100%); height: min(460px, 80vh); display: flex; flex-direction: column; background: #070405; color: var(--ink); border: 1px solid rgba(255, 89, 100, .4); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); overflow: hidden; font: 400 .9rem/1.55 var(--mono); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; background: var(--panel2); color: var(--muted); font-size: .78rem; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.term-bar i:nth-child(2) { background: #ffb547; }
.term-bar i:nth-child(3) { background: var(--ok); }
.term-bar span { margin-left: 8px; flex: 1; }
.term-bar button { cursor: pointer; border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; padding: 0 4px; }
.term-out { flex: 1; overflow-y: auto; padding: 14px 16px 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-out .cmd { color: var(--red2); }
.term-out .err { color: #ff8a8a; }
.term-in { display: flex; gap: 10px; align-items: center; padding: 10px 16px 14px; }
.term-in label { color: var(--ok); }
.term-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; caret-color: var(--ok); }

/* ---------- Company-first additions ---------- */
.logo .mark { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line2); }
.foot-brand .logo .mark { width: 44px; height: 44px; border-radius: 11px; }

/* hero: the studio at a glance */
.board { justify-self: end; width: min(100%, 400px); padding: 26px 24px 20px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(26, 17, 18, .78), rgba(10, 6, 7, .86)); border: 1px solid var(--line2);
  box-shadow: 0 0 0 1px rgba(215, 38, 61, .25), 0 30px 70px -20px rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.board .marquee { display: block; width: 100%; margin: 0 auto 22px; }
.board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; border-radius: 14px; overflow: hidden; background: var(--line); }
.board-grid div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 14px 16px; background: #0b0708; }
.board-grid dt { font: 400 .7rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.board-grid dd { margin: 0; font: 700 2.2rem/1 var(--mono); letter-spacing: -.04em; color: var(--ink2); }
.board-grid div:last-child dd { color: var(--red2); text-shadow: 0 0 18px rgba(255, 89, 100, .55); }
.board-rule { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font: 400 .8rem/1.4 var(--mono); color: #d4c8be; }
@media (max-width: 960px) { .board { justify-self: stretch; width: auto; } .board .marquee { width: min(70%, 280px); } }

/* what we do */
.practices { list-style: none; margin: clamp(40px, 6vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.practices li { position: relative; padding: 28px 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.practices li::after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(215, 38, 61, .2), transparent 70%); }
.practices .n { font: 700 .82rem/1 var(--mono); color: var(--red2); letter-spacing: .1em; }
.practices h3 { margin: 14px 0 10px; font: 700 1.7rem/1.1 var(--body); letter-spacing: -.03em; color: var(--ink2); }
.practices p { margin: 0; color: #cfc3b9; }
.practices .ex { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line2); font: 400 .78rem/1.4 var(--mono); color: var(--muted); }
@media (max-width: 900px) { .practices { grid-template-columns: 1fr; } }

/* work */
.sub { margin: clamp(48px, 6vw, 72px) 0 0; font: 700 .76rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#work .agent { margin-top: 28px; }

/* how we work: the rules beside the rule-01 toy */
.how { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 48px); margin-top: clamp(40px, 6vw, 60px); align-items: start; }
.how .rules { margin: 0; grid-template-columns: 1fr; }
.demo { position: sticky; top: 90px; display: grid; justify-items: center; gap: 14px; padding: 26px 22px 22px; border-radius: 26px; border: 1px solid var(--line2);
  background: radial-gradient(ellipse at 50% 20%, rgba(215, 38, 61, .22), transparent 60%), var(--panel); }
.demo-kick { margin: 0; font: 700 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red2); }
.bot--demo { width: min(62%, 220px); margin-top: 12px; }
.bot--demo .r-bubble { left: 72%; bottom: 70%; }
.demo .gate { width: 100%; }
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; }
  .demo { position: static; }
  .bot--demo .r-bubble { left: 50%; right: auto; bottom: 96%; transform: translateX(-50%) translateY(8px); max-width: min(260px, 80vw); }
  .bot--demo .r-bubble.show { transform: translateX(-50%); }
}
