/* ============================================================
   SignalHouse Media — site2
   Light warm-editorial rebuild in the Folioblox design signature:
   generous whitespace, big tight display type with a two-tone
   accent word, #-numbered lists, big rounded image cards, pill
   CTAs, marquee strip, numbered process, pricing cards, FAQ.
   ============================================================ */

:root {
  /* Warm editorial palette */
  --paper: #F2F0EA;          /* page background */
  --paper-2: #ECE9E1;        /* alt band */
  --surface: #FFFFFF;        /* cards */
  --surface-warm: #FAF8F3;
  --ink: #17150F;            /* near-black warm */
  --ink-2: #3F3C34;          /* strong secondary */
  --muted: #6B6659;          /* muted (AA on paper) */
  --line: rgba(23, 21, 15, 0.12);
  --line-2: rgba(23, 21, 15, 0.20);

  --accent: #FF4D1F;         /* signal orange — fills only */
  --accent-ink: #BE360E;     /* orange text on paper (AA) */
  --accent-soft: #FBE7DE;    /* tinted chip bg */

  /* Radii — the soft, rounded Folioblox feel */
  --r-card: 24px;
  --r-media: 20px;
  --r-input: 14px;
  --r-pill: 100px;

  --sec-y: clamp(64px, 9vw, 130px);
  --sec-x: clamp(20px, 5vw, 48px);
  --maxw: 1220px;

  --display: 'Bricolage Grotesque', 'Hanken Grotesk', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --z-sticky: 100;
  --z-menu: 300;
}

* { box-sizing: border-box; }
/* Render as authored — hard opt-out of browser/OS forced-dark.
   "only light" stops Chrome/Android Auto-Dark from inverting the page. */
html { color-scheme: only light; background-color: #F2F0EA; }
:root { color-scheme: only light; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #F2F0EA;         /* literal fallback if var() is unavailable */
  background: var(--paper);
  color: #17150F;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 500;
  background: var(--ink); color: var(--paper);
  font: 600 14px var(--body); padding: 10px 16px; border-radius: var(--r-pill);
  transition: top .2s var(--ease-quart);
}
.skip:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; width: 100%; padding-inline: var(--sec-x); }
.sec { padding-block: var(--sec-y); }
.band-2 { background: var(--paper-2); }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}
.h-hero { font-size: clamp(48px, 8.5vw, 88px); }
.h-sec  { font-size: clamp(32px, 5vw, 56px); line-height: 1.0; }
.h-card { font-size: clamp(22px, 2.4vw, 27px); line-height: 1.05; letter-spacing: -0.02em; }
.accent-word { color: var(--accent); font-style: italic; }

.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--muted); }

/* Section label — a small marker + label (the reference's eyebrow, softened) */
.label {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 13.5px var(--body);
  color: var(--muted);
  letter-spacing: 0.01em;
}
.label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.label--center { justify-content: center; }

