/* Swatah — "Observatory" (Direction B). Self-hosted fonts only; no external requests. */
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Anek Devanagari"; src: url("fonts/anek-devanagari-devanagari-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #0C0F14;
  --night-2: #131821;
  --night-3: #1B2230;
  --line: #2A3242;
  --star: #F1EBE0;
  --body: #BDB6AA;
  --dim: #8E887D;
  --sand: #EE8A66;
  --sand-deep: #D2643F;
  --display: "Unbounded", "Arial Black", sans-serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
  --deva: "Anek Devanagari", sans-serif;
  --wrap: 78rem;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);
  --r: 28px;

  --p-saarthi: #86A9FF;
  --p-shahar: #FFC53D;
  --p-vidyarthi: #63D69C;
  --p-vidyalay: #52CFD8;
  --p-panchang: #FF86AE;
  --on-c: #0C1A3A;
  --on-c-dim: #1F2F57;
  --glass: rgba(12, 15, 20, .72);
  --glass-strong: rgba(12, 15, 20, .85);
  --prose: #CEC7BB;
  --wa-go: #4ADE80;
  --stars: none;
  --stars-opacity: 1;
  --moon-lit: #F1EBE0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--body); font-family: var(--sans); font-size: 1.1rem; line-height: 1.65; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; filter: var(--stars); opacity: var(--stars-opacity); background-image: radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 72% 9%, #fff6 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 42%, #fff7 50%, transparent 51%), radial-gradient(1px 1px at 33% 64%, #fff5 50%, transparent 51%), radial-gradient(1px 1px at 58% 82%, #fff6 50%, transparent 51%), radial-gradient(1.5px 1.5px at 6% 90%, #fff5 50%, transparent 51%), radial-gradient(1px 1px at 46% 30%, #fff4 50%, transparent 51%); }
