/* WeatherLabs — home page sections after the hero: live facts, the
   argument (essay + two routes), how we work (designed backwards), the
   applications grid, the live Aviator application, ask, "any business" and
   the commission letter. Shared card/drawer/ask styles live in apps.css. */

/* ---- 2 · live facts (weatherlabs.io statbar) ---------------------------------- */
.statbar { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statbar-in { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .9rem 2.4rem; padding-block: 1.4rem; font-family: var(--mono); font-size: .72rem; color: var(--text2); }
.statbar-in li { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.statbar b { color: var(--accent); font-weight: 500; }
.sb-run { gap: .6rem; }
.sb-run > span + span::before { content: '·'; margin-right: .6rem; color: var(--text3); }
.sb-word { color: var(--green); }
.statbar.is-sample .sb-word { color: var(--amber); }
.sb-ago { color: var(--text3); }
@media (max-width: 760px) {
  .statbar-in { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; gap: .8rem 1.2rem; padding-block: 1.2rem; }
  .statbar-in li { white-space: normal; }
  .statbar-in .sb-run { grid-column: 1 / -1; flex-wrap: wrap; }
}

/* ---- 3 · the argument ----------------------------------------------------------- */
.essay { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 6.4fr) minmax(0, 2.5fr); gap: 56px; align-items: start; }
.essay-body { font-size: 1.07rem; line-height: 1.88; color: var(--text2); font-weight: 300; max-width: 64ch; }
.essay-body p + p { margin-top: 1.15em; }
.essay-body p:first-child { font-family: var(--serif); font-size: 1.62rem; line-height: 1.5; color: var(--text); font-weight: 400; margin-bottom: .3em; }
.dropcap::first-letter { float: left; font-family: var(--serif); font-weight: 300; font-size: 4.3em; line-height: .8; margin: .07em .1em 0 -.02em; color: var(--accent); }
.marginal { border-top: 1px solid var(--text); padding-top: 14px; font-family: var(--serif); font-style: italic; font-size: 1.14rem; line-height: 1.48; color: var(--text2); }
.marginal p + p { margin-top: .6em; }
.marginal--r { margin-top: 232px; }
.m-label { font-family: var(--mono); font-style: normal; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.marginal .m-big { font-family: var(--serif); font-style: normal; font-size: 2.7rem; font-weight: 300; line-height: 1; color: var(--text); margin: 2px 0 10px; }
.m-sig { font-size: .98rem; color: var(--text3); }
@media (max-width: 1080px) {
  .essay { grid-template-columns: 1fr 1fr; gap: 40px 48px; }
  .essay-body { grid-column: 1 / -1; grid-row: 1; max-width: 68ch; }
  .marginal--r { margin-top: 0; }
}
@media (max-width: 640px) {
  .essay { grid-template-columns: 1fr; gap: 32px; }
  .essay-body p:first-child { font-size: 1.38rem; }
}

/* the two routes (Instrument) */
.routes { margin-top: clamp(72px, 9vw, 120px); display: grid; gap: 20px; }
.route { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px 44px; align-items: center; padding: 30px 34px; border-radius: var(--r-lg); position: relative; }
.route-hd { grid-row: span 2; align-self: start; }
.route-name { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; line-height: 1.15; }
.route-count { margin-top: 8px; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.route-chain { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 0; }
.route-chain li { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border-radius: 99px; font-size: .88rem; line-height: 1.2; }
.route-chain li:not(:last-child) { margin-right: 34px; }
.route-chain li:not(:last-child)::after { content: ''; position: absolute; left: calc(100% + 7px); top: calc(50% - 5px); width: 20px; height: 10px; background: var(--line3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h17M13 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h17M13 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.route-cap { grid-column: 2; font-size: .94rem; color: var(--text2); font-weight: 300; }
.route--old { border: 1px dashed var(--line3); }
.route--old .route-name { color: var(--text2); }
.route--old li { color: var(--text3); box-shadow: inset 0 0 0 1px var(--line2); }
.route--old s { text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--text3) 85%, transparent); }
.route--old .route-end { font-family: var(--serif); font-style: italic; font-size: 1.08rem; }
.route--old .route-cap { color: var(--text3); }
.route--new { background: var(--bg2); border: 1px solid var(--accent-ring); box-shadow: 0 30px 70px -40px var(--accent-glow), 0 0 0 4px var(--accent-dim); overflow: hidden; isolation: isolate; }
.route--new::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, var(--accent-dim) 48%, transparent 66%); background-size: 260% 100%; animation: sweep 7s var(--ease) infinite; }
@keyframes sweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }
.route--new .route-name { font-weight: 500; }
.route--new .route-count { color: var(--accent); }
.route--new li { min-height: 54px; padding: 0 24px; font-size: 1.05rem; font-weight: 500; color: var(--on-accent); background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-ring), 0 10px 34px -10px var(--accent-glow); }
.route--new li:not(:last-child) { margin-right: 64px; }
.route--new li:not(:last-child)::after { width: 44px; height: 14px; left: calc(100% + 10px); top: calc(50% - 7px); background: var(--accent); }
.route--new .route-end { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 0 0 5px var(--accent-dim), 0 14px 44px -8px var(--accent-glow); animation: callglow 3.2s ease-in-out infinite; }
@keyframes callglow { 50% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 0 0 9px var(--accent-dim), 0 16px 54px -6px var(--accent-glow); } }
.route--new .route-cap { color: var(--text); font-weight: 400; }
@media (max-width: 960px) {
  .route { grid-template-columns: 1fr; padding: 24px 22px; }
  .route-hd { grid-row: auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
  .route-count { margin-top: 0; }
  .route-cap { grid-column: 1; }
}
@media (max-width: 640px) {
  .route-chain li { font-size: .82rem; padding: 0 12px; }
  .route-chain li:not(:last-child) { margin-right: 28px; }
  .route-chain li:not(:last-child)::after { width: 16px; left: calc(100% + 6px); }
  .route--new .route-chain { flex-direction: column; align-items: stretch; gap: 30px; }
  .route--new li { justify-content: center; margin-right: 0 !important; }
  .route--new li:not(:last-child)::after { left: calc(50% - 7px); top: calc(100% + 8px); width: 14px; height: 16px; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M5 0v13M1 9l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M5 0v13M1 9l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

/* ---- 4 · how we work -------------------------------------------------------------- */
.process-wrap { position: relative; padding-bottom: 168px; }
.process { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; position: relative; }
.process::before { content: ''; position: absolute; top: 48px; left: 12%; right: 12%; border-top: 1px dashed var(--line3); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 43px; right: -27px; width: 10px; height: 10px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: rotate(45deg); }
.step-art { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--text); background: var(--bg2); border: 1px solid var(--line3); box-shadow: inset 0 0 0 6px var(--bg2), inset 0 0 0 7px var(--line2); }
.step-art svg { width: 40px; height: 40px; }
.step-art--engine { color: var(--bg2); background: var(--text); border-color: var(--text); box-shadow: inset 0 0 0 6px var(--text), inset 0 0 0 7px color-mix(in srgb, var(--bg2) 35%, transparent); }
.step-art--answer { color: var(--on-accent); background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 6px var(--accent), inset 0 0 0 7px rgba(255, 255, 255, .35), 0 14px 44px -12px var(--accent-glow); }
.step-copy { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.step-no { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.step h3 { font-family: var(--serif); font-size: 1.85rem; font-weight: 400; line-height: 1.1; }
.step-copy > p:not(.step-no):not(.step-meta) { font-size: .96rem; line-height: 1.7; color: var(--text2); font-weight: 300; max-width: 30ch; }
.step-meta { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; max-width: 26ch; font-family: var(--mono); font-size: .68rem; color: var(--text3); letter-spacing: .02em; }
.step-meta b { color: var(--accent); font-weight: 500; }

.loop-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.loop-path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 7; animation: march 1.4s linear infinite; opacity: .85; }
.loop-head { fill: var(--accent); }
.loop-start { fill: var(--bg2); stroke: var(--accent); stroke-width: 1.5; }
@keyframes march { to { stroke-dashoffset: -24; } }
.loop-note { position: absolute; left: 50%; top: var(--loop-y, calc(100% - 64px)); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 10px; text-align: center; z-index: 1; }
.loop-label { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 99px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--accent-ring), 0 10px 30px -14px var(--accent-glow); font-family: var(--serif); font-size: 1.4rem; font-style: italic; line-height: 1.2; color: var(--text); white-space: nowrap; }
.loop-label b { font-weight: 400; }
.loop-label svg { color: var(--accent); }
.loop-text { font-size: .92rem; color: var(--text2); font-weight: 300; background: var(--bg2); padding: 0 10px; }
.loop-text span[aria-hidden] { color: var(--accent); margin: 0 4px; }
@media (max-width: 860px) {
  .process-wrap { padding-bottom: 0; }
  .process { grid-template-columns: 1fr; gap: 40px; padding-left: 30px; }
  .process::before { top: 36px; bottom: 36px; left: calc(30px + 36px); right: auto; border-top: 0; border-left: 1px dashed var(--line3); }
  .step { flex-direction: row; align-items: flex-start; text-align: left; gap: 22px; }
  .step:not(:last-child)::after { display: none; }
  .step-art { width: 72px; height: 72px; box-shadow: inset 0 0 0 5px var(--bg2), inset 0 0 0 6px var(--line2); }
  .step-art--engine { box-shadow: inset 0 0 0 5px var(--text), inset 0 0 0 6px color-mix(in srgb, var(--bg2) 35%, transparent); }
  .step-art--answer { box-shadow: inset 0 0 0 5px var(--accent), inset 0 0 0 6px rgba(255, 255, 255, .35), 0 14px 44px -12px var(--accent-glow); }
  .step-art svg { width: 30px; height: 30px; }
  .step-copy { align-items: flex-start; padding-top: 6px; }
  .step-copy > p:not(.step-no):not(.step-meta) { max-width: 52ch; }
  .step-meta { max-width: none; }
  .loop-note { position: static; transform: none; justify-items: start; text-align: left; margin: 32px 0 0 30px; }
  .loop-label { white-space: normal; font-size: 1.25rem; }
  .loop-text { padding: 0; background: none; }
}
@media (max-width: 420px) {
  .process { padding-left: 22px; }
  .process::before { left: calc(22px + 30px); }
  .step-art { width: 60px; height: 60px; }
  .step-art svg { width: 26px; height: 26px; }
  .step h3 { font-size: 1.6rem; }
  .loop-note { margin-left: 22px; }
}

/* how fast — a typical engagement */
.pace { margin-top: clamp(64px, 7vw, 96px); padding-top: 52px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.7fr); gap: 32px 64px; }
.pace-title { font-family: var(--serif); font-size: 2rem; font-weight: 300; line-height: 1.15; }
.pace-title em { font-style: italic; color: var(--accent); display: block; }
.pace-note { margin-top: 16px; font-size: .88rem; line-height: 1.6; color: var(--text3); font-weight: 300; }
.pace-note .pill { margin-right: 6px; vertical-align: 1px; }
.pace-line { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; padding-top: 34px; }
.pace-line::before { content: ''; position: absolute; top: 7px; left: 7px; right: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 18%, transparent)); }
.pace-line li { position: relative; }
.pace-line li::before { content: ''; position: absolute; top: -34px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg2); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--bg2); }
.pace-line li:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px var(--bg2), 0 0 16px var(--accent-glow); }
.pace-when { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pace-line h4 { margin: 8px 0 6px; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; line-height: 1.2; }
.pace-line p:not(.pace-when) { font-size: .9rem; line-height: 1.6; color: var(--text2); font-weight: 300; }
@media (max-width: 1080px) { .pace { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .pace-line { grid-template-columns: 1fr; padding: 0 0 0 34px; gap: 26px; }
  .pace-line::before { top: 6px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 18%, transparent)); }
  .pace-line li::before { top: 2px; left: -34px; }
}

