/* Fieldera marketing pages — "Field Blueprint": a dark technical keynote with blueprint
   drawings and one hi-vis accent, shared with the sales deck (/deck). Content never depends
   on this file or on JavaScript; it only styles server-rendered HTML. */
/* Self-hosted Geist / Geist Mono (SIL OFL 1.1), latin subset incl. Finnish: no third-party font requests. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/geist-latin-v5.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/geist-mono-latin-v6.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #050505;
  --panel: #0b0b0c;
  --plate: #121214;
  --line: #1d1d21;
  --line2: #34343a;
  --fg: #f2f1ee;
  --mut: #a1a1a6;
  --dim: #8d8d94;
  --acc: #ff5b1f;
  --acc-2: #ff7a3d;
  --acc-soft: rgba(255, 91, 31, 0.12);
  --acc-line: rgba(255, 91, 31, 0.55);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --max: 1240px;
  --grid: 64px;
  --hdr: 68px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 28px); background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 300 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }
p, h1, h2, h3, ul, ol { margin-top: 0; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-weight: 480; letter-spacing: -0.035em; line-height: 1.05; color: var(--fg); }
strong, b { font-weight: 500; }
::selection { background: var(--acc); color: #111; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* labels */
.eyebrow, .panel-label, .section-number, .card-index, .step-n, .mono-label, .breadcrumb {
  font: 500 13px/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { color: var(--acc); margin-bottom: 18px; }

/* blueprint crosshairs */
.cross { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--dim); }
.cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.c1 { top: 12px; left: 12px; } .c2 { top: 12px; right: 12px; } .c3 { bottom: 12px; left: 12px; } .c4 { bottom: 12px; right: 12px; }

/* skip link */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--acc); color: #111; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 28px; min-height: var(--hdr); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand .logo { height: 22px; width: auto; display: block; }
.desktop-nav { display: flex; gap: 26px; margin-left: 12px; }
.desktop-nav a { font-size: 15px; font-weight: 400; color: var(--mut); text-decoration: none; transition: color 0.2s; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--fg); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.language { font: 500 13px var(--mono); letter-spacing: 0.08em; color: var(--mut); text-decoration: none; border: 1px solid var(--line2); border-radius: 99px; padding: 6px 10px; }
.language:hover { color: var(--fg); border-color: var(--mut); }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--acc); color: #160700; border: 0; border-radius: 99px;
  padding: 13px 22px; font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(255, 91, 31, 0);
}
.button:hover { background: var(--acc-2); transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255, 91, 31, 0.6); }
.nav-cta { padding: 10px 16px; font-size: 14px; }
.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; font: 500 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line2); border-radius: 99px; padding: 0 14px 0 16px; -webkit-tap-highlight-color: transparent; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { border-color: var(--acc-line); }
/* two bars that turn into a close mark */
.menu-icon { position: relative; width: 16px; height: 10px; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform 0.25s, top 0.25s; }
.menu-icon::before { top: 1px; } .menu-icon::after { top: 7.5px; }
.mobile-nav[open] .menu-icon::before { top: 4.25px; transform: rotate(45deg); }
.mobile-nav[open] .menu-icon::after { top: 4.25px; transform: rotate(-45deg); }
/* the open menu is a full-screen sheet under the header, with large targets */
.mobile-nav[open] nav { position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; display: flex; flex-direction: column; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; animation: sheet-in 0.25s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }
.mobile-nav nav a { padding: 18px 2px; font-size: 22px; font-weight: 400; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav nav a[aria-current="page"] { color: var(--acc); }
.mobile-nav nav a.button { justify-content: center; margin-top: 28px; padding: 16px 22px; font-size: 17px; border-bottom: 0; }

/* hero */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--grid) var(--grid); background-position: -1px -1px;
}
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 110% at 62% 40%, transparent 40%, var(--bg) 96%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 96px 0 104px; min-height: min(86vh, 820px); }
.hero:not(.hero-home) .hero-grid { min-height: 0; padding: 88px 0 88px; }
.breadcrumb { display: inline-block; color: var(--mut); text-decoration: none; margin-bottom: 26px; }
.breadcrumb:hover { color: var(--fg); }
.hero h1 { font-size: clamp(46px, 6.4vw, 92px); letter-spacing: -0.05em; line-height: 0.98; margin-bottom: 28px; max-width: 13ch; }
.hero:not(.hero-home) h1 { font-size: clamp(40px, 5vw, 70px); max-width: 16ch; }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--mut); max-width: 33em; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-bottom: 40px; }
.quiet-link { font: 500 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); text-decoration: none; }
.quiet-link:hover { color: var(--fg); }
.backed { display: flex; align-items: center; gap: 12px; font: 400 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin: 0; }
.backed .mark { width: 22px; height: 22px; flex: none; }
.hero-map .viz { width: 100%; height: auto; display: block; }

/* map */
.route { fill: none; stroke: var(--line2); stroke-width: 1.5; }
.route.hot { stroke: var(--acc-line); stroke-dasharray: 4 6; animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.tech { fill: var(--fg); } .tech.hot { fill: var(--acc); }
.pin { fill: var(--acc); } .pin.quiet { fill: var(--fg); }
.pin-ring { fill: none; stroke: var(--acc); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
.pin-ring.late { animation-delay: 1.1s; }
@keyframes ping { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(2.6); } }
.map-labels text { font: 500 20px var(--mono); letter-spacing: 0.06em; fill: var(--mut); }

/* hero panels (inner pages) */
.hero-panel { position: relative; background: rgba(12, 12, 13, 0.86); border: 1px solid var(--line2); border-radius: 18px; padding: 28px; display: grid; gap: 14px; }
.panel-label { color: var(--acc); margin: 0; }
.panel-top { display: flex; justify-content: space-between; align-items: center; }
.diagram-symbol { color: var(--dim); }
.panel-bottom { color: var(--mut); font-size: 15px; border-top: 1px solid var(--line2); padding-top: 14px; display: flex; gap: 10px; align-items: center; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.cost-row { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.cost-row span { font: 500 13px var(--mono); color: var(--acc); grid-row: span 2; padding-top: 4px; }
.cost-row h2 { font-size: 22px; margin: 0; }
.cost-row p { color: var(--mut); font-size: 15px; margin: 0; }
.mini-process { list-style: none; margin: 0; padding: 0; counter-reset: mp; display: grid; gap: 0; }
.mini-process li { counter-increment: mp; display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); font-size: 19px; }
.mini-process li::before { content: "0" counter(mp); font: 500 13px var(--mono); color: var(--acc); }
.panel-statement { font-size: 22px; line-height: 1.35; margin: 0; }
.case-names { display: flex; flex-wrap: wrap; gap: 8px; }
.case-names span { font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line2); border-radius: 99px; padding: 6px 10px; color: var(--mut); }
.workflow { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.workflow li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--plate); }
.workflow li.selected { border-color: var(--acc-line); background: #1a120e; }
.workflow-number { font: 500 13px var(--mono); color: var(--acc); }
.workflow strong { display: block; font-weight: 500; }
.workflow span { color: var(--mut); font-size: 14px; }
.rule-check { color: var(--acc); }
.workflow-rule { display: flex; gap: 12px; color: var(--mut); font-size: 15px; }
.workflow-rule strong { color: var(--fg); }

/* answer band */
.answer-band { border-bottom: 1px solid var(--line); background: var(--panel); }
.answer-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 56px 0; }
.answer-grid > p:last-child { font-size: clamp(20px, 2vw, 27px); line-height: 1.45; letter-spacing: -0.015em; color: var(--fg); max-width: 40em; }

