/* Eswara Advisory Group · coming soon · shared styles.
   Five themes, the website's own (Light, Eclipse, Sable, Plum, Nocturne), set on <html data-theme> by assets/theme.js.
   Every colour below comes from a theme token; the *-rgb tokens are for translucent uses (rgba(var(--x-rgb), a)). */
:root, html[data-theme="eclipse"] {
  --void: #0F1119; --void-rgb: 15,17,25; --fg: #EDEBF5; --hi: #FFFFFF; --hi-rgb: 255,255,255; --soft: #C9C7D8; --muted: #9A97B2;
  --rule: rgba(255,255,255,.12); --acc: #4D8FFF; --acc-rgb: 77,143,255; --acc-2: #9DB2F0; --acc-2-rgb: 157,178,240; --ivory: #F1EFE8;
  --blend: screen; --glass: rgba(255,255,255,.03); color-scheme: dark; }
html[data-theme="sable"] {
  --void: #000000; --void-rgb: 0,0,0; --fg: #F7F7F7; --hi: #FFFFFF; --hi-rgb: 255,255,255; --soft: #DEDEDE; --muted: #A3A3A3;
  --rule: rgba(255,255,255,.14); --acc: #F7F7F7; --acc-rgb: 247,247,247; --acc-2: #BDBDBD; --acc-2-rgb: 189,189,189; --ivory: #F7F7F7;
  --blend: screen; --glass: rgba(255,255,255,.04); color-scheme: dark; }
html[data-theme="nocturne"] {
  --void: #0F1828; --void-rgb: 15,24,40; --fg: #EDF1F8; --hi: #FFFFFF; --hi-rgb: 255,255,255; --soft: #B4C2D6; --muted: #8FA3C0;
  --rule: rgba(168,200,232,.16); --acc: #A8C8E8; --acc-rgb: 168,200,232; --acc-2: #CFE4F8; --acc-2-rgb: 207,228,248; --ivory: #EDF1F8;
  --blend: screen; --glass: rgba(168,200,232,.04); color-scheme: dark; }
html[data-theme="light"] {
  --void: #ECECEC; --void-rgb: 236,236,236; --fg: #14131A; --hi: #0B0A10; --hi-rgb: 11,10,16; --soft: #3B3A45; --muted: #55545C;
  --rule: rgba(20,19,26,.16); --acc: #31408F; --acc-rgb: 49,64,143; --acc-2: #31408F; --acc-2-rgb: 49,64,143; --ivory: #14131A;
  --blend: normal; --glass: rgba(255,255,255,.45); color-scheme: light; }
html[data-theme="plum"] {
  --void: #E5E5E5; --void-rgb: 229,229,229; --fg: #2A2430; --hi: #1A141E; --hi-rgb: 26,20,30; --soft: #4A4250; --muted: #5A5260;
  --rule: rgba(42,36,48,.16); --acc: #6B3F6C; --acc-rgb: 107,63,108; --acc-2: #4A2C4B; --acc-2-rgb: 74,44,75; --ivory: #2A2430;
  --blend: normal; --glass: rgba(255,255,255,.45); color-scheme: light; }
:root { --serif: Spectral, Georgia, "Times New Roman", serif; --sans: Inter, "Helvetica Neue", Arial, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --oil: cubic-bezier(.45,0,.25,1); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--void); color: var(--fg); }
body { min-height: 100vh; min-height: 100svh; font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .6s var(--oil), color .6s var(--oil); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 4px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
#stage-front { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 3; pointer-events: none; mix-blend-mode: var(--blend); }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(70% 70% at 22% 66%, rgba(var(--void-rgb),.78) 0%, rgba(var(--void-rgb),.5) 45%, rgba(var(--void-rgb),0) 75%),
              radial-gradient(120% 90% at 18% 92%, rgba(var(--void-rgb),.92) 0%, rgba(var(--void-rgb),.55) 38%, rgba(var(--void-rgb),0) 66%),
              linear-gradient(180deg, rgba(var(--void-rgb),.55) 0%, rgba(var(--void-rgb),0) 18%, rgba(var(--void-rgb),0) 78%, rgba(var(--void-rgb),.7) 100%); }
.nogl { position: fixed; inset: 0; z-index: 0; background: radial-gradient(rgba(var(--hi-rgb),.10) 1.2px, transparent 1.4px) 0 0 / 22px 22px, var(--void); display: none; }
html.no-gl .nogl { display: block; }
.grain { position: fixed; inset: -50%; z-index: 4; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.page { position: relative; z-index: 2; min-height: calc(100vh - 53px); min-height: calc(100svh - 53px); display: grid; grid-template-rows: 1fr auto;
  padding: 26px max(40px, env(safe-area-inset-right)) 22px max(40px, env(safe-area-inset-left)); }
.page > .hint { margin: 0; justify-self: end; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); position: relative; z-index: 4; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; z-index: 5; }
.firm { display: inline-flex; align-items: center; gap: 12px; font: 600 11.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--soft); text-decoration: none; }
.firm svg { width: 26px; height: 26px; }
.firm svg rect { fill: var(--ivory); } .firm svg rect:first-child { fill: none; stroke: var(--ivory); } .firm svg circle { fill: var(--acc); }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a, .thm { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--soft);
  font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.top nav a:hover, .thm:hover { color: var(--hi); border-color: rgba(var(--hi-rgb),.22); }
