:root {
  --haze: #EEF2EF;
  --ink: #12363C;
  --muted: #4D6468;
  --sea: #1C6E72;
  --stone: #CBBE9F;
  --deep: #0F2C31;
  --rule: #C9D3CF;
  --band-soft: #6E9C99;
  --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --haze: #0F2629;
    --ink: #E6EEEB;
    --muted: #A9BBB8;
    --sea: #6CC1C0;
    --deep: #081A1D;
    --rule: #27444A;
    --band-soft: #5E8C89;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--haze);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--sea); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 2px;
}
.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: var(--haze);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
header.site.scrolled { border-bottom-color: var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.mark {
  font-stretch: 62%; font-weight: 850; font-size: 1.7rem; line-height: 1;
  color: var(--ink); text-decoration: none;
}
nav.main { display: flex; flex-wrap: wrap; gap: 4px 22px; }
nav.main a {
  font-stretch: 85%; font-weight: 650; font-size: 1rem;
  color: var(--ink); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--sea); }
nav.main a.equipo { border: 2px solid var(--ink); border-radius: 3px; padding: 4px 12px; }
nav.main a.equipo:hover { background: var(--ink); color: var(--haze); }
nav.main a[aria-current="page"] { color: var(--sea); border-bottom-color: var(--sea); }
.menu-btn { display: none; }

@media (max-width: 819px) {
  .js .menu-btn {
    display: inline-flex; align-items: center;
    background: none; border: 2px solid var(--ink); color: var(--ink);
    font: inherit; font-stretch: 85%; font-weight: 700; font-size: 0.95rem;
    padding: 6px 14px; border-radius: 3px; cursor: pointer;
  }
  .js nav.main {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--haze); border-bottom: 1px solid var(--rule);
    padding: 8px 16px 18px; flex-direction: column; gap: 0;
  }
  .js nav.main.open { display: flex; }
  .js nav.main a { font-size: 1.25rem; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .js nav.main a.equipo { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 12px 0; color: var(--sea); }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 3px;
  border: 2px solid var(--ink); color: var(--ink);
  font-stretch: 85%; font-weight: 700; font-size: 1.05rem; text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--haze); }
.btn.primary { background: var(--ink); color: var(--haze); }
.btn.primary:hover { background: var(--sea); border-color: var(--sea); }

/* Home hero */
.hero { padding: 44px 0 48px; }
.hero h1 {
  font-stretch: 62%; font-weight: 850;
  font-size: clamp(4.2rem, 22vw, 11.5rem);
  line-height: 0.86; letter-spacing: -0.01em;
  margin: 0 0 26px;
}
.hero .lede { font-size: clamp(1.2rem, 4.4vw, 1.6rem); line-height: 1.35; max-width: 34ch; margin: 0 0 28px; }

/* Inner page head */
.page-head { padding: 40px 0 32px; }
.page-head h1 {
  font-stretch: 62%; font-weight: 850;
  font-size: clamp(3.4rem, 15vw, 7.5rem);
  line-height: 0.9; margin: 0 0 18px;
}
.page-head .lede { font-size: clamp(1.15rem, 4vw, 1.45rem); line-height: 1.4; max-width: 40ch; margin: 0; }
.subnav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.subnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0 26px; overflow-x: auto; scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; white-space: nowrap; padding: 14px 0;
  font-stretch: 85%; font-weight: 700; color: var(--ink); text-decoration: none;
}
.subnav a:hover { color: var(--sea); }

/* Sector band */
.band { background: var(--deep); color: var(--stone); padding: 40px 0 44px; }
.band ul.places {
  list-style: none; margin: 0; padding: 0;
  font-stretch: 62%; font-weight: 800;
  font-size: clamp(1.8rem, 7.2vw, 4.1rem); line-height: 1.02;
}
.band .places li { display: inline; }
.band .places li:nth-child(3n+2) { color: var(--band-soft); }
.band .places li:not(:last-child)::after { content: "\00a0/"; color: var(--band-soft); font-weight: 400; }
.band .caption { margin: 22px 0 0; font-size: 1.05rem; color: #A9BBB8; max-width: 52ch; }

/* Sections */
section.block { padding: 64px 0; }
section.block + section.block { border-top: 1px solid var(--rule); }
.grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .grid { grid-template-columns: 15rem 1fr; gap: 48px; } }
h2 { font-stretch: 70%; font-weight: 800; font-size: clamp(2rem, 6vw, 2.7rem); line-height: 1; margin: 0; }
.body { max-width: 62ch; }
.body p { margin: 0 0 1em; }
.body p:last-child { margin-bottom: 0; }
h3.sub { font-stretch: 85%; font-weight: 700; font-size: 1.25rem; margin: 40px 0 4px; }
h3.sub:first-child { margin-top: 0; }

