:root {
  /* Brand tokens (Siagenix brandbook v1.0) */
  --navy: #073670;
  --royal: #0060D6;
  --sky: #78C8FC;    /* decorative only */
  --accent: #36A4F0; /* decorative only */
  --white: #FFFFFF;

  /* Derived, not brand canon */
  --surface: #F3F8FE;
  --muted: #4A5B73;
  --border: #D3DFEE;

  /* Role tokens: light mode */
  --bg: var(--white);
  --text: var(--navy);
  --text-muted: var(--muted);
  --link: var(--royal);
  --band-bg: var(--surface);
  --card-border: var(--border);
  --button-bg: var(--royal);
  --button-text: var(--white);
  --focus: var(--royal);
  --arc-1: var(--royal);
  --arc-2: var(--sky);
  --arc-3: var(--accent);
  --arc-opacity: 0.45;

  --logo-w: clamp(280px, 24vw, 320px);
  --gutter: clamp(16px, 5vw, 64px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Derived dark surfaces, navy-based to stay within the blue palette */
    --band-dark: #0B4282;
    --border-dark: #2B5C99;
    --muted-dark: #C9D9EE;

    --bg: var(--navy);
    --text: var(--white);
    --text-muted: var(--muted-dark);
    --link: var(--sky);
    --band-bg: var(--band-dark);
    --card-border: var(--border-dark);
    --button-bg: var(--sky);
    --button-text: var(--navy);
    --focus: var(--sky);
    --arc-1: var(--sky);
    --arc-2: var(--accent);
    --arc-3: var(--sky);
    --arc-opacity: 0.3;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-align: left;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

p {
  margin: 0;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.header-inner {
  display: flex;
  align-items: center;
  padding-block: 8px;
}

.logo {
  display: block;
  flex: 0 0 auto;
  /* The master SVG carries its own clear space (48 of 1475 units per side).
     Pull it into the gutter so the visible orbit lines up with the text column;
     the padding stays transparent, so clear space is preserved. */
  margin-left: calc(var(--logo-w) * -48 / 1475);
}

.logo img {
  display: block;
  width: var(--logo-w);
  height: auto;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(64px, 12vw, 144px) clamp(32px, 5vw, 56px);
}

.hero-arcs {
  position: absolute;
  top: 50%;
  right: max(-180px, calc(50% - 760px));
  width: min(520px, 62vw);
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

.arc {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: var(--arc-opacity);
}

.arc-a { stroke: var(--arc-1); }
.arc-b { stroke: var(--arc-2); }
.arc-c { stroke: var(--arc-3); }
.arc-d { stroke: var(--arc-2); }

.hero-inner {
  position: relative;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lead {
  max-width: 60ch;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
}

.button {
  display: inline-block;
  margin-top: 36px;
  padding: 13px 24px;
  border-radius: 6px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.button:hover {
  text-decoration: underline;
}

/* Focus areas */
.focus {
  padding-block: clamp(24px, 3vw, 40px) clamp(48px, 6vw, 80px);
}

.focus h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.01em;
}

/* One row per area: title left, description right; stacks on small screens */
.areas {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--card-border);
}

.area {
  display: grid;
  gap: 8px;
  padding-block: 24px;
  border-top: 1px solid var(--card-border);
}

@media (min-width: 768px) {
  .area {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 32px;
    align-items: baseline;
  }
}

.area h3 {
  font-size: 1.25rem;
}

.area p {
  max-width: 65ch;
  color: var(--text-muted);
}

/* Tinted band */
.band {
  padding-block: clamp(40px, 5vw, 64px);
  background: var(--band-bg);
}

.band h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.125rem);
  letter-spacing: -0.01em;
}

/* Kept to one line where the viewport allows; wraps naturally on smaller screens */
.band p {
  margin-top: 16px;
  color: var(--text-muted);
}

/* Contact: one line */
.contact {
  padding-block: 24px;
}

.contact .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
}

.contact h2 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.contact-email {
  font-size: 1.125rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  padding-block: 24px 32px;
  border-top: 1px solid var(--card-border);
  font-size: 0.875rem;
  color: var(--text-muted);
}
