/* =========================================================
   Grupo TFP Chile — Stylesheet
   Paleta derivada del logo. Profesional y minimalista.
   ========================================================= */

:root {
  /* Primarios */
  --navy:     #1F3557;
  --steel:    #6E88A6;

  /* Neutros */
  --ink:      #1E2A3B;
  --muted:    #5C6B7E;
  --bg:       #FFFFFF;
  --bg-alt:   #F4F7FA;
  --line:     #E4EAF0;

  /* Acento */
  --accent:   #C9A67B;

  /* Tipografía */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala */
  --maxw: 1160px;
  --gutter: clamp(1.25rem, 3vw, 2rem);
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(31, 53, 87, 0.04), 0 1px 3px rgba(31, 53, 87, 0.06);
  --shadow-md: 0 6px 20px rgba(31, 53, 87, 0.08);
  --transition: 220ms cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--steel); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =========================================================
   Navegación
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 1.5rem;
}
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 60px; width: auto; }

.nav__menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav__menu a:hover::after { width: 100%; }

.nav__cta {
  background: var(--navy);
  color: #fff !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--steel); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(5rem, 12vh, 8rem);
  background:
    radial-gradient(ellipse at top right, rgba(110, 136, 166, 0.12), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(201, 166, 123, 0.08), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 70%);
  opacity: 0.45;
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 880px; }

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 1.25rem;
}
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.75rem;
}

.hero__title {
  font-size: clamp(2.2rem, 5.2vw, 3.75rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--steel);
  font-weight: 500;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--steel);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  opacity: 0.7;
}
.hero__scroll span {
  width: 3px;
  height: 8px;
  background: var(--steel);
  border-radius: 2px;
  margin-top: 6px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =========================================================
   Botones
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font: 500 0.95rem/1 var(--font-sans);
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn--primary:hover {
  background: var(--steel);
  border-color: var(--steel);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* =========================================================
   Secciones
   ========================================================= */
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.section--alt { background: var(--bg-alt); }

.section__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.section__head { position: relative; }
.section__head--center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.9rem;
}
.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1rem;
}
.section__head--center .section__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--accent);
  margin: 1.25rem auto 0;
}
.section__intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-inline: auto;
}

/* Prose */
.prose { max-width: 680px; color: var(--ink); }
.prose p { margin-bottom: 1.25em; font-size: 1.05rem; }
.prose .lead { font-size: 1.18rem; color: var(--navy); }
.prose a {
  color: var(--navy);
  border-bottom: 1px solid var(--accent);
  transition: color var(--transition), border-color var(--transition);
}
.prose a:hover { color: var(--steel); border-color: var(--steel); }

.link-more {
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--accent);
  display: inline-block;
}

/* Pilares */
.pillars {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.pillars li h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.pillars li p {
  font-size: 0.96rem;
  color: var(--muted);
  margin: 0;
}

/* =========================================================
   Equipo
   ========================================================= */
.team-photo {
  margin: 0 0 4rem;
  max-width: 920px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.team-photo img {
  width: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
}
.team-photo figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  padding: 0.9rem 1rem;
  background: #fff;
  border-top: 1px solid var(--line);
}
.team-photo figcaption span { font-style: italic; opacity: 0.7; }

.team-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 840px;
}

/* 6 miembros → 3×2 en escritorio, 2×3 en tablet, 1 columna en móvil */
@media (max-width: 760px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
}
@media (max-width: 460px) {
  .team-grid { grid-template-columns: 1fr; max-width: 300px; }
}

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
  border-color: var(--steel);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.team-card--founder { border-top: 3px solid var(--accent); }

.team-card__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition);
}
.team-card:hover .team-card__photo img { transform: scale(1.03); }

