/* Risk Ward (OE-298). Its own look, not opuselixir.com's: white and cool grey, navy for trust and information,
   ward green for safety and action (ISO 3864: blue informs, green means a safe condition). Video first: every idea
   is a title and the explainer that explains it. Palette PROPOSED until the owner approves. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --navy: #0b2545;       /* headings, brand, footer */
  --accent: #0e7c66;     /* ward green: links, buttons (5.1:1 on white) */
  --accent-ink: #ffffff;
  --accent-hover: #0b6654;
  --tint: #e6f4f0;
  --screen: #0b1726;     /* players stay dark, as on every video platform */
  --screen-2: #13294a;
  --poster: #4fd1b0;     /* line art on dark screens */
  --foot: #0b2545;
  --foot-text: #c9d6e3;
  --head-bg: rgba(255, 255, 255, .9);
  --focus: #2563eb;
  --err: #b42318;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 12px;
  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1220; --bg-alt: #111a2b; --text: #e6edf5; --muted: #9fb0c3; --line: #1f2a3d; --navy: #e6edf5;
  --accent: #4fd1b0; --accent-ink: #062018; --accent-hover: #7adfc6; --tint: #12302a; --screen: #050a14; --screen-2: #0f2036;
  --foot: #070d18; --head-bg: rgba(11, 18, 32, .9); --focus: #93c5fd; --err: #ff8a8a; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; }
.eyebrow, .tag { font: 700 .74rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }
.accent { color: var(--accent); }
.badge { display: inline-block; font: 700 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--tint); color: var(--accent); padding: 6px 8px; border-radius: 6px; margin-right: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 46px; padding: 0 20px; border-radius: 10px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost, .btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover, .btn-ghost-dark:hover { border-color: var(--navy); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .92rem; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--head-bg); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.mark { width: 32px; height: 32px; color: var(--navy); }
.mark-eye { fill: var(--accent); }
.wordmark { font: 800 1.2rem/1 var(--sans); letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--text); text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 500; font-size: .96rem; }
.site-nav a:not(.btn):hover { background: var(--bg-alt); }
.site-nav a[aria-current]:not(.btn) { color: var(--accent); }
.site-nav .btn { margin-left: 8px; background: var(--accent); color: var(--accent-ink); }
.head-tools { display: flex; align-items: center; order: 3; }
.theme-toggle, .nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--navy); cursor: pointer; }
.theme-toggle:hover { background: var(--bg-alt); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .nav-toggle { display: grid; margin-right: -10px; }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; } .bars::after { top: 7px; }
  [aria-expanded="true"] .bars { background: transparent; }
  [aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  [aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); padding: 8px var(--pad) 20px; border-bottom: 1px solid var(--line); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin: 16px 0 0; justify-content: center; }
}

/* Hero: the promise, then the video that explains it */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--bg-alt), var(--bg) 70%); }
.hero-copy { text-align: center; max-width: 860px; margin: 0 auto clamp(28px, 4vw, 44px); }
.hero-copy .lede { margin: 0 auto 1.6em; }
.hero-copy .cta-row { justify-content: center; }
.hero .vslot-hero { max-width: 1040px; margin: 0 auto; }

/* Sections */
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band-alt { background: var(--bg-alt); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; margin-bottom: 24px; }
.sec-head h2 { margin: 0; flex: 1; }
.split-v { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 860px) { .split-v { grid-template-columns: 1fr; } }