/* ---- 5 · applications ------------------------------------------------------------- */
.apps-more { margin-top: 56px; display: flex; justify-content: center; }
@media (max-width: 640px) { .apps-more .btn { width: 100%; white-space: normal; text-align: center; padding-block: 10px; } }

/* ---- 6 · the live application ------------------------------------------------------ */
.la { border-radius: 20px; background: var(--bg); border: 1px solid var(--line2); box-shadow: var(--shadow-lg); overflow: hidden; }
.la-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 26px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.la-app { display: flex; align-items: center; gap: 14px; }
.la-title { font-family: var(--serif); font-size: 1.65rem; font-weight: 400; line-height: 1.1; }
.la-title span[aria-hidden] { color: var(--accent); margin: 0 4px; }
.la-sub { margin-top: 4px; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.la-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.la-run { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); }
.la-run b { color: var(--text2); font-weight: 500; }
.la .live-badge { padding: 5px 10px; border-radius: 99px; background: var(--green-dim); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 30%, transparent); }
.la .live-badge.is-sample { background: var(--amber-dim); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 30%, transparent); }
.la .live-badge.is-connecting { color: var(--text3); background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }

.la-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.la-mapwrap { position: relative; min-height: 600px; border-right: 1px solid var(--line); background: var(--la-sea, #dfe7ee); }
.la-map { position: absolute; inset: 0; }
.la-maptag { position: absolute; z-index: 3; left: 16px; top: 16px; max-width: calc(100% - 32px); padding: 7px 12px; border-radius: 99px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line2); font-family: var(--mono); font-size: .64rem; letter-spacing: .04em; color: var(--text2); }
.la-maptag b { color: var(--text); font-weight: 500; }
.la-legend { position: absolute; z-index: 3; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line2); font-family: var(--mono); font-size: .6rem; color: var(--text2); }
.la-legend i { display: block; width: 120px; height: 6px; border-radius: 3px; }
.la-pin { margin: -8px 0 0 -8px; display: flex; align-items: center; gap: 8px; }
.la-pin i { width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--accent); box-shadow: 0 0 0 3px var(--bg2), 0 0 0 4px var(--accent), 0 0 22px var(--accent-glow); }
.la-pin span { padding: 5px 9px; border-radius: 8px; background: var(--glass2); box-shadow: inset 0 0 0 1px var(--line2), var(--shadow); font-family: var(--mono); font-size: .62rem; line-height: 1.35; color: var(--text2); white-space: nowrap; }
.la-pin span b { display: block; color: var(--text); font-size: .7rem; font-weight: 500; }
.la-pin--arr i { background: var(--bg2); box-shadow: 0 0 0 3px var(--accent), 0 0 22px var(--accent-glow); }
.la-plane { margin: -13px 0 0 -13px; width: 26px; height: 26px; display: grid; place-items: center; color: var(--accent); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.la-plane svg { width: 26px; height: 26px; fill: var(--bg2); }

.la-side { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 24px; background: var(--bg2); }
.la-label { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text3); font-weight: 500; }
.la-label b { color: var(--text); font-weight: 600; letter-spacing: .08em; }
.la-dep-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.la-in { font-family: var(--mono); font-size: .66rem; color: var(--accent); white-space: nowrap; }
.la-when { margin: 6px 0 10px; font-family: var(--serif); font-size: 2.1rem; font-weight: 400; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.la-scale { display: flex; justify-content: space-between; margin-top: 4px; font-family: var(--mono); font-size: .6rem; color: var(--text3); }

.la-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; background: transparent; cursor: pointer; --p: 0%; }
.la-range:focus { outline: none; }
.la-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p), var(--bg4) var(--p)); }
.la-range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p), var(--bg4) var(--p)); }
.la-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--bg2); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-dim), 0 6px 18px -6px var(--accent-glow); transition: box-shadow .2s; }
.la-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--bg2); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-dim), 0 6px 18px -6px var(--accent-glow); }
.la-range:focus-visible::-webkit-slider-thumb { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 7px var(--accent-ring); }
.la-range:focus-visible::-moz-range-thumb { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 7px var(--accent-ring); }
.la-range--limit::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--text3) var(--p), var(--bg4) var(--p)); }
.la-range--limit::-moz-range-track { background: linear-gradient(90deg, var(--text3) var(--p), var(--bg4) var(--p)); }
.la-range--limit::-webkit-slider-thumb { box-shadow: inset 0 0 0 2px var(--red), 0 0 0 5px var(--red-dim); }
.la-range--limit::-moz-range-thumb { box-shadow: inset 0 0 0 2px var(--red), 0 0 0 5px var(--red-dim); }

