:root {
  --bg: #fafaf7;
  --bg-elev: #ffffff;
  --ink: #0f1620;
  --ink-2: #2a3240;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-soft: #eef0f3;
  --brand: #0b3d91;
  --brand-ink: #ffffff;
  --brand-50: #eef2fb;
  --accent: #ff3b3b;
  --ok: #0f7b4a;
  --err: #b91c1c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15,22,32,.06);
  --shadow-md: 0 10px 30px rgba(15,22,32,.08);
  --shadow-lg: 0 24px 60px rgba(15,22,32,.12);
  --fs-lg: clamp(3rem, 5vw + 1rem, 5rem);
  --fs-md: clamp(2rem, 2.5vw + 1rem, 3rem);
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .5em; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 1.5vw + .6rem, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.25rem; }
.muted { color: var(--muted); }
.skip-link {
  position: absolute; left: -9999px; top: -9999px;
  background: var(--ink); color: #fff; padding: .5rem .9rem; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Layout */
.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.container.narrow { max-width: var(--maxw-narrow); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,250,247,0.96);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); font-weight: 700; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--brand); display: inline-grid; place-items: center; }
.brand-text { font-size: 1.05rem; }
.brand-suffix { font-weight: 500; opacity: .75; }

.primary-nav {
  display: flex; align-items: center; gap: 1.25rem;
}
.primary-nav a {
  color: var(--ink-2); font-weight: 500; font-size: .98rem;
  padding: .35rem .15rem; border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--ink); text-decoration: none; border-color: var(--line); }
.primary-nav a[aria-current="page"] { color: var(--ink); border-color: var(--brand); }

