:root {
  --atlantic: #0F3548;
  --basalt: #2C2A29;
  --snow: #F6F7F5;
  --laurel: #3E5B3A;
  --retama: #E3B23C;
  --mist: #DDE3E1;
  --ink-soft: #55605E;
  --measure: 34rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--snow);
  color: var(--basalt);
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--atlantic); }

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

/* ---- top bar ---- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 5vw, 4rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--atlantic);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand svg { width: 30px; height: 30px; }
.lang { display: inline-flex; border: 1.5px solid var(--atlantic); border-radius: 999px; overflow: hidden; }
.lang button {
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem .8rem;
  background: transparent;
  color: var(--atlantic);
  border: 0;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--atlantic); color: var(--snow); }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(1.5rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
}
h1 {
  font-variation-settings: "wdth" 68;
  font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--atlantic);
  margin: 0 0 1.5rem;
  max-width: 12ch;
}
.lead { max-width: var(--measure); font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.hint { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.cta {
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--atlantic);
  color: var(--snow);
  border: 0;
  border-radius: 999px;
  padding: .95rem 1.6rem;
  cursor: pointer;
  transition: background-color .15s ease;
}
.cta:hover { background: #164a63; }
.cta-quiet { background: transparent; color: var(--atlantic); box-shadow: inset 0 0 0 1.5px var(--atlantic); }
.cta-quiet:hover { background: var(--atlantic); color: var(--snow); }

/* contour drawing: the one memorable element */
.contours { margin: 0; }
.contours svg { width: 100%; height: auto; display: block; }
.c { stroke: var(--atlantic); stroke-width: 1.4; }
.c1 { stroke: var(--laurel); stroke-width: 1.6; }
.c2 { stroke: var(--laurel); opacity: .8; }
.c3 { opacity: .55; }
.c4 { opacity: .65; }
.c5 { opacity: .75; }
.c6 { opacity: .9; }
.c7 { stroke: var(--retama); stroke-width: 2.4; }
.summit circle { fill: var(--retama); }
.summit line { stroke: var(--basalt); stroke-width: 1; }
.summit text { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 18px; fill: var(--basalt); }
.summit .alt { font-weight: 500; font-size: 15px; fill: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .c { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.8s ease-out forwards; }
  .c2 { animation-delay: .12s; } .c3 { animation-delay: .24s; } .c4 { animation-delay: .36s; }
  .c5 { animation-delay: .48s; } .c6 { animation-delay: .6s; } .c7 { animation-delay: .72s; }
  .summit { opacity: 0; animation: appear .5s ease-out 1.5s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ---- steps ---- */
.steps {
  background: var(--atlantic);
  color: var(--snow);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
}
.steps h2, .local h2 {
  font-variation-settings: "wdth" 75;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 2.25rem;
}
.steps ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.steps li { counter-increment: step; border-top: 2px solid var(--retama); padding-top: 1.1rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-variation-settings: "wdth" 62;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--retama);
  margin-bottom: .6rem;
}
.steps h3 { font-size: 1.2rem; margin: 0 0 .5rem; font-weight: 700; }
.steps p { margin: 0; color: #CFDCE1; max-width: 28rem; }

/* ---- local ---- */
.local {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
}
.local h2 { color: var(--laurel); margin-bottom: 1rem; }
.local p { margin: 0; max-width: var(--measure); }

/* ---- footer ---- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem) 6.5rem;
  border-top: 1px solid var(--mist);
  color: var(--ink-soft);
  font-size: .92rem;
}
.foot p { margin: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .contours { max-width: 360px; justify-self: center; order: -1; margin-bottom: -1rem; }
  .steps ol { grid-template-columns: 1fr; }
}