.sec-head { max-width: 720px; }
.sec-head .h-sec { margin-top: 18px; }
.sec-head .lead { margin-top: 18px; }
.sec-head--center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 15px var(--body);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .3s var(--ease-quart), color .3s var(--ease-quart),
              transform .3s var(--ease-expo), border-color .3s var(--ease-quart);
}
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn__arrow { transition: transform .3s var(--ease-expo); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 15px var(--body); text-decoration: none; color: var(--ink);
  transition: gap .25s var(--ease-quart), color .25s var(--ease-quart);
}
.textlink:hover { gap: 12px; color: var(--accent-ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(242, 240, 234, 0.82);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid var(--line);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.wordmark { font: 800 22px var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.wordmark sup { color: var(--accent); font-size: 0.5em; font-weight: 700; top: -0.8em; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__link { font: 500 15px var(--body); text-decoration: none; color: var(--ink-2); transition: color .2s var(--ease-quart); }
.nav__link:hover { color: var(--ink); }
.nav__toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; padding: 0; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-quart), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile { display: none; flex-direction: column; gap: 2px; padding-bottom: 16px; }
.nav__mobile a { text-decoration: none; color: var(--ink-2); font: 500 18px var(--body); padding: 13px 2px; border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 14px; justify-content: center; color: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--sec-y); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__intro { font: 500 16px var(--body); color: var(--muted); margin-bottom: 18px; }
.hero__lead { margin: 26px 0 0; max-width: 460px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__media { position: relative; border-radius: var(--r-media); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(23,21,15,.5); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-radius: 14px; padding: 12px 16px;
}
.hero__badge b { font: 700 15px var(--display); color: var(--ink); }
.hero__badge span { font: 700 11px var(--mono); color: var(--accent-ink); letter-spacing: .1em; }

/* Numbered service list (# 01 ...) */
.numlist { margin-top: 40px; display: grid; gap: 2px; }
.numrow {
  display: flex; align-items: baseline;
  padding: 16px 4px; border-top: 1px solid var(--line);
  transition: transform .35s var(--ease-expo);
}
.numrow:last-child { border-bottom: 1px solid var(--line); }
.numrow:hover { transform: translateX(6px); }
/* margin-right doubles as a gap fallback for engines without flex gap */
.numrow__hash { font: 700 16px var(--mono); color: var(--accent-ink); flex: none; margin-right: 16px; }
.numrow__n { font: 700 15px var(--mono); color: var(--muted); flex: none; min-width: 22px; margin-right: 16px; }
.numrow__t { font: 600 18px var(--body); color: var(--ink); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: var(--paper); }
.marquee__label { text-align: center; font: 500 13.5px var(--body); color: var(--muted); margin-bottom: 16px; }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--display); color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; padding: 0 26px; }
.marquee__item::after { content: "✦"; color: var(--accent); font-size: 13px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.stat__num { font: 700 clamp(40px, 5.5vw, 66px)/1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.stat__lbl { font: 400 15px var(--body); color: var(--muted); margin-top: 12px; max-width: 210px; }

/* ---------- Show cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; text-decoration: none; color: inherit; display: block;
  transition: transform .45s var(--ease-expo), box-shadow .45s var(--ease-quart), border-color .45s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(23,21,15,.45); border-color: var(--line-2); }
.card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; margin: 10px 10px 0; border-radius: 16px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-quart); }
.card:hover .card__media img { transform: scale(1.05); }
.card__reach {
  position: absolute; top: 12px; right: 12px;
  font: 700 11px var(--mono); color: var(--ink); background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px); padding: 6px 10px; border-radius: var(--r-pill);
}
.card__tag {
  position: absolute; left: 12px; top: 12px;
  font: 700 10px var(--mono); letter-spacing: .12em; color: var(--ink); background: var(--accent);
  padding: 5px 10px; border-radius: var(--r-pill);
}
.card__body { padding: 18px 20px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card__title { font: 700 21px var(--display); color: var(--ink); letter-spacing: -0.01em; }
.card__meta { font: 400 13px var(--mono); color: var(--muted); margin-top: 6px; }
.card__view { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ease-expo); }
.card:hover .card__view { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

.rule-chip { display: inline-flex; align-items: center; gap: 8px; font: 700 11px var(--mono); letter-spacing: .14em; color: var(--muted); margin-bottom: 20px; }
.rule-chip b { color: var(--ink); }

/* ---------- Approach / feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 24px); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 28px 34px; transition: transform .4s var(--ease-expo), border-color .4s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); }
.feature__n { font: 700 14px var(--mono); color: var(--accent-ink); }
.feature__t { font: 700 22px var(--display); color: var(--ink); margin: 16px 0 10px; letter-spacing: -0.01em; }
.feature__d { font: 400 15px/1.6 var(--body); color: var(--muted); }

/* ---------- Coverage ---------- */
.cov { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.cov__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cov__h { font: 700 12px var(--mono); letter-spacing: .12em; color: var(--ink); padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.cov__h--r { border-bottom-color: var(--accent); }
.cov__item { display: flex; align-items: center; gap: 10px; font: 400 15px var(--body); color: var(--ink-2); padding: 11px 0; border-bottom: 1px solid var(--line); }
.cov__item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .6; flex: none; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.step__head { display: flex; align-items: baseline; gap: 8px; border-top: 2px solid var(--ink); padding-top: 16px; }
.step__hash { font: 700 18px var(--mono); color: var(--accent-ink); }
.step__n { font: 700 clamp(30px,3.4vw,42px) var(--display); color: var(--ink); line-height: 1; }
.step__t { font: 700 18px var(--display); color: var(--ink); margin: 16px 0 8px; }
.step__d { font: 400 14.5px/1.55 var(--body); color: var(--muted); }

/* ---------- Advertise / pricing cards ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 24px); align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px 30px 34px; }
.plan--feature { border: 2px solid var(--accent); position: relative; }
.plan__badge { position: absolute; top: 22px; right: 24px; font: 700 11px var(--mono); letter-spacing: .1em; color: var(--accent-ink); background: var(--accent-soft); padding: 6px 12px; border-radius: var(--r-pill); }
.plan__eyebrow { font: 500 14px var(--body); color: var(--muted); }
.plan__t { font: 700 25px var(--display); color: var(--ink); margin: 8px 0 16px; letter-spacing: -0.01em; }
.plan__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.plan__list li { display: flex; gap: 11px; font: 400 15px var(--body); color: var(--ink-2); }
.plan__list li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BE360E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: 12px; background-repeat: no-repeat; background-position: center; margin-top: 1px; }
.plan .btn { width: 100%; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 2px; max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font: 600 clamp(18px, 2vw, 22px) var(--display); color: var(--ink); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 30px; height: 30px; position: relative; transition: transform .35s var(--ease-expo); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--ink); }
.faq summary .plus::before { width: 15px; height: 2px; }
.faq summary .plus::after { width: 2px; height: 15px; }
.faq details[open] summary .plus { transform: rotate(135deg); }
.faq__a { padding: 0 60px 26px 4px; font: 400 16px/1.65 var(--body); color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 3vw, 36px); }
.field { display: block; }
.field__label { display: block; font: 600 13px var(--body); color: var(--ink-2); margin-bottom: 8px; }
.field__input, .field__select, .field__textarea {
  width: 100%; background: var(--surface-warm); border: 1px solid var(--line-2); border-radius: var(--r-input);
  padding: 13px 15px; color: var(--ink); font: 400 15px var(--body); outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field__textarea { resize: vertical; min-height: 130px; }
.field__input::placeholder, .field__textarea::placeholder { color: #797263; }
.field__input:focus, .field__select:focus, .field__textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(255,77,31,.14); }
.field__input:user-invalid, .field__textarea:user-invalid { border-color: #C4361A; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 4px; }

.contact-aside { display: grid; gap: 14px; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 26px; }
.info--accent { background: var(--accent); border-color: var(--accent); }
.info__k { font: 700 11px var(--mono); letter-spacing: .14em; color: var(--accent-ink); margin-bottom: 8px; }
.info--accent .info__k { color: rgba(23,21,15,.92); }
.info__v { font: 700 20px var(--display); color: var(--ink); letter-spacing: -0.01em; }
.info--accent .info__v { color: var(--ink); }
.info__sub { font: 400 14px var(--body); color: var(--muted); margin-top: 4px; }
.info--accent .info__sub { color: rgba(23,21,15,.9); }
.info a { color: inherit; text-decoration: none; }
.info a:hover { text-decoration: underline; text-underline-offset: 3px; }

.success { display: none; }
.form-card.is-sent .success { display: grid; gap: 14px; }
.form-card.is-sent form { display: none; }
.success__flag { justify-self: start; font: 700 10px var(--mono); letter-spacing: .16em; color: #fff; background: var(--accent); padding: 7px 13px; border-radius: var(--r-pill); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  background: var(--ink); color: var(--paper);
  padding: clamp(40px, 6vw, 76px) clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.cta__glow { position: absolute; inset: 0; background: radial-gradient(600px 340px at 88% 20%, rgba(255,77,31,.4), transparent 60%); pointer-events: none; }
.cta h2 { position: relative; }
.cta__media { position: relative; border-radius: var(--r-media); overflow: hidden; aspect-ratio: 4/3; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta .lead { color: rgba(242,240,234,.72); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: clamp(48px, 6vw, 80px) 40px; }
.footer__word { font: 800 clamp(40px, 7vw, 92px) var(--display); letter-spacing: -0.03em; color: var(--ink); line-height: 0.9; }
.footer__word sup { color: var(--accent); font-size: 0.4em; }
.footer__tag { font: 400 15px var(--body); color: var(--muted); max-width: 300px; margin-top: 18px; }
.footer__h { font: 700 11px var(--mono); letter-spacing: .14em; color: var(--muted); margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; text-decoration: none; color: var(--ink-2); font: 500 15px var(--body); padding: 6px 0; }
.footer__col a:hover { color: var(--accent-ink); }
.footer__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-block: 24px; border-top: 1px solid var(--line); }
.footer__meta span { font: 400 13px var(--mono); color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease-quart), transform .8s var(--ease-expo); }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; }
  .cov { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .grid-cards, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile.is-open { display: flex; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .grid-cards, .grid-3 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .cov__cols { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

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

/* ============================================================
   Hardening / resilience
   Guards against real-world render failures without changing the
   design when everything is supported: webfont miss, no
   backdrop-filter, grid/flex content blowout, stray x-scroll.
   ============================================================ */

/* Belt-and-suspenders against a stray horizontal scrollbar.
   overflow-x:clip keeps position:sticky working (overflow-x:hidden
   would turn body into a scroll container and can break sticky). */
body { overflow-x: clip; }
html { -webkit-tap-highlight-color: transparent; }

/* Long unbroken strings (emails, URLs) wrap instead of overflowing;
   large display type keeps its authored line breaks. */
body { overflow-wrap: break-word; }
.display, .h-hero, .h-sec, .card__title, .footer__word, .wordmark { overflow-wrap: normal; }

/* Grid/flex children default to min-width:auto and can refuse to
   shrink below their content, pushing past the viewport. */
.hero__grid, .stats, .grid-cards, .grid-3, .cov, .cov__cols,
.process, .plans, .contact, .cta, .footer__top, .nav__row { min-width: 0; }
.hero__grid > *, .cov > *, .contact > *, .cta > *,
.grid-cards > *, .grid-3 > *, .plans > * { min-width: 0; }
.card, .feature, .plan, .info, .form-card { min-width: 0; }

/* Media never distorts or overflows its box (cover images keep their
   higher-specificity height rules). */
img, svg, video { max-width: 100%; height: auto; }

/* Form controls inherit type and never overflow their card. */
input, select, textarea, button { font-family: inherit; max-width: 100%; }

/* Frosted nav needs an opaque-ish fallback where backdrop-filter is
   unsupported — otherwise scrolled content bleeds through as a smudge. */
@supports not ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .nav { background: rgba(242, 240, 234, 0.97); }
}

/* Clamp fallback: browsers without clamp() ignore the fluid values
   above and use these fixed sizes rather than a UA default. */
@supports not (width: clamp(1px, 1vw, 2px)) {
  .h-hero { font-size: 64px; }
  .h-sec  { font-size: 44px; }
  .stat__num { font-size: 52px; }
  .sec { padding-block: 96px; }
  .wrap { padding-inline: 32px; }
}

/* aspect-ratio fallback (Safari <15 / Chrome <88): without it, the
   media containers collapse and images render at natural size — a
   giant poster that blows the hero grid into one column. The classic
   padding-ratio hack reserves the box; the image fills it absolutely.
   Media containers are already position:relative. */
@supports not (aspect-ratio: 1 / 1) {
  .hero__media { height: 0; padding-bottom: 125%; }      /* 4 / 5 */
  .card__media { height: 0; padding-bottom: 68.75%; }    /* 16 / 11 */
  .cta__media  { height: 0; padding-bottom: 75%; }       /* 4 / 3 */
  .hero__media > img, .card__media > img, .cta__media > img {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
  }
}

/* flex-gap fallback (Safari <14.1): grid-gap works there but flex gap
   doesn't, so flex rows collapse (e.g. "#01Content…"). Restore spacing
   with margins only where gap is unsupported, so gap-capable engines
   are untouched. Grid containers keep their gap (grid-gap is older). */
@supports not (gap: 1px) {
  .hero__cta { margin-bottom: -14px; }
  .hero__cta > * { margin: 0 14px 14px 0; }
  .marquee__item { margin-right: 0; }   /* item padding already spaces these */
  .btn { gap: 0; }
  .btn > * { margin-left: 9px; }
  .btn > *:first-child { margin-left: 0; }
  .label { gap: 0; }
  .label::before { margin-right: 9px; }
  .cov__item { gap: 0; }
  .cov__item::before { margin-right: 10px; }
  .plan__list li { gap: 0; }
  .plan__list li::before { margin-right: 11px; }
}
