:root {
  color-scheme: light;
  --ink: #12303b;
  --ink-soft: #49616a;
  --teal: #39c5aa;
  --teal-dark: #167e70;
  --paper: #f5f7f5;
  --line: #dce6e3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 5.5vw, 5.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
h3 { font-size: 1.25rem; }
.shell { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .6rem 1rem; background: #fff; z-index: 20; }
.skip-link:focus { top: 1rem; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; min-height: 82px; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; min-width: 0; text-decoration: none; }
.brand-mark { font-size: 1.9rem; font-weight: 850; letter-spacing: -.09em; line-height: 1; }
.brand-mark span { color: var(--teal-dark); }
.brand-name { padding-left: .8rem; border-left: 1px solid var(--line); font-size: .83rem; font-weight: 650; letter-spacing: .015em; line-height: 1.3; }
.main-nav, .language-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1rem; }
.main-nav a, .language-nav a { text-decoration: none; font-size: .9rem; font-weight: 650; }
.main-nav a:hover, .language-nav a:hover { color: var(--teal-dark); }
.main-nav a[aria-current="page"] { color: var(--teal-dark); box-shadow: inset 0 -2px var(--teal-dark); }
.language-nav { padding-left: .8rem; border-left: 1px solid var(--line); gap: .6rem; }
.language-nav a { color: var(--ink-soft); font-size: .78rem; }
.language-nav a[aria-current="page"] { color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: .25rem; }

.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 24%, #256f70 0, transparent 32%), linear-gradient(125deg, #102d3a 10%, #174658 56%, #1c605b 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr); gap: 2rem; align-items: center; min-height: 670px; padding-block: 6rem; }
.hero h1 { max-width: 13ch; margin-bottom: 1.4rem; }
.eyebrow { margin-bottom: 1.2rem; color: #9de9d9; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-dark { color: var(--teal-dark); }
.lead { max-width: 65ch; color: #e3f1ef; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.65; }
.lead-dark { color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: .75rem 1.4rem; border-radius: .45rem; font-weight: 750; text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--teal); color: #092d31; }
.button-primary:hover { background: #62dac2; }
.button-outline { border: 1px solid #cce7df; color: #fff; }
.button-outline:hover { background: #fff; color: var(--ink); }
.hero-art { justify-self: center; display: grid; place-items: center; width: min(100%, 330px); aspect-ratio: 1; border: 1px solid #80c7bd; border-radius: 50%; box-shadow: 0 0 0 34px #ffffff0b, 0 0 0 70px #ffffff08; transform: rotate(-13deg); }
.hero-art span { color: #e7fffa; font-size: clamp(3.4rem, 7vw, 6.4rem); font-weight: 800; letter-spacing: -.12em; }

.section { padding-block: 5rem; }
.section > h2 { max-width: 18ch; margin-bottom: 2rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.card { padding: 2rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--paper); }
.card::before { content: ""; display: block; width: 2.8rem; height: .25rem; margin-bottom: 1.5rem; border-radius: 1rem; background: var(--teal-dark); }
.card h2, .card h3 { margin-bottom: .85rem; }
.card p { margin-bottom: 0; color: var(--ink-soft); }
.card-large { min-height: 240px; }
.page-intro { padding-block: 5rem 3rem; border-bottom: 1px solid var(--line); }
.page-intro h1 { max-width: 15ch; margin-bottom: 1.2rem; }
.prose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
.prose-grid p { max-width: 62ch; color: var(--ink-soft); }
.timeline-item { padding: 0 0 1.7rem 1.25rem; border-left: 2px solid var(--line); }
.timeline-item h3 { margin-bottom: .5rem; }
.timeline-date { color: var(--teal-dark) !important; font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.action-panel { margin-bottom: 4rem; padding: 2.5rem; border-radius: .75rem; background: var(--paper); }
.action-panel h2 { margin-bottom: .8rem; }
.action-panel p { color: var(--ink-soft); }
.contact-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.contact-panel-single { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.contact-panel p { color: var(--ink-soft); }
.contact-link { color: var(--teal-dark); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font-size: .85rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 2rem; }

.portal-main { min-height: 60vh; }
.portal-auth { width: min(100%, 460px); margin: 4rem auto 5rem; }
.portal-auth h1, .portal-intro h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.portal-form { display: grid; gap: .75rem; margin-top: 2rem; }
.portal-form label { font-weight: 700; }
.portal-form input { width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: .45rem; background: #fff; color: var(--ink); font: inherit; }
.portal-form input:focus-visible, .text-button:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; }
.portal-form .button { margin-top: .6rem; border: 0; font: inherit; font-weight: 750; cursor: pointer; }
.form-error { color: #a32323; font-weight: 650; }
.portal-intro { padding-block: 4.5rem 2rem; }
.portal-section { padding-bottom: 5rem; }
.portal-service-link { display: inline-block; margin-top: 1.2rem; color: var(--teal-dark); font-weight: 750; }
.service-unavailable { margin-top: 1.2rem; font-size: .9rem; }
.metric-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-value { color: var(--ink) !important; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.2; }
.metric-note { margin-top: 1rem; color: var(--ink-soft); font-size: .85rem; }
.portal-setup { margin-top: 2rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--paper); }
.portal-setup h2 { font-size: 1.3rem; }
.portal-secret { display: block; margin: 1rem 0; padding: .75rem; overflow-wrap: anywhere; border-radius: .4rem; background: #fff; font-size: 1.05rem; font-weight: 800; letter-spacing: .08em; }
.text-button { padding: .35rem 0; border: 0; background: none; color: var(--teal-dark); font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 1080px) {
  .header-row { justify-content: center; }
  .brand { margin-right: auto; }
  .main-nav { order: 3; justify-content: center; width: 100%; }
}
@media (max-width: 720px) {
  .shell { width: min(100% - 2rem, 1160px); }
  .header-row { justify-content: flex-start; }
  .brand { width: 100%; }
  .language-nav { margin-left: auto; }
  .main-nav { justify-content: flex-start; gap: .35rem .9rem; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 5rem; }
  .hero-art { display: none; }
  .cards, .prose-grid, .contact-panel { grid-template-columns: 1fr; }
  .metric-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-intro { padding-block: 3.5rem 2rem; }
  .section { padding-block: 3.5rem; }
  .actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