/* landing sections */
.landing { padding: 40px 0 40px; }
.content-section { position: relative; padding: 110px 0; border-top: 1px solid var(--line); }
.landing > .content-section:first-child { border-top: 0; }
.section-heading { max-width: 860px; margin-bottom: 40px; }
.section-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.section-kicker .eyebrow { margin: 0; }
.section-number { color: var(--fg); border: 1px solid var(--line2); border-radius: 6px; padding: 3px 7px; }
.content-section h2, .faq-section h2 { font-size: clamp(34px, 4.2vw, 60px); margin-bottom: 20px; }
.section-intro { font-size: clamp(18px, 1.5vw, 21px); color: var(--mut); max-width: 44em; }
.section-body { max-width: 1240px; }
.prose { font-size: 19px; color: var(--mut); max-width: 44em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.visual-side .cards { grid-template-columns: 1fr; }
.section-visual { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 40px 32px; margin: 0 0 40px;
  background-color: var(--panel);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; }
.visual-side .section-visual { margin: 0; position: sticky; top: 104px; }
.visual-side .split { align-items: start; }
.section-visual .viz { width: 100%; height: auto; display: block; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; border: 1px solid var(--line2); border-radius: 16px; padding: 26px; background: linear-gradient(180deg, #111114, #0b0b0c); transition: border-color 0.3s, transform 0.3s; }
.card:hover { border-color: var(--acc-line); transform: translateY(-2px); }
.card-index { display: block; color: var(--acc); margin-bottom: 16px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p, .card li { color: var(--mut); font-size: 16px; }
.card ul { padding-left: 18px; margin: 12px 0 0; }
.case-image { border-radius: 10px; margin-bottom: 16px; border: 1px solid var(--line2); filter: saturate(0.85); }
.text-link { display: inline-block; margin-top: 14px; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--acc-line); padding-bottom: 2px; transition: border-color 0.2s, color 0.2s; }
.text-link:hover { color: var(--acc-2); border-color: var(--acc); }
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; max-width: 48em; }
.check-list li { padding-left: 30px; position: relative; color: var(--mut); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 14px; height: 1px; background: var(--acc); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line2); }
.steps li { display: grid; gap: 12px; padding: 24px 22px 0 0; }
.step-n { color: var(--acc); }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--mut); font-size: 16px; }

/* table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line2); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 16px; }
caption { text-align: left; padding: 16px 18px; font: 500 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); }
th, td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { font: 500 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--acc); }
tbody th { font-weight: 500; }
td { color: var(--mut); }

.note { display: flex; gap: 14px; margin-top: 28px; padding: 18px 20px; border: 1px dashed var(--acc-line); border-radius: 12px; background: var(--acc-soft); color: var(--fg); max-width: 52em; }
.note span { color: var(--acc); }
.section-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 24px; }

/* reading layout (inner pages) */
.reading-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 40px 0 40px; }
.page-index nav { position: sticky; top: 100px; display: grid; gap: 4px; padding-top: 88px; }
.page-index p { font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.page-index a { display: flex; gap: 10px; padding: 7px 0; color: var(--mut); text-decoration: none; font-size: 15px; line-height: 1.35; transition: color 0.2s; }
.page-index a span { font: 500 12px var(--mono); color: var(--dim); padding-top: 2px; }
.page-index a:hover { color: var(--fg); }
.page-index a:hover span { color: var(--acc); }
.page-content .content-section { padding: 88px 0; }
.page-content .content-section:first-child { border-top: 0; }
.page-content .cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* faq */
.faq-section { padding: 110px 0 60px; border-top: 1px solid var(--line); max-width: 920px; }
.faq { border-top: 1px solid var(--line2); }
.faq:last-of-type { border-bottom: 1px solid var(--line2); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 20px; font-weight: 400; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 24px var(--mono); color: var(--acc); transition: transform 0.25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--mut); padding: 0 40px 24px 0; margin: 0; }
.sources { padding: 0 0 60px; }
.sources h2 { font-size: 24px; }
.sources ul { padding-left: 18px; color: var(--mut); }

