/* ============================================================
   Zeta Firma Legal — Estilos principales
   ============================================================ */

/* === RESET === */

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

html { scroll-behavior: auto; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.7;
}

::selection { background: var(--arctic); color: var(--black); }

/* === TOKENS === */

:root {
  --black:      #000000;
  --jet:        #1a1b1a;
  --cream:      #faf5f0;
  --arctic:     #e6dccf;
  --warm-white: #fafff1;
  --script:     'Jost', sans-serif;
  --body:       'Jost', sans-serif;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* === NAVIGATION === */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), backdrop-filter 0.5s;
}

nav.scrolled {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  padding: 1.2rem 4rem;
  border-bottom: 1px solid rgba(230,220,207,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--arctic);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--cream);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--cream);
  transform-origin: center;
  transition: transform 0.4s var(--ease), opacity 0.3s, width 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay ul {
  list-style: none;
  text-align: center;
}

.nav-overlay ul li {
  overflow: hidden;
  margin: 0.5rem 0;
}

.nav-overlay ul li a {
  display: block;
  font-family: var(--script);
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(100%);
  opacity: 0;
  transition: color 0.3s;
}

.nav-overlay.open ul li a {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease), color 0.3s;
}

.nav-overlay ul li:nth-child(1) a { transition-delay: 0.05s; }
.nav-overlay ul li:nth-child(2) a { transition-delay: 0.1s; }
.nav-overlay ul li:nth-child(3) a { transition-delay: 0.15s; }
.nav-overlay ul li:nth-child(4) a { transition-delay: 0.2s; }
.nav-overlay ul li:nth-child(5) a { transition-delay: 0.25s; }
.nav-overlay ul li:nth-child(6) a { transition-delay: 0.3s; }
.nav-overlay ul li a:hover { color: var(--arctic); }

/* === HERO === */

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--black);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

#hero-canvas canvas,
#hero-canvas .waves-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(0,0,0,0.88) 0%,
    rgba(26,27,26,0.60) 50%,
    rgba(0,0,0,0.88) 100%);
  z-index: 1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230,220,207,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,220,207,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: heroGridShift 20s linear infinite;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  gap: 2rem;
  padding: 0 clamp(2rem, 8vw, 8rem);
  pointer-events: none;
}

.hero-main-logo {
  width: 100%;
  max-width: clamp(280px, 50vw, 640px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.55));
  animation: heroFadeUp 0.8s var(--ease) 0.3s both;
}

.hero-slogan {
  font-family: var(--body);
  font-size: clamp(0.85rem, 1.5vw + 0.4rem, 1.3rem);
  color: var(--arctic);
  text-align: center;
  max-width: 520px;
  letter-spacing: 0.06em;
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  animation: heroFadeUp 0.8s var(--ease) 0.6s both;
}

.hero-cta {
  pointer-events: auto;
  display: inline-block;
  padding: 1rem 3rem;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--arctic);
  border: 1px solid rgba(230,220,207,0.4);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  animation: heroFadeUp 0.8s var(--ease) 0.9s both;
}

.hero-cta:hover {
  background: rgba(230,220,207,0.12);
  border-color: var(--arctic);
  color: var(--cream);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(230,220,207,0.08);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) 1.2s both;
}

.scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  text-transform: uppercase;
  color: var(--arctic);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--arctic), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* === SECTIONS — BASE === */

section {
  padding: clamp(5rem, 12vw, 10rem) clamp(1.5rem, 6vw, 8rem);
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--arctic);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
}

.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--arctic);
  flex-shrink: 0;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--arctic), transparent);
  transform: scaleX(0);
  transform-origin: left;
}

/* Mask reveal */
.reveal-wrap { overflow: hidden; display: block; }
.reveal-inner { display: block; transform: translateY(105%); }

/* === BUTTONS === */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: color 0.4s;
}

.btn-primary {
  background: var(--cream);
  color: var(--black);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--arctic);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
}

.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250,245,240,0.35);
  transition: border-color 0.3s, color 0.3s;
}

.btn-outline:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.magnetic-wrap { display: inline-block; }

/* === ABOUT === */

#about {
  background: var(--jet);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-headline {
  font-family: var(--script);
  font-size: clamp(3rem, 6vw, 6rem);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 300;
  color: var(--arctic);
  line-height: 1.9;
  max-width: 55ch;
}

