/* Landing page only. Scroll scenes are driven by src/landing/*.js; this is their layout. */
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.display.thin { font-weight: 300; letter-spacing: -0.045em; font-size: clamp(42px, 7.2vw, 96px); line-height: 0.98; }
.landing .bar nav { margin-left: auto; }
@media (max-width: 720px) { .landing .bar nav { display: none; } .landing .bar .btn { margin-left: auto; } }

/* ---- Scene (pinned hero) ---- */
.scene { position: relative; height: 480vh; margin-top: -78px; }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #04050a; }
#yard { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4,5,10,.65), transparent 38%, transparent 70%, rgba(4,5,10,.7)); }
.scene-copy { position: absolute; inset: 16vh 0 auto 0; z-index: 2; will-change: opacity, transform; }
.scene-copy .mono { color: var(--muted); margin-bottom: 22px; }
.scene-copy .lede { margin-top: 26px; color: rgba(245,245,247,.72); }
.telemetry { position: absolute; z-index: 3; right: max(16px, calc((100vw - var(--maxw)) / 2)); bottom: 28px; width: 270px; padding: 6px 18px; border-radius: var(--r-card); color: #f5f5f7; }
.telemetry > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.1); }
.telemetry > div:first-child { border-top: 0; }
.telemetry span { color: rgba(245,245,247,.55); } .telemetry b { font-weight: 500; font-variant-numeric: tabular-nums; }
.telemetry .c-ok { color: var(--ok); } .telemetry .c-warn { color: #ffb020; } .telemetry .c-bad { color: #ff5a4f; }
.scene-caption { position: absolute; z-index: 3; left: max(16px, calc((100vw - var(--maxw)) / 2)); bottom: 32px; max-width: 300px; line-height: 1.7; color: rgba(245,245,247,.75); }
.scene-hint { position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translateX(-50%); color: rgba(245,245,247,.6); }
.scene-hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 10px auto 0; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.scene-tag { position: absolute; z-index: 3; right: max(16px, calc((100vw - var(--maxw)) / 2 + 10px)); top: 24vh; opacity: 0; transform: translateY(-30px) scale(.9); transition: opacity .5s, transform .6s var(--ease); pointer-events: none; }
.scene-tag .loto { animation: none; }
.scene-tag.show { opacity: 1; transform: none; }
.scene-tag.show .loto { animation: swing 2.4s var(--ease) 1; }
@media (max-width: 900px) {
  .scene-caption { display: none; }
  .telemetry { left: 16px; right: 16px; width: auto; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 14px; bottom: 16px; }
  .telemetry > div { flex-direction: column; border-top: 0; padding: 4px 0; }
  .scene-tag { top: 12vh; right: 12px; } .scene-tag .loto { width: 190px; padding-top: 32px; }
  .scene-hint { display: none; }
}

/* Beacons inside the SVG */
.mach .dot { fill: #4a4e5a; transition: fill .3s; }
.mach .ring { stroke: #4a4e5a; opacity: .45; transition: stroke .3s; transform-box: fill-box; transform-origin: center; }
.mach .tagtxt { fill: #8d93a1; font: 600 22px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; }
.mach[data-state="scanning"] .dot { fill: #ffc400; }
.mach[data-state="scanning"] .ring { stroke: #ffc400; opacity: 1; animation: scan 1s ease-out infinite; }
.mach[data-state="ok"] .dot { fill: #3ddc84; } .mach[data-state="ok"] .ring { stroke: #3ddc84; opacity: .7; }
.mach[data-state="attention"] .dot { fill: #ffb020; } .mach[data-state="attention"] .ring { stroke: #ffb020; opacity: .9; }
.mach[data-state="down"] .dot { fill: #ff4d42; filter: drop-shadow(0 0 14px rgba(255,60,50,.9)); } .mach[data-state="down"] .ring { stroke: #ff4d42; opacity: 1; animation: scan 1.4s ease-out infinite; }
@keyframes scan { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }

/* ---- Manifesto (words light up on scroll) ---- */
.manifesto { position: relative; height: 280vh; }
.pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 6vh, 64px); }
.manifesto-text { font-size: clamp(26px, 4.4vw, 56px); font-weight: 300; line-height: 1.16; letter-spacing: -0.03em; max-width: 24em; }
.manifesto-text span { color: var(--text); opacity: .2; transition: opacity .35s; }
.manifesto-text span.on { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; margin: 0; }
.stats > div { border-top: 1px solid var(--line); padding-top: 14px; }
.stats dd { margin: 0; font-size: clamp(30px, 4.4vw, 54px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.1; }
.stats dt { margin-top: 10px; color: var(--muted); line-height: 1.6; font-size: 11px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; gap: 18px 20px; } }

/* ---- Steps (pinned, scenes cross-fade) ---- */
.steps { position: relative; height: 340vh; }
.steps .pin { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; flex-direction: unset; }
.steps-list h2 { margin-bottom: clamp(18px, 4vh, 40px); }
.steps-list ol { list-style: none; margin: 0; padding: 0; }
.steps-list li { padding: 18px 0 18px 20px; border-left: 2px solid var(--line); cursor: pointer; opacity: .38; transition: opacity .4s, border-color .4s; }
.steps-list li.on { opacity: 1; border-color: var(--accent); }
.steps-list li .mono { color: var(--muted); font-size: 11px; }
.steps-list h3 { margin: 6px 0 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; letter-spacing: -0.03em; }
.steps-list p { color: var(--muted); max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: max-height .5s var(--ease), opacity .4s, margin .4s; max-width: 38ch; }
.steps-list li.on p { max-height: 8em; opacity: 1; margin-top: 8px; }
.steps-stage { position: relative; min-height: min(560px, 70vh); border-radius: var(--r-tile); overflow: hidden; }
.panel { position: absolute; inset: 0; display: grid; place-items: center; padding: 22px; opacity: 0; transform: scale(.96); transition: opacity .5s, transform .6s var(--ease); pointer-events: none; overflow: hidden; }
.panel.on { opacity: 1; transform: none; pointer-events: auto; }
.panel .sticker { transform: scale(1.15); }
.mini { width: 100%; max-width: 520px; }
.mini.checklist { background: transparent; }
.mini .item { grid-template-columns: 1fr; }
.mini .pf-btn { min-height: 44px; pointer-events: none; }
.mini .blocks { margin-top: 0; }
.mini .roster { margin-top: 12px; } .mini .feed { margin-top: 12px; }
.mini .rrow { grid-template-columns: 1.6fr 140px 90px; padding: 10px 14px; } .mini .c-last, .mini .c-hrs { display: none; }
#panel-board .mini .feed li { padding: 12px 16px; }
@media (max-width: 900px) {
  .steps .pin { grid-template-columns: 1fr; align-content: center; gap: 18px; }
  .steps-list li:not(.on) { display: none; } .steps-list li { opacity: 1; }
  .steps-stage { min-height: 340px; }
  .panel .sticker { transform: none; }
}

/* ---- Reduced motion: everything is laid out statically ---- */
.scene.static, .manifesto.static, .steps.static { height: auto; }
.scene.static .stage { position: relative; }
.manifesto.static .pin, .steps.static .pin { position: static; height: auto; padding: 80px 0; }
.steps.static li { opacity: 1; } .steps.static li p { max-height: none; opacity: 1; margin-top: 8px; }
.steps.static .steps-stage { display: grid; gap: 16px; background: transparent; border: 0; }
.steps.static .panel { position: static; opacity: 1; transform: none; }
@media (max-width: 900px) { .steps.static li:not(.on) { display: list-item; } }

/* ---- Content sections ---- */
.section { padding: clamp(56px, 10vw, 120px) 0 0; }
.section .lede { margin-top: 16px; }
.features { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features li { padding: 24px; border-radius: var(--r-tile); display: grid; gap: 8px; align-content: start; }
.features p { color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.plan { padding: 28px; border-radius: var(--r-tile); display: grid; gap: 14px; align-content: start; }
.plan.featured { background: var(--glass-strong); border-color: var(--accent); }
.price { font-size: 56px; font-weight: 300; letter-spacing: -0.05em; line-height: 1; }
.price span { font-size: 16px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--ok); margin-right: 10px; font-weight: 700; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.narrow { max-width: 760px; }
details.glass { margin-top: 12px; padding: 4px 22px; border-radius: var(--r-card); }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 18px; list-style: none; }
summary::-webkit-details-marker { display: none; }
details p { color: var(--muted); padding-bottom: 18px; }
.narrow h2 { margin-bottom: 16px; }

.cta { margin-top: clamp(56px, 10vw, 120px); padding: clamp(32px, 7vw, 80px); border-radius: var(--r-tile); text-align: center; display: grid; justify-items: center; gap: 18px; }
.cta .actions { justify-content: center; margin-top: 8px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 56px 0 40px; color: var(--muted); font-size: 14px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.features .reveal:nth-child(3n+2), .plans .reveal:nth-child(2) { transition-delay: .08s; }
.features .reveal:nth-child(3n), .plans .reveal:nth-child(3) { transition-delay: .16s; }

.mini .rrow.head > :nth-child(3), .mini .rrow.head > :nth-child(4) { display: none; }
@media (max-width: 900px) {
  .mini.checklist .item:first-child { display: none; }
  #panel-board .feed, #panel-board .roster { display: none; }
}

/* ---- Photo hero (used when public/photos/yard.jpg exists) ---- */
.stage.photo .photo-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.stage.photo .photo-world img { display: block; width: 100%; height: 100%; }
.pbeacon { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; gap: 6px; }
.pbeacon span { font: 600 11px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.pbeacon i { grid-area: 1 / 1; border-radius: 50%; }
.pbeacon .dot { width: 12px; height: 12px; background: #4a4e5a; box-shadow: 0 0 0 2px rgba(255,255,255,.7); transition: background .3s; }
.pbeacon .ring { width: 30px; height: 30px; border: 2px solid #4a4e5a; opacity: .5; }
.pbeacon[data-state="scanning"] .dot { background: #ffc400; } .pbeacon[data-state="scanning"] .ring { border-color: #ffc400; opacity: 1; animation: scan 1s ease-out infinite; }
.pbeacon[data-state="ok"] .dot { background: #3ddc84; } .pbeacon[data-state="ok"] .ring { border-color: #3ddc84; }
.pbeacon[data-state="attention"] .dot { background: #ffb020; } .pbeacon[data-state="attention"] .ring { border-color: #ffb020; }
.pbeacon[data-state="down"] .dot { background: #ff4d42; } .pbeacon[data-state="down"] .ring { border-color: #ff4d42; animation: scan 1.4s ease-out infinite; }
.stage.photo::after { background: linear-gradient(180deg, rgba(4,5,10,.7), rgba(4,5,10,.1) 40%, rgba(4,5,10,.1) 65%, rgba(4,5,10,.75)); }

/* Legibility: a soft scrim behind the hero text that fades out with it */
.stage.photo .scene-copy::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -12vh; width: 100vw; height: 90vh; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 28% 42%, rgba(4,5,10,.78), rgba(4,5,10,.35) 60%, transparent 80%); }
.photo-world[data-intro="1"] .pbeacon { opacity: 0; }
.pbeacon { transition: opacity .4s; }
.bar .login { color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; padding: 0 6px; } .bar .login:hover { color: var(--text); }

/* Proof section */
.proof .lede { margin-bottom: 32px; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; align-items: start; }
.proof-card { padding: 24px; }
.proof-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.proof-card h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.proof-card .mini { margin-top: 16px; display: grid; gap: 14px; }
.sample-flag { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }

@media (max-width: 640px) {
  .bar .login { display: none; }
  .bar .btn { white-space: nowrap; }
  .proof .rrow, .steps-stage .rrow { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .proof .rrow > :nth-child(n+3) { display: none; }
}