/* related */
.related-section { border-top: 1px solid var(--line); padding: 64px 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.related-link { display: flex; justify-content: space-between; padding: 22px 24px; border: 1px solid var(--line2); border-radius: 14px; text-decoration: none; font-size: 19px; transition: border-color 0.25s, background 0.25s; }
.related-link:hover { border-color: var(--acc-line); background: var(--acc-soft); }

/* contact */
.contact-section { border-top: 1px solid var(--line); padding: 120px 0; background: radial-gradient(70% 70% at 15% 0%, rgba(255, 91, 31, 0.1), transparent 60%), var(--bg); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(36px, 4.4vw, 62px); margin-bottom: 22px; }
.contact-copy > p { color: var(--mut); font-size: 19px; }
.next-step { margin: 32px 0; padding: 22px; border: 1px solid var(--line2); border-radius: 14px; }
.next-step h3 { font-size: 18px; margin-bottom: 8px; }
.next-step p { color: var(--mut); font-size: 16px; }
.email-link { display: block; margin-top: 14px; color: var(--mut); text-decoration: none; }
.email-link:hover { color: var(--fg); }
.contact-form-wrap { position: relative; border: 1px solid var(--line2); border-radius: 18px; padding: 40px 36px; background: var(--panel); }
.form-instruction { font: 400 13px var(--mono); color: var(--dim); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 22px; }
.form-grid label { display: grid; gap: 8px; font-size: 15px; color: var(--mut); }
.form-wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; background: #0f0f11; border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; color: var(--fg); font-size: 16px; transition: border-color 0.2s; }
input:hover, select:hover, textarea:hover { border-color: var(--dim); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.form-status { margin: 14px 0 0; }
.form-status.is-success { color: #9be7b0; }
.form-status.is-error { color: #ff9a7a; }
.privacy-note { font-size: 14px; color: var(--dim); margin-top: 12px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--panel); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-top .logo { height: 22px; width: auto; display: block; margin-bottom: 18px; }
.footer-top p { color: var(--mut); font-size: 15px; max-width: 30em; }
.footer-top nav { display: grid; gap: 8px; align-content: start; }
.footer-top nav a, .footer-markets a, .backed-link { color: var(--mut); text-decoration: none; font-size: 15px; }
.footer-top nav a:hover, .footer-markets a:hover, .backed-link:hover { color: var(--fg); }
.footer-markets p { font: 400 13px var(--mono); letter-spacing: 0.04em; color: var(--dim); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font: 400 13px var(--mono); color: var(--dim); }
.footer-bottom div { display: flex; gap: 20px; }
.footer-bottom a { color: var(--dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--fg); }

/* blog: the index, articles and their cards (server-rendered by blogPages.ts). Article bodies
   come from the admin editor, so .article-body styles plain HTML elements. */
.blog-hero > .wrap { padding: 88px 0 72px; }
.blog-hero .hero-lead { margin-bottom: 0; }
.blog-index { padding: 56px 0 104px; }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 40px; }
.topics-label { font: 500 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-right: 8px; }
.chip { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); border: 1px solid var(--line2); border-radius: 99px; padding: 8px 12px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; background: var(--panel); text-decoration: none; transition: border-color 0.25s, transform 0.25s; }
.post-card:hover { border-color: var(--acc-line); }
.post-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background-color: var(--plate); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.post-cover-drawn { background-image: radial-gradient(90% 120% at 100% 100%, rgba(255, 91, 31, 0.16), transparent 60%), linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: auto, 32px 32px, 32px 32px; }
.post-cover-drawn .mark { position: absolute; left: 22px; bottom: 20px; width: 34px; height: 34px; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-cats { font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc); margin-bottom: 12px; }
.post-card :is(h2, h3) { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 12px; }
.post-excerpt { flex: 1; color: var(--mut); font-size: 16px; line-height: 1.55; margin-bottom: 18px; }
.post-meta { display: flex; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font: 400 12px var(--mono); letter-spacing: 0.04em; color: var(--dim); }
@media (hover: hover) {
  .post-card:hover { transform: translateY(-2px); }
  .post-card:hover .post-cover img { transform: scale(1.03); }
}
.blog-cta { border-top: 1px solid var(--line); padding: 104px 0; background: radial-gradient(70% 70% at 15% 0%, rgba(255, 91, 31, 0.1), transparent 60%), var(--bg); }
.blog-cta h2 { font-size: clamp(34px, 4.2vw, 56px); max-width: 18ch; margin-bottom: 18px; }
.blog-cta p { color: var(--mut); font-size: 19px; max-width: 34em; margin-bottom: 30px; }
/* article: one reading column; the cover a little wider */
.article-head > .wrap { width: min(100% - 32px, 760px); padding: 72px 0 56px; }
.article-head .post-cats { margin-bottom: 18px; }
.hero.article-head h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.04em; max-width: none; margin-bottom: 22px; }
.article-meta { display: flex; gap: 10px; margin: 0; font: 400 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.article-cover { position: relative; width: min(100% - 32px, 1040px); aspect-ratio: 21 / 9; margin: 48px auto 0; overflow: hidden; border: 1px solid var(--line2); border-radius: 18px; background: var(--plate); }
.article-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article { width: min(100% - 32px, 720px); margin: 0 auto; padding: 56px 0 104px; }
.article-note { margin: 0 0 56px; font-size: 15px; line-height: 1.65; color: var(--mut); }
.article-note p { margin: 0; }
.article-note a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--acc-line); text-underline-offset: 3px; }
.article .section { margin-bottom: 56px; }
.article .section > h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 22px; }
.article-body { font-size: 18px; line-height: 1.75; color: #d4d3cf; overflow-wrap: break-word; }
.article-body :is(p, ul, ol, blockquote, pre, figure) { margin: 0 0 22px; }
.article-body h3 { font-size: 23px; line-height: 1.25; letter-spacing: -0.02em; margin: 36px 0 12px; }
.article-body :is(h4, h5, h6) { font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--fg); margin: 28px 0 10px; }
.article-body :is(ul, ol) { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--acc); }
.article-body strong { color: var(--fg); font-weight: 500; }
.article-body a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--acc-line); text-underline-offset: 3px; transition: color 0.2s; }
.article-body a:hover { color: var(--acc-2); }
.article-body blockquote { padding: 4px 0 4px 20px; border-left: 2px solid var(--acc); color: var(--mut); font-style: italic; }
.article-body code { font: 400 0.88em var(--mono); color: var(--fg); background: var(--plate); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.article-body pre { overflow-x: auto; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; }
.article-body pre code { background: none; border: 0; padding: 0; }
.article-body img { display: block; margin: 28px 0; border: 1px solid var(--line); border-radius: 12px; }
.article-body figure img { margin: 0 0 10px; }
.article-body figcaption { font: 400 13px var(--mono); color: var(--dim); }
.article-table { overflow-x: auto; margin: 0 0 22px; }
.article-body table { min-width: 560px; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.article-body :is(th, td) { padding: 10px 14px; border: 1px solid var(--line2); text-align: left; vertical-align: top; }
.article-body th { background: var(--plate); color: var(--fg); font-weight: 500; }
.article-body td { color: var(--mut); }
.article-body hr { border: 0; border-top: 1px solid var(--line2); margin: 40px 0; }
.aqc-wrap { margin: 28px 0; padding: 24px; border: 1px solid var(--line2); border-radius: 16px; background: var(--panel); }
.aqc-inner { display: flex; gap: 16px; align-items: flex-start; }
.article-body .aqc-photo, .aqc-initial { flex: none; width: 48px; height: 48px; margin: 0; border: 0; border-radius: 50%; object-fit: cover; }
.aqc-initial { display: grid; place-items: center; background: var(--acc); color: #160700; font-weight: 600; }
.article-body .aqc-text { font-style: italic; color: var(--fg); margin-bottom: 8px; }
.aqc-byline { font: 400 13px var(--mono); color: var(--dim); }
.aqc-name { color: var(--fg); font-weight: 500; }
.aqc-dot { margin: 0 6px; }
.article-cta { margin-top: 72px; padding: 32px; border: 1px solid var(--line2); border-radius: 18px; background: radial-gradient(80% 120% at 0% 0%, rgba(255, 91, 31, 0.12), transparent 60%), var(--panel); }
.article-cta p { color: var(--mut); font-size: 18px; margin-bottom: 22px; }
.article-cta strong { color: var(--fg); }
.related-posts { border-top: 1px solid var(--line); padding: 88px 0 104px; }
.related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.related-head .eyebrow { margin-bottom: 12px; }
.related-head h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 0; }
.related-head .text-link { margin: 0; }
/* not found pages */
.not-found { display: grid; align-content: center; min-height: 60vh; padding: 96px 0; text-align: center; }
.not-found h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.not-found p { color: var(--mut); margin-bottom: 8px; }
/* privacy policy and terms of use: the article reading column */
.legal { width: min(100% - 32px, 760px); margin: 0 auto; padding: 72px 0 104px; }
.legal h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.04em; margin-bottom: 14px; }
.legal-updated { font: 400 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin-bottom: 48px; }
.legal-body section + section { margin-top: 40px; }
.legal-body h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.025em; margin-bottom: 16px; }
@media (max-width: 720px) {
  .blog-hero > .wrap { padding: 56px 0 48px; }
  .blog-index { padding: 36px 0 72px; }
  /* topics: a short run of text instead of five lines of tags */
  .topics { display: block; margin-bottom: 28px; font: 500 12px/1.9 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); }
  .topics .chip { border: 0; padding: 0; font: inherit; }
  .topics .chip:not(:last-child)::after { content: "·"; margin-left: 8px; color: var(--dim); }
  .post-card :is(h2, h3) { font-size: 20px; }
  .post-body { padding: 18px 18px 20px; }
  .blog-cta { padding: 72px 0; }
  .article-head > .wrap { padding: 44px 0 36px; }
  .article-cover { aspect-ratio: 16 / 10; margin-top: 24px; border-radius: 14px; }
  .article { padding: 36px 0 72px; }
  .article-note { margin-bottom: 40px; }
  .article-body { font-size: 17px; line-height: 1.7; }
  .article-cta { margin-top: 56px; padding: 24px 20px; }
  .related-posts { padding: 64px 0 72px; }
  .related-head { flex-direction: column; align-items: flex-start; }
  .legal { padding: 44px 0 72px; }
  .legal-updated { margin-bottom: 32px; }
}

