/* ==========================================================================
   AMFI Dashboard: Ravi Tripathi
   Liquid-glass system on Ink Navy #141B2D / Pearl White #F4F1EA / Electric Coral #FF5A4E
   Chart colours validated for colour-vision deficiency in both themes.
   ========================================================================== */

/* ---------- Tokens: dark (default) ---------- */
:root {
  --navy: #141B2D;
  --pearl: #F4F1EA;
  --coral: #FF5A4E;

  --bg: #141B2D;
  --bg-deep: #0C1121;
  --text: #F4F1EA;
  --text-2: rgba(244, 241, 234, .76);
  --text-3: rgba(244, 241, 234, .58);
  --line: rgba(244, 241, 234, .13);
  --line-2: rgba(244, 241, 234, .07);
  --accent: #FF5A4E;
  --accent-text: #FF7A6E;
  --up: #4FD8A5;
  --down: #FF7A6E;
  --focus: #FFB3AC;

  /* chart marks */
  --c-prev: #517BDC;
  --c-curr: #F75247;
  --c1: #F75247; --c1-ink: #141B2D;
  --c2: #517BDC; --c2-ink: #141B2D;
  --c3: #C28600; --c3-ink: #141B2D;
  --c4: #00A075; --c4-ink: #141B2D;
  --c5: #845AC9; --c5-ink: #FFFFFF;
  --c6: #0EA4B8; --c6-ink: #141B2D;
  --muted-mark: rgba(244, 241, 234, .2);
  --liq-1: #FF8378;
  --liq-2: #D9372D;
  --liq-top: #FFA59C;

  /* glass */
  --glass-bg: linear-gradient(165deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .055));
  --glass-blur: blur(22px) saturate(165%);
  --glass-rim-hi: rgba(255, 255, 255, .42);
  --glass-rim-lo: rgba(255, 255, 255, .05);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 30px 60px -30px rgba(2, 5, 16, .8), 0 12px 24px -14px rgba(2, 5, 16, .55);
  --spec: rgba(255, 255, 255, .12);
  --tip-bg: rgba(16, 22, 38, .9);
  --table-head: #19213A;
  --row-bg: rgba(24, 31, 50, .96);

  --field-1: rgba(255, 90, 78, .26);
  --field-2: rgba(81, 123, 220, .28);
  --field-3: rgba(14, 164, 184, .12);

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --nav-h: 60px;

  color-scheme: dark;
  interpolate-size: allow-keywords;
}

/* ---------- Tokens: light (Pearl) ---------- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F1EA;
    --bg-deep: #EAE5DA;
    --text: #141B2D;
    --text-2: rgba(20, 27, 45, .76);
    --text-3: rgba(20, 27, 45, .6);
    --line: rgba(20, 27, 45, .13);
    --line-2: rgba(20, 27, 45, .065);
    --accent-text: #B8322A;
    --up: #0B7A57;
    --down: #C2352B;
    --focus: #B8322A;
    --c-prev: #3D65C4;
    --c-curr: #DF3B33;
    --c1: #DF3B33; --c1-ink: #FFFFFF;
    --c2: #3D65C4; --c2-ink: #FFFFFF;
    --c3: #BD8000; --c3-ink: #141B2D;
    --c4: #009369; --c4-ink: #141B2D;
    --c5: #774DBA; --c5-ink: #FFFFFF;
    --c6: #0098AB; --c6-ink: #141B2D;
    --muted-mark: rgba(20, 27, 45, .16);
    --glass-bg: linear-gradient(165deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .5) 55%, rgba(255, 255, 255, .66));
    --glass-rim-hi: rgba(255, 255, 255, 1);
    --glass-rim-lo: rgba(20, 27, 45, .07);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 30px 60px -34px rgba(20, 27, 45, .3), 0 10px 22px -14px rgba(20, 27, 45, .18);
    --spec: rgba(255, 255, 255, .75);
    --tip-bg: rgba(255, 255, 255, .94);
    --table-head: #FAF8F3;
    --row-bg: rgba(251, 249, 245, .97);
    --field-1: rgba(255, 90, 78, .2);
    --field-2: rgba(81, 123, 220, .18);
    --field-3: rgba(14, 164, 184, .1);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F4F1EA;
  --bg-deep: #EAE5DA;
  --text: #141B2D;
  --text-2: rgba(20, 27, 45, .76);
  --text-3: rgba(20, 27, 45, .6);
  --line: rgba(20, 27, 45, .13);
  --line-2: rgba(20, 27, 45, .065);
  --accent-text: #B8322A;
  --up: #0B7A57;
  --down: #C2352B;
  --focus: #B8322A;
  --c-prev: #3D65C4;
  --c-curr: #DF3B33;
  --c1: #DF3B33; --c1-ink: #FFFFFF;
  --c2: #3D65C4; --c2-ink: #FFFFFF;
  --c3: #BD8000; --c3-ink: #141B2D;
  --c4: #009369; --c4-ink: #141B2D;
  --c5: #774DBA; --c5-ink: #FFFFFF;
  --c6: #0098AB; --c6-ink: #141B2D;
  --muted-mark: rgba(20, 27, 45, .16);
  --glass-bg: linear-gradient(165deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .5) 55%, rgba(255, 255, 255, .66));
  --glass-rim-hi: rgba(255, 255, 255, 1);
  --glass-rim-lo: rgba(20, 27, 45, .07);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 30px 60px -34px rgba(20, 27, 45, .3), 0 10px 22px -14px rgba(20, 27, 45, .18);
  --spec: rgba(255, 255, 255, .75);
  --tip-bg: rgba(255, 255, 255, .94);
  --table-head: #FAF8F3;
  --row-bg: rgba(251, 249, 245, .97);
  --field-1: rgba(255, 90, 78, .2);
  --field-2: rgba(81, 123, 220, .18);
  --field-3: rgba(14, 164, 184, .1);
  color-scheme: light;
}

/* The hero (and the nav while it sits over the hero) is always Ink Navy. */
.scope-dark,
.site-nav.on-dark {
  --text: #F4F1EA;
  --text-2: rgba(244, 241, 234, .78);
  --text-3: rgba(244, 241, 234, .6);
  --line: rgba(244, 241, 234, .14);
  --line-2: rgba(244, 241, 234, .07);
  --accent-text: #FF7A6E;
  --up: #4FD8A5;
  --down: #FF7A6E;
  --focus: #FFB3AC;
  --glass-bg: linear-gradient(165deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .06));
  --glass-rim-hi: rgba(255, 255, 255, .45);
  --glass-rim-lo: rgba(255, 255, 255, .05);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 30px 60px -30px rgba(2, 5, 16, .8), 0 12px 24px -14px rgba(2, 5, 16, .55);
  --spec: rgba(255, 255, 255, .13);
  color: var(--text);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 40px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
