/* ============================================================================
   Ferreira Solutions — visual system
   Dark "machine vision" world: near-black base, one committed cyan accent,
   violet only inside glows. Detection/reticle motifs tie to the CV + deepfake
   work. Fonts self-hosted: Clash Display (voice), Hanken Grotesk (body),
   Spline Sans Mono (technical labels — used meaningfully, never as costume).
   ========================================================================== */

/* ----------------------------------- Fonts -------------------------------- */
@font-face {
  font-family: "Clash Display";
  src: url("/assets/fonts/clash-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("/assets/fonts/clash-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("/assets/fonts/spline-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ----------------------------------- Tokens ------------------------------- */
:root {
  /* Surfaces — deep blue-black ramp */
  --bg:        oklch(0.15 0.018 255);
  --bg-deep:   oklch(0.12 0.016 255);
  --surface:   oklch(0.20 0.020 255);
  --surface-2: oklch(0.24 0.022 255);
  --line:      oklch(1 0 0 / 0.09);
  --line-2:    oklch(1 0 0 / 0.14);

  /* Ink — verified ≥4.5:1 on --bg */
  --ink:       oklch(0.97 0.005 250);
  --ink-soft:  oklch(0.82 0.012 250);
  --ink-mute:  oklch(0.66 0.016 250);

  /* Accent — committed cyan; violet is a glow companion only */
  --accent:      oklch(0.84 0.135 195);
  --accent-bright: oklch(0.90 0.13 190);
  --accent-deep: oklch(0.62 0.10 200);
  --violet:      oklch(0.66 0.17 290);
  --accent-ink:  oklch(0.18 0.03 220);      /* text on cyan fills */
  --alert:       oklch(0.72 0.18 25);

  --focus: oklch(0.88 0.12 195);

  --font-display: "Clash Display", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1180px;
  --radius: 18px;
  --radius-lg: 26px;

  --ease: cubic-bezier(0.16, 0.84, 0.32, 1);     /* ease-out-quint-ish */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* z scale */
  --z-bg: 0; --z-base: 1; --z-header: 50; --z-menu: 60;
}

/* ----------------------------------- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

::selection { background: oklch(0.84 0.135 195 / 0.28); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------- Background field ----------------------------- */
/* Fixed: dot grid + two soft glows. Subtle, not glassmorphism. */
.bg-field {
  position: fixed; inset: 0; z-index: var(--z-bg); pointer-events: none;
  background:
    radial-gradient(1100px 700px at 78% -8%, oklch(0.84 0.135 195 / 0.10), transparent 60%),
    radial-gradient(900px 720px at 8% 102%, oklch(0.66 0.17 290 / 0.10), transparent 62%);
}
.bg-field::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.022) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 78%);
}

/* ----------------------------------- Layout ------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.25rem); }
main { position: relative; z-index: var(--z-base); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }

/* --------------------------------- Typography ----------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-weight: 700; }
p { text-wrap: pretty; }

.display {
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 4.9rem);
  line-height: 1.02; letter-spacing: -0.03em;
}
.h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.05rem); letter-spacing: -0.025em; }
.lead { font-size: clamp(1.1rem, 1.02rem + 0.5vw, 1.32rem); color: var(--ink-soft); line-height: 1.55; max-width: 56ch; }
.measure { max-width: 62ch; }

/* Mono technical label — the one deliberate "kicker" system */
.tag {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--accent); text-transform: uppercase;
}
.tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px oklch(0.84 0.135 195 / 0.18);
}
.tag--mute { color: var(--ink-mute); }
.tag--mute .dot { background: var(--ink-mute); box-shadow: none; }

.accent { color: var(--accent); }

/* ----------------------------------- Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.82rem 1.4rem; border-radius: 999px; letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease), color 0.3s;
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 0 oklch(0.84 0.135 195 / 0.5), 0 10px 28px -14px oklch(0.84 0.135 195 / 0.8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px -6px oklch(0.84 0.135 195 / 0.55), 0 14px 30px -14px oklch(0.84 0.135 195 / 0.7); }
.btn-ghost {
  color: var(--ink); border: 1px solid var(--line-2);
  background: oklch(1 0 0 / 0.02);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--ink); background: oklch(0.84 0.135 195 / 0.08); }
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.9rem; }

/* ------------------------------------ Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: oklch(0.13 0.016 255 / 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand .wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; letter-spacing: -0.02em; }
.brand .wordmark b { font-weight: 600; }
.brand .wordmark span { color: var(--ink-mute); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 0.5rem; }
.menu { list-style: none; display: flex; align-items: center; gap: 0.35rem; padding: 0; }
.menu a:not(.btn) {
  display: inline-block; padding: 0.5rem 0.85rem; border-radius: 999px;
  color: var(--ink-soft); font-weight: 500; font-size: 0.96rem;
  transition: color 0.25s, background 0.25s;
}
.menu a:not(.btn):hover { color: var(--ink); background: oklch(1 0 0 / 0.05); }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle .bar { position: relative; }
.nav-toggle .bar::before { position: absolute; top: -6px; }
.nav-toggle .bar::after { position: absolute; top: 6px; }
.nav-open .nav-toggle .bar { background: transparent; }
.nav-open .nav-toggle .bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------- Hero ------------------------------- */
.hero { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-copy > * + * { margin-top: 1.4rem; }
.hero-title { margin-top: 1.1rem; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; margin-top: 2.6rem; padding-top: 1.7rem; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-meta dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-mute); }
.hero-meta dd { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); letter-spacing: -0.01em; }

