/* ANTRRA — the palm-leaf jyotish manuscript, in the ANTRRA brand system.
   Layout: a live South Indian rasi chart as a 3D tablet with the 27 nakshatras orbiting it,
   palm-leaf pages on a kalava thread that turn in 3D, a live panchang with a real Moon phase.
   Palette (brand): Ivory, Sand Beige, Earth Brown, Antique Copper; Forest Green for dark grounds. */

:root {
  /* ANTRRA brand system */
  --ivory-hi: #fbf6ef;  /* panels */
  --ivory: #f5ece2;     /* page ground (brand Ivory) */
  --sand-lo: #e9dccb;   /* bands */
  --sand: #d9c3a7;      /* brand Sand Beige: leaves, rules on dark */
  --ink: #3b2616;       /* brand Earth Brown */
  --ink-2: #5a4330;
  --ink-3: #735c47;
  --forest: #1f3d32;    /* brand Forest Green: dark ground */
  --forest-2: #2b4c40;
  --rule: rgba(59, 38, 22, .2);
  --rule-2: rgba(59, 38, 22, .45);
  --copper: #8c5a35;    /* text-safe copper (4.9:1 on ivory) */
  --copper-hi: #b8845e; /* brand Antique Copper: lines, marks, large type */
  --on-copper: #f5ece2;
  --err: #9c3b26;
  --ok: #2f5a45;

  --f-brand: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-text: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif; /* Devanagari numerals */

  --s-h1: clamp(1.9rem, 1.1rem + 2.4vw, 3.5rem);
  --s-h2: clamp(2.6rem, 1.7rem + 3.8vw, 5.6rem);
  --s-h3: clamp(2rem, 1.5rem + 1.5vw, 3rem);

  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1);
  --z-mast: 20;
  color-scheme: light;
}
:root[lang="hi"] { --f-display: "Cormorant Garamond", "Tiro Devanagari Hindi", serif; }
:root[lang="sa"] { --f-display: "Cormorant Garamond", "Tiro Devanagari Sanskrit", serif; }
:root[lang="ta"] { --f-display: "Cormorant Garamond", "Noto Serif Tamil", serif; --f-text: "Mukta", "Mukta Malar", system-ui, sans-serif; }
:root[lang="te"] { --f-display: "Cormorant Garamond", "Noto Serif Telugu", serif; --f-text: "Mukta", "Hind Guntur", system-ui, sans-serif; }
:root[lang="ml"] { --f-display: "Cormorant Garamond", "Noto Serif Malayalam", serif; --f-text: "Mukta", "Noto Sans Malayalam", system-ui, sans-serif; }
:root:not([lang="en"]) { --s-h1: clamp(1.5rem, .9rem + 1.9vw, 2.8rem); --s-h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.9rem); --s-h3: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); }
:root:not([lang="en"]) .display { line-height: 1.32; }
:root:not([lang="en"]) body { line-height: 1.8; }

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: #f3e6d3; color: var(--ink); font: 400 1.0625rem/1.65 var(--f-text); overflow-x: clip; -webkit-font-smoothing: antialiased; }
::selection { background: var(--copper); color: var(--on-copper); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gut) var(--gut-r); }
.display { font-family: var(--f-display); font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.display em { font-style: italic; font-weight: 500; color: var(--copper); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 500 .8rem/1.3 var(--f-brand); letter-spacing: .2em; text-transform: uppercase; color: var(--copper); margin-bottom: 18px; }
:root:not([lang="en"]) .kicker { text-transform: none; letter-spacing: .02em; font-size: .95rem; }
.kicker::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); } /* brand star */
.fine { font-size: .86rem; color: var(--ink-3); }

