/* Mazzali Tech — futurista, minimalista, premium */

:root {
  --navy: #0F172A; /* texto em seções claras e nos botões de cobre */
  --steel: #1E3A5F; /* Azul aço — base das seções escuras */
  --steel-mid: #24476F;
  --steel-card: #264A73;
  --steel-elevated: #2A5080;
  --steel-deep: #18324F;
  --navy-mid: var(--steel-mid);
  --navy-card: var(--steel-card);
  --navy-elevated: var(--steel-elevated);
  --copper: #F97316;
  --copper-deep: #EA6A0C;
  --copper-soft: rgba(249, 115, 22, 0.16);
  --cyan: #06B6D4;
  --cyan-soft: rgba(6, 182, 212, 0.16);
  --cyan-ink: #0E7490;
  --copper-ink: #C2410C;
  --silver: #E2E8F0;
  --paper: #F8FAFC;
  --paper-deep: #F1F5F9;
  --ice: #E2E8F0;
  --ink-muted: #475569;
  --muted: #B8C5D6;
  --line: rgba(226, 232, 240, 0.10);
  --line-strong: rgba(226, 232, 240, 0.16);
  --line-light: rgba(15, 23, 42, 0.10);
  --line-light-strong: rgba(15, 23, 42, 0.14);
  --shadow: 0 18px 50px rgba(24, 50, 79, 0.28);
  --shadow-sm: 0 8px 24px rgba(24, 50, 79, 0.18);
  --shadow-light: 0 18px 50px rgba(15, 23, 42, 0.07);
  --shadow-light-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
  --radius: 1.15rem;
  --header-h: 4.5rem;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-sans: "Inter", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--silver);
  background: var(--steel);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(249, 115, 22, 0.28);
  color: var(--silver);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(6, 182, 212, 0.55);
}

a:hover {
  color: #67e8f9;
  text-decoration-color: var(--cyan);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--silver);
  margin: 0 0 0.8rem;
}

h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); }
h3 { font-size: 1.28rem; margin-bottom: 0.55rem; font-weight: 500; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--copper);
  color: var(--navy);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: var(--navy);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(30, 58, 95, 0.80);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(6, 182, 212, 0.08);
}

.site-header.is-scrolled {
  background: rgba(30, 58, 95, 0.94);
  box-shadow: 0 1px 0 rgba(6, 182, 212, 0.14), 0 12px 32px rgba(2, 6, 23, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--silver);
  flex-shrink: 0;
}

.logo:hover { color: var(--silver); text-decoration: none; }

.logo-mark {
  display: flex;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.25));
}

.logo-word {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--silver);
}

.logo-word span {
  font-weight: 500;
  color: var(--silver);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}

.nav-list a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--silver);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--copper), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 0.55rem;
  cursor: pointer;
  color: var(--silver);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before { top: -5px; }
.menu-toggle-bars::after { top: 5px; }

body.menu-open .menu-toggle-bars { background: transparent; }
body.menu-open .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-copper {
  background: var(--copper);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.28), 0 0 0 1px rgba(249, 115, 22, 0.15);
}

.btn-copper:hover,
.btn-copper:focus-visible {
  background: #fb8a38;
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--silver);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(6, 182, 212, 0.55);
  color: var(--silver);
  background: rgba(6, 182, 212, 0.06);
}

.btn-on-dark {
  background: transparent;
  color: var(--silver);
  border-color: rgba(226, 232, 240, 0.28);
}

.btn-on-dark:hover,
.btn-on-dark:focus-visible {
  border-color: var(--cyan);
  color: var(--silver);
  background: rgba(6, 182, 212, 0.08);
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.9rem;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  background: radial-gradient(120% 80% at 80% 0%, rgba(42, 80, 128, 0.55) 0%, rgba(30, 58, 95, 0) 55%), var(--steel);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(6, 182, 212, 0.4) 40%, rgba(249, 115, 22, 0.4) 70%, transparent 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: auto auto -18% -12%;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28) 0%, rgba(30, 58, 95, 0) 70%);
  pointer-events: none;
}

