/* Layout: slim sticky header; full-bleed studio stage where the robot follows the pointer (brand line top left, live
   readout top right, mode icons on the floor edge); then launch band, collection, robot facts, dark footer.
   Brand: Retech's light blue and heavy italic display type. */
:root {
  --bg: #f5f7f9; --surface: #ffffff; --stage: #dfe4ea; --ink: #0f1419; --muted: #5b6672; --line: rgba(15, 20, 25, 0.1);
  --accent: #0a7fb8; --accent-ink: #ffffff; --grid: #8f99a5;
  --panel: rgba(255, 255, 255, 0.55); --panel-line: rgba(15, 20, 25, 0.08);
  --night: #0f1419; --night-ink: #e8edf2; --night-muted: #8e99a5; --night-line: rgba(232, 237, 242, 0.1);
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1419; --surface: #161c23; --stage: #1b2129; --ink: #e9eef3; --muted: #8f9aa6; --line: rgba(233, 238, 243, 0.1);
    --accent: #46c2f2; --accent-ink: #04131b; --grid: #4d5866;
    --panel: rgba(18, 23, 29, 0.5); --panel-line: rgba(233, 238, 243, 0.09); --night: #0a0e12;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1419; --surface: #161c23; --stage: #1b2129; --ink: #e9eef3; --muted: #8f9aa6; --line: rgba(233, 238, 243, 0.1);
  --accent: #46c2f2; --accent-ink: #04131b; --grid: #4d5866;
  --panel: rgba(18, 23, 29, 0.5); --panel-line: rgba(233, 238, 243, 0.09); --night: #0a0e12;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gut { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 1200px; margin: 0 auto; }
.mark { font-family: var(--f-display); font-style: italic; font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 22px; line-height: 1; }
.mark span { color: var(--accent); }
.eyebrow { font: 500 11px/1.3 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; transition: transform 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.head .inner { height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav a:not(.btn) { color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { height: 36px; padding: 0 16px; font-size: 13px; }
.theme { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme:hover { border-color: var(--ink); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun { display: none; }
.is-dark .theme .sun { display: inline; }
.is-dark .theme .moon { display: none; }
.stage { position: relative; height: clamp(540px, 82vh, 900px); overflow: hidden; background: var(--stage); }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
/* no graphics chip (home.js): a still picture of the robot instead of the 3D, and no 3D controls */
.stage .poster { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 60% 70%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.stage.no3d .poster { display: block; }
.stage.no3d #view, .stage.no3d .readout, .stage.no3d .modes { display: none; }
@media (max-width: 640px) {   /* phones: the robot fills the lower part of the stage, under the text */
  .stage .poster { top: 44%; height: 56%; object-fit: cover; object-position: 46% 62%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent, #000 22%); }
}
.ui { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding-block: 34px 20px; }
.ui > .inner { width: 100%; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.copy { max-width: 520px; pointer-events: auto; }
h1 { margin: 12px 0 14px; font-family: var(--f-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-variation-settings: "wdth" 112;
  font-size: clamp(40px, 6vw, 80px); line-height: 0.92; letter-spacing: -0.015em; text-wrap: balance; }
h1 em { color: var(--accent); }
.lede { margin: 0 0 22px; color: var(--muted); font-size: 16px; max-width: 40ch; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.readout { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.ro-phase { font-size: 13px; font-weight: 500; }
.ro-hint { margin-top: 4px; font-size: 12px; color: var(--muted); }
.joints { pointer-events: auto; margin-top: 10px; display: inline-block; text-align: left; font-size: 11px; }
.joints summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; float: right; padding: 5px 10px;
  border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-line); color: var(--muted);
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.joints summary::-webkit-details-marker { display: none; }
.joints summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.joints[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.joints table { clear: both; margin-top: 8px; border-collapse: separate; border-spacing: 0; padding: 6px 4px 8px;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 14px;
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  font: 400 11px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; box-shadow: 0 8px 30px rgba(15, 20, 25, 0.08); }
.joints table { table-layout: fixed; width: 236px; }
.joints th { font-weight: 500; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 2px 8px 6px; text-align: center; }
.joints th:first-child { width: 30px; }
.joints td { padding: 7px 8px; }
.joints td:first-child { font: italic 800 11px/1 var(--f-display); color: var(--accent); text-align: left; padding-right: 0; }
.joints .bar { position: relative; height: 3px; background: var(--line); border-radius: 3px; }
.joints .bar::after { content: ""; position: absolute; left: 50%; top: -2px; width: 1px; height: 7px; background: var(--muted); opacity: 0.4; }
.joints .bar i { position: absolute; top: -3px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 2px var(--panel); transition: left 0.08s linear; }
.modes { pointer-events: auto; align-self: center; display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--panel);
  border: 1px solid var(--panel-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modes button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: italic 800 14px/1 var(--f-display); }
.modes button:hover { color: var(--ink); }
.modes button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.loader { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); display: grid; gap: 10px; justify-items: center; font: 500 12px/1 var(--f-mono); color: var(--muted); pointer-events: none; }
.track { width: 220px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: var(--accent); }
.sec { padding-block: 72px; }
.sec h2 { margin: 10px 0 0; font-family: var(--f-display); font-style: italic; font-weight: 900; font-stretch: 112%; font-variation-settings: "wdth" 112; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; }
.launch .inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 44px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.launch .big { font-family: var(--f-display); font-style: italic; font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: clamp(56px, 8vw, 112px); line-height: 0.9; margin: 10px 0 0; }
.launch .big span { color: var(--accent); }
.specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.specs li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.specs li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); flex: none; }
.launch .btn { margin-top: 26px; }
.coll-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.coll-head a { color: var(--accent); font-weight: 600; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { display: grid; gap: 40px; align-content: space-between; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.15s, transform 0.15s; min-height: 170px; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .k { font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card .n { font-family: var(--f-display); font-weight: 800; font-size: 21px; line-height: 1.15; }
.card .go { color: var(--accent); font-size: 13px; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 30px 0 0; border-top: 1px solid var(--line); padding-top: 30px; }
.facts div { display: grid; gap: 8px; align-content: start; }
.facts dt { order: 2; color: var(--muted); font-size: 14px; }
.facts dd { order: 1; margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.facts dd small { font-size: 0.45em; font-weight: 700; color: var(--muted); margin-left: 4px; font-style: normal; }
.foot { background: var(--night); color: var(--night-ink); padding-block: 56px 28px; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot .mark span { color: #46c2f2; }
.foot p { color: var(--night-muted); margin: 12px 0 0; font-size: 14px; }
.foot h3 { margin: 0 0 14px; font: 500 11px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--night-muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.foot a:hover { color: #46c2f2; }
.foot .legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--night-line); color: var(--night-muted); font-size: 13px; }
@media (max-width: 860px) {
  .launch .inner { grid-template-columns: 1fr; padding: 28px; }
  .cards, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .cols > :first-child { grid-column: 1 / -1; }
}
.top { flex-wrap: nowrap; }
.copy { flex: 1 1 auto; min-width: 0; }
.readout { flex: none; }
@media (max-width: 900px) {
  .readout { position: absolute; left: max(20px, env(safe-area-inset-left, 0px)); bottom: 22px; text-align: left; }
  .ro-hint { display: none; }
  .joints summary { float: none; }
  .joints table { position: absolute; bottom: 100%; left: 0; margin: 0 0 8px; }
}
@media (max-width: 640px) { .stage { height: clamp(560px, 88vh, 780px); } .sec { padding-block: 52px; } }
@media (prefers-reduced-motion: reduce) { .btn, .card { transition: none; } }
