/* ClimaBuild — public pages */

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246,242,234,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header.over-photo { position: absolute; inset: 0 0 auto 0; background: none; backdrop-filter: none; border: 0; }
.site-header-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.site-nav { display: flex; gap: 26px; margin-left: 18px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--clay-deep); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.link-quiet { font-size: 15px; font-weight: 600; text-decoration: none; }
.over-photo .brand, .over-photo .link-quiet { color: #fff; }
.over-photo .site-nav a { color: rgba(255,255,255,.85); }
.over-photo .site-nav a:hover { color: #fff; }
@media (max-width: 820px) { .site-nav { display: none; } }
@media (max-width: 480px) { .site-actions .link-quiet { display: none; } .site-actions .btn { padding: 9px 13px; font-size: 14px; } }

/* hero */
.hero { position: relative; min-height: min(860px, 100svh); display: flex; align-items: flex-end; color: #fff; background: #0f1815; overflow: hidden; }
.hero-img { position: absolute; width: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,20,17,.62) 0%, rgba(12,20,17,.28) 32%, rgba(12,20,17,.82) 78%, rgba(12,20,17,.95) 100%); }
.hero-in { position: relative; padding: 150px 0 76px; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 7.2vw, 88px); line-height: 1.0; letter-spacing: -0.03em; max-width: 13ch; text-wrap: balance; }
.hero-lede { max-width: 56ch; margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-foot { margin-top: 20px; font-size: 14px; color: rgba(255,255,255,.72); }
.photo-credit { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: rgba(255,255,255,.6); }

/* story */
.story { padding: 110px 0 100px; }
.story .display { max-width: 22ch; }
.story-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 52px; }
.story-pair img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; }
.story-pair figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.story-pair figcaption span { display: block; font-size: 12px; color: var(--muted); }
.story-text { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; margin-top: 52px; font-size: 19px; max-width: 980px; }
@media (max-width: 760px) { .story { padding: 72px 0; } .story-pair, .story-text { grid-template-columns: 1fr; } }