.about-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.big-15 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230,220,207,0.28);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.years-label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--arctic);
  margin-top: -1rem;
  text-align: center;
}

/* === MISSION / VISION === */

#mission { background: var(--black); }

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  margin-top: 3rem;
}

.mv-card {
  padding: 3rem;
  border: 1px solid rgba(230,220,207,0.1);
  border-left: 2px solid rgba(230,220,207,0.35);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, border-left-color 0.4s;
}

.mv-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--arctic);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.mv-card:hover::before { transform: scaleX(1); }
.mv-card:hover {
  border-color: rgba(230,220,207,0.25);
  border-left-color: var(--arctic);
}

.mv-card-label {
  font-family: var(--script);
  font-size: 3.5rem;
  color: rgba(230,220,207,0.22);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.mv-card h3 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--arctic);
  margin-bottom: 1rem;
}

.mv-card p {
  font-size: 0.95rem;
  color: rgba(250,245,240,0.75);
  line-height: 1.9;
  font-weight: 300;
}

/* Values */
.values-strip {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.value-item {
  display: block;
  padding: 2.5rem;
  border: 1px solid rgba(230,220,207,0.1);
  border-left: 2px solid rgba(230,220,207,0.25);
  opacity: 0;
  position: relative;
  overflow: hidden;
  transition: border-left-color 0.4s, border-color 0.4s;
}

.value-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--arctic);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.value-item:hover {
  border-left-color: var(--arctic);
  border-color: rgba(230,220,207,0.2);
}

.value-item:hover::after { transform: scaleX(1); }

.value-dot {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--arctic);
  margin-bottom: 1.4rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.value-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.value-desc {
  display: block;
  font-size: 0.9rem;
  color: rgba(250,245,240,0.6);
  font-weight: 300;
  line-height: 1.85;
}

/* === SERVICES === */

#services {
  background: var(--jet);
  position: relative;
  overflow: hidden;
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 5rem;
}

.services-headline {
  font-family: var(--script);
  font-size: clamp(3rem, 6vw, 6.5rem);
  color: var(--cream);
  line-height: 1;
}

.services-intro {
  font-size: 0.95rem;
  color: rgba(250,245,240,0.6);
  font-weight: 300;
  line-height: 1.9;
  max-width: 48ch;
}

.services-list { list-style: none; }

.service-item {
  border-bottom: 1px solid rgba(230,220,207,0.1);
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(230,220,207,0.04);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

.service-item:hover::before { transform: scaleX(1); }
.service-item:hover,
.service-item.is-open { border-color: rgba(230,220,207,0.45); }

.service-header {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  user-select: none;
}

.service-num {
  font-family: var(--body);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 100;
  color: rgba(230,220,207,0.30);
  line-height: 1;
  transition: color 0.4s;
}

.service-item:hover .service-num,
.service-item.is-open .service-num { color: var(--arctic); }

.service-name {
  font-family: var(--body);
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 300;
  color: var(--cream);
  transition: color 0.3s;
  line-height: 1.35;
}

.service-item:hover .service-name,
.service-item.is-open .service-name { color: var(--warm-white); }

.service-arrow {
  font-size: 1rem;
  color: rgba(230,220,207,0.35);
  transition: color 0.3s, transform 0.4s var(--ease);
  flex-shrink: 0;
}

.service-item:hover .service-arrow { color: var(--arctic); }
.service-item.is-open .service-arrow {
  color: var(--arctic);
  transform: rotate(180deg);
}

.service-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease);
}

.service-item.is-open .service-expand { max-height: 600px; }

.service-expand-inner { padding: 0 2rem 2rem calc(5rem + 2rem); }

.service-full-desc {
  font-size: 0.92rem;
  color: rgba(230,220,207,0.65);
  font-weight: 300;
  line-height: 1.85;
  max-width: 72ch;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* === MARQUEE === */

.marquee-section {
  background: var(--black);
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(230,220,207,0.08);
  border-bottom: 1px solid rgba(230,220,207,0.08);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-shrink: 0;
}

.marquee-word {
  font-family: var(--script);
  font-size: 2.8rem;
  color: rgba(250,245,240,0.12);
}

.marquee-word.is-arctic { color: rgba(230,220,207,0.28); }

.marquee-dot {
  width: 6px;
  height: 6px;
  background: var(--arctic);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.4;
}

/* === STATS === */

#stats {
  background: var(--cream);
  color: var(--black);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
}

