/* ==========================================================================
   Prometheus Rising Studios — design system
   Palette: Obsidian / Night / Surface / Bone / Ash / Ember (+ per-product --p)
   Type: Sora (display) · Hanken Grotesk (body) · IBM Plex Mono (data)
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #07090c;
  --bg-2: #0b1016;
  --surface: #10161d;
  --surface-2: #151c24;
  --surface-3: #1b232d;
  --line: rgba(214, 226, 240, 0.09);
  --line-strong: rgba(214, 226, 240, 0.17);

  --text: #f2eee8;
  --text-2: #b4bcc5;
  --text-3: #8a94a0;

  --ember: #f2a15b;
  --ember-hot: #ffd3a1;
  --ember-deep: #c7662c;
  --ember-glow: rgba(242, 161, 91, 0.35);
  --sky: #7db4ff;

  --ok: #4fd1a1;
  --warn: #f5b94a;
  --bad: #ff7a6b;

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-hero: clamp(2.6rem, 1.55rem + 4.4vw, 5.25rem);
  --fs-h1: clamp(2.3rem, 1.5rem + 3.2vw, 4.25rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.2vw, 3.15rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  --fs-lede: clamp(1.06rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 148px);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--line);

  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); font-weight: 400; letter-spacing: -0.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.012em; line-height: 1.25; font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.005em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure, blockquote { margin: 0; }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--ember); color: #1a0f06; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--night { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.grid { display: grid; gap: var(--gap, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split--wide-right { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.split--top { align-items: start; }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .split, .split--wide-left, .split--wide-right { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Type devices ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-2);
  margin: 0;
}
.eyebrow--ember { color: var(--ember); }
.eyebrow--rule::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.display { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.035em; }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--text-2); max-width: 36em; }
.small { font-size: var(--fs-small); }
.xs { font-size: var(--fs-xs); }
.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.01em; }
.muted { color: var(--text-3); }
.text-ember { color: var(--ember); }
.text-bone { color: var(--text); }
.section-head { max-width: 760px; }
.section-head > * + * { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* Vertical spaced word stack: PEOPLE / TECHNOLOGY / POSSIBILITY */
.wordstack { display: flex; flex-direction: column; gap: 0.55em; font-family: var(--font-display); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.36em; text-transform: uppercase; color: var(--text); list-style: none; }
.wordstack::after { content: ""; width: 34px; height: 1px; background: var(--text-2); margin-top: 0.9em; opacity: 0.7; }
.wordstack--ember li:last-child { color: var(--ember); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--text); --btn-fg: #0a0d11; --btn-bd: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 6px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.005em; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover { box-shadow: 0 10px 30px -10px var(--ember-glow), 0 0 0 1px rgba(255, 211, 161, 0.4); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: rgba(242, 161, 91, 0.6); background: rgba(242, 161, 91, 0.06); }
.btn--pill { border-radius: 999px; min-height: 42px; padding: 10px 18px; font-size: 0.875rem; }
.btn--ember { --btn-bg: var(--ember); --btn-fg: #1b0f05; --btn-bd: var(--ember); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 0.8125rem; }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 0.9375rem;
  padding-block: 10px 8px; border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s, color 0.2s;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.link-arrow:hover { border-color: var(--ember); }
.link-arrow:hover svg { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- Panels / cards ---------- */
.panel {
  position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px);
}
.panel--flush { padding: 0; overflow: hidden; }
.panel--raised { box-shadow: var(--shadow-lg); }
.panel--glass { background: linear-gradient(180deg, rgba(20, 27, 35, 0.72), rgba(12, 17, 23, 0.72)); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.card-link { transition: border-color 0.3s, transform 0.3s var(--ease), background-color 0.3s; }
.card-link:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3, .panel-head h4 { font-size: 1rem; font-weight: 500; letter-spacing: -0.005em; }
.panel-head .sub { font-size: var(--fs-xs); color: var(--text-3); margin-top: 3px; }
.panel-head .btn[aria-hidden="true"] { pointer-events: none; }
.panel-title { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--text); letter-spacing: -0.005em; line-height: 1.3; margin: 0; }
.shot-caption { margin-top: 12px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.example-tag { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.panel-body { padding: 18px 20px; }

.icon-ring { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.06), transparent 70%); color: var(--text); flex: none; }
.icon-ring svg { width: 22px; height: 22px; }
.icon-ring--sm { width: 40px; height: 40px; }
.icon-ring--sm svg { width: 18px; height: 18px; }
.icon { width: 20px; height: 20px; flex: none; }

/* Setting row: icon-in-circle + label (concept "In production across every setting we operate") */
.settings-row { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 16px; }
.settings-row li { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--text); font-size: var(--fs-small); }
@media (max-width: 860px) { .settings-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 480px) { .settings-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Checklist */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--text-2); }
.checklist svg { width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
.checklist--ember svg { color: var(--ember); }

/* Stats */
.stat-value { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); color: var(--text); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 0.45em; letter-spacing: -0.01em; margin-left: 4px; font-weight: 400; }
.stat-label { margin-top: 10px; color: var(--text-2); font-size: var(--fs-small); }
.stat-row { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding-block: 22px; border-top: 1px solid var(--line); }
.stat-row:last-child { border-bottom: 1px solid var(--line); }

