/* Eswara Advisory Group · coming soon · the website's shell: its topbar and its Continuity Fold, in all five themes.
   Measured from the main website (candidates/_shared/shell: topbar.html, continuity-fold.html, in each theme) and rebuilt here
   without its framework. The topbar keeps the site's mark, name and reading position; on this page its right side carries a live
   Signal scope, the five themes as a dial, and Write. The Fold keeps its geometry (1440 × 221) and its six destinations. */

/* ---------------------------------------------------------------- theme roles (as measured on the main site) */
:root, html[data-theme="eclipse"] {
  --tb-bg: #13161F; --tb-line: rgba(241,242,246,.10); --tb-fg: rgba(241,242,246,.96); --tb-mute: #BCB7AD; --tb-pill: #020611; --tb-sep: rgba(56,67,123,.85); --tb-dot: #A97F9F;
  --tb-cta-top: #262B37; --tb-cta-bot: #12151C; --tb-cta-fg: #F1F2F6; --tb-cta-dir: 180deg;
  --fd-dest: #8FA6E6; --fd-route: #D4D5CD; --fd-legal: #D4D5CD; --fd-fill: #8FA6E6; --fd-ring: rgba(143,166,230,.62); --fd-soft: rgba(241,242,246,.21); --fd-deep: rgba(241,242,246,.96);
  --fd-arc: rgba(241,242,246,.29); --fd-bundle: #8FA6E6; --fd-btn: rgba(241,242,246,.067); --fd-btn-line: rgba(241,242,246,.10); --fd-btn-fg: rgba(241,242,246,.96);
  --fd-pill: #C5A0AC; --fd-pill-line: #A86C7D; --fd-s0: #8FA6E6; --fd-s1: rgba(241,242,246,.52); --fd-s2: rgba(241,242,246,.40); }
html[data-theme="light"] {
  --tb-sep: rgba(154,164,226,.85); --tb-dot: #C08A6E;
  --fd-dest: #3F4272; --fd-route: #33323A; --fd-legal: #5E5D63; --fd-fill: #31408F; --fd-ring: #8A93C6; --fd-soft: #C5C7D3; --fd-deep: #14183A;
  --fd-arc: #A2A8C6; --fd-bundle: #2B366C; --fd-btn: #E5E5E5; --fd-btn-line: #D4D5CD; --fd-btn-fg: rgba(20,19,26,.86);
  --fd-pill: #8E4A2B; --fd-pill-line: #8E4A2B; --fd-s0: #2B366C; --fd-s1: #B3B7CC; --fd-s2: #C4C7D6; }
html[data-theme="plum"] {
  --tb-sep: rgba(154,164,226,.85); --tb-dot: #B98FA8;
  --fd-dest: #4D3963; --fd-route: #33323A; --fd-legal: #5E5D63; --fd-fill: #4E386F; --fd-ring: #9C89B6; --fd-soft: #C5C7D3; --fd-deep: #1C0C2E;
  --fd-arc: #AD9DC3; --fd-bundle: #402D59; --fd-btn: #E5E5E5; --fd-btn-line: #D4D5CD; --fd-btn-fg: rgba(42,36,48,.86);
  --fd-pill: #804759; --fd-pill-line: #804759; --fd-s0: #402D59; --fd-s1: #BDB3C9; --fd-s2: #CBC4D4; }
html[data-theme="sable"] {
  --tb-bg: #000000; --tb-line: rgba(255,255,255,.09); --tb-fg: #F7F7F7; --tb-mute: #A3A3A3; --tb-pill: #000000; --tb-sep: rgba(82,82,82,.85); --tb-dot: #888888;
  --tb-cta-top: #343434; --tb-cta-bot: #171717; --tb-cta-fg: #F7F7F7;
  --fd-dest: #F7F7F7; --fd-route: #DEDEDE; --fd-legal: #DEDEDE; --fd-fill: #F7F7F7; --fd-ring: rgba(247,247,247,.62); --fd-soft: rgba(247,247,247,.22); --fd-deep: #F7F7F7;
  --fd-arc: rgba(247,247,247,.30); --fd-bundle: #F7F7F7; --fd-btn: rgba(247,247,247,.07); --fd-btn-line: rgba(255,255,255,.09); --fd-btn-fg: #F7F7F7;
  --fd-pill: #E8E8E8; --fd-pill-line: #DEDEDE; --fd-s0: #F7F7F7; --fd-s1: rgba(247,247,247,.52); --fd-s2: rgba(247,247,247,.40); }
html[data-theme="nocturne"] {
  --tb-bg: #1A2536; --tb-line: #223047; --tb-fg: #EDF1F8; --tb-mute: #8FA3C0; --tb-pill: #080D16; --tb-sep: rgba(53,75,113,.85); --tb-dot: #6F8DB4;
  --tb-cta-top: #A8C8E8; --tb-cta-bot: #3A5A7C; --tb-cta-fg: #0C111C; --tb-cta-dir: 90deg;
  --fd-dest: #A8C8E8; --fd-route: #9FB0C8; --fd-legal: #9FB0C8; --fd-fill: #A8C8E8; --fd-ring: rgba(168,200,232,.62); --fd-soft: rgba(237,241,248,.22); --fd-deep: #EDF1F8;
  --fd-arc: rgba(237,241,248,.30); --fd-bundle: #A8C8E8; --fd-btn: rgba(237,241,248,.07); --fd-btn-line: #223047; --fd-btn-fg: #EDF1F8;
  --fd-pill: #B9A7C4; --fd-pill-line: #9776A1; --fd-s0: #A8C8E8; --fd-s1: rgba(237,241,248,.52); --fd-s2: rgba(237,241,248,.40); }

/* ---------------------------------------------------------------- the topbar */
.eag-topbar { position: sticky; top: 0; z-index: 20; background: var(--tb-bg); border-bottom: 1px solid var(--tb-line); color: var(--tb-fg); transition: background-color .6s var(--oil); }
.eag-topbar__row { display: flex; align-items: center; gap: 10px 16px; height: 52px; padding: 9px max(22px, env(safe-area-inset-right)) 9px max(22px, env(safe-area-inset-left)); }
.eag-topbar__brand { display: inline-flex; align-items: center; gap: 16px; color: var(--tb-fg); text-decoration: none; flex: none; }
.eag-topbar__mark { width: 26px; height: 26px; display: block; border-radius: 8px; }
.eag-topbar__name { font: 700 14px/1.2 var(--sans); letter-spacing: -.014em; white-space: nowrap; }
.eag-topbar__progress { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1.2 var(--mono); letter-spacing: .09em; color: var(--tb-mute); white-space: nowrap; min-width: 0; }
.eag-topbar__progress .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tb-dot); opacity: .5; flex: none; }
.eag-topbar__progress .stage { font-weight: 700; color: var(--tb-fg); text-transform: uppercase; }
.eag-topbar__progress .sep { color: var(--tb-sep); }
.eag-topbar__controls { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--tb-line); background: var(--tb-pill);
  color: var(--tb-fg); font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tb-pill:hover { border-color: rgba(241,242,246,.32); }
html[data-theme="sable"] .tb-pill:hover { border-color: rgba(255,255,255,.4); }
/* the Signal scope: the Helix in miniature, side on, with every lit ring crossing it; press it to send one */
.tb-signal .scope { width: 72px; height: 18px; display: block; }
.tb-signal[data-live="1"] .tb-signal__k { color: var(--tb-dot); }
/* the five themes as a dial */
.tb-dial { display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--tb-line); background: var(--tb-pill); }
.tb-dial .sw { position: relative; width: 24px; height: 24px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.tb-dial .sw i { width: 14px; height: 14px; border-radius: 50%; display: block; background: linear-gradient(135deg, var(--g) 50%, var(--a) 50%); box-shadow: 0 0 0 1px rgba(241,242,246,.28); transition: transform .5s var(--oil); }
.tb-dial .sw:hover i { transform: scale(1.18) rotate(90deg); }
.tb-dial .sw[aria-pressed="true"]::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; border: 1.5px solid var(--tb-fg); }
.tb-dial .sw:focus-visible { outline: 2px solid var(--tb-fg); outline-offset: 1px; }
.tb-dial__name { font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tb-mute); padding: 0 6px 0 6px; min-width: 9ch; }
.tb-write { border: 0; background: linear-gradient(var(--tb-cta-dir, 180deg), var(--tb-cta-top) 0%, var(--tb-cta-bot) 100%); color: var(--tb-cta-fg); font: 600 14px/1.2 var(--sans); letter-spacing: 0; text-transform: none; padding: 0 15px; box-shadow: 0 0 0 1px var(--tb-line) inset; }
.tb-write svg { width: 14px; height: 14px; }
.eag-topbar :focus-visible { outline: 2px solid var(--tb-fg); outline-offset: 2px; }
@media (max-width: 1100px) { .eag-topbar__progress { display: none; } }
@media (max-width: 760px) {
  .eag-topbar__row { gap: 8px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .eag-topbar__name { display: none; } .tb-dial__name { display: none; } .tb-signal .tb-signal__k { display: none; }
  .tb-signal { padding: 0 9px; } .tb-signal .scope { width: 48px; }
  .tb-write span { display: none; } .tb-write { padding: 0 11px; }
  .tb-dial .sw { width: 22px; height: 22px; } .tb-dial .sw i { width: 12px; height: 12px; }
}

/* ---------------------------------------------------------------- the Continuity Fold */
.fold { position: relative; z-index: 6; background: var(--void); color: var(--fg); padding: 22px 0 18px; transition: background-color .6s var(--oil); }
.fold::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 120px; pointer-events: none; background: linear-gradient(180deg, rgba(var(--void-rgb),0), var(--void)); }
.fold__stage { position: relative; width: min(100%, 1440px); margin: 0 auto; aspect-ratio: 1440 / 221; }
.fold__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fold__svg #eag-strand stop[offset="0"], .fold__svg #eag-strand stop[offset="1"] { stop-color: var(--fd-s0); }
.fold__svg #eag-strand stop[offset="0.14"], .fold__svg #eag-strand stop[offset="0.86"] { stop-color: var(--fd-s1); }
.fold__svg #eag-strand stop[offset="0.5"] { stop-color: var(--fd-s2); }
.fold__svg .eag-continuity__strands path { fill: none; stroke: url(#eag-strand); stroke-width: 1; }
.fold__svg .eag-continuity__yours { fill: none; stroke: var(--fd-deep); stroke-width: 1.8; opacity: 0; filter: drop-shadow(0 0 4px var(--fd-ring)); }
.fold__svg .eag-continuity__arc { fill: none; stroke: var(--fd-arc); stroke-width: 1.2; stroke-dasharray: 2 4; }
.fold__svg .eag-continuity__bundle { fill: var(--fd-bundle); opacity: .14; }
.fold__svg .eag-continuity__lead { fill: var(--fd-deep); filter: drop-shadow(0 0 6px var(--fd-fill)); }
.fold__svg .eag-node--fill { fill: var(--fd-fill); }
.fold__svg .eag-node--ring { fill: none; stroke: var(--fd-ring); stroke-width: 1.2; }
.fold__svg .eag-node--ring-soft { fill: none; stroke: var(--fd-soft); stroke-width: 1; }
.fold__svg .eag-node--fill-deep { fill: var(--fd-deep); }
.fold .at { position: absolute; left: calc(var(--x) / 1440 * 100%); top: calc(var(--y) / 221 * 100%); }
.fold__station { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--fd-pill-line); color: var(--fd-pill);
  font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 0 10px rgba(168,108,125,.16); }
.fold__dests { margin: 0; padding: 0; list-style: none; }
.fold__dests li, .fold__routes a { width: 140px; text-align: center; font: 700 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.fold__dests li { color: var(--fd-dest); }
.fold__routes a { color: var(--fd-route); }
.fold__routes a:hover, .fold__routes a:focus-visible { color: var(--fd-dest); }
.fold__term { font: 700 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fd-legal); }
.fold__begin { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--fd-btn-line); background: var(--fd-btn); color: var(--fd-btn-fg);
  font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.fold__begin i { width: 6px; height: 6px; border-radius: 50%; background: var(--fd-fill); }
.fold__begin:hover { border-color: var(--fd-ring); }
.fold__legal, .fold__mail { font: 400 14px/1.5 var(--sans); color: var(--fd-legal); text-decoration: none; }
.fold__mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.fold__trade { width: min(100% - 2 * max(40px, env(safe-area-inset-left)), 1282px); margin: 26px auto 0; padding-top: 16px; border-top: 1px solid var(--rule); font: 400 12.5px/1.55 var(--sans); color: var(--muted); }
.fold__hint { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* narrower than the Fold's drawing: the strands stay as a band, the words stack beneath it */
@media (max-width: 1080px) {
  .fold__stage { aspect-ratio: auto; padding: 0 max(20px, env(safe-area-inset-left)); display: grid; gap: 20px; }
  .fold__svg { position: relative; inset: auto; width: calc(100% + 2 * max(20px, env(safe-area-inset-left))); margin: 0 calc(-1 * max(20px, env(safe-area-inset-left))); height: auto; aspect-ratio: 1440 / 221; order: 2; }
  .fold .at { position: static; }
  .fold__station { order: 1; justify-self: start; }
  .fold__dests { order: 3; display: flex; flex-wrap: wrap; gap: 10px 18px; } .fold__dests li { width: auto; text-align: left; }
  .fold__end { order: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
  .fold__routes { order: 5; display: flex; flex-wrap: wrap; gap: 10px 22px; } .fold__routes a { width: auto; text-align: left; }
  .fold__foot { order: 6; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
  .fold__trade { width: auto; margin: 22px max(20px, env(safe-area-inset-left)) 0; }
}
@media (min-width: 1081px) { .fold__end, .fold__foot { display: contents; } }

/* ---------------------------------------------------------------- the cinema */
.cine-words { position: fixed; inset: 0; z-index: 30; pointer-events: none; display: grid; place-items: center; }
.cine-words p { grid-area: 1 / 1; margin: 0; padding: 0 24px; text-align: center; opacity: 0; color: var(--ivory); font: 300 clamp(30px, 4.6vw, 68px)/1.08 var(--serif); letter-spacing: -.02em; text-wrap: balance; max-width: 18ch;
  text-shadow: 0 0 28px rgba(var(--void-rgb),.95), 0 0 10px rgba(var(--void-rgb),.85), 0 0 2px rgba(var(--void-rgb),.9); }
.cine-words .c0 { font: 600 clamp(13px, 1.15vw, 17px)/1 var(--mono); letter-spacing: .55em; text-transform: uppercase; color: var(--soft); max-width: none; transform: translateY(18vh); }
.cine-words .c1, .cine-words .c3 { font-style: italic; color: var(--acc-2); }
html:not(.cine) .cine-words { display: none; }
html.cine { overflow: hidden; }
html.cine .veil, html.cine .grain { opacity: 0; }
.veil { transition: opacity 1.6s var(--oil); }
@media (prefers-reduced-motion: reduce) { .cine-words { display: none; } }

/* ---------------------------------------------------------------- the founder (the approved founder page's words) */
.founder { position: relative; z-index: 6; background: var(--void); padding: clamp(56px, 9vh, 110px) max(40px, env(safe-area-inset-right)) clamp(40px, 6vh, 72px) max(40px, env(safe-area-inset-left)); transition: background-color .6s var(--oil); }
.founder::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 140px; pointer-events: none; background: linear-gradient(180deg, rgba(var(--void-rgb),0), var(--void)); }
.founder__in { max-width: 1282px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 6vw, 110px); align-items: start; }
.founder__k { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 9px; justify-self: start; height: 24px; margin: 0 0 18px; padding: 0 11px 0 6px; border-radius: 12px; border: 1px solid rgba(var(--acc-2-rgb),.55);
  font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
.founder__k .ring { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(var(--acc-rgb),.55); box-shadow: inset 0 0 0 3px var(--void), inset 0 0 0 6px var(--acc); }
.founder__name { grid-column: 1; margin: 0; font: 400 clamp(36px, 3.7vw, 54px)/1.05 var(--serif); letter-spacing: -.02em; color: var(--fg); }
.founder__role { grid-column: 1; margin: 12px 0 0; font: 700 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc-2); }
.founder__text { grid-column: 2; grid-row: 2 / span 3; display: grid; gap: 14px; }
.founder__text p { margin: 0; max-width: 36em; font: 400 clamp(16px, 1.25vw, 18px)/1.6 var(--sans); color: var(--soft); }
.founder__sig { grid-column: 1; margin: 18px 0 0; font: 400 clamp(40px, 3.4vw, 52px)/1 "EAG Signature", Allura, cursive; color: var(--acc-2); filter: drop-shadow(0 0 14px rgba(var(--acc-rgb),.35)); }
@media (max-width: 860px) {
  .founder { padding: 64px max(20px, env(safe-area-inset-right)) 40px max(20px, env(safe-area-inset-left)); }
  .founder__in { grid-template-columns: minmax(0, 1fr); }
  .founder__text { grid-column: 1; grid-row: auto; margin-top: 22px; } .founder__sig { grid-column: 1; }
}