/* Video slots: idea title first, then the explainer */
.vslot { margin: 0; display: flex; flex-direction: column; }
.vslot figcaption { display: grid; gap: 2px; margin-bottom: 12px; }
.vslot .q { font-weight: 700; font-size: 1.08rem; line-height: 1.3; color: var(--navy); }
.vs-screen { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: radial-gradient(120% 100% at 50% 0, var(--screen-2), var(--screen)); }
.vslot-hero .vs-screen { border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(11, 37, 69, .45); }
.vs-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vs-play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: var(--poster); }
.vs-play:disabled { cursor: default; }
.vs-poster { position: absolute; inset: 0; display: grid; place-items: center; }
.vs-icon { width: 30%; max-width: 110px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vs-poster .ward { position: absolute; inset: 6%; width: 88%; height: 88%; }
.vs-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vs-play:not(:disabled):hover .vs-thumb { transform: scale(1.03); }
.vs-btn { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .25s var(--ease); }
.vs-btn svg { width: 26px; height: 26px; margin-left: 3px; }
.vs-play:disabled .vs-btn { display: none; }
.vs-play:not(:disabled):hover .vs-btn { transform: scale(1.08); }
.vslot-hero .vs-btn { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.vs-badge { position: absolute; right: 10px; bottom: 10px; font: 700 .66rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .6); padding: 6px 8px; border-radius: 6px; }
.vrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.vrow.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .vrow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .vrow, .vrow.two { grid-template-columns: 1fr; } }

