/* ==========================================================================
   CloudSectra — shared styles for every page
   Fonts are self-hosted from /fonts (SIL Open Font License, see LICENSE-*.txt)
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* Night palette */
  --bg: #070d1a;
  --bg-alt: #0b1426;
  --card: #0f1b31;
  --card-2: #13223c;
  --border: #1c2c48;
  --border-strong: #2a3f63;
  --text: #eef3fa;
  --muted: #a3b3ca;
  --accent: #3ea6ff;
  --accent-hover: #6bbcff;
  --accent-2: #22d3a6;
  --alert: #ffb547;

  /* Day palette (light sections) */
  --paper: #f2f5f9;
  --paper-card: #ffffff;
  --ink: #0b1220;
  --ink-muted: #46566e;
  --paper-border: #dbe2ec;
  --accent-ink: #0b6fc7;
  --accent-2-ink: #057a5f;

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

  --radius: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .55em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); letter-spacing: -.028em; text-wrap: balance; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 112px 0; position: relative; }
section.alt { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-top: 1px solid var(--border); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent-2);
  font: 500 .78rem/1 var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.4em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .8; }
.lead { color: var(--muted); font-size: 1.17rem; line-height: 1.65; max-width: 640px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 13, 26, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(42, 63, 99, .55);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--text); font: 700 1.2rem/1 var(--font-display); letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
nav.main { display: flex; gap: 30px; align-items: center; }
nav.main a { position: relative; color: var(--muted); font-size: .95rem; font-weight: 500; }
nav.main a:hover { color: var(--text); text-decoration: none; }
nav.main a[aria-current="page"] { color: var(--text); }
nav.main a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 .98rem/1.2 var(--font-body); letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { text-decoration: none; }
.btn.primary {
  background: var(--accent); color: #04121f;
  box-shadow: 0 0 0 1px rgba(62,166,255,.4), 0 10px 30px -10px rgba(62,166,255,.65);
}
.btn.primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn.ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn.ghost:hover { border-color: var(--accent); background: rgba(62,166,255,.08); }
nav.main .btn { min-height: 40px; padding: 8px 18px; color: #04121f; font-size: .92rem; }
nav.main .btn:hover { color: #04121f; }

/* --------------------------------------------------------------------------
   Shared backdrop: faint grid for the hero and page headers
   -------------------------------------------------------------------------- */
.hero::before, .product::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(163,179,202,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163,179,202,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero > .wrap, .product > .wrap { position: relative; }

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 96px 0 112px;
  overflow: hidden;
  background:
    radial-gradient(760px 520px at 78% 42%, rgba(62,166,255,.16), transparent 65%),
    radial-gradient(620px 420px at 0% 100%, rgba(34,211,166,.09), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px; align-items: center;
}
.hero .lead { margin-bottom: 2.2em; font-size: 1.2rem; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Radar illustration */
.hero-art { position: relative; }
.hero-art::after {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  box-shadow: 0 0 120px 10px rgba(62,166,255,.12);
  pointer-events: none;
}
.radar { display: block; width: 100%; height: auto; max-width: 540px; margin-left: auto; overflow: visible; }
.r-rings circle { fill: none; stroke: #2a4670; stroke-width: 1; }
.r-rings circle:first-child { stroke: #3a5f92; stroke-width: 1.25; }
.r-ticks { fill: none; stroke: #3a5f92; stroke-width: 6; stroke-dasharray: 1 11.93; opacity: .7; }
.r-axes path { stroke: #1f3557; stroke-width: 1; fill: none; stroke-dasharray: 2 6; }
.r-sweep { transform-box: view-box; transform-origin: 260px 260px; animation: radar-sweep 7s linear infinite; }
.r-beam { stroke: #22d3a6; stroke-width: 1.5; stroke-opacity: .8; }
.r-links path { fill: none; stroke: url(#lg-link); stroke-width: 1.25; stroke-opacity: .55; }
.r-nodes circle { fill: #0b1426; stroke: #3ea6ff; stroke-width: 2; }
.r-core { fill: #3ea6ff; }
.r-core-ring { fill: rgba(62,166,255,.12); stroke: #3ea6ff; stroke-width: 1; stroke-opacity: .6; }
.r-ok-ring { fill: rgba(34,211,166,.12); stroke: #22d3a6; stroke-width: 1; }
.r-ok-dot { fill: #22d3a6; }
.r-alert-ring { fill: rgba(255,181,71,.12); stroke: var(--alert); stroke-width: 1.25; }
.r-alert-dot { fill: var(--alert); }
.r-pulse {
  fill: none; stroke: var(--alert); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  animation: radar-pulse 2.8s ease-out infinite;
}
.r-pulse-2 { animation-delay: 1.4s; }
@keyframes radar-sweep { to { transform: rotate(360deg); } }
@keyframes radar-pulse {
  0%   { transform: scale(1);   opacity: .9; }
  100% { transform: scale(3.6); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Home: product teasers
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px;
}
.card p { color: var(--muted); }
.card ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.card li { position: relative; padding-left: 22px; margin-bottom: .55em; }
.card li::before {
  content: ""; position: absolute; left: 2px; top: .7em;
  width: 8px; height: 2px; border-radius: 2px; background: var(--accent);
}

.card.teaser {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 340px; padding: 40px;
  color: var(--text);
  background: linear-gradient(160deg, var(--card-2), var(--card) 60%);
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card.teaser:hover {
  text-decoration: none; transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 30px 60px -30px rgba(62,166,255,.45);
}
.card.teaser h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -.025em; margin-top: 8px; }
.card.teaser p { max-width: 440px; }
.card.teaser .more {
  margin-top: auto; padding-top: 12px;
  color: var(--accent); font-weight: 600;
  border-bottom: 1px solid rgba(62,166,255,.35);
}
.card.teaser:hover .more { border-bottom-color: var(--accent); }
.teaser-art {
  position: absolute; top: 28px; right: 28px; width: 92px; height: 92px; opacity: .9;
}
.teaser-art svg { width: 100%; height: 100%; display: block; }
.ta-ring { fill: none; stroke: #2a4670; stroke-width: 1.5; }
.ta-ring-strong { fill: none; stroke: #3ea6ff; stroke-width: 2; }
.ta-sweep { fill: #3ea6ff; opacity: .28; }
.ta-dot { fill: #3ea6ff; }
.ta-dot-ok { fill: #22d3a6; }
.ta-ticks { fill: none; stroke: #3a5f92; stroke-width: 4; stroke-dasharray: 1 7.38; }
.ta-arc { fill: none; stroke: #22d3a6; stroke-width: 2.5; stroke-linecap: round; }
.ta-arrow { fill: none; stroke: #22d3a6; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ta-hand { fill: none; stroke: #eef3fa; stroke-width: 2.5; stroke-linecap: round; }
.teaser-lookback:hover { border-color: var(--accent-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 30px 60px -30px rgba(34,211,166,.4); }
.teaser-lookback .more { color: var(--accent-2); border-bottom-color: rgba(34,211,166,.35); }
.teaser-lookback:hover .more { border-bottom-color: var(--accent-2); }

/* Services strip: a light panel inside the dark section */
.card.teaser-wide {
  display: flex; gap: 40px; align-items: center; justify-content: space-between;
  padding: 40px 44px;
  background: var(--paper); border-color: var(--paper-border); color: var(--ink);
}
.card.teaser-wide .eyebrow { color: var(--accent-2-ink); margin-bottom: 1em; }
.card.teaser-wide h3 { color: var(--ink); font-size: clamp(1.35rem, 2.2vw, 1.65rem); letter-spacing: -.02em; }
.card.teaser-wide p { margin: 0; color: var(--ink-muted); max-width: 640px; }
.card.teaser-wide .btn.ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.card.teaser-wide .btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* --------------------------------------------------------------------------
   Product pages (Detect, Lookback) and page headers
   -------------------------------------------------------------------------- */
section.product {
  padding: 96px 0 112px;
  overflow: hidden;
  background:
    radial-gradient(800px 460px at 85% 20%, rgba(62,166,255,.14), transparent 62%),
    var(--bg);
}
section.product.teal {
  background:
    radial-gradient(800px 460px at 85% 20%, rgba(34,211,166,.11), transparent 62%),
    var(--bg);
}
section.product h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
section.product.page-head { padding-bottom: 88px; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
.product-copy .eyebrow { margin-right: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; vertical-align: top;
  background: rgba(34,211,166,.1); border: 1px solid rgba(34,211,166,.35);
  color: var(--accent-2); border-radius: 999px; padding: 6px 12px;
  font: 500 .74rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.4em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.checks { list-style: none; padding: 0; margin: 2em 0 2.2em; display: grid; gap: 14px; }
.checks li {
  position: relative; padding: 0 0 14px 38px; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.checks li:last-child { border-bottom: 0; padding-bottom: 0; }
.checks li strong { color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(34,211,166,.12); border: 1px solid rgba(34,211,166,.4);
}
.checks li::after {
  content: ""; position: absolute; left: 8px; top: calc(.2em + 6px);
  width: 5px; height: 9px;
  border: solid var(--accent-2); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.flow {
  position: relative; display: grid;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border-strong); border-radius: 22px;
  padding: 12px 28px 20px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04);
}
.flow-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 12px; }
.flow-bar span { height: 3px; border-radius: 3px; background: var(--accent); }
.flow-bar span:nth-child(2) { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.flow-bar span:nth-child(3) { background: var(--accent-2); }
.flow .step { position: relative; display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; }
.flow .step + .step { border-top: 1px dashed var(--border-strong); }
.flow .step:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 64px; bottom: -22px; width: 2px;
  background: linear-gradient(180deg, rgba(62,166,255,.5), rgba(62,166,255,0));
}
.flow .num {
  position: relative; z-index: 1;
  flex: 0 0 40px; height: 40px; border-radius: 12px;
  background: rgba(62,166,255,.12); border: 1px solid rgba(62,166,255,.5);
  color: var(--accent); font: 500 1rem/1 var(--font-mono);
  display: grid; place-items: center;
}
.flow .step:last-child .num { background: var(--accent-2); border-color: var(--accent-2); color: #04121f; }
.flow .step p { margin: 0; color: var(--muted); font-size: .98rem; }
.flow .step h3 { margin: 6px 0 .3em; font-size: 1.1rem; }

/* Lookback: teal-led variant */
.flow-teal .flow-bar span { background: var(--accent-2); }
.flow-teal .flow-bar span:nth-child(2) { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.flow-teal .flow-bar span:nth-child(3) { background: var(--accent); }
.flow-teal .num { background: rgba(34,211,166,.1); border-color: rgba(34,211,166,.5); color: var(--accent-2); }
.flow-teal .step:not(:last-child)::after { background: linear-gradient(180deg, rgba(34,211,166,.5), rgba(34,211,166,0)); }
.flow-teal .step:last-child .num { background: var(--accent); border-color: var(--accent); color: #04121f; }

/* --------------------------------------------------------------------------
   Light section (services cards)
   -------------------------------------------------------------------------- */
section.light { background: var(--paper); color: var(--ink); }
.light .card {
  background: var(--paper-card); border-color: var(--paper-border);
  box-shadow: 0 1px 2px rgba(11,18,32,.04), 0 18px 40px -24px rgba(11,18,32,.18);
  padding: 36px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.light .card:hover {
  transform: translateY(-3px); border-color: #c4d2e4;
  box-shadow: 0 1px 2px rgba(11,18,32,.05), 0 28px 50px -24px rgba(11,18,32,.25);
}
.light .card h3 { color: var(--ink); font-size: 1.3rem; }
.light .card p {
  color: var(--ink-muted); font-size: 1.02rem;
  padding-bottom: 1.1em; border-bottom: 1px solid var(--paper-border); margin-bottom: 1.1em;
}
.light .card ul { color: var(--ink-muted); font-size: .98rem; }
.light .card li::before { background: var(--accent-ink); }

.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent); margin-bottom: 24px;
  box-shadow: inset 0 0 0 1px rgba(62,166,255,.35);
}
.icon svg { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   Approach (services page)
   -------------------------------------------------------------------------- */
section.approach {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(62,166,255,.10), transparent 70%),
    var(--bg);
}
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 0 auto; }
.section-head.center h2 { margin-bottom: .45em; }
.phases { position: relative; gap: 0; }
.phases::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 15%, var(--accent-2) 85%, transparent);
}
.card.phase {
  background: transparent; border: 0; border-radius: 0;
  border-left: 1px solid var(--border);
  padding: 48px 36px 12px;
  position: relative;
}
.card.phase:first-child { border-left: 0; }
.phase::before {
  content: ""; position: absolute; top: -6px; left: 36px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.phase:nth-child(3)::before { border-color: var(--accent-2); }
.phase .n {
  color: var(--accent); font: 500 .8rem/1 var(--font-mono); letter-spacing: .14em;
  margin-bottom: 22px;
}
.phase:nth-child(3) .n { color: var(--accent-2); }
.phase h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.phase p { font-size: 1.02rem; }

/* --------------------------------------------------------------------------
   Contact (every page)
   -------------------------------------------------------------------------- */
section.contact { text-align: center; padding: 24px 0 112px; background: var(--bg); border-top: 0; }
.light + section.contact, .alt + section.contact { padding-top: 112px; }
.contact-panel {
  position: relative; overflow: hidden;
  padding: 96px 32px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 50% 120%, rgba(62,166,255,.28), transparent 55%),
    repeating-radial-gradient(circle at 50% 120%, transparent 0 79px, rgba(62,166,255,.12) 79px 80px),
    linear-gradient(180deg, var(--card-2), var(--bg-alt));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.contact-panel .eyebrow { justify-content: center; }
.contact-panel .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .8; }
.contact .lead { margin: 0 auto 2.4em; }
.contact .btn.primary { min-height: 56px; padding: 14px 30px; font-size: 1.08rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer.site {
  border-top: 1px solid var(--border); padding: 40px 0 48px;
  color: var(--muted); font-size: .88rem; line-height: 1.7;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site .wrap > div:last-child { text-align: right; max-width: 520px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Plain content pages (privacy, 404)
   -------------------------------------------------------------------------- */
.page { padding: 88px 0 112px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.page h2 { font-size: 1.4rem; letter-spacing: -.015em; margin-top: 1.8em; }
.page p, .page li { color: var(--muted); }
.page .wrap.center { padding-top: 64px; padding-bottom: 64px; }
.page .wrap.center .btn { margin-top: 1.4em; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto; width: 100%; }
  .radar { margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .card.teaser-wide { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 820px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .card.phase { border-left: 0; border-top: 1px solid var(--border); padding: 40px 0 16px; }
  .phase::before { left: 0; }
  .phases::before { display: none; }
}
@media (max-width: 720px) {
  nav.main { gap: 18px; }
  nav.main a:not(.btn) { font-size: .9rem; }
  nav.main a[aria-current="page"]::after { bottom: -10px; }
  nav.main .btn { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .hero, section.product { padding: 48px 0 72px; }
  .hero-art { max-width: 280px; }
  header.site .wrap { height: auto; min-height: 60px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px 16px; }
  .brand { font-size: 1.1rem; }
  .brand svg { width: 26px; height: 26px; }
  nav.main a[aria-current="page"]::after { bottom: -4px; }
  .card.teaser { min-height: 0; padding: 32px 24px; }
  .teaser-art { width: 64px; height: 64px; top: 22px; right: 20px; }
  .card.teaser-wide { padding: 32px 24px; }
  .light .card { padding: 28px 24px; }
  .flow { padding: 8px 20px 12px; }
  section.contact { padding-bottom: 72px; }
  .light + section.contact, .alt + section.contact { padding-top: 72px; }
  .contact-panel { padding: 64px 20px; border-radius: 22px; }
  .contact .btn.primary { font-size: 1rem; padding: 14px 22px; }
  footer.site .wrap > div:last-child { text-align: left; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r-sweep, .r-pulse { animation: none; }
  .r-pulse { opacity: 0; }
  .btn, .card.teaser, .light .card { transition: none; }
}

.mt-40 { margin-top: 56px; }
.center { text-align: center; }
