/* ============================================================================
   Starwink website v6 (founder review of v5, 2026-09-29). Loads after v5.css; overrides only.
   Controls and Why rhyme are built from the app's own parts (UI-Style-V36 sections 3, 4, 6, 7):
   page cards (--l1 + hairline), round marks (PopGlyph: the gold wash or sage disc with a line icon),
   rows and lines between hairlines (DzbRow / DzbLine), the gold switch, numerals on paper in --tag-ink-gold.
   ========================================================================== */

/* 1. the shelf: headroom for the peek (the card rises inside the row, never under its edge) */
.rb-card { will-change: transform, opacity; }

/* 2. the worlds title: day, and the night rising over it as you scroll */
.wt { position: relative; --wt: 0; }
.wt-pin { position: relative; height: 190vh; }
.wt-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.wt-day, .wt-night { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wt-day { transform: scale(calc(1.06 - var(--wt) * 0.04)); filter: brightness(calc(1 - var(--wt) * 0.3)); }
.wt-night { transform: scale(calc(1.1 - var(--wt) * 0.1)); will-change: mask-image, transform; }
.wt-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 62% 42% at 50% 54%, rgba(var(--feature-bg-rgb), 0.62), rgba(var(--feature-bg-rgb), 0) 100%),
    linear-gradient(180deg, var(--feature-bg) 0%, rgba(var(--feature-bg-rgb), 0) 16%, rgba(var(--feature-bg-rgb), 0) 80%, var(--feature-bg) 100%); }
.wt-copy { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 var(--site-gutter); }
.wt-h { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 1.3rem + 5vw, 5.6rem); line-height: 1.02; text-wrap: balance;
  text-shadow: 0 3px 30px rgba(var(--feature-bg-rgb), 0.85); }
.wt-a, .wt-b { display: block; }
.wt-a { color: var(--onart-ink); opacity: calc(1 - var(--wt) * 0.62); transform: translateY(calc(var(--wt) * -10px)); }
.wt-b { color: var(--cta); opacity: calc(0.34 + var(--wt) * 0.66); transform: translateY(calc((1 - var(--wt)) * 12px)); }
.wt-line { margin: var(--sp-5) auto 0; max-width: 34rem; font-size: var(--site-lead); line-height: 1.5; color: rgba(242, 239, 232, 0.94); text-shadow: 0 1px 14px rgba(var(--feature-bg-rgb), 1); }
.wt-orb { position: absolute; z-index: 1; width: 4.5rem; height: 4.5rem; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cta-rgb), 0.35), rgba(var(--cta-rgb), 0) 70%); transition: background calc(var(--dur-large) * var(--dz-k)) var(--ease-light); }
.wt-orb .ico { grid-area: 1 / 1; width: 2.4rem; height: 2.4rem; transition: opacity calc(var(--dur-large) * var(--dz-k)) var(--ease-light), transform calc(var(--dur-large) * var(--dz-k)) var(--ease-settle); }
.wt-sun { color: var(--cta); }
.wt-moon { color: var(--onart-ink); opacity: 0; transform: rotate(-30deg) scale(0.7); }
.wt.is-night .wt-sun { opacity: 0; transform: rotate(40deg) scale(0.7); }
.wt.is-night .wt-moon { opacity: 1; transform: none; }
.wt.is-night .wt-orb { background: radial-gradient(circle, rgba(242, 239, 232, 0.28), rgba(242, 239, 232, 0) 70%); }
.worlds4 { padding-top: 0; }
@media (max-width: 819.98px) { .wt-pin { height: 160vh; } .wt-orb { width: 3.5rem; height: 3.5rem; } .wt-orb .ico { width: 1.9rem; height: 1.9rem; } }
@media (prefers-reduced-motion: reduce) { .wt-pin { height: auto; } .wt-sticky { position: relative; } }

/* 3. keepsakes on the page's own ground: no picture behind them */
.keeps4::before { content: none; }
.k4-head .h2, .k4-head .lead { text-shadow: none; }
.k4-card { background: var(--l1); background-image: var(--corner-glow); -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink-title);
  box-shadow: var(--sh-lg), inset 0 0 0 1px var(--hairline); }
.k4-cname { color: var(--ink-title); }
.k4-desc { color: var(--ink-body); }
.k4-fact { background: var(--gold-wash); box-shadow: inset 0 0 0 1px rgba(var(--tag-gold-rgb), 0.45); }
.k4-fact p { color: var(--ink-title); }
.k4-fk { color: var(--tag-ink-gold) !important; }
.k4-fact .src { color: var(--ink-body); }
.k4-from { color: var(--ink-body); }
.k4-from strong { color: var(--ink-title); }
.k4-name { background: var(--l1); color: var(--ink-title); box-shadow: var(--sh-sm), inset 0 0 0 1px var(--hairline); }
.k4-hint, .keeps4 .foot-note { color: var(--ink-body); }
#app-frame.dz-light .k4-halo { background: radial-gradient(circle, rgba(var(--tag-gold-rgb), 0.55) 0%, rgba(var(--tag-gold-rgb), 0.12) 40%, transparent 64%); }

