/* GRAIT Cloud: near-black, white type, quiet panels, one brand blue used sparingly. */
:root {
  --map-land: rgba(255, 255, 255, 0.17);
  --bg: #0a0a0a;
  --ink: #fff;
  --muted: #8f9399;
  --dim: #868a91;
  --card: #141414;
  --card-2: #1c1c1c;
  --line: #24262b;
  --pill-dark: #212121;
  --pill-dark-hover: #2c2c2c;
  --accent: #51aff5;
  --teal: #02c0d8;
  --glow: rgba(0, 141, 228, 0.35);
  --font: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(16px, 4vw, 40px);
  --max: 1240px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --map-land: rgba(0, 57, 102, 0.2);
  /* GRAIT brand: navy ink, blue actions, teal for success, blue-tinted greys */
  --bg: #f6f9fc;
  --ink: #003966;
  --muted: #4d6a85;
  --dim: #536d86;
  --card: #fff;
  --card-2: #eaf2f9;
  --line: #d7e4ef;
  --pill-dark: #e3eef8;
  --pill-dark-hover: #d4e6f5;
  /* brand blue #008de4 reads at 3.4:1 on this ground; one step darker passes AA for text and white-on-blue pills */
  --accent: #0072b8;
  --teal: #007784;
  --glow: rgba(81, 175, 245, 0.32);
  color-scheme: light;
}
:root[data-theme="light"] .pill--light { background: var(--accent); color: #fff; }
:root[data-theme="light"] .pill--light:hover { background: #005f99; }
:root[data-theme="light"] .typed { background-image: linear-gradient(90deg, var(--accent), var(--teal)); }
:root[data-theme="light"] .caret { background: var(--teal); }
:root[data-theme="light"] .mock-term .run { color: #b7791f; }
:root[data-theme="light"] .out-line .del { color: #d64545; }
:root[data-theme="light"] .is-done .q-check::after { border-color: #fff; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; transition: background 300ms, color 300ms; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.logo-light { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
:root[data-theme="light"] .logo-dark { display: none; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background 200ms, transform 200ms var(--ease); }
.pill:active { transform: scale(0.97); }
.pill--light { background: var(--ink); color: var(--bg); }
.pill--light:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.pill--dark { background: var(--pill-dark); color: var(--ink); }
.pill--dark:hover { background: var(--pill-dark-hover); }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 var(--pad); transition: background 300ms; }
.top.is-solid { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mark img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color 200ms, background 200ms; }
.nav a:hover, .nav a.is-on { color: var(--ink); background: var(--pill-dark); }
.top-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pill-dark); }
.icon-btn:hover { background: var(--pill-dark-hover); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .moon, :root[data-theme="light"] .icon-btn .sun { display: none; }
:root[data-theme="light"] .icon-btn .moon { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; justify-items: center; text-align: center; padding: 168px var(--pad) 72px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 62%; width: min(1100px, 140vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--glow), transparent 70%); filter: blur(20px); }
.hero-sky { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); background: color-mix(in srgb, var(--card) 70%, transparent); transition: border-color 200ms, color 200ms; }
.badge:hover { color: var(--ink); border-color: var(--dim); }
.badge-new { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); font-weight: 500; font-size: 13px; }
.hero h1 { margin-top: 28px; font-size: clamp(40px, 6.2vw, 84px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; }
.typed { background: linear-gradient(90deg, var(--ink), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: 0.06em; height: 0.82em; margin-left: 0.04em; vertical-align: -0.06em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { max-width: 600px; margin-top: 24px; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 0; }
.card { position: relative; display: flex; flex-direction: column; min-height: 320px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color 250ms, transform 400ms var(--ease-expo); }
.card:hover { border-color: var(--dim); transform: translateY(-3px); }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c7 { grid-column: span 7; }
.card-art { flex: 1; padding: 22px 22px 0; overflow: hidden; }
.card--video { min-height: 360px; }
.card--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease-expo); }
.card--video:hover video { transform: scale(1.04); }
.card--video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--card) 4%, transparent 42%); pointer-events: none; }
.card-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; margin-top: auto; padding: 18px 22px; text-align: left; font-size: 15px; font-weight: 500; }
.card-foot::before { content: ""; position: absolute; inset: -400px 0 0; }
.explore { flex: none; font-size: 14px; color: var(--muted); transition: color 200ms, transform 300ms var(--ease); }
.card:hover .explore { color: var(--ink); transform: translateX(3px); }
.card.is-seen .card-foot > span:first-child::after { content: "✓"; margin-left: 8px; color: var(--teal); font-size: 13px; }

