/* ārambh, coming soon (redesigned on 2026-11-23, from the brand kit in brand/): one stage, five scenes in the same
   place. The kolam and ārambh's dictionary entry, which moves on by itself; two questions, each with its own drawing
   (the Moon on its round of the 27 nakshatras; the planets on their orbits); the email under the rising sun and the
   day's fifteen muhurtas; then "You're in", the kolam drawing itself. Everything else is ārambh's own (app.css:
   the app's styles, as many of them as these pages use). Sizes in rem, hairlines in px. */

:root {
  /* the drawings' box, and the opening's mark drawn at that size so it only moves into place */
  --art: min(calc(68 * var(--vw)), 20rem);
  --mark-box: var(--art);
  /* Meta's glyphs, each in its brand pack's own colour: black on the light ground, white on the dark */
  --wa-glyph: #111b21;
  --ig-glyph: #000000;
}

:root[data-theme="dark"] {
  --wa-glyph: #ffffff;
  --ig-glyph: #ffffff;
}

:root.w-ge880 {
  --art: 23rem;
}

/* ---------- the page: the top, the stage in the middle of the room, the foot ---------- */

.view {
  display: flex;
  flex-direction: column;
}

.soon-stage {
  display: grid;
  gap: 1.75rem;
}

/* (in the middle of the room: above app.css's .view > :first-child, which takes a first child's top margin away) */
.view > .soon-stage:first-child {
  margin-block: auto;
}

/* wide: the drawing at the left, the words at the right */
:where(.w-ge880) .app {
  max-width: 64rem;
}

:where(.w-ge880) .soon-stage {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
}

/* Held (fit.js): the stage stays where the fitting put it, and the room above the foot takes whatever a browser's
   bar gives or takes (owner, 2026-11-23). */
.held body,
.held .app {
  min-height: var(--live);
}

.held .view {
  flex: none;
}

.held .view > .soon-stage:first-child {
  margin-top: var(--way-top);
  margin-bottom: 0;
}

.held .footer {
  margin-top: auto;
}

/* the logo and word at the top left, in the page itself (the app's top bar without its ground, scrolling with the
   page); one tap on the logo makes its mark breathe once, two switch light and dark */
.soon-top {
  position: static;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.soon-top .brand {
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.brand.blip .mark {
  animation: soon-blip .5s ease;
}

@keyframes soon-blip {
  40% { transform: scale(1.14); }
}

/* the opening: until the mark has landed the words and the foot wait unseen, then come in */
.mark-landing .soon-scenes,
.mark-landing .soon-top,
.mark-landing #footer {
  opacity: 0;
}

.statement-in .soon-scenes,
.statement-in .soon-top,
.statement-in #footer {
  transition: opacity .5s ease;
}

/* ---------- the drawings ---------- */

.soon-art {
  position: relative;
  justify-self: center;
  width: var(--art);
  height: var(--art);
}

.soon-art > .hero-mark.is-statement,
.soon-art > .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  top: 0;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}

.soon-art > .art {
  overflow: visible;
  opacity: 0;
  transform: scale(.94);
}

[data-stage]:not([data-stage="intro"]) .soon-art > .hero-mark {
  opacity: 0;
  transform: scale(.94);
}

[data-stage="horoscope"] .art-moon,
[data-stage="stars"] .art-orbits,
[data-stage="email"] .art-sun,
[data-stage="done"] .art-kolam {
  opacity: 1;
  transform: none;
}

