/* Landing. One scene, one line, two calls. Below the fold: four ruled blocks. */

.landing main { padding: 0 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  padding-top: 76px;
  border-bottom: 1px solid var(--hair);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px clamp(28px, 5vw, 84px) 56px;
  position: relative; z-index: 2;
}
.kicker { margin: 0 0 26px; }
.hero-wm { font-size: clamp(132px, 15.5vw, 236px); margin: 0 0 30px -0.04em; }
.hero h1 {
  font-weight: 420; font-stretch: 100%;
  font-size: clamp(30px, 3.1vw, 46px); line-height: 1.04; letter-spacing: -0.028em;
  margin: 0 0 18px; max-width: 13em; text-wrap: balance;
}
.hero .sub { color: var(--ink2); font-size: 17px; line-height: 1.55; margin: 0 0 32px; max-width: 30em; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ctas .btn { --h: 50px; padding: 0 24px; font-size: 16px; }
.facts { list-style: none; padding: 0; margin: 44px 0 0; display: flex; border-top: 1px solid var(--hair); max-width: 520px; }
.facts li { flex: 1; padding: 14px 16px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 520; }
.facts li + li { padding-left: 16px; border-left: 1px solid var(--hair2); }

/* load choreography: keyframes only, no JS trigger */
.hero-copy > * { animation: arrive 0.8s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.22s; }
.hero-copy > :nth-child(4) { animation-delay: 0.3s; }
.hero-copy > :nth-child(5) { animation-delay: 0.38s; }
.hero-copy > :nth-child(6) { animation-delay: 0.46s; }
.hero-wm .t2 { animation: knock 1.1s 0.55s var(--spring) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes knock { from { transform: rotate(0deg); } 55% { transform: rotate(14deg); } to { transform: rotate(11deg); } }

.scene { margin: 0; position: relative; border-left: 1px solid var(--hair); min-height: 520px; overflow: hidden; animation: fadeIn 1.2s 0.2s var(--ease) both; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene::after { /* print grain: material, not gradient */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.09; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scene-legend { position: absolute; right: 18px; bottom: 16px; display: flex; gap: 16px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); z-index: 2; }
.scene-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.down-bg { background: var(--loss); }
.up-bg { background: var(--gain); }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- blocks ---------- */
.block { padding: clamp(72px, 9vw, 128px) clamp(28px, 5vw, 84px); border-bottom: 1px solid var(--hair); }
.block-head { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: end; gap: 24px; margin-bottom: 56px; }
.block-head .label { margin: 0; align-self: start; padding-top: 12px; }
.block h2 { font-weight: 400; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -0.032em; margin: 0; text-wrap: balance; }
.block h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; margin: 0 0 10px; }
.block p { margin: 0; }
.ink { color: var(--ink); font-weight: 600; }
b { font-weight: 640; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.steps li { padding: 22px 26px 8px 0; color: var(--ink2); font-size: 15.5px; line-height: 1.6; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--hair2); }
.steps li:nth-child(3) h3::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gain); margin-left: 9px; vertical-align: 3px; }
.steps li:nth-child(2) h3::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--loss); margin-left: 9px; vertical-align: 3px; }
.steps h3 { color: var(--ink); }
.steps b { color: var(--ink); }
.step-n { display: block; font-size: 12px; color: var(--ink3); margin-bottom: 40px; }

.king { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 84px); align-items: center; }
.king-copy .label { margin-bottom: 26px; }
.king-copy h2 { margin-bottom: 26px; }
.king-copy p.label { font-size: 11px; }
.king-copy p:not(.label) { font-size: 17px; line-height: 1.6; max-width: 30em; }
.king-copy p + p { margin-top: 16px; font-size: 15.5px; }
.card-demo { margin: 0; }
.card-demo canvas { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--hair); }
.card-demo figcaption { margin-top: 12px; }

.ledger { margin: 0; border-top: 1px solid var(--hair); max-width: 980px; margin-left: auto; width: 100%; }
.rules .ledger { margin-left: calc((100% + 24px) * 0.46); width: auto; }
.ledger div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--hair2); }
.ledger dt { color: var(--ink2); }
.ledger dd { margin: 0; text-align: right; font-weight: 540; }
.note { margin-top: 28px !important; max-width: 40em; font-size: 15px; line-height: 1.6; }
.rules .note { margin-left: calc((100% + 24px) * 0.46) !important; }