body > * { position: relative; z-index: 1; }
::selection { background: var(--sand); color: var(--night); }
a { color: var(--star); text-decoration-color: var(--sand); text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: color .2s ease; }
a:hover { color: var(--sand); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--star); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; margin: 0; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--sand); color: var(--night); padding: .6rem 1rem; z-index: 50; }
.skip-link:focus { left: 1rem; top: 1rem; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.accent { color: var(--sand); }

/* Light theme — applied only by the on-page toggle; the default is dark. */
:root[data-theme="light"] {
    --night: #F6F1E8;
    --night-2: #FFFDF8;
    --night-3: #EFE7DA;
    --line: #DCD2C2;
    --star: #15171D;
    --body: #45413B;
    --dim: #6A645A;
    --sand: #B8482A;
    --sand-deep: #9A3A1F;
    --p-saarthi: #2B4FC2;
    --p-shahar: #8A5A00;
    --p-vidyarthi: #13734A;
    --p-vidyalay: #0A6670;
    --p-panchang: #B02A5F;
    --on-c: #F6F1E8;
    --on-c-dim: #D6DEF7;
    --glass: rgba(246, 241, 232, .8);
    --glass-strong: rgba(246, 241, 232, .9);
    --prose: #3A362F;
    --wa-go: #15803D;
    --stars: invert(1);
    --stars-opacity: .45;
  --moon-lit: #E9DDC4;
    color-scheme: light;
}

/* Theme toggle button (in the header). Shows the icon of the theme you'll switch TO. */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none; padding: 0; margin: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--night-2); color: var(--star); cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.site-header__end { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.theme-toggle:hover { color: var(--sand); border-color: var(--sand); }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* SVG colours follow the theme */
svg [stroke="#2A3242"] { stroke: var(--line); }
svg [fill="#F1EBE0"] { fill: var(--star); }
svg [stroke="#EE8A66"] { stroke: var(--sand); }
svg [fill="#86A9FF"] { fill: var(--p-saarthi); } svg [stroke="#86A9FF"] { stroke: var(--p-saarthi); }
svg [fill="#FFC53D"] { fill: var(--p-shahar); }
svg [fill="#63D69C"] { fill: var(--p-vidyarthi); }
svg [fill="#52CFD8"] { fill: var(--p-vidyalay); }
svg [fill="#FF86AE"] { fill: var(--p-panchang); }
svg [data-sky="moon"] { fill: var(--moon-lit); }


/* Draft banner (build.py, non-strict builds only) */
.draft-banner { background: var(--sand); color: var(--night); text-align: center; padding: .5rem 1rem; font-family: var(--mono); font-size: .85rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: .85rem; padding-bottom: .85rem; }
.lockup { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--star); }
.lockup:hover { color: var(--star); }
.lockup__name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.lockup__name small { font-family: var(--mono); font-weight: 400; font-size: .68rem; letter-spacing: .12em; color: var(--dim); margin-left: .45rem; text-transform: uppercase; }
.orbit-mark .om-orbit { transform-origin: 20px 20px; animation: spin 9s linear infinite; }
.site-nav ul { display: flex; gap: .3rem; margin: 0; padding: .3rem; list-style: none; border: 1px solid var(--line); border-radius: 999px; background: var(--night-2); }
.site-nav a { display: inline-block; padding: .4rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--body); transition: background-color .2s ease, color .2s ease; }
.site-nav a:hover { color: var(--star); background: var(--night-3); }
.site-nav a[aria-current="page"] { background: var(--sand); color: var(--night); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-r { to { transform: rotate(-360deg); } }

/* Hero */
.hero { position: relative; min-height: min(92vh, 52rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
.hero__coords { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 2rem; }
.hero__coords span::before { content: "+ "; color: var(--sand); }
.hero h1 { font-size: clamp(2.5rem, 6.6vw, 5.8rem); }
.hero h1 .accent { display: inline-block; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 34rem; margin-top: 1.8rem; color: var(--body); }
.orrery { width: 100%; max-width: 40rem; justify-self: center; aspect-ratio: 1; }
.orrery svg { width: 100%; height: 100%; overflow: visible; }
.orrery .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.orrery .ring--dash { stroke-dasharray: 2 6; }
.orrery .spin { transform-origin: 300px 300px; }
.orrery .s1 { animation: spin 30s linear infinite; }
.orrery .s2 { animation: spin 46s linear infinite; }
.orrery .s3 { animation: spin-r 62s linear infinite; }
.orrery .s4 { animation: spin 84s linear infinite; }
.orrery .s5 { animation: spin-r 110s linear infinite; }
.orrery .s0 { animation: spin 22s linear infinite; }
.orrery text { font-family: var(--mono); font-size: 13px; fill: var(--body); letter-spacing: .06em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .65rem; padding: .95rem 1.5rem; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 1.02rem; text-decoration: none; border: 1px solid var(--line); color: var(--star); background: var(--night-2); transition: background-color .25s ease, color .25s ease, transform .25s ease, border-color .25s ease; }
.btn:hover { transform: translateY(-2px); border-color: var(--sand); color: var(--star); }
.btn--hot { background: var(--sand); border-color: var(--sand); color: var(--night); }
.btn--hot:hover { background: var(--star); border-color: var(--star); color: var(--night); }
.btn .arrow { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(12,15,20,.12); transition: transform .25s ease; }
.btn:hover .arrow { transform: rotate(-45deg); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }

/* Ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--night-2); }
.ticker__track { display: flex; width: max-content; gap: 3rem; padding: 1.1rem 0; animation: ticker 40s linear infinite; font-family: var(--display); font-weight: 500; font-size: clamp(1rem, 2vw, 1.4rem); color: var(--star); white-space: nowrap; }
.ticker__track span::after { content: "◦"; color: var(--sand); margin-left: 3rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Name */
.name { padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; }
.name__deva { font-family: var(--deva); font-weight: 700; font-size: clamp(6rem, 20vw, 15rem); line-height: 1; margin: 0; color: var(--star); }
.name__deva span { color: var(--sand); }
.name p { font-size: 1.2rem; }
.name em { color: var(--star); font-style: normal; font-weight: 600; }

/* Section heads */
.section { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.kicker { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.kicker::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; border: 2px solid var(--sand); }
.section h2 { font-size: clamp(2rem, 5vw, 3.8rem); max-width: 18ch; }
.section__intro { max-width: 36rem; margin-top: 1.2rem; }

/* Work panels */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.panel { position: relative; overflow: hidden; padding: 2rem; border-radius: var(--r); background: var(--night-2); border: 1px solid var(--line); transition: border-color .3s ease, transform .3s ease; }
.panel:hover { border-color: var(--sand); transform: translateY(-4px); }
.panel__big { font-family: var(--display); font-weight: 800; font-size: 5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line); position: absolute; right: 1.5rem; top: 1rem; transition: -webkit-text-stroke-color .3s ease; }
.panel:hover .panel__big { -webkit-text-stroke-color: var(--sand); }
.panel h3 { font-size: 1.5rem; margin: 3.5rem 0 1rem; max-width: 14ch; }

/* Product dials */
.dials { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.dial { display: flex; flex-direction: column; gap: .8rem; padding: 1.3rem; border-radius: var(--r); background: var(--night-2); border: 1px solid var(--line); text-decoration: none; color: var(--body); transition: border-color .3s ease, transform .3s ease, background-color .3s ease; }
a.dial:hover { color: var(--body); }
.dial:hover { border-color: var(--c); transform: translateY(-4px); }
.dial svg { width: 100%; height: auto; }
.dial .d-ring { fill: none; stroke: var(--c); stroke-width: 3; stroke-dasharray: 230 60; transform-origin: 50px 50px; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.dial:hover .d-ring { transform: rotate(120deg); }
.dial .d-ticks { stroke: var(--line); stroke-width: 1; }
.dial__name { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--star); letter-spacing: -0.02em; }
.dial p { font-size: .95rem; margin: 0; }

/* Status */
.status { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--body); }
.status--live { border-color: var(--p-vidyarthi); color: var(--p-vidyarthi); }
.status--live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--p-vidyarthi); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* CTA seal */
.cta { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 2rem 4rem; align-items: center; padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); }
.seal { position: relative; display: grid; place-items: center; width: 13rem; height: 13rem; border-radius: 50%; background: var(--sand); color: var(--night); text-decoration: none; transition: transform .4s cubic-bezier(.2,.7,.2,1), background-color .3s ease; }
.seal:hover { transform: scale(1.06); background: var(--star); color: var(--night); }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 20s linear infinite; }
.seal text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; fill: var(--night); }
.seal__arrow { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; }