.la-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 12px; overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.la-field { padding: 14px 16px; background: var(--bg); display: grid; gap: 3px; }
.la-fname { font-size: .86rem; color: var(--text2); }
.la-fname span { font-family: var(--mono); font-size: .7rem; color: var(--text3); margin-left: 4px; }
.la-wind { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; }
.la-gust { font-family: var(--mono); font-size: .66rem; color: var(--text3); }

.la-xw { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; }
.la-dial { width: 150px; height: 150px; }
.d-ring { fill: var(--bg); stroke: var(--line3); }
.d-tick { stroke: var(--line3); }
.d-tick--major { stroke: var(--text3); }
.d-lab { font-family: var(--mono); font-size: 13px; fill: var(--text3); }
.d-lab--n { fill: var(--text); font-weight: 600; }
.d-rwy { fill: var(--bg3); stroke: var(--line3); }
.d-centre { stroke: var(--text3); stroke-dasharray: 5 5; }
.d-num { font-family: var(--mono); font-size: 11px; fill: var(--text3); font-weight: 600; }
.d-num.is-on { fill: var(--accent); }
.d-arrow { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.d-arrow-dot { fill: var(--accent); }
.d-xc { stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; fill: none; stroke-dasharray: 3 4; }
.la-xbig { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 2px; }
.la-xbig b { font-family: var(--serif); font-size: 3.4rem; font-weight: 300; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.la-xbig small { font-family: var(--mono); font-size: .7rem; color: var(--text3); letter-spacing: .04em; }
.la-xsub { font-size: .86rem; color: var(--text2); line-height: 1.5; }
.la-verdict { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; font-size: .84rem; font-weight: 500; color: var(--text2); box-shadow: inset 0 0 0 1px var(--line2); }
.la-verdict svg { width: 16px; height: 16px; flex: none; }
.la-verdict.is-ok { color: var(--green); background: var(--green-dim); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 30%, transparent); }
.la-verdict.is-over { color: var(--red); background: var(--red-dim); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 30%, transparent); }
.la-limit-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.la-limit-out { min-width: 4.5ch; font-family: var(--mono); font-size: .9rem; font-weight: 500; color: var(--red); text-align: right; }