.hero-glow-cyan {
  inset: -22% -16% auto auto;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.26) 0%, rgba(30, 58, 95, 0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.65fr);
  gap: 3rem;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--copper));
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
  flex-shrink: 0;
}

.hero-lead,
.section-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 38rem;
}

.hero-copy .eyebrow {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-lead { margin-top: 1.25rem; }

.hero-line {
  display: block;
}

@media (min-width: 961px) {
  .hero-line { white-space: nowrap; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art-svg {
  width: min(100%, 30rem);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(6, 182, 212, 0.12));
}

/* Sections */

.section {
  padding: clamp(4rem, 8vw, 6.25rem) 0;
  position: relative;
}

.section-dark {
  background: var(--steel);
  color: var(--silver);
}

.section-light {
  --muted: var(--ink-muted);
  --line: var(--line-light);
  --line-strong: var(--line-light-strong);
  --shadow: var(--shadow-light);
  --shadow-sm: var(--shadow-light-sm);
  --cyan: var(--cyan-ink);
  background: var(--paper);
  color: var(--navy);
}

.section-light h1,
.section-light h2,
.section-light h3 {
  color: var(--navy);
}

.section-light a {
  color: var(--cyan-ink);
  text-decoration-color: rgba(14, 116, 144, 0.5);
}

.section-light a:hover {
  color: #155E75;
  text-decoration-color: var(--cyan-ink);
}

.section-light .card {
  background: #fff;
  border-color: var(--line-light);
  box-shadow: var(--shadow-light-sm);
}

.section-light .card::before {
  background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.45), rgba(249, 115, 22, 0.3), transparent);
}

.section-light .service-card:hover,
.section-light .project-card:hover {
  box-shadow: var(--shadow-light);
  border-color: rgba(8, 145, 178, 0.32);
}

.section-light .card-icon {
  background: var(--paper-deep);
  color: var(--navy);
  border-color: var(--line-light);
  box-shadow: none;
}

.section-light .eyebrow::before {
  box-shadow: none;
}

.section-light .faq-list summary {
  color: var(--navy);
}

.section-light .faq-list summary::after {
  border-right-color: var(--cyan-ink);
  border-bottom-color: var(--cyan-ink);
}

.section-light .about-monogram {
  filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.08));
}

.section-header {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section-header h2 { margin-bottom: 0.9rem; }

/* Cards / services */

.service-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.card {
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.45), rgba(249, 115, 22, 0.28), transparent);
  pointer-events: none;
}

.service-card {
  padding: 1.6rem 1.55rem 1.7rem;
  list-style: none;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.5), 0 0 0 1px rgba(6, 182, 212, 0.16), 0 0 24px rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.32);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  color: var(--silver);
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.08);
}

.service-card p,
.project-card p {
  color: var(--muted);
  font-size: 1rem;
}

/* Process */

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.process-step {
  position: relative;
  padding: 0.25rem 0.15rem 0 0;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 3.4rem;
  right: -0.7rem;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--copper) 60%, transparent 100%);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.35);
}

.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin-bottom: 1rem;
}

.process-step p { color: var(--muted); }

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3.5rem;
  align-items: center;
}

.about-frame {
  background: transparent;
  padding: 0;
}

.about-monogram {
  width: min(100%, 22rem);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 0 24px rgba(6, 182, 212, 0.1));
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 1.05rem;
}

.about-copy p:last-child { margin-bottom: 0; }

/* Projects */

.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 1.55rem 1.45rem 1.45rem;
  text-decoration: none;
  color: inherit;
}

.project-card:hover { color: inherit; text-decoration: none; }

.project-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.project-link {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--silver);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-underline-offset: 0.18em;
}

.project-card:hover .project-link {
  text-decoration-color: var(--cyan);
  color: var(--silver);
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}