/* Page heads */
.pagehead { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.pagehead h1 { font-size: clamp(2.6rem, 7.5vw, 6.2rem); max-width: 14ch; }

/* Products bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(15rem, auto); gap: 1.1rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 1.8rem; border-radius: var(--r); background: var(--night-2); border: 1px solid var(--line); transition: border-color .3s ease, transform .3s ease; }
.tile:hover { border-color: var(--c); transform: translateY(-4px); }
.tile > *:not(.tile__ring) { position: relative; z-index: 1; }
.tile__ring { position: absolute; right: -6.5rem; top: -6.5rem; width: 13rem; height: 13rem; border-radius: 50%; border: 3px solid var(--c); border-top-color: transparent; opacity: .55; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile__ring { opacity: 1; }
.tile__ring::after { content: ""; position: absolute; top: 12%; left: 12%; width: .9rem; height: .9rem; border-radius: 50%; background: var(--c); }
.tile:hover .tile__ring { transform: rotate(140deg); }
.tile__top { padding-right: 3.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.tile h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .9rem; max-width: 12ch; }
.tile p { max-width: 26rem; position: relative; }
.tile__for { margin-top: auto; padding-top: 1rem; position: relative; }
.tile__for .mono { display: block; margin-bottom: .2rem; }
.tile__for span:last-child { color: var(--star); }
.tile--hero { grid-column: span 2; grid-row: span 2; background: var(--c); border-color: var(--c); color: var(--on-c); }
.tile--hero h2 { color: var(--night); font-size: clamp(2.4rem, 6vw, 5rem); max-width: 10ch; }
.tile--hero .mono { color: var(--on-c-dim); }
.tile--hero .tile__for span:last-child { color: var(--night); }
.tile--hero .status--live { border-color: var(--night); color: var(--night); }
.tile--hero .status--live::before { background: var(--night); }
.tile--hero .tile__ring { border-color: var(--night); border-top-color: transparent; width: 26rem; height: 26rem; right: -7rem; top: auto; bottom: -7rem; opacity: .22; }
.tile--hero .tile__ring::after { background: var(--night); }
.tile--hero:hover { border-color: var(--star); }
.tile--hero .btn { margin-top: 1.8rem; width: fit-content; background: var(--night); border-color: var(--night); color: var(--star); position: relative; }
.tile--hero .btn:hover { background: var(--star); color: var(--night); }
.tile--wide { grid-column: span 2; }

/* Contact */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.big-link { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; min-height: 22rem; padding: 2rem; border-radius: var(--r); text-decoration: none; color: var(--night); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.big-link:hover { transform: translateY(-6px) rotate(-.6deg); color: var(--night); }
.big-link--mail { background: var(--sand); }
.big-link--wa { background: var(--p-vidyarthi); }
.big-link .mono { color: color-mix(in srgb, var(--night) 80%, transparent); }
.big-link__value { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.big-link__go { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--night); color: var(--star); font-size: 1.4rem; transition: transform .3s ease; }
.big-link:hover .big-link__go { transform: rotate(-45deg) scale(1.1); }
.big-link__circle { position: absolute; right: -5rem; top: -5rem; width: 16rem; height: 16rem; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--night) 22%, transparent); }
.callout { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.5rem; padding: 1.3rem 1.5rem; border-radius: var(--r); border: 1px dashed var(--line); max-width: 46rem; }
.callout p { margin: 0; }