/* Status */
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--ok)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--ok)) 22%, transparent); }
.status--ok { --dot: var(--ok); color: var(--ok); }
.status--warn { --dot: var(--warn); color: var(--warn); }
.status--bad { --dot: var(--bad); color: var(--bad); }
.status--idle { --dot: var(--text-3); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
.badge--live { color: var(--ok); border-color: rgba(79, 209, 161, 0.35); background: rgba(79, 209, 161, 0.08); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
.badge--ember { color: var(--ember); border-color: rgba(242, 161, 91, 0.4); background: rgba(242, 161, 91, 0.08); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .badge--live::before { animation: none; } }

/* Data table (mock product UI) */
.dtable { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.dtable th { text-align: left; font-weight: 500; font-size: 0.75rem; color: var(--text-3); padding: 10px 20px; border-bottom: 1px solid var(--line); letter-spacing: 0.02em; }
.dtable td { padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--text); }
.dtable tr:last-child td { border-bottom: 0; }
.dtable td.num, .dtable th.num { text-align: right; font-variant-numeric: tabular-nums; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; font-weight: 500; }
.metric { padding: 18px 20px; }
.metric .label { font-size: 0.8125rem; color: var(--text-2); }
.metric .value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 300; color: var(--text); letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.metric .delta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ok); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-grid > * { border-bottom: 1px solid var(--line); }
.metric-grid > *:nth-child(odd) { border-right: 1px solid var(--line); }
.metric-grid > *:nth-last-child(-n + 2) { border-bottom: 0; }

/* Bar chart (CSS) */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.bars span { flex: 1; min-width: 4px; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #a9c8ff, #5b8fe0); opacity: 0.9; transform-origin: bottom; }
.bars--ember span { background: linear-gradient(180deg, var(--ember-hot), var(--ember-deep)); }
.is-in .bars span, .bars.is-in span { animation: grow 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@media (prefers-reduced-motion: reduce) { .is-in .bars span, .bars.is-in span { animation: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bar-axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-3); margin-top: 8px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(var(--header-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); transition: border-color 0.3s; border-bottom: 1px solid transparent; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: transparent; transition: background-color 0.3s; }
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--line); }
.site-header.is-scrolled::before, .site-header.is-open::before { background: rgba(7, 9, 12, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.brand img { height: 46px; width: auto; }
.brand-word { display: flex; flex-direction: column; font-family: var(--font-display); line-height: 1; }
.brand-word b { font-weight: 500; font-size: 0.9rem; letter-spacing: 0.2em; }
.brand-word span { font-weight: 300; font-size: 0.6rem; letter-spacing: 0.72em; color: var(--text-2); margin-top: 6px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a { font-size: 0.9rem; color: var(--text-2); position: relative; padding-block: 8px; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ember); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; place-items: center; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform 0.3s var(--ease), background-color 0.2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease); }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.is-open .menu-toggle span { background: transparent; }
.is-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }
@media (max-width: 1080px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: grid; }
  .mobile-nav { display: block; position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; background: rgba(7, 9, 12, 0.97); backdrop-filter: blur(16px); padding: 28px var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s; }
  .is-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav a:not(.btn) { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--line); letter-spacing: -0.02em; }
  .mobile-nav a[aria-current="page"] { color: var(--ember); }
  .mobile-nav .btn { display: flex; margin-top: 28px; width: 100%; font-size: 1rem; padding: 16px; }
}
@media (max-width: 420px) { .site-header .brand-word { display: none; } .site-header .brand { min-width: 44px; min-height: 44px; } }
body.nav-locked { overflow: hidden; }

