/* Home page only. Built on the tokens in site.css. */
body.home main { margin-top: -73px; }
body.home section { padding: 120px 0; }
body.home .wrap { max-width: 1320px; padding-left: 32px; padding-right: 32px; }
.h-hero > .wrap { width: 100%; }

.btn-line-light { background: transparent; color: #fff; border-color: #ffffffb3; }
.btn-line-light:hover { background: #ffffff1a; border-color: #fff; }
.btn-light .plus { background: var(--blue); }
.h-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.h-actions.center { justify-content: center; }

.h-center { text-align: center; max-width: 820px; margin: 0 auto; }
.h-title { font-size: clamp(32px, 4.8vw, 58px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 500; color: var(--blue); }
.h-title.left { text-align: left; }
.h-sub { margin: 18px auto 0; color: var(--muted); font-size: 16.5px; max-width: 34em; }
.h-sub.left { margin: 0; text-align: left; max-width: 28em; }
.h-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.h-hero { position: relative; min-height: max(660px, 100svh); background: var(--blue); color: #fff; overflow: hidden; padding: 0 !important; display: flex; flex-direction: column; justify-content: flex-end; }
#dither { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.h-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #2a33c400 55%, #2a33c4e6 88%, #2a33c4 100%); pointer-events: none; }
.h-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: 40px; align-items: end; padding-bottom: 40px; }
.h-hero .eyebrow { color: #fff; }
.h-hero h1 { color: #fff; font-weight: 400; font-size: clamp(44px, 6vw, 92px); line-height: .98; letter-spacing: -0.055em; }
.h-hero-side p { color: #e4e6ff; font-size: 15.5px; line-height: 1.55; margin-bottom: 22px; max-width: 26em; }
.h-ticker { position: relative; z-index: 2; display: flex; gap: 28px; flex-wrap: wrap; border-top: 1px solid #ffffff33; padding-top: 16px; padding-bottom: 22px; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #c9ccff; }
.h-ticker b { color: #fff; font-weight: 500; }

/* ---------- Daily index (bars) ---------- */
.h-index { background: var(--paper); }
.bars { position: relative; margin: 64px auto 0; height: 240px; display: flex; align-items: flex-end; gap: 4px; }
.bars a { flex: 1 1 0; min-width: 3px; height: 100%; display: flex; align-items: flex-end; text-decoration: none; }
.bars a i { display: block; width: 100%; height: 0; background: repeating-linear-gradient(180deg, var(--blue) 0 3px, transparent 3px 5px); transition: height 1.1s cubic-bezier(.2, .8, .2, 1), opacity .2s; opacity: .9; }
.bars a:hover i, .bars a:focus-visible i { opacity: 1; background: repeating-linear-gradient(180deg, var(--ink) 0 3px, transparent 3px 5px); }
.bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 1px; background: var(--line); }
.bars-tip { position: absolute; transform: translate(-50%, -100%); background: var(--ink); color: #fff; font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 3px; pointer-events: none; white-space: nowrap; z-index: 5; }
.h-index .wrap { position: relative; }

.h-search { margin: 72px auto 0; max-width: 860px; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px; align-items: stretch; }
.h-field { display: flex; flex-direction: column; justify-content: center; padding: 6px 16px; border-right: 1px solid var(--line); min-width: 0; }
.h-field span { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.h-field input[type=search], .h-field select { border: 0; height: 30px; padding: 0; font-size: 16px; background-color: transparent; box-shadow: none; border-radius: 0; }
.h-field select { padding-right: 24px; background-position: right 2px center; }
.h-search .btn { height: auto; min-height: 54px; margin-left: 6px; }

.h-stats { margin: 56px auto 0; max-width: 1000px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.h-stats > div { padding: 18px 18px 0 0; }
.h-stats .k { display: block; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.h-stats b { display: block; margin-top: 8px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 400; letter-spacing: -0.04em; color: var(--blue); }

/* ---------- Statement (scroll reveal) ---------- */
.h-statement { background: var(--paper); padding-top: 40px !important; padding-bottom: 160px !important; }
.h-statement .wrap { text-align: center; }
.reveal { margin: 0 auto; max-width: 980px; font-size: clamp(28px, 4.2vw, 52px); line-height: 1.12; letter-spacing: -0.04em; color: var(--ink); }
.reveal .w { opacity: .14; transition: opacity .25s linear; }
.reveal .w.on { opacity: 1; }

/* ---------- Paths ---------- */
.h-paths { background: #fff; }
.paths { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.p-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; padding: 44px; background: var(--paper); min-height: 460px; display: flex; flex-direction: column; }
.p-card > * { position: relative; z-index: 1; }
.p-k { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.p-card h3 { margin-top: 18px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 500; color: var(--ink); max-width: 12em; }
.p-card ul { list-style: none; padding: 0; margin: 26px 0 32px; }
.p-card li { padding: 11px 0; border-top: 1px solid #0e12401a; font-size: 15px; display: flex; gap: 12px; }
.p-card li::before { content: "↳"; color: var(--blue); }
.p-card .h-actions { margin-top: auto; }
.p-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.p-blue .p-k { color: #c9ccff; }
.p-blue h3 { color: #fff; }
.p-blue li { border-color: #ffffff2e; color: #e4e6ff; }
.p-blue li::before { color: #fff; }
.p-dots { position: absolute !important; inset: 0; width: 100%; height: 100%; z-index: 0 !important; pointer-events: none; }

/* ---------- Latest (ledger) ---------- */
.h-latest { background: var(--paper); }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: l; }
.ledger li.row { counter-increment: l; display: grid; grid-template-columns: 56px 1.6fr 1fr 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid #0e12401f; transition: background .2s; }
.ledger li.row:hover { background: #ffffff8c; }
.ledger li.row::before { content: counter(l, decimal-leading-zero); font: 500 11.5px var(--mono); color: var(--muted); letter-spacing: .1em; padding-left: 4px; }
.ledger .t a { color: var(--ink); text-decoration: none; font-size: 17px; letter-spacing: -0.02em; font-weight: 500; }
.ledger .t a:hover { color: var(--blue); }
.ledger .t small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.ledger .m { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ledger .pay { color: var(--green); }
.ledger .go { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); text-decoration: none; white-space: nowrap; padding-right: 4px; }
.ledger .go:hover { text-decoration: underline; }
.ledger .sk { height: 70px; }

/* ---------- Marquee ---------- */
.h-marquee { background: var(--blue); padding: 56px 0 64px !important; overflow: hidden; }
.h-marquee .eyebrow { color: #c9ccff; }
.marquee { margin-top: 18px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 56px; width: max-content; animation: mq 70s linear infinite; }
.track a { color: #fff; text-decoration: none; font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.04em; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 12px; }
.track a small { font: 500 11px var(--mono); letter-spacing: .1em; color: #c9ccff; text-transform: uppercase; }
.track a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Specialties (index list) ---------- */
.h-specs { background: #fff; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-list a { display: grid; grid-template-columns: 70px 1fr auto 40px; align-items: center; gap: 20px; padding: 22px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; }
.index-list a::before { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2, .8, .2, 1); z-index: 0; }
.index-list a > * { position: relative; z-index: 1; transition: color .25s; }
.index-list a:hover::before, .index-list a:focus-visible::before { transform: scaleY(1); }
.index-list a:hover > *, .index-list a:focus-visible > * { color: #fff; }
.index-list .n { font: 500 11.5px var(--mono); letter-spacing: .1em; color: var(--muted); }
.index-list .name { font-size: clamp(24px, 3.2vw, 40px); letter-spacing: -0.045em; line-height: 1; }
.index-list .c { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.index-list .ar { font-size: 22px; color: var(--blue); text-align: right; }

/* ---------- Steps / why ---------- */
.h-steps { background: var(--paper); }
.h-steps .steps { margin-top: 64px; }
.h-steps .step h3 { font-size: 22px; letter-spacing: -0.03em; }
.h-why { background: #fff; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.why > div { padding: 22px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.why > div:last-child { border-right: 0; margin-right: 0; }
.why .k { font: 500 11.5px var(--mono); color: var(--blue); letter-spacing: .1em; }
.why h3 { margin-top: 40px; font-size: 21px; letter-spacing: -0.03em; }
.why p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.h-faq { background: var(--paper); }
.h-faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.h-faq .h-sub { margin-top: 18px; }
.h-faq .faq summary { font-weight: 500; letter-spacing: -0.01em; }
.h-faq .faq details { border-color: #0e124026; }

/* ---------- Warp finale ---------- */
.h-warp { position: relative; background: var(--blue); min-height: 86vh; display: grid; place-items: center; overflow: hidden; padding: 0 !important; }
#warpCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-warp-inner { position: relative; z-index: 1; text-align: center; padding: 120px 16px; }
.h-warp h2 { color: #fff; font-weight: 400; font-size: clamp(36px, 6vw, 80px); line-height: 1; letter-spacing: -0.05em; }
.h-warp-bar { display: block; width: 34px; height: 8px; background: #fff; margin: 26px auto 34px; }

/* Footer joins the blue finale on home */
body.home .foot { border-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .h-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .paths { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .why > div:nth-child(2) { border-right: 0; margin-right: 0; }
  .h-faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .ledger li.row { grid-template-columns: 44px 1fr auto; }
  .ledger li.row .m.loc, .ledger li.row .m.pay { display: none; }
}
@media (max-width: 640px) {
  body.home section { padding: 72px 0; }
  body.home .wrap { padding-left: 16px; padding-right: 16px; }
  .h-hero { min-height: max(720px, 100svh); }
  .h-title br, .h-warp h2 br { display: none; }
  .h-hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .h-ticker { gap: 14px 20px; }
  .hide-sm { display: none; }
  .bars { height: 160px; gap: 2px; margin-top: 44px; }
  .h-search { grid-template-columns: 1fr; padding: 4px; }
  .h-field { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .h-search .btn { margin: 6px 0 0; min-height: 48px; }
  .h-stats { grid-template-columns: 1fr 1fr; }
  .h-stats > div:nth-child(n+3) { margin-top: 18px; }
  .h-statement { padding-bottom: 96px !important; }
  .p-card { padding: 28px 22px; min-height: 0; }
  .why { grid-template-columns: 1fr; }
  .why > div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .why h3 { margin-top: 16px; }
  .index-list a { grid-template-columns: 34px 1fr 28px; gap: 12px; padding: 18px 4px; }
  .index-list .c { grid-column: 2; grid-row: 2; }
  .index-list .ar { grid-column: 3; grid-row: 1 / span 2; }
  .ledger li.row { grid-template-columns: 1fr auto; gap: 12px; }
  .ledger li.row::before { display: none; }
  .ledger li.row .m { display: none; }
  .h-warp { min-height: 640px; }
  .h-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; flex-wrap: wrap; width: auto; }
  .bars a i { transition: none; }
  .reveal .w { opacity: 1; }
}
