/* The six domain pages in the new site (26 Oct 2026). Loaded after the original page's own styles, so it can
   bring the old engine into the crisp look: the crisp typefaces, glass cards, one primary button, mono labels.
   The opening (.d-hero) is the home page's hero, with this domain's 3D Earth on the right. */

/* the old page sets its own --accent (stone grey) and --line on :root after crisp.css: the new site's win here,
   and .c1-tool below hands the engine its domain hue */
html:root { --accent: #2f7dff; --accent-rgb: 47, 125, 255; --accent-dark: #2f7dff; --accent-ink: #000; --line: rgba(255, 255, 255, 0.09); }
/* the old coriolis.css .btn is square and uppercase; the nav and the opening use the crisp button */
body.c1d .btn { border-radius: var(--radius); text-transform: none; letter-spacing: 0; font: 500 var(--t-sm)/1 var(--font-sans); }
body.c1d .btn.primary { font-weight: 600; }
/* coriolis.css sets body.domain-page > * { position: relative }: the skip link, draft bar and nav keep crisp's */
body.c1d > .skip { position: absolute; z-index: auto; }
body.c1d > .draft-bar { position: sticky; z-index: 60; }
body.c1d > .site-nav { position: sticky; z-index: 50; }
/* and its .wrap is wider with padding top and bottom: the nav, opening and footer use crisp's */
body.c1d .wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--s5); }
body.c1d {
  --font-display: 'Schibsted Grotesk', 'Inter Tight', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI Variable', system-ui, sans-serif;
  background: #000; color: var(--ink); font-family: var(--font-body);
}
body.c1d .site-nav .links a { font-size: var(--t-sm); font-weight: 400; text-transform: none; letter-spacing: 0; }
body.c1d .site-nav .btn { font-size: var(--t-sm); }
body.c1d .site-foot a { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ── the opening ────────────────────────────────────────────────────── */
.d-hero { position: relative; min-height: min(860px, calc(100svh - 61px)); display: flex; align-items: center; padding: var(--s7) 0 var(--s8); overflow: hidden; isolation: isolate; }
.d-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(180deg, transparent, #000); pointer-events: none; z-index: 1; }
.d-earth { position: absolute; inset: 0; z-index: 0; }
/* a soft fade behind the words, so the planet can come close without fighting the headline */
.d-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .82) 0, rgba(0, 0, 0, .6) 32%, rgba(0, 0, 0, 0) 52%); }
.d-earth.e3, .d-earth .e3 { position: absolute; inset: 0; }
.d-grid { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: minmax(0, 600px) 1fr; align-items: end; gap: var(--s6); pointer-events: none; }
.d-grid > * { pointer-events: auto; }
.d-copy .eyebrow { display: flex; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.d-copy .d-dom { display: inline-flex; align-items: center; gap: 8px; color: var(--hue); }
.d-copy .d-dom .ico svg { width: 16px; height: 16px; display: block; }
.d-copy .eyebrow { align-items: center; }
.d-badge > div { font: 500 10px/1 var(--font-mono) !important; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px !important; padding: 5px 10px !important; }
.d-copy h1 { font-size: clamp(42px, 5vw, 78px); line-height: .98; letter-spacing: -.035em; max-width: 13ch; margin-bottom: var(--s5); }
.d-copy h1 em { font-style: normal; background: linear-gradient(100deg, #f2fbff 0%, color-mix(in srgb, var(--hue) 60%, #fff) 45%, var(--hue) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d-copy .lede { font-size: clamp(16px, 1.3vw, 19px); color: #c6d2e8; max-width: 46ch; margin: 0; }
.d-copy .actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }
.d-copy .note { margin: var(--s4) 0 0; color: var(--ink-3); font-size: var(--t-sm); max-width: 46ch; }

.d-zones { justify-self: end; width: min(340px, 100%); padding: var(--s4) var(--s4) var(--s3); }
.d-zones .top { display: flex; justify-content: space-between; margin-bottom: var(--s2); }
.d-zones ol { list-style: none; margin: 0; padding: 0; }
.d-zones li { display: flex; align-items: center; border-top: var(--hair) solid var(--line); }
.d-zones .dz { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 4px; background: none; border: 0; color: var(--ink-2); font: 400 var(--t-sm)/1.3 var(--font-sans); text-align: left; cursor: pointer; transition: color var(--d-fast) var(--ease); }
.d-zones .dz::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--hue); opacity: .55; transition: background var(--d-fast) var(--ease), opacity var(--d-fast) var(--ease); }
.d-zones .dz:hover, .d-zones li.on .dz { color: var(--ink); }
.d-zones li.on .dz::before, .d-zones .dz:hover::before { background: var(--hue); opacity: 1; box-shadow: 0 0 10px var(--hue); }
.d-zones .dz:focus-visible, .d-zones .hv:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.d-zones .hv { flex: none; font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-hi); text-decoration: none; padding: 6px 8px; border: var(--hair) solid rgba(141, 184, 255, .35); border-radius: 999px; }
.d-zones .hv:hover { border-color: var(--accent-hi); }

