:root {
  color-scheme: dark;
  --ink: #f5f2eb;
  --muted: #b9bdc7;
  --navy: #07111e;
  --navy-2: #0b1727;
  --gold: #dab47a;
  --line: rgba(255, 255, 255, .12);
  --content: 1180px;
  --radius: 1.25rem;
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--ink); font-size: 1rem; line-height: 1.65; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .7rem 1rem; background: white; color: #07111e; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(calc(100% - 3rem), var(--content)); margin: 0 auto; padding: 1.5rem 0; }
.site-header--overlay { position: absolute; inset: 0 0 auto; z-index: 5; }
.header-brand { display: flex; flex-direction: column; width: fit-content; color: #fff; line-height: 1; text-decoration: none; }
.header-wordmark { font-size: 1.8rem; font-weight: 500; letter-spacing: .08em; }
.header-tagline { margin-top: .45rem; font-size: .62rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.site-header nav { display: flex; gap: 1.8rem; }
.site-header nav a { color: #e2e4e8; font-size: .78rem; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.site-header nav a:hover, .site-header nav a:focus-visible, .site-header nav a[aria-current="page"] { color: var(--gold); }

.hero { position: relative; min-height: clamp(42rem, 92svh, 58rem); display: grid; place-items: center; overflow: hidden; background: #050c15 url("../img/hseb-hero.webp") center 66% / cover no-repeat; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,9,17,.22) 0%, rgba(3,9,17,.1) 50%, var(--navy) 100%); }
.hero__content { position: relative; width: min(calc(100% - 3rem), var(--content)); margin-top: 2rem; text-shadow: 0 2px 28px rgba(0,0,0,.55); }
.wordmark { margin: 0 0 1.25rem; font-size: clamp(4.2rem, 10vw, 8rem); font-weight: 300; line-height: .85; letter-spacing: .14em; }
.hero h1 { max-width: 48rem; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.5vw, 4rem); font-weight: 400; line-height: 1.12; }
.hero__content > p:not(.wordmark) { max-width: 42rem; margin: 1.5rem 0 2.25rem; color: #e1e2e5; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero__link { display: inline-block; padding: .8rem 1.1rem; border-bottom: 1px solid var(--gold); color: #fff; text-decoration: none; }
.hero__link:hover, .hero__link:focus-visible { color: var(--gold); }

.intro { max-width: 48rem; margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) 1.5rem 2rem; text-align: center; }
.eyebrow { margin: 0 0 .8rem; color: var(--gold); font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.intro h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2.55rem); font-weight: 400; line-height: 1.18; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: min(calc(100% - 3rem), var(--content)); margin: 0 auto; }
.path-card { min-height: 23.5rem; display: flex; flex-direction: column; padding: clamp(1.4rem, 2.4vw, 2rem); border: 1px solid var(--line); border-top-width: 3px; border-radius: var(--radius); background-position: center; background-size: cover; box-shadow: 0 18px 60px rgba(0,0,0,.2); }
.path-card--esolco { border-top-color: #6578cf; background-image: linear-gradient(rgba(5,12,22,.66), rgba(5,12,22,.88)), url("../img/esolco-background.webp"); }
.path-card--cas { border-top-color: #b7c65d; background-image: linear-gradient(rgba(5,12,22,.66), rgba(5,12,22,.88)), url("../img/cas-background.webp"); }
.path-card--capiano { border-top-color: #a84742; background-image: linear-gradient(rgba(5,12,22,.66), rgba(5,12,22,.88)), url("../img/capiano-background.webp"); }
.brand { min-height: 4.5rem; display: flex; align-items: center; margin-bottom: 1.35rem; }
.brand img { display: block; max-width: 100%; max-height: 6.25rem; width: auto; height: auto; object-fit: contain; object-position: left center; }
.brand--esolco img { max-height: 4.5rem; }
.brand--cas img { max-height: 6.25rem; }
.brand--capiano img { max-height: 5.25rem; }
.path-card__claim { margin: 0 0 .75rem; color: #fff; font-weight: 700; }
.path-card > p:not(.path-card__claim) { margin: 0; color: #d1d3d8; font-size: .95rem; line-height: 1.55; }
.path-card > a { width: fit-content; margin-top: auto; padding-top: 1.5rem; color: #fff; font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: .35rem; }
.path-card > a:hover, .path-card > a:focus-visible { color: var(--gold); }
.path-card > a.is-placeholder { color: #8e949e; cursor: default; text-decoration-style: dashed; }
.closing { width: min(calc(100% - 3rem), 52rem); margin: 0 auto; padding: clamp(2.75rem, 5vw, 4.5rem) 0; text-align: center; }
.closing p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.35; }
.closing .back-link { display: inline-block; margin-top: 1.35rem; font-size: .9rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1.5rem; width: min(calc(100% - 3rem), var(--content)); margin: 0 auto; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: #9097a2; font-size: .9rem; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible, .site-footer a[aria-current="page"] { color: #fff; }

.legal-page { min-height: 100vh; background: radial-gradient(circle at 75% 0%, #17263b 0, var(--navy) 38rem); }
.legal-header { width: min(calc(100% - 3rem), 52rem); padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.legal-content { width: min(calc(100% - 3rem), 52rem); min-height: 72vh; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) 0; }
.legal-content h1 { margin: 0 0 2rem; overflow-wrap: break-word; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 7vw, 5rem); font-weight: 400; line-height: 1.05; hyphens: auto; }
.legal-content h2 { margin: 2.5rem 0 .7rem; font-size: 1.15rem; }
.legal-content h3 { margin: 1.6rem 0 .45rem; font-size: 1rem; }
.legal-content p, .legal-content li, .legal-content dd { color: #c4c8d0; }
.legal-content ul { margin: .75rem 0 1.5rem; padding-left: 1.4rem; }
.legal-content li + li { margin-top: .35rem; }
.legal-content a { text-underline-offset: .2rem; }
.contact-data { margin: 0; }
.contact-data div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.contact-data dt { color: #f5f2eb; font-weight: 700; }
.contact-data dd { margin: 0; }
.legal-source { margin-top: 2.5rem; font-size: .9rem; }
.notice { margin: 0 0 3rem; padding: 1rem 1.2rem; border-left: 3px solid var(--gold); background: rgba(255,255,255,.06); color: #e4e0d9; }
.back-link { color: var(--gold); text-underline-offset: .3rem; }

@media (max-width: 850px) {
  .paths { grid-template-columns: 1fr; max-width: 38rem; }
  .path-card { min-height: 24rem; }
  .hero { min-height: 44rem; background-position: 52% 70%; }
}

@media (max-width: 540px) {
  .site-header { align-items: flex-start; gap: .75rem; padding-top: 1.15rem; }
  .header-wordmark { font-size: 1.5rem; }
  .header-tagline { font-size: .5rem; letter-spacing: .12em; }
  .site-header nav { gap: .75rem; padding-top: .2rem; }
  .site-header nav a { font-size: .68rem; }
  .wordmark { font-size: clamp(3.5rem, 20vw, 5.8rem); letter-spacing: .1em; }
  .hero__content { margin-top: 3rem; }
  .hero__content > p:not(.wordmark) { font-size: 1rem; }
  .site-footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 380px) {
  .site-header { flex-wrap: wrap; }
  .site-header nav { width: 100%; justify-content: flex-end; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
