:root {
  --ink: #101418;
  --coal: #171d22;
  --panel: #20272d;
  --line: #33414c;
  --paper: #f4f7f8;
  --muted: #697782;
  --blue: #006cff;
  --blue-2: #7fb2ff;
  --white: #ffffff;
  --ok: #157347;
  --warn: #9a5a00;
  --bad: #b42318;
  --radius: 8px;
  --max: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; }

a:hover { color: var(--blue); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 30;
  transform: translateY(-140%);
  padding: .65rem .85rem;
  background: var(--white);
  border: 2px solid var(--blue);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 20, 24, .12);
  background: rgba(244, 247, 248, .94);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: .8rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.brand {
  display: inline-grid;
  gap: .05rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand small {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem;
}

.nav a,
.button,
button.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: var(--radius);
  padding: .62rem .8rem;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: .93rem;
}

.nav a[aria-current="page"] {
  border-color: rgba(0, 108, 255, .35);
  background: rgba(0, 108, 255, .08);
  color: #004bb3;
}

.button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
}

.button.ghost {
  border-color: rgba(255,255,255,.35);
  background: transparent;
  color: var(--white);
}

.hero {
  background: var(--coal);
  color: var(--white);
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 5.5rem) 1.1rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(300px, 1.08fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--blue-2);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--blue);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  margin-top: .8rem;
  font-size: clamp(2.25rem, 6vw, 5.35rem);
  max-width: 10ch;
}

.page-title {
  max-width: 13ch;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 62ch;
  color: rgba(255,255,255,.82);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.hero-media {
  align-self: stretch;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.16);
  background: #0b0f12;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-caption {
  font-size: .83rem;
  color: var(--muted);
  margin-top: .55rem;
}

.hero .media-caption { color: rgba(255,255,255,.7); }

.timebar {
  max-width: var(--max);
  margin: 0 auto;
  padding: .85rem 1.1rem 1.1rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .35rem;
  color: rgba(255,255,255,.68);
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
}

.timebar span {
  border-top: 2px solid rgba(127,178,255,.45);
  padding-top: .45rem;
}

.section,
.legal-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 1.1rem;
}

.band {
  background: var(--white);
  border-block: 1px solid rgba(16, 20, 24, .08);
}

.section-head {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.tc {
  color: var(--blue);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.section h2,
.legal-main h1 {
  font-size: clamp(1.85rem, 4vw, 3.3rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, 1.05fr);
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: start;
}

.split.reverse {
  grid-template-columns: minmax(300px, 1.05fr) minmax(0, .95fr);
}

.panel {
  border: 1px solid rgba(16,20,24,.12);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.15rem;
}

.dark-panel {
  background: var(--coal);
  color: var(--white);
  border-color: rgba(255,255,255,.12);
}

.dark-panel p,
.dark-panel li { color: rgba(255,255,255,.78); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}

.card {
  border: 1px solid rgba(16,20,24,.12);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1rem;
}

.card h3,
.panel h3 {
  font-size: 1.12rem;
  margin-bottom: .45rem;
}

.list {
  padding-left: 1.15rem;
}

.list li + li { margin-top: .45rem; }

.timeline {
  display: grid;
  gap: .9rem;
  border-left: 3px solid var(--blue);
  padding-left: 1rem;
}

.timeline article {
  position: relative;
  padding: .9rem 1rem;
  background: var(--white);
  border: 1px solid rgba(16,20,24,.12);
  border-radius: var(--radius);
}

.timeline article::before {
  content: "";
  position: absolute;
  left: calc(-1rem - 8px);
  top: 1.15rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--paper);
}

.visual-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(16,20,24,.12);
  background: #dfe5e8;
}

.visual-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.visual-frame.wide img { aspect-ratio: 16 / 9; }
.visual-frame.tall img { aspect-ratio: 4 / 5; }
.visual-frame.square img { aspect-ratio: 1 / 1; }

.planner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  gap: 1rem;
  align-items: start;
}

.planner fieldset,
.contact-form fieldset {
  border: 1px solid rgba(16,20,24,.14);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0 0 1rem;
}

.planner legend,
.contact-form legend {
  font-weight: 850;
  padding: 0 .35rem;
}

label {
  display: grid;
  gap: .35rem;
  font-weight: 750;
  margin-bottom: .85rem;
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(16,20,24,.28);
  border-radius: var(--radius);
  padding: .72rem .78rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

textarea { min-height: 130px; resize: vertical; }

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem .8rem;
}

.checks label,
.inline-check {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0;
  font-weight: 650;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: .18rem;
  accent-color: var(--blue);
}

.result {
  min-height: 220px;
  border-left: 4px solid var(--blue);
  background: #eef5ff;
}

.status {
  margin-top: .75rem;
  font-weight: 750;
}

.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.status.bad { color: var(--bad); }

.site-footer {
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.1rem;
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 1.5rem;
}

.site-footer a { color: var(--white); }
.site-footer p { color: rgba(255,255,255,.75); }

.footer-links {
  display: grid;
  gap: .35rem;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(440px, calc(100vw - 2rem));
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(16,20,24,.18);
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  padding: 1rem;
}

.cookie-banner[hidden],
.cookie-settings[hidden] { display: none; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .8rem;
}

.cookie-settings {
  margin-top: .8rem;
  padding: .85rem;
  background: #eef2f4;
  border-radius: var(--radius);
}

.legal-main {
  max-width: 900px;
}

.legal-main h2 {
  margin-top: 1.6rem;
  font-size: 1.45rem;
}

.legal-main p,
.legal-main li {
  color: #33414c;
}

@media (max-width: 860px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle { display: block; }

  .nav {
    grid-column: 1 / -1;
    display: none;
    justify-content: stretch;
  }

  .nav.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nav a { justify-content: flex-start; }

  .hero-grid,
  .split,
  .split.reverse,
  .planner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-media { min-height: 260px; }

  .timebar {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: .45rem;
  }

  .grid,
  .checks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav { grid-template-columns: 1fr; }
  h1 { font-size: 2.35rem; }
  .hero-actions,
  .cookie-actions { display: grid; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