/* ---------- Hero shells ---------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(56px, 8vw, 110px)); padding-bottom: clamp(64px, 8vw, 120px); overflow: hidden; overflow: clip; isolation: isolate; }
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(7, 9, 12, 0.86) 38%, rgba(7, 9, 12, 0.2) 75%, rgba(7, 9, 12, 0.45) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.page-hero__media--canvas::after { background: linear-gradient(90deg, rgba(7, 9, 12, 0.75) 0%, rgba(7, 9, 12, 0.35) 35%, transparent 60%), linear-gradient(0deg, var(--bg) 0%, transparent 12%); }
.page-hero h1 { max-width: 13em; }
.page-hero .lede { margin-top: 24px; }
.page-hero .actions { margin-top: 36px; }
.page-hero .eyebrow { margin-bottom: 22px; }

/* Ember canvas host */
.ember-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Scene frames (SVG scenes, screenshots) */
.scene { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-2); }
.scene svg { width: 100%; height: 100%; }
.shot { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5); background: #0d1218; }
.shot img { width: 100%; }
.shot--glow::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--p, var(--ember)) 35%, transparent), transparent); filter: blur(30px); }
.shot-wrap { position: relative; isolation: isolate; }
.shot-wrap::before { content: ""; position: absolute; inset: 8% 6% -6% 6%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--p, var(--ember)) 40%, transparent), transparent 75%); filter: blur(40px); opacity: 0.8; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; background: #151b22; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a323c; }
.shot-bar em { margin-left: 10px; font-style: normal; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-3); }

/* ---------- Product marks & cards ---------- */
.pmark { width: var(--size, 44px); height: var(--size, 44px); object-fit: contain; flex: none; }
.pmark--fallback { display: grid; place-items: center; border-radius: 28%; background: linear-gradient(135deg, var(--p, var(--ember)), color-mix(in srgb, var(--p, var(--ember)) 45%, #000)); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: calc(var(--size, 44px) * 0.42); }
.pcard {
  --p: var(--ember);
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--surface);
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.pcard::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 90%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--p) 34%, transparent), transparent); opacity: 0; transition: opacity 0.45s var(--ease); }
.pcard:hover, .pcard:focus-within { border-color: color-mix(in srgb, var(--p) 45%, transparent); transform: translateY(-4px); }
.pcard:hover::before, .pcard:focus-within::before { opacity: 1; }
.pcard__label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--p) 70%, var(--text)); }
.pcard h3 { font-size: 1.2rem; }
.pcard p:not(.pcard__label) { font-size: 0.9375rem; color: var(--text-2); }
.pcard .link-arrow { margin-top: auto; align-self: flex-start; font-size: 0.875rem; }
.pcard a.cover { position: absolute; inset: 0; z-index: 1; }
.pcard a.cover:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.badge--dev { color: var(--text-2); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.badge--early { color: var(--sky); border-color: rgba(125, 180, 255, 0.35); background: rgba(125, 180, 255, 0.07); }

/* ---------- Tabs ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.02); width: fit-content; max-width: 100%; }
.tabs__list [role="tab"] { border: 0; background: transparent; color: var(--text-2); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: background-color 0.2s, color 0.2s; }
.tabs__list [role="tab"]:hover { color: var(--text); }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--text); color: var(--bg); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fadeUp 0.45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tabs__panel { animation: none; } }
@media (max-width: 640px) { .tabs__list { border-radius: 16px; } .tabs__list [role="tab"] { flex: 1 1 auto; } }

/* ---------- Accordion (details) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--text); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: translateY(-3px) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq .answer { padding: 0 0 26px; max-width: 46em; color: var(--text-2); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field label { font-size: 0.8125rem; color: var(--text-2); font-weight: 500; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); color: var(--text); transition: border-color 0.2s, background-color 0.2s; }
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ember); background: rgba(242, 161, 91, 0.04); box-shadow: 0 0 0 3px rgba(242, 161, 91, 0.18); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.select option { background: var(--surface); color: var(--text); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-note { font-size: var(--fs-xs); color: var(--text-3); }
.form-status { font-size: 0.875rem; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); }
.form-status[hidden], .form-status:empty { display: none; }
.form-status--ok { border-color: rgba(79, 209, 161, 0.4); color: var(--ok); background: rgba(79, 209, 161, 0.06); }
.form-status--info { border-color: rgba(242, 161, 91, 0.4); color: var(--ember-hot); background: rgba(242, 161, 91, 0.06); }
.field-error { font-size: var(--fs-xs); color: var(--bad); }

/* Range slider */
.range { width: 100%; appearance: none; height: 28px; border-radius: 4px; background: linear-gradient(90deg, var(--ember) var(--fill, 50%), var(--surface-3) var(--fill, 50%)) center / 100% 4px no-repeat; cursor: pointer; }
.range::-moz-range-track { background: transparent; }
.range:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 6px; }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 6px rgba(242, 161, 91, 0.4); }
.range::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--text); border: 3px solid var(--ember); cursor: pointer; box-shadow: 0 0 0 4px rgba(242, 161, 91, 0.18); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 3px solid var(--ember); cursor: pointer; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(242, 161, 91, 0.4); }

