/* Opposable Heads — single stylesheet, no framework, no build step. */

:root {
  color-scheme: light dark;

  --ink:        #0c1116;
  --ink-soft:   #47535f;
  --paper:      #ffffff;
  --paper-alt:  #f4f6f8;
  --line:       #e0e5ea;
  --accent:     #1f5eff;
  --accent-ink: #ffffff;
  --warm:       #ff7a3d;

  --radius: 14px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 68ch;
  --shell: 1120px;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.4vw, 4.25rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:       #e8edf3;
    --ink-soft:  #9aa8b6;
    --paper:     #0b0f14;
    --paper-alt: #121820;
    --line:      #222c37;
    --accent:    #6f9bff;
    --accent-ink:#08111f;
    --warm:      #ff9660;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--step-0)/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.022em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 620; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
a  { color: inherit; }

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

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

/* ---------- layout ---------- */

.shell {
  width: min(100% - 2 * var(--pad), var(--shell));
  margin-inline: auto;
}

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
section.tint { background: var(--paper-alt); }

.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 56ch; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--pad);
  top: 0.75rem;
  z-index: 10;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 1rem;
}

/* ---------- header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.masthead > .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 640;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.brand svg { width: 2.3rem; height: auto; overflow: visible; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 520;
  transition: color 0.18s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 580;
  text-decoration: none;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(4rem, 11vw, 8rem) clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 42rem;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
  pointer-events: none;
  z-index: -1;
}
.hero h1 { max-width: 18ch; }
.hero .lede { margin-top: 1.25rem; }

/* ---------- cards ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.tint .card { background: var(--paper); }
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  margin-bottom: 1rem;
}
.card .icon svg { width: 1.35rem; height: 1.35rem; }

/* ---------- sector list ---------- */

.sectors { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.sectors li {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.sectors li:last-child { border-bottom: 1px solid var(--line); }
.sectors h3 { margin: 0; }
.sectors p { margin: 0; color: var(--ink-soft); }

@media (max-width: 34rem) {
  .sectors li { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* ---------- steps ---------- */

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.75rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-variant-numeric: tabular-nums;
  font-weight: 640;
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- callout ---------- */

.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
  padding: clamp(1.75rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.callout h2 { margin: 0; font-size: var(--step-2); }
.callout p { margin: 0.35rem 0 0; color: var(--ink-soft); }
.callout .actions { margin-top: 0; }

/* ---------- contact ---------- */

.contact-line {
  font-size: var(--step-2);
  font-weight: 620;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transition: border-color 0.18s var(--ease);
  word-break: break-word;
}
.contact-line:hover { border-color: var(--accent); }

/* ---------- footer ---------- */

.colophon {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.colophon > .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.colophon a { color: var(--ink-soft); text-decoration: none; }
.colophon a:hover { color: var(--ink); }
.colophon nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
