/* BoSonic website stylesheet.
   Design taken over from Robin's own website draft (bosonic-website.html, November 2026):
   white working surfaces, graphite bands, BoSonic red used sparingly.
   Fonts: system fonts only (no web fonts allowed on this site). */
:root {
  --red: #DA291C;          /* BoSonic brand red */
  --red-deep: #B3200F;
  --ink: #16171A;
  --graphite: #545454;     /* BoSonic grey for dark bands */
  --graphite-2: #5E5E5E;
  --steel: #6B6E73;        /* secondary text */
  --line: #E3E4E6;
  --mist: #F3F4F5;
  --paper: #FFFFFF;
  --on-dark: #F2F3F4;
  --on-dark-muted: #E1E1E1;
  --on-dark-accent: #FFC4BD;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: .8125rem; --step-0: 1rem; --step-1: 1.125rem; --step-2: 1.375rem; --step-3: 1.75rem;
  --step-4: clamp(2rem, 4.2vw, 3rem); --step-5: clamp(2.4rem, 5.6vw, 4.1rem);
  --wrap: 1180px; --radius: 6px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* The page text sits in <article class="wrap content">; sections inside bring their own .wrap */
.wrap.content { max-width: none; padding: 0; margin: 0; }

.skip { position: absolute; left: 8px; top: -60px; background: #fff; color: var(--ink); padding: 10px 16px; border: 1px solid var(--ink); z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--graphite); color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 88px; padding-block: 16px; }
.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.brand img { width: 164px; height: auto; }

.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.site-header nav a { position: relative; display: block; font: 400 .8125rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: #fff; text-decoration: none; padding: .8rem 1rem; transition: opacity .3s ease; }
.site-header nav a::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .35rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.site-header nav a[aria-current="page"]::after, .site-header nav a:hover::after { transform: scaleX(1); }
@media (hover: hover) and (min-width: 941px) {
  .site-header nav ul:hover a { opacity: .5; }
  .site-header nav ul:hover a:hover { opacity: 1; }
}
/* Menu entry with sub-items (e.g. Solutions): opens on hover or keyboard focus, no JavaScript */
.site-header nav .has-sub { position: relative; }
.site-header nav .nav-parent { position: relative; display: flex; align-items: center; gap: .35rem; font: 400 .8125rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: #fff; padding: .8rem 1rem; cursor: default; }
.site-header nav .nav-parent::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.site-header nav .has-sub.is-current > .nav-parent { text-decoration: underline; text-underline-offset: .55rem; text-decoration-thickness: 1px; }
.site-header nav .sub { list-style: none; margin: 0; padding: .4rem 0; display: none; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--graphite); border: 1px solid rgba(255,255,255,.16); border-radius: 6px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); z-index: 50; }
.site-header nav .has-sub:hover > .sub, .site-header nav .has-sub:focus-within > .sub { display: block; }
.site-header nav .sub a { padding: .7rem 1rem; white-space: nowrap; text-transform: none; letter-spacing: .02em; font-size: .9rem; }
.site-header nav .sub a::after { display: none; }
.site-header nav .sub a:hover, .site-header nav .sub a[aria-current="page"] { background: rgba(255,255,255,.08); }
@media (max-width: 940px) {
  .site-header nav { width: 100%; }
  .site-header nav a { padding: .6rem 1.1rem .6rem 0; }
  .site-header nav a::after { left: 0; right: 1.1rem; }
  .site-header nav .has-sub { width: 100%; }
  .site-header nav .nav-parent { padding: .6rem 1.1rem .6rem 0; }
  .site-header nav .nav-parent { cursor: pointer; }   /* phones: tap to open the sub points */
  .site-header nav .sub { display: none; flex-wrap: wrap; position: static; min-width: 0; padding: 0 0 .3rem .9rem; background: none; border: 0; box-shadow: none; }
  .site-header nav .sub a { padding: .5rem 1.1rem .5rem 0; font-size: .85rem; }
  .site-header nav .has-sub:hover > .sub, .site-header nav .has-sub:focus-within > .sub { display: flex; }
}

.eyebrow { font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--red); font-weight: 500; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--on-dark-accent); }
.lead { font-size: var(--step-1); color: var(--steel); max-width: 62ch; }
.on-dark .lead { color: var(--on-dark-muted); }
.btn { display: inline-flex; align-items: center; gap: .55rem; font: 600 var(--step-0)/1 var(--sans); padding: .95rem 1.35rem; border-radius: var(--radius); text-decoration: none; border: 1.5px solid transparent; transition: background .2s, border-color .2s, color .2s; }
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
/* Partner logo used as a link (e.g. sitem-insel): logo in a light frame with a small arrow */
.logo-link { display: inline-flex; align-items: center; gap: .9rem; padding: .7rem 1rem .7rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--steel); text-decoration: none; transition: border-color .2s, box-shadow .2s, color .2s; }
.logo-link img { width: 115px; height: auto; }
.logo-link svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s; }
.logo-link:hover { border-color: var(--steel); color: var(--ink); box-shadow: 0 8px 20px -12px rgba(22,23,26,.35); }
.logo-link:hover svg { transform: translate(2px, -2px); }
.textlink { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--red); border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.textlink:hover { border-color: currentColor; }
.on-dark .textlink { color: var(--on-dark-accent); }

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.band-dark { background: var(--graphite); color: var(--on-dark); }
.band-mist { background: var(--mist); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); max-width: 760px; }
.section-head h2 { font-size: var(--step-4); }
.h-l { font-size: var(--step-4); }
.h-m { font-size: var(--step-3); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 1.15fr .85fr; } .split.wide-right { grid-template-columns: .85fr 1.15fr; } }
.split > * { min-width: 0; }
.stack { display: grid; gap: 1.25rem; align-content: start; }
.mt-l { margin-top: clamp(2rem, 4vw, 3rem); }
.figure { border-radius: 10px; overflow: hidden; background: var(--mist); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.ar-16-9 { aspect-ratio: 16 / 9; }
.ar-16-10 { aspect-ratio: 16 / 10; }
.ar-4-3 { aspect-ratio: 4 / 3; }
.ar-tech { aspect-ratio: 1665 / 945; }
.tech-figure { margin: 0; max-width: 560px; }
.caption { font-size: .75rem; color: var(--steel); margin-top: .6rem; letter-spacing: .02em; }

/* ---------- Pictures that fade into grey bands (wide screens only) ----------
   The picture fills the right side of the band from top to bottom, up to the screen edge,
   and blends into the grey only on its left side. */
.fade-band { position: relative; overflow: hidden; }
@media (min-width: 960px) {
  .fade-band .wrap, .fade-band .split, .fade-band .hero-inner { position: static; }
  .fade-band .stack, .fade-band .hero-copy { position: relative; z-index: 2; }
  .fade-band .fade-media { position: absolute; top: 0; bottom: 0; left: 50%; right: 0; margin: 0; z-index: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; background: transparent; }
  .fade-band .fade-media .figure, .fade-band .fade-media picture { display: contents; }
  /* the picture's real edge sits 48px further left, inside the fully transparent part, so no seam can show */
  .fade-band .fade-media img { box-sizing: border-box; width: calc(100% + 48px); max-width: none; height: 100%; margin-left: -48px; padding-left: 48px; object-fit: cover; object-position: left center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 48px, rgba(0,0,0,.04) calc(48px + 3.5%), rgba(0,0,0,.14) calc(48px + 7%), rgba(0,0,0,.3) calc(48px + 10.5%), rgba(0,0,0,.5) calc(48px + 14%), rgba(0,0,0,.7) calc(48px + 17.5%), rgba(0,0,0,.86) calc(48px + 21%), rgba(0,0,0,.96) calc(48px + 24.5%), #000 calc(48px + 28%));
            mask-image: linear-gradient(to right, transparent 0, transparent 48px, rgba(0,0,0,.04) calc(48px + 3.5%), rgba(0,0,0,.14) calc(48px + 7%), rgba(0,0,0,.3) calc(48px + 10.5%), rgba(0,0,0,.5) calc(48px + 14%), rgba(0,0,0,.7) calc(48px + 17.5%), rgba(0,0,0,.86) calc(48px + 21%), rgba(0,0,0,.96) calc(48px + 24.5%), #000 calc(48px + 28%)); }
  /* Compact band (Company "Engineered in Switzerland"): text set tighter so the band is less tall
     and the picture shows almost completely at full height */
  .fade-compact { padding-block: clamp(3rem, 4.5vw, 3.75rem); }
  .fade-compact .split { grid-template-columns: minmax(0, 470px); }
  .fade-compact .stack { gap: .85rem; }
  .fade-compact .h-l { font-size: var(--step-3); }
  .fade-compact .lead { font-size: var(--step-0); }
  .fade-compact .benefits { gap: .45rem; }
  .fade-compact .chip { padding: .4rem .75rem; font-size: .85rem; }
  .fade-compact .fade-media { left: 42%; }
  .fade-compact .fade-media img { object-position: center; }
  /* Home picture: the tilted blade runs into the mountain line on the right flank of the Eiger
     (65.4% of the width) and disappears behind it. 30.8% keeps that spot on every screen width. */
  .hero.fade-band .fade-media img { object-position: 30.8% center; }
  .fade-band .gen-photo img { object-position: 70% center; }   /* home: generator display in view, left edge in the fade */
  .fade-band .wave { z-index: 3; }
  .fade-band.hero::after { z-index: 1; }
  .fade-band .split > .stack, .fade-band .hero-copy { padding-block: clamp(1rem, 3vw, 2.5rem); }
}

/* ---------- Red border line with light line on top (bottom of grey bands, top of the closing grey area) ----------
   Drawn in /img/wave-bottom.svg and /img/wave-top.svg: flat on the left, then from the middle
   the real skyline of the Bernese Oberland (Gross Fiescherhorn, Eiger, Moench, Jungfrau ... Mittaghorn). */
.wave { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; z-index: 1; pointer-events: none;
  background: url("/img/wave-bottom.svg") center bottom / 100% 100% no-repeat; }
.wave.wave-top { top: -64px; bottom: auto; background-image: url("/img/wave-top.svg"); }
/* Below 900 px the line is no longer stretched to the full width (that squeezed the summits together):
   it keeps its real proportions and shows the right-hand part with the mountains. */
@media (max-width: 899px) { .wave { background-size: 1440px 80px; background-position: right bottom; } }
@media (max-width: 700px) { .wave { height: 40px; background-size: 720px 40px; } .wave.wave-top { top: -32px; } }   /* smaller mountains on phones */

/* ---------- Peak names on the skyline (Company page only) ----------
   Eiger, Moench and Jungfrau above their summits on the border line, in the red label style.
   Positions match /img/wave-top.svg. */
.section-before-peaks { padding-bottom: clamp(8rem, 12vw, 10rem); }
.peaks { display: none; }
@media (min-width: 1000px) {   /* not on phones, also not sideways */
  .peaks { display: block; list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 2; pointer-events: none; }
  .peaks li { position: absolute; width: 0; height: 10px; border-left: 1px solid var(--red); }
  .peaks span { position: absolute; left: 0; bottom: 14px; transform: translateX(-50%); display: grid; justify-items: center; gap: 1px; white-space: nowrap;
    font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--red); line-height: 1.2; }
  .peaks small { font-size: .72rem; letter-spacing: .04em; text-transform: none; font-weight: 400; color: var(--steel); }
  .peaks .pk-eiger { left: 64.01%; bottom: 49px; }
  .peaks .pk-moench { left: 70.9%; bottom: 53px; }
  .peaks .pk-jungfrau { left: 83.77%; bottom: 55px; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--graphite); color: var(--on-dark); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% 20%, rgba(255,255,255,.06), transparent 60%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(4rem, 7vw, 5.5rem); }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.02fr .98fr; } }