/* shared: the app's round mark (PopGlyph) */
.c6-mark { flex: none; display: grid; place-items: center; width: var(--sp-8); height: var(--sp-8); border-radius: var(--radius-pill); background: var(--gold-wash); color: var(--tag-ink-gold); }
.c6-mark .ico { width: 18px; height: 18px; }
.c6-mark--sage { background: var(--sage-bg); color: var(--tag-ink-sage); }
.c6-mark--sm { width: 1.75rem; height: 1.75rem; }
.c6-mark--sm .ico { width: 15px; height: 15px; }

/* 8. you're in charge: one page card, settings as rows with gold switches, what is always on as lines */
.c6-card { padding: var(--sp-5) var(--sp-6) var(--sp-4); border-radius: var(--radius-card); background: var(--l1); box-shadow: var(--sh-card), inset 0 0 0 1px var(--hairline); }
.c6-label { margin: 0 0 var(--sp-1); font-size: var(--fs-meta); font-weight: 800; color: var(--ink-body); }
.c6-label--2 { margin-top: var(--sp-6); }
.c6-rows, .c6-lines { list-style: none; margin: 0; padding: 0; }
.c6-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) 0; border-top: 1px solid var(--hairline); }
.c6-rows li:first-child { border-top: 0; }
.c6-t { display: grid; gap: 2px; }
.c6-t b { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.25; color: var(--ink-title); }
.c6-t span { font-size: 0.95rem; color: var(--ink-body); }
.c4-sw.c6-sw { width: 48px; height: 28px; background: var(--l3); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.c4-sw.c6-sw i { background: var(--onart-ink); box-shadow: 0 2px 6px rgba(var(--shadow-rgb), 0.35); }
.c4-sw.c6-sw.is-on { background: var(--gold-grad); box-shadow: none; }
.c4-sw.c6-sw.is-on i { transform: translateX(20px); background: var(--onart-ink); }
.c6-lines li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--hairline); font-weight: 700; color: var(--ink-title); }
.c6-lines li:last-child { border-bottom: 1px solid var(--hairline); }
.c6-lines li:first-child { border-top: 0; }

/* 9. why rhyme: each finding next to its demonstration, on a real line from our stories */
.why6 { padding: var(--site-section) 0; }
.y6-head { max-width: 44rem; }
.y6-list { list-style: none; margin: var(--sp-8) 0 0; padding: 0; display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); }
.y6-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.y6-row > * { min-width: 0; }
.y6-row:nth-child(even) .y6-demo { order: -1; }
.y6-n { display: block; font-family: var(--font-numeral); font-weight: 600; font-size: 3rem; line-height: 1; color: var(--tag-ink-gold); }
.y6-q { margin: var(--sp-2) 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem); line-height: 1.12; color: var(--ink-title); text-wrap: balance; }
.y6-a { margin: var(--sp-3) 0 0; max-width: 34rem; line-height: 1.6; color: var(--ink-body); }
.y6-src { display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); font-size: var(--fs-meta); font-weight: 700; color: var(--ink-body); text-decoration: none; }
.y6-src span:last-child { text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.y6-src:hover span:last-child { color: var(--ink-title); text-decoration-color: currentColor; }
.y6-demo { position: relative; margin: 0; display: grid; align-content: center; gap: var(--sp-4); min-height: 15rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-card); background: var(--l1); background-image: var(--corner-glow); box-shadow: var(--sh-card), inset 0 0 0 1px var(--hairline); }
.y6-demo figcaption { font-size: var(--fs-meta); font-weight: 700; color: var(--ink-body); }
/* demo 1: a week of calm bedtimes, lit one night after another */
.y6-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-2); }
.y6-night { display: grid; justify-items: center; gap: 6px; }
.y6-disc { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: var(--radius-pill); background: var(--l2); color: var(--meta, var(--ink-body));
  transition: background-color calc(500ms * var(--dz-k)) var(--ease-light), color calc(500ms * var(--dz-k)) var(--ease-light), transform calc(600ms * var(--dz-k)) var(--ease-settle);
  transition-delay: calc(var(--d) * 220ms * var(--dz-k) + 300ms); }
.y6-disc .ico { width: 18px; height: 18px; }
.y6-day { font-size: var(--fs-micro, 0.72rem); font-weight: 700; color: var(--ink-body); text-transform: capitalize; }
.y6-row.is-live .y6-disc { background: var(--gold-wash); color: var(--tag-ink-gold); transform: scale(1.08); box-shadow: 0 0 0 1px rgba(var(--tag-gold-rgb), 0.5); }
/* demo 2: the shared ending of two rhyme words, lit */
.y6-verse { margin: 0; font-family: var(--font-verse, var(--font-display)); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.7; color: var(--ink-title); }
.y6-verse .ln { display: block; }
.y6-end { color: var(--tag-ink-gold); background: linear-gradient(transparent 62%, rgba(var(--tag-gold-rgb), 0.45) 62%) no-repeat 0 0 / 0% 100%;
  transition: background-size calc(600ms * var(--dz-k)) var(--ease-soft); }
