@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;450;500;600;700&display=swap');

/* ============================================================
   InnoWave Technologies — graphite + copper
   Cool light-grey base for readability; copper (#996633, from the logo)
   used as a deliberate accent — and made readable by appearing as fills,
   an underline, or on dark, never as low-contrast body text.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f4f6;          /* cool light grey — section surfaces */
  --bg-2: #e9ebef;             /* one shade deeper for layering */
  --bg-deep: #14161b;          /* cool graphite — dark sections */
  --ink: #14161b;             /* strong, slightly cool near-black */
  --ink-2: #434956;           /* readable body grey */
  --muted: #767d8a;           /* muted grey */
  --line: #e5e7eb;            /* hairline */
  --line-2: #d4d8df;          /* stronger hairline */
  --brand: #996633;            /* InnoWave copper — from the logo */
  --brand-deep: #7a4e25;       /* copper for small text on light (AA) */
  --brand-bright: #d59a5c;     /* lighter copper — for use on dark */
  --brand-tint: #f3ece2;       /* faint copper wash for badges */
  --grad-soft: linear-gradient(180deg, #f7f8fa 0%, #ffffff 72%);
  --shadow-sm: 0 1px 2px rgba(20,22,27,.05);
  --shadow: 0 16px 34px -22px rgba(20,22,27,.24);
  --shadow-lg: 0 30px 60px -32px rgba(20,22,27,.32);
  --r: 14px;
  --max: 1140px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink-2);
  font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;   /* belt-and-braces against accidental horizontal scroll on mobile */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }   /* content images never overflow their column */
::selection { background: var(--brand); color: #fff; }

h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }

/* ── Layout ──────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section--tight { padding: 3.5rem 0; }
.alt { background: var(--bg-soft); }
.divider { border: 0; border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: 'Inter', sans-serif; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
  background: none; border: 0; padding: 0;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); flex: none; }
.eyebrow--plain::before { display: none; }
.eyebrow--plain { color: var(--brand-deep); }

.lead { font-size: 1.2rem; color: var(--ink-2); }
.muted { color: var(--muted); }

.display { font-size: clamp(2.6rem, 5.6vw, 4.05rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; color: var(--ink); }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; }
.h3 { font-size: 1.18rem; font-weight: 600; font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.01em; }
/* Readable accent: near-black text with a copper underline stroke (not low-contrast copper text). */
.grad-text {
  color: var(--ink);
  background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 100% 0.14em;
  background-position: 0 92%;
  background-repeat: no-repeat;
  padding-bottom: 0.04em;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  padding: 0.78rem 1.4rem; font-size: 0.95rem; font-weight: 600; font-family: 'Inter', sans-serif;
  letter-spacing: -0.005em;
  border-radius: 8px; border: 1px solid transparent; transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.18); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #f2ede6; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }
