/* Ek Raat Ek Baat: a night window onto the cover. */

:root {
  color-scheme: dark;

  --sky-deep: oklch(0.15 0.045 262);
  --sky: oklch(0.20 0.055 255);
  --sky-low: oklch(0.31 0.075 236);
  --ink: oklch(0.125 0.04 262);
  --ink-2: oklch(0.175 0.05 258);
  --rule: oklch(0.88 0.1 88 / 0.2);
  --rule-strong: oklch(0.88 0.1 88 / 0.5);

  --text: oklch(0.965 0.012 90);
  --muted: oklch(0.8 0.035 250);

  --lamp: oklch(0.91 0.13 90);
  --amber: oklch(0.8 0.15 62);
  --coral: oklch(0.76 0.13 24);
  --ice: oklch(0.94 0.05 222);

  --paper: oklch(0.955 0.03 88);
  --paper-ink: oklch(0.2 0.05 258);
  --wood: oklch(0.7 0.08 62);

  --danger: oklch(0.8 0.14 25);
  --ok: oklch(0.84 0.13 160);

  --font-script: "Mrs Saint Delafield", "Snell Roundhand", "Apple Chancery", cursive;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: oklch(0.42 0.06 250) var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sky-deep);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-text);
  caret-color: var(--lamp);
  overflow-x: hidden;
}

::selection { background: var(--lamp); color: var(--ink); }

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

[hidden] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- sky ---------- */

.sky {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 60% at 50% 110%, var(--sky-low) 0%, transparent 70%),
    linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 100%);
}

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(11.5rem, 27svh, 15rem) var(--gutter) 0;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 48%, oklch(0.34 0.08 232 / 0.55) 100%);
}

.moon {
  position: absolute; z-index: 1;
  top: clamp(5.5rem, 15svh, 9rem); right: clamp(1rem, 7vw, 8rem);
  width: clamp(2.75rem, 5.5vw, 5rem);
  filter: drop-shadow(0 0 18px oklch(0.95 0.06 95 / 0.55));
  opacity: 0.92;
}

.hero__copy {
  position: relative; z-index: 3;
  align-self: center;
  padding-bottom: clamp(3rem, 12svh, 9rem);
}

.title {
  margin: 0;
  font: 400 clamp(5rem, 10.5vw, 9.25rem)/0.8 var(--font-script);
  color: #fff;
  text-shadow: 0 2px 14px oklch(0.06 0.04 262 / 0.7);
  text-wrap: balance;
}
.title span { display: block; }
.title span:nth-child(2) { margin-left: 0.85em; }

.byline {
  margin: 2.2rem 0 0;
  font: 600 1rem/1 var(--font-text);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--lamp);
}