.hero-inner > * { min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--on-dark-accent); }
@media (min-width: 960px) { .hero h1 { white-space: nowrap; } }   /* slogan always on exactly two lines */
.hero-copy { display: grid; gap: 1rem; align-content: start; }
.hero-media .figure { border-radius: 12px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); background: var(--graphite-2); aspect-ratio: 16 / 9; }

/* ---------- Page header band (other pages) ---------- */
.page-hero { background: var(--graphite); color: var(--on-dark); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem); display: grid; gap: 1.25rem; }
.page-hero h1 { font-size: var(--step-5); letter-spacing: -.025em; }
/* Title on one line, so the grey top part (and the mountain line) has the same height on every page */
@media (min-width: 900px) { .page-hero h1 { white-space: nowrap; } }
.page-hero .lead { max-width: 60ch; }
.crumbs { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- Feature grid (dark) ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; overflow: hidden; }
@media (min-width: 560px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--graphite); padding: 1.5rem 1.4rem; display: grid; gap: .55rem; align-content: start; }
.feature .fi { width: 36px; height: 36px; color: var(--on-dark-accent); }
.feature .fi svg { width: 100%; height: 100%; }
.feature h3 { font-size: var(--step-1); font-weight: 600; }
.feature p { font-size: .95rem; color: var(--on-dark-muted); }
/* Light version of the feature grid (on white sections) */
.feature-grid.light { background: var(--line); border-color: var(--line); }
.feature-grid.light .feature { background: var(--paper); }
.feature-grid.light .fi { color: var(--red); }
.feature-grid.light p { color: var(--steel); }