.la-chart { padding: 22px 26px 18px; border-top: 1px solid var(--line); background: var(--bg2); }
.la-chart-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text3); font-weight: 500; }
.la-chart-zone { font-family: var(--mono); letter-spacing: .06em; text-transform: none; font-size: .68rem; color: var(--text2); }
.la-chart-box { position: relative; margin-top: 10px; min-height: 200px; }
.xc { display: block; width: 100%; overflow: visible; cursor: crosshair; touch-action: pan-y; }
.xc-grid { stroke: var(--line); }
.xc-ylab, .xc-xlab, .xc-lab { font-family: var(--mono); font-size: 10px; fill: var(--text3); }
.xc-xlab.is-day { fill: var(--text2); font-weight: 600; }
.xc-day { stroke: var(--line2); }
.xc-area { fill: var(--accent); opacity: .12; }
.xc-over { fill: var(--red); opacity: .22; }
.xc-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.xc-limit { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 6 5; }
.xc-limlab { font-family: var(--mono); font-size: 10px; fill: var(--red); font-weight: 600; }
.xc-sel { stroke: var(--text); stroke-width: 1.5; }
.xc-seldot { fill: var(--accent); stroke: var(--bg2); stroke-width: 2.5; }
.xc-sellab { font-family: var(--mono); font-size: 10px; fill: var(--text); font-weight: 600; }
.xc-selbg { fill: var(--bg2); }
.xc-cross { stroke: var(--text3); }
.xc-hdot { fill: var(--bg2); stroke: var(--accent); stroke-width: 2; }
.xc-tip { position: absolute; top: 0; z-index: 2; min-width: 132px; padding: 8px 10px; border-radius: 8px; background: var(--text); color: var(--bg); font-family: var(--mono); font-size: .66rem; line-height: 1.45; pointer-events: none; box-shadow: var(--shadow-lg); }
.xc-tip b { display: block; font-size: .8rem; font-weight: 500; }
.la-table { margin-top: 12px; }
.la-table summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; font-size: .86rem; font-weight: 500; color: var(--accent); }
.la-table-scroll { max-height: 320px; overflow: auto; margin-top: 8px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.la-table table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .72rem; color: var(--text2); }
.la-table th, .la-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.la-table th { position: sticky; top: 0; background: var(--bg2); color: var(--text3); font-weight: 500; letter-spacing: .06em; }
.la-table tr.is-sel td { background: var(--accent-dim); color: var(--text); }
.la-table td.is-over { color: var(--red); font-weight: 600; }