small { font-size: inherit; }
::selection { background: rgba(255, 90, 78, .35); color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}

.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;
}
.skip-link {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

.wrap {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .wrap { width: min(1240px, 100% - 64px); }
}

/* ---------- Atmosphere (page background light fields) ---------- */
.atmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.field {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  will-change: transform;
}
.f1 { top: 10%; left: -30vmax; background: radial-gradient(closest-side, var(--field-1), transparent 72%); animation: drift-a 42s var(--ease) infinite alternate; }
.f2 { top: 45%; right: -32vmax; background: radial-gradient(closest-side, var(--field-2), transparent 72%); animation: drift-b 48s var(--ease) infinite alternate; }
.f3 { bottom: -40vmax; left: 20%; background: radial-gradient(closest-side, var(--field-3), transparent 72%); animation: drift-a 56s var(--ease) infinite alternate-reverse; }
.grain {
  position: absolute;
  inset: -50%;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift-a { to { transform: translate3d(12vmax, -8vmax, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-10vmax, 6vmax, 0) scale(.92); } }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border-radius: var(--r-lg);
}
/* specular rim: bright where light hits (top-left), fading round the edge */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--glass-rim-hi), var(--glass-rim-lo) 32%, var(--glass-rim-lo) 68%, color-mix(in srgb, var(--glass-rim-hi) 55%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* moving highlight that follows the pointer, like light on curved glass */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 18%) var(--my, -10%), var(--spec), transparent 46%);
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.glass-xl { border-radius: var(--r-xl); }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1180px, 100% - 20px);
  height: var(--nav-h);
  padding: 0 8px 0 16px;
  border-radius: 999px;
  color: var(--text);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.01em;
  flex: none;
}
.brand img { width: 37px; height: 24px; object-fit: contain; }
.brand-text { font-size: .95rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color .25s, background-color .25s;
}
.nav-links a:hover { color: var(--text); background: var(--line-2); }
.nav-links a[aria-current="true"] { color: var(--text); background: var(--line); }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  transition: background-color .25s;
}
.icon-btn:hover { background: var(--line-2); }
.icon-btn .icon { width: 20px; height: 20px; }
.theme-btn .i-moon { display: none; }
.is-light .theme-btn .i-sun { display: none; }
.is-light .theme-btn .i-moon { display: block; }
.site-nav.on-dark .theme-btn .i-sun,
.site-nav.on-dark .theme-btn .i-moon { transition: none; }
.menu-btn { display: none; }
.burger { display: grid; gap: 5px; width: 18px; }
.burger span { display: block; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.nav-open .burger span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav-open .burger span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.nav-progress {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--coral) 30%, #FFB0A8);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  opacity: .9;
}

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav-actions { margin-left: auto; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px;
    border-radius: var(--r-lg);
    background: rgba(18, 25, 42, .95);
    box-shadow: 0 24px 50px -20px rgba(2, 5, 16, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top center;
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .nav-links a { padding: 13px 16px; font-size: 1rem; color: #F4F1EA; }
  .nav-links a:hover, .nav-links a[aria-current="true"] { background: rgba(255, 255, 255, .08); color: #fff; }
  .nav-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  color: #141B2D;
  background: linear-gradient(180deg, #FF7A6F 0%, #FF5A4E 48%, #EE4337 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -10px 18px rgba(150, 20, 10, .22), 0 14px 34px -12px rgba(255, 90, 78, .7);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -10px 18px rgba(150, 20, 10, .2), 0 18px 40px -12px rgba(255, 90, 78, .85); }
.btn-glass {
  position: relative;
  isolation: isolate;
  color: var(--text);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin: 8px;
  border-radius: 28px;
  min-height: calc(100svh - 16px);
  padding: calc(var(--nav-h) + 56px) 0 24px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(90% 70% at 72% 18%, #22305A 0%, rgba(34, 48, 90, 0) 60%),
    radial-gradient(70% 60% at 8% 100%, rgba(255, 90, 78, .16) 0%, rgba(255, 90, 78, 0) 60%),
    linear-gradient(180deg, #172036 0%, #141B2D 45%, #0D1324 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
@media (min-width: 768px) {
  .hero { margin: 10px; border-radius: 36px; min-height: calc(100svh - 20px); }
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero-glow.g1 { width: 55vmax; height: 55vmax; left: -22vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(255, 90, 78, .28), transparent 70%); animation: drift-a 30s var(--ease) infinite alternate; }
.hero-glow.g2 { width: 50vmax; height: 50vmax; right: -16vmax; top: -24vmax; background: radial-gradient(closest-side, rgba(81, 123, 220, .32), transparent 70%); animation: drift-b 36s var(--ease) infinite alternate; }
.stars {
  position: absolute;
  inset: 0 0 40% 0;
  opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 46% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 6%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 82% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 74% 4%, #fff 50%, transparent 51%);
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .65; } }

/* Moon: the AMFI banner. Its reflection below the horizon ripples (canvas, see amfi.js). */
.moon {
  --px: 0px; --py: 0px; --sy: 0px; --ss: 1;
  position: relative;
  z-index: 0;
  width: 132vw;
  max-width: none;
  margin: 8px 0 0 calc(50% - 66vw);
  aspect-ratio: 1671 / 941;
  transform: translate3d(var(--px), calc(var(--py) + var(--sy)), 0) scale(var(--ss));
  transform-origin: 50% 56%;
  pointer-events: none;
  will-change: transform;
}
.moon-img { width: 100%; height: auto; user-select: none; }
.moon-sea {
  position: absolute;
  left: 0;
  top: 58.24%;
  width: 100%;
  height: 41.76%;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.moon.rippling .moon-img { clip-path: inset(0 0 41.76% 0); }
.moon.rippling .moon-sea { opacity: .74; }
.moon::after {
  /* soft halo behind the disc */
  content: "";
  position: absolute;
  left: 50%; top: 49.2%;
  width: 58%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(244, 241, 234, .16), rgba(244, 241, 234, .04) 60%, transparent 75%);
}

.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 620px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.hero-kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 4px rgba(79, 216, 165, .16);
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.35rem, 5.4vw, 4.6rem);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero .seg { margin-top: 30px; }
/* both segment panels share one grid cell, so switching never shifts the layout */
.hero-figures { margin-top: 18px; display: grid; }
.hero-figures > .tabpanel { grid-area: 1 / 1; }
.hero-figures > .tabpanel[hidden] { display: block; visibility: hidden; }
.hero-num {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .14em;
  font-size: clamp(3.4rem, 8.6vw, 7rem);
  font-weight: 230;
  line-height: .98;
  letter-spacing: -.055em;
  font-variation-settings: "wght" var(--wght, 230);
}
.hero-num .rupee { font-size: .5em; font-weight: 300; letter-spacing: 0; align-self: flex-start; margin-top: .22em; color: var(--text-2); }
.hero-num .unit { font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -.01em; color: var(--text-2); margin-left: .2em; }
.hero-delta { margin-top: 12px; font-size: .95rem; color: var(--text-2); }
.hero-sub { margin-top: 12px; max-width: 52ch; color: var(--text-2); font-size: 1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.hero-tiles { position: relative; z-index: 2; margin-top: -30vw; }
.tiles.hero-tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero .tile {
  padding: 14px 14px 16px;
  /* darker liquid glass: stays legible over the bright moon reflection */
  background: linear-gradient(165deg, rgba(40, 52, 84, .58), rgba(16, 22, 38, .5) 60%, rgba(30, 40, 66, .55));
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
}

/* One orchestrated entrance: copy rises in order, the moon surfaces, tiles settle. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes surface { from { opacity: 0; transform: translateY(5%) scale(.97); } }
.js-motion .hero-kicker { animation: rise .9s var(--ease) .05s backwards; }
.js-motion .hero h1 { animation: rise 1s var(--ease) .14s backwards; }
.js-motion .hero .seg { animation: rise .9s var(--ease) .28s backwards; }
.js-motion .hero-figures { animation: rise .9s var(--ease) .36s backwards; }
.js-motion .hero-cta { animation: rise .9s var(--ease) .46s backwards; }
.js-motion .moon-img { animation: surface 1.8s var(--ease) .1s backwards; }
.js-motion .hero .tile { animation: rise .9s var(--ease) .6s backwards; }
.js-motion .hero .tile:nth-child(2) { animation-delay: .68s; }
.js-motion .hero .tile:nth-child(3) { animation-delay: .76s; }
.js-motion .hero .tile:nth-child(4) { animation-delay: .84s; }
.hero .tile-value { font-size: clamp(1.05rem, 4.4vw, 1.5rem); }

@media (min-width: 640px) {
  .hero-tiles { margin-top: -24vw; }
  .tiles.hero-tiles-grid { gap: 12px; }
  .hero .tile { padding: 18px 18px 20px; }
}
@media (min-width: 900px) {
  .tiles.hero-tiles-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-tiles { margin-top: -18vw; }
}
@media (min-width: 1100px) {
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero h1 { margin-top: 18px; font-size: clamp(2.6rem, 4.5vw, 4.3rem); }
  .hero .seg { margin-top: 24px; }
  .hero-figures { margin-top: 12px; }
  .hero-num { font-size: clamp(3.6rem, 6.6vw, 6.2rem); }
  .hero-cta { margin-top: 22px; }
  .hero-inner { flex: 1; display: flex; align-items: center; }
  .moon {
    position: absolute;
    right: -7vw;
    bottom: -2%;
    width: clamp(820px, 72vw, 1240px);
    margin: 0;
    z-index: -1;
  }
  .hero-tiles { margin-top: 32px; }
  .hero .tile-value { font-size: 1.5rem; }
}
@media (min-width: 1100px) and (max-height: 820px) {
  .hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); }
  .hero-num { font-size: clamp(3rem, 7vw, 5.6rem); }
  .moon { width: clamp(760px, 64vw, 1060px); }
}

/* ---------- Sections ---------- */
.sec { position: relative; padding-top: clamp(80px, 11vw, 150px); }
.sec-last { padding-bottom: clamp(64px, 8vw, 110px); }
.sec-head { max-width: 780px; }
.sec-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.sec-head p { margin-top: 16px; max-width: 64ch; font-size: 1.0625rem; color: var(--text-2); text-wrap: pretty; }
.sec-head + * { margin-top: 36px; }

.sec-bar {
  position: sticky;
  top: calc(var(--nav-h) + 22px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 40px 0 18px;
  pointer-events: none;
}
.sec-bar > * { pointer-events: auto; }

/* ---------- Segmented control (tabs) ---------- */
.seg {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), inset 0 0 0 1px var(--line);
}
.seg button {
  position: relative;
  z-index: 1;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .35s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { color: var(--bg-ink, #141B2D); }
.seg-thumb {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--tw, 0);
  transform: translateX(var(--tx, 0));
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFFFF, #ECE7DC);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -6px rgba(0, 0, 0, .45);
  transition: transform .55s var(--spring), width .45s var(--ease);
}
.seg:not(.ready) button[aria-selected="true"] { background: #F4F1EA; }
.is-light .sec .seg-thumb {
  background: linear-gradient(180deg, #24304D, #141B2D);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 16px -6px rgba(20, 27, 45, .5);
}
.is-light .sec .seg button[aria-selected="true"] { color: #F4F1EA; }
.is-light .sec .seg:not(.ready) button[aria-selected="true"] { background: #141B2D; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills .seg-thumb { display: none; }
.pills button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--line-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 600;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.pills button:hover { color: var(--text); }
.pills button[aria-selected="true"] { background: var(--text); color: var(--bg); box-shadow: none; }

.month-pick { position: relative; display: inline-block; }
.month-pick::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.month-pick select {
  appearance: none;
  min-height: 46px;
  padding: 0 44px 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), inset 0 0 0 1px var(--line);
  font-weight: 600;
}
.month-pick option { color: #141B2D; }

/* ---------- Tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.tile { padding: 18px 20px 20px; border-radius: var(--r-lg); min-width: 0; }
.tile dt { display: flex; align-items: center; gap: 12px; font-size: .8125rem; font-weight: 500; color: var(--text-2); line-height: 1.3; }
.tile dt small { display: block; margin-top: 2px; font-size: .75rem; font-weight: 400; color: var(--text-3); }
.tile-value {
  margin-top: 14px;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.tile-sub { margin-top: 6px; font-size: .8125rem; color: var(--text-3); line-height: 1.4; }
.tile-hl {
  background: linear-gradient(165deg, rgba(255, 90, 78, .2), rgba(255, 90, 78, .05) 60%, rgba(255, 90, 78, .1));
}
.tiles + .q-grid { margin-top: 16px; }
@media (min-width: 560px) { .tiles.tiles-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tiles.tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .tiles.tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* animated icons */
.ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--coral) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.ic .icon { width: 20px; height: 20px; overflow: visible; }
.ic .icon * { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.ic .a { transform-box: fill-box; transform-origin: center; }
.js-motion [data-reveal]:not(.is-in) .ic .icon * { stroke-dashoffset: 1; }
.js-motion [data-reveal] .ic .icon * { transition: stroke-dashoffset 1.2s var(--ease) calc(var(--i, 0) * 110ms + 150ms); }
.js-motion [data-reveal] .ic .icon g * { transition-delay: calc(var(--i, 0) * 110ms + 650ms); }

:is(.tile, .sip-lead, .disclaimer):hover .ic-inflow .a { animation: nudge-down .9s var(--ease); }
:is(.tile, .sip-lead, .disclaimer):hover .ic-trend .a { animation: nudge-up .9s var(--ease); }
:is(.tile, .sip-lead, .disclaimer):hover .ic-repeat .a { animation: spin 1.1s var(--ease); }
:is(.tile, .sip-lead, .disclaimer):hover .ic-spark .a { animation: pop .8s var(--spring); }
:is(.tile, .sip-lead, .disclaimer):hover .ic-drop .a { animation: pop .8s var(--spring); }
:is(.tile, .sip-lead, .disclaimer):hover .ic-vault .a { animation: spin .9s var(--ease); }
:is(.tile, .sip-lead, .disclaimer):hover .ic-users .a { animation: nudge-side .8s var(--ease); }
:is(.tile, .sip-lead, .disclaimer):hover .ic-grid .a { animation: pop .7s var(--spring); }
:is(.tile, .sip-lead, .disclaimer):hover .ic-layers .a { animation: nudge-down .8s var(--ease); }
:is(.tile, .sip-lead, .disclaimer):hover .ic-gauge .a { animation: needle 1s var(--ease); transform-box: view-box; transform-origin: 12px 16.5px; }
:is(.tile, .sip-lead, .disclaimer):hover .ic-building .a { animation: nudge-up .8s var(--ease); }
:is(.tile, .sip-lead, .disclaimer):hover .ic-shield .a { animation: pop .8s var(--spring); }
@keyframes nudge-down { 40% { transform: translateY(2.5px); } }
@keyframes nudge-up { 40% { transform: translate(1.5px, -1.5px); } }
@keyframes nudge-side { 40% { transform: translateX(1.5px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 40% { transform: scale(1.25); } }
@keyframes needle { 35% { transform: rotate(-70deg); } 70% { transform: rotate(12deg); } }

/* ---------- Deltas ---------- */
.delta { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta .tri { font-size: .72em; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--text-2); }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- Vessels (Q2 against Q1, indexed) ---------- */
.vessels {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 44px);
  align-items: center;
}
.vessels-copy h3 { font-size: clamp(1.3rem, 2.5vw, 1.95rem); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
.vessels-copy p { margin-top: 12px; color: var(--text-2); max-width: 54ch; }
.vessels-copy .legend { margin-bottom: 0; }
.vessels-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vessel { text-align: center; perspective: 900px; }
.vessel-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
}
.vessel figcaption { display: grid; gap: 3px; margin-top: 4px; }
.v-title { font-weight: 600; letter-spacing: -.01em; }
.v-move { font-size: .875rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.v-delta { font-size: .95rem; }
.v-shadow { fill: rgba(0, 0, 0, .32); }
.v-back { fill: rgba(255, 255, 255, .035); }
.v-mouth { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .2); stroke-width: 1; }
.liq-s1 { stop-color: var(--liq-1); }
.liq-s2 { stop-color: var(--liq-2); }
.liq-surface { fill: var(--liq-top); transform-box: fill-box; transform-origin: center; animation: slosh 5s ease-in-out infinite; }
.bub { fill: rgba(255, 255, 255, .6); transform-box: fill-box; animation: bubble 5s linear infinite; opacity: 0; }
.bub:nth-child(2) { animation-delay: 1.2s; animation-duration: 6s; }
.bub:nth-child(3) { animation-delay: 2.4s; }
.bub:nth-child(4) { animation-delay: 3.1s; animation-duration: 4.4s; }
.bub:nth-child(5) { animation-delay: .6s; animation-duration: 6.6s; }
.bub:nth-child(6) { animation-delay: 3.8s; animation-duration: 5.4s; }
.q1-ring { fill: none; stroke: var(--c-prev); stroke-width: 2.4; stroke-linecap: round; }
.gl-s1 { stop-color: rgba(255, 255, 255, .22); }
.gl-s2 { stop-color: rgba(255, 255, 255, .03); }
.gl-s3 { stop-color: rgba(255, 255, 255, 0); }
.gl-s4 { stop-color: rgba(255, 255, 255, .14); }
.v-outline { fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 1.2; }
.v-rim { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.4; }
.v-gloss { stroke: rgba(255, 255, 255, .4); stroke-width: 5; stroke-linecap: round; opacity: .55; }
.lead { fill: none; stroke: var(--text-3); stroke-width: 1; }
.lead-q1 { stroke: var(--c-prev); }
.v-lab { font-family: inherit; font-size: 17px; font-weight: 650; fill: var(--text); letter-spacing: -.02em; }
.v-lab-prev { font-weight: 500; fill: var(--text-2); }
.liquid { transition: transform 2.2s var(--ease) .25s; }
.js-motion .vessel:not(.is-in) .liquid { transform: translateY(270px); }
@keyframes slosh { 0%, 100% { transform: scaleY(1) translateX(0); } 50% { transform: scaleY(.72) translateX(2px); } }
@keyframes bubble {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: .8; }
  80% { opacity: .5; }
  100% { transform: translateY(-120px); opacity: 0; }
}
:root[data-theme="light"] .vessels .v-shadow, .is-light .vessels .v-shadow { fill: rgba(20, 27, 45, .14); }
.is-light .vessels .v-back { fill: rgba(20, 27, 45, .03); }
.is-light .vessels .v-mouth { fill: rgba(20, 27, 45, .03); stroke: rgba(20, 27, 45, .22); }
.is-light .vessels .v-outline { stroke: rgba(20, 27, 45, .32); }
.is-light .vessels .v-rim { stroke: rgba(20, 27, 45, .4); }
.is-light .vessels .v-gloss { stroke: rgba(255, 255, 255, .9); opacity: .8; }

@media (min-width: 900px) {
  .vessels { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; }
}

/* ---------- Charts ---------- */
.q-grid { display: grid; gap: 16px; }
.q-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 980px) {
  .q-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
.chart { padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-xl); min-width: 0; }
.chart-head h3, .insight h3, .table-tools h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.35; text-wrap: balance; }
.chart-head p { margin-top: 4px; font-size: .8125rem; color: var(--text-3); }
.chart-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: .8125rem; color: var(--text-3); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 16px; font-size: .8125rem; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.key { width: 10px; height: 10px; border-radius: 3px; background: var(--k); flex: none; }
.k-prev, .k-out { --k: var(--c-prev); }
.k-curr, .k-in { --k: var(--c-curr); }
.k-c1 { --k: var(--c1); } .k-c2 { --k: var(--c2); } .k-c3 { --k: var(--c3); }
.k-c4 { --k: var(--c4); } .k-c5 { --k: var(--c5); } .k-c6 { --k: var(--c6); }

.bar {
  display: block;
  height: 10px;
  width: calc(var(--v, 0) * 100%);
  min-width: 2px;
  border-radius: 0 4px 4px 0;
  background: var(--c-curr);
  transform-origin: left center;
  transition: transform 1.1s var(--ease) calc(var(--i, 0) * 45ms);
}
.bar[data-v="0"], .bar[data-v="0.00000"] { min-width: 0; width: 0; }
.b-prev, .b-out { background: var(--c-prev); }
.js-motion [data-reveal]:not(.is-in) .bar { transform: scaleX(0); }

.pair-rows, .div-rows, .bar-rows { display: grid; gap: 2px; }
.pair-row, .div-row, .bar-row {
  display: grid;
  align-items: center;
  gap: 4px 14px;
  margin: 0 -10px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background-color .2s;
}
.pair-row:hover, .div-row:hover, .bar-row:hover,
.pair-row:focus-visible, .div-row:focus-visible, .bar-row:focus-visible { background: var(--line-2); }
.pair-row { grid-template-columns: minmax(0, 1fr) auto; }
.pr-name, .dv-name, .br-name { min-width: 0; font-size: .875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-bars { grid-column: 1 / -1; grid-row: 2; display: grid; gap: 3px; }
.pr-bars .bar { height: 9px; }
.pr-val { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.pr-amt { font-size: .875rem; font-weight: 600; }
.pr-chg { font-size: .75rem; font-weight: 600; color: var(--text-3); min-width: 50px; text-align: right; }
.pr-chg.new { color: var(--accent-text); }
@media (min-width: 640px) {
  .pair-row { grid-template-columns: minmax(130px, 30%) minmax(0, 1fr) auto; }
  .pr-bars { grid-column: auto; grid-row: auto; }
  .pr-val { flex-direction: column; align-items: flex-end; gap: 0; min-width: 104px; }
}

.div-row { grid-template-columns: minmax(0, 1fr) auto; }
.dv-track {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  display: flex;
  align-items: center;
  height: 16px;
}
.dv-track::before {
  content: "";
  position: absolute;
  top: -3px; bottom: -3px;
  left: calc(var(--zero, 0) * 100%);
  width: 1px;
  background: var(--line);
}
.dv-neg { flex: 0 0 calc(var(--zero, 0) * 100%); display: flex; justify-content: flex-end; }
.dv-pos { flex: 1 1 auto; display: flex; }
.dv-track .bar { height: 12px; }
.b-out { border-radius: 4px 0 0 4px; transform-origin: right center; }
.dv-val { font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
@media (min-width: 640px) {
  .div-row { grid-template-columns: minmax(120px, 26%) minmax(0, 1fr) minmax(112px, auto); }
  .dv-track { grid-column: auto; grid-row: auto; }
}

.bar-row { grid-template-columns: minmax(0, 1fr) auto; }
.br-track { grid-column: 1 / -1; grid-row: 2; }
.br-track .bar { height: 14px; }
.br-val { font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .bar-row { grid-template-columns: minmax(150px, 34%) minmax(0, 1fr) auto; }
  .br-track { grid-column: auto; grid-row: auto; }
}

/* segmented whole-to-parts bar */
.segbar { display: flex; gap: 2px; height: 28px; margin: 16px 0 4px; }
.sb-part {
  flex: var(--v, 0) 1 0%;
  min-width: 4px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  border-radius: 4px;
  background: var(--k);
  overflow: hidden;
  transform-origin: left center;
  transition: transform .9s var(--ease) calc(var(--i, 0) * 70ms), filter .2s;
}
.sb-part:hover, .sb-part:focus-visible { filter: brightness(1.12); }
.sb-part b { font-size: .75rem; font-weight: 700; color: var(--k-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sb-part.no-label b { visibility: hidden; }
.sb-part.c1 { --k: var(--c1); --k-ink: var(--c1-ink); }
.sb-part.c2 { --k: var(--c2); --k-ink: var(--c2-ink); }
.sb-part.c3 { --k: var(--c3); --k-ink: var(--c3-ink); }
.sb-part.c4 { --k: var(--c4); --k-ink: var(--c4-ink); }
.sb-part.c5 { --k: var(--c5); --k-ink: var(--c5-ink); }
.sb-part.c6 { --k: var(--c6); --k-ink: var(--c6-ink); }
.js-motion [data-reveal]:not(.is-in) .sb-part { transform: scaleX(0); }
.segbar + .legend { margin-bottom: 0; }

.insight { padding: 22px; border-radius: var(--r-lg); min-width: 0; }
.insight-note { margin-top: 8px; font-size: .8125rem; color: var(--text-3); }
.insight .legend { margin-top: 12px; }
.growth-list { display: grid; gap: 2px; margin-top: 14px; }
.growth-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 -8px;
  padding: 7px 8px;
  border-radius: 10px;
}
.growth-list li:hover, .growth-list li:focus-visible { background: var(--line-2); }
.gl-name { font-size: .8125rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-val { font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.notes { display: grid; gap: 10px; margin-top: 12px; font-size: .875rem; color: var(--text-2); }
.notes li { padding-left: 14px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-text); }
.notes strong { color: var(--text); font-weight: 600; }

.nfo-list { display: grid; margin-top: 12px; font-size: .8125rem; }
.nfo-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line-2); color: var(--text-2); }
.nfo-list li:first-child { border-top: 0; }
.nfo-amt { flex: none; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.more summary, .table-view summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--line-2);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  list-style: none;
}
.more summary::-webkit-details-marker, .table-view summary::-webkit-details-marker { display: none; }
.more summary:hover, .table-view summary:hover { color: var(--text); }
.more[open] summary, .table-view[open] summary { margin-bottom: 8px; }

/* SIP columns */
.cols {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1.6vw, 18px);
  height: 250px;
  margin: 26px 0 36px;
  border-bottom: 1px solid var(--line);
}
.col {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  border-radius: 10px 10px 0 0;
  outline-offset: 2px;
}
.col-bar {
  width: min(46px, 72%);
  height: calc(var(--v, 0) * 190px);
  border-radius: 4px 4px 0 0;
  background: var(--muted-mark);
  transform-origin: bottom center;
  transition: transform 1.1s var(--ease) calc(var(--i, 0) * 60ms), background-color .25s;
}
.col:hover .col-bar, .col:focus-visible .col-bar { background: color-mix(in srgb, var(--muted-mark) 100%, var(--text) 18%); }
.col.is-curr .col-bar { background: var(--c-curr); }
.js-motion [data-reveal]:not(.is-in) .col-bar { transform: scaleY(0); }
.col-val { font-size: .75rem; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.col.is-curr .col-val { color: var(--text); }
.col-val.quiet { opacity: 0; transition: opacity .2s; }
.col:hover .col-val.quiet, .col:focus-visible .col-val.quiet { opacity: 1; }
.col-lab { position: absolute; bottom: -26px; font-size: .75rem; color: var(--text-3); }
@media (max-width: 520px) {
  .col-val { font-size: .6875rem; }
  .cols { height: 220px; }
  .col-bar { height: calc(var(--v, 0) * 160px); }
}

.sip-grid { display: grid; gap: 16px; }
@media (min-width: 980px) { .sip-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.sip-lead { padding: clamp(22px, 3.4vw, 40px); display: flex; flex-direction: column; }
.sip-kicker { display: flex; align-items: center; gap: 12px; font-size: .875rem; font-weight: 500; color: var(--text-2); }
.sip-num {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .12em;
  margin-top: 22px;
  font-size: clamp(3.2rem, 7.4vw, 5.6rem);
  font-weight: 230;
  line-height: 1;
  letter-spacing: -.055em;
}
.sip-num .rupee { font-size: .5em; font-weight: 300; align-self: flex-start; margin-top: .2em; color: var(--text-2); letter-spacing: 0; }
.sip-num .unit { font-size: 1.2rem; font-weight: 500; letter-spacing: -.01em; color: var(--text-2); margin-left: .2em; }
.sip-vs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 12px; color: var(--text-2); }
.sip-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.sip-facts dt { font-size: .75rem; color: var(--text-3); }
.sip-facts dd { margin-top: 2px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 26px;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.ext-link .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.ext-link:hover .icon { transform: translate(2px, -2px); }

/* ---------- Tables ---------- */
.table-block { margin-top: 16px; padding: clamp(16px, 2.4vw, 24px); border-radius: var(--r-xl); }
.table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; }
.table-tools h3 { flex: 1 1 260px; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--line-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-3);
  flex: 1 1 220px;
  max-width: 320px;
}
.search:focus-within { box-shadow: inset 0 0 0 2px var(--focus); }
.search .icon { width: 18px; height: 18px; flex: none; }
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: .9375rem;
}
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.table-count { font-size: .8125rem; color: var(--text-3); white-space: nowrap; }
.table-empty { padding: 18px 4px 4px; color: var(--text-2); }
.table-wrap {
  overflow: auto;
  max-height: 640px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.data-table th, .data-table td {
  padding: 11px 14px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-2);
}
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--table-head);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-2);
  vertical-align: bottom;
}
.data-table th.txt, .data-table tbody th, .data-table tfoot th { text-align: left; }
.data-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--row-bg);
  font-weight: 500;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-table thead th.txt { left: 0; z-index: 4; }
.data-table tbody tr:hover td, .data-table tbody tr:hover th { background-color: color-mix(in srgb, var(--row-bg) 90%, var(--text) 6%); }
.data-table td.new { color: var(--accent-text); font-weight: 600; }
.data-table tfoot th, .data-table tfoot td { font-weight: 650; border-bottom: 0; border-top: 1px solid var(--line); background: var(--table-head); position: sticky; bottom: 0; z-index: 2; }
.data-table tfoot th { left: 0; z-index: 3; }
.data-table tr[hidden] { display: none; }
.sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}
.sort:hover { color: var(--text); }
.sort-ic { width: 8px; height: 10px; position: relative; opacity: .45; }
.sort-ic::before, .sort-ic::after {
  content: "";
  position: absolute;
  left: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.sort-ic::before { top: 0; border-bottom: 4px solid currentColor; }
.sort-ic::after { bottom: 0; border-top: 4px solid currentColor; }
th[aria-sort] .sort-ic { opacity: 1; color: var(--accent-text); }
th[aria-sort="ascending"] .sort-ic::after, th[aria-sort="descending"] .sort-ic::before { opacity: .2; }
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 500;
  color: var(--text-3);
  box-shadow: inset 0 0 0 1px var(--line);
  vertical-align: 1px;
}
.tabpanel:focus-visible { outline-offset: 6px; border-radius: var(--r-xl); }
.tabpanel[hidden], .month-view[hidden] { display: none; }
.tabpanel.entering { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.table-block .tabpanel { margin-top: 4px; }
.empty { padding: 28px; border-radius: var(--r-lg); color: var(--text-2); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 32px; }
@media (min-width: 980px) {
  .about-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
  .about-grid .sec-head { position: sticky; top: calc(var(--nav-h) + 48px); }
  .about-grid .sec-head + * { margin-top: 0; }
}
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: var(--r-md); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.35; }
.chev {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--line-2);
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative;
  transition: transform .45s var(--spring), background-color .3s;
}
.chev::before {
  content: "";
  position: absolute;
  left: 50%; top: 46%;
  width: 7px; height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.faq-item[open] .chev { transform: rotate(180deg); background: var(--line); }
.faq-body { padding: 0 22px 20px; color: var(--text-2); }
.faq-body p + p { margin-top: 10px; }
.faq-body a { color: var(--accent-text); text-underline-offset: 3px; }
.faq-item::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

/* ---------- Disclaimer & footer ---------- */
.disclaimer { padding: clamp(24px, 4.4vw, 52px); }
.disc-head { display: flex; align-items: center; gap: 14px; }
.disc-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 620; letter-spacing: -.035em; }
.disc-body { margin-top: 10px; }
.disc-body p { margin-top: 14px; color: var(--text-2); }   /* runs the full width of the card */
.disc-body a { color: var(--accent-text); text-underline-offset: 3px; }
.disc-warn { padding: 14px 18px; border-radius: var(--r-sm); background: var(--line-2); box-shadow: inset 0 0 0 1px var(--line); }
.disc-warn strong { color: var(--text); font-weight: 600; font-size: 1rem; }
.disc-warn + .disc-warn { margin-top: 10px; }

.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line-2); }
.footer-grid { display: grid; gap: 16px 32px; align-items: center; }
.foot-brand { font-size: 1rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9rem; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.foot-meta { font-size: .8125rem; color: var(--text-3); }
.copyright { font-size: .8125rem; color: var(--text-3); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: auto 1fr auto; }
  .foot-links { justify-content: center; }
  .copyright { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line-2); }
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.9);
  transition: opacity .35s var(--ease), transform .45s var(--spring), visibility 0s .35s;
}
.to-top .icon { width: 20px; height: 20px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .45s var(--spring); }

/* ---------- Tooltip ---------- */
.tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  max-width: 280px;
  padding: 10px 13px;
  border-radius: 14px;
  background: var(--tip-bg);
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--text);
  pointer-events: none;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  font-variant-numeric: tabular-nums;
}
.tip strong { display: block; margin-bottom: 3px; font-size: .875rem; font-weight: 650; }
.tip span { display: block; color: var(--text-2); }