.mock-chat { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.45; }
.bub { max-width: 86%; padding: 9px 13px; border-radius: 14px; }
.bub.me { align-self: flex-end; background: var(--card-2); }
.bub.ai { align-self: flex-start; color: var(--muted); }
.mock-term { font: 12.5px/1.75 var(--mono); color: var(--muted); }
.mock-term p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-term b { color: var(--accent); font-weight: 500; }
.mock-term i { font-style: normal; color: var(--dim); }
.mock-term .ok { color: var(--teal); }
.mock-term .run { color: #e5b94e; }
.t-bar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--dim); }
.t-dim { color: var(--dim); }
.mock-plan { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.plan-k { font: 13px var(--mono); color: var(--dim); }
.plan-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan-n span { display: grid; gap: 2px; padding: 14px; border-radius: 12px; background: var(--card-2); font-size: 13px; color: var(--muted); }
.plan-n b { font-size: 38px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-n span:first-child b { color: var(--teal); }
.plan-ok { font-size: 14px; color: var(--muted); }

/* ---------- try it ---------- */
.dev { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--pad) 0; }
.kicker { font-size: 14px; color: var(--accent); }
.dev h2 { margin-top: 12px; font-size: clamp(38px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.dev-copy > p:not(.kicker) { margin-top: 20px; font-size: 17px; color: var(--muted); max-width: 440px; }
.dev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mini { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 32px; margin: 36px 0 0; }
.mini div { display: flex; flex-direction: column-reverse; }
.mini dt { font-size: 13px; color: var(--muted); }
.mini dd { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.panel { display: flex; flex-direction: column; height: 560px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12.5px var(--mono); color: var(--muted); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.panel-file { margin-left: auto; color: var(--dim); }
.panel-ask { padding: 14px 16px 0; font-size: 14px; line-height: 1.5; min-height: 4.6em; }
.you { margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: var(--card-2); font-size: 12px; color: var(--muted); }
.panel-ask .typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.panel-code { flex: 1; min-height: 120px; margin: 12px 16px 0; padding: 14px 16px; border-radius: 12px; background: var(--bg); overflow: auto; font: 12.5px/1.7 var(--mono); color: var(--ink); }
.panel-code .k { color: var(--accent); } .panel-code .s { color: #7ee0b8; } .panel-code .c { color: var(--dim); }
:root[data-theme="light"] .panel-code .s { color: #0a7d55; }
.panel-out { max-height: 48%; overflow: auto; padding: 0 16px; font: 12.5px/1.7 var(--mono); }
.panel-out:not(:empty) { padding-top: 12px; }
.out-line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); animation: line-in 300ms var(--ease) both; animation-delay: calc(var(--r, 0) * 45ms); }
.out-line .add { color: var(--teal); } .out-line .del { color: #ff6b6b; }
.out-head { color: var(--ink); margin-bottom: 4px; }
.out-note { color: var(--muted); font-family: var(--font); font-size: 14px; margin: 6px 0; }
.out-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.out-actions .pill { min-height: 34px; font-family: var(--font); }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 16px; border-top: 1px solid var(--line); margin-top: 12px; overflow-x: auto; }
.tabs button { padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: background 200ms, color 200ms; }
.tabs button:hover { color: var(--ink); }
.tabs [aria-selected="true"] { background: var(--pill-dark); color: var(--ink); }
.medal { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 8px 12px; border-radius: 10px; font: 600 14px var(--font); animation: medal-in 700ms var(--ease-expo); }
.medal-coin { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.medal--gold { background: rgba(242, 183, 5, 0.14); color: #f2c94c; } .medal--gold .medal-coin { background: #f2b705; }
.medal--silver { background: rgba(169, 182, 195, 0.14); color: #c4ced8; } .medal--silver .medal-coin { background: #a9b6c3; }
.medal--bronze { background: rgba(200, 121, 63, 0.16); color: #e09a63; } .medal--bronze .medal-coin { background: #c8793f; }
:root[data-theme="light"] .medal--gold { color: #7a5600; } :root[data-theme="light"] .medal--silver { color: #3d4a57; } :root[data-theme="light"] .medal--bronze { color: #7a3f14; }
@keyframes medal-in { from { opacity: 0; transform: scale(0.9) translateY(6px); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--max); margin: clamp(96px, 12vw, 160px) auto 0; padding: 0 var(--pad); }
.stats > div { padding: 8px 32px 0 28px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.big { font-size: clamp(72px, 10vw, 148px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stats p:not(.big) { margin-top: 14px; max-width: 260px; color: var(--muted); }

/* ---------- film ---------- */
.film { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--pad) 0; }
.film-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; }
.film-head h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.025em; line-height: 1.1; max-width: 560px; }
.film-head p { max-width: 400px; color: var(--muted); }
.film-frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.film-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.film-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.25); }
.film-play span { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform 400ms var(--ease-expo); }
.film-play span::after { content: ""; margin-left: 5px; border-left: 20px solid #0a0a0a; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.film-play:hover span { transform: scale(1.08); }
.film-frame.is-playing .film-play { display: none; }

/* ---------- start ---------- */
.start { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--pad) 0; }
.start h2 { text-align: center; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
.start h2 [data-rank-name] { color: var(--accent); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.plan h3 { font-size: 26px; letter-spacing: -0.02em; }
.plan > p { margin-top: 8px; color: var(--muted); }
.plan ul { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: baseline; }
.plan li::before { content: "✓"; color: var(--teal); font-size: 14px; }
.plan .pill { align-self: flex-start; margin-top: auto; }
.plan--pic img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.plan--pic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--card) 30%, transparent); }
:root[data-theme="light"] .plan--pic img { opacity: 0.18; }

/* ---------- footer ---------- */
.foot { max-width: var(--max); margin: clamp(96px, 12vw, 160px) auto 0; padding: 48px var(--pad) 120px; border-top: 1px solid var(--line); }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; }
.foot-logo { height: 40px; width: auto; }
.foot-top > div p { margin-top: 16px; max-width: 280px; color: var(--muted); font-size: 14px; }
.foot nav, .foot-col { display: grid; align-content: start; gap: 10px; font-size: 14px; color: var(--muted); }
.foot h3 { margin-bottom: 4px; font-size: 14px; font-weight: 500; color: var(--ink); }
.credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.credits a:hover { color: var(--ink); }
.foot nav a:hover { color: var(--ink); }
.credits { margin-top: 56px; font-size: 13px; color: var(--dim); }

/* ---------- viewer ---------- */
.viewer { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); overflow: hidden; }
.viewer::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); }
.viewer[open] { animation: viewer-in 420ms var(--ease-expo); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.viewer-in { position: relative; display: grid; grid-template-columns: 1fr 340px; }
.viewer video { width: 100%; height: 100%; aspect-ratio: 1280 / 634; object-fit: cover; object-position: top left; background: #000; }
.viewer-text { display: flex; flex-direction: column; padding: 32px 28px 24px; }
.viewer-n { font: 13px var(--mono); color: var(--dim); }
.viewer h3 { margin-top: 12px; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.viewer-body { margin-top: 14px; color: var(--muted); }
.viewer-nav { display: flex; gap: 8px; margin-top: auto; padding-top: 24px; }
.viewer-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--pill-dark); font-size: 22px; line-height: 1; }

/* ---------- reveal ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 1000ms var(--ease-expo); transition-delay: var(--d, 0ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }

/* ---------- game layer ---------- */
.hud { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--card); color: var(--ink); border: 1px solid var(--line); transition: transform 200ms var(--ease), border-color 200ms; }
.hud:hover { transform: translateY(-2px); border-color: var(--dim); }
.hud.is-bumped { animation: bump 700ms var(--ease-expo); }
@keyframes bump { 30% { transform: scale(1.1); } 100% { transform: none; } }
.hud-ring { --p: 0; width: 40px; height: 40px; transform: rotate(-90deg); }
.hud-ring circle { fill: none; stroke-width: 3.2; }
.hud-track { stroke: var(--line); }
.hud-val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset 900ms var(--ease-expo); }
.hud-lv { transform: rotate(90deg); transform-origin: 18px 18px; fill: currentColor; font: 600 12px var(--font); }
.hud-text { display: grid; text-align: left; line-height: 1.2; }
.hud-rank { font-weight: 500; font-size: 14px; }
.hud-xp { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.quest-log { position: fixed; right: 20px; bottom: 80px; z-index: 41; width: min(400px, calc(100vw - 32px)); max-height: min(72vh, 680px); overflow: auto; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); animation: log-in 360ms var(--ease-expo); }
@keyframes log-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.log-head { display: flex; justify-content: space-between; align-items: center; }
.log-head h2 { font-size: 20px; }
.log-close { width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; background: var(--pill-dark); }
.log-rank { margin-top: 6px; font-size: 15px; color: var(--muted); }
.log-rank b { color: var(--ink); font-weight: 500; }
.log-meter { position: relative; height: 6px; margin-top: 14px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.log-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 900ms var(--ease-expo); }
.log-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.log-xp { color: var(--ink); }
.quests { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 4px; }
.quests li { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.q-check { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--dim); margin-top: 1px; }
.is-done .q-check { border-color: var(--teal); background: var(--teal); }
.is-done .q-check::after { content: ""; position: absolute; left: 5.5px; top: 2px; width: 5px; height: 10px; border: solid #0a0a0a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.q-text { display: grid; font-size: 13px; line-height: 1.4; }
.q-text b { font-size: 14px; font-weight: 500; }
.q-text span:not(.q-parts) { color: var(--muted); }
.q-parts { font-size: 12px; color: var(--accent); }
.q-xp { font: 13px var(--mono); color: var(--dim); }
.is-done .q-xp { color: var(--ink); }
.log-foot { margin-top: 14px; align-items: center; }
.log-reset { font-size: 13px; text-decoration: underline; color: var(--muted); }

.toasts { position: fixed; right: 20px; bottom: 80px; z-index: 42; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { position: relative; width: min(300px, calc(100vw - 40px)); padding: 14px 18px 14px 54px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); opacity: 0; transform: translateY(12px) scale(0.96); transition: opacity 360ms var(--ease), transform 520ms var(--ease-expo); }
.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateY(-8px); }
.toast--level { width: min(340px, calc(100vw - 40px)); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.toast-label { font-size: 12px; color: var(--muted); }
.toast-title { font-size: 17px; font-weight: 500; line-height: 1.2; }
.toast--level .toast-title { font-size: 22px; }
.toast-body { font: 13px var(--mono); color: var(--teal); }
.toast-burst { position: absolute; left: 27px; top: 50%; }
.toast-burst::before { content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); }
.toast--level .toast-burst::before { background: var(--accent); }
.toast-burst i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); opacity: 0; }
.toast-burst i:nth-child(2n) { background: var(--accent); }
.toast.is-in .toast-burst i { animation: burst 900ms var(--ease) forwards; }
.toast-burst i:nth-child(1) { --a: 0deg; } .toast-burst i:nth-child(2) { --a: 36deg; } .toast-burst i:nth-child(3) { --a: 72deg; }
.toast-burst i:nth-child(4) { --a: 108deg; } .toast-burst i:nth-child(5) { --a: 144deg; } .toast-burst i:nth-child(6) { --a: 180deg; }
.toast-burst i:nth-child(7) { --a: 216deg; } .toast-burst i:nth-child(8) { --a: 252deg; } .toast-burst i:nth-child(9) { --a: 288deg; }
.toast-burst i:nth-child(10) { --a: 324deg; }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(36px) scale(0.4); } }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .c4, .c5, .c7 { grid-column: span 6; }
  .bento .card:last-child { grid-column: span 12; }
  .dev { grid-template-columns: 1fr; }
  .viewer-in { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  /* The section links drop to a second row of the bar and scroll sideways if they don't fit. */
  html { scroll-padding-top: 112px; }
  .top { flex-wrap: wrap; justify-content: space-between; row-gap: 0; height: auto; padding-top: 12px; padding-bottom: 6px; }
  .nav { order: 3; flex: 1 0 100%; margin: 6px calc(var(--pad) * -1) 0; padding: 0 48px 0 var(--pad); overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .nav a { flex: none; padding: 6px 12px; font-size: 13px; }
  .top:has(.nav) { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .hero { padding-top: 168px; }
  .hero-sub { font-size: 16px; }
  .bento { gap: 10px; }
  .c4, .c5, .c7, .bento .card:last-child { grid-column: span 12; }
  .card { min-height: 280px; }
  .card--video { min-height: 0; aspect-ratio: 1280 / 760; }
  .panel { height: 540px; }
  .mini { gap: 20px; }
  .t-bar span + span { display: none; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .stats > div, .stats > div:first-child { border-left: 0; padding: 0; }
  .film-head { flex-direction: column; align-items: start; gap: 12px; }
  .film-play span { width: 64px; height: 64px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
  .viewer { max-height: calc(100vh - 24px); overflow: auto; }
  .viewer-text { padding: 20px; }
  .viewer h3 { font-size: 22px; }

  /* The HUD sits in the top bar, just after the logo. */
  .hud { top: 14px; bottom: auto; left: 96px; right: auto; padding: 2px; }
  .hud-text { display: none; }
  .hud-ring { width: 36px; height: 36px; }
  .quest-log { top: 64px; bottom: auto; right: 12px; left: 12px; width: auto; }
  .toasts { top: 64px; bottom: auto; right: 12px; left: 12px; justify-items: stretch; }
  .toast, .toast--level { width: auto; }
  .toast:not(:last-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .toast.is-in .toast-burst i, .hud.is-bumped, .medal, .quest-log, .viewer[open], .out-line { animation: none; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
}

/* ---------- product page crumb ---------- */
.crumb { margin-left: -12px; padding-left: 14px; border-left: 1px solid var(--line); font-weight: 600; font-size: 15px; }

/* ---------- home ---------- */
.home .hero h1 { font-size: clamp(40px, 6vw, 80px); }
.ask { display: flex; align-items: center; gap: 12px; width: min(680px, 100%); margin-top: 36px; padding: 10px 10px 10px 22px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); text-align: left; transition: border-color 200ms, transform 300ms var(--ease-expo); }
.ask:hover { border-color: var(--dim); transform: translateY(-2px); }
.ask-text { flex: 1; min-width: 0; min-height: 3em; display: flex; align-items: center; font-size: 15px; color: var(--muted); line-height: 1.5; }
.ask-text::after { content: ""; flex: none; width: 2px; height: 1.1em; margin-left: 2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.ask-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); }
.ask-go svg { width: 18px; height: 18px; }
:root[data-theme="light"] .ask-go { background: var(--accent); color: #fff; }

.products { max-width: var(--max); margin: 0 auto; padding: 40px var(--pad) 0; }
.line-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.line-head h3 { margin-top: 8px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; }
.line-head p:not(.kicker) { margin-top: 10px; max-width: 560px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 14px; }
.tile { display: grid; gap: 4px; align-content: start; }
.tile-pic { display: block; margin-bottom: 10px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: border-color 250ms; }
.tile-pic video { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 900ms var(--ease-expo); }
.tile:hover .tile-pic, .tile:focus-visible .tile-pic { border-color: var(--dim); }
.tile:hover video { transform: scale(1.05); }
.tile-t { font-weight: 600; font-size: 15px; }
.tile-t::after { content: " ›"; color: var(--dim); transition: color 200ms; }
.tile:hover .tile-t::after { color: var(--accent); }
.tile-d { font-size: 14px; color: var(--muted); }
.feature { position: relative; display: flex; align-items: end; gap: 24px; min-height: 300px; margin-top: 56px; padding: 32px; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; isolation: isolate; color: #fff; }
.feature img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 20, 40, 0.88), rgba(0, 20, 40, 0.15) 70%); }
.feature:hover img { transform: scale(1.03); }
.feature-text { display: grid; gap: 6px; flex: 1; }
.feature .kicker { color: #9fd3fa; }
.feature-t { font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.feature-d { max-width: 520px; color: rgba(255, 255, 255, 0.82); }
.feature-go { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #003966; font-size: 24px; }

.beliefs { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--pad) 0; }
.beliefs h2 { max-width: 900px; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.03em; }
.belief-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.belief-row > div { padding-top: 20px; border-top: 1px solid var(--line); }
.belief-t { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.belief-row p:not(.belief-t) { margin-top: 10px; color: var(--muted); }

.pc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--pad) 0; }
.pc-pic { margin: 0; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.pc-pic img { width: 100%; height: 100%; object-fit: cover; }
.pc h2 { margin-top: 12px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.025em; }
.pc-text > p:not(.kicker) { margin-top: 18px; color: var(--muted); max-width: 500px; }
.ticks { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: "✓"; color: var(--teal); font-size: 14px; }

/* ---------- Press & media ---------- */
.press { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--pad) 0; }
.press-head h2 { margin-top: 10px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.press-head p:not(.kicker) { margin-top: 12px; max-width: 600px; color: var(--muted); }
.press-head a { color: var(--accent); }
.press-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 40px; align-items: start; }
.press-lead { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.press-pic { display: block; background: #fff; }
.press-pic img { display: block; width: 100%; height: 100%; aspect-ratio: 871 / 1078; object-fit: contain; object-position: 50% 50%; transition: transform 700ms var(--ease-expo); }
.press-lead:hover .press-pic img, .press-item:hover .press-thumb img { transform: scale(1.04); }
.press-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 32px); min-width: 0; }
.press-body h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
.press-body > p:not(.press-meta), .press-item p:not(.press-meta) { color: var(--muted); font-size: 15px; }
.press-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--dim); }
.press-tag { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; }
.press blockquote { margin: 4px 0 0; padding-left: 14px; border-left: 2px solid var(--teal); font-weight: 500; }
.press blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 400; color: var(--muted); }
.press h3 a { transition: color 200ms; }
.press h3 a:hover { color: var(--accent); }
.press-more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 15px; }
.press-list { display: grid; gap: 20px; }
.press-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.press-item h3 { margin: 8px 0 6px; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.press-thumb { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.press-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-expo); }
.press-all { justify-self: start; }
.press-thumb--event { display: grid; align-content: end; gap: 2px; padding: 12px; color: #fff; text-align: left;
  background: radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--teal) 70%, transparent), transparent 55%), linear-gradient(150deg, #0b3a66, #06162b); }
.press-thumb--event span { font-size: 12px; font-weight: 600; line-height: 1.2; }
.press-thumb--event b { font-size: 28px; line-height: 1; letter-spacing: -0.02em; }
.press-thumb--event small { font-size: 10px; opacity: 0.75; }

@media (max-width: 1000px) { .press-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .press-lead { grid-template-columns: 1fr; }
  .press-pic img { height: auto; }
  .press-item { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .press-item h3 { font-size: 17px; }
  .press-thumb--event { padding: 8px; }
  .press-thumb--event span { font-size: 9px; }
  .press-thumb--event b { font-size: 20px; }
  .press-thumb--event small { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { .press-pic img, .press-thumb img { transition: none; } }

.company { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--pad) 0; }
.company h2 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.03em; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 40px 0 0; }
.facts div { padding-top: 16px; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.facts a { color: var(--accent); }
.company-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .belief-row, .facts { grid-template-columns: 1fr 1fr; }
  .pc { grid-template-columns: 1fr; }
  .pc-pic { aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  .crumb { display: none; }
  .ask { padding-left: 16px; }
  .ask-text { font-size: 14px; min-height: 4.5em; }
  .line-head { flex-direction: column; align-items: start; }
  .tiles { gap: 20px 10px; }
  .tile-d { display: none; }
  .tile-t { font-size: 14px; }
  .feature { min-height: 260px; padding: 22px; }
  .feature-go { display: none; }
  .belief-row, .facts { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ask-text::after { animation: none; } }

/* ---------- home: numbers ---------- */
.numbers { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--pad) 0; }
.numbers-head h2 { margin-top: 10px; max-width: 760px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; }
.numbers-head > p:not(.kicker) { margin-top: 14px; color: var(--muted); }
.num-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
.num-row > div { padding: 0 24px; border-left: 1px solid var(--line); }
.num-row > div:first-child { padding-left: 0; border-left: 0; }
.num { font-size: clamp(48px, 6vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.num-row p:not(.num) { margin-top: 12px; max-width: 220px; color: var(--muted); }
.num-split { margin-top: 56px; }
.split-bar { display: flex; gap: 4px; height: 14px; }
.split-bar span { flex: var(--w) 1 0; border-radius: 4px; }
.s-aws { background: var(--accent); } .s-az { background: var(--teal); } .s-gcp { background: var(--dim); }
.split-key { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.split-key li { display: flex; align-items: center; gap: 8px; }
.split-key i { width: 10px; height: 10px; border-radius: 3px; }
.split-key b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.split-note { margin-top: 8px; font-size: 14px; color: var(--dim); }
@media (max-width: 1000px) {
  .num-row { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .num-row > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .num-row > div { padding: 0 0 0 16px; }
  .num-row > div:nth-child(odd) { padding-left: 0; }
}

/* Very narrow phones: make room for the HUD between the logo and the bar's buttons. */
@media (max-width: 380px) {
  .top-tools { gap: 6px; }
  .top-tools .pill { padding-inline: 14px; font-size: 13px; }
  .hud { left: 88px; }
  .hero h1, .home .hero h1 { font-size: clamp(32px, 11vw, 40px); }
}
.nw { white-space: nowrap; }
.br-phone { display: none; }
@media (max-width: 760px) { .br-phone { display: inline; } }

/* ---------- spotlight: one registration call, right under the hero ---------- */
.spotlight { max-width: var(--max); margin: 0 auto; padding: 8px var(--pad) 40px; }
.spot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(24px, 4vw, 44px); border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(60% 140% at 100% 50%, var(--glow), transparent 70%), var(--card); }
.spot-text { min-width: 0; max-width: 640px; }
.spot-k { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.spot h2 { margin-top: 14px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.spot-text > p:last-child { margin-top: 12px; color: var(--muted); text-wrap: pretty; }
.spot-go { flex: none; min-height: 48px; padding: 0 24px; font-size: 15px; }
@media (max-width: 760px) {
  .spot { flex-direction: column; align-items: stretch; }
  .spot-go { align-self: flex-start; }
}

/* ---------- Merge: every cloud's services collapse into one chat. The band is navy in both themes. ---------- */
.merge { --k: 1; background: radial-gradient(120% 80% at 50% 55%, #0a5a9c 0%, #003966 55%, #002848 100%); color: #fff; }
.merge-stage { --k: 1; position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 32px; padding: clamp(80px, 10vw, 128px) var(--pad); overflow: hidden; }
.merge.is-live { height: 280vh; }
.merge.is-live .merge-stage { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; padding-block: clamp(84px, 12vh, 120px) clamp(28px, 6vh, 56px); }
.merge-title { display: grid; font-size: clamp(40px, 6.4vw, 96px); line-height: 1; letter-spacing: -0.045em; text-align: center; position: relative; z-index: 2; }
.merge-title > span { grid-area: 1 / 1; }
.m-a { opacity: clamp(0, calc(1 - var(--k) * 2), 1); }
.m-b { opacity: clamp(0, calc(var(--k) * 2 - 1), 1); }

.svc { list-style: none; margin: 0; padding: 0; }
.merge.is-live .svc { position: absolute; inset: 0; pointer-events: none; }
.svc li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 14px; font-weight: 500; white-space: nowrap; }
.svc small { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.merge.is-live .svc li { position: absolute; left: 50%; top: 53%;
  transform: translate(-50%, -50%) translate(calc(var(--x) * var(--sx, 0.86vw) * (1 - var(--k))), calc(var(--y) * 0.76vh * (1 - var(--k)))) scale(calc(1 - var(--k) * 0.7));
  opacity: clamp(0, calc(1.6 - var(--k) * 1.8), 1); will-change: transform; }
.merge:not(.is-live) .svc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; }
.svc i, .oc-plans i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.c-aws > i, i.c-aws { background: #ff9900; } .c-az > i, i.c-az { background: #2f9bf0; } .c-gcp > i, i.c-gcp { background: #34a853; }

.one-card { align-self: center; z-index: 1; width: min(560px, 100%); padding: 20px; border-radius: 22px; background: #fff; color: #003966; box-shadow: 0 30px 80px rgba(0, 20, 40, 0.45); text-align: left;
  transform: scale(calc(0.35 + var(--k) * 0.65)); opacity: clamp(0, calc(var(--k) * 1.6 - 0.5), 1); }
.oc-bar { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #d7e4ef; font-size: 13px; font-weight: 600; }
.oc-bar img { width: 34px; height: auto; }
.oc-ask { margin: 16px 0 0 auto; width: fit-content; max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: #008de4; color: #fff; font-size: 15px; }
.oc-route { margin-top: 14px; font-size: 13px; color: #4d6a85; }
.oc-route b { color: #003966; font-weight: 600; }
.oc-plans { display: grid; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.oc-plans li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #eaf2f9; font-size: 14px; color: #4d6a85; }
.oc-plans b { color: #003966; font-weight: 600; }
.oc-plans span { margin-left: auto; font-family: var(--mono); font-size: 12px; color: #0a7d55; white-space: nowrap; }
.oc-ask, .oc-route, .oc-plans li { transition: opacity 500ms var(--ease), transform 700ms var(--ease-expo); }
.oc-plans li:nth-child(2) { transition-delay: 90ms; } .oc-plans li:nth-child(3) { transition-delay: 180ms; }
.merge-stage:not([data-step="1"]):not([data-step="2"]):not([data-step="3"]) .oc-ask,
.merge-stage:not([data-step="2"]):not([data-step="3"]) .oc-route,
.merge-stage:not([data-step="3"]) .oc-plans li { opacity: 0; transform: translateY(10px); }

.merge-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; margin: 0; padding: 0; z-index: 2; font-size: 15px; }
.merge-steps li { display: flex; align-items: center; gap: 10px; opacity: 0.45; transition: opacity 400ms var(--ease); }
.merge-steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); font: 500 12px var(--mono); transition: background 400ms, color 400ms; }
[data-step="1"] .merge-steps li:nth-child(-n+1), [data-step="2"] .merge-steps li:nth-child(-n+2), [data-step="3"] .merge-steps li { opacity: 1; }
[data-step="1"] .merge-steps li:nth-child(-n+1) span, [data-step="2"] .merge-steps li:nth-child(-n+2) span, [data-step="3"] .merge-steps li span { background: #fff; color: #003966; }

@media (max-width: 760px) {
  .merge.is-live .svc li { top: 52%; font-size: 12px; padding: 6px 10px; --sx: 0.62vw; }
  .svc small { display: none; }
  .one-card { padding: 16px; }
  .oc-plans li { flex-wrap: wrap; }
  .oc-plans span { margin-left: 16px; width: 100%; }
  .merge-steps { gap: 8px 16px; font-size: 13px; }
  .merge-steps span { width: 26px; height: 26px; }
}

/* ---------- Spotlight first, above the hero ---------- */
.home .spotlight { padding-top: 88px; padding-bottom: 0; }
.home .hero { padding-top: 88px; }

/* ---------- Product jumble: clips of different sizes, no captions ---------- */
.jumble { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(110px, 12vw, 160px); gap: 12px; }
.jumble .tile { display: block; position: relative; border-radius: 16px; overflow: hidden; }
.jumble .tile-pic { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: inherit; }
.jumble .tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.j1 { grid-column: 1 / 8; grid-row: 1 / 3; } .j2 { grid-column: 8 / 13; grid-row: 1 / 2; } .j3 { grid-column: 8 / 13; grid-row: 2 / 3; }
.j4 { grid-column: 1 / 5; grid-row: 3 / 5; } .j5 { grid-column: 5 / 9; grid-row: 3 / 4; } .j6 { grid-column: 9 / 13; grid-row: 3 / 4; }
.j7 { grid-column: 5 / 9; grid-row: 4 / 5; } .j8 { grid-column: 9 / 13; grid-row: 4 / 5; }

/* The private-cloud card is drawn: a lit rack face in brand navy, no photograph */
.feature-art { position: absolute; inset: 0; z-index: -2; transition: transform 1.2s var(--ease-expo);
  background:
    radial-gradient(55% 120% at 82% 35%, rgba(0, 141, 228, 0.5), transparent 62%),
    radial-gradient(circle at 12px 11px, rgba(2, 192, 216, 0.9) 1.6px, transparent 2.4px) 0 0 / 120px 22px,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 16px, transparent 16px 22px),
    repeating-linear-gradient(90deg, transparent 0 108px, rgba(0, 10, 20, 0.55) 108px 120px),
    linear-gradient(135deg, #002848, #003966 55%, #0a5a9c); }
.feature:hover .feature-art { transform: scale(1.03); }

/* Private cloud drawing */
.pc-pic { display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 40%, var(--glow), transparent 70%), var(--card); }
.rack-art { width: 88%; height: auto; }
.rack-art .racks rect { stroke: var(--line); stroke-width: 1.5; }
.rack-art .u { fill: var(--bg); stroke: var(--line); }
.rack-art .led { fill: var(--dim); }
.rack-art .led.on { fill: var(--teal); }
.rack-art .vent { stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 3; }
.rack-art .rack-floor path { stroke: var(--line); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .rack-art .led.on:nth-of-type(3n) { animation: led 2.4s steps(2) infinite; }
  .rack-art .led.on:nth-of-type(5n) { animation: led 3.1s steps(2) infinite; }
}
@keyframes led { 50% { fill: var(--dim); } }

/* Plans card for private cloud: same drawn rack face instead of a photograph */
.plan--pc { position: relative; isolation: isolate; overflow: hidden; }
.plan--pc::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.12;
  background:
    radial-gradient(circle at 12px 11px, var(--teal) 1.6px, transparent 2.4px) 0 0 / 120px 22px,
    repeating-linear-gradient(0deg, var(--line) 0 16px, transparent 16px 22px); }

/* ---------- Shorts: vertical films ---------- */
.shorts { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--pad) clamp(40px, 6vw, 72px); display: grid; justify-items: center; gap: clamp(36px, 6vw, 88px); text-align: center; }
.shorts-head h3 { margin-top: 8px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; text-wrap: balance; }
.shorts-head p:not(.kicker) { margin: 10px auto 0; max-width: 520px; color: var(--muted); }
.short { margin: 0; width: min(340px, 100%); position: relative; z-index: 1; }
/* The film grows toward the viewer on hover, and stays big while it plays. */
.short video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; background: #000; border: 1px solid var(--line);
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.5); transform-origin: 50% 50%;
  transition: transform 520ms var(--ease-expo), box-shadow 520ms var(--ease-expo), border-color 300ms; }
.short.is-big video { transform: scale(1.16); border-color: var(--teal); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65), 0 0 0 6px color-mix(in srgb, var(--teal) 18%, transparent); }
@media (hover: hover) { .short:hover video { transform: scale(1.16); border-color: var(--teal); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65), 0 0 0 6px color-mix(in srgb, var(--teal) 18%, transparent); } }
@media (max-width: 760px) { .short.is-big video { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .short video { transition: none; } }

/* ---------- Who it's for ---------- */
.who { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--pad) 0; }
.who h2 { margin-top: 10px; max-width: 760px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.who-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.who-row > div { padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.who-t { font-weight: 600; font-size: 18px; }
.who-row p:not(.who-t) { margin-top: 10px; color: var(--muted); }

/* ---------- Product page: the bottleneck, and the architect on call ---------- */
.compare, .architect { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--pad) 0; }
.compare-head h2 { margin-top: 10px; max-width: 760px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.compare-head > p:not(.kicker) { margin-top: 14px; max-width: 620px; color: var(--muted); }
.compare-table { margin-top: 40px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ct-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; }
.ct-row > span { padding: 16px 20px; border-top: 1px solid var(--line); }
.ct-row:first-child > span { border-top: 0; }
.ct-head { background: var(--card-2); font-size: 14px; font-weight: 600; }
.ct-row > span:nth-child(2) { color: var(--muted); }
.ct-row > span:nth-child(3) { color: var(--ink); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ct-head > span:nth-child(3) { color: var(--accent); }
.ct-row [role="rowheader"] { font-weight: 500; }
.arch-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.arch-row > div { padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.arch-k { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.arch-t { margin-top: 8px; font-weight: 600; font-size: 18px; }
.arch-row p:last-child { margin-top: 10px; color: var(--muted); }

/* ---------- Footer socials ---------- */
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pill-dark); color: var(--muted); transition: color 200ms, background 200ms; }
.socials a:hover { color: var(--ink); background: var(--pill-dark-hover); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Ask GRAIT chat ---------- */
.chat { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 45; display: grid; justify-items: end; gap: 12px; }
.chat-open { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 14px var(--font); box-shadow: 0 12px 30px rgba(0, 20, 40, 0.35); }
:root:not([data-theme="light"]) .chat-open { color: #00243f; }
.chat-open svg { width: 18px; height: 18px; }
.chat.is-open .chat-open span { display: none; }
.chat-panel { order: -1; display: grid; grid-template-rows: auto 1fr auto auto; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-bar p { display: grid; font-size: 15px; } .chat-bar span { font-size: 12px; color: var(--muted); }
.chat-close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
.chat-close:hover { background: var(--pill-dark); color: var(--ink); }
.chat-close svg { width: 18px; height: 18px; }
.chat-log { overflow-y: auto; display: grid; align-content: start; gap: 10px; padding: 16px; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.chat-msg--bot { background: var(--card-2); border-bottom-left-radius: 4px; }
.chat-msg--me { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
:root:not([data-theme="light"]) .chat-msg--me { color: #00243f; }
.chat-msg a { color: var(--accent); font-weight: 500; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-quick button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink); text-align: left; }
.chat-quick button:hover { border-color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 14px var(--font); }
.chat-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chat-form button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; }
.chat-form button svg { width: 18px; height: 18px; }
/* On the product page the game badge moves up to make room for the chat button */
@media (min-width: 761px) { .hud { bottom: 84px; } .toasts { bottom: 150px; } }

@media (max-width: 1000px) {
  .who-row, .arch-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .home .spotlight { padding-top: 120px; }
  .home .hero { padding-top: 64px; }
  .jumble { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; gap: 8px; }
  .jumble .tile { grid-column: auto; grid-row: auto; }
  .jumble .j1 { grid-column: 1 / -1; grid-row: span 2; }
  .jumble .j8 { grid-column: 1 / -1; }
  .ct-row { grid-template-columns: 1fr 1fr; }
  .ct-row [role="rowheader"], .ct-head > span:first-child { grid-column: 1 / -1; padding-bottom: 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
  .ct-row > span:nth-child(2), .ct-row > span:nth-child(3) { border-top: 0; }
  .ct-head > span:first-child { display: none; }
  .chat-open { min-height: 44px; padding: 0 14px; }
  .chat-open span { display: none; }
  .chat-panel { height: min(520px, calc(100svh - 110px)); }
}

/* ---------- pre-registration popup (register.js) ---------- */
.rg-lock { overflow: hidden; }
.rg { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 24px; background: transparent; color: var(--ink); overflow: visible; }
.rg::backdrop { background: rgba(0, 12, 24, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rg[open] { animation: rg-in 420ms var(--ease-expo); }
.rg[open]::backdrop { animation: rg-fade 300ms ease-out; }
@keyframes rg-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
@keyframes rg-fade { from { opacity: 0; } }
.rg-card { position: relative; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5); }
.rg-band { height: 6px; background: linear-gradient(90deg, #1e88f0, #00c9d4); }
.rg-x { position: absolute; top: 18px; right: 18px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--card-2); color: var(--ink); cursor: pointer; transition: background 200ms; }
.rg-x:hover { background: var(--pill-dark-hover); }
.rg-x svg { width: 18px; height: 18px; }
.rg-form, .rg-done { padding: clamp(24px, 4vw, 40px); }
.rg-head { display: grid; gap: 12px; padding-right: 48px; margin-bottom: 28px; }
.rg-k { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.rg-head h2, .rg-done h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.rg-head > p:last-child { color: var(--muted); max-width: 52ch; }
.rg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.rg-f { display: grid; gap: 7px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.rg-f[hidden] { display: none; }
.rg-wide { grid-column: 1 / -1; }
.rg-f label, .rg-f legend { font-size: 14px; font-weight: 600; }
.rg-f b { color: var(--accent); font-weight: 600; }
.rg-f i { font-style: normal; font-weight: 400; color: var(--dim); font-size: 13px; }
.rg-legend-note { font-weight: 400; color: var(--dim); font-size: 13px; margin-left: 6px; }
.rg input:not([type="checkbox"]), .rg select { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 15px var(--font); transition: border-color 200ms, box-shadow 200ms; }
.rg input::placeholder { color: var(--dim); font-weight: 400; }
.rg input:hover, .rg select:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.rg input:focus, .rg select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.rg-sel { position: relative; }
.rg-sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.rg select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.rg select:invalid { color: var(--dim); font-weight: 400; }
.rg option { color: var(--ink); background: var(--card); }
.rg-hint { font-size: 13px; color: var(--dim); }
.rg-err { font-size: 13px; color: #ff7a7a; min-height: 0; }
.rg-err:empty { display: none; }
.is-bad input:not([type="checkbox"]), .is-bad select { border-color: #ff7a7a; }
.rg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rg-chip { position: relative; cursor: pointer; }
.rg-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rg-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 500; transition: background 200ms, border-color 200ms, color 200ms; }
.rg-chip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--dim)); }
.rg-chip.c0 { --dot: #ff9900; } .rg-chip.c1 { --dot: #3b9cff; } .rg-chip.c2 { --dot: #34a853; }
.rg-chip:hover span { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.rg-chip input:checked + span { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); border-color: var(--accent); }
.rg-chip input:checked + span::after { content: "✓"; font-size: 12px; color: var(--accent); }
.rg-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rg-cloud-other { margin-top: 4px; }
.rg-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.rg-fine { flex: 1 1 260px; font-size: 13px; color: var(--dim); }
.rg-fine b { color: var(--accent); }
.rg-go { min-width: 168px; justify-content: center; }
.rg-go:disabled { opacity: 0.7; cursor: progress; }
.rg-fail { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, #ff7a7a 12%, transparent); color: var(--ink); font-size: 14px; }
.rg-fail a { color: var(--accent); }
.rg-done { display: grid; justify-items: center; gap: 14px; text-align: center; padding-block: clamp(48px, 8vw, 72px); }
.rg-done[hidden] { display: none; }
.rg-done h2:focus { outline: none; }
.rg-done p { color: var(--muted); max-width: 44ch; }
.rg-done b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.rg-done .pill { margin-top: 10px; }
.rg-tick { width: 64px; height: 64px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rg-tick circle { stroke: var(--teal); stroke-dasharray: 151; stroke-dashoffset: 151; animation: rg-draw 700ms var(--ease) forwards; }
.rg-tick path { stroke: var(--accent); stroke-dasharray: 40; stroke-dashoffset: 40; animation: rg-draw 450ms 450ms var(--ease) forwards; }
@keyframes rg-draw { to { stroke-dashoffset: 0; } }
:root[data-theme="light"] .rg-err { color: #c62828; }
:root[data-theme="light"] .is-bad input:not([type="checkbox"]), :root[data-theme="light"] .is-bad select { border-color: #c62828; }
:root[data-theme="light"] .rg::backdrop { background: rgba(0, 57, 102, 0.35); }
@media (max-width: 640px) {
  .rg { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .rg-card { max-height: 92dvh; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .rg-grid { grid-template-columns: 1fr; gap: 16px; }
  .rg-form, .rg-done { padding: 24px max(18px, env(safe-area-inset-left, 0px)) 24px max(18px, env(safe-area-inset-right, 0px)); }
  .rg-x { top: 14px; right: 14px; }
  .rg-go { width: 100%; }
  .rg[open] { animation: rg-up 380ms var(--ease-expo); }
  @keyframes rg-up { from { transform: translateY(40px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .rg[open], .rg[open]::backdrop, .rg-tick circle, .rg-tick path { animation: none; stroke-dashoffset: 0; } }

/* ---------- region map in the numbers section ---------- */
.num-map { margin-top: 56px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.map-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 20px; }
.map-head h3 { font-size: 20px; letter-spacing: -0.01em; }
.map-head p { color: var(--muted); font-size: 14px; max-width: 62ch; }
.map-head p span { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.map-body { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.map { position: relative; width: 100%; aspect-ratio: 1000 / 377.8; max-width: 100%; }
.map-land { position: absolute; inset: 0; background: var(--map-land);
  -webkit-mask: url(assets/world-dots.svg) center / 100% 100% no-repeat; mask: url(assets/world-dots.svg) center / 100% 100% no-repeat; }
.map-pins { position: absolute; inset: 0; }
.pin { --s: calc(var(--d) * var(--ps, 1)); position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  background: color-mix(in srgb, var(--pc) 32%, transparent); border: 1.5px solid var(--pc); cursor: default; transition: transform 200ms var(--ease); }
.pin::before { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--pc); }
.pin.is-top::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--pc); animation: pin-ping 2.6s var(--ease) infinite; }
.pin:nth-child(2)::after { animation-delay: 0.8s; } .pin:nth-child(3)::after { animation-delay: 1.6s; }
@keyframes pin-ping { 0% { transform: scale(1); opacity: 0.8; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
.pin:hover { transform: scale(1.15); z-index: 99 !important; }
.map-pins .pin[data-tip]:hover::after { content: attr(data-tip); position: absolute; inset: auto; left: 50%; bottom: calc(100% + 10px); width: max-content; transform: translateX(-50%);
  padding: 6px 10px; border: 0; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; white-space: nowrap; animation: none; opacity: 1; }
.pin-aws { --pc: var(--accent); } .pin-azure { --pc: var(--teal); } .pin-gcp { --pc: #8a94a3; }
:root[data-theme="light"] .pin-gcp { --pc: #6b7f93; }
.map-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.map-side-t { font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.map-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.map-top li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.map-top li:last-child { border-bottom: 0; }
.map-top i, .map-key i { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); }
.mt-place { display: grid; font-size: 15px; font-weight: 600; min-width: 0; }
.mt-place small { font: 400 12px var(--mono); color: var(--dim); }
.map-top b { font-weight: 600; font-variant-numeric: tabular-nums; }
.map-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.map-key span { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 860px) { .map-body { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .map { --ps: 0.55; } .pin::before { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; } }
@media (prefers-reduced-motion: reduce) { .pin.is-top::after { animation: none; opacity: 0; } }