.la-foot { padding: 20px 26px 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.la-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.la-saved { font-size: .9rem; color: var(--text2); }
.la-saved a { font-weight: 500; }
.la-disc { font-size: .84rem; line-height: 1.6; color: var(--text3); font-weight: 300; }
.la-disc b { color: var(--text2); font-weight: 500; }
.la-noscript { padding: 14px 26px; border-bottom: 1px solid var(--line); }

@media (max-width: 1080px) {
  .la-body { grid-template-columns: 1fr; }
  .la-mapwrap { min-height: 420px; border-right: 0; border-bottom: 1px solid var(--line); }
  .la-side { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
  .la-dep, .la-fields { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .la { border-radius: 16px; }
  .la-bar { padding: 16px 18px; }
  .la-mapwrap { min-height: 320px; }
  .la-side { display: flex; padding: 22px 18px; }
  .la-fields { grid-template-columns: 1fr; }
  .la-xw { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .la-dial { width: 120px; height: 120px; }
  .la-xbig b { font-size: 2.8rem; }
  .la-chart, .la-foot { padding-inline: 18px; }
  .la-actions .btn { flex: 1 1 auto; }
  .la-pin span { font-size: .56rem; padding: 4px 7px; }
  .la-legend i { width: 80px; }
}

/* ---- 7 · ask ------------------------------------------------------------------------ */
.ask-sec { padding-block: clamp(72px, 8vw, 112px); }
.ask-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 72px; align-items: start; }
.ask-box { padding-top: 6px; }
@media (max-width: 960px) { .ask-wrap { grid-template-columns: 1fr; } }

/* ---- 8 · any business --------------------------------------------------------------- */
.any { background: #0a0a0c; overflow: hidden; isolation: isolate; border-block: 1px solid var(--line); }
.any-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.any-lines path { fill: none; stroke: rgba(74, 158, 237, .16); stroke-width: 1; }
.any-lines path.is-major { stroke: rgba(74, 158, 237, .28); }
.any::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 85% 20%, rgba(74, 158, 237, .1), transparent 70%), linear-gradient(180deg, rgba(10, 10, 12, .2), rgba(10, 10, 12, .75)); pointer-events: none; }
.any-title { font-family: var(--serif); font-size: clamp(3.2rem, 9vw, 7.6rem); font-weight: 300; line-height: .98; letter-spacing: .005em; }
.any-title em { display: block; font-style: italic; color: var(--accent); }
.any-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px 80px; margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.any-copy { display: grid; gap: 22px; justify-items: start; }
.any-lede { font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-style: italic; font-weight: 300; line-height: 1.15; color: var(--text); }
.any-copy > p:not(.any-lede) { font-size: 1.05rem; line-height: 1.8; color: var(--text2); font-weight: 300; max-width: 52ch; }
.any-kicker { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text3); font-weight: 500; margin-bottom: 14px; }
.any-sectors { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; border-top: 1px solid var(--line2); }
.any-sectors a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 2px; border-bottom: 1px solid var(--line2); color: var(--text); font-family: var(--serif); font-size: 1.4rem; line-height: 1.15; transition: color .2s, padding .3s var(--ease); }
.any-sectors a svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.any-sectors a .n { margin-left: auto; font-family: var(--mono); font-size: .62rem; color: var(--text3); }
.any-sectors a:hover { color: var(--accent); padding-left: 8px; }
.any-not { margin-top: 22px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; color: var(--text2); }
.any-not em { font-style: italic; color: var(--accent); }
@media (max-width: 960px) { .any-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .any-sectors { grid-template-columns: 1fr; } }