/* Hero detection visual ----------------------------------------------------- */
.scene {
  position: relative; aspect-ratio: 5 / 4.4; width: 100%;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, oklch(0.22 0.03 240 / 0.9), oklch(0.16 0.02 255 / 0.9));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -50px oklch(0 0 0 / 0.9), inset 0 1px 0 oklch(1 0 0 / 0.05);
  overflow: hidden;
}
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .grid-dots { color: oklch(1 0 0 / 0.10); }
.scene .silhouette { color: oklch(0.62 0.05 250 / 0.55); }
.scene .reticle { color: var(--accent); }
.scene .box { color: var(--accent); }
.scene .box-2 { color: var(--violet); }
.scan-line {
  position: absolute; left: 6%; right: 6%; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  box-shadow: 0 0 14px 1px oklch(0.9 0.13 190 / 0.6);
  opacity: 0.85;
  animation: scan 4.6s var(--ease-soft) infinite;
}
@keyframes scan { 0% { top: 12%; } 50% { top: 84%; } 100% { top: 12%; } }

.chip {
  position: absolute; font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem;
  letter-spacing: 0.02em; color: var(--ink);
  background: oklch(0.14 0.02 255 / 0.82); border: 1px solid var(--line-2);
  padding: 0.28rem 0.55rem; border-radius: 8px; backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.chip .pct { color: var(--accent); }
.chip-live { top: 14px; left: 14px; }
.chip-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 0 3px oklch(0.72 0.18 25 / 0.25); animation: blink 1.8s steps(1) infinite; }
.chip-face { top: 21%; right: 12%; }
.chip-obj { bottom: 26%; left: 11%; color: var(--ink-soft); }
.chip-obj .pct { color: var(--violet); }
@keyframes blink { 50% { opacity: 0.3; } }

.scene-readout {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft);
  background: oklch(0.12 0.018 255 / 0.78); border: 1px solid var(--line);
  padding: 0.55rem 0.7rem; border-radius: 12px; backdrop-filter: blur(6px);
}
.scene-readout .verdict { color: var(--accent); display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.scene-readout .verdict svg { width: 14px; height: 14px; position: static; }

/* --------------------------------- Services ------------------------------- */
.section-head { max-width: 60ch; }
.section-head .h2 { margin-top: 0.9rem; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; margin-top: clamp(2.2rem, 4vw, 3.4rem); }
.svc {
  position: relative; grid-column: span 2; padding: 1.7rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, oklch(0.21 0.02 255 / 0.6), oklch(0.17 0.018 255 / 0.4));
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease), background 0.4s;
  display: flex; flex-direction: column; gap: 0.85rem; min-height: 220px;
}
.svc:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 26px 50px -34px oklch(0 0 0 / 0.9); }
.svc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, oklch(0.84 0.135 195 / 0.5), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.45s var(--ease); pointer-events: none;
}
.svc:hover::after { opacity: 1; }
.svc-lg { grid-column: span 3; }
.svc-feature { grid-column: span 4; }

.svc-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  color: var(--accent); background: oklch(0.84 0.135 195 / 0.10);
  border: 1px solid oklch(0.84 0.135 195 / 0.22);
}
.svc-feature .svc-ico, .svc-lg .svc-ico { color: var(--accent-bright); }
.svc-ico svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.svc-feature h3, .svc-lg h3 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem); }
.svc p { color: var(--ink-soft); font-size: 0.99rem; }
.svc .idx { position: absolute; top: 1.4rem; right: 1.5rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-mute); }

/* Feature tile gets a mini detection motif on the right */
.svc-feature { flex-direction: row; align-items: stretch; gap: 1.6rem; overflow: hidden; }
.svc-feature .svc-body { display: flex; flex-direction: column; gap: 0.85rem; flex: 1; min-width: 0; }
.svc-feature .svc-art {
  flex: none; width: 38%; min-width: 150px; border-radius: 14px; position: relative;
  border: 1px solid var(--line); background: radial-gradient(90% 80% at 50% 0%, oklch(0.2 0.025 240 / 0.8), oklch(0.15 0.02 255 / 0.6));
  color: var(--accent); overflow: hidden;
}
.svc-feature .svc-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --------------------------------- Approach ------------------------------- */
.approach { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: oklch(0.13 0.016 255 / 0.5); }
.approach-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.approach-grid .h2 { margin-top: 0.9rem; }
.approach-copy p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
.principles { display: grid; gap: 1.4rem; }
.principle { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.1rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.principle:last-child { border-bottom: 0; padding-bottom: 0; }
.principle .pnum { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); padding-top: 0.2rem; }
.principle h3 { font-size: 1.18rem; letter-spacing: -0.015em; }
.principle p { color: var(--ink-soft); margin-top: 0.35rem; font-size: 0.98rem; }
.principle .ptext { grid-column: 2; }