/* ---------- diagrams ---------- */
/* inner pages: the diagram gets the full width under the hero text, where it can be read */
.hero:not(.hero-home) .hero-grid:has(.hero-framed) { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.hero-grid:has(.hero-framed) .hero-copy h1 { max-width: 20ch; }
.hero-framed:has(.viz-cost) { max-width: 920px; }
.hero-framed { position: relative; border: 1px solid var(--line2); border-radius: 18px; padding: 36px 28px; background: rgba(11, 11, 12, 0.86); }
.hero-framed .viz { width: 100%; height: auto; display: block; }
.build-bar { fill: var(--acc); }
.care-tick { fill: rgba(255, 91, 31, 0.28); stroke: var(--acc-line); animation: care-pulse 4.8s linear infinite; animation-delay: calc(var(--i) * 0.4s); }
@keyframes care-pulse { 0%, 6% { fill: var(--acc); } 14%, 100% { fill: rgba(255, 91, 31, 0.28); } }
.dev-box { fill: none; stroke: var(--mut); stroke-dasharray: 5 4; }
.viz-cost .node-body { font-size: 17px; }
.viz-cost .mono-label { font-size: 15px; }

.mono-label { font: 500 18px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; fill: var(--mut); }
.acc { fill: var(--acc); }
.faint { opacity: 0.8; }
.node-title { font: 400 25px var(--sans); fill: var(--fg); letter-spacing: -0.01em; }
.node-body { font: 300 18px var(--sans); fill: var(--mut); }

.fit-sys { fill: #16161a; stroke: var(--fg); stroke-width: 2; }
.fit-line { fill: none; stroke: var(--acc); stroke-width: 2; stroke-dasharray: 7 7; }
.fit-gaps { transition: opacity 0.5s; }
.fit-gaps .mono-label, .fit-gaps text { font: 500 15px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; fill: var(--acc); }
.tick { stroke: var(--acc); }
.toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.toggle button { font: 500 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); background: #0b0b0c; border: 1px solid var(--line2); border-radius: 99px; padding: 9px 16px; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.toggle button:hover { color: var(--fg); border-color: var(--acc); }
.toggle button[aria-pressed="true"] { color: #111; background: var(--fg); border-color: var(--fg); }
.toggle:not(.tried) button[aria-pressed="false"] { color: var(--fg); border-color: var(--acc); animation: nudge 2s ease-out infinite; }
@keyframes nudge { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 31, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(255, 91, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 31, 0); } }
.try { font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--acc); margin-left: 6px; transition: opacity 0.4s; }
.try::before { content: "← "; }
.toggle.tried .try { opacity: 0; }

.base-line { fill: none; stroke: var(--line2); stroke-width: 2; }
.node-ring { fill: #121214; stroke: var(--line2); stroke-width: 1.5; transition: fill 0.3s, stroke 0.3s; }
.wf-node .node-ring { animation: lit 6s linear infinite; animation-delay: calc(var(--i) * 2s - 0.1s); }
@keyframes lit { 0%, 12% { stroke: var(--acc); fill: #1d1410; } 22%, 100% { stroke: var(--line2); fill: #121214; } }
.ant { fill: var(--acc); }
.ant-halo { fill: var(--acc); opacity: 0.25; }
.pulse-line { fill: none; stroke: var(--acc); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 46 1000; stroke-dashoffset: 46; animation: worm 6s linear infinite; animation-delay: calc(var(--i) * 2s); }
/* one runner: each segment between two steps is crossed in a third of the cycle, never through the circles */
@keyframes worm { 0% { stroke-dashoffset: 46; } 33.3% { stroke-dashoffset: -360; } 100% { stroke-dashoffset: -360; } }
.chip rect { fill: #121214; stroke: var(--acc-line); }
.chip.hot rect { fill: var(--acc-soft); }
.chip text { fill: var(--fg); font-size: 15px; }
.chip-line { stroke: var(--acc-line); stroke-width: 1.5; fill: none; }
.loop-line { fill: none; stroke: var(--acc-line); stroke-width: 1.5; stroke-dasharray: 6 6; }
.loop-head { fill: none; stroke: var(--acc-line); stroke-width: 1.5; }
.flow-node.on .node-ring { stroke: var(--acc); fill: #1d1410; }
.flow-node.on .mono-label { fill: var(--acc); }

.layer { cursor: pointer; transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.2, 1); }
.layer .top { fill: #141416; stroke: var(--line2); stroke-width: 1.2; transition: fill 0.4s, stroke 0.4s; }
.layer .side-l { fill: #0d0d0f; stroke: var(--line2); }
.layer .side-r { fill: #09090a; stroke: var(--line2); }
.layer .ico { stroke: var(--dim); fill: none; stroke-width: 1.4; transition: stroke 0.4s; }
.layer.you .top { fill: var(--acc-soft); stroke: var(--acc-line); }
.layer.on { transform: translateY(-14px); }
.layer.on .top { fill: #1d1410; stroke: var(--acc); }
.layer.on .ico { stroke: var(--acc); }
.callout { cursor: pointer; }
.callout line { stroke: var(--line2); transition: stroke 0.4s; }
.callout circle { fill: var(--mut); }
.callout .num { font-size: 15px; transition: fill 0.4s; }
.callout.on line { stroke: var(--acc); }
.callout.on .num { fill: var(--acc); }

.axis { fill: none; stroke: var(--line2); stroke-width: 1.5; }
.stair { fill: none; stroke: var(--mut); stroke-width: 2; stroke-dasharray: 6 5; }
.flat { fill: none; stroke: var(--acc); stroke-width: 3.5; }
.viz-fee .mono-label { font-size: 15px; }

/* reveal on scroll (only when JS runs) */
.js .reveal { animation: reveal-fallback 0s 3s forwards; opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; animation: none; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .visual-side .section-visual { position: relative; top: 0; }
  .desktop-nav { display: none; }
  .nav-actions { display: none; }
  .mobile-nav { display: block; }
  .hero-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { min-height: 0; padding: 72px 0; }
  .reading-layout { grid-template-columns: minmax(0, 1fr); }
  .page-index { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .cards, .cards-2, .cards-4 { grid-template-columns: 1fr; }
  .answer-grid { grid-template-columns: 1fr; gap: 10px; padding: 40px 0; }
  .content-section { padding: 72px 0; }
  .section-visual { padding: 22px 14px; border-radius: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .contact-section { padding: 80px 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
}

/* ---------- home: scroll story ----------
   Without JavaScript (no .scenes class) every scene is ordinary stacked content. */
.scenes .hero-home .hero-map { transform-origin: 60% 40%; transform: scale(calc(1 + var(--p, 0) * 0.18)) translateY(calc(var(--p, 0) * 40px)); opacity: calc(1 - var(--p, 0) * 0.85); }
.scenes .hero-home .hero-copy { transform: translateY(calc(var(--p, 0) * -48px)); }

/* the 3D story */
.story { position: relative; border-bottom: 1px solid var(--line); overflow: clip; }
.story-stage { display: none; }
.scenes .story-stage { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--grid) var(--grid); background-position: -1px -1px; }
.scenes .story-stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 80% at 68% 50%, transparent 30%, var(--bg) 85%); }
.story-canvas { position: relative; z-index: 1; width: 100%; height: 100%; display: block; }
.story-marks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mark-n { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center; border-radius: 50%; background: var(--acc); color: #160700; font: 600 13px/1 var(--mono); visibility: hidden; box-shadow: 0 0 0 4px rgba(255, 91, 31, 0.18); }
.story-legend { position: absolute; z-index: 2; right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 4vh; width: 460px; pointer-events: none; }
.mark-std { background: #8b8b93; color: #0b0b0c; box-shadow: 0 0 0 4px rgba(139, 139, 147, 0.2); }
.lg-two { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; }
.lg-title-std { color: var(--mut); }
.lg ul b, .lg-gaps b { flex: none; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 11px; font: 600 12px/1 var(--mono); }
.lg ul b.std { background: #8b8b93; color: #0b0b0c; }
.lg-gaps b { background: var(--acc); color: #160700; }
.lg { position: absolute; right: 0; bottom: 0; width: auto; min-width: 300px; padding: 18px 20px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(11, 11, 12, 0.96); visibility: hidden; opacity: 0; transition: none; }
.lg-title { font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc); margin: 0 0 12px; }
.lg ol, .lg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lg li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--fg); line-height: 1.3; }
.lg ol b { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--acc); color: #160700; font: 600 12px/1 var(--mono); }
.sw { flex: none; width: 26px; height: 16px; border-radius: 4px; }
.sw-tool { background: #55555e; border: 1px solid #a1a1a6; }
.sw-gaps { background: var(--acc); }
.lg-gaps { color: var(--acc-2); }
.lg-gaps .sw-gaps { opacity: var(--pulse, 1); }
.lg[data-legend="tool"] .lg-gaps { opacity: calc(0.55 + var(--pulse, 1) * 0.45); }
.lg[data-legend="tool"] { --pulse: 1; }
.sw-build { background: var(--acc); }
.sw-care { background: repeating-linear-gradient(90deg, var(--acc) 0 4px, transparent 4px 7px); border: 1px solid var(--acc-line); }
.story-rail { position: absolute; z-index: 2; left: max(16px, calc((100vw - var(--max)) / 2 - 28px)); top: 22vh; height: 56vh; width: 1px; background: var(--line2); }
.story-rail i { position: absolute; left: -1px; top: 0; width: 3px; height: calc(var(--t, 0) * 100%); background: var(--acc); border-radius: 2px; }
.story-steps { position: relative; z-index: 1; width: min(100% - 32px, var(--max)); margin-inline: auto; padding: 40px 0; }
.story-step { max-width: 540px; padding: 72px 0; }
.scenes .story-step { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0; transition: opacity 0.6s ease; }
.scenes .story-step.is-dim { opacity: 0.3; }
.story-step h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 18px; }
.story-prose p { color: var(--mut); font-size: 18px; }
.story-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.story-list li { border-left: 2px solid var(--acc-line); padding: 4px 0 4px 18px; }
.story-list h3 { font-size: 21px; margin-bottom: 6px; }
.story-list p { color: var(--mut); font-size: 16px; margin: 0; }
.story-step .note { margin-top: 22px; }
.list-label { font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 26px 0 10px; }
.layer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--mut); font-size: 16px; }
.layer-list span { font: 500 12px var(--mono); color: var(--acc); margin-right: 10px; }
.layer-list strong { color: var(--fg); font-weight: 450; }

/* the process as a horizontal strip, moved by vertical scrolling */
.scene-steps { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scene-steps .pin { padding: 100px 0; }
.scene-steps.live { height: 320vh; height: 320svh; }
.scene-steps.live .pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 64px 0; }
.steps-head h2 { font-size: clamp(34px, 4.2vw, 60px); margin-bottom: 8px; }
.hint { font: 500 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.track-window { overflow-x: auto; padding: 40px 0 24px max(16px, calc((100vw - var(--max)) / 2)); }
.live .track-window { overflow: visible; }
.track { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0 16px 0 0; will-change: transform; }
.h-card { position: relative; flex: 0 0 min(420px, 82vw); min-height: 340px; padding: 34px 32px; border: 1px solid var(--line2); border-radius: 18px; background: linear-gradient(180deg, #111114, #0b0b0c); display: flex; flex-direction: column; }
.h-card::after { content: ""; position: absolute; left: 32px; right: 32px; bottom: 30px; height: 1px; background: linear-gradient(90deg, var(--acc), transparent); opacity: 0.5; }
.h-n { font: 500 56px/1 var(--mono); color: var(--acc); letter-spacing: -0.04em; margin-bottom: 72px; }
.h-card h3 { font-size: 26px; margin-bottom: 12px; min-height: 2.15em; display: flex; align-items: flex-end; }
.h-card p { color: var(--mut); font-size: 16px; margin-bottom: 30px; }
.h-loop { background: var(--acc-soft); border: 1px dashed var(--acc-line); }
.h-loop h3 { color: var(--fg); }

/* ================= phones and small tablets =================
   The same story, staged for a narrow screen: nothing is removed, the scenes are recomposed.
   - wide diagrams switch to phone versions (.vm), drawn vertically with readable labels
   - the hero's dispatch map becomes the animated background of the first screen
   - the 3D story pins its stage under the header; the text scrolls in a reading window below
   - the horizontal process strip becomes a vertical timeline that fills as you scroll
   - an enquiry button stays at hand between the hero and the contact form
   Scroll stays native everywhere; no swipe or step controls take it over. */

/* touch screens: no hover lift that sticks after a tap */
@media (hover: none) {
  .card:hover, .button:hover { transform: none; }
  .card:hover { border-color: var(--line2); }
}

/* phone diagrams (hidden on larger screens) */
.vm { display: none; }
.vm-label { font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); margin: 0 0 18px; }
.vm-label.acc { color: var(--acc); }
.vm-faint { color: var(--dim); }
/* vertical rail of steps: a runner crosses each segment in its own slot and lights the next step */
.vm-rail { position: relative; }
.vm-n4 { --cycle: 6s; } .vm-n5 { --cycle: 8s; }
.vm-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.vm-step:last-child { padding-bottom: 0; }
.vm-node { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #121214; border: 1.5px solid var(--line2); font: 500 12px var(--mono); color: var(--mut); animation: vm-lit var(--cycle) linear infinite; animation-delay: calc(var(--i) * 2s - 0.1s); }
@keyframes vm-lit { 0%, 12% { border-color: var(--acc); background: #1d1410; color: var(--acc); } 22%, 100% { border-color: var(--line2); background: #121214; color: var(--mut); } }
.vm-step:not(:last-child)::before, .vm-step:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; }
.vm-step:not(:last-child)::before { background: var(--line2); }
.vm-step:not(:last-child)::after { background: linear-gradient(rgba(255, 91, 31, 0), var(--acc)) no-repeat; background-size: 2px 36px; background-position: 0 -36px; animation: vm-run3 var(--cycle) linear infinite; animation-delay: calc(var(--i) * 2s); }
.vm-n5 .vm-step::after { animation-name: vm-run4; }
@keyframes vm-run3 { 0% { background-position: 0 -36px; } 33.3%, 100% { background-position: 0 calc(100% + 36px); } }
@keyframes vm-run4 { 0% { background-position: 0 -36px; } 25%, 100% { background-position: 0 calc(100% + 36px); } }
.vm-text { padding-top: 8px; min-width: 0; }
.vm-text strong { display: block; font-size: 18px; font-weight: 450; line-height: 1.3; letter-spacing: -0.01em; }
.vm-text > span:not(.vm-chips) { display: block; color: var(--mut); font-size: 15px; line-height: 1.45; margin-top: 3px; }
.vm-flow .vm-step { padding-bottom: 26px; }
.vm-flow .vm-step:last-child { padding-bottom: 0; }
.vm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vm-chips i { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); border: 1px solid var(--acc-line); border-radius: 99px; padding: 7px 10px; }
.vm-chips i.hot { background: var(--acc-soft); }
/* the loop back from "run and evolve" to "build" */
.vm-loop { position: relative; padding-right: 36px; }
.vm-loop::after { content: ""; position: absolute; right: 2px; top: 20px; bottom: 20px; width: 26px; border: 1.5px dashed var(--acc-line); border-left: 0; border-radius: 0 14px 14px 0; }
.vm-loop::before { content: ""; position: absolute; right: 28px; top: 15.5px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 8px solid var(--acc); }
.vm-loop-label { display: flex; gap: 10px; margin: 22px 0 0; font: 500 12px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--acc); }
/* what you pay for over time */
.vm-row { padding-bottom: 22px; }
.vm-row .vm-label { margin-bottom: 4px; }
.vm-note { color: var(--mut); font-size: 15px; line-height: 1.45; margin: 0 0 12px; }
.vm-lane { position: relative; height: 18px; }
.vm-lane::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line2); }
.vm-build { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--acc); border-radius: 5px; }
.vm-ticks { display: flex; gap: 5px; padding-left: 34%; }
.vm-ticks i { position: relative; flex: 1; border-radius: 4px; background: rgba(255, 91, 31, 0.28); border: 1px solid var(--acc-line); animation: vm-care 3.2s linear infinite; animation-delay: calc(var(--i) * 0.4s); }
@keyframes vm-care { 0%, 6% { background: var(--acc); } 14%, 100% { background: rgba(255, 91, 31, 0.28); } }
.vm-dev { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w); border: 1.5px dashed var(--mut); border-radius: 5px; background: var(--panel); }
.vm-axis { position: relative; margin: 6px 0 0; padding-top: 12px; border-top: 1.5px solid var(--line2); font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.vm-axis::after { content: ""; position: absolute; right: 0; top: -5.5px; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; border-left: 8px solid var(--line2); }
/* flat fee against per-seat pricing */
.vm-fee svg { display: block; width: 100%; height: auto; margin-bottom: 16px; }
.vm-legend { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.vm-legend li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.vm-sw-stair, .vm-sw-flat { flex: none; width: 28px; }
.vm-sw-stair { border-top: 2px dashed var(--mut); }
.vm-sw-flat { border-top: 3.5px solid var(--acc); }
.vm-fee .vm-faint { margin: 0; }
/* foundation stack with its layers listed below */
.vm-stack svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto 20px; overflow: visible; }
.vm-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vm-layers .callout { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(18, 18, 20, 0.6); transition: border-color 0.3s, background 0.3s; -webkit-tap-highlight-color: transparent; }
.vm-layers .num { font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); transition: color 0.3s; }
.vm-layers strong { font-size: 17px; font-weight: 450; }
.vm-layers .callout > span:last-child { color: var(--mut); font-size: 14px; line-height: 1.4; }
.vm-layers .callout.on { border-color: var(--acc-line); background: #1a120e; }
.vm-layers .callout.on .num { color: var(--acc); }

/* still frame for the 3D stage until (or unless) the scene runs */
.story-poster { display: none; position: absolute; z-index: 1; left: 50%; top: 40%; width: min(64%, 420px); transform: translate(-50%, -50%); fill: none; stroke: var(--acc); stroke-width: 3; stroke-linejoin: round; opacity: 0.8; transition: opacity 0.6s; }
.has-3d .story-poster { opacity: 0; }
/* no 3D (data saver, no WebGL, script failed): the story is ordinary stacked content */
.scenes .no-3d .story-stage { display: none; }
.scenes .no-3d .story-steps { padding-top: 40px; }
.scenes .no-3d .story-step { min-height: 0; padding: 56px 0; }
.scenes .no-3d .story-step.is-dim { opacity: 1; }
.story-progress { display: none; }

.mobile-cta { display: none; }
/* drawings scrolled out of view pause their loops (set by marketing.js) */
.off *, .off *::before, .off *::after { animation-play-state: paused !important; }

/* narrower desktop layouts (small laptops, phones held sideways): text and legend share the width */
@media (max-width: 1080px) {
  .scenes .story-step { max-width: min(540px, 52vw); }
  .story-legend { width: min(460px, 42vw); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .story-legend { width: min(340px, 40vw); bottom: 10px; }
  .lg { padding: 8px 10px; }
  .lg-title { display: none; }
  .lg li { font-size: 12px; gap: 8px; }
  .lg ol, .lg ul { gap: 5px; }
  .lg-two { gap: 12px; }
  .scenes .story-step { padding: 72px 0 48px; }
}
/* the 3D story on portrait screens: stage pinned under the header, text in a reading window below */
@media (max-width: 900px) and (orientation: portrait) {
  .scenes .story { --stage-h: 50vh; }
  .scenes .story-stage { top: var(--hdr); height: var(--stage-h); margin-bottom: calc(-1 * var(--stage-h)); z-index: 2; background-color: var(--bg); border-bottom: 1px solid var(--line2); }
  .scenes .story-stage::before { content: ""; position: absolute; left: 0; right: 0; top: calc(100% + 1px); height: 36px; background: linear-gradient(var(--bg), rgba(5, 5, 5, 0)); }
  .scenes .story-stage::after { background: radial-gradient(120% 95% at 50% 42%, transparent 50%, var(--bg) 100%); }
  .scenes .story-steps { padding: var(--stage-h) 0 6vh; }
  .scenes .story-step { min-height: calc(100vh - var(--hdr) - var(--stage-h)); justify-content: center; padding: 44px 0; max-width: 600px; }
  .scenes .story-step.is-dim { opacity: 1; }
  .scenes .story-step, .scenes .story-step a { scroll-margin-top: calc(var(--hdr) + var(--stage-h) + 12px); }
  .scenes .story-stage { pointer-events: auto; }
  .story-rail { display: none; }
  .story-poster { display: block; }
  .story-progress { display: flex; position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 9px; gap: 4px; }
  .story-progress i { flex: 1; height: 2px; border-radius: 1px; background: var(--line2); overflow: hidden; }
  .story-progress i::after { content: ""; display: block; height: 100%; background: var(--acc); transform-origin: left; transform: scaleX(clamp(0, calc(var(--t, 0) * var(--n, 6) - var(--i)), 1)); }
  .story-legend { left: 16px; right: 16px; bottom: 22px; width: auto; }
  .lg { left: 0; min-width: 0; padding: 10px 12px; }
  .lg-title { display: none; }
  .lg li { font-size: 13px; }
  .lg ol { grid-template-columns: 1fr 1fr; }
  .lg-two { grid-template-columns: 1fr; gap: 8px; }
  .lg-two ul { grid-template-columns: 1fr 1fr; }
  .mark-n { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11px; }
}
@supports (height: 1svh) {
  @media (max-width: 900px) and (orientation: portrait) {
    .scenes .story { --stage-h: 50svh; }
    .scenes .story-step { min-height: calc(100svh - var(--hdr) - var(--stage-h)); }
  }
  @media (max-width: 900px) and (min-width: 721px) and (orientation: portrait) {
    .scenes .story { --stage-h: 54svh; }
  }
}
@media (max-width: 900px) and (min-width: 721px) and (orientation: portrait) {
  .scenes .story { --stage-h: 54vh; }
  .story-legend { left: auto; width: 420px; }
}
/* phones: a shorter stage, the legend as a narrow column on the left and the object to its right,
   sized by the stage width (story.js reads --cam-*), so it stays as large as before */
@media (max-width: 720px) and (orientation: portrait) {
  .scenes .story { --stage-h: min(67vw, 42vh); }
  .scenes .story-stage { --cam-x: -0.12; --cam-y: 0.075; --cam-fit: 0.95; }
  .scenes .story-stage::after { background: radial-gradient(110% 100% at 64% 46%, transparent 50%, var(--bg) 100%); }
  .story-legend { left: 16px; right: auto; bottom: 20px; width: 38%; }
  .lg { padding: 0; border: 0; background: none; }
  .lg ol, .lg ul, .lg-two ul { grid-template-columns: 1fr; gap: 7px; }
  .lg-two { gap: 7px; }
  .lg li { font-size: 12.5px; gap: 8px; line-height: 1.25; text-wrap: balance; }
  .lg ul b, .lg-gaps b, .lg ol b { min-width: 20px; width: auto; height: 20px; padding: 0 5px; font-size: 11px; }
  .sw { width: 20px; height: 13px; }
  .story-poster { left: 62%; top: 49%; width: 56%; }
}
@supports (height: 1svh) {
  @media (max-width: 720px) and (orientation: portrait) {
    .scenes .story { --stage-h: min(67vw, 42svh); }
  }
}

@media (max-width: 720px) {
  :root { --hdr: 60px; }
  .brand .logo { height: 20px; }

  /* diagrams: the phone version replaces the wide drawing */
  :is(.viz-workflow, .viz-flow, .viz-cost, .viz-fee, .viz-stack).viz { display: none; }
  .vm { display: block; }
  .section-visual, .hero-framed { padding: 26px 18px; border-radius: 16px; background-size: 32px 32px; }
  .hero:not(.hero-home) .hero-grid { padding: 48px 0 56px; gap: 32px; }
  /* "almost fits" keeps its drawing, with labels large enough to read */
  .viz-fit { margin: 0; }
  .viz-fit .viz { overflow: visible; }
  .viz-fit text { font-size: 26px; letter-spacing: 0.02em; }
  .toggle button { min-height: 44px; padding: 0 16px; }

  /* home hero: the live dispatch map becomes the first screen's background */
  .hero-home .hero-grid { position: static; min-height: calc(100vh - var(--hdr)); min-height: calc(100svh - var(--hdr)); padding: 40px 0 32px; align-content: start; }
  .hero-home .hero-copy { position: relative; z-index: 2; }
  .hero-home .hero-map { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
  .hero-home .hero-map .viz { width: 100%; height: 100%; }
  .hero-home::after { z-index: 1; background: linear-gradient(180deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.72) 42%, rgba(5, 5, 5, 0.15) 74%, rgba(5, 5, 5, 0.5) 90%, var(--bg) 100%); }
  .scenes .hero-home .hero-map { transform-origin: 50% 80%; transform: scale(calc(1 + var(--p, 0) * 0.12)); opacity: calc(1 - var(--p, 0) * 0.9); }
  .scenes .hero-home .hero-copy { transform: translateY(calc(var(--p, 0) * -24px)); }
  .hero-home .map-labels { display: none; }

  /* the process as a vertical timeline that fills as you scroll */
  .scene-steps.live { height: auto; }
  .scene-steps .pin, .scene-steps.live .pin { position: relative; height: auto; padding: 72px 0 64px; overflow: visible; }
  .scene-steps .hint { display: none; }
  .track-window, .live .track-window { overflow: visible; padding: 34px 16px 4px; }
  .track { position: relative; flex-direction: column; gap: 0; padding: 0; transform: none !important; }
  .track::before, .track::after { content: ""; position: absolute; left: 19px; top: 20px; bottom: var(--rail-end, 40px); width: 2px; border-radius: 1px; }
  .track::before { background: var(--line2); }
  .track::after { background: var(--acc); transform-origin: top; transform: scaleY(var(--fill, 0)); }
  .h-card { flex: none; min-height: 0; padding: 0 0 34px 60px; border: 0; border-radius: 0; background: none; }
  .h-card::after { display: none; }
  .h-n { position: absolute; left: 0; top: 0; z-index: 1; width: 40px; height: 40px; margin: 0; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--bg); font-size: 13px; letter-spacing: 0; color: var(--mut); transition: color 0.4s, border-color 0.4s, background 0.4s, box-shadow 0.4s; }
  .h-card.on .h-n { color: var(--acc); border-color: var(--acc); background: #1d1410; box-shadow: 0 0 0 5px var(--acc-soft); }
  .h-card h3 { min-height: 0; display: block; font-size: 22px; padding-top: 7px; margin-bottom: 8px; }
  .h-card p { margin-bottom: 0; }
  .h-loop { padding-bottom: 0; }
  .h-loop .h-n { border-style: dashed; border-color: var(--acc-line); color: var(--acc); font-size: 18px; }
  .h-loop h3 { color: var(--acc); font-size: 19px; }

  /* tables: each row becomes a labelled card instead of a sideways scroll */
  .table-scroll { overflow: visible; border: 0; border-radius: 0; }
  .table-scroll table { min-width: 0; }
  .table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll th, .table-scroll td { display: block; }
  .table-scroll caption { display: block; padding: 0 0 14px; }
  .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-scroll tbody tr { padding: 16px 18px; margin-bottom: 10px; border: 1px solid var(--line2); border-radius: 14px; background: var(--panel); }
  .table-scroll tbody th { padding: 0 0 4px; border: 0; font-size: 18px; }
  .table-scroll td { padding: 10px 0 0; border: 0; }
  .table-scroll td::before { content: attr(data-label); content: attr(data-label) / ""; display: block; margin-bottom: 2px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc); }

  /* the enquiry stays one tap away between the hero and the contact form. Safari 26 on iPhone
     fills the area under its bottom bar with the colour of a fixed element at the bottom edge
     that spans at least 90% of the viewport width (WebKit fixedContainerEdges). At 85% the
     button is not taken for a bottom bar, so Safari keeps its own glass over the page. */
  .js .mobile-cta { display: flex; justify-content: center; position: fixed; z-index: 25; left: 50%; width: min(85vw, 420px); bottom: calc(14px + env(safe-area-inset-bottom)); padding: 15px 22px; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.9); transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s 0.35s; }
  .js .mobile-cta.show { transform: translate(-50%, 0); visibility: visible; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
