/* ===========================================
   DESIGN TOKENS — CINEMA (dark, padrão)
   =========================================== */
:root {
  color-scheme: dark;

  /* ---- Fundos ---- */
  --bg: #08090b;
  --bg-soft: #0e1014;
  --surface: #101216;
  --surface-2: #171a20;

  /* ---- Texto ---- */
  --text: #f5f5f2;
  --text-soft: #d0d1d4;
  --muted: #aeb0b5;

  /* ---- Bordas ---- */
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);

  /* ---- Accent ---- */
  --red: #e21b23;
  --red-dark: #a90f16;
  --red-soft: #ff4c52;
  --green: #8dd8a4;

  /* ---- Superfícies compostas ---- */
  --header-bg: rgba(8, 9, 11, .75);
  --header-bg-scroll: rgba(8, 9, 11, .94);
  --card-bg: linear-gradient(145deg, rgba(25, 28, 34, .88), rgba(12, 14, 17, .9));
  --surface-overlay: rgba(16, 18, 22, .78);
  --footer-bg: #060709;
  --shadow: rgba(0, 0, 0, .55);

  /* ---- Grid de fundo ---- */
  --grid-line: rgba(255, 255, 255, .025);
  --grid-mask: linear-gradient(to bottom, #000, transparent 70%);

  /* ---- Interações ---- */
  --focus-ring: #fff;
  --nav-link: #c5c6c9;
  --nav-link-active: #fff;
  --label-color: #dedee1;
  --kicker-color: #d7d8db;

  /* ---- Layout ---- */
  --max: 1200px;
  --gutter: clamp(1.2rem, 4vw, 4rem);
  --radius: 1.25rem;
  --display: "Syne", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===========================================
   DESIGN TOKENS — STUDIO (light)
   =========================================== */
html[data-theme="light"] {
  color-scheme: light;

  --bg: #f7f7f8;
  --bg-soft: #eeeeef;
  --surface: #ffffff;
  --surface-2: #ffffff;

  --text: #101014;
  --text-soft: #3a3a42;
  --muted: #5f6068;

  --line: rgba(10, 10, 15, .1);
  --line-strong: rgba(10, 10, 15, .18);

  --red: #d90412;
  --red-dark: #a6030e;
  --red-soft: #c81020;

  --header-bg: rgba(247, 247, 248, .82);
  --header-bg-scroll: rgba(247, 247, 248, .96);
  --card-bg: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(245, 245, 246, .98));
  --surface-overlay: rgba(238, 238, 239, .82);
  --footer-bg: #101014;
  --shadow: rgba(10, 10, 20, .12);

  --grid-line: rgba(0, 0, 0, .035);
  --grid-mask: linear-gradient(to bottom, #000, transparent 50%);

  --focus-ring: #101014;
  --nav-link: #5f6068;
  --nav-link-active: #101014;
  --label-color: #3a3a42;
  --kicker-color: #4a4a52;
}

/* ===========================================
   TRANSIÇÃO GLOBAL SUAVE ENTRE TEMAS
   =========================================== */
body,
.site-header,
.card,
.project-card,
.service-row,
.btn,
.label,
.site-footer,
.cta-band,
.stat,
.editorial-item,
.contact-channel,
.faq summary,
.faq details p {
  transition:
    background-color .35s ease,
    color .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

/* ===========================================
   RESET E BASE
   =========================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 5%, rgba(226, 27, 35, .11), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 90% 5%, rgba(217, 4, 18, .06), transparent 24rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: var(--grid-mask);
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

::selection { background: var(--red); color: #fff; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: .5rem;
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

/* ===========================================
   LAYOUT
   =========================================== */
.container {
  width: min(calc(100% - (2 * var(--gutter))), var(--max));
  margin-inline: auto;
}

.narrow { max-width: 780px; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-rule { border-top: 1px solid var(--line); }
.surface { background: var(--surface-overlay); }
.stack > * + * { margin-top: 1.25rem; }

/* ===========================================
   TIPOGRAFIA
   =========================================== */
.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.2rem;
  color: var(--kicker-color);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--red);
}

.label {
  display: inline-block;
  padding: .38rem .65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--label-color);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.label--real { border-color: rgba(141, 216, 164, .55); color: var(--green); }
.label--concept { border-color: var(--line-strong); }
.label--ai { border-color: rgba(226, 27, 35, .65); color: var(--red-soft); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.04;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 7vw, 6.9rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.1rem, 4.8vw, 4.4rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: -.025em; }
h4 { font-size: 1.05rem; }
p { margin: 0; }
.lede { max-width: 720px; color: var(--text-soft); font-size: clamp(1.05rem, 2vw, 1.32rem); }
.muted { color: var(--muted); }
.text-red { color: var(--red-soft); }

/* ===========================================
   HEADER
   =========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 76px;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .2s ease, background .2s ease;
}

.site-header.is-scrolled { border-color: var(--line); background: var(--header-bg-scroll); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 50%; }

.site-nav { justify-self: end; }
.site-nav ul { display: flex; align-items: center; gap: 1.55rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--nav-link); font-size: .87rem; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--nav-link-active); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

/* ===========================================
   TOGGLE CINEMA / STUDIO
   =========================================== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  height: 36px;
  padding: 0 .55rem 0 .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
  white-space: nowrap;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.theme-toggle-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--line);
  transition: background .3s ease;
  flex-shrink: 0;
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

html[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(14px);
}

html[data-theme="light"] .theme-toggle-track {
  background: var(--line-strong);
}

/* ===========================================
   BOTÕES
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .8rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2, 0, 0, 1), box-shadow .35s cubic-bezier(.2, 0, 0, 1), background .25s ease, border-color .25s ease, color .25s ease;
  will-change: transform, box-shadow;
}

.btn:hover { 
  transform: translateY(-4px); 
  background: var(--red);
  border-color: var(--red); 
  color: #fff;
  box-shadow: 0 10px 24px rgba(226, 27, 35, 0.4);
}

.btn:active {
  transform: translateY(0) scale(0.97);
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(226, 27, 35, 0.2);
}

.btn-small { min-height: 42px; padding: .55rem 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ===========================================
   PAGE HERO
   =========================================== */
.page-hero { padding: clamp(5rem, 10vw, 9rem) 0 clamp(3.5rem, 7vw, 6rem); }
.page-hero h1 { max-width: 1000px; }
.page-hero .lede { margin-top: 1.6rem; }
.page-hero .actions { margin-top: 2rem; }
.breadcrumbs { margin-bottom: 2rem; color: var(--muted); font-size: .8rem; }
.breadcrumbs a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* ===========================================
   GRIDS
   =========================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 4vw, 4rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

/* ===========================================
   CARDS
   =========================================== */
.card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}