/* ---------- Ember thread (section divider signature) ---------- */
.thread { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, rgba(242, 161, 91, 0.0) 10%, rgba(242, 161, 91, 0.7) 50%, rgba(242, 161, 91, 0.0) 90%, transparent); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; left: 50%; bottom: -55%; width: min(1100px, 140vw); aspect-ratio: 2 / 1; transform: translateX(-50%); z-index: -1; background: radial-gradient(closest-side, rgba(242, 161, 91, 0.26), rgba(199, 102, 44, 0.08) 55%, transparent); }
.cta-band .inner { text-align: center; max-width: 780px; margin-inline: auto; }
.cta-band .actions { justify-content: center; margin-top: 34px; }
.cta-band .lede { margin: 20px auto 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 0.7fr)) 1.2fr; gap: 40px; }
.footer-tag { margin-top: 26px; font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-2); line-height: 1.9; }
.footer-col h2 { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; color: var(--text); letter-spacing: 0; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 0.875rem; color: var(--text-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-news p { font-size: 0.875rem; margin-bottom: 16px; }
.news-form { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: rgba(255, 255, 255, 0.02); }
.news-form:focus-within { border-color: var(--ember); }
.news-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 14px; color: var(--text); }
.news-form input:focus { outline: none; }
.news-form button { flex: none; width: 48px; border: 0; background: var(--text); color: var(--bg); cursor: pointer; display: grid; place-items: center; }
.news-form button svg { width: 18px; height: 18px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: clamp(48px, 6vw, 72px); padding-block: 26px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--text-3); }
.footer-base nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-base a:hover { color: var(--text); }
@media (max-width: 760px) {
  .footer-col ul { gap: 0; }
  .footer-col a, .footer-base nav a { display: inline-flex; align-items: center; min-height: 40px; }
  .footer-base nav { gap: 4px 24px; }
}
@media (max-width: 1080px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand, .footer-news { grid-column: span 3; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand, .footer-news { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
[data-reveal] { transform: translateY(14px); transition: transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; } .mt-xl { margin-top: clamp(48px, 6vw, 80px); }
.center { text-align: center; }
.flex { display: flex; } .items-center { align-items: center; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .gap-s { gap: 10px; } .gap-m { gap: 20px; }
.hide-mobile { } @media (max-width: 860px) { .hide-mobile { display: none !important; } }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Toast (form hand-off confirmation) ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80; max-width: min(560px, calc(100vw - 32px)); padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); font-size: 0.9375rem; box-shadow: var(--shadow-lg); }
.toast--ok { border-color: rgba(79, 209, 161, 0.45); }
.toast--info { border-color: rgba(242, 161, 91, 0.45); }
.toast[hidden] { display: none; }

/* ---------- Owner inbox (artifact preview only; shown to the owner and editors) ---------- */
.inbox-btn { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(242, 161, 91, 0.55); background: rgba(12, 16, 22, 0.92); color: var(--text); font-family: var(--font-mono); font-size: 0.8125rem; cursor: pointer; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.inbox-btn:hover { background: rgba(242, 161, 91, 0.12); }
.inbox { width: min(760px, calc(100vw - 32px)); max-height: min(80vh, 900px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-2); color: var(--text-2); overflow: auto; }
.inbox::backdrop { background: rgba(3, 5, 8, 0.7); backdrop-filter: blur(4px); }
.inbox__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.inbox__head h2 { font-size: 1.35rem; margin-top: 4px; }
.inbox__kicker { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); }
.inbox__tools { display: flex; align-items: center; gap: 8px; }
.inbox__close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.inbox__note { padding: 0 22px; margin-top: 14px; font-size: 0.875rem; }
.inbox__note:empty { display: none; }
.inbox__csv { display: block; width: calc(100% - 44px); margin: 12px 22px 0; min-height: 120px; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: 0.75rem; }
.inbox__list { list-style: none; padding: 8px 22px 22px; }
.inbox__item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.inbox__item:last-child { border-bottom: 0; }
.inbox__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.inbox__item dl { display: grid; gap: 6px; margin-top: 12px; }
.inbox__item dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 0.9rem; }
.inbox__item dt { color: var(--text-3); }
.inbox__item dd { margin: 0; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) { .inbox__item dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