.risk-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.risk-list article { padding: 24px 28px 30px 0; border-bottom: 1px solid var(--hair2); color: var(--ink2); line-height: 1.6; }
.risk-list article:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--hair2); }
.risk-list h3 { color: var(--ink); }

.bell { padding: clamp(80px, 10vw, 140px) clamp(28px, 5vw, 84px); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; border-bottom: 1px solid var(--hair); }
.bell h2 { font-weight: 400; font-size: clamp(34px, 5.4vw, 80px); letter-spacing: -0.035em; line-height: 1; margin: 0; display: flex; flex-wrap: wrap; gap: 0 0.28em; align-items: baseline; }
.bell h2 .mono { font-weight: 400; letter-spacing: -0.04em; font-size: 0.92em; }
.bell .label { margin: 0; }
.bell .btn { --h: 50px; padding: 0 24px; font-size: 16px; }

.foot { padding: 40px clamp(28px, 5vw, 84px) 56px; margin: 0 12px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot-wm { font-size: 40px; }
.foot nav { display: flex; gap: 6px; }
.foot nav a { color: var(--ink2); text-decoration: none; padding: 10px 10px; font-size: 14.5px; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin: 0 0 0 auto; font-size: 14px; }

/* reveal on scroll, with a fallback so the page is never blank */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--hair2); padding-top: 22px; }
  .step-n { margin-bottom: 20px; }
  .risk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-list article:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .risk-list article:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--hair2); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 64px; }
  .hero-copy { padding: 44px 22px 36px; }
  .scene { border-left: 0; border-top: 1px solid var(--hair); min-height: 0; height: 440px; }
  .block-head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .block-head .label { padding-top: 0; }
  .king { grid-template-columns: 1fr; }
  .rules .ledger, .rules .note { margin-left: 0 !important; }
}
@media (max-width: 640px) {
  .landing main { padding: 0 6px; }
  .block, .bell { padding-left: 18px; padding-right: 18px; }
  .hero-copy { padding: 36px 18px 30px; }
  .hero-wm { font-size: clamp(110px, 40vw, 168px); margin-bottom: 22px; }
  .hero h1 { font-size: 30px; }
  .hero .sub { font-size: 16px; margin-bottom: 26px; }
  .ctas .btn { flex: 1 1 auto; }
  .facts { margin-top: 32px; }
  .facts li { font-size: 14px; padding-right: 10px; }
  .facts li + li { padding-left: 10px; }
  .scene { height: 380px; }
  .steps, .risk-list { grid-template-columns: 1fr; }
  .steps li, .steps li + li, .risk-list article, .risk-list article:nth-child(2n) { padding-left: 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--hair2); padding-top: 22px; }
  .ledger div { flex-direction: column; gap: 2px; }
  .ledger dd { text-align: left; }
  .foot { margin: 0 6px; padding: 32px 18px 44px; gap: 14px; }
  .foot p { margin: 0; width: 100%; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 27px; }
  .facts { flex-direction: column; }
  .facts li, .facts li + li { padding: 10px 0 0; border-left: 0; flex-direction: row; justify-content: space-between; }
  .scene-legend { left: 14px; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* frame: around the hero only (judge round 1) */
.hero > .frame { position: absolute; inset: 0 0 0 0; border-bottom: 0; z-index: 3; }
.hero > .frame::after { display: none; }

/* risks: a ruled list, title left, text right (no equal cards) */
.risk-list { display: block; }
.risk-list article { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 24px; padding: 22px 0 !important; border-left: 0 !important; }
.risk-list article h3 { margin: 0; }
@media (max-width: 900px) { .risk-list article { grid-template-columns: 1fr; gap: 6px; } }

/* rules: anti-wash note on the left, sticky, so the column carries the argument */
.rules-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 24px; }
.rules-left { position: sticky; top: 100px; align-self: start; padding-top: 12px; }
.rules-left .label { margin: 0 0 22px; }
.rules .rules-left .note { margin: 0 !important; max-width: 24em; font-size: 16px; }
.rules-right h2 { margin-bottom: 40px; }
.rules .ledger { margin-left: 0; width: 100%; }
@media (max-width: 900px) {
  .rules-grid { grid-template-columns: 1fr; }
  .rules-left { position: static; display: contents; }
  .rules-left .label { order: 0; }
  .rules-right { order: 1; }
  .rules-left .note { order: 2; margin-top: 24px !important; }
}
