/* Vernier home v2: shorter text, alternating section types, survey imagery, one orchestrated motion moment. */
.v2-head { border-bottom-color: transparent; transition: border-color .2s; }
.v2-head .bar { min-height: 64px; }
.v2-head.scrolled { border-bottom-color: var(--hairline); }
.v2 .wrap { max-width: calc(1200px + 160px); }
.v2-label { font: 500 14px/20px var(--sans); color: var(--accent); margin: 0; letter-spacing: 0; }
.band-ink .v2-label, .v2-dark .v2-label { color: var(--accent-ink); }
.v2-h1 { font: 500 clamp(40px, 6vw, 72px)/1.02 var(--sans); letter-spacing: -0.035em; max-width: 14em; text-wrap: balance; margin: 0; }
.v2-h2 { font: 500 clamp(28px, 3.6vw, 44px)/1.1 var(--sans); letter-spacing: -0.03em; text-wrap: balance; margin: 0; max-width: 20em; }
.v2-h2.center, .v2-sub.center { margin-left: auto; margin-right: auto; text-align: center; }
.v2-lede { font: 400 20px/30px var(--sans); color: var(--steel); max-width: 34em; margin: 0; }
.v2-sub { font: 400 18px/28px var(--sans); color: var(--steel); max-width: 38em; margin: 0; }
.v2-sub a, .v2-link, .caption a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.v2-link { font: 500 15px/22px var(--sans); }
.actions.center { justify-content: center; }

/* hero */
.v2-hero { padding-block: 72px 24px; }
.v2-hero-text { display: flex; flex-direction: column; gap: 22px; }
.v2-ridge { margin: 56px 0 0; }
.v2-ridge figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; font: 500 12px/16px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.ridge { width: 100%; height: auto; display: block; overflow: visible; }
.r-fill { fill: var(--panel); }
.r-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.r-hatch line { stroke: var(--ink); stroke-width: .7; opacity: .55; }
.r-plumb { stroke: var(--accent-fill); stroke-width: 1; stroke-dasharray: 3 4; }
.r-axis, .r-ticks rect { fill: var(--ink); }
.r-index { transform: translateX(var(--sx)); }
.r-index rect, .r-dot { fill: var(--accent-fill); }
.r-label { font: 500 13px var(--mono); letter-spacing: .1em; fill: var(--accent); }
@media (max-width: 640px) { .r-label { font-size: 22px; } .v2-hero { padding-block: 40px 16px; } .v2-ridge { margin-top: 36px; } }

@media (prefers-reduced-motion: no-preference) {
  .anim .r-line { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: v2draw 2.2s cubic-bezier(.4,.1,.2,1) .15s forwards; }
  .anim .r-fill, .anim .r-hatch { opacity: 0; animation: v2fade .8s ease 1.6s forwards; }
  .anim .r-index { transform: translateX(0); animation: v2slide 1.5s cubic-bezier(.2,.8,.2,1) 1.1s forwards; }
  .anim .r-plumb, .anim .r-dot, .anim .r-label { opacity: 0; animation: v2fade .5s ease 2.5s forwards; }
}
@keyframes v2draw { to { stroke-dashoffset: 0; } }
@keyframes v2fade { to { opacity: 1; } }
@keyframes v2slide { 0% { transform: translateX(0); } 80% { transform: translateX(calc(var(--sx) + 8px)); } 100% { transform: translateX(var(--sx)); } }

/* divider: the scale rule with a centred label */
.divider { position: relative; padding-block: 56px 8px; }
.divider svg { width: 100%; height: 14px; display: block; }
.divider svg rect { fill: var(--mist); }
.divider svg .di { fill: var(--accent-fill); }
.divider span { position: absolute; left: 50%; top: 53px; transform: translateX(-50%); background: var(--paper); padding: 0 16px; font: 500 14px/20px var(--sans); color: var(--steel); white-space: nowrap; }
@media (max-width: 640px) { .divider span { white-space: normal; text-align: center; width: 80%; } }

.v2-sec { padding-block: 56px 72px; }
.v2-sec.tight { padding-block: 40px 64px; }
.v2-sec.panel { background: var(--panel); padding-block: 88px; }

/* decisions with icons */
.dec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 40px; }
@media (max-width: 1000px) { .dec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dec-grid { grid-template-columns: 1fr; } }
.dec { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding-block: 24px; border-top: 1px solid var(--hairline); text-decoration: none; color: inherit; }
.dec:hover .dec-q { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.dec-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dec-q { font: 500 18px/25px var(--sans); letter-spacing: -.01em; margin: 0; }
.ico { width: 40px; height: 40px; display: block; }
.ico rect { fill: var(--ink); transition: transform .25s ease; }
.ico .ia { fill: var(--accent-fill); }
.dec:hover .ico .ia { transform: translateX(2px); }

/* dark showcase */
.v2-dark { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.v2-show { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; padding-block: 104px; }
.v2-show > * { min-width: 0; }
.v2-show-text { display: flex; flex-direction: column; gap: 24px; }
.v2-dark .v2-h2 { color: var(--paper); }
.v2-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--mist); font-size: 17px; line-height: 25px; }
.v2-points li { padding-left: 20px; position: relative; }
.v2-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--accent-ink); }
.v2-dark .btn { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--ink); }
.v2-dark .btn.ghost-ink { background: transparent; color: var(--paper); border-color: var(--steel); }
@media (max-width: 960px) { .v2-show { grid-template-columns: 1fr; padding-block: 64px; gap: 40px; } }