/* Summary links on home */
ul.paths { list-style: none; margin: 0; padding: 0; }
ul.paths li + li { border-top: 1px solid var(--rule); }
ul.paths a { display: block; padding: 20px 0; color: var(--ink); text-decoration: none; }
ul.paths strong { display: block; font-stretch: 75%; font-weight: 800; font-size: 1.45rem; line-height: 1.15; color: var(--sea); }
ul.paths span { display: block; margin-top: 4px; }
ul.paths a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }

/* Item lists */
ul.items { list-style: none; margin: 0; padding: 0; }
ul.items li { padding: 20px 0; }
ul.items li + li { border-top: 1px solid var(--rule); }
ul.items h4 { font-stretch: 75%; font-weight: 800; font-size: 1.35rem; line-height: 1.15; margin: 0 0 6px; }
ul.items p { margin: 0; }
ul.items .when { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

/* Timeline */
ol.timeline { list-style: none; margin: 0; padding: 0 0 0 24px; position: relative; }
ol.timeline::before {
  content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px;
  width: 2px; background: var(--rule);
}
ol.timeline li { position: relative; padding: 0 0 26px 0; }
ol.timeline li:last-child { padding-bottom: 0; }
ol.timeline li::before {
  content: ""; position: absolute; left: -24px; top: 9px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--haze); border: 2px solid var(--sea);
}
ol.timeline li:last-child::before { background: var(--sea); }
ol.timeline .year { display: block; font-stretch: 70%; font-weight: 800; font-size: 1.45rem; line-height: 1.2; color: var(--sea); }
ol.timeline p { margin: 2px 0 0; }

/* Statements */
.statements { list-style: none; margin: 0; padding: 0; }
.statements li {
  font-stretch: 80%; font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 1.75rem); line-height: 1.25;
  padding: 0 0 0 18px; border-left: 4px solid var(--sea);
}
.statements li + li { margin-top: 26px; }

/* Aspiration */
section.block.aspire { background: var(--ink); color: var(--haze); border-top: 0; }
.aspire h2 { color: var(--stone); }
.aspire .big {
  font-stretch: 70%; font-weight: 800;
  font-size: clamp(2.2rem, 7.5vw, 3.8rem); line-height: 1.02;
  margin: 0 0 20px; max-width: 18ch;
}
.aspire p { max-width: 52ch; }
.aspire a { color: var(--stone); }
.soon { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .soon { grid-template-columns: 1fr 1fr; max-width: 40rem; } }
.soon li { border: 1px solid rgba(203,190,159,.45); border-radius: 3px; padding: 14px 16px; }
.soon strong { display: block; font-stretch: 85%; font-size: 1.1rem; }
.soon span { color: var(--stone); font-size: 0.95rem; }
@media (prefers-color-scheme: dark) {
  section.block.aspire { background: #E6EEEB; color: #12363C; }
  .aspire h2 { color: #1C6E72; }
  .aspire a { color: #1C6E72; }
  .soon li { border-color: rgba(18,54,60,.3); }
  .soon span { color: #4D6468; }
}

/* Footer */
footer { background: var(--deep); color: #CFDBD8; padding: 44px 0 52px; font-size: 0.95rem; }
footer .mark { color: #E6EEEB; font-size: 2rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0 24px; }
footer a { color: var(--stone); }
footer p { margin: 0 0 8px; max-width: 60ch; }
details { border-top: 1px solid #27444A; border-bottom: 1px solid #27444A; margin: 0 0 24px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 650; color: #E6EEEB; }
details ul { margin: 0 0 18px; padding-left: 18px; }
details li { margin: 6px 0; }
