:root {
  --paper: #f6f3ef;
  --paper-soft: #ffffff;
  --ink: #1e1e20;
  --muted: #555555;
  --line: #ded8d0;
  --burgundy: #9d2235;
  --burgundy-dark: #681624;
  --pearl: #adaeb0;
  --graphite: #2a2929;
  --black-red: #211f20;
  --shadow: 0 20px 54px rgba(30, 30, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Trebuchet MS", "Gill Sans", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(157, 34, 53, 0.18);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(132px, 17vw, 190px);
  height: 42px;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--graphite);
  font-size: 0.9rem;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--burgundy);
}

.nav-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--burgundy);
  border-radius: 4px;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  min-height: calc(100svh - 69px);
  display: grid;
  align-items: center;
  padding: clamp(52px, 9vw, 108px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(30, 30, 32, 0.86) 0%, rgba(30, 30, 32, 0.66) 44%, rgba(30, 30, 32, 0.28) 78%),
    image-set(
      url("assets/estrategia-hero.webp") type("image/webp"),
      url("assets/estrategia-hero.png") type("image/png")
    ) center right / cover no-repeat;
  color: #fff;
}

.hero-copy {
  width: min(960px, 100%);
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 12px;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1d9bd;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(4.4rem, 11vw, 10.2rem);
  line-height: 0.86;
  font-weight: 700;
  overflow-wrap: normal;
  white-space: nowrap;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1;
  font-weight: 700;
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.22rem, 2.2vw, 1.7rem);
  line-height: 1.14;
  font-weight: 700;
}

.hero-lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.hero-context {
  max-width: 690px;
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 4px solid #f1d9bd;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.45;
}

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

.hero-actions.center {
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: #fff;
}

.hero .button.primary {
  border-color: #fff;
  background: #fff;
  color: var(--burgundy-dark);
}

.button.secondary {
  color: #fff;
}

.button.tertiary {
  color: #fff;
}

.subscribe .button.secondary {
  color: #fff;
}

.button:hover,
.text-link:hover,
.resource-grid a:hover,
.profile-links a:hover {
  transform: translateY(-1px);
}

.section,
.band {
  padding: clamp(58px, 9vw, 116px) clamp(20px, 5vw, 72px);
}

.band {
  background: var(--paper-soft);
  border-block: 1px solid var(--line);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 88px);
  width: min(1160px, 100%);
  margin: 0 auto;
  align-items: start;
}

.rich-copy p,
.content-grid > p {
  margin: 0 0 18px;
  color: var(--graphite);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
}

.rich-copy p:last-child,
.content-grid > p:last-child {
  margin-bottom: 0;
}

.section-heading {
  width: min(980px, 100%);
  margin: 0 auto 34px;
}

.section-heading p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
}

.lab-note {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--burgundy);
  color: var(--graphite);
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1160px, 100%);
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid article {
  min-height: 268px;
  padding: 28px;
  background: #fff;
}

.feature-number {
  display: block;
  margin-bottom: 28px;
  color: var(--burgundy);
  font-weight: 800;
}

.feature-grid p,
.project-card p,
.perspective-grid p {
  margin: 0;
  color: var(--muted);
}

.resources {
  background: #fff;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.resource-grid a {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(157, 34, 53, 0.22);
  border-top: 4px solid var(--burgundy);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(30, 30, 32, 0.05);
}

.resource-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.resource-grid strong {
  color: var(--burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  line-height: 1.15;
}

.perspective-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.perspective-grid article {
  min-height: 310px;
  padding: 30px;
  border-left: 5px solid var(--burgundy);
  background: #fff;
}

.projects {
  background: #eee8df;
}

.project-list {
  display: grid;
  gap: 16px;
  width: min(1030px, 100%);
  margin: 0 auto;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.project-card .project-type {
  color: var(--burgundy);
}

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

.project-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(157, 34, 53, 0.22);
  border-radius: 4px;
  background: var(--paper);
  color: var(--graphite);
  font-size: 0.8rem;
  font-weight: 800;
}

.project-actions {
  display: grid;
  gap: 10px;
}

.text-link {
  display: inline-flex;
  min-width: 178px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--burgundy);
  border-radius: 4px;
  color: var(--burgundy);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.text-link.subtle {
  border-color: var(--line);
  color: var(--graphite);
}

.archive,
.team {
  background: var(--paper);
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  gap: clamp(28px, 6vw, 78px);
  width: min(1160px, 100%);
  margin: 0 auto;
  align-items: center;
}

.team-layout p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.profile-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--burgundy);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.aleph-card {
  display: grid;
  gap: 20px;
  padding: 30px;
  border: 1px solid rgba(157, 34, 53, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--graphite);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.aleph-card img {
  width: min(230px, 100%);
  height: auto;
}

.aleph-card span {
  color: var(--muted);
  font-weight: 700;
}

.subscribe {
  background: var(--burgundy);
  color: #fff;
}

.subscribe-panel {
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
}

.subscribe-panel .section-kicker {
  color: #f1d9bd;
}

.subscribe-panel p {
  margin: 18px auto 0;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  background: var(--black-red);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer img {
  width: 86px;
  height: auto;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}

.error-shell {
  width: min(720px, 100%);
  padding: clamp(34px, 7vw, 72px);
  border-top: 6px solid var(--burgundy);
  background: #fff;
  box-shadow: var(--shadow);
}

.error-shell h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.error-shell p:not(.section-kicker) {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.12rem;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

@media (max-width: 900px) {
  .hero {
    min-height: 680px;
    background:
      linear-gradient(180deg, rgba(30, 30, 32, 0.88) 0%, rgba(30, 30, 32, 0.64) 54%, rgba(30, 30, 32, 0.42) 100%),
      image-set(
        url("assets/estrategia-hero.webp") type("image/webp"),
        url("assets/estrategia-hero.png") type("image/png")
      ) center / cover no-repeat;
  }

  .content-grid,
  .project-card,
  .team-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .perspective-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-actions,
  .text-link {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 14px;
  }

  .site-nav {
    gap: 18px;
    font-size: 0.84rem;
  }

  .brand img {
    width: 138px;
    height: 38px;
  }

  .nav-cta {
    min-height: 38px;
    padding-inline: 12px;
  }

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

  .hero {
    min-height: 620px;
    align-items: end;
  }

  .button,
  .text-link {
    width: 100%;
  }

  .feature-grid,
  .perspective-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .perspective-grid article {
    min-height: auto;
  }

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