:root {
  --ink: #11110f;
  --ink-soft: #2a2823;
  --paper: #f2eee5;
  --paper-soft: #e4e7de;
  --olive: #56634f;
  --olive-deep: #343d30;
  --clay: #866c58;
  --gold: #c59a4f;
  --white: #fffaf1;
  --muted: #6f7167;
  --line: rgba(17, 17, 15, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  background: rgba(17, 17, 15, 0.84);
  border-bottom: 1px solid rgba(255, 250, 241, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 118px;
  min-width: 118px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  font-size: 0.9rem;
}

.site-nav a {
  opacity: 0.84;
  transition: opacity 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  color: var(--gold);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 250, 241, 0.34);
  background: transparent;
  color: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/hero-la-otra-orilla.png");
  background-image: image-set(
    url("assets/hero-la-otra-orilla.webp") type("image/webp"),
    url("assets/hero-la-otra-orilla.png") type("image/png")
  );
  background-size: cover;
  background-position: 76% center;
  transform: scale(1.02);
  filter: saturate(0.96) contrast(0.98) brightness(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 12, 10, 0.97) 0%, rgba(12, 12, 10, 0.82) 38%, rgba(12, 12, 10, 0.34) 72%, rgba(12, 12, 10, 0.24) 100%),
    linear-gradient(0deg, rgba(12, 12, 10, 0.82) 0%, rgba(12, 12, 10, 0.18) 48%);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 104px);
  padding-top: 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 13vw, 8.8rem);
  line-height: 0.88;
  font-weight: 500;
}

.hero-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 250, 241, 0.86);
  font-size: clamp(1.14rem, 2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: var(--ink);
}

.button-secondary {
  border-color: rgba(255, 250, 241, 0.36);
  color: var(--white);
}

.scroll-cue {
  position: absolute;
  left: clamp(18px, 8vw, 104px);
  bottom: 22px;
  color: rgba(255, 250, 241, 0.58);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: clamp(70px, 10vw, 128px) 0;
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 8vw, 96px);
}

.intro-band {
  background: var(--ink);
  color: var(--white);
}

.intro-band .lead {
  color: var(--white);
}

.isabel-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
}

.isabel-portrait {
  margin: 0;
  border: 1px solid rgba(255, 250, 241, 0.14);
  background: rgba(255, 250, 241, 0.06);
}

.isabel-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.04);
}

.isabel-copy {
  display: grid;
  gap: 30px;
}

.copy-block p,
.text-grid p,
.contact-layout p,
.project-card p,
.services-list p {
  margin: 0;
}

.lead {
  font-size: clamp(1.28rem, 2.5vw, 1.78rem);
  line-height: 1.38;
}

.copy-block {
  display: grid;
  gap: 22px;
  color: rgba(255, 250, 241, 0.76);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  line-height: 0.98;
  font-weight: 500;
}

h3 {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.54rem);
  line-height: 1.18;
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  color: var(--ink-soft);
}

.mission-still {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: end;
  margin: clamp(42px, 7vw, 76px) 0 0;
}

.mission-still img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04);
}

.mission-still figcaption {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  line-height: 1.16;
}

.projects-band {
  background: var(--paper-soft);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.project-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(17, 17, 15, 0.08);
}