.coverline {
  margin: 1.4rem 0 0;
  max-width: none;
  font: 500 0.8125rem/1.9 var(--font-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.coverline-tr {
  margin: 0.9rem 0 0;
  max-width: 34ch;
  color: var(--muted);
}

.hero__book {
  position: relative; z-index: 2;
  align-self: end; justify-self: center;
  margin: 0;
  width: min(100%, calc(74svh * 0.943));
  max-height: 78svh;
}
.hero__book img {
  width: 100%;
}
.hero__book::after {
  content: ""; position: absolute; z-index: -1;
  left: 8%; right: 8%; bottom: -2%; height: 22%;
  background: radial-gradient(50% 50% at 50% 50%, oklch(0.88 0.12 85 / 0.38), transparent 72%);
  animation: breathe-soft 7s ease-in-out infinite;
}

.skyline {
  position: absolute; z-index: 0;
  left: 0; bottom: 0; width: 100%;
  height: clamp(5rem, 15svh, 9.5rem);
}

/* ---------- fairy lights ---------- */

.lights {
  position: absolute; z-index: 4; top: 0; left: 0;
  width: 100%; height: 15rem;
  pointer-events: none;
}
.lights::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 15rem;
  background:
    radial-gradient(55% 90% at 22% 0%, oklch(0.88 0.12 85 / 0.2), transparent 70%),
    radial-gradient(55% 90% at 78% 0%, oklch(0.88 0.12 70 / 0.16), transparent 70%);
  animation: breathe-soft 8s ease-in-out infinite;
}
.lights svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.wire {
  fill: none; stroke: oklch(0.5 0.045 250); stroke-width: 1.25; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.6s var(--ease) forwards;
}
.wire--back { stroke: oklch(0.38 0.04 252); stroke-width: 1; }

.bulb { opacity: 0; animation: switch-on 0.7s var(--ease) var(--on, 0s) forwards; }
.bulb .halo {
  transform-box: fill-box; transform-origin: center;
  animation: breathe var(--dur, 4s) ease-in-out var(--del, 0s) infinite;
}
.bulb--blink .halo, .bulb--blink .glass {
  animation: blink var(--dur, 4s) linear var(--del, 0s) infinite;
}
.bulb--steady .halo { animation: none; opacity: 0.8; }
.bulb--back { opacity: 0; animation: switch-on 0.7s var(--ease) var(--on, 0s) forwards; filter: saturate(0.8); }
.bulb--back.bulb { --max: 0.55; }
.bulb .cap { fill: oklch(0.36 0.04 252); }

.lights--order {
  position: relative; height: 9.5rem; width: 100%;
  margin-bottom: -2.5rem;
}
.lights--order::before { height: 9.5rem; }

/* the pegged tag: the page's one call to action */

.tag {
  position: absolute; z-index: 6;
  left: 50%; top: 5rem;
  width: 8.25rem;
  margin-left: -4.125rem;
  display: block;
  text-decoration: none;
  color: var(--paper-ink);
  transform-origin: 50% 0;
  animation: swing 6.5s ease-in-out infinite alternate;
}
.tag__string {
  display: block; width: 1px; height: 1.1rem; margin: 0 auto;
  background: oklch(0.75 0.05 80);
}
.tag__peg {
  position: absolute; top: -0.6rem; left: 50%; margin-left: -0.5rem;
  width: 1rem; height: 1.4rem; border-radius: 3px;
  background: linear-gradient(90deg, var(--wood) 0 44%, oklch(0.55 0.07 60) 44% 56%, var(--wood) 56% 100%);
  box-shadow: 0 2px 4px oklch(0.05 0.03 260 / 0.5);
}
.tag__body {
  position: relative; display: block;
  padding: 1.35rem 0.75rem 0.8rem;
  background: var(--paper);
  border-radius: 6px 6px 10px 10px;
  text-align: center;
  box-shadow: 0 14px 26px -10px oklch(0.04 0.04 262 / 0.75), 0 2px 5px oklch(0.04 0.04 262 / 0.4);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tag__body::before {
  content: ""; position: absolute; top: 0.5rem; left: 50%; margin-left: -0.3rem;
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--sky-deep);
}
.tag__label {
  display: block;
  font: 600 0.75rem/1 var(--font-text); letter-spacing: 0.2em; text-transform: uppercase;
}
.tag__price {
  display: block; margin-top: 0.4rem;
  font: 700 2rem/1 var(--font-text); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tag__sub {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.45rem;
  font: 500 0.8125rem/1 var(--font-text);
  color: oklch(0.36 0.05 258);
}
.tag:hover, .tag:focus-visible { animation-play-state: paused; }
.tag:hover .tag__body, .tag:focus-visible .tag__body {
  transform: translateY(3px) scale(1.04);
  box-shadow: 0 20px 30px -10px oklch(0.04 0.04 262 / 0.85), 0 3px 6px oklch(0.04 0.04 262 / 0.45);
}
.tag:focus-visible { outline-offset: 6px; }

/* ---------- sticky bar ---------- */

.bar {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem var(--gutter);
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.bar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.bar__name { font: 400 2rem/1 var(--font-script); color: #fff; word-spacing: 0.22em; }
.bar__cta {
  font: 600 0.9375rem/1 var(--font-text);
  padding: 0.7rem 1.1rem; border-radius: 999px;
  background: var(--lamp); color: var(--ink); text-decoration: none;
}
.bar__cta:hover { background: #fff; }

/* ---------- sections ---------- */

main > section { position: relative; }

.script-h {
  margin: 0;
  font: 400 clamp(3.25rem, 7vw, 5rem)/1 var(--font-script);
  color: #fff;
  text-shadow: 0 2px 12px oklch(0.06 0.04 262 / 0.7);
}

.line {
  padding: clamp(5rem, 14vw, 10rem) var(--gutter);
  text-align: center;
  background: linear-gradient(180deg, var(--ink) 0%, oklch(0.125 0.04 262 / 0) 70%);
}
.line__script {
  margin: 0 auto; max-width: 20ch;
  font: 400 clamp(3rem, 7.5vw, 5.75rem)/1.02 var(--font-script);
  color: #fff;
  word-spacing: 0.14em;
  text-wrap: balance;
}
.line__tr { margin: 1.75rem auto 0; max-width: 40ch; color: var(--muted); }

.unfinished {
  color: var(--lamp);
  animation: unfinished 5.5s linear infinite;
}

.edition {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  border-top: 1px solid var(--rule);
}
.edition__inner { max-width: 72rem; margin: 0 auto; }
.specs { margin: 2rem 0 0; max-width: 52rem; }
.specs > div {
  display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
}
.specs dt {
  font: 600 0.8125rem/1.6 var(--font-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.specs dd { margin: 0; font-size: 1.125rem; }
.edition__note { margin: 1.75rem 0 0; color: var(--muted); max-width: 60ch; }

/* ---------- order ---------- */

.order {
  padding: 0 var(--gutter) clamp(4rem, 9vw, 7rem);
  background: oklch(0.125 0.04 262 / 0.5);
  overflow: hidden;
}
.lights--order { margin-left: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); }
.order__inner { position: relative; max-width: 72rem; margin: 0 auto; }
.steps { scroll-margin-top: 5rem; }
.order__lead { margin: 0.75rem 0 0; color: var(--muted); max-width: 52ch; }

.order__grid {
  margin-top: 2.5rem;
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  align-items: start;
}

.summary {
  position: sticky; top: 5rem;
  padding: 1.5rem;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 24px 40px -28px oklch(0.03 0.04 262 / 0.9);
}
.summary__book { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.summary__title { margin: 0; font: 400 2rem/1 var(--font-script); color: #fff; word-spacing: 0.22em; white-space: nowrap; }
.summary__meta { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9375rem; }

.sum { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.sum > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.sum .sum__off dd { color: var(--ok); }
.sum .sum__total { margin-top: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); font-size: 1.25rem; font-weight: 600; }
.sum .sum__total dt { color: var(--text); }

/* notices and field errors */
.notice { margin: 1.25rem 0 0; padding: 0.9rem 1.1rem; max-width: 52rem; border: 1px solid oklch(0.86 0.14 75 / 0.55); border-radius: 10px; background: oklch(0.86 0.14 75 / 0.1); color: oklch(0.9 0.1 78); font-weight: 500; }
.field__err { margin: 0.4rem 0 0; color: var(--danger); font-size: 0.9375rem; font-weight: 500; }
.field.is-bad label { color: var(--danger); }
.is-paused::before,
.is-paused .bulb .halo,
.is-paused .bulb--blink .glass { animation-play-state: paused !important; }

/* form */

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 1.25rem; font: 600 1.25rem/1.3 var(--font-text); }

.field { margin-bottom: 1.1rem; min-width: 0; }
.field label { display: block; margin-bottom: 0.4rem; font: 500 0.9375rem/1.3 var(--font-text); }
.opt { color: var(--muted); font-weight: 400; }

.row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.row--3 { grid-template-columns: 1.1fr 1.2fr 0.8fr; }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  font: 400 1rem/1.4 var(--font-text);
  color: var(--text);
  background: var(--ink-2);
  border: 1px solid oklch(0.88 0.1 88 / 0.58);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; min-height: 5.5rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.2rem; }
input::placeholder, textarea::placeholder { color: oklch(0.66 0.035 250); }
input:hover, select:hover, textarea:hover { border-color: oklch(0.9 0.11 88 / 0.85); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--lamp); box-shadow: 0 0 0 3px oklch(0.91 0.13 90 / 0.28);
}
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--danger); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.code { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; }
.hint { margin: 0.45rem 0 0; min-height: 1.4em; font-size: 0.9375rem; color: var(--muted); }
.hint.is-ok { color: var(--ok); }
.hint.is-bad { color: var(--danger); }

.error { margin: 0 0 1rem; min-height: 0; color: var(--danger); font-weight: 500; }
.error:empty { display: none; }
.fine { margin: 1rem 0 0; font-size: 0.9375rem; color: var(--muted); max-width: 52ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.8rem 1.4rem;
  font: 600 1rem/1 var(--font-text);
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.2s var(--ease), border-color 0.2s;
}
.btn--primary { background: var(--lamp); color: var(--ink); width: 100%; }
.btn--primary:hover { background: #fff; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--quiet { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn--quiet:hover { border-color: var(--lamp); color: var(--lamp); }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }

/* pay + done */

.pay, .done { padding: 0; }
.pay h3, .done h3 { margin: 0; font: 600 1.5rem/1.25 var(--font-text); }
.pay__lead { margin: 0.5rem 0 0; color: var(--muted); max-width: 52ch; }

.pay__grid { margin-top: 1.5rem; display: grid; gap: 1.5rem; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.pay.is-touch .pay__grid { grid-template-columns: 1fr; }
.pay.is-touch .pay__qr { order: 2; }

.pay__qr { width: 12.5rem; padding: 0.8rem; background: #fff; border-radius: 12px; }
.pay__qr svg { display: block; width: 100%; height: auto; }

.pay__facts { margin: 0; }
.pay__facts > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.pay__facts dt { color: var(--muted); }
.pay__facts dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 0.6rem; word-break: break-all; text-align: right; }
.copy { font: 600 0.875rem/1 var(--font-text); color: var(--lamp); background: none; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 0.45rem 0.8rem; cursor: pointer; }
.copy:hover { border-color: var(--lamp); }

/* UPI app picker */
.apps { margin-top: 1.5rem; display: grid; gap: 0.7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app {
  display: flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0.7rem 1rem;
  font: 600 1rem/1.2 var(--font-text); text-align: center; text-decoration: none;
  color: var(--text); background: var(--ink-2);
  border: 1px solid var(--rule-strong); border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.app:hover { border-color: var(--lamp); background: oklch(0.22 0.055 258); }
.app:active { transform: scale(0.98); }
.app--any { grid-column: 1 / -1; background: var(--lamp); color: var(--ink); border-color: var(--lamp); min-height: 3.5rem; font-size: 1.0625rem; }
.app--any:hover { background: #fff; border-color: #fff; }
.apps__note { margin: 0.8rem 0 0; min-height: 0; color: var(--danger); font-weight: 500; }
.apps__note:empty { display: none; }
.apps__help { margin: 0.8rem 0 0; font-size: 0.9375rem; color: var(--muted); max-width: 52ch; }
.pay__other { margin-top: 1.5rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.pay__other summary { cursor: pointer; font-weight: 600; padding: 0.35rem 0; }
.pay__other summary:hover { color: var(--lamp); }
.pay__utr { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.pay__utr h4 { margin: 0 0 0.35rem; font: 600 1.125rem/1.3 var(--font-text); }
.pay__utr p { margin: 0 0 1rem; color: var(--muted); max-width: 52ch; }
.pay__swap { margin-top: 1.25rem; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.pay__swap:hover { color: var(--text); }

.done__id { display: inline-block; margin-top: 1rem; padding: 0.55rem 0.9rem; border: 1px dashed var(--rule-strong); border-radius: 8px; font: 600 1.125rem/1 var(--font-text); letter-spacing: 0.1em; user-select: all; }
.done p { color: var(--muted); max-width: 54ch; }
.done .sum { max-width: 24rem; }
.pill { display: inline-block; padding: 0.35rem 0.75rem; border-radius: 999px; font: 600 0.875rem/1 var(--font-text); background: oklch(0.91 0.13 90 / 0.14); color: var(--lamp); }
.pill--ok { background: oklch(0.84 0.13 160 / 0.16); color: var(--ok); }
.pill--bad { background: oklch(0.8 0.14 25 / 0.16); color: var(--danger); }

.resume {
  margin-top: 1.75rem; padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  background: var(--ink-2); border: 1px solid var(--rule-strong); border-radius: 12px;
}
.resume p { margin: 0; }
.resume button { background: none; border: 0; color: var(--lamp); font: 600 1rem var(--font-text); text-decoration: underline; cursor: pointer; padding: 0.25rem; }

/* ---------- footer ---------- */

.foot { position: relative; padding: clamp(3rem, 7vw, 5rem) var(--gutter) 3rem; background: oklch(0.125 0.04 262 / 0.6); border-top: 1px solid var(--rule); overflow: hidden; }
.foot__inner { position: relative; z-index: 1; max-width: 72rem; margin: 0 auto; }
.foot__name { margin: 0; font: 400 3.25rem/1 var(--font-script); color: #fff; word-spacing: 0.2em; }
.foot__pub { margin: 0.5rem 0 1.5rem; color: var(--muted); }
.foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; }
.foot__links a { color: var(--text); }
.foot__links a:hover { color: var(--lamp); }

/* ---------- fireflies ---------- */

.fireflies { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

.fly {
  position: absolute; z-index: 1; width: 4px; height: 4px; border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 10px 3px oklch(0.9 0.13 88 / 0.55);
  opacity: 0;
  animation: fly var(--t, 14s) ease-in-out var(--d, 0s) infinite alternate, glow var(--g, 3.2s) ease-in-out var(--d, 0s) infinite;
}

/* ---------- motion ---------- */

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes switch-on { 0% { opacity: 0; } 35% { opacity: 1; } 55% { opacity: 0.5; } 100% { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: 0.4; transform: scale(0.82); } 50% { opacity: 1; transform: scale(1.22); } }
@keyframes blink {
  0%, 36%, 48%, 100% { opacity: 1; }
  40% { opacity: 0.12; }
  44% { opacity: 0.85; }
  72% { opacity: 1; }
  76% { opacity: 0.18; }
  80% { opacity: 1; }
}
@keyframes breathe-soft { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes swing { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes unfinished { 0%, 100% { opacity: 1; } 14% { opacity: 1; } 16% { opacity: 0.25; } 19% { opacity: 1; } 55% { opacity: 1; } 57% { opacity: 0.35; } 59% { opacity: 0.9; } 61% { opacity: 0.2; } 64% { opacity: 1; } }
@keyframes fly { from { transform: translate(0, 0); } to { transform: translate(var(--x, 40px), var(--y, -60px)); } }
@keyframes glow { 0%, 100% { opacity: 0; } 50% { opacity: 0.95; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wire { animation: none; stroke-dashoffset: 0; }
  .bulb, .bulb--back { animation: none; opacity: 1; }
  .bulb .halo, .bulb--blink .halo, .bulb--blink .glass { animation: none; opacity: 0.8; }
  .tag, .hero__book img, .hero__book::after, .lights::before, .unfinished { animation: none; }
  .fly { display: none; }
  .bar { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 13.5rem; text-align: center; }
  .hero__copy { padding-bottom: 2rem; }
  .title span:nth-child(2) { margin-left: 0; }
  .coverline, .coverline-tr { margin-left: auto; margin-right: auto; }
  .hero__book { width: min(100%, 24rem); margin-top: 0.5rem; }
  .order__grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .moon { top: 5.5rem; right: 1rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .bar__name { font-size: 1.5rem; }
  .summary__title { font-size: 1.75rem; white-space: normal; }
  .row, .row--3 { grid-template-columns: 1fr; gap: 0; }
  .specs > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .pay__grid { grid-template-columns: 1fr; }
  .pay__qr { margin: 0 auto; }
  .bar__name { font-size: 1.75rem; }
}

/* ---------- policies page ---------- */

.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem var(--gutter); border-bottom: 1px solid var(--rule); background: oklch(0.125 0.04 262 / 0.9); }
.doc-top__name { font: 400 2rem/1 var(--font-script); color: #fff; text-decoration: none; word-spacing: 0.22em; }
.doc-top__back { color: var(--lamp); font-weight: 600; }
.doc { max-width: 46rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 5rem; }
.doc__lead { margin: 1rem 0 0; color: var(--muted); }
.doc__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 2rem 0 0.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.doc__nav a { color: var(--text); }
.doc h2 { margin: 2.75rem 0 0.75rem; font: 600 1.375rem/1.3 var(--font-text); scroll-margin-top: 1.5rem; }
.doc p, .doc li { max-width: 65ch; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.4rem 0; }
.doc a { color: var(--lamp); }
.doc__contact { list-style: none; padding: 0; }

/* ---------- order tracking ---------- */

.track__form { margin-top: 2rem; max-width: 26rem; }
.track__result { margin-top: 2.5rem; padding: 1.5rem; max-width: 36rem; background: var(--ink-2); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 24px 40px -28px oklch(0.03 0.04 262 / 0.9); }
.track__result h2 { margin: 0; font: 600 1.5rem/1.3 var(--font-text); }
.track__meta { margin: 0.5rem 0 0; color: var(--muted); }
.track__hint { margin: 1.25rem 0 0; color: var(--muted); }
.track__courier { margin-top: 1.5rem; }
.track__courier p { margin: 0 0 0.75rem; }
.track__courier .btn { width: auto; }

.steps-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.9rem; padding-bottom: 1.25rem; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 0.6rem; top: 1.3rem; bottom: -0.1rem; width: 2px; background: var(--rule); }
.step:last-child::before { display: none; }
.step__dot { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; border-radius: 50%; border: 2px solid var(--rule-strong); background: transparent; }
.step--done .step__dot { background: var(--ok); border-color: var(--ok); }
.step__body { display: grid; gap: 0.1rem; }
.step__body span { color: var(--muted); font-size: 0.9375rem; }
.step--todo .step__body strong { color: var(--muted); font-weight: 500; }