.lang-switch {
  display: inline-flex; gap: .15rem; border: 1px solid var(--line);
  border-radius: 999px; padding: .2rem; background: #fff; margin-left: .5rem;
}
.lang-switch a {
  font-size: .78rem; letter-spacing: .06em; font-weight: 600;
  color: var(--muted); padding: .3rem .6rem; border-radius: 999px;
}
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch a.is-active { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0; cursor: pointer;
  position: relative; z-index: 60;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { border-color: var(--ink-2); }
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .18s ease;
  transform-origin: center;
  pointer-events: none;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Invisible click-catcher for tap-outside-to-close (no dimming) */
.nav-backdrop {
  position: fixed; inset: 0; background: transparent;
  pointer-events: none; z-index: 45;
}
.nav-backdrop.is-visible { pointer-events: auto; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 88vw);
    max-width: 100vw;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5rem 1.25rem 1.5rem;
    box-shadow: -20px 0 40px rgba(15,22,32,.12);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2,.7,.2,1);
    z-index: 55;
    overflow-y: auto;
    -webkit-overscroll-behavior: contain;
    overscroll-behavior: contain;
  }
  .primary-nav a {
    padding: .85rem .25rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 1.02rem;
  }
  .primary-nav a:last-of-type { border-bottom: 0; }
  .lang-switch {
    align-self: flex-start;
    margin: 1rem 0 0;
    padding: .25rem;
  }
  .lang-switch a { padding: .45rem .75rem; font-size: .85rem; }
  .primary-nav.open { transform: translateX(0); }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 520px) {
  .brand-suffix { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(3rem, 4vw, 5rem);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; max-width: 900px; }
.eyebrow {
  font-size: .82rem; letter-spacing: .14em; font-weight: 600;
  text-transform: uppercase; color: var(--brand); margin: 0 0 1rem;
}
.display {
  font-size: var(--fs-lg);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 1rem; max-width: 18ch;
}
.lead {
  font-size: clamp(1.05rem, .7vw + .95rem, 1.25rem);
  color: var(--ink-2); max-width: 62ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-ornament {
  position: absolute; inset: auto -10% -30% auto; z-index: 1;
  width: 60vmax; height: 60vmax; max-width: 900px; max-height: 900px;
  background:
    radial-gradient(closest-side, rgba(11,61,145,.16), rgba(11,61,145,0) 70%),
    radial-gradient(closest-side, rgba(255,59,59,.08), rgba(255,59,59,0) 70%);
  filter: blur(10px);
  border-radius: 50%;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .85rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; transition: transform .06s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { padding: .55rem .85rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1rem; }

/* Duo cards */
.duo { padding: clamp(2rem, 3vw, 3rem) 0; }
.duo-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.25rem, 2vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #dfe3ea; }
.card h2 { margin-top: 0; font-size: 1.35rem; }

/* Pillars */
.pillars { padding: clamp(3rem, 5vw, 5rem) 0; }
.section-title { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.2rem); margin-bottom: 2rem; }
.pillars-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pillar {
  padding: 1.5rem; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff 0%, #fff 60%, #fcfcfb 100%);
  border: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.pillar-num {
  font-variant-numeric: tabular-nums;
  font-size: .78rem; color: var(--brand); font-weight: 700;
  letter-spacing: .12em; margin-bottom: 1rem;
}
.pillar h3 { font-size: 1.05rem; }
.pillar p { color: var(--ink-2); margin-bottom: 0; }

/* Band */
.band {
  background: var(--ink); color: #fff;
  padding: clamp(2.5rem, 4vw, 4rem) 0; margin-top: 2rem;
}
.band h2 { color: #fff; font-size: clamp(1.4rem, 1.5vw + 1rem, 2rem); margin-bottom: .4rem; }
.band p { color: #cfd3da; margin-bottom: 0; max-width: 50ch; }
.band-inner {
  display: flex; gap: 1.5rem; justify-content: space-between;
  align-items: center; flex-wrap: wrap;
}
.band .btn-primary { background: #fff; color: var(--ink); }
.band .btn-primary:hover { background: var(--brand); color: #fff; }

/* Page head */
.page-head { padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(1rem, 2vw, 2rem); }
.page-head .display { max-width: 22ch; font-size: var(--fs-md); }
.page-head .lead { margin-top: 1rem; }

/* Prose */
.prose { padding: 1rem 0 clamp(3rem, 4vw, 5rem); }
.prose h2 { margin-top: 2rem; font-size: 1.25rem; }
.prose p, .prose li { color: var(--ink-2); }
.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.value-list li {
  padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

/* Forms */
.form-section { padding: 1rem 0 clamp(3rem, 4vw, 5rem); }
.contact-form { display: grid; gap: 1.1rem; margin-top: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: .8rem .95rem;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11,61,145,.18);
}
.field .hint { color: var(--muted); font-size: .85rem; }
.field-error {
  color: var(--err); font-size: .88rem; margin: 0;
}
.field.consent label {
  display: flex; gap: .65rem; align-items: flex-start;
  font-weight: 400; color: var(--ink-2); cursor: pointer;
}
.field.consent input { width: 18px; height: 18px; margin-top: 2px; }
.row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hp {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem;
  background: var(--brand-50); border: 1px solid #d8e0f2;
  color: #1a2c57; padding: 1rem 1.15rem;
  border-radius: var(--radius-sm); margin-bottom: 1.5rem;
}
.notice strong { font-size: 1.1rem; color: var(--brand); }
.notice p { margin: 0; }

.success-box {
  background: #eaf7ef; border: 1px solid #bfe3ca;
  color: #0f4d2b; padding: 1.2rem 1.3rem; border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}
.success-box h2 { color: #0f4d2b; margin-bottom: .25rem; }
.success-box p { margin: 0; }
.error-box {
  background: #fdecec; border: 1px solid #f4c4c4;
  color: var(--err); padding: .9rem 1rem; border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
}

.js-reference-field { display: none; }
.js-reference-field.is-visible { display: grid; }

/* Footer */
.site-footer {
  background: #0a1118; color: #c3cad6;
  padding: clamp(2.5rem, 4vw, 4rem) 0 2rem;
  margin-top: 2rem;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { color: #fff; }
.site-footer .brand-mark svg rect { fill: #fff; }
.site-footer .brand-mark svg path { fill: #0a1118; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: start;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-nav { display: grid; gap: .5rem; }
.footer-nav a { color: #c3cad6; }
.footer-nav a:hover { color: #fff; }
.site-footer .muted { color: #8e96a3; }
.footer-legal { font-size: .88rem; align-self: end; }

/* Cookie banner */
.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  background: #0a1118; color: #fff; padding: 1rem 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,.2);
}
.cookie-inner {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-inner p { margin: 0; color: #cfd3da; font-size: .92rem; }
.cookie-inner a { color: #fff; text-decoration: underline; }

/* Focus styling */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