/* ---- 9 · commission: the letter ---------------------------------------------------- */
.com-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.letter { position: relative; padding: clamp(30px, 4.6vw, 60px); background: var(--bg2); border: 1px solid var(--line2); border-radius: 6px; box-shadow: var(--shadow-lg); font-family: var(--serif); font-size: clamp(1.22rem, 1.05rem + .55vw, 1.55rem); line-height: 2.25; color: var(--text); }
.letter::before { content: ''; position: absolute; inset: 12px; border: 1px solid var(--line); border-radius: 3px; pointer-events: none; }
.letter-date { text-align: right; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--text3); line-height: 1.4; margin-bottom: 18px; }
.letter-salute { font-style: italic; font-size: 1.45em; line-height: 1.3; margin-bottom: 14px; }
.letter-p { margin-bottom: 6px; }
.letter-p--q { margin-top: 10px; margin-bottom: 0; }
.blank { display: inline-block; vertical-align: baseline; position: relative; }
.blank input, .blank select { width: 100%; min-width: 0; min-height: 44px; padding: 0 4px; border: 0; border-bottom: 1.5px solid var(--text3); border-radius: 0; background: transparent; font-family: var(--serif); font-style: italic; font-size: 1em; color: var(--accent); -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.blank select { padding-right: 24px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 11px) 55%, calc(100% - 6px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.blank select option { font-style: normal; color: var(--text); background: var(--bg2); }
.blank input::placeholder { color: var(--text3); opacity: .9; }
.blank input:focus, .blank select:focus, .letter textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 2px 0 0 var(--accent); }
.blank--name { width: 10.5ch; }
.blank--org { width: 13ch; }
.blank--sector { width: 20ch; }
.blank--other { width: 11ch; }
.blank--freq { width: 13ch; }
.letter textarea { display: block; width: 100%; min-height: 6.75em; margin: 4px 0 14px; padding: 0 4px; border: 0; border-radius: 0; resize: vertical; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(2.25em - 1px), var(--line3) calc(2.25em - 1px), var(--line3) 2.25em); font-family: var(--serif); font-style: italic; font-size: 1em; line-height: 2.25em; color: var(--accent); }
.letter textarea::placeholder { color: var(--text3); opacity: .9; }
.letter-sign { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 22px; line-height: 1.4; }
.letter-yours { font-style: italic; }
.letter-sig { margin-top: 6px; min-height: 2.8rem; font-family: var(--hand); font-size: 2.3rem; line-height: 1.2; color: var(--accent); transform: rotate(-2deg); transform-origin: left; }
.letter-sig:empty::before { content: ''; display: block; width: 200px; height: 1px; margin-top: 2.2rem; background: var(--line3); }
.letter-out { font-family: var(--sans); font-size: .9rem; line-height: 1.5; color: var(--green); margin-top: 14px; }
.letter-out:empty { display: none; }
.next { padding-top: 6px; }
.next-title { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text3); font-weight: 500; }
.next-list { list-style: none; margin-top: 18px; display: grid; position: relative; }
.next-list li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.next-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-ring); background: var(--accent-dim); }
.next-list h4 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; line-height: 1.2; }
.next-list p { margin-top: 4px; font-size: .93rem; line-height: 1.6; color: var(--text2); font-weight: 300; }
.next-note { padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text3); font-weight: 300; }
@media (max-width: 1000px) { .com-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .letter { line-height: 2.1; }
  .blank--name, .blank--org, .blank--sector, .blank--other, .blank--freq { width: 100%; display: block; }
  .letter-sign .btn { width: 100%; }
}
.la-summary { margin-top: 10px; font-size: .9rem; line-height: 1.6; color: var(--text2); }
.la-summary b { color: var(--text); font-weight: 600; }
.la-use { display: inline-flex; align-items: center; min-height: 32px; margin-left: 6px; padding: 0 10px; border-radius: 99px; font-size: .8rem; font-weight: 500; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-ring); background: var(--accent-dim); }
.la-use:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.la-actions .btn.is-saved { color: var(--green); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 40%, transparent); background: var(--green-dim); }
.la-saved svg { display: inline; vertical-align: -3px; color: var(--green); }
@media (max-width: 640px) { .la-use { min-height: 44px; } }
.letter textarea.is-prefilled { animation: prefill 1.6s var(--ease); }
@keyframes prefill { 0% { background-color: var(--accent-dim); } 100% { background-color: transparent; } }

