/* Layout concept: a working engineering sheet. Wide left-aligned headings,
   a daylight curve as the recurring motif, data set in mono like a site survey. */
:root {
  --bg: #f3f6f9;
  --surface: #ffffff;
  --ink: #042135;
  --muted: #4a5d6c;
  --line: #d4dde5;
  --sun: #f0a500;
  --sun-ink: #1c1500;
  --leaf: #0b8460;
  --blue: #0068d6;
  --on-blue: #ffffff;
  --band: #042135;
  --band-ink: #eaf2f8;
  --band-muted: #a7bccb;
  --focus: #0068d6;

  --font-display: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 3.9rem);

  --radius: 10px;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061827; --surface: #0c2234; --ink: #e8f0f6; --muted: #9fb4c4;
    --line: #1f3a50; --sun: #f4b62c; --sun-ink: #1c1500; --leaf: #3fd3a2; --blue: #3d94ff; --on-blue: #03121f;
    --band: #03111d; --band-ink: #e8f0f6; --band-muted: #9fb4c4; --focus: #3d94ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #061827; --surface: #0c2234; --ink: #e8f0f6; --muted: #9fb4c4;
    --line: #1f3a50; --sun: #f4b62c; --sun-ink: #1c1500; --leaf: #3fd3a2; --blue: #3d94ff; --on-blue: #03121f;
    --band: #03111d; --band-ink: #e8f0f6; --band-muted: #9fb4c4; --focus: #3d94ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; max-width: 65ch; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.label {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--leaf); font-weight: 500;
}

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand { line-height: 0; }
.brand-logo { height: 54px; width: auto; display: block; }
.site-footer .brand-logo { height: 52px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: color-mix(in srgb, var(--leaf) 10%, transparent); }
.nav a[aria-current="page"]:not(.btn) { color: var(--leaf); }
.nav a.btn-sun { color: var(--on-blue); background: var(--blue); }
.nav a.btn-sun:hover { background: color-mix(in srgb, var(--blue) 85%, var(--ink)); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; justify-content: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn-sun { background: var(--blue); color: var(--on-blue); }
.btn-sun:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--blue) 85%, var(--ink)); }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--leaf); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 4px 0 0; list-style: none; font-size: 0.95rem; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* Load curve figure */
.curve-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 16px; min-width: 0; }
.curve-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.curve-head strong { font-family: var(--font-display); font-size: 1.05rem; }
.curve-head span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.curve svg { display: block; width: 100%; height: auto; }
.curve .grid line { stroke: var(--line); stroke-width: 1; }
.curve .axis text { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.curve .solar { fill: color-mix(in srgb, var(--sun) 35%, transparent); stroke: var(--sun); stroke-width: 2.5; }
.curve .demand { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.curve .solar-path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.6s ease-out .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.legend .l-solar { background: var(--sun); }
.legend .l-demand { background: var(--ink); }
.curve-note { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }

/* Solutions grid */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--leaf) 12%, transparent); color: var(--leaf); }
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* Funding comparison */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th, .compare thead td { font-family: var(--font-display); font-size: 1.1rem; background: color-mix(in srgb, var(--leaf) 6%, var(--surface)); }
.compare tbody th { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; width: 26%; }

/* Process steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px 22px 0 0; border-top: 2px solid var(--line); position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.8rem; color: var(--leaf); font-weight: 500; }
.steps li::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.steps p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 28px 26px; }
  .steps li::after { top: 4px; left: -7px; }
}

/* Two-column split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Quote checklist (survey sheet) */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.sheet h3 { margin-bottom: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; width: 16px; height: 16px; margin-top: 4px; border: 2px solid var(--leaf); border-radius: 4px; }
.checklist strong { display: block; font-weight: 600; }
.checklist span { color: var(--muted); font-size: 0.93rem; }
.mono { font-family: var(--font-mono); font-size: 0.88em; }

/* Sectors */
.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li { border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; }