.stat-block {
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 4rem);
  border-right: 1px solid rgba(0,0,0,0.1);
  position: relative;
}

.stat-block:last-child { border-right: none; }

.stat-num {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 6vw, 6rem);
  color: var(--black);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  font-weight: 400;
}

/* === CONTACT === */

#contact {
  background: var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
}

.contact-headline {
  font-family: var(--script);
  font-size: clamp(3rem, 6vw, 6rem);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.contact-copy {
  font-size: 0.95rem;
  color: rgba(250,245,240,0.6);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 3rem;
  max-width: 45ch;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--arctic);
  letter-spacing: 0.05em;
}

.contact-details .icon {
  width: 30px;
  height: 1px;
  background: var(--arctic);
  flex-shrink: 0;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group { position: relative; }

.form-group label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--arctic);
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(230,220,207,0.25);
  color: var(--cream);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.8rem 0;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group select { cursor: pointer; }
.form-group select option { background: var(--jet); color: var(--cream); }

.form-group textarea {
  resize: none;
  height: 100px;
  line-height: 1.7;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--cream); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(250,245,240,0.25); }

.form-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--cream);
  transition: width 0.4s var(--ease);
  pointer-events: none;
}

.form-group:focus-within .form-line { width: 100%; }

.form-error {
  font-size: 0.7rem;
  color: #c0392b;
  margin-top: 0.3rem;
  display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select { border-color: rgba(192,57,43,0.5); }

.form-group.error .form-error { display: block; }

.form-submit { margin-top: 1rem; }

.form-success {
  display: none;
  padding: 1.5rem;
  border: 1px solid rgba(230,220,207,0.3);
  text-align: center;
  font-size: 0.85rem;
  color: var(--arctic);
  letter-spacing: 0.1em;
}

/* === FOOTER === */

footer {
  background: var(--jet);
  padding: clamp(3rem, 5vw, 5rem) clamp(1.5rem, 6vw, 8rem);
  border-top: 1px solid rgba(230,220,207,0.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--script);
  font-size: 2.5rem;
  color: var(--cream);
  text-decoration: none;
}

.footer-center { text-align: center; }

.footer-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--arctic);
  margin-bottom: 0.3rem;
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(230,220,207,0.25);
}

.footer-right { display: flex; justify-content: flex-end; }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230,220,207,0.35);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--cream); }

/* === UTILITIES === */

.arctic-accent {
  color: var(--arctic) !important;
  font-weight: 400;
}

.about-body .arctic-accent {
  color: var(--cream) !important;
  font-weight: 400;
  opacity: 0.85;
}

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

.js-hide { opacity: 0; }

/* === KEYFRAMES === */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroGridShift {
  0%   { transform: translate(0,0); }
  100% { transform: translate(60px,60px); }
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

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

/* === RESPONSIVE === */

@media (max-width: 1024px) {
  #about,
  #contact { grid-template-columns: 1fr; }

  .about-right { display: none; }
  .mv-grid { grid-template-columns: 1fr; }
  .services-header { grid-template-columns: 1fr; }

  #stats { grid-template-columns: 1fr 1fr; }
  .stat-block:nth-child(2) { border-right: none; }
  .stat-block:last-child { border-top: 1px solid rgba(0,0,0,0.1); grid-column: 1 / -1; }

  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-right { justify-content: center; }
}

@media (max-width: 768px) {
  nav { padding: 1.5rem 2rem; }
  nav.scrolled { padding: 1rem 2rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  section { padding: 5rem 1.5rem; }
  #about, #contact { padding: 5rem 1.5rem; }

  .service-item { overflow: visible; }
  .service-header { grid-template-columns: 3.5rem 1fr auto; gap: 1rem; }
  .service-item.is-open .service-expand { max-height: none; }
  .service-expand-inner { padding: 0 1rem 1.5rem calc(3.5rem + 1rem); }
  .service-full-desc { font-size: 0.88rem; line-height: 1.75; }
  .values-strip { grid-template-columns: 1fr; }

  #stats { grid-template-columns: 1fr; }
  .stat-block { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); }
  .stat-block:last-child { border-bottom: none; grid-column: auto; }

  footer { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
  .service-header { grid-template-columns: 2.5rem 1fr auto; }
  .service-expand-inner { padding: 0 0.5rem 1.5rem calc(2.5rem + 0.5rem); }
  .service-name { font-size: 0.92rem; }
}