/* the theme control: a disc half lit, and the theme's name */
.thm .disc { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); flex: none; transition: transform .6s var(--oil); }
.thm:hover .disc { transform: rotate(180deg); }
.thm [data-theme-name] { min-width: 8.4ch; text-align: left; }

.hero { align-self: end; padding: 0 0 clamp(28px, 6vh, 72px); max-width: 1100px; position: relative; }
.state { display: inline-flex; align-items: center; gap: 9px; height: 24px; margin: 0; 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); box-shadow: 0 0 12px rgba(var(--acc-rgb),.14); }
/* the website's hero, as on its home page: eyebrow in mono, the statement in Spectral 400, one word in the signature script */
.eyebrow { margin: 16px 0 0; font: 700 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc-2); }
/* the status light: it blinks like a live signal, and pings when a ring leaves the screen */
.state .ring { position: relative; width: 12px; height: 12px; flex: none; border-radius: 50%; border: 1.5px solid rgba(var(--acc-rgb),.55); }
.state .ring b { position: absolute; inset: 3px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px 2px rgba(var(--acc-rgb),.75); }
.state .ring i { position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--acc); opacity: 0; }
.state .scr { display: inline-block; min-width: 11ch; }
h1 { margin: 10px 0 0; font: 400 clamp(42px, 5.15vw, 74px)/1.03 var(--serif); letter-spacing: -.022em; color: var(--fg); }
h1 .sig-w { white-space: nowrap; }
h1 .sig { display: inline-block; font: 400 1.42em/.8 "EAG Signature", Allura, cursive; letter-spacing: 0; color: var(--acc-2); padding: 0 .06em 0 .02em; filter: drop-shadow(0 0 16px rgba(var(--acc-rgb),.55)); }
.line { margin: 26px 0 0; max-width: 34em; font: 400 clamp(16px, 1.25vw, 18px)/1.6 var(--sans); color: var(--soft); }
.reach { margin: 30px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.reach .k { font: 600 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.mail { position: relative; font: 300 clamp(19px, 1.5vw, 23px)/1.2 var(--serif); color: var(--hi); text-decoration: none; letter-spacing: -.01em; padding-bottom: 6px; display: inline-block; }
.mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: linear-gradient(90deg, var(--acc), rgba(var(--acc-rgb),0)); transform-origin: 0 50%; transform: scaleX(.35); transition: transform 1400ms var(--oil); }
.mail:hover::after, .mail:focus-visible::after { transform: scaleX(1); transition-duration: 600ms; }
.copy { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--rule); background: var(--glass);
  font: 600 12.5px/1 var(--sans); color: var(--soft); cursor: pointer; backdrop-filter: blur(6px); }
.copy:hover { color: var(--hi); border-color: rgba(var(--hi-rgb),.45); }
.copy svg { width: 14px; height: 14px; }
.foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 40px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--rule); position: relative; z-index: 5; }
.foot p { margin: 0; font: 400 12.5px/1.55 var(--sans); color: var(--muted); max-width: 72ch; }
.foot .hint { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* the cursor's companion: a ring that follows, grows over anything you can press, and carries a word over the Helix */
.cur { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid rgba(var(--acc-2-rgb),.55);
  display: grid; place-items: center; opacity: 0; mix-blend-mode: var(--blend); }
.cur span { font: 600 9px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--hi); opacity: 0; white-space: nowrap; }
.cur-dot { position: fixed; left: 0; top: 0; z-index: 51; pointer-events: none; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--hi); opacity: 0; }
@media (hover: none), (pointer: coarse) { .cur, .cur-dot { display: none; } }

/* before the words arrive (the script reveals them; without it they are simply there) */
html.js.pre .rise { opacity: 0; }
html.js.pre h1 { opacity: 0; }

@media (max-width: 760px) {
  .page { padding: 18px max(20px, env(safe-area-inset-right)) 20px max(20px, env(safe-area-inset-left)); }
  .page > .hint { display: none; }
  .firm span { display: none; }
  .top nav { gap: 0; }
  .top nav a, .thm { padding: 0 7px; letter-spacing: .06em; font-size: 10px; }
  .thm [data-theme-name] { display: none; }
  .hero { padding-top: 46vh; }
  .veil { background: linear-gradient(180deg, rgba(var(--void-rgb),.35) 0%, rgba(var(--void-rgb),0) 22%, rgba(var(--void-rgb),.25) 42%, rgba(var(--void-rgb),.9) 62%, rgba(var(--void-rgb),.96) 100%); }
  .foot .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { html.js.pre .rise, html.js.pre h1 { opacity: 1; } .foot .hint, .page > .hint { display: none; } .grain { display: none; } body { transition: none; } }