.y6-row.is-live .y6-end { background-size: 100% 100%; }
.y6-row.is-live .ln + .ln .y6-end { transition-delay: calc(450ms * var(--dz-k)); }
.y6-rime { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-family: var(--font-display); font-weight: 700; color: var(--ink-title); }
.y6-rime > span:not(.y6-arrow) { padding: 4px 12px; border-radius: var(--radius-pill); background: var(--l2); }
.y6-arrow { color: var(--ink-body); }
.y6-rime .y6-chip { background: var(--gold-wash); color: var(--tag-ink-gold); transform: scale(0.6); opacity: 0;
  transition: transform calc(520ms * var(--dz-k)) var(--ease-settle) calc(1000ms * var(--dz-k)), opacity calc(300ms * var(--dz-k)) var(--ease-light) calc(1000ms * var(--dz-k)); }
.y6-row.is-live .y6-chip { transform: none; opacity: 1; }
/* demo 3: the cue lights, then the rhyme word lands on its own */
.y6-row[data-demo="guess"] .y6-verse .ln:first-child .y6-end { transition-delay: calc(300ms * var(--dz-k)); }
.y6-land { display: inline-block; color: var(--tag-ink-gold); font-weight: 800; opacity: 0; transform: translateY(-0.7em) rotate(-8deg); }
.y6-row.is-live .y6-land { animation: y6-land calc(700ms * var(--dz-k)) var(--ease-settle) calc(1400ms * var(--dz-k)) forwards; }
@keyframes y6-land { to { opacity: 1; transform: none; } }
/* demo 4: the same line, in both languages */
.y6-pair { display: grid; gap: var(--sp-3); }
.y6-pair p { margin: 0; display: flex; align-items: baseline; gap: var(--sp-3); font-family: var(--font-verse, var(--font-display)); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem); line-height: 1.5; color: var(--ink-title); }
.y6-pair p[lang="ro"] { opacity: 0; transform: translateY(8px); transition: opacity calc(600ms * var(--dz-k)) var(--ease-light) calc(700ms * var(--dz-k)), transform calc(600ms * var(--dz-k)) var(--ease-settle) calc(700ms * var(--dz-k)); }
.y6-row.is-live .y6-pair p[lang="ro"] { opacity: 1; transform: none; }
.y6-tag { flex: none; padding: 2px 8px; border-radius: var(--radius-chip); font-family: var(--font-body, inherit); font-size: var(--fs-micro, 0.72rem); font-weight: 800; color: var(--tag-ink-gold); background: var(--gold-wash); }
.y6-note { display: flex; align-items: center; gap: var(--sp-3); max-width: 44rem; margin: var(--sp-8) 0 0; color: var(--ink-body); }
@media (max-width: 860px) {
  .y6-row { grid-template-columns: 1fr; }
  .y6-row:nth-child(even) .y6-demo { order: 0; }
  .y6-demo { min-height: 0; }
  .y6-disc { width: 2.1rem; height: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .y6-disc, .y6-end, .y6-chip, .y6-pair p[lang="ro"] { transition: none; }
  .y6-land { opacity: 1; transform: none; animation: none !important; }
}

/* 10. the finale: the sleeping valley under the moon */
.finale4 .finale-sky { object-position: 50% 38%; }
.finale4::before { background: radial-gradient(ellipse 60% 42% at 50% 74%, rgba(var(--feature-bg-rgb), 0.78), rgba(var(--feature-bg-rgb), 0) 100%),
  linear-gradient(0deg, rgba(var(--feature-bg-rgb), 0.95) 0%, rgba(var(--feature-bg-rgb), 0.45) 38%, rgba(var(--feature-bg-rgb), 0) 64%); }

/* v6.1 - the night line waits for the night; the rhyme mark is a thin gold underline, not a block */
.wt-b { opacity: clamp(0, calc(var(--wt) * 1.6 - 0.3), 1); filter: blur(calc((1 - var(--wt)) * 6px)); }
.wt-a { opacity: clamp(0.4, calc(1 - var(--wt) * 0.6), 1); }
.wt-scrim { background: radial-gradient(ellipse 58% 40% at 50% 52%, rgba(var(--feature-bg-rgb), 0.74), rgba(var(--feature-bg-rgb), 0) 100%),
  linear-gradient(180deg, var(--feature-bg) 0%, rgba(var(--feature-bg-rgb), 0) 16%, rgba(var(--feature-bg-rgb), 0) 80%, var(--feature-bg) 100%); }
.y6-end { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 2px; padding-bottom: 1px; }
.y6-row.is-live .y6-end { background-size: 100% 2px; }

/* phones: the moon hangs above the words, never behind them */
@media (max-width: 819.98px) { .finale4 .finale-sky { object-position: 50% 22%; } .finale4 .finale-grid { padding-top: 52vh; } }