/* --------------------------------- Partners ------------------------------- */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 1.2rem; margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.partner {
  position: relative; display: flex; flex-direction: column; gap: 1.1rem;
  padding: 1.9rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, oklch(0.21 0.02 255 / 0.55), oklch(0.16 0.018 255 / 0.35));
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}
.partner:hover { transform: translateY(-4px); border-color: var(--accent-deep); box-shadow: 0 28px 56px -36px oklch(0 0 0 / 0.9); }
.partner-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.partner-logo { height: 30px; width: auto; }
.partner-name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; }
.partner-name em { color: var(--accent); font-style: normal; }
.partner p { color: var(--ink-soft); flex: 1; }
.partner-go { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.partner-go svg { width: 1em; height: 1em; transition: transform 0.4s var(--ease); }
.partner:hover .partner-go svg { transform: translate(3px, -3px); }
.partner .ext { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-mute); }

/* --------------------------------- Contact -------------------------------- */
.contact { text-align: center; }
.contact-card {
  position: relative; max-width: 760px; margin-inline: auto;
  padding: clamp(2.4rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 50% -10%, oklch(0.84 0.135 195 / 0.10), transparent 55%),
    linear-gradient(180deg, oklch(0.2 0.02 255 / 0.7), oklch(0.15 0.018 255 / 0.5));
  overflow: hidden;
}
.contact-card .reticle-corners { position: absolute; inset: 14px; color: oklch(0.84 0.135 195 / 0.35); pointer-events: none; }
.contact-card .h2 { margin-top: 1rem; }
.contact-card p { margin: 1rem auto 0; max-width: 48ch; color: var(--ink-soft); }
.contact-card .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2rem; }
.contact-note { margin-top: 1.6rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-mute); letter-spacing: 0.02em; }

/* ---------------------------------- Footer -------------------------------- */
.site-footer { border-top: 1px solid var(--line); position: relative; z-index: var(--z-base); padding-block: clamp(2.6rem, 5vw, 3.6rem); margin-top: clamp(3rem,6vw,5rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer-brand .brand { margin-bottom: 0.9rem; }
.footer-brand p { color: var(--ink-mute); max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); margin-bottom: 1rem; }
.footer-col a, .footer-col button { display: block; color: var(--ink-soft); padding: 0.3rem 0; font-size: 0.96rem; text-align: left; transition: color 0.25s; }
.footer-col a:hover, .footer-col button:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; align-items: center; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 0.86rem; }
.footer-base .mono { font-family: var(--font-mono); }

/* --------------------------------- Motion --------------------------------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft); }
.js-reveal [data-reveal].in-view { opacity: 1; transform: none; }
.js-reveal [data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-soft); }
.js-reveal [data-stagger].in-view > * { opacity: 1; transform: none; }
.js-reveal [data-stagger].in-view > *:nth-child(2) { transition-delay: 0.06s; }
.js-reveal [data-stagger].in-view > *:nth-child(3) { transition-delay: 0.12s; }
.js-reveal [data-stagger].in-view > *:nth-child(4) { transition-delay: 0.18s; }
.js-reveal [data-stagger].in-view > *:nth-child(5) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal], .js-reveal [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scan-line, .chip-live .dot { animation: none !important; }
  .scan-line { top: 48%; }
  .btn, .svc, .partner { transition: none; }
}

/* ------------------------------- Responsive ------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .scene { max-width: 520px; margin-inline: auto; }
  .approach-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-feature { grid-column: 1 / -1; }
  .svc-lg { grid-column: span 3; }
  .svc { grid-column: span 3; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav .menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: oklch(0.12 0.016 255 / 0.97); backdrop-filter: blur(16px);
    padding: 1rem clamp(1.1rem, 4vw, 2.25rem) 1.4rem; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s; z-index: var(--z-menu);
  }
  .nav-open .menu { transform: none; opacity: 1; pointer-events: auto; }
  .menu a:not(.btn) { padding: 0.7rem 0.5rem; border-radius: 10px; font-size: 1.05rem; }
  .menu li:last-child { margin-top: 0.5rem; }
  .menu .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .bento { grid-template-columns: 1fr; }
  .svc, .svc-lg, .svc-feature { grid-column: 1 / -1; }
  .svc-feature { flex-direction: column; }
  .svc-feature .svc-art { width: 100%; min-height: 150px; }
  .hero-meta { gap: 1.2rem 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
