:root {
  color-scheme: dark;
  --bg: #0a1016;
  --fg: #edf1ed;
  --muted: #a5b2bb;
  --accent: #72e3ee;
  --line: #2a343e;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); -webkit-font-smoothing: antialiased; }
::selection { color: var(--bg); background: var(--accent); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .3em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
[hidden] { display: none !important; }
.header-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 1rem 1.6rem; min-width: 0; }
.language-switch { flex-shrink: 0; }
.language-switch select { max-width: 100%; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--fg); font: inherit; font-size: .8rem; cursor: pointer; }
.language-switch select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.language-switch select:hover { border-color: var(--accent); }
img { display: block; max-width: 100%; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; transform: translateY(-200%); background: var(--accent); color: var(--bg); padding: .9rem 1.25rem; font-weight: 600; }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; justify-content: space-between; align-items: center; min-height: 120px; gap: 2rem; border-bottom: 1px solid var(--line); }
.identity { display: inline-flex; gap: .9rem; align-items: center; text-decoration: none; font-size: .96rem; font-weight: 650; letter-spacing: -.02em; flex-shrink: 0; }
.identity-detail { display: block; padding-top: .25rem; color: var(--muted); font-size: .73rem; font-weight: 400; letter-spacing: .015em; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; column-gap: 2.25rem; row-gap: 1rem; font-size: .85rem; }
.main-nav a { text-decoration: none; white-space: nowrap; padding-block: .5rem; }
.main-nav a span[aria-hidden] { padding-left: .25rem; color: var(--accent); }
/* ── Project dropdown (click-driven) ── */
.project-dropdown { position: relative; }
.project-dropdown-toggle {
  background: none; border: none; color: inherit; font: inherit;
  font-size: .85rem; cursor: pointer; padding-block: .5rem;
  white-space: nowrap;
}
.project-dropdown-toggle::after {
  content: " ▾"; color: var(--accent); font-size: .7em;
}
.project-dropdown-toggle:hover,
.project-dropdown.is-open .project-dropdown-toggle { color: var(--accent); }
.project-dropdown-toggle:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px;
}
.project-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); min-width: 200px;
  margin-top: .35rem; padding: .5rem 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); z-index: 20;
}
/* Open on click */
.project-dropdown.is-open .project-dropdown-menu { display: block; }
.project-dropdown-menu a {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; text-decoration: none;
  font-size: .83rem; white-space: nowrap; color: var(--fg);
}
.project-dropdown-menu a:hover,
.project-dropdown-menu a:focus-visible {
  background: #72e3ee0a; color: var(--accent);
}
.project-dropdown-menu a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px;
}
.project-dropdown-menu .project-icon {
  width: 24px; height: 24px; object-fit: contain;
}
.project-dropdown-menu .project-icon--flags { width: 36px; height: 24px; }
/* Hide dropdown entirely when JS injects no items */
.project-dropdown:not([data-has-items]) { display: none; }
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; padding-top: 76px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 55px; }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.8rem; color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; line-height: 1.7; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px #72e3ee0a; }
h1 { margin: 0; font-size: clamp(3.9rem, 6.2vw, 6rem); letter-spacing: -.065em; line-height: 1.04; font-weight: 600; }
em { color: var(--accent); font-weight: inherit; font-style: normal; }
.hero-intro { color: var(--muted); max-width: 375px; margin: 1.9rem 0 1.9rem; font-size: 1.025rem; line-height: 1.8; }
.text-link { display: inline-flex; gap: 2rem; justify-content: space-between; padding-bottom: .6rem; text-decoration: none; border-bottom: 1px solid #428f9c; font-size: .88rem; font-weight: 500; }
.text-link span[aria-hidden] { color: var(--accent); }
.hero-visual { min-width: 0; align-self: start; padding-top: 4px; }
.visual-caption { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: .58rem; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; padding: 0 6px; }
.visual-caption > span:last-child { color: var(--accent); }
.field-graphic { width: 100%; height: auto; margin-top: -6px; }
.visual-caption-bottom { margin-top: -4px; font-size: .55rem; letter-spacing: .07em; }
.visual-caption-bottom > span:last-child { color: var(--muted); }
.visual-key { display: flex; align-items: center; gap: .5rem; }
.visual-key > span[aria-hidden] { display: inline-block; width: 11px; height: 1px; background: var(--accent); }
.hero-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 25px 0; margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .63rem; letter-spacing: .025em; }
.hero-bottom a { text-decoration: none; }
.hero-bottom a span[aria-hidden] { display: inline-block; margin-left: 1.5rem; color: var(--accent); }
.section { padding-top: 85px; }
.section-label { display: flex; align-items: center; gap: 2rem; margin-bottom: 50px; font-family: var(--mono); font-size: .63rem; letter-spacing: .1em; color: var(--muted); }
.section-rule { height: 1px; flex: 1; background: var(--line); }
.section-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
h2 { margin: 0; font-size: clamp(2.8rem, 4vw, 4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; }
.about-content { max-width: 510px; }
.about-content p { color: var(--muted); font-size: .94rem; line-height: 1.85; margin: 0 0 1.4rem; }
.about-content .lead { color: var(--fg); font-size: 1.25rem; line-height: 1.6; margin-top: -5px; }
.focus-list { margin: 2.2rem 0 0; }
.focus-list > div { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: .5rem; padding-block: 1rem; border-top: 1px solid var(--line); line-height: 1.5; }
.focus-list dt { color: var(--fg); font-size: .84rem; }
.focus-list dd { margin: 0; color: var(--muted); font-size: .78rem; }
.contact { padding-top: 100px; padding-bottom: 80px; }
.contact .section-label { margin-bottom: 45px; }
.contact-layout { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; }
.contact .eyebrow { margin-bottom: 1.1rem; font-size: .61rem; }
.contact h2 { font-size: clamp(3rem, 5.2vw, 5rem); }
.contact-link { display: flex; align-items: center; justify-content: space-between; min-height: 60px; min-width: 245px; gap: 2.5rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 2px; text-decoration: none; font-size: .9rem; }
.contact-link span[aria-hidden] { color: var(--accent); font-size: 1.3rem; }
.contact-link:hover { border-color: var(--accent); background: #72e3ee05; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.3rem; padding-top: 28px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .67rem; line-height: 1.7; }
.site-footer a { text-decoration: none; }
.site-footer a span[aria-hidden] { margin-left: .6rem; color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.error-page { min-height: 100vh; display: flex; flex-direction: column; }
.error-main { flex: 1; padding-top: 85px; padding-bottom: 85px; }
.error-main h1 { font-size: clamp(3.8rem, 8vw, 7rem); }
.error-main .hero-intro { max-width: 440px; }
@media (min-width: 1500px) {
  .hero { padding-top: 90px; }
  h1 { font-size: 6.2rem; }
}
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .site-header { min-height: 105px; }
  .main-nav { column-gap: 1.4rem; }
  .hero { padding-top: 56px; gap: 1rem; }
  h1 { font-size: clamp(3.5rem, 7.8vw, 5rem); }
  .hero-intro { font-size: .95rem; }
  .hero-visual { align-self: center; }
  .visual-caption-bottom { flex-direction: column; align-items: flex-start; gap: .45rem; }
  .section-layout { gap: 2.5rem; }
  .focus-list > div { grid-template-columns: 1fr; gap: .3rem; }
  .contact-layout { align-items: flex-start; flex-direction: column; gap: 2rem; }
  .contact-link { min-width: 270px; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 1.5rem; }
  .wrap { width: calc(100% - 40px); }
  .site-header { flex-wrap: wrap; justify-content: flex-start; gap: 1.25rem; padding-top: 24px; padding-bottom: 17px; }
  .identity img { width: 35px; height: 35px; }
  .identity { font-size: .93rem; }
  .identity-detail { font-size: .7rem; }
  .main-nav { width: 100%; justify-content: flex-start; column-gap: 1.75rem; row-gap: .25rem; font-size: .8rem; }
  .header-controls { width: 100%; justify-content: flex-start; gap: .75rem 1rem; }
  .header-controls .main-nav { width: auto; flex-grow: 1; column-gap: 1.25rem; }
  .language-switch select { font-size: .75rem; }
  .visual-caption-bottom { flex-wrap: wrap; row-gap: .5rem; }
  .hero-bottom { flex-wrap: wrap; }
  .focus-list dt, .focus-list dd { overflow-wrap: anywhere; }
  .hero { grid-template-columns: 1fr; padding-top: 42px; gap: 0; }
  .hero-copy { padding-bottom: 42px; }
  .eyebrow { font-size: .58rem; letter-spacing: .09em; margin-bottom: 1.5rem; }
  h1 { font-size: clamp(3.4rem, 13.5vw, 5.2rem); }
  .hero-intro { max-width: 340px; margin-top: 1.6rem; font-size: .96rem; line-height: 1.8; }
  .text-link { font-size: .83rem; }
  .hero-visual { width: 100%; max-width: 440px; margin-inline: auto; padding-top: 0; }
  .visual-caption { font-size: .52rem; }
  .visual-caption-bottom { flex-direction: row; align-items: center; font-size: .45rem; gap: .8rem; letter-spacing: .02em; }
  .hero-bottom { margin-top: 27px; padding-block: 20px; font-size: .54rem; gap: .8rem; }
  .hero-bottom a span[aria-hidden] { margin-left: .45rem; }
  .section { padding-top: 58px; }
  .section-label { margin-bottom: 33px; font-size: .56rem; gap: 1.2rem; }
  .section-layout { grid-template-columns: 1fr; gap: 34px; }
  h2 { font-size: clamp(2.6rem, 10.6vw, 3.5rem); }
  .about-content .lead { font-size: 1.15rem; }
  .about-content p { font-size: .91rem; }
  .focus-list { margin-top: 1.8rem; }
  .focus-list > div { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); padding-block: .95rem; }
  .focus-list dt { font-size: .75rem; }
  .focus-list dd { font-size: .72rem; }
  .contact { padding-top: 62px; padding-bottom: 54px; }
  .contact .section-label { margin-bottom: 35px; }
  .contact .eyebrow { font-size: .52rem; }
  .contact h2 { font-size: clamp(2.8rem, 11vw, 4rem); }
  .contact-link { width: 100%; min-width: 0; font-size: .86rem; }
  .site-footer { justify-content: flex-start; gap: .65rem; padding-top: 22px; padding-bottom: 25px; font-size: .62rem; }
  .site-footer > span { width: 100%; }
  .site-footer a { margin-top: .4rem; }
  .error-main { padding-block: 55px; }
  .error-main h1 { font-size: 3.7rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