html[data-theme="light"] .card {
  box-shadow: 0 1px 3px var(--shadow), 0 0 0 1px var(--line);
}

.card h3 + p, .card h4 + p { margin-top: .8rem; }
.card p { color: var(--muted); }
.card-index { color: var(--red-soft); font-family: var(--display); font-size: .76rem; font-weight: 700; letter-spacing: .12em; }
.card-index + h3 { margin-top: 2.8rem; }

/* ===========================================
   SECTION HEADING
   =========================================== */
.section-heading { display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, .55fr); gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-heading > p { color: var(--muted); }

/* ===========================================
   SERVICE ROWS
   =========================================== */
.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr minmax(220px, .75fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row:hover h3,
.service-row:hover b { color: var(--red-soft); }
.service-row h3,
.service-row b { transition: color 0.3s ease; }
.service-row span { color: var(--red-soft); font-family: var(--display); font-size: .75rem; }
.service-row p { color: var(--muted); }
.service-row b { font-size: 1.5rem; }

/* ===========================================
   PROJECT CARDS
   =========================================== */
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

html[data-theme="light"] .project-card {
  box-shadow: 0 2px 8px var(--shadow);
}

.project-card > a { display: block; text-decoration: none; }
.project-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.project-card-media img, .project-card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.project-card:hover .project-card-media img, .project-card:hover .project-card-media video { transform: scale(1.035); }
.project-card-body { padding: 1.25rem; }
.project-card-top { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.project-card h3 { font-size: clamp(1.35rem, 2.6vw, 2.2rem); }
.project-card p { margin-top: .7rem; color: var(--muted); }

.project-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); min-height: 520px; }
.project-feature .project-card-media { aspect-ratio: auto; min-height: 100%; }
.project-feature .project-card-body { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.5rem, 4vw, 3rem); }

/* ===========================================
   PROCESS LIST
   =========================================== */