/* Legal */
.chips { position: sticky; top: 4.4rem; z-index: 10; padding: .8rem 0; background: var(--glass-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.chips ol { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.chips a { display: inline-block; white-space: nowrap; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; color: var(--body); transition: border-color .2s ease, color .2s ease; }
.chips a:hover { border-color: var(--sand); color: var(--star); }
.doc { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 2.5rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose { max-width: 44rem; color: var(--prose); }
.prose h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: 3rem 0 1rem; scroll-margin-top: 9rem; display: flex; gap: .9rem; align-items: baseline; }
.prose h2::before { content: attr(data-n); font-family: var(--mono); font-weight: 400; font-size: .8rem; color: var(--sand); letter-spacing: .08em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .6rem; }
.prose li::marker { color: var(--sand); }
.prose strong { color: var(--star); }
.stamp { display: inline-block; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); }
.card-note { padding: 1.4rem 1.6rem; border-radius: 20px; background: var(--night-2); border: 1px solid var(--line); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--night-2); overflow: hidden; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem 3rem; padding-top: 3.5rem; padding-bottom: 2rem; font-size: .98rem; }
.site-footer h2 { font-family: var(--mono); font-weight: 400; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer__legal p { margin-bottom: .35rem; }
.site-footer__entity { color: var(--star); font-weight: 600; }
.giant { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 21vw, 19rem); line-height: .8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--line); margin: 0 0 -.06em; padding: 0 var(--gutter); white-space: nowrap; user-select: none; }
.site-footer__base { border-top: 1px solid var(--line); }
.site-footer__base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-top: 1rem; padding-bottom: 1.2rem; }

/* Reveal */
.reveal { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .22s; } .d3 { animation-delay: .36s; } .d4 { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Orrery legend */
.orrery-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; justify-self: center; width: 100%; max-width: 40rem; }
.orrery .ring { transition: stroke .3s ease, stroke-width .3s ease, opacity .3s ease; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.legend a { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; text-decoration: none; color: var(--body); transition: border-color .2s ease, color .2s ease; }
.legend a::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); }
.legend a:hover, .legend a:focus-visible { border-color: var(--c); color: var(--star); }
.legend .mono { font-size: .68rem; color: var(--p-vidyarthi); }
.orrery-wrap:has(.legend a:hover) .ring { opacity: .3; }
.orrery-wrap:has([data-o="1"]:hover) .ring-1 { stroke: var(--p-saarthi); stroke-width: 2.5; opacity: 1; }
.orrery-wrap:has([data-o="2"]:hover) .ring-2 { stroke: var(--p-shahar); stroke-width: 2.5; opacity: 1; }
.orrery-wrap:has([data-o="3"]:hover) .ring-3 { stroke: var(--p-vidyarthi); stroke-width: 2.5; opacity: 1; }
.orrery-wrap:has([data-o="4"]:hover) .ring-4 { stroke: var(--p-vidyalay); stroke-width: 2.5; opacity: 1; }
.orrery-wrap:has([data-o="5"]:hover) .ring-5 { stroke: var(--p-panchang); stroke-width: 2.5; opacity: 1; }