.skip { position: fixed; top: -80px; left: 16px; z-index: 60; background: var(--copper); color: var(--on-copper); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- buttons: a seal, and a plain text link ---------- */
.btn { --mx: 0px; --my: 0px; display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 8px 26px; font: 600 1rem/1.3 var(--f-text); cursor: pointer; border: 0; background: none; transform: translate(var(--mx), var(--my)); transition: transform .5s var(--ease), background-color .25s, color .25s, box-shadow .25s; }
.btn-seal { background: var(--copper); color: var(--on-copper); box-shadow: inset 0 0 0 3px var(--copper), inset 0 0 0 4px rgba(245, 236, 226, .55); }
.btn-seal:hover { background: var(--copper-hi); box-shadow: inset 0 0 0 3px var(--copper-hi), inset 0 0 0 4px rgba(245, 236, 226, .9); }
.btn-text { padding: 0 4px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.btn-text:hover { color: var(--copper); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- masthead ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: #f3e6d3; }
.mast { position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--z-mast); transition: background-color .3s; }
.mast.solid { background: rgba(243, 230, 211, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--rule-2), 0 4px 0 -3px var(--rule-2); }
.mast-in { max-width: 1320px; margin-inline: auto; padding-inline: var(--gut) var(--gut-r); height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.sym { width: 34px; height: 34px; fill: none; stroke: var(--copper-hi); stroke-width: 2.4; flex: none; }
.brand .wm { height: 21px; width: auto; }
.brand-foot img { width: 230px; height: auto; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { font-weight: 500; color: var(--ink-2); padding-block: 12px; background: linear-gradient(var(--copper), var(--copper)) 0 100%/0 2px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.nav a:hover { color: var(--ink); background-size: 100% 2px; }
.mast-r { display: flex; align-items: center; gap: 12px; }
.langsel { position: relative; }
.lang { display: inline-flex; align-items: center; gap: 9px; background: none; border: 1px solid var(--rule-2); min-height: 42px; padding: 0 14px 0 6px; cursor: pointer; font-weight: 500; }
.lang-glyph { width: 30px; height: 30px; display: grid; place-items: center; background: var(--forest); color: var(--ivory); font: 400 1.05rem/1 var(--f-num); padding-top: 3px; }
.lang:hover, .lang[aria-expanded="true"] { border-color: var(--ink); }
.langlist { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 200px; background: var(--ivory-hi); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); z-index: calc(var(--z-mast) + 2); animation: drop .22s var(--ease); }
.langlist button { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; background: none; border: 0; cursor: pointer; font-size: 1.05rem; text-align: start; color: var(--ink-2); }
.langlist button:hover, .langlist button:focus-visible { background: var(--ivory); color: var(--ink); }
.langlist button[aria-pressed="true"] { color: var(--copper); font-weight: 600; }
.langlist button[aria-pressed="true"]::after { content: ""; width: 7px; height: 7px; background: var(--copper); transform: rotate(45deg); }
.menu { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--rule-2); cursor: pointer; position: relative; }
.menu span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.menu span:first-child { top: 17px; } .menu span:last-child { top: 25px; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero: the rasi chart ---------- */
.hero { position: relative; overflow: clip; background: radial-gradient(48% 52% at 50% 50%, #fff8ec 0%, rgba(255, 248, 236, 0) 72%), radial-gradient(50% 45% at 92% 6%, rgba(201, 160, 112, .55), transparent 70%), radial-gradient(45% 50% at 4% 96%, rgba(184, 132, 94, .38), transparent 70%), linear-gradient(160deg, #f1e0c6 0%, #f6ead8 45%, #ead3b2 100%); min-height: calc(100svh - 72px); display: grid; align-items: center; padding-block: 24px 56px; isolation: isolate; }
.hero::before { /* brand petal lattice, drifting slowly */
  content: ""; position: absolute; inset: -120px; z-index: -1; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23b8845e' stroke-opacity='.35' stroke-width='1'%3E%3Ccircle cx='60' cy='30' r='30'/%3E%3Ccircle cx='60' cy='90' r='30'/%3E%3Ccircle cx='30' cy='60' r='30'/%3E%3Ccircle cx='90' cy='60' r='30'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px;
  -webkit-mask: radial-gradient(60% 60% at 50% 50%, #000 20%, transparent 72%); mask: radial-gradient(60% 60% at 50% 50%, #000 20%, transparent 72%);
}
.motion .hero::before { animation: lattice 60s linear infinite; }
@keyframes lattice { to { transform: translate3d(120px, 120px, 0); } }
.hero-grid { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gut) var(--gut-r); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(76svh, 640px)) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: center; }
.flank { position: relative; z-index: 2; display: grid; gap: 22px; align-content: center; }
.flank p { text-shadow: 0 0 10px var(--ivory), 0 0 4px var(--ivory); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 30ch; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.flank-r { justify-items: start; }
.now { border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding-block: 18px; width: 100%; max-width: 300px; display: grid; gap: 4px; }
.now-k { font-size: .95rem; color: var(--ink-3); }
.now-v { font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3.4rem); color: var(--copper); line-height: 1.1; }
.now-s { font-size: .95rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chart-cap { font-size: .84rem; color: var(--ink-3); max-width: 300px; }


.chart {
  position: relative; aspect-ratio: 1; width: 100%;
  display: grid; grid-template: repeat(4, minmax(0, 1fr)) / repeat(4, minmax(0, 1fr));
  background: var(--ivory-hi); border: 2px solid var(--ink);
  transform: translateZ(0); transform-style: preserve-3d;
  box-shadow: 0 0 0 6px var(--ivory-hi), 0 0 0 7px var(--ink);
}
.cell { position: relative; border: 1px solid var(--ink); padding: clamp(5px, .8vw, 10px); display: flex; flex-direction: column; justify-content: space-between; gap: 4px; transform-style: preserve-3d; transition: background-color .3s, transform .45s var(--ease); min-width: 0; }
.cell:hover { background: var(--ivory); transform: translateZ(14px); }
.cell::after { content: attr(data-n); position: absolute; right: 8%; top: 6%; font: 400 clamp(1.4rem, .8rem + 1.8vw, 2.8rem)/1 var(--f-num); color: rgba(59, 38, 22, .1); pointer-events: none; }
.rn { font-size: clamp(.62rem, .5rem + .35vw, .86rem); color: var(--ink-3); line-height: 1.2; font-weight: 500; overflow-wrap: anywhere; }
.gh { display: flex; flex-wrap: wrap; gap: 2px 8px; align-content: flex-end; transform-style: preserve-3d; }
.g { display: inline-flex; align-items: baseline; gap: 2px; font: 700 clamp(.82rem, .6rem + .6vw, 1.2rem)/1.1 var(--f-text); color: var(--copper); transform: translateZ(26px); text-shadow: 0 6px 6px rgba(59, 38, 22, .18); }
.g sup { font-size: .58em; font-weight: 500; color: var(--ink-3); }
.motion .g { animation: settle .9s var(--ease) both; animation-delay: calc(.4s + var(--i) * 70ms); }
@keyframes settle { from { opacity: 0; transform: translateZ(140px); } }
.centre { grid-area: 2 / 2 / 4 / 4; border: 1px solid var(--ink); background: var(--ivory); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 6%; transform: translateZ(8px); }
.centre-om { font: 600 .72rem/1 var(--f-text); letter-spacing: .4em; color: var(--ink-3); padding-left: .4em; }
.centre { container-type: inline-size; }
.centre h1 { font-size: min(var(--s-h1), 15cqi); }
:root:not([lang="en"]) .centre h1 { font-size: min(var(--s-h1), 12.5cqi); }
:root[lang="ta"] .centre h1, :root[lang="ml"] .centre h1 { font-size: min(var(--s-h1), 9.6cqi); }
.centre-time { font-size: clamp(.66rem, .55rem + .3vw, .82rem); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- the 3D scene: tablet, slabs, orbiting nakshatras ---------- */
.stage { position: relative; perspective: 1300px; perspective-origin: 50% 40%; --R: 300px; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: -14%; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(184, 132, 94, .22) 0deg 1.4deg, transparent 1.4deg 15deg), radial-gradient(closest-side, rgba(232, 190, 140, .55), rgba(232, 190, 140, 0) 75%);
  -webkit-mask: radial-gradient(closest-side, #000 35%, transparent 100%); mask: radial-gradient(closest-side, #000 35%, transparent 100%); }
.motion .stage::before { animation: surya 90s linear infinite, glow 7s ease-in-out infinite alternate; }
@keyframes surya { to { transform: rotate(360deg); } }
@keyframes glow { from { opacity: .7; } to { opacity: 1; } }
.hero.off .stage::before { animation-play-state: paused; }
.scene { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); }
.float { position: relative; width: 70%; margin: 10% auto 22%; transform-style: preserve-3d; transform: rotateX(14deg) rotateY(-8deg); }
.motion .float { animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift {
  0% { transform: rotateX(18deg) rotateY(-12deg) translateY(0); }
  35% { transform: rotateX(9deg) rotateY(3deg) translateY(-12px); }
  70% { transform: rotateX(15deg) rotateY(12deg) translateY(-4px); }
  100% { transform: rotateX(11deg) rotateY(-3deg) translateY(-14px); }
}
.slab { position: absolute; inset: -7px; border: 1px solid var(--ink); }
.slab.s1 { background: var(--sand); transform: translateZ(-7px); }
.slab.s2 { background: #c7ab88; transform: translateZ(-14px); }
.slab.s3 { background: #a98a66; transform: translateZ(-21px); }
.ground { position: absolute; left: 16%; right: 16%; bottom: 3%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 38, 22, .32), transparent); filter: blur(6px); pointer-events: none; }
.motion .ground { animation: ground 16s ease-in-out infinite alternate; }
@keyframes ground { 0% { transform: scaleX(1); opacity: 1; } 35% { transform: scaleX(.9); opacity: .75; } 100% { transform: scaleX(.86); opacity: .7; } }
.hero.off .ground { animation-play-state: paused; }
.motion .gh { animation: bob 4.2s ease-in-out infinite alternate; }
.motion .cell:nth-child(3n) .gh { animation-delay: -1.4s; } .motion .cell:nth-child(3n+1) .gh { animation-delay: -2.8s; }
@keyframes bob { from { transform: translateZ(0); } to { transform: translateZ(22px); } }
.orbit-tilt { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-50deg) rotateZ(-6deg); }
.orbit { position: absolute; transform-style: preserve-3d; }
.motion .orbit { animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotateY(-360deg); } }
.orbit-line { position: absolute; left: calc(var(--R) * -1); top: calc(var(--R) * -1); width: calc(var(--R) * 2); height: calc(var(--R) * 2); border-radius: 50%; border: 1px dashed var(--copper-hi); transform: rotateX(90deg); opacity: .8; }
.ok { --a: calc(var(--i) * 13.3333deg); position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 clamp(.58rem, .46rem + .32vw, .78rem)/1 var(--f-brand); letter-spacing: .14em; text-transform: uppercase; color: var(--copper);
  transform: rotateY(var(--a)) translateZ(var(--R)) rotateY(calc(var(--a) * -1)) rotateX(50deg) translate(-50%, -50%); }
.motion .ok { animation: face 120s linear infinite; }
@keyframes face { /* counter-rotate so every name keeps facing the viewer as the ring turns */
  from { transform: rotateY(var(--a)) translateZ(var(--R)) rotateY(calc(var(--a) * -1)) rotateX(50deg) translate(-50%, -50%); }
  to { transform: rotateY(var(--a)) translateZ(var(--R)) rotateY(calc(var(--a) * -1 + 360deg)) rotateX(50deg) translate(-50%, -50%); }
}
:root:not([lang="en"]) .ok { font-family: var(--f-text); letter-spacing: .02em; text-transform: none; font-size: clamp(.62rem, .5rem + .3vw, .82rem); }
.ok.is-now { background: var(--copper); color: var(--on-copper); padding: 6px 10px 5px; box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--copper-hi); }
.ok.is-now::before { content: ""; position: absolute; left: 50%; top: -14px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--ivory-hi); box-shadow: 0 0 0 1px var(--copper), 0 0 14px 3px rgba(184, 132, 94, .7); }
.hero.off .float, .hero.off .orbit, .hero.off .ok, .hero.off .gh, .hero.off::before { animation-play-state: paused; }

/* ---------- manifesto ---------- */
.manifesto { background: radial-gradient(50% 70% at 78% 50%, rgba(201, 150, 100, .38), transparent 70%), radial-gradient(60% 80% at 8% 10%, rgba(184, 132, 94, .18), transparent 70%), #2f1e11; color: var(--ivory); padding-block: clamp(90px, 16vh, 180px); overflow: clip; }
.mf-in { max-width: 1320px; margin-inline: auto; padding-inline: var(--gut) var(--gut-r); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.manifesto-t { max-width: 18ch; }
.mf-moon { position: relative; display: grid; justify-items: center; gap: 22px; }
.mf-orbit { position: absolute; left: 50%; top: 42%; width: 140%; aspect-ratio: 1; border: 1px dashed rgba(217, 168, 120, .55); border-radius: 50%; transform: translate(-50%, -50%) rotateX(68deg); }
.motion .mf-orbit { animation: mforbit 40s linear infinite; }
@keyframes mforbit { to { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(360deg); } }
.mf-orbit::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: #e8be8c; box-shadow: 0 0 14px 4px rgba(232, 190, 140, .8); }
.moon3d.big { width: min(64%, 260px); height: auto; aspect-ratio: 1; }
.moon3d.big .moon-glow { inset: -40px; background: radial-gradient(circle, rgba(232, 190, 140, .45), transparent 66%); }
.manifesto .m-dark { fill: #1c120a; }
.manifesto .m-lit { fill: #f6e7cf; }
.mf-deg { font: 500 .9rem/1 var(--f-brand); letter-spacing: .16em; color: #e2b98a; font-variant-numeric: tabular-nums; }
:root:not([lang="en"]) .mf-deg { font-family: var(--f-text); letter-spacing: .02em; }
.manifesto-t { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.6rem); max-width: 20ch; line-height: 1.12; }
.motion .mw { color: rgba(245, 236, 226, .2); transition: color .35s; }
.motion .mw.lit { color: var(--ivory); }
.manifesto-t { color: var(--ivory); }

/* ---------- the meaning in our name ---------- */
.namesake { position: relative; overflow: clip; padding-block: clamp(100px, 14vw, 170px); background: radial-gradient(42% 60% at 24% 50%, rgba(255, 244, 226, .95), transparent 72%), radial-gradient(40% 50% at 96% 8%, rgba(201, 160, 112, .5), transparent 70%), linear-gradient(135deg, #ecd6b6, #f4e5cf 50%, #e6cba6); }
.nm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.emblem { display: grid; justify-items: center; gap: 26px; }
.emb-stage { width: min(78%, 360px); aspect-ratio: 1; perspective: 900px; }
.emb { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(18deg) rotateY(-14deg); }
.motion .emb { animation: emb 14s ease-in-out infinite alternate; }
@keyframes emb { 0% { transform: rotateX(20deg) rotateY(-22deg); } 50% { transform: rotateX(-6deg) rotateY(8deg); } 100% { transform: rotateX(14deg) rotateY(24deg); } }
.emb span { position: absolute; border-radius: 50%; border: 2px solid var(--copper-hi); }
.ring.r1 { inset: 0; } .ring.r2 { inset: 4%; transform: translateZ(-14px); opacity: .7; }
.pet { width: 46%; height: 46%; left: 27%; top: 27%; }
.pet.p1 { transform: translateX(-50%) translateZ(var(--z, 18px)); } .pet.p2 { transform: translateX(50%) translateZ(var(--z, 18px)); }
.pet.p3 { transform: translateY(-50%) translateZ(var(--z, 18px)); } .pet.p4 { transform: translateY(50%) translateZ(var(--z, 18px)); }
.pet.in { width: 37%; height: 37%; left: 31.5%; top: 31.5%; --z: 34px; opacity: .65; }
.pet.in.p1 { transform: translateX(-61%) translateZ(var(--z)); } .pet.in.p2 { transform: translateX(61%) translateZ(var(--z)); }
.pet.in.p3 { transform: translateY(-61%) translateZ(var(--z)); } .pet.in.p4 { transform: translateY(61%) translateZ(var(--z)); }
.motion .pet { animation: petal 6s ease-in-out infinite alternate; }
.motion .pet.p2, .motion .pet.p4 { animation-delay: -3s; }
@keyframes petal { from { --z: 6px; } to { --z: 46px; } }
@property --z { syntax: "<length>"; inherits: false; initial-value: 18px; }
.core { left: 46%; top: 46%; width: 8%; height: 8%; border: 0 !important; background: var(--copper-hi); box-shadow: 0 0 24px 8px rgba(232, 190, 140, .8); transform: translateZ(56px); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); border-radius: 0 !important; }
.nm-word { display: flex; gap: clamp(10px, 2.6vw, 30px); }
.nm-word span { display: grid; justify-items: center; gap: 6px; }
.nm-word b { font: 500 clamp(2.2rem, 1.4rem + 3vw, 4.2rem)/1 var(--f-brand); color: var(--ink); }
.nm-word i { font: 500 1.1rem/1 var(--f-brand); font-style: normal; color: var(--copper); }
.motion .nm-word i { opacity: 0; transform: translateY(-14px); transition: opacity .6s, transform .8s var(--ease); transition-delay: calc(.3s + var(--i) * .14s); }
.motion .emblem.in .nm-word i { opacity: 1; transform: none; }
.nm-sum { font: 500 clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem)/1 var(--f-brand); letter-spacing: .12em; color: var(--copper); display: flex; align-items: center; gap: 18px; }
.nm-sum::before, .nm-sum::after { content: ""; width: 56px; height: 1px; background: var(--copper-hi); }
.motion .nm-sum { opacity: 0; transform: scale(.9); transition: opacity .8s 1.3s, transform 1s 1.3s var(--ease); }
.motion .emblem.in .nm-sum { opacity: 1; transform: none; }
.nm-text { display: grid; gap: 20px; justify-items: start; }
.nm-text h2 { font-size: var(--s-h2); }
.nm-text > p:not(.kicker):not(.fine) { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; }
.namesake.off .emb, .namesake.off .pet { animation-play-state: paused; }

.fig-palm .hand { stroke: var(--ink); stroke-width: 1.4; }
.fig-palm .ln { stroke: var(--copper-hi); stroke-width: 2; }
.fig-palm .fate { stroke-dasharray: 3 3; }
.fig-palm .mounts text { font-size: 12px; }

/* ---------- five paths: palm leaves on a kalava thread ---------- */
.paths { position: relative; background: radial-gradient(70% 60% at 85% 15%, rgba(184, 132, 94, .2), transparent 70%), var(--forest); color: var(--ivory-hi); height: 600svh; }
.paths-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; padding-top: 100px; }
.paths-head { max-width: 1320px; width: 100%; margin-inline: auto; padding-inline: var(--gut) var(--gut-r); }
.paths .kicker { color: var(--sand); }
.paths h2 { font-size: var(--s-h2); color: var(--ivory-hi); }
.track-wrap { position: relative; display: flex; align-items: center; perspective: 1500px; }
.track { --x: 0px; list-style: none; margin: 0; padding: 0 10vw; display: flex; gap: 5vw; align-items: center; transform: translate3d(var(--x), 0, 0); transform-style: preserve-3d; will-change: transform; position: relative; }
.track::before { /* the red kalava thread through every leaf */ content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--copper-hi) 0 9px, #7a4f2f 9px 12px); z-index: 0; }
.leaf {
  position: relative; z-index: 1; flex: none; width: min(84vw, 1180px); height: min(44svh, 380px);
  border-radius: 5.5% / 50%; padding: 0 clamp(56px, 7vw, 104px); color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(110, 78, 30, .07) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-hi) 24%, var(--ivory-hi) 76%, var(--ivory) 100%);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); gap: 48px; align-items: center;
  box-shadow: inset 0 0 0 1px rgba(217, 195, 167, .7), 0 30px 60px -20px rgba(0, 0, 0, .6);
  transition: filter .8s;
  transform: translateZ(var(--tz, 0px)) rotateY(var(--lry, 0deg)); transform-style: preserve-3d;
}
.motion .leaf:not(.on) { filter: brightness(.74) saturate(.8); }
.hole { position: absolute; top: 50%; left: 26px; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: linear-gradient(var(--copper-hi), var(--copper-hi)) center / 100% 2px no-repeat, var(--forest); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.hole.h2 { left: auto; right: 26px; }
.leaf-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; row-gap: 10px; align-content: center; min-width: 0; }
.leaf-text > :not(.leaf-no) { grid-column: 2; }
.leaf-no { grid-row: 1 / span 5; align-self: start; }
.leaf-no { font: 400 4.6rem/.9 var(--f-num); color: var(--copper); }
.leaf-skt { font: 400 1.3rem/1.2 var(--f-num); color: var(--ink-3); }
.leaf h3 { font-size: var(--s-h3); }
.leaf-text > p:not(.leaf-no):not(.leaf-skt) { color: var(--ink-2); max-width: 46ch; }
.facts { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule-2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.facts li { display: grid; gap: 2px; font-size: .86rem; color: var(--ink-3); line-height: 1.3; }
.facts b { font: 600 2rem/1.1 var(--f-display); color: var(--ink); }
.fig { width: 100%; max-height: min(30svh, 260px); fill: none; stroke: var(--ink); stroke-width: 1.3; overflow: visible; }
.fig text { fill: var(--copper); stroke: none; font: 400 18px var(--f-num); text-anchor: middle; dominant-baseline: middle; }
.fig .brahma { fill: rgba(184, 132, 94, .22); stroke: var(--copper); }
.fig .earth { fill: var(--ink); }
.fig .pl { fill: var(--copper); stroke: none; }
.fig .pl-t { font-size: 11px; fill: var(--ink-2); font-family: var(--f-text); font-weight: 600; }
.motion .fig .dr { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); }
.motion .fig text, .motion .fig .pl, .motion .fig .brahma { opacity: 0; transition: opacity .7s .6s; }
.motion .leaf.on .fig .dr { stroke-dashoffset: 0; }
.motion .leaf.on .fig text, .motion .leaf.on .fig .pl, .motion .leaf.on .fig .brahma { opacity: 1; }

/* ---------- panchang ---------- */
.panchang { overflow-x: clip; background: radial-gradient(45% 50% at 6% 10%, rgba(214, 170, 120, .55), transparent 70%), linear-gradient(180deg, #ebd5b5, #f5e9d8 55%, #f0e0c8); padding-block: clamp(90px, 12vw, 150px); border-top: 4px double var(--ink); }
.pc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.pc-head h2 { font-size: var(--s-h2); }
.pc-head > p { color: var(--ink-2); max-width: 48ch; font-size: 1.08rem; }
.when { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.when label { font-weight: 600; }
.when input { min-height: 46px; border: 1px solid var(--ink); background: var(--ivory); padding: 0 12px; font-variant-numeric: tabular-nums; border-radius: 0; }
.limbs { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--ink); background: #fbf4e8; perspective: 900px; }
.limb { --rx: 0deg; --ry: 0deg; padding: 22px 20px 24px; display: grid; gap: 10px; align-content: start; border-inline-start: 1px solid var(--ink); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), background-color .25s; min-width: 0; }
.limb:first-child { border-inline-start: 0; }
.limb:hover { background: var(--ivory-hi); }
.limb-k { display: grid; font-weight: 600; color: var(--ink); line-height: 1.25; }
.limb-s { font-weight: 400; font-size: .85rem; color: var(--ink-3); }
.limb-v { font-size: clamp(1.4rem, 1rem + 1vw, 2.1rem); color: var(--copper); line-height: 1.15; overflow-wrap: anywhere; }
.limb-m { font-size: .84rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ephem-wrap { margin-top: 36px; overflow-x: auto; }
.ephem { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 520px; }
.ephem caption { text-align: start; font-weight: 600; padding-bottom: 12px; }
.ephem th { text-align: start; font-size: .85rem; font-weight: 500; color: var(--ink-3); padding: 8px 12px 8px 0; border-bottom: 2px solid var(--ink); }
.ephem td { padding: 11px 12px 11px 0; border-bottom: 1px dotted var(--rule-2); }
.ephem td:first-child b { color: var(--copper); margin-inline-end: 8px; display: inline-block; min-width: 2.2em; }
.ephem tbody tr { transition: background-color .2s; }
.ephem tbody tr:hover { background: var(--ivory); }
.panchang .fine { margin-top: 18px; max-width: 80ch; }

/* ---------- Moon: the real phase, as a slowly librating sphere ---------- */
.moonrow { margin-top: 40px; display: flex; align-items: center; gap: 24px; }
.moon3d { width: 116px; height: 116px; perspective: 500px; position: relative; flex: none; }
.moon-body { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; position: relative; transform-style: preserve-3d; box-shadow: 0 18px 30px -12px rgba(59, 38, 22, .45); }
.motion .moon-body { animation: librate 11s ease-in-out infinite alternate; }
@keyframes librate { from { transform: rotateY(-16deg) rotateX(6deg); } to { transform: rotateY(16deg) rotateX(-6deg); } }
.moon-body svg { display: block; width: 100%; height: 100%; }
.moon-body::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), transparent 45%), radial-gradient(circle at 50% 50%, transparent 55%, rgba(59, 38, 22, .35) 100%); pointer-events: none; }
.m-dark { fill: #4a3524; }
.m-lit { fill: #f3e6d2; }
.moon-glow { position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(184, 132, 94, .28), transparent 65%); z-index: -1; }
.moon-cap { display: grid; gap: 2px; }
#moonPct { font: 600 2.2rem/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.moon-sub { color: var(--ink-3); }

/* panchang limbs flip in, one after another */
.motion .limbs.in .limb { animation: flip .9s var(--ease) backwards; }
.motion .limbs.in .limb:nth-child(2) { animation-delay: .08s; } .motion .limbs.in .limb:nth-child(3) { animation-delay: .16s; }
.motion .limbs.in .limb:nth-child(4) { animation-delay: .24s; } .motion .limbs.in .limb:nth-child(5) { animation-delay: .32s; }
.motion .limbs:not(.in) .limb { opacity: 0; }
@keyframes flip { from { opacity: 0; transform: rotateY(-70deg) translateZ(-40px); } }

/* numerology figure: the brand's own number, ANTRRA = 15 / 6 */
.fig-num .lt text { font: 500 22px var(--f-brand); fill: var(--ink); }
.fig-num text { font-size: 22px; }
.fig-num .big { font: 600 30px var(--f-display); fill: var(--ink); }
.fig-num circle { fill: var(--copper-hi); stroke: none; }

/* opening: the petal symbol draws itself */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--ivory); pointer-events: none; animation: introOut .7s 1.5s var(--ease) forwards; }
.intro svg { width: min(34vw, 180px); fill: none; stroke: var(--copper-hi); stroke-width: 1.6; overflow: visible; }
.intro circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease) forwards; }
.intro circle:nth-child(n+3) { animation-delay: .25s; } .intro circle:nth-child(n+7) { animation-delay: .45s; }
.intro svg { animation: bloom 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bloom { from { transform: rotate(-90deg) scale(.7); } to { transform: rotate(0) scale(1); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }

/* ---------- method ---------- */
.method { padding-block: clamp(90px, 12vw, 150px); overflow-x: clip; background: linear-gradient(180deg, #f3e6d3, #e9d4b4); }
.method h2 { font-size: var(--s-h2); max-width: 16ch; }
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 3px double var(--ink); }
.step-n { font: 400 4.2rem/1 var(--f-num); color: var(--copper); }
.step h3 { font: 600 1.3rem/1.3 var(--f-text); }
.step p { color: var(--ink-2); max-width: 32ch; }
.care { list-style: none; margin: 64px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; font-weight: 600; font-size: 1.05rem; }
.care li { display: inline-flex; align-items: center; gap: 12px; }
.care li::before { content: ""; width: 8px; height: 8px; background: var(--copper); transform: rotate(45deg); flex: none; }

/* ---------- note, faq, join, footer ---------- */
.disclosure { background: var(--sand-lo); border-block: 4px double var(--ink); padding-block: 30px; }
.disclosure p { max-width: 80ch; color: var(--ink-2); font-size: .95rem; }
.disclosure strong { color: var(--ink); }
.faq { padding-block: clamp(90px, 12vw, 140px); background: #f5eadb; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; }
.faq h2 { font-size: var(--s-h2); }
.qa details { border-top: 1px solid var(--ink); }
.qa details:last-child { border-bottom: 1px solid var(--ink); }
.qa summary { list-style: none; cursor: pointer; padding-block: 22px; display: flex; justify-content: space-between; gap: 24px; font-size: 1.15rem; font-weight: 600; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 7px; background: linear-gradient(var(--copper), var(--copper)) center/100% 2px no-repeat, linear-gradient(var(--copper), var(--copper)) center/2px 100% no-repeat; transition: transform .4s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--copper); }
.qa details > div { padding-bottom: 24px; }
.qa details > div p { color: var(--ink-2); max-width: 62ch; }
.qa details[open] > div { animation: drop .4s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

.join { background: var(--forest); color: var(--ivory-hi); padding-block: clamp(90px, 12vw, 150px); }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.join .kicker { color: var(--sand); }
.join h2 { font-size: var(--s-h2); color: var(--ivory-hi); }
.join-grid > div > p:not(.kicker) { color: rgba(245, 236, 226, .82); margin-top: 22px; max-width: 42ch; }
.join .fine { color: var(--sand); }
.form { display: grid; gap: 20px; background: var(--ivory-hi); color: var(--ink); padding: 34px; box-shadow: 0 0 0 6px var(--forest), 0 0 0 7px var(--sand); }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; }
.field input:not([type="checkbox"]), .field select { min-height: 50px; width: 100%; background: var(--ivory); border: 1px solid var(--ink); padding: 0 14px; font-size: 1rem; border-radius: 0; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--copper) 50%), linear-gradient(-45deg, transparent 50%, var(--copper) 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--copper); outline-offset: 0; }
.help { font-size: .85rem; color: var(--ink-3); }
.err { display: none; font-size: .88rem; color: var(--err); font-weight: 500; }
.field.bad .err { display: block; }
.field.bad input { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.check input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--copper); }
.check label { font-weight: 400; color: var(--ink-2); }
.check .err { grid-column: 2; }
.form .btn { justify-self: start; }
.status { min-height: 1.4em; font-size: .95rem; }
.status.ok { color: var(--ok); } .status.no { color: var(--err); }

.foot { background: var(--forest); color: var(--ivory-hi); border-top: 1px solid rgba(217, 195, 167, .35); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; }
.foot-in > p:first-of-type { color: rgba(245, 236, 226, .7); font-size: .95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-inline-start: auto; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; color: rgba(245, 236, 226, .82); }
.foot-links a:hover { color: var(--ivory-hi); text-decoration: underline; text-decoration-color: var(--copper-hi); text-underline-offset: 5px; }
.foot .fine { color: var(--sand); }

/* ---------- motion helpers ---------- */
.motion .reveal { opacity: 0; transform: perspective(900px) rotateX(-24deg) translateY(36px); transform-origin: 50% 100%; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .step.reveal:nth-child(2) { transition-delay: .1s; } .motion .step.reveal:nth-child(3) { transition-delay: .2s; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
:root:not([lang="en"]) .w { padding-bottom: .3em; margin-bottom: -.3em; }
.motion .split .wi { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(.25s + var(--i) * 60ms); }
.motion .split.in .wi { transform: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "stage stage" "l r"; }
  .stage { grid-area: stage; width: min(100%, 620px); margin-inline: auto; }
  .flank-l { grid-area: l; } .flank-r { grid-area: r; }
  .limbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .limb:nth-child(4) { border-inline-start: 0; }
  .limb:nth-child(n+4) { border-top: 1px solid var(--ink); }
}
@media (max-width: 860px) {
  .menu { display: inline-block; }
  .mast-r .btn-sm { display: none; }
  .nav { position: fixed; inset: 72px 0 auto; margin: 0; flex-direction: column; gap: 0; background: var(--ivory-hi); border-bottom: 4px double var(--ink); padding: 8px var(--gut-r) 20px var(--gut); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  .nav a { font-size: 1.15rem; padding-block: 14px; border-bottom: 1px solid var(--rule); background: none; }
  .lang { margin-inline-start: auto; }
  .mast-in { gap: 10px; }
  .hero { min-height: 0; padding-block: 12px 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "l" "r"; gap: 34px; }
  .now, .chart-cap { max-width: none; }
  .gh { gap: 0 5px; }
  .float { width: 72%; margin: 8% auto 24%; }
  .brand .wm { height: 16px; }
  .brand .sym { width: 28px; height: 28px; }
  .moonrow { gap: 18px; }
  .moon3d { width: 92px; height: 92px; }
  .g sup { display: none; }
  .centre { gap: 6px; padding: 4%; }
  .paths { height: auto; padding-block: 90px; }
  .paths-pin { position: static; height: auto; overflow: visible; padding-top: 0; gap: 34px; }
  .track-wrap { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 20px 30px; }
  .track-wrap::-webkit-scrollbar { display: none; }
  .track { transform: none !important; padding: 0 var(--gut); gap: 16px; }
  .leaf-text { grid-template-columns: minmax(0, 1fr); }
  .leaf-text > :not(.leaf-no) { grid-column: 1; }
  .leaf-no { grid-row: auto; font-size: 2.8rem; }
  .leaf { width: 86vw; height: auto; border-radius: 28px / 7%; padding: 40px 26px; grid-template-columns: minmax(0, 1fr); scroll-snap-align: center; gap: 22px; }
  .fig { order: -1; max-height: 160px; }
  .hole { top: 24px; margin-top: 0; left: 16px; }
  .hole.h2 { right: 16px; }
  .track::before { top: 53px; }
  .motion .leaf:not(.on) { transform: none; filter: none; }
  .pc-head, .faq-grid, .join-grid, .nm-grid, .mf-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mf-moon { margin-top: 30px; }
  .nm-grid { gap: 48px; }
  .limbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limb:nth-child(n) { border-inline-start: 0; border-top: 1px solid var(--ink); }
  .limb:nth-child(even) { border-inline-start: 1px solid var(--ink); }
  .limb:first-child, .limb:nth-child(2) { border-top: 0; }
  .limb:last-child { grid-column: 1 / -1; border-inline-start: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .form { padding: 22px; }
}
@media (max-width: 420px) {
  #langcur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lang { padding-inline-end: 6px; }
  .ctas .btn-seal { flex: 1 1 100%; }
  .lang { padding-inline-end: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .paths { height: auto; padding-block: 90px; }
  .paths-pin { position: static; height: auto; overflow: visible; padding-top: 0; gap: 34px; }
  .track-wrap { overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 20px 30px; }
  .track { transform: none !important; }
  .leaf { scroll-snap-align: center; }
}

/* ---------- document pages ---------- */
.docpage { background: var(--ivory); }
.doc { max-width: 760px; padding-block: 100px 140px; min-height: 80svh; }
.doc h1 { font-size: var(--s-h2); margin-bottom: 30px; }
.doc p { color: var(--ink-2); margin-top: 16px; max-width: 62ch; }
.doc .doc-note { font-size: .9rem; color: var(--ink-3); border-top: 3px double var(--ink); padding-top: 16px; margin-top: 34px; }