.textlink { color: var(--brand-deep); font-weight: 600; }
.textlink:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; display: block; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.navbar__links { display: flex; align-items: center; gap: 0.3rem; }
.navbar__links a { padding: 0.5rem 0.9rem; border-radius: 8px; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); transition: color .15s ease, background-color .15s ease; }
.navbar__links a:hover { color: var(--brand); background: var(--bg-soft); }
.navbar__right { display: flex; align-items: center; gap: 0.8rem; }
.nav-burger { display: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 0.5rem; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* Active page indicator */
.navbar__links a.is-active,
.navbar__item--menu.is-active > a { color: var(--brand-deep); background: var(--brand-tint); font-weight: 600; }

/* Services dropdown (CSS-only; opens on hover/focus) */
.navbar__item--menu { position: relative; display: inline-flex; align-items: center; }
.navbar__caret { display: inline-block; margin-left: 0.34rem; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; transition: transform .15s ease; }
.navbar__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 256px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 0.4rem; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.navbar__menu a { padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.navbar__menu a:hover { color: var(--brand); background: var(--bg-soft); }
.navbar__item--menu:hover .navbar__menu,
.navbar__item--menu:focus-within .navbar__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.navbar__item--menu:hover .navbar__caret { transform: rotate(180deg); }

@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .navbar__links { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 0.5rem; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
  .navbar__links a { padding: 0.85rem 1rem; }
  .nav-toggle:checked ~ .navbar__inner .navbar__links { max-height: 70vh; padding: 0.5rem; }
  .nav-toggle:checked ~ .navbar__inner .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .navbar__inner .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .navbar__inner .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle:checked ~ .navbar__inner .navbar__links { overflow-y: auto; }
  .navbar__cta-desktop { display: none; }

  /* Dropdown collapses to inline, indented items inside the mobile sheet */
  .navbar__item--menu { display: block; }
  .navbar__caret { display: none; }
  .navbar__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; min-width: 0; padding: 0 0 0.3rem 0.9rem; }
  .navbar__menu a { padding: 0.6rem 1rem; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--grad-soft); border-bottom: 1px solid var(--line); }
/* Signature: concentric "ripple" rings (the InnoWave mark) radiating behind the console. */
.hero__rings {
  position: absolute; pointer-events: none; z-index: 0;
  top: 46%; right: -6%; width: 860px; aspect-ratio: 1; transform: translateY(-50%);
  background: repeating-radial-gradient(circle at center,
    rgba(153,102,51,.22) 0 1.6px, transparent 1.6px 38px);
  -webkit-mask-image: radial-gradient(circle at center, #000 8%, transparent 70%);
          mask-image: radial-gradient(circle at center, #000 8%, transparent 70%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; padding: 5.5rem 0; }

/* Orchestrated hero entrance: rings bloom once, content rises in sequence. */
@media (prefers-reduced-motion: no-preference) {
  .hero__rings { animation: ringsBloom 1.4s cubic-bezier(.16,.8,.3,1) both, ringsPulse 7s ease-in-out 1.4s infinite; }
  .hero__grid > div:first-child > * { animation: heroRise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero__grid > div:first-child > *:nth-child(1) { animation-delay: .05s; }
  .hero__grid > div:first-child > *:nth-child(2) { animation-delay: .12s; }
  .hero__grid > div:first-child > *:nth-child(3) { animation-delay: .19s; }
  .hero__grid > div:first-child > *:nth-child(4) { animation-delay: .26s; }
  .hero__grid > div:first-child > *:nth-child(5) { animation-delay: .33s; }
  .hero__visual { animation: heroPop .85s cubic-bezier(.2,.7,.2,1) .22s both; }
}
@keyframes ringsBloom { from { opacity: 0; transform: translateY(-50%) scale(.6); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
@keyframes ringsPulse { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes heroPop { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }
.hero__lead { max-width: 50ch; margin-top: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-top: 2.5rem; font-size: 0.82rem; color: var(--muted); }
.hero__trust b { color: var(--ink); font-weight: 600; }

/* ── Scroll reveal ───────────────────────────────────────────
   Pure-CSS scroll-driven reveal (Chromium view() timelines). Gated by @supports
   so non-supporting browsers and reduced-motion users see content normally. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head { animation: revealUp linear both; animation-timeline: view(); animation-range: entry 2% cover 26%; }
    .stat { animation: revealUp linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .stat:nth-child(2) { animation-range: entry 5% cover 32%; }
    .stat:nth-child(3) { animation-range: entry 10% cover 36%; }
    .stat:nth-child(4) { animation-range: entry 15% cover 40%; }
  }
}
@keyframes revealUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* App-window mockup — a calm "console" listing real products (honest, on-brand). */
.mockup { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mockup__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mockup__bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #d9d3ca; }
.mockup__title { margin-left: 8px; font-size: 0.74rem; color: var(--muted); font-weight: 500; }
.mockup__app { display: grid; grid-template-columns: 132px 1fr; min-height: 248px; }
.mk-side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.mk-logo { display: flex; align-items: center; gap: 7px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 0.82rem; color: var(--ink); padding: 4px 8px 12px; }
.mk-logo b { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, var(--brand) 0 2px, transparent 2px 4px, var(--brand) 4px 5px, transparent 5px); }
.mk-nav { font-size: 0.8rem; color: var(--muted); padding: 7px 9px; border-radius: 7px; }
.mk-nav.is-active { color: var(--brand-deep); background: var(--brand-tint); font-weight: 600; }
.mk-main { padding: 16px 18px; }
.mk-main-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mk-main-head span:first-child { font-family: 'Space Grotesk'; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.mk-chip { font-size: 0.68rem; color: var(--brand-deep); background: var(--brand-tint); padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.mk-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px 2px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--ink-2); }
.mk-row:first-of-type { border-top: 0; }
.mk-dot { width: 7px; height: 7px; border-radius: 50%; background: #58a06f; }
.mk-dot.build { background: var(--brand); }
.mk-meta { font-size: 0.72rem; color: var(--muted); }

/* ── Section heads ───────────────────────────────────────── */
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .h2 { margin-top: 1rem; }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }

/* ── Cards / grids ───────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.cell, .cardlink {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.9rem;
}
.cardlink { display: block; transition: border-color .2s ease, box-shadow .2s ease; }
.cardlink:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.cardlink h3 { transition: color .15s ease; }
.cardlink:hover h3 { color: var(--brand-deep); }
.cell--alt { background: var(--bg-soft); }

.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-deep); margin-bottom: 1.2rem; }
.icon-badge svg { width: 21px; height: 21px; }
.card-num { font-family: 'Space Grotesk'; font-weight: 700; font-size: 0.85rem; color: var(--brand-deep); }

.tag { display: inline-block; font-size: 0.74rem; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.7rem; }

/* ── Stats band ──────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat { text-align: center; padding: 1.5rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(255,255,255,.12); }
.stat__n { font-family: 'Space Grotesk'; font-weight: 700; font-size: clamp(2.1rem, 4.2vw, 2.9rem); color: var(--brand-bright); letter-spacing: -0.03em; }
.stat__l { color: rgba(255,255,255,.62); font-size: 0.92rem; margin-top: 0.4rem; }

/* ── Quote ───────────────────────────────────────────────── */
.quote { max-width: 60ch; margin: 0 auto; text-align: center; }
.quote p { font-family: 'Space Grotesk'; font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--ink); letter-spacing: -0.01em; }
.quote span { display: block; margin-top: 1.5rem; color: var(--muted); font-size: 0.95rem; }


/* ── Prose ───────────────────────────────────────────────── */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.6rem; }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.8rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-top: 0.45rem; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose code { background: var(--bg-soft); padding: 0.12rem 0.4rem; border-radius: 5px; font-size: 0.9em; }

/* ── Forms ───────────────────────────────────────────────── */
.field { display: block; margin-bottom: 1.2rem; }
.field > span { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.97rem; color: var(--ink);
  padding: 0.8rem 0.95rem; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa1ad; }
.field select { cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(153,102,51,.14); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.contact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2.4rem); }
.contact-card .field:last-of-type { margin-bottom: 1.6rem; }
.contact-aside { display: flex; flex-direction: column; gap: 1rem; }
.contact-aside .cell { padding: 1.15rem 1.35rem; }
.contact-aside .cell p:not(.eyebrow) { margin-top: 0.5rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* Form validation — instant (CSS :user-invalid, no JS) + server fallback, both red */
.field__hint { display: none; color: #c0392b; font-size: 0.85rem; margin-top: 0.4rem; }
.field :is(input, textarea, select):user-invalid { border-color: #dc2626; }
.field :is(input, textarea, select):user-invalid:focus { box-shadow: 0 0 0 4px rgba(220,38,38,.14); }
.field :is(input, textarea, select):user-invalid ~ .field__hint { display: block; }
.field .invalid { border-color: #dc2626; }
.field .invalid:focus { box-shadow: 0 0 0 4px rgba(220,38,38,.14); }
.validation-message { display: block; color: #c0392b; font-size: 0.85rem; margin-top: 0.4rem; font-weight: 500; }
.note { font-size: 0.92rem; padding: 0.85rem 1rem; border-radius: 10px; }
.note--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.note--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Dark sections (CTA / footer) ────────────────────────── */
.band { position: relative; overflow: hidden; background: var(--bg-deep); color: rgba(255,255,255,.72); }
.band::before { content:""; position:absolute; inset:0; background: radial-gradient(72% 130% at 50% -10%, rgba(213,154,92,.22), transparent 55%); pointer-events:none; }
.band .wrap { position: relative; }
.band h2, .band .h2, .band .display { color: #fff; }
.band .eyebrow { background: none; border: 0; color: rgba(255,255,255,.66); }
.band .eyebrow::before { background: var(--brand-bright); }

.site-footer { background: var(--bg-deep); color: rgba(255,255,255,.62); padding: 4.5rem 0 2.5rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 2.5rem; }
.site-footer img { height: 30px; margin-bottom: 1.1rem; filter: brightness(0) invert(1); opacity: .92; }
.site-footer h4 { color: #fff; font-family: 'Space Grotesk'; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: 0; text-transform: none; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255,255,255,.62); font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.site-footer__base { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,.45); }

/* Footer subscribe form (on the dark footer) */
.subscribe { margin-top: 1.6rem; max-width: 32ch; }
.subscribe__label { display: block; font-size: 0.85rem; color: rgba(255,255,255,.7); margin-bottom: 0.6rem; }
.subscribe__row { display: flex; gap: 0.5rem; }
.subscribe__row input { flex: 1; min-width: 0; font: inherit; font-size: 0.92rem; color: #fff; padding: 0.6rem 0.8rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.subscribe__row input::placeholder { color: rgba(255,255,255,.4); }
.subscribe__row input:focus { outline: none; border-color: var(--brand-3, #d6a566); background: rgba(255,255,255,.1); }
.subscribe__row .btn { padding: 0.6rem 1rem; white-space: nowrap; }
.subscribe__msg { margin-top: 0.7rem; font-size: 0.85rem; }
.subscribe__msg--ok { color: #8fd0a8; }
.subscribe__msg--err { color: #f0a58a; }

:where(a, button, input, textarea, select, summary, label):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 0; }
  .hero__visual { order: 2; max-width: 520px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
/* Asymmetric two-column page layouts (About / Contact / Portfolio detail / Blog rows) that use an
   inline grid for the desktop split — collapse them to one column on tablet/phone. !important so the
   media query beats the element's inline grid-template-columns. */
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr !important; gap: 2.4rem !important; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 4rem 0; }
  .grid-2, .grid-3, .stats, .row2 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .mockup__body { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