/* ── the engine heading ─────────────────────────────────────────────── */
.d-enghead { padding: var(--s7) 0 var(--s3); scroll-margin-top: 64px; }
.d-enghead h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.03em; margin: var(--s3) 0 var(--s4); max-width: 22ch; }
.d-enghead p { color: var(--ink-2); max-width: 62ch; margin: 0; }
.d-enghead p a { color: var(--accent-hi); }

/* ── the original engine, restyled ──────────────────────────────────── */
.c1-tool { --accent: var(--hue); --accent-rgb: var(--hue-rgb); --accent-dark: var(--hue); --cyan: var(--hue); max-width: var(--wide) !important; padding-top: var(--s4) !important; padding-bottom: var(--s8) !important; }
.c1-tool h1, .c1-tool h2, .c1-tool h3 { font-family: var(--font-display); text-transform: none; letter-spacing: -.01em; text-wrap: balance; }
.c1-tool h2 { font-size: 17px !important; font-weight: 600; line-height: 1.25; margin: 0; }
.c1-tool h3 { font-size: 15px; margin: 0; }
.c1-tool .uppercase { text-transform: none; }
.c1-tool .text-xs.uppercase, .c1-tool .tracking-wide { font: 500 var(--t-xs)/1.2 var(--font-mono) !important; letter-spacing: var(--track-label) !important; text-transform: uppercase !important; color: var(--ink-3) !important; }
.c1-tool .card-glow, .c1-tool .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .014) 46%, rgba(255, 255, 255, .008)), rgba(10, 13, 18, .72) !important;
  border: var(--hair) solid rgba(255, 255, 255, .11) !important; border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 24px 70px rgba(0, 0, 0, .45) !important;
}
.c1-tool .card-glow::before, .c1-tool .card::before { display: none; }
.c1-tool .zone-pill { border-radius: 999px; min-height: 36px; padding: 0 14px; font: 500 var(--t-sm)/1 var(--font-sans); color: var(--ink-2); border-color: var(--line-2); }
.c1-tool .zone-pill:hover:not(.active) { color: var(--ink); border-color: rgba(255, 255, 255, .3); }
.c1-tool .zone-pill.active { color: var(--ink); background: rgba(var(--hue-rgb), .14); border-color: rgba(var(--hue-rgb), .7); box-shadow: 0 0 18px rgba(var(--hue-rgb), .18); }
.c1-tool .btn-run { background: #2f7dff !important; color: #000 !important; border-radius: 6px; font: 600 var(--t-md)/1 var(--font-sans); min-height: 48px; box-shadow: 0 0 0 1px rgba(141, 184, 255, .35) inset, 0 10px 40px rgba(47, 125, 255, .35); }
.c1-tool .btn-run:hover { background: #8db8ff !important; opacity: 1; }
.c1-tool .btn-action { border-radius: 6px; font: 500 var(--t-sm)/1 var(--font-sans); color: var(--ink); background: rgba(255, 255, 255, .04); border-color: var(--line-2); min-height: 40px; }
.c1-tool .btn-action:hover { border-color: #2f7dff; background: rgba(255, 255, 255, .07); }
.c1-tool .slider-track { height: 3px; background: rgba(255, 255, 255, .12); }
.c1-tool .slider-track::-webkit-slider-thumb { background: #fff; box-shadow: 0 0 0 4px rgba(var(--hue-rgb), .35); width: 16px; height: 16px; }
.c1-tool .slider-track::-moz-range-thumb { background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(var(--hue-rgb), .35); width: 16px; height: 16px; }
.c1-tool .tag { font: 500 10px/1 var(--font-mono); letter-spacing: .08em; border-radius: 999px; padding: 5px 9px; }
.c1-tool [class*="font-bold"][style*="--font-display"], .c1-tool .display { font-family: var(--font-display); }
#origin-modal .card { background: rgba(10, 13, 18, .96) !important; border: var(--hair) solid rgba(255, 255, 255, .14); border-radius: 12px; }
#origin-modal button:last-child { background: #2f7dff !important; }

/* ── phone and tablet: words, then the planet, then the zone list ──── */
@media (max-width: 900px) {
  .d-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: var(--s6) 0 var(--s5); }
  .d-hero::after, .d-hero::before { display: none; }
  .d-grid { display: contents; }
  .d-copy { order: 1; padding: 0 var(--s4); }
  .d-earth { order: 2; position: relative; inset: auto; height: min(96vw, 460px); margin: var(--s3) 0 var(--s3); }
  .d-zones { order: 3; justify-self: auto; width: auto; margin: 0 var(--s4); }
  .d-copy h1 { font-size: clamp(36px, 10vw, 54px); }
}
@media (prefers-reduced-motion: reduce) { .d-zones .dz, .d-zones .dz::before { transition: none; } }