/* Tonight's sky */
.sky { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.sky[hidden] { display: none; }
.sky__moon svg { width: 100%; height: auto; filter: drop-shadow(0 0 40px rgba(241, 235, 224, .12)); }
.sky h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
.sky h2 .accent { display: block; font-weight: 500; font-size: .55em; margin-top: .5rem; letter-spacing: -0.02em; }
.readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 1.5rem; max-width: 36rem; }
.readings div { padding: 1rem 1.1rem; border-radius: 18px; border: 1px solid var(--line); background: var(--night-2); }
.readings dd { margin: .35rem 0 0; font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: var(--star); letter-spacing: -0.02em; }
.sky__note { font-size: .95rem; max-width: 38rem; color: var(--dim); margin: 0; }
.tile__sky { margin: 0 0 .6rem; color: var(--p-panchang); position: relative; z-index: 1; }
.tile__sky[hidden] { display: none; }

/* Spotlight */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem 3rem; padding: clamp(1.6rem, 4vw, 3rem); border-radius: var(--r); border: 1px solid var(--line); background: var(--night-2); position: relative; overflow: hidden; }
.spot::after { content: ""; position: absolute; left: -13rem; bottom: -15rem; width: 22rem; height: 22rem; border-radius: 50%; border: 2px solid var(--c); border-right-color: transparent; opacity: .4; }
.spot > * { position: relative; z-index: 1; }
.spot h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 1.2rem 0 1rem; color: var(--c); }
.spot__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; counter-reset: none; }
.spot__steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .2rem 1rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--night); border: 1px solid var(--line); transition: border-color .25s ease, transform .25s ease; }
.spot__steps li:hover { border-color: var(--c); transform: translateX(6px); }
.spot__steps .mono { grid-row: span 2; color: var(--c); padding-top: .2rem; }
.spot__steps strong { color: var(--star); font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }
.spot__steps span:last-child { font-size: .98rem; }

/* 404 */
.lost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem 4rem; align-items: center; min-height: 70vh; padding-top: 3rem; padding-bottom: 4rem; }
.lost h1 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); }
.lost__orbit svg { width: 100%; max-width: 26rem; height: auto; overflow: visible; }
.lost__spin { transform-origin: 200px 200px; animation: spin 14s linear infinite; }
.lost__drift { animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(60px, -40px); opacity: .3; } }