.project-card.featured {
  background: var(--olive-deep);
  color: var(--white);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta span {
  border: 1px solid currentColor;
  padding: 5px 8px;
  color: inherit;
  opacity: 0.74;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-note {
  margin-top: auto;
  color: rgba(255, 250, 241, 0.72);
}

.film-sheet {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  background: var(--white);
}

.film-sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.film-sheet-header h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
}

.text-link,
.inline-link,
.news-card a,
.instagram-note a {
  color: var(--clay);
  font-weight: 850;
}

.film-sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.film-sheet dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.film-sheet dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.film-sheet dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.news-band {
  background: var(--paper);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.news-card img {
  display: block;
  width: calc(100% + clamp(36px, 6vw, 48px));
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  margin: calc(clamp(18px, 3vw, 24px) * -1) calc(clamp(18px, 3vw, 24px) * -1) 2px;
  background: #d7e6e7;
}

.news-card p {
  margin: 0;
  color: var(--muted);
}

.news-card a {
  margin-top: auto;
}

.news-card span {
  margin-top: auto;
  color: var(--olive-deep);
  font-weight: 850;
}

.news-date {
  color: var(--olive-deep);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.instagram-note {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.instagram-note p {
  max-width: 720px;
  margin: 0;
}

.services-layout {
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}

.services-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.services-list article {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.services-list h3 {
  margin-bottom: 8px;
}

.services-list p {
  color: var(--muted);
}

.contact-band {
  background: var(--olive-deep);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.74fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.contact-layout p {
  max-width: 700px;
  color: rgba(255, 250, 241, 0.76);
}

.contact-panel {
  display: grid;
  gap: 18px;
  width: min(100%, 560px);
  justify-self: end;
  padding: clamp(30px, 4vw, 44px);
  border: 1px solid rgba(255, 250, 241, 0.16);
  background: rgba(255, 250, 241, 0.07);
}

.contact-panel a {
  color: var(--gold);
  font-size: clamp(1.05rem, 1.38vw, 1.34rem);
  font-weight: 800;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.contact-panel .contact-social {
  color: var(--gold);
  font-size: clamp(1.05rem, 1.38vw, 1.28rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 54px);
  background: var(--ink);
  color: rgba(255, 250, 241, 0.68);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a,
.footer-button {
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
}

.footer-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.cookie-banner,
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(17, 17, 15, 0.3);
}

.cookie-modal {
  align-items: center;
  background: rgba(17, 17, 15, 0.72);
}

.cookie-box,
.cookie-panel {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  color: var(--white);
  background: rgba(17, 17, 15, 0.94);
  border: 1px solid rgba(255, 250, 241, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cookie-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
}

.cookie-box h2,
.cookie-panel h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.cookie-box p {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(255, 250, 241, 0.76);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-panel {
  width: min(720px, 100%);
}

.cookie-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.icon-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  background: transparent;
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-options {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  background: rgba(255, 250, 241, 0.06);
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option small {
  margin-top: 4px;
  color: rgba(255, 250, 241, 0.68);
}

.cookie-option input {
  width: 22px;
  height: 22px;
  accent-color: var(--gold);
}

.legal-page {
  background: var(--paper);
}

.legal-document {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 92px) 0;
}

.legal-document h1 {
  color: var(--ink);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  margin-bottom: 28px;
}

.legal-document h2 {
  margin: 34px 0 10px;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.legal-document p {
  color: var(--ink-soft);
}

.legal-back {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--clay);
  font-weight: 800;
}

.legal-document table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--white);
}

.legal-document th,
.legal-document td {
  padding: 13px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-document code {
  font-size: 0.9em;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    z-index: 22;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 22px;
    background: rgba(17, 17, 15, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    font-size: 1.4rem;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-bg {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(12, 12, 10, 0.94), rgba(12, 12, 10, 0.66)),
      linear-gradient(0deg, rgba(12, 12, 10, 0.88), rgba(12, 12, 10, 0.24));
  }

  .hero-content {
    width: min(100% - 36px, 640px);
    margin: 0 auto;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5.6rem);
  }

  .split,
  .isabel-layout,
  .text-grid,
  .mission-still,
  .project-grid,
  .film-sheet-grid,
  .news-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .film-sheet-header,
  .instagram-note {
    flex-direction: column;
  }

  .project-card {
    min-height: auto;
  }

  .sticky-heading {
    position: static;
  }

  .contact-panel {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 520px) {
  .brand {
    width: 104px;
    min-width: 104px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-box {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    display: grid;
    justify-content: stretch;
  }

  .cookie-actions .button {
    width: 100%;
  }

  .legal-document {
    overflow-x: auto;
  }
}
