/* v2 landing: x-ray hero, ticker, scroll-to-build, scaffold rail, blueprint chapters */
.xhero .wrap { grid-template-columns: 1.05fr .95fr; }
.xray { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 9/16; max-height: 78vh; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.55); touch-action: pan-y; cursor: crosshair; }
.xray img, .xray canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xray-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 14px; border-radius: 99px; background: rgba(11,11,10,.72); backdrop-filter: blur(8px); font: 600 12.5px/1 var(--body); transition: opacity .4s; }
.xray-hint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ping 1.6s infinite; }
.xray.touched .xray-hint { opacity: 0; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(245,183,0,.7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(245,183,0,0); } }
.xray-label { position: absolute; top: 14px; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 7px 9px; border-radius: 6px; background: rgba(11,11,10,.7); }
.xray-label.l { left: 14px; }
.xray-label.r { right: 14px; color: var(--accent); }
@media (max-width: 900px) { .xhero .wrap { grid-template-columns: 1fr; } .xray { width: min(100%, 360px); } }

.ticker { overflow: hidden; background: var(--accent); color: var(--accent-ink); border-block: 1px solid #000; }
.ticker-track { display: flex; width: max-content; gap: 22px; padding: 12px 0; animation: tick 34s linear infinite; font: 800 18px/1 var(--display); font-stretch: 78%; text-transform: uppercase; letter-spacing: .02em; }
.ticker-track i { font-style: normal; opacity: .55; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.scrub { position: relative; height: 460vh; border-bottom: 1px solid var(--line); }
.scrub-pin { position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px); display: flex; align-items: center; overflow: hidden; }
.scrub-grid { display: grid; grid-template-columns: 1fr auto .62fr; gap: 48px; align-items: center; }
.scrub-copy h2 { font-size: clamp(32px, 4vw, 52px); margin: 12px 0 24px; }
.scrub-steps { list-style: none; margin: 0; padding: 0; }
.scrub-step { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); opacity: .38; transition: opacity .35s; }
.scrub-step .n { font: 600 12px/1.9 var(--mono); color: var(--muted); min-width: 22px; }
.scrub-step h3 { margin: 0; font: 800 20px/1.2 var(--display); font-stretch: 80%; text-transform: uppercase; }
.scrub-step p { margin: 0; max-height: 0; overflow: hidden; color: var(--muted); font-size: 14.5px; filter: blur(4px); transform: translateY(8px); transition: max-height .45s ease, margin .45s ease, filter .45s, transform .45s; }
.scrub-step.on { opacity: 1; }
.scrub-step.on .n { color: var(--accent); }
.scrub-step.on p { max-height: 80px; margin-top: 6px; filter: none; transform: none; }
.scrub-canvas { display: block; height: calc(100svh - 180px); max-height: 760px; width: auto; aspect-ratio: 9/16; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.scrub-meter { display: flex; align-items: center; gap: 8px; margin-top: 14px; font: 600 12px/1 var(--mono); color: var(--muted); }
.scrub-count { color: var(--accent); }
.scrub-bar { flex: 1; height: 3px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-left: 8px; }
.scrub-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.scrub-side p { color: var(--muted); margin: 16px 0 0; }
@media (max-width: 1000px) {
  .scrub-grid { grid-template-columns: 1fr; gap: 14px; justify-items: center; }
  .scrub-copy { width: 100%; }
  .scrub-copy h2, .scrub-side { display: none; }
  .scrub-step { display: none; border: 0; padding: 0; }
  .scrub-step.on { display: flex; }
  .scrub-step.on p { max-height: 60px; }
  .scrub-canvas { height: calc(100svh - 270px); }
}

.rail-block { overflow: hidden; }
.rail-block .block-head { margin-bottom: 20px; }
.ba { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.ba button { border: 0; background: transparent; color: var(--muted); font: 600 13px/1 var(--body); padding: 10px 14px; border-radius: 99px; cursor: pointer; }
.ba button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.rail { position: relative; padding-top: 34px; }
.pipe { position: absolute; left: 0; right: 0; top: 34px; height: 8px; border-radius: 4px; background: linear-gradient(#9b978e, #55524c 60%, #2d2b27); box-shadow: 0 2px 0 rgba(0,0,0,.4); }
.rail-track { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 calc(50% - 130px) 10px; scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-item { position: relative; flex: none; width: 260px; margin: 0; padding-top: 30px; scroll-snap-align: center; transform-origin: 50% 0; transform: scale(.86); filter: blur(3px) saturate(.7); opacity: .55; transition: transform .45s ease, filter .45s ease, opacity .45s ease; }
.rail-item.is-center { transform: none; filter: none; opacity: 1; }
.hanger { position: absolute; top: 2px; left: 50%; width: 26px; height: 30px; margin-left: -13px; border: 3px solid #b9b5ab; border-bottom: 0; border-radius: 13px 13px 0 0; }
.hanger::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 3px; height: 12px; margin-left: -1.5px; background: #b9b5ab; }
.rail-shot { position: relative; display: block; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.rail-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.rail-shot img.a { opacity: 0; }
.rail[data-ba="a"] .rail-shot img.a { opacity: 1; }
.tag-card { position: absolute; top: 44px; right: -14px; z-index: 2; width: 66px; padding: 10px 6px 8px; text-align: center; background: #e9e2d0; color: #141000; border-radius: 4px; transform: rotate(6deg); box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.tag-card::before { content: ""; position: absolute; top: 5px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--bg); }
.tag-card b { display: block; margin-top: 6px; font: 800 20px/1 var(--display); font-stretch: 78%; }
.tag-card span { font: 600 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.rail-item figcaption { margin-top: 12px; font-size: 14px; text-align: center; color: var(--muted); min-height: 2.8em; }
.rail-item.is-center figcaption { color: var(--text); }
.rail-nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; }
.rail-nav .btn { padding: 12px 18px; }
.rail-pos { font: 600 13px/1 var(--mono); color: var(--muted); }
.rail-pos b { color: var(--accent); }

.blueprint { background-color: #0d1014; background-image: linear-gradient(rgba(120,170,220,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(120,170,220,.07) 1px, transparent 1px); background-size: 28px 28px; }
.blueprint .chapter-row { border-bottom-style: dashed; border-color: rgba(120,170,220,.22); }

/* v3 first screen: the whole screen is the x-ray photo, copy on top */
.xfull { position: relative; min-height: calc(100svh - 64px); display: flex; align-items: flex-end; overflow: hidden; touch-action: pan-y; cursor: crosshair; border-bottom: 1px solid var(--line); }
.xfull-after, .xfull canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xfull-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11,11,10,.9) 0%, rgba(11,11,10,.55) 42%, rgba(11,11,10,0) 70%), linear-gradient(0deg, rgba(11,11,10,.85) 0%, rgba(11,11,10,0) 45%); }
.xfull-copy { position: relative; padding-top: 80px; padding-bottom: 64px; pointer-events: none; }
.xfull-copy .cta-row, .xfull-copy a { pointer-events: auto; }
.xfull h1 { font-size: clamp(46px, 8vw, 112px); max-width: 9.5em; margin: 16px 0 20px; }
.xfull h1 em { font-style: normal; color: var(--accent); }
.xfull .lede { max-width: 32em; color: #d6d2c8; }
.xfull .stats { border-top-color: rgba(255,255,255,.18); max-width: 560px; }
.xfull .xray-hint { position: absolute; right: 24px; left: auto; bottom: 24px; transform: none; }
.xfull.touched .xray-hint { opacity: 0; }
@media (max-width: 760px) {
  .xfull-shade { background: linear-gradient(0deg, rgba(11,11,10,.95) 0%, rgba(11,11,10,.7) 45%, rgba(11,11,10,.1) 75%); }
  .xfull-copy { padding-top: 38vh; padding-bottom: 40px; }
  .xfull .xray-hint { top: 16px; bottom: auto; right: 16px; }
}