/* ---- live Aviator: airfield pickers ---------------------------------------- */
.la-route { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; padding: 14px 26px; border-bottom: 1px solid var(--line); background: var(--bg); }
.la-pick { display: grid; gap: 6px; flex: 1 1 200px; }
.la-pick .select { min-height: 44px; }
.la-swap { align-self: end; min-height: 44px; }
@media (max-width: 640px) {
  .la-route { padding: 14px 18px; }
  .la-swap span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---- the letter: contact details, sign-in, errors -------------------------- */
.blank--email { width: 18ch; }
.blank--phone { width: 14ch; }
.letter-who { font-family: var(--sans); font-size: .88rem; line-height: 1.5; color: var(--text2); margin: 6px 0 0; }
.letter-err { color: var(--red); }
.letter [aria-invalid='true'] { border-color: var(--red) !important; box-shadow: 0 2px 0 0 var(--red) !important; }
.letter-out { color: var(--text2); }
.letter.is-sent .letter-out { color: var(--text); }
@media (max-width: 640px) { .blank--email, .blank--phone { width: 100%; display: block; } }

/* pressure lines behind the commission letter (sparingly: here and "any business") */
.commission { position: relative; overflow: hidden; isolation: isolate; }
.commission-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.commission-lines path { fill: none; stroke: color-mix(in srgb, var(--accent) 14%, transparent); stroke-width: 1; }
.commission-lines path.is-major { stroke: color-mix(in srgb, var(--accent) 24%, transparent); }

/* the default model's attribution beside the live globe and Aviator */
.model-credit:empty { display: none; }
.model-credit { margin: 14px 0 0; max-width: 62ch; font-size: 12px; line-height: 1.45; color: var(--text3); }
.model-credit a { color: inherit; }
.hero .model-credit { color: rgba(255, 255, 255, 0.62); }

/* ---- fold-away sections (assets/house/folds.js) ---------------------------- */
.fold-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 1rem; }
.fold-row .section-label { margin-bottom: 0; }
.fold-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 11px; border-radius: 999px; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text2); box-shadow: 0 0 0 1px var(--line2) inset; transition: color .2s, box-shadow .25s var(--ease), background .2s; }
.fold-btn:hover, .fold-btn:focus-visible { color: var(--text); background: var(--accent-dim); box-shadow: 0 0 0 1px var(--accent-ring) inset; }
.fold-btn svg { transition: transform .25s var(--ease); }
[data-folded] .fold-btn svg { transform: rotate(180deg); }
/* Folded: the label, a smaller title and the button; the body is hidden. */
.section[data-folded] { padding-block: clamp(22px, 3vw, 36px); }
[data-folded] .section-head, [data-folded] .ask-intro, [data-folded] .any-head { margin-bottom: 0; }
[data-folded] .section-head--split { grid-template-columns: 1fr; }
[data-folded] .section-title, [data-folded] .any-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }
[data-folded] .any-title em { display: inline; }
[data-folded] .section-desc { display: none; }
[data-folded] .ask-wrap { grid-template-columns: 1fr; }
.any-head { margin-bottom: clamp(48px, 6vw, 80px); }
.any-head + .any-grid { margin-top: 0; }
/* The stat bar: while open the head is only its button, at the right edge of the bar. */
.statbar { position: relative; }
.sb-head .fold-row { margin-bottom: 0; }
.statbar:not([data-folded]) .sb-head { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: auto; margin: 0; padding-left: 0; }
.statbar:not([data-folded]) .sb-head .section-label { display: none; }
.statbar[data-folded] .sb-head { padding-block: .8rem; }
@media (max-width: 760px) {
  .statbar:not([data-folded]) .sb-head { position: static; transform: none; padding-inline: var(--gutter); padding-bottom: .9rem; }
  .statbar:not([data-folded]) .sb-head .fold-row { justify-content: center; }
}