/* ---------- Process ---------- */
.process { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 860px) { .process { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--ink); display: grid; gap: .6rem; align-content: start; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: .8rem; color: var(--red); font-weight: 500; }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--steel); font-size: .97rem; }

/* ---------- Chips ---------- */
.benefits { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 100px; border: 1px solid var(--line); background: var(--paper); font-weight: 500; font-size: .95rem; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.on-dark .chip { background: transparent; border-color: rgba(255,255,255,.2); color: var(--on-dark); }
.chip-list { display: grid; gap: 1.6rem; }
.chip-row { display: grid; gap: .6rem 1.5rem; align-items: center; }
@media (min-width: 760px) { .chip-row { grid-template-columns: 300px 1fr; align-items: start; } }
.chip-row .chip { justify-self: start; }
.chip-row p { color: var(--steel); max-width: 62ch; }
.on-dark .chip-row p { color: var(--on-dark-muted); }
.status-note { display: grid; gap: .35rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 8px; background: var(--mist); font-size: .95rem; max-width: 860px; }
.status-note b { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

/* ---------- Quality ---------- */
.q-list { display: grid; grid-template-columns: 1fr; column-gap: 1.5rem; border-top: 1px solid var(--line); margin-top: .5rem; }
@media (min-width: 560px) { .q-list { grid-template-columns: 1fr 1fr; } }
.q-item { display: grid; gap: .2rem; align-content: start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.q-item .k { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); font-weight: 500; }
.q-item .v { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.cert { margin: 0; max-width: 440px; justify-self: center; width: 100%; }
.cert img { border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(22,23,26,.35); background: #fff; }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
@media (min-width: 980px) { .people-core { grid-template-columns: repeat(3, 1fr); } }
.person { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.person > div { display: grid; gap: .3rem; min-width: 0; }
.person b { font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
.person .role { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.person p { color: var(--steel); font-size: .95rem; margin-top: .2rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--graphite); color: var(--on-dark); display: grid; place-items: center; font-size: .85rem; font-weight: 500; flex-shrink: 0; }

/* ---------- Call to action band ---------- */
.cta { background: var(--paper); color: var(--ink); position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; padding-block: clamp(3.5rem, 7vw, 5rem); }
.cta h2 { font-size: var(--step-4); max-width: 20ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-grid > * { min-width: 0; }
.contact-card { background: var(--graphite); color: var(--on-dark); border-radius: 12px; padding: clamp(1.75rem, 3vw, 2.5rem); display: grid; gap: 1.5rem; align-content: start; }
.contact-line { display: grid; gap: .2rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-line:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-line .k { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact-line .v { font-size: var(--step-1); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.contact-line .v a { text-decoration: none; }
.contact-line .v a:hover { text-decoration: underline; }
.contact-line .v-small { font-size: 1rem; }
.contact-line .textlink { margin-top: .4rem; justify-self: start; }
.person .person-link { justify-self: start; margin-top: .4rem; line-height: 0; border-radius: 4px; transition: opacity .2s; }
.person .person-link:hover { opacity: .8; }
.person .person-link img { width: 24px; height: 24px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- Closing band on every page (contact + important information) ---------- */
.page-end { background: var(--graphite); color: var(--on-dark-muted); font-size: .9rem; line-height: 1.45; position: relative; }
.page-end-top { display: grid; gap: 1.5rem 3rem; padding-block: clamp(2.25rem, 4vw, 2.75rem) 2rem; }
@media (min-width: 860px) { .page-end-top { grid-template-columns: 1.7fr 1fr; } }
.page-end-info { display: grid; gap: .9rem; align-content: start; }
.page-end-top > * { min-width: 0; }
.page-end h4 { font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); margin-bottom: .5rem; }
.page-end ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; font-variant-numeric: lining-nums tabular-nums; }
.page-end a { text-decoration: none; }
.page-end a:hover { color: #fff; }
.page-end .small { font-size: .8rem; }
.page-end .btn { margin-top: .9rem; padding: .7rem 1.1rem; font-size: .9rem; }
.page-end .btn:hover { color: #fff; }
.maxw-34 { max-width: 34ch; }
.page-end-legal { max-width: 90ch; font-size: .78rem; line-height: 1.45; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; }
.page-end-legal b { color: var(--on-dark); }

/* ---------- Footer (copyright line) ---------- */
.site-footer { background: var(--graphite); color: var(--on-dark-muted); font-size: .82rem; }
.site-footer .wrap { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1rem; }
.site-footer p { margin: 0; }
.legal-nav { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legal-nav a { text-decoration: none; }
.legal-nav a:hover { color: #fff; }

/* 404 page and any plain text page */
.wrap.content > h1, .wrap.content > p { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.wrap.content > h1 { padding-top: 3rem; margin-bottom: 1rem; font-size: var(--step-4); }
.wrap.content > p:last-child { padding-bottom: 4rem; }