/* the Moon on its round of the 27 nakshatras: one a second, each lighting as the Moon passes */
.art-moon .track {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.art-moon .naks circle {
  fill: var(--ink);
  opacity: .22;
}

.art-moon .moon {
  fill: var(--ink);
}

.art-moon .earth {
  fill: var(--accent);
}

.art-moon .moon-way,
.art-orbits .planet,
.art-orbits .pulse {
  transform-origin: 160px 160px;
}

[data-stage="horoscope"] .art-moon .moon-way {
  animation: soon-turn 27s linear infinite;
}

[data-stage="horoscope"] .art-moon .naks circle {
  animation: soon-nak 27s linear infinite;
  animation-delay: calc(var(--i) * 1s);
}

/* an answer picked: every nakshatra lights in one quick wave */
[data-stage="horoscope"] .art-moon.lit .naks circle {
  animation: soon-wave .7s ease both;
  animation-delay: calc(var(--i) * 18ms);
}

@keyframes soon-turn {
  to { transform: rotate(360deg); }
}

@keyframes soon-nak {
  0% { opacity: 1; fill: var(--accent); }
  9% { opacity: .22; fill: var(--ink); }
  100% { opacity: .22; fill: var(--ink); }
}

@keyframes soon-wave {
  45% { opacity: 1; fill: var(--accent); }
}

/* the planets, each at its own pace; an answer picked, they line up (soon.js) */
.art-orbits .rings circle {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.art-orbits .sun {
  fill: var(--marigold);
}

.art-orbits .pulse {
  fill: none;
  stroke: var(--marigold);
  stroke-width: 1.5;
  opacity: 0;
}

.art-orbits .p-green {
  fill: var(--accent);
}

.art-orbits .p-ink {
  fill: var(--ink);
}

.art-orbits .p-gold {
  fill: var(--marigold);
}

[data-stage="stars"] .art-orbits .planet {
  animation: soon-turn var(--t) linear infinite;
  animation-delay: var(--at);
}

[data-stage="stars"] .art-orbits .pulse {
  animation: soon-pulse 3.2s ease-out infinite;
}

@keyframes soon-pulse {
  0% { opacity: .55; transform: scale(1); }
  100% { opacity: 0; transform: scale(5.6); }
}

/* the sun rising over the day's fifteen muhurtas; the eighth, Abhijit, in marigold, glowing once the email reads
   right */
.art-sun .horizon {
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: .55;
}

.art-sun .disc {
  fill: var(--marigold);
}

.art-sun .ticks line {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: .22;
}

.art-sun .ticks .abhijit {
  stroke: var(--marigold);
  stroke-width: 3;
  opacity: 1;
}

[data-stage="email"] .art-sun .disc {
  animation: soon-rise 1.6s cubic-bezier(.2, .7, .2, 1) both;
}

[data-stage="email"] .art-sun .ticks line {
  animation: soon-tick .5s ease both;
  animation-delay: calc(.6s + var(--i) * 70ms);
}

[data-stage="email"] .art-sun.ready .ticks .abhijit {
  animation: soon-glow 1.4s ease-in-out infinite;
}

@keyframes soon-rise {
  from { transform: translateY(64px); }
}

@keyframes soon-tick {
  from { opacity: 0; }
}

@keyframes soon-glow {
  50% { opacity: .35; }
}

/* the kolam drawing itself: its two lines, then its five rings, then the dots */
.art-kolam {
  color: var(--accent);
}

.art-kolam .k-line,
.art-kolam .k-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.art-kolam .k-dot {
  fill: currentColor;
  opacity: 0;
}

[data-stage="done"] .art-kolam .k-line {
  animation: soon-draw 1.8s cubic-bezier(.6, 0, .3, 1) .25s forwards;
}

[data-stage="done"] .art-kolam .k-ring {
  animation: soon-draw .6s ease 1.7s forwards;
}

[data-stage="done"] .art-kolam .k-dot {
  animation: soon-dot .45s ease 2.1s forwards;
}

@keyframes soon-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes soon-dot {
  to { opacity: 1; }
}

/* ---------- the scenes: one cell, the one in hand shown ---------- */

.soon-scenes {
  display: grid;
  min-width: 0;
}

.scene {
  grid-area: 1 / 1;
  align-self: start;
  display: grid;
  gap: 1rem;
  min-width: 0;
  text-align: start;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

.scene:not(.is-on) {
  visibility: hidden;
  opacity: 0;
  transform: translateY(.75rem);
  pointer-events: none;
}

.scene.gone {
  transform: translateY(-.75rem);
}

.scene.is-on {
  transition: opacity .38s ease .14s, transform .38s cubic-bezier(.2, .7, .2, 1) .14s, visibility 0s;
}

/* the dictionary entry, its time running out in a hairline under it */
.scene-intro {
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.soon-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  justify-self: start;
  margin: 0;
  padding: .375rem .75rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: calc(.8125rem * var(--fs, 1));
  font-weight: 600;
}

.soon-chip .live {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
  animation: soon-live 2.2s ease-in-out infinite;
}

@keyframes soon-live {
  50% { opacity: .35; transform: scale(.75); }
}

.define {
  display: grid;
  gap: .5rem;
}

.define-word {
  margin: 0;
  font-family: var(--page);
  font-size: calc(3rem * var(--fs, 1));
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
}

.define-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .625rem;
  margin: 0;
  color: var(--muted);
  font-size: calc(.9375rem * var(--fs, 1));
}

.define-meta [lang="sa"] {
  color: var(--ink);
  font-size: 1.12em;
}

.define-senses {
  display: grid;
  gap: .25rem;
  margin: .25rem 0 0;
  padding-inline-start: 1.25rem;
  font-size: calc(1.0625rem * var(--fs, 1));
  line-height: 1.45;
}

.define-senses li::marker {
  color: var(--accent);
  font-weight: 700;
}

.define-eg {
  margin: .125rem 0 0;
  color: var(--muted);
  font-size: calc(.9375rem * var(--fs, 1));
}

.define-eg i {
  color: var(--ink);
}

.intro-time {
  width: 100%;
  max-width: 12rem;
  height: 2px;
  margin-top: .375rem;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.intro-time > span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.intro-run .intro-time > span {
  animation: soon-time 8s linear forwards;
}

@keyframes soon-time {
  to { transform: scaleX(1); }
}

/* a question: Back and where it stands at the top, a true fact, the question a step larger than its answers, a
   clear 16px over them */
.scene-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2rem;
}

.soon-back {
  display: inline-flex;
  align-items: center;
  gap: .125rem;
  margin-inline-start: -.5rem;
  padding: .375rem .625rem .375rem .25rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: calc(.875rem * var(--fs, 1));
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.soon-back svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .soon-back:hover {
    color: var(--ink);
  }
}

.soon-dots {
  display: inline-flex;
  gap: .375rem;
}

.soon-dots i {
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: var(--line-strong);
  transition: width .3s ease, background-color .3s ease;
}

.soon-dots i.on {
  width: 1.25rem;
  background: var(--accent);
}

.scene-fact {
  margin: 0;
  color: var(--accent-ink);
  font-size: calc(.75rem * var(--fs, 1));
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.scene-q {
  margin: 0 0 .25rem;
  font-family: var(--page);
  font-size: calc(1.75rem * var(--fs, 1));
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.005em;
  text-wrap: balance;
  outline: none;
}

.soon-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .625rem;
}

.soon-pick {
  min-height: 3rem;
  padding: .5rem .875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

@media (hover: hover) {
  .soon-pick:hover {
    border-color: var(--accent);
  }
}

.soon-pick[aria-checked="true"] {
  background: var(--fill-b);
  border-color: var(--fill-b);
  color: var(--on-fill);
  animation: soon-pop .3s ease;
}

@keyframes soon-pop {
  40% { transform: scale(.96); }
}

.soon-pick:focus-visible,
.soon-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* the email */
.soon-form {
  display: grid;
  gap: .875rem;
}

.soon-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  margin: 0;
}

.soon-error {
  margin: 0;
  font-weight: 600;
  text-align: end;
}

.soon-form .soon-note {
  max-width: none;
  margin: -.25rem 0 0;
}

.soon-note a,
.soon-consent-text a,
.soon-legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}

/* you're in: the answer typed in letter by letter (soon.js typeIn), the word set apart underlined in marigold once
   the last letter is in */
.soon-done {
  margin: 0;
  white-space: pre-line;
  color: var(--ink);
  font-size: calc(1.0625rem * var(--fs, 1));
  line-height: 1.5;
}

.soon-done .ch {
  opacity: 0;
  transition: opacity .32s ease;
}

.soon-done .ch.on {
  opacity: 1;
}

.soon-done.typing .begin-line,
.soon-done.typing .begin-line > span {
  animation-play-state: paused;
}

.soon-done .begin-word {
  font: inherit;
  color: inherit;
}

/* ---------- the foot: the sign at the left, the two links at the right (owner, 2026-11-23) ---------- */

.soon-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name follow"
    "motto links";
  align-items: center;
  gap: .375rem 1rem;
}