/* Scroll-driven reveals where supported */
@supports (animation-timeline: view()) {
  .sd { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
}

/* Product pages */
.pp .status { border-color: var(--c); color: var(--c); }
.accent-c { color: var(--c); }
.pp-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.pp-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.6rem; }
.pp-crumb a { color: var(--body); }
.pp-hero h1 { font-size: clamp(2.2rem, 6.2vw, 5.6rem); color: var(--c); }
.pp-blurb { font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 2.2vw, 1.5rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--star); max-width: 34rem; margin-top: 1.4rem; }
.pp .lede { margin-top: 1rem; }
.btn--c { background: var(--c); border-color: var(--c); color: var(--night); }
.btn--c:hover { background: var(--star); border-color: var(--star); color: var(--night); }
.pp-orbit { justify-self: center; width: 100%; max-width: 24rem; }
.pp-orbit svg { width: 100%; height: auto; overflow: visible; }
.pp-orbit text { font-family: var(--display); font-weight: 800; font-size: 34px; fill: var(--star); }
.pp-spin { transform-origin: 200px 200px; animation: spin 26s linear infinite; }
.pp-spin-slow { transform-origin: 200px 200px; animation: spin-r 48s linear infinite; }
.pp-sky { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-top: 1rem; padding: 1.3rem 1.5rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--night-2); }
[data-sky-panel][hidden] { display: none; }
.pp-sky[hidden] { display: none; }
.pp-sky svg { width: 7rem; height: auto; }
.pp-sky h2 { font-size: clamp(1.3rem, 3vw, 2rem); margin: .3rem 0 .5rem; }
.pp-sky p { margin: 0; }
.pp-sky strong { color: var(--star); }
.pp-points { margin-top: 2rem; max-width: 52rem; --c: inherit; }
.pp .spot__steps .mono { color: var(--c); }
.pp .spot__steps li:hover { border-color: var(--c); }
.pp-who { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.6rem; }
.pp-who ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.pp-who li { padding: .3rem .85rem; border-radius: 999px; border: 1px solid var(--c); color: var(--star); font-size: .92rem; }
.interest { position: relative; overflow: hidden; padding: clamp(1.6rem, 4vw, 3rem); border-radius: var(--r); background: var(--night-2); border: 1px solid var(--c); }
.interest::after { content: ""; position: absolute; right: -9rem; top: -9rem; width: 18rem; height: 18rem; border-radius: 50%; border: 2px solid var(--c); border-bottom-color: transparent; opacity: .35; }
.interest > * { position: relative; z-index: 1; }
.interest h2 { font-size: clamp(1.8rem, 4.4vw, 3.2rem); }
.asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.ask { display: flex; flex-direction: column; gap: .9rem; padding: 1.2rem; border-radius: 22px; background: var(--night); border: 1px solid var(--line); text-decoration: none; color: var(--body); transition: border-color .25s ease, transform .25s ease, background-color .25s ease; }
.ask:hover { border-color: #25D366; transform: translateY(-4px); color: var(--body); }
.ask__label { font-family: var(--display); font-weight: 500; font-size: 1.08rem; color: var(--star); letter-spacing: -0.02em; }
.ask__bubble { position: relative; align-self: flex-start; background: #005C4B; color: #E9EDEF; padding: .7rem .9rem; border-radius: 4px 14px 14px 14px; font-size: .92rem; line-height: 1.4; }
.ask__go { margin-top: auto; color: var(--wa-go); }
.ask:hover .ask__go span { display: inline-block; transform: translateX(4px); transition: transform .2s ease; }
.interest__alt { margin: 1.6rem 0 .4rem; }
.interest__note { font-size: .92rem; color: var(--dim); max-width: 44rem; margin: 0; }
.pp-next { display: flex; flex-wrap: wrap; gap: .6rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.pp-next a { display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--star); font-weight: 600; transition: border-color .2s ease, transform .2s ease; }
.pp-next a:hover { border-color: var(--c); transform: translateY(-2px); color: var(--star); }
.pp-next .mono { color: var(--c); }
.tile__more { position: relative; z-index: 1; margin-top: 1.2rem; font-weight: 600; color: var(--c); text-decoration-color: var(--c); width: fit-content; }
.tile__more:hover { color: var(--star); }

@media (max-width: 1080px) {
  .dials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero, .name, .work, .cta, .split, .site-footer__grid, .sky, .spot, .lost, .pp-hero, .asks { grid-template-columns: minmax(0, 1fr); }
  .pp-orbit { max-width: 14rem; order: -1; justify-self: start; }
  .sky__moon { max-width: 12rem; }
  .readings { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .orrery-wrap { order: -1; }
  .hero { min-height: 0; }
  .orrery { max-width: 22rem; order: -1; }
  .dials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--hero, .tile--wide { grid-column: auto; grid-row: auto; }
  .tile--hero { min-height: 26rem; }
  .seal { width: 10rem; height: 10rem; }
}
@media (max-width: 480px) {
  body { font-size: 1.04rem; }
  .site-header__inner { flex-direction: column; align-items: flex-start; }
  .site-nav a { padding: .35rem .8rem; }
  .dials { grid-template-columns: minmax(0, 1fr); }
  .big-link { min-height: 16rem; padding: 1.5rem; }
  .chips { top: 7.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Colour and spacing classes (the site's CSP blocks inline style attributes) */
.c-saarthi { --c: var(--p-saarthi); }
.c-shahar { --c: var(--p-shahar); }
.c-vidyarthi { --c: var(--p-vidyarthi); }
.c-vidyalay { --c: var(--p-vidyalay); }
.c-panchang { --c: var(--p-panchang); }
.c-fill { fill: var(--c); }
.c-stroke { stroke: var(--c); }
.pt-0 { padding-top: 0; }
.pt-s { padding-top: clamp(2rem, 5vw, 4rem); }
.pb-l { padding-bottom: clamp(3rem, 7vw, 5rem); }

/* Orrery and moon parts emitted by build.py (classes, so the CSP needs no inline styles) */
.orrery .halo { fill: none; stroke: var(--c); stroke-width: 2; opacity: .5; }
.orrery .crosshair { fill: none; stroke: var(--line); stroke-width: 1; }
.orrery .core { fill: none; stroke: var(--sand); stroke-width: 14; stroke-dasharray: 210 66.5; }
.moon-disc { fill: #262E3D; stroke: #3A4458; stroke-width: 1; }
.moon-ring { fill: none; stroke: var(--line); stroke-dasharray: 2 6; }