.process-list { counter-reset: process; margin: 0; padding: 0; list-style: none; }
.process-list li { position: relative; display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.process-list li::before { counter-increment: process; content: "0" counter(process); color: var(--red-soft); font-family: var(--display); font-size: .75rem; font-weight: 700; }
.process-list h3 { font-size: 1.25rem; }
.process-list p { margin-top: .5rem; color: var(--muted); }

/* ===========================================
   CHECK LIST
   =========================================== */
.check-list { display: grid; gap: .65rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.55rem; color: var(--text-soft); }
.check-list li::before { content: "↳"; position: absolute; left: 0; color: var(--red-soft); }

/* ===========================================
   STATS
   =========================================== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.stat { padding: 1.5rem; background: var(--surface); }
.stat strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.6rem); }
.stat span { display: block; margin-top: .35rem; color: var(--muted); font-size: .82rem; }

/* ===========================================
   TOOL CLOUD
   =========================================== */
.tool-cloud { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.tool-cloud span { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); font-size: .78rem; }

/* ===========================================
   FAQ
   =========================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 1.35rem 3rem 1.35rem 0; cursor: pointer; color: var(--text); font-family: var(--display); font-size: 1.05rem; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .5rem; font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 760px; padding: 0 3rem 1.35rem 0; color: var(--muted); }

/* ===========================================
   CASE PAGES
   =========================================== */
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.case-meta div { padding-top: 1rem; border-top: 1px solid var(--line); }
.case-meta dt { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.case-meta dd { margin: .4rem 0 0; font-weight: 600; }
.case-media { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.case-media img, .case-media video { width: 100%; height: auto; }
.case-note { margin-top: 1rem; color: var(--muted); font-size: .82rem; }

/* ===========================================
   ARTICLE / BLOG
   =========================================== */
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; justify-content: space-between; gap: 4rem; }
.article-body h2 { margin: 3.5rem 0 1rem; font-size: clamp(1.8rem, 3.8vw, 3rem); }
.article-body h3 { margin: 2rem 0 .8rem; font-size: 1.4rem; }
.article-body p + p, .article-body ul + p, .article-body p + ul { margin-top: 1.1rem; }
.article-body ul { padding-left: 1.25rem; }
.article-body li + li { margin-top: .55rem; }
.article-aside { position: sticky; top: 105px; align-self: start; padding-left: 1.25rem; border-left: 1px solid var(--line); }
.article-aside a { color: var(--muted); text-underline-offset: 3px; }
.article-aside a:hover { color: var(--nav-link-active); }
.author { display: grid; grid-template-columns: 54px 1fr; gap: 1rem; align-items: center; margin-top: 2rem; }
.author img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.author p { color: var(--muted); font-size: .85rem; }

.editorial-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.editorial-item { padding: 1.4rem; background: var(--bg); }
.editorial-item span { color: var(--red-soft); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.editorial-item h3 { margin-top: .65rem; font-size: 1.15rem; line-height: 1.35; }

/* ===========================================
   CONTACT
   =========================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr); gap: clamp(2rem, 7vw, 7rem); }
.contact-channel { display: block; padding: 1.35rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.contact-channel:last-child { border-bottom: 1px solid var(--line); }
.contact-channel span { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-channel strong { display: block; margin-top: .25rem; font-family: var(--display); font-size: clamp(1.15rem, 3vw, 1.8rem); }

/* ===========================================
   CTA BAND
   =========================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid rgba(226, 27, 35, .45);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(226, 27, 35, .17), rgba(16, 18, 22, .9) 55%);
}

html[data-theme="light"] .cta-band {
  background: linear-gradient(120deg, rgba(217, 4, 18, .08), rgba(247, 247, 248, .92) 55%);
  border-color: rgba(217, 4, 18, .25);
}

.cta-band::after { content: ""; position: absolute; top: -80%; right: -10%; width: 18rem; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 4rem rgba(255,255,255,.018), 0 0 0 8rem rgba(255,255,255,.012); }

html[data-theme="light"] .cta-band::after {
  border-color: rgba(217, 4, 18, .1);
  box-shadow: 0 0 0 4rem rgba(217, 4, 18, .02), 0 0 0 8rem rgba(217, 4, 18, .01);
}

.cta-band > * { position: relative; z-index: 1; }
.cta-band p { max-width: 680px; margin-top: 1rem; color: var(--text-soft); }
.cta-band .actions { margin-top: 1.5rem; }

/* ===========================================
   FOOTER — SEMPRE DARK (IDENTIDADE DA MARCA)
   =========================================== */
.site-footer {
  padding: 4rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: var(--footer-bg);
  color: #f5f5f2;
}

.site-footer a { color: #c9cace; }
.site-footer a:hover { color: #fff; }

.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h2, .footer-grid h3 { margin-bottom: 1rem; font-family: var(--body); font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; color: #f5f5f2; }
.footer-grid p { max-width: 380px; color: #aeb0b5; font-size: .9rem; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li + li { margin-top: .5rem; }
.footer-grid a { font-size: .88rem; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); color: #aeb0b5; font-size: .75rem; }

/* ===========================================
   REVEAL / SCROLL ANIMATIONS
   =========================================== */
.reveal { opacity: 1; transform: none; }

@supports (animation-timeline: view()) {
  @keyframes reveal-on-scroll {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-on-scroll linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
  }
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 980px) {
  .header-cta { display: none; }
  .header-inner { grid-template-columns: auto auto auto; justify-content: space-between; }
  .js .nav-toggle { display: inline-grid; place-items: center; z-index: 2; }
  .site-nav { position: absolute; top: 76px; left: 0; right: 0; display: block; padding: 1rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--line); background: var(--header-bg-scroll); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: .8rem 0; font-size: 1rem; }
  .project-feature, .article-layout { grid-template-columns: 1fr; }
  .project-feature .project-card-media { min-height: 380px; }
  .article-aside { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 1.15rem; }
  .section-heading, .grid-2, .grid-3, .grid-4, .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 2.5rem 1fr auto; gap: .8rem; }
  .service-row p { grid-column: 2 / -1; }
  .project-feature { min-height: 0; }
  .project-feature .project-card-media { min-height: 270px; }
  .stats { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .editorial-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .theme-toggle-label { display: none; }
  .theme-toggle { padding: 0 .5rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .case-meta { grid-template-columns: 1fr; }
  .process-list li { grid-template-columns: 2.5rem 1fr; gap: .8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > * { grid-column: auto; }
}

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