.pcard { background: var(--carbon); border: 1px solid var(--graphite); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1200px) { .pcard { margin-right: -48px; } }
.pc-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--graphite); }
.pc-t { font: 500 15px/20px var(--sans); }
.pc-tag { font: 500 11px/16px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--silver); border: 1px solid var(--graphite); padding: 2px 8px; }
.pc-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pc-metrics > div { background: var(--ink); border: 1px solid var(--graphite); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@media (max-width: 560px) { .pc-metrics { grid-template-columns: 1fr; } }
.pc-l { font: 400 13px/18px var(--sans); color: var(--silver); margin: 0; }
.pc-v { font: 500 32px/1 var(--mono); letter-spacing: -.02em; margin: 0; font-variant-numeric: tabular-nums; }
.pc-v.key { color: var(--accent-ink); }
.pc-d { font: 400 12px/16px var(--mono); color: var(--silver); margin: 0; }
.pc-bridge svg { width: 100%; height: auto; display: block; margin-top: 10px; }
.pc-bridge rect { fill: var(--graphite); }
.pc-bridge .b-tot, .pc-bridge .b-end { fill: var(--mist); }
.pc-bridge .b-key { fill: var(--accent-ink); }
.pc-bridge .b-up { fill: none; stroke: var(--mist); stroke-width: 1.2; }
.pc-bridge .b-mv { fill: #55585e; }
.pc-bridge .b-base { fill: var(--steel); }
.pc-bridge text { font: 500 12px var(--mono); fill: var(--mist); text-anchor: middle; }
.pc-bridge text.k { fill: var(--accent-ink); }
.pc-legend { display: grid; grid-template-columns: 82px repeat(4, 82px); padding-left: 82px; font: 400 11px/16px var(--mono); color: var(--silver); }
.pc-legend { display: flex; justify-content: space-around; padding: 0 16% 0 16%; }
.pc-legend .k { color: var(--accent-ink); }
.pc-flags ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 21px; color: var(--mist); }
.pc-flags b { color: var(--paper); font-weight: 500; }

/* statement over contours */
.v2-statement { position: relative; overflow: hidden; padding-block: 120px; text-align: center; }
.v2-statement .wrap { position: relative; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.contour { position: absolute; inset: 0; width: 100%; height: 100%; }
.contour path { fill: none; }
.contour .c-minor { stroke: var(--mist); stroke-width: 1; }
.contour .c-major { stroke: #c3c6cb; stroke-width: 1.4; }
.contour .bm { fill: var(--accent-fill); }
.contour.on-dark .c-minor { stroke: #1f2023; }
.contour.on-dark .c-major { stroke: #2e3034; }
.v2-statement .wrap::before { content: ""; position: absolute; inset: -40px 10%; background: radial-gradient(closest-side, var(--paper) 55%, transparent); z-index: -1; }

/* split */
.v2-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.v2-split > * { min-width: 0; }
.v2-split-text { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
@media (max-width: 960px) { .v2-split { grid-template-columns: 1fr; gap: 28px; } .v2-split-text { position: static; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.stats a { padding: 24px 24px 8px 0; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.stats a + a { padding-left: 24px; border-left: 1px solid var(--hairline); }
.stats a:hover .st-v { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.st-v { font: 500 clamp(28px, 3.2vw, 40px)/1 var(--mono); letter-spacing: -.03em; margin: 0; font-variant-numeric: tabular-nums; }
.st-v.key { color: var(--accent); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats a:nth-child(3) { padding-left: 0; border-left: 0; } .stats a:nth-child(n+3) { border-top: 1px solid var(--hairline); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .stats a, .stats a + a { padding-left: 0; border-left: 0; } .stats a + a { border-top: 1px solid var(--hairline); } }

/* ladder */
.ladder2 { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ladder2 li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--mist); }
.ladder2 .lv { font: 500 13px/28px var(--mono); color: var(--steel); }

/* credentials */
.v2-creds { padding-block: 28px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.v2-creds .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: center; font: 500 14px/20px var(--sans); color: var(--steel); }
.v2-creds a { color: var(--accent); }

/* cta */
.v2-cta { padding-block: 112px; }
.v2-cta-in { position: relative; display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