/* ---------- Motion & accessibility fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .bub { display: none; }
}
@media (forced-colors: active) {
  .glass, .seg, .btn-glass { border: 1px solid CanvasText; }
  .bar, .col-bar, .sb-part, .key { forced-color-adjust: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .seg, .btn-glass, .month-pick select { background: var(--row-bg); }
}
@media print {
  .site-nav, .atmos, .to-top, .hero-bg, .moon, .hero-cta, .tip, .search { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: 0; margin: 0; padding: 24px 0; background: none; color: #000; }
  .glass { background: #fff; box-shadow: none; border: 1px solid #ccc; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabpanel[hidden], .month-view[hidden] { display: block !important; }
  .table-wrap { max-height: none; overflow: visible; }
}

/* light theme: keep the liquid saturated under the glass highlight */
.is-light .vessels { --liq-1: #FF6A5E; --liq-2: #CF2E24; --liq-top: #FF9990; }
.is-light .vessels .v-glass { opacity: .4; }

/* phones: icon above label, horizon stays visible above the tiles, CTAs side by side */
@media (max-width: 560px) {
  .tile dt { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero .tile-value { margin-top: 10px; }
  .hero-tiles { margin-top: -19vw; }
  .btn { padding: 0 18px; font-size: .9rem; }
  .hero-cta { gap: 8px; }
  .hero-sub { font-size: .95rem; }
}

/* the floating segment bar is sticky only where there is room for it */
@media (max-width: 899px) {
  .sec-bar { position: relative; top: auto; }
}

/* scroll hint: a soft shadow on the right edge while more columns are off-screen */
.table-wrap {
  background:
    linear-gradient(to left, var(--row-bg) 40%, transparent) right center / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .2), transparent) right center / 12px 100% no-repeat scroll;
}
@media (max-width: 560px) {
  .data-table tbody th { max-width: 46vw; }
  .data-table th, .data-table td { padding: 10px 11px; }
}