/* CTA band */
.band { background: var(--band); color: var(--band-ink); }
.band .wrap { padding-block: clamp(56px, 7vw, 88px); }
.band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.band h2 { max-width: 20ch; }
.band p { color: var(--band-muted); margin-top: 12px; }
.band .btn-line { color: var(--band-ink); }
.band .btn-sun { background: #2fc596; color: #03121f; }
.band .btn-sun:hover { background: #46d3a7; }

/* Page heading */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: flex; flex-direction: column; gap: 16px; }

/* Solution detail blocks */
.detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); }
.detail + .detail { margin-top: 0; }
.detail .stack p { color: var(--muted); }
@media (max-width: 880px) { .detail { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.values div { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--blue); }
.values p { color: var(--muted); }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 1.4rem; color: var(--leaf); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 24px; color: var(--muted); display: flex; flex-direction: column; gap: 12px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: var(--step-2); margin-bottom: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 22%, transparent); }
.choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; border: 1.5px solid var(--line); background: var(--bg); padding: 9px 15px; border-radius: 999px; font-size: 0.93rem; font-weight: 500; cursor: pointer; }
.choice input:checked + span { border-color: var(--leaf); background: color-mix(in srgb, var(--leaf) 14%, var(--bg)); color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 0.92rem; color: var(--muted); align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--leaf); }
.hp { position: absolute; left: -5000px; }
.form-status { border-radius: 8px; padding: 14px 16px; font-weight: 500; }
.form-status.ok { background: color-mix(in srgb, var(--leaf) 14%, var(--surface)); border: 1px solid var(--leaf); }
.form-status.err { background: color-mix(in srgb, #c2410c 12%, var(--surface)); border: 1px solid #c2410c; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.aside { display: flex; flex-direction: column; gap: 24px; }
.aside-block { display: flex; flex-direction: column; gap: 6px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.aside-block:last-child { border-bottom: 0; }
.aside-block p { color: var(--muted); }
.aside-block a { font-weight: 600; word-break: break-word; }

/* Prose (privacy) */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: var(--step-2); margin-top: 24px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose p, .prose li { color: var(--muted); }

/* Footer */
.site-footer { background: var(--band); color: var(--band-muted); font-size: 0.93rem; }
.site-footer .wrap { padding-block: 56px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--band-ink); font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand { color: var(--band-ink); }
.site-footer .brand-sub { color: var(--band-muted); }
.footer-about p { margin-top: 14px; max-width: 34ch; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--band-ink) 15%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.84rem; }

/* 404 */
.notfound { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.nav a.btn { border-radius: 999px; padding: 11px 20px; }

/* ---------- v2 additions ---------- */
.text-link { font-weight: 600; text-decoration: none; color: var(--blue); }
.text-link:hover { text-decoration: underline; }
.table-foot { margin-top: 18px; }
.compare { min-width: 760px; }
.compare tbody th { width: 19%; }
.footer-sub { margin-top: 26px; }

/* Mission */
.mission { background: color-mix(in srgb, var(--blue) 7%, var(--bg)); border-block: 1px solid var(--line); }
.mission .wrap { padding-block: clamp(44px, 6vw, 72px); }
.mission-inner { display: flex; flex-direction: column; gap: 18px; }
.mission blockquote { margin: 0; }
.mission blockquote p {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.15rem);
  line-height: 1.25; letter-spacing: -0.01em; max-width: 30ch; text-wrap: balance;
}
.mission blockquote p::before { content: "\201C"; color: var(--leaf); margin-right: 2px; }
.mission blockquote p::after { content: "\201D"; color: var(--leaf); }
.mission-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.vision { padding-left: 24px; border-left: 3px solid var(--leaf); }
.vision p { font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 880px) { .mission-grid { grid-template-columns: 1fr; } }

/* Service cards with images */
.media-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1080px) { .media-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .media-cards { grid-template-columns: 1fr; } }
.media-card { padding: 0; overflow: hidden; gap: 0; }
.card-pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.media-card:hover .card-pic img { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--blue); }
.card-body p { font-size: 0.97rem; }

