/* ============================================================
   OPORTO GROUP — Hoja de estilos
   Paleta y tipografía según el Manual de Marca oficial.
   ============================================================ */

:root {
  /* Colores primarios */
  --brick: #9D432C;
  --brick-dark: #7d3422;
  --ultrablue: #13294B;
  --ultrablue-700: #0e1f3a;
  --cloudy: #D9D8D6;

  /* Colores secundarios */
  --deep-green: #3E441F;
  --charcoal: #555859;

  /* Neutros derivados */
  --ink: #13294B;
  --body: #3a4452;
  --muted: #6b7280;
  --line: #e7e7e5;
  --bg: #ffffff;
  --bg-soft: #f5f5f3;

  /* Tipografía */
  --font-sans: "Prompt", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Medidas */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 84px;

  --shadow-sm: 0 2px 10px rgba(19, 41, 75, 0.06);
  --shadow-md: 0 14px 40px rgba(19, 41, 75, 0.10);
  --shadow-lg: 0 30px 70px rgba(19, 41, 75, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ultrablue); color: #fff;
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

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

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

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--alt { background: var(--bg-soft); }

/* compensar el header fijo al navegar por anclas */
main section[id] { scroll-margin-top: var(--header-h); }

.section__head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); }
.section__intro { margin-top: 1rem; font-size: 1.075rem; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brick);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brick); }
.eyebrow--light { color: #d98a72; }
.eyebrow--light::before { background: var(--brick); }
.section__head .eyebrow { display: inline-flex; }

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

.lead-serif {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink);
}
p + p { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brick);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 2px solid transparent; border-radius: 50px;
  background: var(--btn-bg); color: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-color 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(157, 67, 44, 0.35); }
.btn:active { transform: translateY(-1px); }
.btn--accent { --btn-bg: var(--brick); }
.btn--lg { padding: 1.1rem 2.2rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--ghost-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.4);
}
.btn--ghost-light:hover {
  background: #fff; color: var(--ultrablue); border-color: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,0.2);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
              height 0.4s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.header__logo { display: inline-flex; align-items: center; }
.logo { height: 42px; width: auto; transition: opacity 0.3s; }
.logo--color { display: none; }
.logo--white { display: block; }

/* solid state (after scroll) */
.site-header.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(150%) blur(12px);
  box-shadow: var(--shadow-sm);
  height: 72px;
}
.site-header.is-scrolled .logo--color { display: block; }
.site-header.is-scrolled .logo--white { display: none; }
.site-header.is-scrolled .nav__list a { color: var(--ink); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav__list { display: flex; align-items: center; gap: 2rem; }
.nav__list a {
  position: relative; color: #fff; font-weight: 500; font-size: 0.95rem;
  padding: 0.25rem 0; transition: color 0.25s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--brick);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: 0.7rem 1.4rem; }

/* hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; border: none; background: transparent;
  align-items: center; justify-content: center; z-index: 120;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #0e1f3a 0%, var(--ultrablue) 55%, #1c3a63 100%);
  color: #fff;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05); animation: heroZoom 16s ease-in-out infinite alternate;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(14,31,58,0.94) 0%, rgba(19,41,75,0.86) 42%, rgba(19,41,75,0.55) 100%),
    radial-gradient(120% 120% at 85% 10%, rgba(157,67,44,0.35), transparent 55%);
}
.hero__watermark {
  position: absolute; right: -6%; bottom: -12%;
  width: min(54vw, 560px); opacity: 0.08;
  filter: brightness(0) invert(1);
  animation: floaty 9s ease-in-out infinite;
}
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.14); } }
.hero__inner { position: relative; max-width: 820px; }
.hero__title {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.04;
  margin-bottom: 1.4rem;
}
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.82);
  max-width: 600px; margin-bottom: 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid rgba(255,255,255,0.4);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll-dot { width: 4px; height: 8px; border-radius: 4px; background: #fff; animation: scrolldot 1.8s infinite; }

@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes floaty { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(-54%); } }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--ultrablue); color: #fff; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.stat { text-align: center; padding: 0.5rem; border-left: 1px solid rgba(255,255,255,0.12); }
.stat:first-child { border-left: none; }
.stat__num {
  display: block; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700;
  color: #fff; line-height: 1; font-feature-settings: "tnum";
}
.stat__num::after { content: attr(data-rendered-suffix); }
.stat__label { display: block; margin-top: 0.6rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); letter-spacing: 0.02em; }

/* ============================================================
   NOSOTROS
   ============================================================ */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__media-inner {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__media-inner img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; right: -18px; bottom: -22px;
  background: #fff; box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm); padding: 1rem 1.3rem; text-align: center;
  border-bottom: 3px solid var(--brick);
}
.about__badge-num { display: block; font-weight: 700; font-size: 1.5rem; color: var(--brick); font-family: var(--font-sans); }
.about__badge-text { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.pullquote {
  margin-top: 1.8rem; padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 4px solid var(--brick);
  font-family: var(--font-serif); font-size: 1.12rem; font-style: italic;
  color: var(--ink); line-height: 1.6;
}

.checklist { margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.checklist li { position: relative; padding-left: 2.1rem; font-weight: 500; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brick) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ============================================================
   CARDS (Divisiones)
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 2rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--brick); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 58px; height: 58px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(157,67,44,0.08); color: var(--brick); margin-bottom: 1.4rem;
  transition: background-color 0.4s, color 0.4s;
}
.card__icon svg { width: 28px; height: 28px; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { background: var(--brick); color: #fff; }
.card__title { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ============================================================
   PROYECTOS
   ============================================================ */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 1.25rem;
}
.project {
  position: relative; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.project--lg { grid-column: span 2; }
.project::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,20,38,0.05) 25%, rgba(10,20,38,0.55) 62%, rgba(10,20,38,0.9));
  transition: opacity 0.4s;
}
.project__body { padding: 1.6rem; transform: translateY(0); transition: transform 0.45s var(--ease); }
.project__meta { color: rgba(255,255,255,0.82); font-size: 0.86rem; margin-top: 0.4rem; max-width: 46ch; }
.project__cat {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff; background: var(--brick);
  padding: 0.3rem 0.7rem; border-radius: 50px; margin-bottom: 0.7rem;
}
.project__title { color: #fff; font-size: 1.3rem; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s var(--ease); }
.project:hover img { transform: scale(1.07); }
.project:hover .project__body { transform: translateY(-4px); }

.note-placeholder { text-align: center; margin-top: 1.5rem; font-size: 0.86rem; color: var(--muted); font-style: italic; }

/* ============================================================
   VALORES
   ============================================================ */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value { text-align: center; padding: 1rem; }
.value__icon {
  width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--ultrablue); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform 0.4s var(--ease), color 0.4s, background-color 0.4s;
}
.value__icon svg { width: 32px; height: 32px; stroke-linecap: round; stroke-linejoin: round; }
.value:hover .value__icon { transform: translateY(-6px) rotate(-4deg); background: var(--ultrablue); color: #fff; }
.value__title { font-size: 1.15rem; margin-bottom: 0.4rem; }
.value p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(120deg, var(--brick-dark), var(--brick) 60%, #b15238);
  color: #fff; text-align: center; padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative; overflow: hidden;
}
.cta-band__title { color: #fff; font-size: clamp(1.7rem, 4vw, 2.7rem); margin-bottom: 0.6rem; }
.cta-band__text { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-band .btn--accent { background: #fff; color: var(--brick); }
.cta-band .btn--accent:hover { background: var(--ultrablue); color: #fff; box-shadow: 0 14px 30px rgba(0,0,0,0.25); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__list { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; font-size: 1rem; color: var(--ink); }
.contact__ico {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(19,41,75,0.06); color: var(--ultrablue);
}
.contact__ico svg { width: 22px; height: 22px; stroke-linecap: round; stroke-linejoin: round; }
.contact__list a:hover { color: var(--brick); }

.contact__form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); display: grid; gap: 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: inherit; color: var(--ink); padding: 0.85rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fcfcfb;
  transition: border-color 0.25s, box-shadow 0.25s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brick); box-shadow: 0 0 0 4px rgba(157,67,44,0.12);
}
.form__status { font-size: 0.9rem; min-height: 1.2em; }
.form__status.is-ok { color: var(--deep-green); }
.form__status.is-error { color: var(--brick); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ultrablue-700); color: rgba(255,255,255,0.72); }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer__logo { height: 46px; width: auto; margin-bottom: 1rem; }
.footer__tagline { font-family: var(--font-serif); font-size: 1.05rem; max-width: 320px; color: rgba(255,255,255,0.8); }
.footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.05em; margin-bottom: 1.1rem; }
.footer__nav ul, .footer__contact ul { display: grid; gap: 0.7rem; }
.footer__nav a, .footer__contact a { color: rgba(255,255,255,0.72); transition: color 0.25s; font-size: 0.95rem; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--brick); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer__bottom-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.5rem; font-size: 0.84rem; color: rgba(255,255,255,0.55);
}