/* ---------- Headline: two lines, allowed to run wider than the copy below it ---------- */
.hero-copy { max-width: 1000px; }
.hero-copy > :not(h1) { max-width: 620px; }
.hero h1 .h1-line { display: block; }
@media (max-width: 560px) {
  .hero h1 { font-size: 2.2rem; }
}

/* ---------- Small segmented toggle (Biggest movers) ---------- */
.seg.seg-sm {
  padding: 4px;
  background: var(--line-2);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.seg.seg-sm button { min-height: 36px; padding: 0 15px; font-size: .875rem; }
.seg.seg-sm .seg-thumb,
.is-light .sec .seg.seg-sm .seg-thumb {
  top: 4px;
  bottom: 4px;
  background: linear-gradient(180deg, #FFFFFF, #F1EDE4);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px -4px rgba(20, 27, 45, .35);
}
.seg.seg-sm button[aria-selected="true"],
.is-light .sec .seg.seg-sm button[aria-selected="true"] { color: #141B2D; }
.is-light .sec .seg.seg-sm:not(.ready) button[aria-selected="true"] { background: #fff; }

/* ---------- Biggest movers ---------- */
.movers-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.movers h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 650;
  letter-spacing: -.03em;
}
.burst { display: grid; place-items: center; color: var(--accent-text); }
.burst .icon { width: 24px; height: 24px; overflow: visible; }
.burst .icon * { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.js-motion [data-reveal]:not(.is-in) .burst .icon * { stroke-dashoffset: 1; }
.js-motion [data-reveal] .burst .icon * { transition: stroke-dashoffset .6s var(--ease); }
.burst path:nth-child(2) { transition-delay: 60ms; }
.burst path:nth-child(3) { transition-delay: 120ms; }
.burst path:nth-child(4) { transition-delay: 180ms; }
.burst path:nth-child(5) { transition-delay: 240ms; }
.burst path:nth-child(6) { transition-delay: 300ms; }
.burst path:nth-child(7) { transition-delay: 360ms; }
.burst path:nth-child(8) { transition-delay: 420ms; }
/* eight-fold symmetric, so a 90 degree turn lands exactly where it started */
.movers:hover .burst .icon, .movers:focus-within .burst .icon { animation: burst-turn 1.1s var(--spring); }
@keyframes burst-turn { to { transform: rotate(90deg); } }

.mover-rows { display: grid; gap: 2px; margin-top: 16px; }
.mover-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 -8px;
  padding: 8px;
  border-radius: 10px;
  transition: background-color .2s;
}
.mover-rows li:hover, .mover-rows li:focus-visible { background: var(--line-2); }
.mv-name { font-size: .9375rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-bar .bar { height: 12px; border-radius: 2px 6px 6px 2px; }
.mv-val { font-size: .9375rem; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-align: right; min-width: 6.5ch; }
.movers .insight-note { margin-top: 14px; }
.movers .tabpanel:focus-visible { outline-offset: 4px; border-radius: 12px; }

/* bars regrow whenever a tab brings their panel in */
@keyframes grow-x { from { transform: scaleX(0); } }
.js-motion .tabpanel.entering .bar,
.js-motion .tabpanel.entering .sb-part { animation: grow-x .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.mover-rows li { grid-template-columns: minmax(0, 1.2fr) minmax(48px, 1fr) auto; gap: 12px; }

/* headline accent: light true italic in Electric Coral (5.6:1 on the navy hero) */
.hero h1 .h1-em { font-style: italic; font-weight: 300; letter-spacing: -.035em; padding-right: .04em; color: var(--coral); }

/* ribbon wordmark: "Lens" in Electric Coral (brand name, same in both themes) */
.brand-accent { color: var(--coral); }

/* ---------- Moon layers ----------
   Parallax moves each layer (image, ripple, birds) rather than the container. */
.moon { transform: none; will-change: auto; z-index: auto; }
@media (min-width: 1100px) { .moon { z-index: auto; } }
.moon > img, .moon > canvas {
  transform: translate3d(var(--px), calc(var(--py) + var(--sy)), 0) scale(var(--ss));
  will-change: transform;
}
.moon > .moon-img { transform-origin: 50% 58.24%; }
.moon > .moon-sea { transform-origin: 50% 0; }
.moon::after { transform: translate(calc(-50% + var(--px)), calc(-50% + var(--py) + var(--sy))) scale(var(--ss)); }
/* animated flocks over the moon (see moonBirds in amfi.js) */
.moon-birds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.moon > .moon-birds { transform-origin: 50% 58.24%; }
.moon-birds.on { opacity: 1; }

/* ribbon wordmark: "Lens" in Electric Coral italic */
.brand-accent { font-style: italic; }

/* ---------- Feedback: dialog ---------- */
.fb-dialog {
  width: min(520px, 100% - 32px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.fb-dialog [hidden] { display: none !important; }
.fb-dialog::backdrop {
  background: rgba(8, 11, 22, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.fb-dialog[open] { animation: fb-in .5s var(--spring); }
.fb-dialog[open]::backdrop { animation: fb-fade .3s ease; }
@keyframes fb-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes fb-fade { from { opacity: 0; } }
.fb-card.glass {
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(22px, 4vw, 32px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}
.fb-close { position: absolute; top: 12px; right: 12px; }
.fb-head { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.fb-head h2 { font-size: 1.35rem; font-weight: 650; letter-spacing: -.02em; }
.fb-form { display: grid; gap: 16px; }
.fb-intro { margin-top: 12px; font-size: .9375rem; color: var(--text-2); }

/* topic chips */
.fb-topics { margin: 0; padding: 0; border: 0; min-width: 0; }
.fb-topics legend { padding: 0; margin-bottom: 8px; font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.fb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-chip { position: relative; cursor: pointer; }
.fb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--line-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.fb-chip:hover span { color: var(--text); }
.fb-chip input:checked + span {
  color: var(--text);
  background: color-mix(in srgb, var(--coral) 16%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--coral) 60%, transparent);
}
.fb-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* fields */
.fb-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .fb-row { grid-template-columns: 1fr 1fr; gap: 12px; } }
.fb-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.fb-field label, .fb-label-row { font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.fb-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fb-count { font-size: .75rem; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.fb-count.near { color: var(--down); }
.fb-field input, .fb-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--line-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font: inherit;
  font-size: .9375rem;
  font-weight: 400;
  transition: box-shadow .2s, background-color .2s;
}
.fb-field textarea { min-height: 112px; resize: vertical; }
.fb-field input::placeholder, .fb-field textarea::placeholder { color: var(--text-3); }
.fb-field input:focus, .fb-field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.fb-field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--down); }
.fb-err { font-size: .8125rem; font-weight: 600; color: var(--down); }
.fb-check {
  grid-template-columns: minmax(0, 1fr) 110px;
  align-items: center;
  column-gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.fb-check .fb-err { grid-column: 1 / -1; }
#fb-question { color: var(--text); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fb-submit { width: 100%; }
.fb-submit .icon { width: 17px; height: 17px; }
.fb-note { margin-top: -6px; font-size: .75rem; color: var(--text-3); text-align: center; }

/* thank-you */
.fb-done { padding: 18px 4px 4px; text-align: center; }
.fb-tick {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 6px auto 16px;
  border-radius: 50%;
  color: var(--up);
  background: color-mix(in srgb, var(--up) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 32%, transparent);
}
.fb-tick .icon { width: 30px; height: 30px; }
.fb-done h3 { font-size: 1.4rem; font-weight: 650; letter-spacing: -.02em; }
.fb-done p { margin-top: 8px; font-size: .9375rem; color: var(--text-2); }
.fb-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.fb-actions .btn { min-height: 44px; padding: 0 18px; font-size: .9rem; }
.fb-actions .icon { width: 17px; height: 17px; }
.fb-done .fb-small { margin-top: 14px; font-size: .8125rem; color: var(--text-3); }
.fb-email { font-weight: 600; color: var(--text-2); user-select: all; }
.fb-finish { min-width: 160px; margin-top: 22px; }