/* Solutions feature rows */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.jump a { border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 0.93rem; }
.jump a:hover { border-color: var(--blue); color: var(--blue); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature-copy p { color: var(--muted); }
.feature-copy .facts { margin-top: 8px; }
.feature-pic { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.feature-pic img, .pic { display: block; width: 100%; height: auto; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-copy { order: 0; } .feature-pic { order: -1; } }
[id] { scroll-margin-top: 90px; }

/* About */
.about-hero { padding-block: clamp(48px, 7vw, 88px) 0; }
.about-hero-copy { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(32px, 4vw, 48px); }
.about-hero-copy h1 { max-width: 22ch; }
.hero-figure { margin: 0 0 clamp(48px, 6vw, 80px); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.prose-col p { color: var(--muted); }
.approach { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.approach div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.approach p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 1000px) { .approach { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .approach { grid-template-columns: 1fr; } }
.why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.why li { padding: 18px 0 18px 30px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); }
.why li:first-child { padding-top: 0; }
.why li:first-child::before { top: 6px; }
.why li::before { content: ""; position: absolute; left: 0; top: 24px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--leaf); }
.why strong { color: var(--ink); }
.deliver { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.deliver a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.deliver .thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; height: auto; }
.deliver a:hover span { color: var(--blue); }
@media (max-width: 900px) { .deliver { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Partners ---------- */
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; justify-content: center; }
}
.partners-head-grid { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .partners-head-grid { grid-template-columns: 1fr; } }
.logo-chain { display: flex; flex-direction: column; align-items: center; gap: 0; }
.chain-tile { background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; display: grid; place-items: center; min-height: 96px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.chain-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 12%, transparent); }
.chain-main { width: min(320px, 100%); }
.chain-main .partner-logo { max-height: 70px; }
.chain-links { position: relative; width: 52%; height: 44px; }
.chain-links::before { content: ""; position: absolute; left: 50%; top: 0; height: 22px; border-left: 2px dashed var(--leaf); }
.chain-links span { position: absolute; bottom: 0; height: 22px; width: 50%; border-top: 2px dashed var(--leaf); }
.chain-links span:first-child { left: 0; border-left: 2px dashed var(--leaf); border-top-left-radius: 10px; }
.chain-links span:last-child { right: 0; border-right: 2px dashed var(--leaf); border-top-right-radius: 10px; }
.chain-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.chain-dark { background: #0f1e3a; border-color: #0f1e3a; }
.partner-logo { display: block; max-width: 100%; max-height: 64px; width: auto; height: auto; }
.wordmark { display: flex; flex-direction: column; align-items: center; text-align: center; font-family: var(--font-display); font-weight: 700; line-height: 1.05; font-size: 1.45rem; }
.wordmark small { font-size: .58em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.wordmark em { font-style: normal; font-family: var(--font-body); font-weight: 500; font-size: .48em; letter-spacing: .04em; margin-top: 6px; opacity: .85; }
.dbx-word { color: #042135; }
.max-word { color: #d8ac4a; }
.partner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.partner.flip .partner-card { order: 2; }
@media (max-width: 880px) { .partner { grid-template-columns: 1fr; } .partner.flip .partner-card { order: 0; } }
.partner-card { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.partner-pic { margin: 0; }
.partner-pic img { display: block; width: 100%; height: auto; }
.partner-logo-box { position: absolute; left: 18px; top: 18px; z-index: 1; background: #ffffff; border-radius: 12px; padding: 12px 18px; box-shadow: 0 6px 20px rgba(4, 33, 53, .15); max-width: 60%; }
.partner-logo-box .partner-logo { max-height: 48px; }
.partner-logo-box.dark { background: #0f1e3a; }
.partner-logo-box .wordmark { font-size: 1.2rem; }
.partner-copy p { color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--leaf) 18%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 5px; height: 9px; border: solid var(--leaf); border-width: 0 2px 2px 0; transform: rotate(45deg); }
[hidden] { display: none !important; }
.chain-dark, .partner-logo-box.dark { background: #101722; border-color: #101722; }
.chain-dark { padding: 6px 12px; }
.partner-logo.max-logo { max-height: 84px; }
.partner-logo-box.dark { padding: 4px 8px; }
.partner-logo-box.dark .max-logo { max-height: 64px; }
.chain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.chain-grid .chain-tile { min-height: 110px; padding: 14px 18px; }
.chain-grid .partner-logo { max-height: 78px; }
.chain-grid .chain-dark { padding: 6px 10px; }
.partner-logo-box { padding: 10px 14px; }
.partner-logo-box .partner-logo { max-height: 64px; }
.partner-logo-box .partner-logo { max-height: 84px; } .partner-logo-box .max-logo { max-height: 76px; }