.faq-intro { margin-bottom: 0; }

.faq-list details {
  border-top: 1px solid var(--line-strong);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: -0.02em;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 0;
  color: var(--muted);
}

/* CTA band */

.cta-band {
  background: var(--steel);
  color: var(--silver);
  padding: clamp(4rem, 8vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(6, 182, 212, 0.28);
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.28);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.08);
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  border: 1px solid rgba(249, 115, 22, 0.22);
  pointer-events: none;
}

.cta-inner { position: relative; max-width: 42rem; }

.cta-band h2 {
  color: var(--silver);
  margin-bottom: 0.85rem;
}

.cta-band p {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* Footer — estrutura adaptada da Planilha Profissional */

.site-footer {
  background: var(--steel-deep);
  color: var(--muted);
  padding: 2.25rem 0 1.75rem;
  border-top: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(249, 115, 22, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--silver);
  text-decoration: none;
  border-radius: 0.45rem;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--copper);
  background: rgba(249, 115, 22, 0.1);
  text-decoration: none;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--silver);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-phone:hover,
.footer-phone:focus-visible {
  color: var(--copper);
  text-decoration: none;
}

.footer-phone svg { flex-shrink: 0; color: var(--copper); }

.footer-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 0.15rem 0 0.35rem;
  font-size: 0.92rem;
}

.footer-meta p { margin: 0; }

.footer-credit a {
  color: var(--silver);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-underline-offset: 0.18em;
}

.footer-credit a:hover {
  color: var(--silver);
  text-decoration-color: var(--cyan);
}

.footer-brand-block {
  text-align: center;
  max-width: 42rem;
  margin: 0.15rem auto 0;
}

.logo-footer {
  color: var(--silver);
  justify-content: center;
  margin-bottom: 0.85rem;
}
.logo-footer:hover { color: var(--silver); }
.logo-footer .logo-word { color: var(--silver); }
.logo-footer .logo-word span { color: var(--silver); }

.footer-brand-line {
  margin: 0 0 0.45rem;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
}

.footer-slogan,
.footer-contact,
.footer-sister {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-contact a,
.footer-sister a {
  color: var(--silver);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-underline-offset: 0.18em;
}

.footer-contact a:hover,
.footer-sister a:hover {
  color: var(--silver);
  text-decoration-color: var(--copper);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--silver);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
}

/* Focus */

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn-copper:focus-visible {
  outline-color: var(--copper);
}

.btn:focus-visible,
.menu-toggle:focus-visible {
  outline-offset: 2px;
}

/* Reveal (JS adds .is-in) */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: none;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .faq-layout,
  .process-list,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .process-step:not(:last-child)::after { display: none; }

  .process-list {
    gap: 1.75rem;
  }

  .process-step {
    padding: 0 0 1.5rem 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .hero-art { order: 0; margin-top: 0.5rem; }
  .hero-art-svg { width: min(100%, 15rem); }
  .about-monogram { width: min(100%, 16rem); }

  .footer-meta {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 800px) {
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.4rem;
    background: rgba(30, 58, 95, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav { display: flex; }
  body.menu-open { overflow: hidden; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    color: var(--silver);
  }

  .nav-list a::after { display: none; }

  .header-cta {
    margin-top: 1rem;
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 1.75rem), var(--max)); }

  .hero { padding-top: 2.2rem; padding-bottom: 2.6rem; }
  .hero-art { margin-top: 0.25rem; }
  .hero-art-svg { width: min(100%, 12rem); }
  .hero-glow,
  .hero-glow-cyan {
    width: 22rem;
    height: 22rem;
    opacity: 0.65;
  }

  .hero-actions,
  .cta-inner .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn { width: 100%; }

  .footer-top { gap: 0.9rem 1.25rem; }
  .footer-social { gap: 0.7rem; }
  .footer-phone { font-size: 1rem; }

  .eyebrow {
    letter-spacing: 0.1em;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}