.soon-footer .footsign-name {
  grid-area: name;
  justify-self: start;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.soon-footer .footsign-line {
  grid-area: motto;
  justify-self: start;
}

.soon-follow {
  grid-area: follow;
  justify-self: end;
  margin: 0;
  color: var(--muted);
}

/* Meta's own glyphs, unchanged (their brand packs: no recolouring, so each in its pack's black or white), the
   drawings ending where the caption's words end (each centred in its round 34px target) */
.footsocial {
  grid-area: links;
  justify-self: end;
  display: flex;
  gap: .625rem;
  margin: 0 calc((2.125rem - 1.25rem * var(--fs, 1)) / -2) 0 0;
}

.footer .social {
  display: inline-grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .15s ease;
}

.footer .social .glyph {
  width: calc(1.25rem * var(--fs, 1));
  height: calc(1.25rem * var(--fs, 1));
}

.glyph-wa path {
  fill: var(--wa-glyph);
}

.glyph-ig path {
  fill: var(--ig-glyph);
}

@media (hover: hover) {
  .footer .social:hover {
    opacity: .7;
  }
}

.footer .social:active {
  opacity: .5;
}

.footer .social:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- the question about analytics (only with the visitor's yes) ---------- */

.soon-consent {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: var(--gutter);
  width: min(calc(100% - 2 * var(--gutter)), 40rem);
  display: grid;
  gap: .875rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--card);
  opacity: 0;
  transform: translate(-50%, .5rem);
  transition: opacity .24s ease, transform .24s ease;
}

.soon-consent[hidden] {
  display: none;
}

.soon-consent.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.soon-consent-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  text-align: start;
}

.soon-consent-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .625rem;
}

.soon-consent-ways .btn {
  margin: 0;
}

/* ---------- the privacy notice (privacy.html) ---------- */

.soon-legal {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  text-align: start;
}

.soon-legal h1 {
  margin: 0 0 .5rem;
}

.soon-legal h2 {
  margin: 1.75rem 0 .5rem;
  font-size: calc(1.125rem * var(--fs, 1));
  font-weight: 650;
  line-height: 1.35;
}

.soon-legal p,
.soon-legal li {
  margin: 0 0 .75rem;
  line-height: 1.6;
}

.soon-legal ul {
  margin: 0 0 .75rem;
  padding-inline-start: 1.25rem;
}

.soon-legal .soon-consent-ways {
  max-width: 24rem;
  margin: 1rem 0 .5rem;
}

@media (prefers-reduced-motion: reduce) {
  .soon-art *,
  .soon-art > *,
  .scene,
  .scene.is-on,
  .soon-chip .live,
  .soon-consent,
  .brand .mark {
    animation: none !important;
    transition: none !important;
  }

  .art-kolam .k-line,
  .art-kolam .k-ring {
    stroke-dashoffset: 0;
  }

  .art-kolam .k-dot {
    opacity: 1;
  }
}
