/* Varshphal 2027 landing · "Rashivalaya Nights": Jaipur's observatory at night.
   Ink & Brass tokens from BRIEF.md. Plain CSS, mobile first, 390 px reference. */
:root {
  --ink: #0E1420; --ink2: #141B2A; --ink3: #0A0F18;
  --paper: #F3EBDD; --paper2: #FAF5EA; --paper3: #E6D9C1;
  --brass: #B8893A; --brass-l: #D9B270; --kumkum: #C8472B; --kumkum-d: #A83A22; --sage: #3F6F6A;
  --pos: #2E6FA7; --neg: #B5392D;
  --brass-ink: #855F1E;
  --line: rgba(184, 137, 58, .45); --line-soft: rgba(184, 137, 58, .25);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --hindi: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', 'Nirmala UI', system-ui, sans-serif;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --max: 1200px; --gut: 16px; --r: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --hdr: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.hi body { font-family: var(--hindi); font-size: 17px; line-height: 1.7; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.005em; }
h1, h2 { font-family: var(--serif); text-wrap: balance; }
h2 { font-size: clamp(30px, 5.5vw, 46px); line-height: 1.1; margin: 10px 0 14px; }
h3 { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
html.hi h1, html.hi h2, html.hi h3 { font-family: var(--hindi); font-weight: 400; letter-spacing: 0; }
html.hi h2 { font-size: clamp(26px, 5vw, 40px); line-height: 1.3; }
html.hi h3 { font-size: 20px; line-height: 1.35; }
p { margin: 0 0 1em; }
.lede { font-size: 17px; max-width: 62ch; opacity: .85; }
html.hi .lede { font-size: 18px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 1; }
.narrow { max-width: 760px; }
.num, .price, .inv, .c, .v, .stat b, [data-count], .tabular { font-family: var(--ui); font-variant-numeric: lining-nums tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* language-specific inline fragments */
.l-hi { display: none; }
html.hi .l-hi { display: initial; }
html.hi .l-en { display: none; }

/* ---------- eyebrow / kicker ---------- */
.kick { font: 600 12px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 6px; }
html.hi .kick { font: 400 14px/1.4 var(--hindi); letter-spacing: 0; text-transform: none; padding-left: 32px; position: relative; }
html.hi .kick::before { content: ""; position: absolute; left: 0; top: .75em; width: 24px; height: 1px; background: var(--brass); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: var(--r); background: var(--kumkum); color: #fff; font: 600 17px/1.15 var(--ui); text-decoration: none;
  border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 24px -12px rgba(200, 71, 43, .7);
  transition: background .15s, transform .15s var(--ease), box-shadow .15s; text-align: center;
}
html.hi .btn { font-family: var(--hindi); font-weight: 400; font-size: 18px; }
.btn:hover { background: var(--kumkum-d); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.btn.wide { width: 100%; }
.btn.outline { background: transparent; color: var(--kumkum); box-shadow: inset 0 0 0 2px var(--kumkum); }
.btn.outline:hover { background: rgba(200, 71, 43, .08); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 999px; }
.link { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brass); }
.link:hover { text-decoration-color: currentColor; }
.ink .link { color: var(--brass-l); }

/* ---------- bands ---------- */
.band { position: relative; padding: 64px 0; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; background: url(img/grain.png) repeat; pointer-events: none; z-index: 0; }
.ink { background: var(--ink); color: var(--paper); }
.ink::before { opacity: .05; mix-blend-mode: screen; }
.ink2 { background: var(--ink2); }
.paper { background: var(--paper); color: var(--ink); }
.paper::before { opacity: .09; mix-blend-mode: multiply; }
.paper.cut { margin-top: -28px; clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); padding-top: 92px; }
.band + .band.ink { padding-top: 64px; }
@media (min-width: 900px) { .band { padding: 104px 0; } .paper.cut { padding-top: 132px; } }
.head { max-width: 760px; margin-bottom: 28px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
html.hi .head.center .kick { padding-left: 0; } html.hi .head.center .kick::before { display: none; }

/* ---------- year ruler (the seam where parchment meets ink) ---------- */
.ruler { display: flex; align-items: flex-end; height: 44px; margin: 56px 0 -64px; border-bottom: 1px solid var(--brass); border-right: 1px solid var(--brass); position: relative; z-index: 1; }
.ruler > span { flex: 1; position: relative; height: 7px; border-left: 1px solid var(--brass); }
.ruler > span:nth-child(3n+1) { height: 14px; }
.ruler > span b { position: absolute; bottom: 20px; left: 4px; font: 600 10px/1 var(--ui); letter-spacing: .1em; color: var(--brass-ink); white-space: nowrap; }
html.hi .ruler > span b { font: 400 11px/1 var(--hindi); letter-spacing: 0; }
@media (max-width: 599px) { .ruler > span:not(:nth-child(3n+1)) b { display: none; } }
@media (min-width: 900px) { .ruler { margin: 80px 0 -104px; } }

/* ---------- header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--hdr);
  background: rgba(14, 20, 32, .86); border-bottom: 1px solid var(--line-soft); color: var(--paper);
}
@supports (backdrop-filter: blur(8px)) { .hdr { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
.hdr .wrap { display: flex; align-items: center; gap: 10px; height: var(--hdr); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.mark svg { width: 22px; height: 22px; flex: 0 0 22px; }
.mark b { font: 600 20px/1 var(--serif); letter-spacing: 0; }
html.hi .mark b { font: 400 19px/1 var(--hindi); }
.mark small { display: none; font: 11px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
@media (min-width: 600px) { .mark small { display: block; } .mark .t { display: flex; flex-direction: column; gap: 4px; } }
.lang {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--paper);
  font: 500 14px/1 var(--hindi); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.lang:hover { background: rgba(243, 235, 221, .08); }
.hdr .btn { display: none; }
@media (min-width: 600px) { .hdr .btn { display: inline-flex; } }
#inapp { position: fixed; top: var(--hdr); left: 0; right: 0; z-index: 49; background: var(--paper); color: var(--ink); padding: 8px var(--gut); font-size: 13px; display: flex; gap: 10px; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
#inapp a { font-weight: 600; color: var(--kumkum); }
main { padding-top: var(--hdr); }

/* ---------- hero ---------- */
.hero { padding: 0; overflow: hidden; min-height: calc(100svh - var(--hdr)); display: flex; align-items: stretch; }
.hero::before { display: none; }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .dial { position: absolute; width: 130vw; max-width: 1100px; height: auto; left: 50%; top: 30vh; transform: translate(-50%, -50%); pointer-events: none; opacity: .95; }
.gnomon { display: none; }
.hero .wrap { display: grid; gap: 18px; padding-top: 18px; padding-bottom: 44px; align-content: start; }
.hero-photo { position: relative; justify-self: center; width: min(58vw, 250px); aspect-ratio: 3 / 4; margin: 4px 0 0; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block;
  -webkit-mask-image: linear-gradient(#000 82%, transparent 100%), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(#000 82%, transparent 100%), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-composite: intersect;
  background: url(img/photo1-hero-tiny.jpg) center / cover;
}
.hero-photo::after { content: ""; position: absolute; inset: 10px 10px 18%; border: 1px solid var(--line-soft); pointer-events: none; }
.hero-copy { display: grid; gap: 14px; }
.hero h1 { font-size: clamp(36px, 9.4vw, 76px); line-height: 1.02; color: var(--paper); max-width: 13ch; }
html.hi .hero h1 { font-size: clamp(30px, 7.4vw, 58px); line-height: 1.3; max-width: 16ch; }
.hero .sub { font-size: 17px; line-height: 1.55; opacity: .85; max-width: 54ch; margin: 0; }
html.hi .hero .sub { font-size: 18px; line-height: 1.7; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.cta-row .btn { width: 100%; }
.micro { font: 12.5px/1.5 var(--ui); opacity: .68; margin: 0; }
html.hi .micro { font: 13px/1.6 var(--hindi); }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: 8px; }
.trust a, .trust span { display: block; padding: 10px 12px; background: var(--ink); font: 500 13px/1.35 var(--ui); text-decoration: none; color: var(--paper); }
html.hi .trust a, html.hi .trust span { font: 400 13px/1.5 var(--hindi); }
.trust a:hover { background: var(--ink2); }
.asof { font: 11px/1.4 var(--ui); color: var(--brass); margin: 6px 0 0; }
.hero-copy > * { animation: rise .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; } .hero-copy > :nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: repeat(12, 1fr); align-items: center; min-height: min(88vh, 820px); padding-top: 32px; padding-bottom: 60px; column-gap: 32px; }
  .hero-copy { grid-column: 1 / 7; grid-row: 1; gap: 18px; }
  .hero-photo { grid-column: 8 / 13; grid-row: 1; width: 100%; max-width: 470px; aspect-ratio: 545 / 800; max-height: 690px; justify-self: end; margin: 0; }
  .hero-photo img { -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 9%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
  .hero-photo::after { display: none; }
  .hero .dial { width: 980px; max-width: none; left: auto; right: -330px; top: 50%; transform: translateY(-50%); opacity: .8; }
  .cta-row .btn { width: auto; }
  .trust { grid-template-columns: repeat(4, 1fr); grid-column: 1 / 13; margin-top: 0; }
  .asof { grid-column: 1 / 13; }
  .gnomon { display: block; position: absolute; left: -2%; bottom: 0; width: 58%; height: 1px; background: var(--line); transform-origin: left bottom; transform: rotate(-27deg); pointer-events: none; }
  .gnomon b { position: absolute; left: 46%; top: -18px; font: 500 11px/1 var(--ui); letter-spacing: .14em; color: var(--brass); white-space: nowrap; }
}

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: flex; flex-direction: column; gap: 7px; min-height: 52px; padding: 9px 14px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--paper); font: 500 15px/1.2 var(--ui); cursor: pointer; text-align: left;
  transition: background .15s, color .15s;
}
html.hi .chip { font: 400 16px/1.3 var(--hindi); }
.chip:hover { background: rgba(243, 235, 221, .06); }
.chip[aria-pressed="true"] { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; width: 108px; height: 6px; }
.strip i { display: block; border-radius: 1px; background: rgba(243, 235, 221, .22); }
.strip i.s9 { background: var(--pos); } .strip i.s7 { background: var(--pos); opacity: .65; }
.strip i.s3 { background: var(--neg); opacity: .65; } .strip i.s1 { background: var(--neg); }
.chip[aria-pressed="true"] .strip i.s5 { background: rgba(14, 20, 32, .25); }
.chips-hint { font-size: 13px; opacity: .7; margin: 14px 0 0; }

/* ---------- live demo ---------- */
.instrument { position: relative; background: var(--ink2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.instrument::before, .instrument::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--brass); pointer-events: none; }
.instrument::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.instrument::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
@media (min-width: 900px) { .instrument { padding: 22px; } }
.fsets { display: grid; gap: 10px; }
.fset > span { display: block; font: 600 11px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
html.hi .fset > span { font: 400 13px/1 var(--hindi); letter-spacing: 0; text-transform: none; }
.fbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.fbtn { height: 32px; padding: 0 10px; border: 1px solid var(--line-soft); border-radius: 6px; background: transparent; color: var(--paper); font: 500 13px var(--ui); cursor: pointer; }
html.hi .fbtn { font: 400 14px var(--hindi); }
.fbtn[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
#demo-heat { display: grid; grid-template-columns: minmax(54px, auto) repeat(12, minmax(0, 1fr)); gap: 2px; margin-top: 16px; }
.hd, .rl { display: flex; align-items: center; justify-content: center; font: 600 11px/1.1 var(--ui); color: var(--paper); opacity: .72; cursor: pointer; padding: 4px 1px; text-align: center; }
.rl { justify-content: flex-start; padding-left: 2px; text-align: left; }
html.hi .hd, html.hi .rl { font: 400 12px/1.2 var(--hindi); }
.hd.sel, .rl.sel { opacity: 1; color: var(--brass-l); }
.c {
  aspect-ratio: 1; min-height: 22px; border: 0; border-radius: 4px; padding: 0; cursor: pointer; color: #fff;
  font: 600 11px/1 var(--ui); background: rgba(243, 235, 221, .14); position: relative; transition: transform .12s var(--ease);
}
#demo-heat.t .c { aspect-ratio: auto; height: 38px; font-size: 13px; }
.c.s9 { background: var(--pos); } .c.s7 { background: #3a6a93; } .c.s5 { background: rgba(243, 235, 221, .14); color: var(--paper); }
.c.s3 { background: #8e4238; } .c.s1 { background: var(--neg); }
@supports (color: color-mix(in srgb, red, blue)) {
  .c.s7 { background: color-mix(in srgb, var(--pos) 70%, var(--ink2)); } .c.s3 { background: color-mix(in srgb, var(--neg) 70%, var(--ink2)); }
}
.c.selrow, .c.selcol { box-shadow: inset 0 0 0 1px rgba(217, 178, 112, .45); }
.c.sel { box-shadow: 0 0 0 2px var(--brass-l); z-index: 1; }
.c:hover { transform: scale(1.06); z-index: 2; }
#demo-heat.wait .c { opacity: 0; }
#demo-heat.typeset .c { animation: ink-in .4s both; animation-delay: calc(var(--i, 0) * 9ms); }
#demo-heat.t { grid-template-columns: 44px repeat(7, minmax(0, 1fr)); }
.hd.v { align-items: flex-end; padding: 0 0 6px; height: 74px; }
.hd.v span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; line-height: 1; }
@keyframes ink-in { from { opacity: 0; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font: 12px/1.3 var(--ui); opacity: .8; }
html.hi .legend { font: 13px/1.4 var(--hindi); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 6px; }
.reading { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .reading { grid-template-columns: 1fr 1fr; } }
.card { background: var(--paper2); color: var(--ink); border-radius: 12px; padding: 18px; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(243, 235, 221, .25); }
.card h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 4px; }
html.hi .card h3 { font-family: var(--hindi); font-size: 22px; }
.card .sub { font: 500 13px/1.4 var(--ui); color: var(--sage); margin: 0 0 10px; }
html.hi .card .sub { font: 400 14px/1.5 var(--hindi); }
#demo-chart svg { width: 100%; height: auto; display: block; color: var(--ink); }
#demo-chart .hit { cursor: pointer; } #demo-chart .hit:focus-visible { outline: 2px solid var(--sage); }
#demo-best { font: 14px/1.5 var(--ui); margin: 6px 0 10px; }
html.hi #demo-best { font: 15px/1.6 var(--hindi); }
#demo-advice { font-size: 15px; line-height: 1.5; margin: 0 0 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
#demo-why { list-style: none; margin: 0; padding: 0; }
#demo-why li { display: flex; gap: 8px; font-size: 14px; line-height: 1.45; padding: 3px 0; }
#demo-why li.h { font-weight: 600; } #demo-why .k { flex: 0 0 14px; font-weight: 700; }
#demo-why .p .k { color: var(--pos); } #demo-why .n .k { color: var(--neg); }
#demo-bars { display: grid; grid-template-columns: auto 1fr 30px; gap: 7px 10px; align-items: center; font-size: 13px; }
.bl { cursor: pointer; } .bl.sel { color: var(--brass); font-weight: 600; }
.track { position: relative; height: 10px; background: rgba(14, 20, 32, .08); border-radius: 5px; cursor: pointer; }
.track::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(14, 20, 32, .3); }
.fill { position: absolute; top: 0; bottom: 0; transition: width .35s var(--ease), left .35s var(--ease); }
#demo-bars .v { text-align: right; font-weight: 600; }
#demo-days { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
#demo-days .lbl { font: 600 11px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
html.hi #demo-days .lbl { font: 400 13px/1 var(--hindi); letter-spacing: 0; text-transform: none; }
#demo-days svg { width: 100%; height: auto; display: block; }
#demo-meta p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
#demo-meta p:first-child { font-style: italic; font-family: var(--serif); font-size: 17px; }
html.hi #demo-meta p:first-child { font-family: var(--hindi); font-style: normal; font-size: 16px; }
.demo-note { font-size: 13px; opacity: .7; margin: 16px 0 0; }
.proof { display: grid; gap: 20px; margin-top: 36px; align-items: center; }
@media (min-width: 900px) { .proof { grid-template-columns: 300px 1fr; gap: 40px; } }
.phone { position: relative; width: min(280px, 78vw); margin: 0 auto; height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; padding: 10px; background: var(--ink2); }
.phone img { width: 100%; height: auto; display: block; border-radius: 20px; }
.phone::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(transparent, var(--ink2)); border-radius: 0 0 30px 30px; }
.proof-text h3 { margin-bottom: 8px; }

/* ---------- pages rail ---------- */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 18px; margin: 0 calc(-1 * var(--gut)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.page { margin: 0; flex: 0 0 min(70vw, 250px); scroll-snap-align: center; border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px; background: var(--ink2); transition: transform .3s var(--ease), border-color .3s; }
.page:hover { border-color: var(--brass); }
.page img { width: 100%; aspect-ratio: 900 / 1274; display: block; border-radius: 4px; background: var(--paper3); }
.page img.l-hi { display: none; } html.hi .page img.l-hi { display: block; } html.hi .page img.l-en { display: none; }
.plate { font: 600 11px/1 var(--ui); letter-spacing: .12em; color: var(--brass); margin: 12px 0 4px; }
.page h3 { font-size: 17px; line-height: 1.25; }
html.hi .page h3 { font-size: 17px; }
.page p { font-size: 13px; line-height: 1.45; opacity: .75; margin: 4px 0 0; }
@media (min-width: 900px) { .rail { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 18px; } .page { flex: none; } }
.pages-line { margin-top: 18px; font: 500 14px/1.5 var(--ui); color: var(--brass-l); }
html.hi .pages-line { font: 400 15px/1.6 var(--hindi); }

/* ---------- how it is made ---------- */
.steps { display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; border-top: 1px solid var(--line); padding-top: 16px; }
.step .n { font: 600 42px/1 var(--serif); color: var(--brass); }
.step svg { width: 44px; height: 44px; stroke: var(--brass); fill: none; stroke-width: 1.3; margin: 10px 0 8px; display: block; }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { font-size: 15px; line-height: 1.55; margin: 0; opacity: .85; }
.honest { margin: 28px 0 0; padding: 14px 16px; border-left: 2px solid var(--brass); font-size: 14px; line-height: 1.55; background: var(--paper2); max-width: 760px; }

/* ---------- preview ---------- */
.pv { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .pv { grid-template-columns: 1fr 1fr; gap: 48px; } }
.pv-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.pv-form label { flex: 1 1 200px; display: block; }
.pv-form .lbl { display: block; font: 600 13px/1.3 var(--ui); margin-bottom: 6px; }
html.hi .pv-form .lbl { font: 400 14px/1.4 var(--hindi); }
.pv-form .btn { min-height: 48px; }
.pv-out { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; margin-top: 8px; padding: 16px; background: var(--paper2); border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 420px) { .pv-out { grid-template-columns: 1fr; } }
#pv-wheel { width: 120px; height: 120px; display: block; }
#pv-wheel .ring { transform: rotate(var(--rot, 0deg)); transform-origin: 50% 50%; transition: transform .9s var(--ease); }
#pv-rows { list-style: none; margin: 0; padding: 0; }
#pv-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; line-height: 1.4; }
#pv-rows li:last-child { border-bottom: 0; }
#pv-rows .k { opacity: .7; } #pv-rows strong { text-align: right; }
.pv-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 4px; }
.pv-cta small { font-size: 12px; opacity: .65; }

/* ---------- about ---------- */
.about .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .about .wrap { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; } }
.frame { position: relative; padding: 8px; border: 1px solid var(--line); max-width: 440px; margin: 0 auto; }
.frame::after { content: ""; position: absolute; inset: -9px; border: 1px solid var(--line-soft); pointer-events: none; }
.frame img { display: block; width: 100%; aspect-ratio: 711 / 800; object-fit: cover; filter: saturate(.85); background: url(img/photo2-square-tiny.jpg) center / cover; }
.frame figcaption { margin-top: 10px; font: 500 12px/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
html.hi .frame figcaption { font: 400 13px/1.5 var(--hindi); letter-spacing: 0; text-transform: none; }
.about p { font-size: 16px; line-height: 1.6; opacity: .9; }
.quote { margin: 20px 0; padding-left: 18px; border-left: 2px solid var(--brass); font: italic 500 22px/1.35 var(--serif); }
html.hi .quote { font: 400 19px/1.6 var(--hindi); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.stat { border-top: 1px solid var(--line); padding-top: 10px; }
.stat b { display: block; font: 600 26px/1.1 var(--ui); }
.stat span { display: block; font-size: 12px; line-height: 1.4; opacity: .72; margin-top: 4px; }
.facts { list-style: none; margin: 0 0 18px; padding: 0; }
.facts li { padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 14px; line-height: 1.5; display: flex; gap: 10px; }
.facts li::before { content: "·"; color: var(--brass); font-weight: 700; }
.profiles { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }

/* ---------- pricing ---------- */
.tiers { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
@media (min-width: 820px) { .tiers { grid-template-columns: 1fr 1fr; align-items: start; } }
.tier { position: relative; background: var(--paper2); border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px 22px; display: flex; flex-direction: column; }
.tier.rec { border: 2px solid var(--brass); box-shadow: 0 24px 50px -30px rgba(14, 20, 32, .45); }
@media (min-width: 820px) { .tier.rec { transform: translateY(-16px); } .tier { padding: 30px 28px 26px; } }
.badge { position: absolute; top: -14px; left: 22px; background: var(--brass); color: var(--ink); font: 600 12px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 4px; }
html.hi .badge { font: 400 13px/1 var(--hindi); letter-spacing: 0; text-transform: none; }
.tier .eyebrow { font: 600 12px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
html.hi .tier .eyebrow { font: 400 13px/1 var(--hindi); letter-spacing: 0; text-transform: none; }
.tier h3 { font-size: 26px; line-height: 1.15; margin: 10px 0 6px; }
html.hi .tier h3 { font-size: 23px; line-height: 1.35; }
.tier .tsub { font-size: 14px; line-height: 1.5; opacity: .8; margin: 0 0 12px; }
.price { font: 700 clamp(32px, 8vw, 40px)/1 var(--ui); letter-spacing: -.01em; margin: 6px 0 4px; color: var(--ink); }
.breakup { font: 13.5px/1.45 var(--ui); opacity: .78; margin: 0; }
html.hi .breakup { font: 14px/1.55 var(--hindi); }
.inv { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; font: 13.5px/1.5 var(--ui); margin: 14px 0 0; padding-top: 8px; border-top: 1px solid var(--line-soft); }
html.hi .inv { font-family: var(--hindi); }
.inv .tot { font-weight: 700; border-top: 3px double var(--line); padding-top: 5px; margin-top: 2px; }
.divider { position: relative; height: 1px; background: var(--line); margin: 18px -22px; }
@media (min-width: 820px) { .divider { margin: 20px -28px; } }
.divider::before, .divider::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.divider::before { left: -10px; } .divider::after { right: -10px; }
.tier.rec .divider::before, .tier.rec .divider::after { border-width: 2px; border-color: var(--brass); }
.tier ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.tier li { display: flex; gap: 10px; padding: 6px 0; font-size: 15px; line-height: 1.45; }
.tier li::before { content: "✓"; color: var(--brass); font-weight: 700; flex: 0 0 14px; font-family: var(--ui); }
.tier li.dim { opacity: .45; } .tier li.dim::before { content: "—"; }
.tier .lead { font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.deliver { font: 600 13px/1.5 var(--ui); color: var(--sage); margin: 10px 0 16px; }
html.hi .deliver { font: 400 14px/1.6 var(--hindi); }
.paylogos { text-align: center; font: 13px/1.5 var(--ui); opacity: .72; margin: 22px auto 0; max-width: 980px; }
html.hi .paylogos { font: 14px/1.6 var(--hindi); }
.guarantee { max-width: 980px; margin: 22px auto 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper2); display: grid; gap: 6px; }
.guarantee h3 { font-size: 20px; }
.guarantee p { margin: 0; font-size: 14px; line-height: 1.55; }
.disclaimer { max-width: 980px; margin: 14px auto 0; font-size: 12.5px; line-height: 1.5; opacity: .65; text-align: center; }

/* ---------- order form ---------- */
.form { max-width: 680px; margin: 0 auto; }
.steps3 { display: flex; gap: 6px 16px; flex-wrap: wrap; font: 600 11px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin-bottom: 26px; }
html.hi .steps3 { font: 400 13px/1 var(--hindi); letter-spacing: 0; text-transform: none; }
.steps3 span::before { content: counter(s) " · "; counter-increment: s; }
.steps3 { counter-reset: s; }
.field { margin-top: 18px; position: relative; }
.lbl { display: block; font: 600 13px/1.3 var(--ui); margin-bottom: 6px; color: var(--ink); }
html.hi .lbl { font: 400 14px/1.4 var(--hindi); }
.lbl small { font-weight: 400; opacity: .65; }
.inp {
  width: 100%; height: 48px; border: 0; border-bottom: 1px solid rgba(14, 20, 32, .55); background: transparent; color: var(--ink);
  font: 16px/1.2 var(--ui); padding: 0 2px; border-radius: 0; appearance: none; -webkit-appearance: none;
}
select.inp { appearance: auto; -webkit-appearance: menulist; }
.inp:focus { outline: 0; border-bottom: 2px solid var(--brass); }
.inp:disabled { opacity: .45; }
.inp::placeholder { color: rgba(14, 20, 32, .4); }
.help { display: block; font-size: 12.5px; line-height: 1.5; opacity: .7; margin-top: 6px; }
.two { display: grid; gap: 0 18px; }
@media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; } }
.opts { display: flex; gap: 10px 18px; flex-wrap: wrap; padding-top: 8px; }
.opt { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--kumkum); margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--kumkum); }
.tel { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(14, 20, 32, .55); }
.tel b { font: 500 16px var(--ui); opacity: .8; }
.tel .inp { border-bottom: 0; }
.tel:focus-within { border-bottom-color: var(--brass); box-shadow: 0 1px 0 var(--brass); }
#suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; background: var(--paper2); border: 1px solid var(--line); border-radius: 8px; list-style: none; margin: 4px 0 0; padding: 4px 0; max-height: 240px; overflow: auto; box-shadow: 0 14px 34px -14px rgba(14, 20, 32, .45); }
#suggest li { padding: 10px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
#suggest li small { opacity: .55; font-size: 12px; }
#suggest li[aria-selected="true"], #suggest li:hover { background: rgba(184, 137, 58, .14); }
.picked { font-size: 13px; color: var(--sage); min-height: 18px; margin-top: 6px; }
.tierpick { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 600px) { .tierpick { grid-template-columns: 1fr 1fr; } }
.tierpick label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: var(--paper2); }
.tierpick label:has(input:checked) { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.tierpick input { margin: 3px 0 0; accent-color: var(--kumkum); }
.tierpick b { display: block; font-size: 15px; line-height: 1.3; }
.tierpick .tp { font: 700 15px/1.4 var(--ui); }
.tierpick small { display: block; font-size: 12px; opacity: .7; }
.notice { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 10px; font-size: 13px; line-height: 1.55; background: var(--paper2); }
.notice b { display: block; margin-bottom: 4px; }
#form-error { color: var(--neg); font-size: 14px; margin: 12px 0 0; }
.secure { font: 12.5px/1.5 var(--ui); opacity: .7; text-align: center; margin: 10px 0 0; }
html.hi .secure { font: 13px/1.6 var(--hindi); }
.form .btn { margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq .list { max-width: 820px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: baseline; padding: 16px 0; font: 600 19px/1.3 var(--serif); }
html.hi .faq summary { font: 400 18px/1.45 var(--hindi); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { flex: 0 0 34px; font: 600 11px/1.6 var(--ui); letter-spacing: .1em; color: var(--brass); }
.faq summary::after { content: "+"; margin-left: auto; flex: 0 0 auto; font: 300 28px/1 var(--serif); color: var(--brass); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px 48px; font-size: 15px; line-height: 1.6; max-width: 66ch; }

/* ---------- final + footer ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(32px, 6vw, 54px); }
.final .lede { margin: 0 auto 22px; }
.footer { background: var(--ink3); color: rgba(243, 235, 221, .78); font-size: 13px; line-height: 1.6; padding: 0 0 128px; position: relative; overflow: hidden; }
.horizon { display: block; width: 100%; height: 70px; }
.footer .wrap { padding-top: 10px; }
.footer p { margin: 0 0 8px; }
.footer a { color: var(--paper); }
.flinks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0; font-weight: 500; }
.footer .legal { color: var(--paper); }
.footer .copy { margin-top: 18px; opacity: .6; }
@media (min-width: 1024px) { .footer { padding-bottom: 60px; } }

/* ---------- sticky bar ---------- */
#sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(20, 27, 42, .95); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .26s var(--ease); color: var(--paper);
}
@supports (backdrop-filter: blur(8px)) { #sticky { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(20, 27, 42, .88); } }
#sticky.show { transform: none; }
#wa { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 1px solid var(--sage); display: grid; place-items: center; color: var(--paper); text-decoration: none; }
#wa svg { width: 22px; height: 22px; fill: currentColor; }
.sp { flex: 1; min-width: 0; }
.sp b { display: block; font: 600 14px/1.25 var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp span { display: block; font: 12px/1.3 var(--ui); opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.hi .sp span { font-family: var(--hindi); }
#sticky .btn { min-height: 44px; padding: 0 16px; font-size: 15px; flex: 0 0 auto; }
@media (min-width: 1024px) { #sticky { display: none; } }

/* ---------- reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal:nth-child(2) { transition-delay: .06s; } html.js .reveal:nth-child(3) { transition-delay: .12s; } html.js .reveal:nth-child(4) { transition-delay: .18s; }
[data-tilt] { transition: transform .3s var(--ease); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
@media print { .hdr, #sticky, #stars, .dial, #inapp { display: none !important; } main { padding-top: 0; } }

/* text on parchment uses a darker brass for contrast */
.paper .kick, .paper .eyebrow, .paper .plate, .faq summary .q, .steps3, .tier .eyebrow, .badge { color: var(--brass-ink); }
.badge { color: var(--ink); }
html.hi .paper .kick::before { background: var(--brass-ink); }
.paper .link { text-decoration-color: var(--brass-ink); }
.tier li::before { color: var(--brass-ink); }

.pv-form .btn { flex: 0 0 auto; }
.final .btn { min-width: min(100%, 340px); }
.footer { margin-top: -1px; }
.chips .chip { flex: 0 1 auto; }

/* mobile hero: dial centred on the portrait, clear of the headline */
@media (max-width: 899px) {
  .hero .dial { width: 100vw; top: 186px; transform: translate(-50%, -50%); opacity: .7; }
  .hero-photo img { -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 82%, transparent), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 82%, transparent), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
}
.hero-photo::after { display: none; }
.gnomon { bottom: -40px !important; }
.profiles span { margin-right: 4px; }

.footer .support { color: var(--paper); font-weight: 600; font-size: 15px; }
.footer .support a { color: var(--brass-l); }


/* ================= Dark sky theme (owner request, 25 Oct 2026): mostly black, a faint deep-red glow,
   moving stars behind every section. The price cards and small info cards stay light for legibility. */
:root { --night: #060608; --night-2: #0d0b0e; --glow-red: 122, 16, 22; }
html { background: var(--night); }
body { background: transparent; }
#sky { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 680px at 88% -8%, rgba(var(--glow-red), .26), transparent 62%),
    radial-gradient(900px 620px at -12% 108%, rgba(var(--glow-red), .18), transparent 60%),
    radial-gradient(700px 420px at 50% 55%, rgba(60, 8, 12, .10), transparent 70%),
    var(--night); }
.band.ink, .band.ink2, .hero, .final { background: transparent; }
.band.paper { background: linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, .006)); color: var(--paper); }
.band.paper::before { opacity: .05; mix-blend-mode: screen; }
.hdr { background: rgba(6, 6, 8, .78); }
#sticky { background: rgba(10, 8, 10, .9); }
@supports (backdrop-filter: blur(8px)) { #sticky { background: rgba(10, 8, 10, .8); } }
.footer { background: rgba(4, 4, 6, .92); }
.page { background: rgba(20, 16, 20, .7); }
.ruler { border-color: var(--line); } .ruler > span { border-left-color: var(--line); }
.ruler > span b { color: var(--brass); }

/* text on the (now dark) former parchment sections */
.paper .kick, .paper .plate, .faq summary .q, .steps3 { color: var(--brass); }
html.hi .paper .kick::before { background: var(--brass); }
.paper .link { text-decoration-color: var(--brass); }
.paper .lede, .step p { opacity: .85; }
.honest { background: rgba(255, 255, 255, .04); color: var(--paper); border-left-color: var(--brass); }
.lbl { color: var(--paper); }
.inp { color: var(--paper); border-bottom-color: rgba(243, 235, 221, .45); }
.inp::placeholder { color: rgba(243, 235, 221, .38); }
.inp:focus { border-bottom-color: var(--brass-l); }
select.inp { background: transparent; } select.inp option { color: #111; background: #fff; }
input[type="date"].inp, input[type="time"].inp { color-scheme: dark; }
.tel { border-bottom-color: rgba(243, 235, 221, .45); } .tel b { color: var(--paper); }
.notice { background: rgba(255, 255, 255, .04); border-color: var(--line-soft); color: var(--paper); }
.tierpick label { background: rgba(255, 255, 255, .04); color: var(--paper); border-color: var(--line-soft); }
.tierpick label:has(input:checked) { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.picked { color: #8fd0ad; }
#form-error { color: #ff9c8c; }
#suggest { color: var(--ink); }

/* light cards on the dark page */
.tier, .guarantee, .pv-out { color: var(--ink); }
.tier { box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8); }
.tier.rec { box-shadow: 0 30px 70px -30px rgba(var(--glow-red), .55); }
.divider::before, .divider::after { background: var(--night-2); }
.tier .eyebrow, .tier li::before { color: var(--brass-ink); }
.guarantee .link, .pv-out .link { color: var(--ink); text-decoration-color: var(--brass-ink); }


/* ================= What's inside: a real printed report (stack of sheets + leaf-through row) */
.inside-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .inside-grid { grid-template-columns: 5fr 6fr; gap: 80px; } }
.stack { position: relative; width: min(66vw, 380px); aspect-ratio: 900 / 1274; margin: 24px auto 40px; }
.stack::before { content: ""; position: absolute; inset: -18% -22% -10% -14%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 71, 43, .20), rgba(122, 16, 22, .08) 60%, transparent); }
.sheet { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 3px; background: #fbf7ef; object-fit: cover; }
.sheet img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.sheet.back2 { transform: translate(16%, 5%) rotate(8deg); filter: brightness(.78); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9); }
.sheet.back1 { transform: translate(8%, 1.5%) rotate(4deg); filter: brightness(.9); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9); }
.sheet.front { transform: rotate(-3deg); transition: transform .7s var(--ease);
  box-shadow: 1px 1px 0 #efe7d8, 2px 2px 0 #d6ccb9, 3px 3px 0 #ede5d5, 4px 4px 0 #cfc4b0, 5px 5px 0 #e9e0cf, 6px 6px 0 #c9bea9,
              0 60px 90px -36px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .25); }
.sheen { position: absolute; inset: 0; border-radius: 3px; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(0, 0, 0, .14) 100%); }
@media (hover: hover) { .stack:hover .sheet.front { transform: rotate(-1deg) translateY(-8px); } }
.stack-tag { position: absolute; left: -7%; bottom: 6%; z-index: 2; transform: rotate(-4deg);
  background: var(--brass); color: #120d08; font: 700 11px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 12px; border-radius: 3px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8); }
.toc { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 600px) { .toc { grid-template-columns: 1fr 1fr; gap: 18px 30px; } }
.toc li { display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; }
.toc li::before { content: ""; width: 7px; height: 7px; margin-top: 8px; border: 1px solid var(--brass); transform: rotate(45deg); }
.toc b { font: 600 18px/1.3 var(--serif); }
.toc span { grid-column: 2; font-size: 14px; line-height: 1.5; opacity: .72; margin-top: 2px; }
.leaf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 72px 0 6px; }
.leaf-head h3 { font: 600 24px/1.2 var(--serif); }
.leaf-nav { display: none; gap: 10px; }
@media (hover: hover) and (min-width: 700px) { .leaf-nav { display: flex; } }
.leaf-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--paper); font-size: 18px; cursor: pointer; }
.leaf-btn:hover { background: rgba(243, 235, 221, .08); }
.leaf { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gut);
  padding: 26px var(--gut) 34px; margin: 0 calc(-1 * var(--gut)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.leaf::-webkit-scrollbar { display: none; }
.leafpage { flex: 0 0 min(62vw, 232px); scroll-snap-align: start; margin: 0; }
.paper { position: relative; border-radius: 2px; background: #fbf7ef; transform: rotate(var(--r, -1deg));
  box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .95), 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.leafpage:nth-child(even) .paper { --r: 1deg; }
.paper img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 1274; border-radius: 2px; }
.paper::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 2px;
  background: linear-gradient(102deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 78%, rgba(0, 0, 0, .10)); }
.paper::before { content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; z-index: 1; border-top-left-radius: 6px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, .22) 50%, #e7dccb 56%, #fffaf1 100%);
  box-shadow: -2px -2px 5px rgba(0, 0, 0, .12); }
@media (hover: hover) { .leafpage:hover .paper { transform: translateY(-10px) rotate(0deg); box-shadow: 0 36px 60px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .3); } }
.leafpage figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 18px; font: 600 16px/1.3 var(--serif); }
.leafpage .plate { margin: 0; font: 600 11px/1 var(--ui); letter-spacing: .12em; color: var(--brass); }