/* Hero poster motion (the ward): five areas light in turn; paused off screen; off for reduced motion */
.ward .stop-a { stop-color: var(--poster); }
.ward .rings { stroke: var(--poster); }
.ward .core path { fill: var(--screen); stroke: var(--poster); }
.ward .core circle { fill: #fff; }
.ward .sweep { transform-origin: 220px 220px; animation: sweep 9s linear infinite; }
.ward .node circle { fill: var(--screen); stroke: var(--poster); stroke-width: 2.5; animation: ping 9s linear infinite; }
.ward .node text { fill: #9fb0c3; font: 600 15px var(--sans); animation: label 9s linear infinite; }
.ward .n2 * { animation-delay: 1.8s; } .ward .n3 * { animation-delay: 3.6s; } .ward .n4 * { animation-delay: 5.4s; } .ward .n5 * { animation-delay: 7.2s; }
@keyframes sweep { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
@keyframes ping { 0%, 4% { fill: #0b1726; } 7%, 22% { fill: #4fd1b0; } 30%, 100% { fill: #0b1726; } }
@keyframes label { 0%, 4% { fill: #9fb0c3; } 7%, 22% { fill: #fff; } 30%, 100% { fill: #9fb0c3; } }
.ward.paused * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .ward * { animation: none !important; } }

/* Page heads, topics, lists */
.page-head { background: var(--bg-alt); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20em; }
.page-head .split-v h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.jump, .chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a, .chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: .92rem; text-decoration: none; }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.page-head .chips { margin-bottom: 24px; }
.topics { padding-top: 16px; padding-bottom: 48px; }
.topic { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px clamp(24px, 5vw, 56px); align-items: start; padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.topic:last-child { border-bottom: 0; }
.topic h2 { font-size: 1.4rem; }
.next-h { font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 4px; }
@media (max-width: 760px) { .topic { grid-template-columns: 1fr; } }
.flow { list-style: none; counter-reset: f; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; margin: 20px 0; }
.flow li { counter-increment: f; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); font-weight: 700; color: var(--navy); }
.flow li::before { content: counter(f, decimal-leading-zero) "  "; color: var(--accent); }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; padding: 0; }
.ticks li { padding: 4px 0; }
.ticks li::before, .promise-line li::before { content: "✓"; color: var(--accent); margin-right: 10px; font-weight: 700; }
.promise-line { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.prose-page { max-width: 760px; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 88px); }
.prose-page h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose-page h2:first-child { margin-top: 0; }

/* Watch: a light page around a dark player, the playlist beside it */
.theatre { padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.theatre h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.theatre-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .theatre-grid { grid-template-columns: 1fr; } }
.screen { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: var(--screen); box-shadow: 0 30px 60px -30px rgba(11, 37, 69, .45); }
.screen .yt, .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade { position: absolute; inset: 0; z-index: 2; padding: 0; border: 0; background: var(--screen); cursor: pointer; }
.facade img { width: 100%; height: 100%; object-fit: cover; }
.facade .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .25s var(--ease); }
.facade .play svg { width: 34px; height: 34px; margin-left: 4px; }
.facade:hover .play { transform: scale(1.06); }
.empty { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; background: radial-gradient(120% 100% at 50% 0, var(--screen-2), var(--screen)); color: #e6edf5; }
.empty p { color: #9fb0c3; max-width: 30em; }
.empty .empty-h { font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: #fff; margin-bottom: .4em; }
.mark.big { width: 56px; height: 56px; color: var(--poster); margin-bottom: 16px; }
.empty .mark-eye { fill: var(--poster); }
.now { padding: 16px 2px 0; }
.now-title { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: .25em; }
.now-meta { color: var(--muted); }
.now-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.auto { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; color: var(--muted); }
.auto input { width: 18px; height: 18px; accent-color: var(--accent); }
.queue-col { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 8px 8px; max-height: 640px; display: flex; flex-direction: column; background: var(--bg); }
.q-h { font-size: 1rem; padding: 0 10px 10px; margin: 0; }
.queue { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.queue button { width: 100%; display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; padding: 8px 10px; background: none; border: 0; border-radius: 8px; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.queue button:hover { background: var(--bg-alt); }
.queue button[aria-current="true"] { background: var(--tint); }
.queue img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: var(--screen); }
.queue .qt { font-size: .92rem; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.queue .qd { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.q-none { padding: 0 10px 10px; }
.note { margin-top: 24px; }

/* Contact form */
.cform { display: grid; gap: 18px; margin-bottom: 48px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
:root[data-theme="dark"] .field input, :root[data-theme="dark"] .field select, :root[data-theme="dark"] .field textarea { border-color: var(--line); background: var(--bg-alt); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--err); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .btn { justify-self: start; }
.form-status { min-height: 1.5em; margin: 0; }
.form-status.err { color: var(--err); }
.done { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 40px; }

/* Footer */
.site-foot { background: var(--foot); color: var(--foot-text); padding: 52px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { font-weight: 800; font-size: 1.25rem; color: #fff; margin: 0 0 .3em; }
.foot-tag { color: #fff; margin-bottom: .3em; }
.site-foot .muted { color: var(--foot-text); }
.foot-h { font: 700 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 6px 0 14px; }
.site-foot nav a { display: block; color: var(--foot-text); text-decoration: none; padding: 6px 0; }
.site-foot nav a:hover { color: #fff; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-base p { margin: 0; max-width: 46em; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* Gentle, transform-only reveal (never hides content) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .band .wrap > *, .topic { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes drift { from { transform: translateY(24px); } to { transform: none; } }

/* Preview only */
.preview-bar { background: #fde68a; color: #0f172a; font: 600 .86rem/1.4 var(--sans); text-align: center; padding: 8px 16px; }
.is-preview [data-confirm] { outline: 2px dashed #d97706; outline-offset: 6px; border-radius: 4px; }

/* Titles of different lengths keep the screens in a row aligned; the sixth tile opens the playlist */
@media (min-width: 621px) { .vrow .vslot figcaption, .vall .q { min-height: 3.9em; } }
.vall { display: flex; flex-direction: column; text-decoration: none; }
.vall .q { display: block; font-weight: 700; font-size: 1.08rem; line-height: 1.3; color: var(--navy); margin-bottom: 12px; }
.vall-box { aspect-ratio: 16/9; border-radius: var(--r); border: 2px dashed var(--line); display: grid; place-items: center; font-weight: 700; color: var(--accent); transition: border-color .2s, background .2s; }
.vall:hover .vall-box { border-color: var(--accent); background: var(--tint); }

/* Without its video a block is text only (OE-300) */
.split-v:has(> .vslot[hidden]), .topic:has(> .vslot[hidden]) { grid-template-columns: 1fr; }
.topic:has(> .vslot[hidden]) { padding: 28px 0; }
.sec-head + .jump { margin-top: 0; }
.jump { list-style: none; }
.hero:has(.vslot-hero[hidden]) .hero-copy { margin-bottom: 0; }
.band:has([data-video-group][hidden]) { padding: clamp(32px, 5vw, 56px) 0; }
.band:has([data-video-group][hidden]) .promise-line { margin-top: 0; }