.team-card__initials {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.team-card__placeholder-note {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(31, 53, 87, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.team-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
  line-height: 1.25;
}
.team-card__role {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7rem;
}
.team-card__bio {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.team-card__bio strong { color: var(--ink); font-weight: 600; }

/* =========================================================
   TFP stats
   ========================================================= */
.tfp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { text-align: left; }
.stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat__label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================================
   Colaboraciones
   ========================================================= */
.collab-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.collab-grid a {
  display: block;
  height: 100%;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  color: var(--ink);
}
.collab-grid a:hover {
  border-color: var(--steel);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.collab-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 48px;
  margin-bottom: 1rem;
}
.collab-logo img {
  max-height: 100%;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
.collab-grid h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.collab-grid h3::after {
  content: "→";
  font-size: 1rem;
  color: var(--accent);
  transition: transform var(--transition);
}
.collab-grid a:hover h3::after { transform: translateX(4px); }
.collab-grid p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* =========================================================
   Contacto
   ========================================================= */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  gap: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.contact-card__item { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-card__label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.contact-card__value {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
}
a.contact-card__value { border-bottom: 1px solid var(--accent); align-self: flex-start; }
a.contact-card__value:hover { color: var(--steel); border-color: var(--steel); }
.contact-card__hint {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* =========================================================
   Página interna (tfp.html)
   ========================================================= */
.page-header {
  background:
    radial-gradient(ellipse at top right, rgba(110, 136, 166, 0.14), transparent 60%),
    var(--bg-alt);
  padding: clamp(4rem, 9vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.page-header__breadcrumb {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.page-header__breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.page-header__breadcrumb a:hover {
  color: var(--navy);
  border-bottom-color: var(--accent);
}
.page-header__breadcrumb span { margin: 0 0.6rem; color: var(--line); }
.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 500;
  max-width: 820px;
  margin-bottom: 1rem;
}
.page-header__lead {
  max-width: 720px;
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
}

.article {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}
.article__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}
.article__toc {
  position: sticky;
  top: 96px;
  padding: 0;
  list-style: none;
  margin: 0;
  font-size: 0.88rem;
}
.article__toc li { margin-bottom: 0.6rem; }
.article__toc a {
  color: var(--muted);
  display: block;
  padding: 0.4rem 0 0.4rem 0.9rem;
  border-left: 2px solid var(--line);
  transition: all var(--transition);
}
.article__toc a:hover,
.article__toc a.is-active {
  color: var(--navy);
  border-left-color: var(--accent);
}

.article__content { max-width: 720px; }
.article__content h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 3rem 0 1rem;
  scroll-margin-top: 96px;
}
.article__content h2:first-child { margin-top: 0; }
.article__content h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0;
  margin: 2rem 0 0.5rem;
}
.article__content p {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 1.15em;
  line-height: 1.7;
}
.article__content a {
  color: var(--navy);
  border-bottom: 1px solid var(--accent);
  transition: color var(--transition), border-color var(--transition);
}
.article__content a:hover { color: var(--steel); border-color: var(--steel); }

.article__content ul {
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
}
.article__content ul li { margin-bottom: 0.5rem; }
.article__content ul li::marker { color: var(--accent); }

.callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout p:first-child {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  font-style: italic;
}

.references {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.references ol {
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}
.references ol li { margin-bottom: 0.65rem; }

.cta-band {
  background: var(--navy);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 1.75rem;
}
.cta-band .btn--primary {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.cta-band .btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}
.cta-band .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.cta-band .btn--ghost:hover {
  color: #fff;
  border-color: #fff;
}

@media (max-width: 880px) {
  .article__grid { grid-template-columns: 1fr; }
  .article__toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
  }
  .article__toc li { margin: 0; }
  .article__toc a {
    border-left: 0;
    padding: 0.4rem 0.85rem;
    background: var(--bg-alt);
    border-radius: 100px;
    font-size: 0.82rem;
  }
  .article__toc a:hover,
  .article__toc a.is-active {
    background: var(--navy);
    color: #fff;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.5rem;
}
.footer__brand img { height: 70px; margin-bottom: 0.8rem; }
.footer__brand p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin: 0;
}
.footer__social {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.1rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.footer__social a:hover {
  color: var(--navy);
  background: #fff;
  border-color: #fff;
}
.footer__social svg { width: 18px; height: 18px; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: flex-end;
}
.footer__nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
}
.footer__nav a:hover { color: #fff; }
.footer__legal {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  .section__grid { grid-template-columns: 1fr; gap: 2rem; }
  .pillars { grid-template-columns: 1fr; gap: 1.5rem; }
  .tfp-stats { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 88px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem var(--gutter);
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
  }
  .nav__menu.is-open {
    max-height: 420px;
    padding: 1.25rem var(--gutter) 1.5rem;
  }
  .nav__menu a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__menu a:last-child { border-bottom: none; }
  .nav__cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero { min-height: auto; padding: 4rem 0 5rem; }
  .hero__scroll { display: none; }
  .section { padding: 4rem 0; }
  .contact-card { padding: 1.75rem; }
}