/* research */
.research { background: var(--ink); color: #e9e4d8; padding: 110px 0; }
.research-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.research-lede { margin-top: 24px; font-size: 18px; color: #cdd3ce; max-width: 50ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.facts dt { font-family: var(--display); font-size: clamp(30px, 3.6vw, 44px); line-height: 1; color: #fff; }
.facts dd { margin-top: 8px; font-size: 14px; color: #b4bdb7; }
.range { list-style: none; padding: 0; margin-top: 34px; }
.range li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.range span { color: #b4bdb7; }
.range b { color: #fff; font-weight: 600; text-align: right; }

.teaser { background: var(--card); color: var(--ink); border-radius: 4px; padding: 26px 26px 20px; }
.teaser figcaption { margin-bottom: 14px; }
.teaser-title { display: block; font-family: var(--display); font-size: 24px; font-weight: 500; }
.teaser-sub { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.teaser svg { width: 100%; height: auto; }
.t-grid { stroke: #e5dece; stroke-width: 1; }
.t-axis { font-size: 11px; fill: #6b756f; font-family: var(--sans); }
.t-label { font-size: 12px; font-weight: 600; fill: var(--ink); font-family: var(--sans); }
.t-bar { fill: var(--rain); }
.t-bar:hover { fill: #1d5677; }
.teaser-lock { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 16px; background: var(--paper); border: 1px dashed #c9bfab; border-radius: 4px; }
.teaser-lock p { font-size: 14px; max-width: 30ch; }
.teaser-source { margin-top: 12px; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .research { padding: 72px 0; } .research-grid { grid-template-columns: 1fr; gap: 44px; } }

/* steps */
.steps { padding: 110px 0; }
.steps .display { max-width: 20ch; }
.steps-list { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.steps-list li { padding: 28px 28px 8px 0; }
.steps-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-n { font-family: var(--display); font-size: 54px; line-height: 1; color: var(--clay); }
.steps-list h3 { font-family: var(--display); font-weight: 500; font-size: 24px; margin: 14px 0 8px; }
.steps-list p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .steps { padding: 72px 0; } .steps-list { grid-template-columns: 1fr; } .steps-list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* people */
.people { background: var(--paper-2); padding: 110px 0; }
.people-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.people-photos { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.people-photos figure { display: flex; flex-direction: column; min-height: 0; }
.people-photos img { width: 100%; object-fit: cover; border-radius: 3px; }
.people-photos figcaption { font-size: 11px; color: var(--muted); margin-top: 5px; }
.p-a { grid-row: 1 / 3; }
.p-a img { flex: 1 1 0; min-height: 0; height: 0; }
.p-b img, .p-c img { aspect-ratio: 4 / 3; }
.people-text p { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.people-text .kicker { margin-top: 0; font-size: 13px; color: var(--clay-deep); }
.hazards { list-style: none; padding: 0; margin-top: 30px; border-top: 1px solid #cfc5b0; }
.hazards li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #cfc5b0; font-size: 15px; color: var(--ink-2); }
.hazards b { color: var(--ink); }
@media (max-width: 900px) { .people { padding: 72px 0; } .people-grid { grid-template-columns: 1fr; gap: 40px; } }

/* inside */
.inside { padding: 110px 0; }
.inside-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.inside-grid article { padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.tool-n { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--clay-deep); }
.inside-grid h3 { font-family: var(--display); font-weight: 500; font-size: 23px; margin: 12px 0 8px; }
.inside-grid p { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 900px) { .inside { padding: 72px 0; } .inside-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .inside-grid { grid-template-columns: 1fr; } }

/* closing */
.closing { position: relative; color: #fff; overflow: hidden; background: #0f1815; }
.closing-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing-shade { position: absolute; inset: 0; background: rgba(15,24,21,.74); }
.closing-in { position: relative; padding: 120px 0; text-align: center; }
.closing .display { max-width: 20ch; margin: 0 auto 36px; }

/* footer */
.site-footer { background: var(--ink); color: #c5ccc7; padding: 64px 0 30px; font-size: 15px; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-note { margin-top: 14px; max-width: 36ch; }
.site-footer h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #8e9993; margin-bottom: 14px; font-weight: 600; }
.site-footer .footer-grid a:not(.brand) { display: block; padding: 4px 0; text-decoration: none; }
.site-footer .footer-grid a:not(.brand):hover { color: #fff; text-decoration: underline; }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #8e9993; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-legal p:first-child { max-width: 70ch; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* auth */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
.auth-photo { position: relative; background: #0f1815; color: #fff; padding: 36px 44px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-photo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,20,17,.6), rgba(12,20,17,.35) 40%, rgba(12,20,17,.88)); }
.auth-photo .brand, .auth-photo blockquote { position: relative; }
.auth-photo blockquote { margin-bottom: 22px; }
.auth-photo blockquote p { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.02em; max-width: 16ch; }
.auth-photo blockquote footer { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.75); }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: min(420px, 100%); }
.auth-box h1 { font-family: var(--display); font-weight: 500; font-size: 36px; letter-spacing: -0.02em; line-height: 1.1; }
.auth-sub { margin: 12px 0 26px; color: var(--ink-2); font-size: 16px; }
.auth-sub strong { overflow-wrap: anywhere; }
.auth-alt { margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.auth-alt a { color: var(--clay-deep); font-weight: 600; }
.auth-brand-mobile { display: none; align-self: flex-start; margin-bottom: 36px; }
.code-input { font-size: 30px !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.resend { margin-top: 20px; font-size: 15px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 5px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-photo { display: none; } .auth-brand-mobile { display: inline-flex; } .auth-panel { justify-content: flex-start; padding-top: 28px; } }

/* documents */
.doc { padding: 72px 0 96px; max-width: 780px; }
.doc .display { margin-bottom: 34px; }
.doc section { margin-bottom: 40px; }
.doc h2 { font-family: var(--display); font-weight: 500; font-size: 26px; margin-bottom: 12px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.callout { background: var(--clay-soft); border-left: 4px solid var(--clay); padding: 24px 26px; border-radius: 3px; }
.credit-list { list-style: none; padding: 0 !important; margin-top: 22px; }
.credit-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.credit-list img { width: 110px; height: 74px; object-fit: cover; border-radius: 3px; }
.credit-list a { color: var(--clay-deep); overflow-wrap: anywhere; }
.credit-list span { display: block; font-size: 14px; color: var(--muted); }

/* ================= motion ================= */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--clay); transform: scaleX(0); transform-origin: 0 50%; z-index: 40; }

/* header glides from transparent to solid */
.site-header.over-photo { position: fixed; transition: background-color .35s ease, box-shadow .35s ease; }
.site-header.over-photo .site-header-in { transition: height .35s ease; }
.site-header.over-photo.scrolled { background: rgba(246,242,234,.95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(20,32,27,.06); }
.site-header.over-photo.scrolled .site-header-in { height: 60px; }
.site-header.over-photo.scrolled .brand, .site-header.over-photo.scrolled .link-quiet { color: var(--ink); }
.site-header.over-photo.scrolled .site-nav a { color: var(--ink-2); }
.site-header .brand, .site-header .link-quiet, .site-nav a { transition: color .3s ease; }
.site-nav a { position: relative; padding: 4px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--clay); transform: scaleX(0); transform-origin: 0 50%; transition: transform .28s ease; }
.site-nav a:hover::after { transform: scaleX(1); }

/* buttons */
.btn { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(194,82,42,.32); }
.btn:active { transform: translateY(0); box-shadow: none; }
.arrow-down { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* hero */
.hero-img { inset: -6% 0 auto 0; height: 118%; will-change: transform; animation: heroIn 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroIn { from { opacity: 0; scale: 1.12; } to { opacity: 1; scale: 1; } }
.hero-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-in > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-in > :nth-child(1) { animation-delay: .25s; }
.hero-in > :nth-child(2) { animation-delay: .4s; }
.hero-in > :nth-child(3) { animation-delay: .6s; }
.hero-in > :nth-child(4) { animation-delay: .78s; }
.hero-in > :nth-child(5) { animation-delay: .95s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.site-header { animation: fadeDown .7s ease both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ticker */
.ticker { background: #0f1815; color: #cfd6d1; border-top: 1px solid rgba(255,255,255,.1); overflow: hidden; position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, #0f1815, transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, #0f1815, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 90s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; padding: 0; margin: 0; }
.ticker li { display: flex; align-items: baseline; gap: 14px; padding: 15px 34px; font-size: 14px; white-space: nowrap; border-right: 1px solid rgba(255,255,255,.1); font-variant-numeric: tabular-nums; }
.ticker b { color: #fff; font-family: var(--display); font-weight: 500; font-size: 17px; }
.ticker span + span::before { content: "·"; margin-right: 14px; color: var(--clay); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="img"] { transform: none; }
.js [data-reveal="img"] img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.1s cubic-bezier(.6,0,.2,1), transform 1.6s cubic-bezier(.2,.7,.2,1); transition-delay: inherit; }
.js [data-reveal="img"].in img { clip-path: inset(0); transform: none; }

/* photographs respond to the pointer */
.story-pair figure, .people-photos figure { overflow: hidden; }
.story-pair img, .people-photos img { transition: transform .9s cubic-bezier(.2,.7,.2,1), clip-path 1.1s cubic-bezier(.6,0,.2,1); }
.story-pair figure:hover img, .people-photos figure:hover img { transform: scale(1.045) !important; }
.story-pair figcaption, .people-photos figcaption { background: inherit; }

/* research chart draws itself */
.js .teaser .t-bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .9s cubic-bezier(.2,.8,.2,1), fill .15s; }
.js .teaser.in .t-bar { transform: none; }
.js .teaser .t-label { opacity: 0; transition: opacity .5s ease 1.2s; }
.js .teaser.in .t-label { opacity: 1; }
.range li { transition: padding-left .25s ease; }
.range li:hover { padding-left: 8px; }

/* steps and tools */
.steps-list li { position: relative; }
.steps-list li::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--clay); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.2,.7,.2,1) .2s; }
.steps-list li.in::before { transform: scaleX(1); }
.step-n { display: inline-block; transition: transform .3s ease; }
.steps-list li:hover .step-n { transform: translateY(-4px); }
.inside-grid article { position: relative; transition: background-color .3s ease, opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.inside-grid article::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--clay); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s ease; }
.inside-grid article:hover { background: #fff; }
.inside-grid article:hover::after { transform: scaleX(1); }
.inside-grid article h3 { transition: transform .3s ease; }
.inside-grid article:hover h3 { transform: translateX(4px); }
.hazards li { transition: background-color .25s ease, padding-left .25s ease; }
.hazards li:hover { background: rgba(255,255,255,.5); padding-left: 10px; }

/* closing photograph drifts */
.closing-img { animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, -2%); } }

/* sign-in pages */
.auth-photo img { animation: drift 30s ease-in-out infinite alternate; }
.auth-photo blockquote { animation: rise 1s cubic-bezier(.2,.7,.2,1) .3s both; }
.auth-box > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.auth-box > :nth-child(2) { animation-delay: .08s; }
.auth-box > :nth-child(3) { animation-delay: .16s; }
.auth-box > :nth-child(4) { animation-delay: .24s; }
.auth-box > :nth-child(5) { animation-delay: .32s; }
.field input, .field select, .field textarea { transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(194,82,42,.14); }
.form-error { animation: shake .45s ease; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.doc > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.doc > :nth-child(2) { animation-delay: .08s; } .doc > :nth-child(3) { animation-delay: .16s; } .doc > :nth-child(n+4) { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-reveal="img"] img, .js .teaser .t-bar, .js .teaser .t-label { opacity: 1; transform: none; clip-path: none; }
  .hero-rain { display: none; }
  .ticker { overflow-x: auto; } .ticker ul[aria-hidden] { display: none; }
}

/* ================= product showcase ================= */
.showcase { padding: 110px 0 96px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); overflow: hidden; }
.showcase-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.showcase-lede { font-size: 18px; color: var(--ink-2); }
.frame { margin-top: 56px; background: var(--card); border: 1px solid #cfc5b0; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(20,32,27,.45), 0 12px 30px -12px rgba(20,32,27,.2); }
.js [data-reveal="frame"] { opacity: 0; transform: perspective(1600px) rotateX(14deg) translateY(70px) scale(.94); transform-origin: 50% 0; transition: opacity 1s ease, transform 1.3s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal="frame"].in { opacity: 1; transform: none; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #e9e1d1; border-bottom: 1px solid #cfc5b0; }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c9bfab; }
.frame-bar span { margin-left: 14px; flex: 1; max-width: 360px; background: var(--card); border-radius: 6px; padding: 4px 12px; font-size: 12.5px; color: var(--muted); }
.frame-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.frame-side { background: var(--ink); color: #b9c2bc; padding: 20px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.frame-side b { display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--display); font-weight: 600; font-size: 17px; padding: 0 8px 16px; }
.frame-side .mark { width: 22px; height: 22px; }
.frame-side span { padding: 8px 10px; border-radius: 5px; }
.frame-side .on { background: var(--paper); color: var(--ink); font-weight: 600; }
.frame-main { padding: 26px 28px 30px; background: var(--paper); min-width: 0; }
.frame-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.frame-top small { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.frame-top strong { display: block; font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.frame-risks { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 99px; border: 1px solid; }
.chip-low { color: #1f5a3a; background: #e3f0e8; border-color: #b6d5c2; }
.chip-medium { color: #7a5200; background: #fbeecd; border-color: #e6cf93; }
.chip-high { color: #8a2410; background: #fbe1d8; border-color: #e9b3a1; }
.js .frame .chip { opacity: 0; transform: scale(.7); transition: opacity .4s ease, transform .5s cubic-bezier(.2,1.4,.4,1); }
.js .frame.in .chip { opacity: 1; transform: none; }
.frame.in .chip:nth-child(1) { transition-delay: .5s; } .frame.in .chip:nth-child(2) { transition-delay: .6s; } .frame.in .chip:nth-child(3) { transition-delay: .7s; } .frame.in .chip:nth-child(4) { transition-delay: .8s; }
.frame-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 20px; }
.frame-tiles div { background: var(--card); padding: 14px 16px; }
.frame-tiles small { display: block; font-size: 12px; color: var(--muted); }
.frame-tiles b { display: block; font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.frame-tiles em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.frame-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.frame-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; min-width: 0; }
.frame-card h3 { font-family: var(--display); font-weight: 500; font-size: 17px; margin-bottom: 10px; }
.frame-card svg { width: 100%; height: auto; }
.frame-card svg text { font-size: 9.5px; fill: #6b756f; font-family: var(--sans); }
.f-bar { fill: var(--rain); }
.js .frame .f-bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.js .frame.in .f-bar { transform: none; }
.frame-total small { display: block; font-size: 12px; color: var(--muted); }
.frame-total b { display: block; font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--clay-deep); }
.frame-cost ul { list-style: none; padding: 0; margin-top: 12px; }
.frame-cost li { display: grid; grid-template-columns: minmax(0, 1.5fr) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid #eee7d9; font-size: 12.5px; }
.frame-cost li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.frame-cost li i { display: block; height: 7px; border-radius: 0 4px 4px 0; background: var(--ink-2); max-width: 100%; }
.js .frame-cost li i { transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.js .frame.in .frame-cost li i { transform: none; }
.frame-cost li em { font-style: normal; font-variant-numeric: tabular-nums; font-weight: 600; }

.numbers { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 72px; border-top: 2px solid var(--ink); }
.numbers div { padding: 22px 18px 0 0; }
.numbers div + div { padding-left: 18px; border-left: 1px solid #cfc5b0; }
.numbers dt { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.numbers dd { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

@media (max-width: 900px) {
  .showcase { padding: 72px 0; } .showcase-head { grid-template-columns: 1fr; gap: 18px; }
  .frame-body { grid-template-columns: 1fr; } .frame-side { display: none; }
  .frame-cols { grid-template-columns: 1fr; } .frame-tiles { grid-template-columns: 1fr 1fr; }
  .frame-main { padding: 18px 16px 20px; } .frame-top strong { font-size: 34px; }
  .numbers { grid-template-columns: repeat(3, 1fr); row-gap: 8px; } .numbers div:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) { .numbers { grid-template-columns: 1fr 1fr; } .numbers div:nth-child(odd) { padding-left: 0; border-left: 0; } .numbers div:nth-child(4) { padding-left: 18px; border-left: 1px solid #cfc5b0; } }
@media (prefers-reduced-motion: reduce) { .js [data-reveal="frame"], .js .frame .chip, .js .frame .f-bar, .js .frame-cost li i { opacity: 1; transform: none; } }

/* ================= phones ================= */
html, body { overflow-x: clip; }
html.no-scroll { overflow: hidden; }
.site-header.menu-open { z-index: 60; }
.cta-short { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; color: var(--ink); }
.over-photo:not(.scrolled):not(.menu-open) .nav-toggle { color: #fff; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .28s ease, opacity .2s ease, top .28s ease; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.menu-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.mnav { display: none; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-actions { gap: 6px; }
  .site-actions .link-quiet { display: none; }
  .site-header.menu-open, .site-header.over-photo.menu-open { background: var(--paper); backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
  .site-header.menu-open .brand { color: var(--ink); }
  .mnav:not([hidden]) { display: flex; flex-direction: column; padding: 8px 20px calc(28px + env(safe-area-inset-bottom)); background: var(--paper); border-bottom: 1px solid var(--line); height: calc(100dvh - 60px); overflow-y: auto; animation: rise .35s cubic-bezier(.2,.7,.2,1) both; }
  .mnav a:not(.btn) { padding: 17px 2px; font-family: var(--display); font-size: 26px; font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mnav .btn { margin-top: 26px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { width: min(1160px, 100% - 36px); }
  .site-header-in, .site-header.over-photo.scrolled .site-header-in { height: 60px; gap: 10px; }
  .brand { font-size: 19px; } .brand .mark { width: 25px; height: 25px; }
  .site-actions .btn { padding: 10px 14px; font-size: 14px; min-height: 40px; }
  .cta-long { display: none; } .cta-short { display: inline; }

  .hero { min-height: min(100svh, 900px); }
  .hero-in { padding: 104px 0 44px; }
  .hero h1 { font-size: clamp(38px, 11.4vw, 54px); max-width: none; }
  .hero h1 br { display: none; }
  .hero-lede { font-size: 16.5px; margin-top: 18px; }
  .hero-cta { flex-direction: column; margin-top: 26px; }
  .hero-cta .btn { width: 100%; }
  .hero-foot { font-size: 13px; }
  .photo-credit { position: static; padding: 0 18px 8px; text-align: right; font-size: 10px; position: relative; }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }

  .ticker li { padding: 12px 22px; font-size: 13px; gap: 10px; }
  .ticker b { font-size: 15px; }
  .ticker::before, .ticker::after { width: 36px; }
  .ticker-track { animation-duration: 70s; }

  .display { font-size: clamp(28px, 8.2vw, 38px); }
  .display br { display: none; }
  .kicker { font-size: 12px; margin-bottom: 14px; }
  .story, .research, .steps, .people, .inside, .showcase { padding: 64px 0; }
  .story-pair { margin-top: 32px; gap: 26px; }
  .story-text { margin-top: 34px; font-size: 17px; gap: 16px; }

  .research-lede { font-size: 16.5px; }
  .facts { gap: 12px; margin-top: 30px; }
  .facts dd { font-size: 12.5px; }
  .range li { flex-direction: column; gap: 2px; font-size: 14.5px; }
  .range b { text-align: left; }
  .teaser { padding: 20px 16px 16px; margin-inline: -4px; }
  .teaser-title { font-size: 21px; }
  .t-axis { font-size: 15px; } .t-label { font-size: 16px; }
  .teaser-lock { flex-direction: column; align-items: stretch; }
  .teaser-lock p { max-width: none; }
  .teaser-lock .btn { width: 100%; padding: 14px; }

  .showcase-lede { font-size: 16.5px; }
  .frame { margin-top: 34px; border-radius: 10px; }
  .frame-bar { padding: 9px 12px; } .frame-bar i { width: 9px; height: 9px; }
  .frame-top strong { font-size: 32px; }
  .chip { font-size: 11.5px; padding: 3px 9px; }
  .frame-tiles b { font-size: 22px; }
  .frame-card { padding: 14px; }
  .frame-card svg text { font-size: 13px; }
  .frame-total b { font-size: 30px; }
  .frame-cost li { grid-template-columns: minmax(0, 1fr) 60px auto; }
  .numbers { margin-top: 44px; }
  .numbers div { padding-top: 16px; padding-bottom: 6px; }

  .steps-list { margin-top: 34px; }
  .steps-list li { padding: 22px 0 22px; display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; }
  .steps-list li::before { display: none; }
  .step-n { grid-row: 1 / 3; font-size: 46px; }
  .steps-list h3 { margin: 4px 0 6px; font-size: 21px; }
  .steps-list p { grid-column: 2; }

  .people-photos { grid-template-columns: 1fr 1fr; }
  .p-a { grid-row: auto; grid-column: 1 / 3; }
  .p-a img { height: auto; flex: none; aspect-ratio: 4 / 3; }
  .people-text p { font-size: 16.5px; }
  .hazards li { grid-template-columns: 78px 1fr; font-size: 14.5px; }

  .inside-grid { margin-top: 32px; }
  .inside-grid article { padding: 22px 20px 24px; }
  .closing-in { padding: 84px 0; }
  .closing .btn { width: 100%; }
  .site-footer { padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); }
  .site-footer .footer-grid a:not(.brand) { padding: 9px 0; }

  .auth-panel { padding: 22px 20px 40px; }
  .auth-box h1 { font-size: 31px; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 14px 13px; }
  .code-input { font-size: 28px !important; letter-spacing: .22em; }
  .link-button { padding: 6px 0; }
  .doc { padding: 96px 0 64px; }
  .credit-list li { grid-template-columns: 84px 1fr; } .credit-list img { width: 84px; height: 60px; }
}
@media (max-width: 380px) { .frame-tiles { grid-template-columns: 1fr 1fr; } .facts dt { font-size: 28px; } }
@media (hover: none) {
  .btn-accent:hover { transform: none; box-shadow: none; }
  .story-pair figure:hover img, .people-photos figure:hover img { transform: none !important; }
  .ticker:hover .ticker-track { animation-play-state: running; }
}

/* ================= long documents (services, methodology, investors, legal) ================= */
.doc-hero { background: var(--ink); color: #fff; padding: 76px 0 64px; }
.doc-hero .display { color: #fff; max-width: 21ch; font-size: clamp(34px, 5vw, 60px); animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.doc-lede { margin-top: 20px; max-width: 62ch; font-size: 19px; line-height: 1.55; color: #c9d1cc; animation: rise .7s cubic-bezier(.2,.7,.2,1) .1s both; }
.doc-date { margin-top: 18px; font-size: 14px; color: #9fada6; }
.doc-long { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 64px; padding: 56px 0 96px; align-items: start; }
.doc-toc { position: sticky; top: 100px; max-height: calc(100vh - 130px); overflow-y: auto; font-size: 14.5px; }
.doc-toc h2 { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; transition: color .2s ease, border-color .2s ease; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.on { color: var(--clay-deep); border-left-color: var(--clay); font-weight: 600; }
.doc-body { font-size: 17px; line-height: 1.65; }
.doc-body > section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.doc-body > section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-body h2 { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.2; margin-bottom: 16px; }
.doc-body h3 { font-size: 17px; font-weight: 600; margin: 26px 0 8px; }
.doc-body p + p, .doc-body ul + p, .doc-body ol + p, .doc-body .table-wrap + p, .doc-body table + p, .doc-body p + ul, .doc-body p + ol { margin-top: 14px; }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body li::marker { color: var(--clay); }
.doc-body a { color: var(--clay-deep); text-underline-offset: 3px; }
.doc-body code { font-size: .9em; padding: 1px 6px; background: var(--paper-2); border-radius: 4px; }
.doc-body .note { margin-top: 20px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--clay); border-radius: 4px; font-size: 15.5px; }
.doc-body .formula { margin: 16px 0; padding: 16px 20px; background: var(--ink); color: #fff; border-radius: 6px; font-family: var(--display); font-size: 24px; letter-spacing: .02em; }
.svc-lede { font-family: var(--display); font-size: 21px; color: var(--ink-2); margin-bottom: 8px; }
.svc { margin: 18px 0 0; }
.svc > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.svc dt { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.svc dd { margin: 0; }
.fact-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 24px 0; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.fact-row > div { background: var(--card); padding: 20px 18px; }
.fact-row b { display: block; font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1; color: var(--clay-deep); }
.fact-row span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.value-grid, .who-table { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.value-grid article, .who-table > div { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 20px; transition: transform .25s ease, box-shadow .25s ease; }
.value-grid article:hover, .who-table > div:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,32,27,.08); }
.value-grid h3, .who-table h3 { margin: 0 0 6px; }
.value-grid p, .who-table p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin: 16px 0; -webkit-overflow-scrolling: touch; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; margin: 16px 0; }
.table-wrap .doc-table { margin: 0; min-width: 520px; }
.doc-table.narrow { width: auto; min-width: 320px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.doc-table thead th { font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
.doc-table tbody th { font-weight: 600; }
.steps-plain > li { margin-bottom: 14px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: none; font-size: 22px; line-height: 1; color: var(--clay); transition: transform .2s ease; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 32px 18px 0; color: var(--ink-2); }
.doc-cta { background: var(--ink); padding: 72px 0; text-align: center; }
.doc-cta .display { margin-bottom: 26px; }
.auth-legal { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.auth-legal a { color: inherit; }
.notice-bar { margin: 0; padding: 14px 20px; background: var(--ink); color: #fff; text-align: center; font-weight: 500; position: relative; z-index: 30; }
@media (max-width: 960px) {
  .doc-long { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 0 64px; }
  .doc-toc { position: static; max-height: none; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
  .doc-toc ol { columns: 2; column-gap: 20px; border-left: 0; }
  .doc-toc a { padding-left: 0; border-left: 0; break-inside: avoid; }
}
@media (max-width: 640px) {
  .doc-hero { padding: 48px 0 40px; }
  .doc-lede { font-size: 17px; }
  .doc-body { font-size: 16.5px; }
  .doc-body h2 { font-size: 25px; }
  .doc-toc ol { columns: 1; }
  .svc > div { grid-template-columns: 1fr; gap: 6px; }
  .fact-row { grid-template-columns: 1fr 1fr; }
  .fact-row b { font-size: 32px; }
  .value-grid, .who-table { grid-template-columns: 1fr; }
  .doc-body .formula { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .doc-hero .display, .doc-lede { animation: none; } }
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ================= landing as an app: live console + phone app bar ================= */
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 440px); gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(38px, 5.4vw, 72px); }
.live { scroll-margin-top: 90px; background: rgba(255,253,248,.97); color: var(--ink); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.14); overflow: hidden; backdrop-filter: blur(10px); }
.live-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; background: var(--ink); color: #fff; font-size: 14px; }
.live-bar b { font-weight: 600; letter-spacing: .02em; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 0 0 rgba(95,208,138,.6); animation: livePulse 2s ease-out infinite; }
@keyframes livePulse { to { box-shadow: 0 0 0 9px rgba(95,208,138,0); } }
.live-town { margin-left: auto; }
.live-town select { font: inherit; font-size: 16px; font-weight: 600; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 7px 10px; max-width: 180px; cursor: pointer; }
.live-town select option { color: var(--ink); }
.live-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 14px 16px 0; padding: 4px; background: var(--paper-2); border-radius: 10px; }
.live-tabs button { padding: 9px 6px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; touch-action: manipulation; }
.live-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(20,32,27,.18); }
.live-pane { padding: 16px; min-height: 264px; animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.live-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.live-tiles > div { padding: 11px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.live-tiles span { display: block; font-size: 12.5px; color: var(--muted); }
.live-tiles b { display: block; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tick { animation: tick .35s ease; }
@keyframes tick { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.live-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 92px; margin-top: 16px; }
.live-chart > div { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-width: 0; }
.live-chart i { display: block; height: 2%; background: var(--rain); border-radius: 3px 3px 0 0; transition: height .5s cubic-bezier(.2,.8,.2,1), background-color .3s ease; }
.live-chart i.peak { background: var(--clay); }
.live-chart span { padding-top: 4px; font-size: 10.5px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.live-note { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--ink-2); min-height: 38px; }
.live-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.live-chips button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; touch-action: manipulation; transition: background-color .15s ease, color .15s ease; }
.live-chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.live-range { display: block; margin-top: 16px; }
.live-range span { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.live-range b { font-variant-numeric: tabular-nums; color: var(--ink); }
.live-range input { width: 100%; margin-top: 8px; accent-color: var(--clay); height: 28px; cursor: pointer; }
.live-result { margin-top: 16px; padding: 14px 16px; background: var(--clay-soft); border-radius: 12px; }
.live-result span { display: block; font-size: 13px; color: var(--ink-2); }
.live-result b { display: block; font-family: var(--display); font-weight: 500; font-size: 38px; line-height: 1.15; color: var(--clay-deep); font-variant-numeric: tabular-nums; }
.live-result small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.live-cta { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; background: var(--clay); color: #fff; font-weight: 600; text-decoration: none; transition: background-color .2s ease; }
.live-cta:hover { background: var(--clay-deep); }
.live-cta span:last-child { transition: transform .2s ease; } .live-cta:hover span:last-child { transform: translateX(4px); }

.appbar { display: none; }
@media (max-width: 1020px) {
  .hero { min-height: 0; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 120px 0 44px; }
  .live { max-width: 520px; }
}
@media (max-width: 760px) {
  .appbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,253,248,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .appbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .appbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .appbar a[aria-current="page"] { color: var(--ink); }
  .appbar a:active { background: var(--paper-2); }
  .appbar-main { color: var(--clay-deep) !important; }
  body:has(.appbar) { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .hero-in { padding: 104px 0 30px; }
  .hero-lede { font-size: 16.5px; margin-top: 16px; }
  .hero-cta { margin-top: 22px; } .hero-cta .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
  .hero-foot { display: none; }
  .live { border-radius: 14px; }
  .live-pane { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .live-dot, .tick, .live-pane { animation: none; } .live-chart i { transition: none; } }
@media (max-width: 760px) {
  .hero-in { gap: 16px; padding: 92px 0 26px; }
  .hero-copy { display: contents; }
  .hero-copy > .kicker { order: 1; } .hero h1 { order: 2; font-size: clamp(30px, 8.6vw, 40px); max-width: none; }
  .hero-lede { display: none; }
  .live { order: 3; margin-top: 6px; }
  .hero-cta { order: 4; margin-top: 6px; }
  .hero-try { display: none; }
}
@media (max-width: 760px) { .hero-copy > *, .hero-in > .live { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; } }
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .hero-copy > *, .hero-in > .live { animation: none; } }

/* ---- site data panel: plain, squared, institutional ---- */
.live { background: #fff; border-radius: 3px; box-shadow: 0 24px 60px rgba(0,0,0,.45); backdrop-filter: none; }
.live-bar { padding: 14px 16px; gap: 12px; border-bottom: 2px solid var(--clay); }
.live-bar b { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.live-src { font-size: 12px; color: #9fada6; letter-spacing: .02em; white-space: nowrap; }
.live-town select { border-radius: 2px; background: transparent; border-color: rgba(255,255,255,.35); font-size: 16px; padding: 6px 8px; }
.live-tabs { display: flex; gap: 0; margin: 0; padding: 0 16px; background: none; border-radius: 0; border-bottom: 1px solid var(--line); }
.live-tabs button { padding: 13px 0 11px; margin-right: 24px; border-radius: 0; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--muted); }
.live-tabs button[aria-selected="true"] { background: none; box-shadow: none; color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.live-pane { padding: 0 16px 16px; }
.live-tiles { gap: 0; border-bottom: 1px solid var(--line); }
.live-tiles > div { padding: 14px 0 12px; background: none; border: 0; border-radius: 0; border-top: 1px solid var(--line); }
.live-tiles > div:nth-child(-n+2) { border-top: 0; }
.live-tiles > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.live-tiles span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.live-tiles b { font-family: var(--sans); font-weight: 600; font-size: 22px; letter-spacing: -.01em; margin-top: 2px; }
.live-chart { gap: 3px; }
.live-chart i { border-radius: 0; }
.live-chart i.peak { background: var(--ink); }
.live-note { font-size: 12.5px; color: var(--muted); }
.live-chips { gap: 0; margin-top: 16px; border: 1px solid var(--line); }
.live-chips button { flex: 1 1 auto; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 9px 8px; font-size: 13px; }
.live-chips button:last-child { border-right: 0; }
.live-pane[data-pane="tank"] .live-range:first-child { margin-top: 18px; }
.live-range span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.live-range b { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.live-range input { accent-color: var(--ink); }
.live-result { background: none; border-radius: 0; padding: 14px 0 0; border-top: 1px solid var(--ink); margin-top: 18px; }
.live-result span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.live-result b { font-family: var(--sans); font-weight: 600; font-size: 34px; letter-spacing: -.02em; color: var(--ink); margin-top: 2px; }
.live-result small { color: var(--muted); }
.live-cta { padding: 14px 16px; background: var(--ink); font-size: 14.5px; }
.live-cta:hover { background: #000; }
.tick { animation: none; }
@media (max-width: 760px) { .live { border-radius: 3px; } .live-src { display: none; } }