/* ============================================================
   MEDIA PLACEHOLDERS (sustituibles por fotografías)
   ============================================================ */
.media-placeholder { position: relative; background: var(--cloudy); }
.media-placeholder::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 18px 18px;
}
.media-placeholder--blue { background: linear-gradient(135deg, #0e1f3a, #1c3a63); }
.media-placeholder--blue-2 { background: linear-gradient(135deg, #16335c, #0e1f3a); }
.media-placeholder--brick { background: linear-gradient(135deg, var(--brick-dark), #b15238); }
.media-placeholder--green { background: linear-gradient(135deg, #2c3117, var(--deep-green)); }
.media-placeholder--charcoal { background: linear-gradient(135deg, #3f4243, var(--charcoal)); }

/* ============================================================
   CAPACIDADES
   ============================================================ */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cap {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cap:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cap__ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(19,41,75,0.06); color: var(--ultrablue);
}
.cap__ico svg { width: 24px; height: 24px; stroke-linecap: round; stroke-linejoin: round; }
.cap h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.cap p { font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   TRAYECTORIA (timeline)
   ============================================================ */
.section--dark { background: linear-gradient(160deg, var(--ultrablue-700), var(--ultrablue)); color: #fff; }
.section__head--light .section__title { color: #fff; }
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  position: relative; counter-reset: tl;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px;
  background: rgba(255,255,255,0.16);
}
.tl { position: relative; padding-top: 2.4rem; }
.tl::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--brick); box-shadow: 0 0 0 4px rgba(157,67,44,0.25);
}
.tl__year { display: block; font-weight: 700; font-size: 1.4rem; color: #fff; margin-bottom: 0.3rem; }
.tl__title { color: #fff; font-size: 1.05rem; margin-bottom: 0.4rem; }
.tl p { color: rgba(255,255,255,0.72); font-size: 0.92rem; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .cards, .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .timeline::before { display: none; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: var(--ultrablue); flex-direction: column; justify-content: center;
    gap: 2rem; padding: 2rem; transform: translateX(100%);
    transition: transform 0.4s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 1.4rem; text-align: center; }
  .nav__list a { color: #fff; font-size: 1.15rem; }
  .nav-toggle { display: flex; }
  .site-header.is-scrolled .nav-toggle span { background: var(--ink); }
  .nav.is-open ~ .nav-toggle span,
  .nav-toggle[aria-expanded="true"] span { background: #fff !important; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .stat:nth-child(odd) { border-left: none; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .project--lg { grid-column: span 1; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .caps { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .cards, .cards--3, .values { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

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