@font-face {
  font-family: Syne;
  src: url("../fonts/syne.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #13283a;
  --ink-soft: #2a4558;
  --sky: #cfe4f2;
  --mist: #eaf3f8;
  --cloud: #f7fbfd;
  --paper: #ffffff;
  --nutmeg: #b85c38;
  --nutmeg-deep: #8e3f22;
  --teal: #2a6f7a;
  --teal-soft: #3d8a96;
  --line: rgba(19, 40, 58, 0.12);
  --muted: #5e7384;
  --radius: 4px;
  --max: 1120px;
  --header-h: 72px;
  --shadow: 0 24px 60px rgba(19, 40, 58, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(42, 111, 122, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(184, 92, 56, 0.1), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--cloud) 38%, #eef5f9 100%);
  font: 400 1.05rem/1.65 Figtree, "Segoe UI", sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 12% 18%, var(--ink) 1px, transparent 1.5px),
    radial-gradient(circle at 78% 22%, var(--teal) 1px, transparent 1.5px),
    radial-gradient(circle at 42% 70%, var(--nutmeg) 1px, transparent 1.5px),
    radial-gradient(circle at 88% 64%, var(--ink) 1px, transparent 1.5px),
    linear-gradient(115deg, transparent 48%, rgba(42, 111, 122, 0.05) 48.5%, transparent 49%),
    linear-gradient(25deg, transparent 60%, rgba(184, 92, 56, 0.04) 60.5%, transparent 61%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 120px 120px, 90px 90px;
}

body > * { position: relative; z-index: 1; }

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

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--nutmeg); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 {
  font-family: Syne, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-top: 0; }
h3 { font-size: 1.2rem; }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.lead { font-size: 1.18rem; max-width: 38rem; color: var(--ink-soft); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Syne, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--nutmeg);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 251, 253, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { position: relative; }
.brand span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: linear-gradient(90deg, var(--nutmeg), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.brand:hover span::after { transform: scaleX(1); }

.nav {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--ink-soft);
  font-family: Syne, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: rgba(42, 111, 122, 0.1); color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--nutmeg-deep);
  background: rgba(184, 92, 56, 0.12);
}

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 1.15rem;
  padding: 8px 12px;
  cursor: pointer;
}

/* Full-bleed hero */
.hero-bleed {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-bleed__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bleed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-bleed__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(19, 40, 58, 0.15) 0%, rgba(19, 40, 58, 0.55) 42%, rgba(19, 40, 58, 0.88) 100%),
    linear-gradient(90deg, rgba(19, 40, 58, 0.55) 0%, transparent 55%);
}
.hero-bleed__content {
  padding: 48px 22px 64px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  color: #f4f9fc;
}
.hero-bleed .eyebrow { color: #9fd0d8; }
.hero-bleed .eyebrow::before { background: #e8a07a; }
.hero-bleed h1 {
  max-width: 14ch;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  animation: rise 0.9s ease both;
}
.hero-bleed .lead {
  color: rgba(244, 249, 252, 0.88);
  animation: rise 0.9s ease 0.12s both;
}
.hero-bleed .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: rise 0.9s ease 0.22s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--nutmeg) 0%, var(--nutmeg-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(184, 92, 56, 0.35);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Sections */
.section { padding: 72px 0; }
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 40rem;
}
.section-head p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .split-media { order: 2; }
.split-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 94% 100%, 0 100%);
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.split:hover .split-media img { transform: scale(1.04); }
.split-body .kicker {
  font-family: Syne, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nutmeg);
  margin-bottom: 8px;
}

/* Feature rails — not cards for browsing; interaction-ish list */
.rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.rail-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.25s ease, background 0.25s;
}
.rail-item:hover {
  padding-left: 10px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(90deg, rgba(42, 111, 122, 0.06), transparent);
}
.rail-item .idx {
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--teal);
  line-height: 1;
}
.rail-item h3 { margin: 0 0 6px; }
.rail-item p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.rail-item .tag { align-self: center; }

.tag {
  display: inline-block;
  font-family: Syne, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 2px solid rgba(42, 111, 122, 0.35);
  padding: 0 0 2px;
  border-radius: 0;
}

/* Mosaic topics */
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.mosaic-tile {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.mosaic-tile:hover { text-decoration: none; color: #fff; }
.mosaic-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}
.mosaic-tile:hover img { transform: scale(1.05); }
.mosaic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(19, 40, 58, 0.85) 100%);
}
.mosaic-tile span,
.mosaic-tile strong {
  position: absolute;
  left: 20px;
  right: 20px;
}
.mosaic-tile span {
  bottom: 48px;
  font-family: Syne, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fd0d8;
}
.mosaic-tile strong {
  bottom: 18px;
  font-family: Syne, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.mosaic-tile.tall { grid-row: 1 / span 2; min-height: 420px; }

/* Method strip */
.method {
  background: var(--ink);
  color: #e8f2f8;
  padding: 64px 0;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  margin: 20px 0;
}
.method .section-head p { color: rgba(232, 242, 248, 0.7); }
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.method-grid article {
  border-top: 2px solid var(--nutmeg);
  padding-top: 16px;
}
.method-grid h3 { color: #fff; }
.method-grid p { color: rgba(232, 242, 248, 0.72); margin: 0; }

/* Calculator */
.calc-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.calc {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 8px;
}
.calc label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.calc input {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--mist);
  color: var(--ink);
  font: inherit;
}
.calc input:focus {
  outline: 2px solid rgba(42, 111, 122, 0.35);
  border-color: var(--teal);
}
.calc button { grid-column: 1 / -1; justify-self: start; }
.result {
  margin-top: 18px;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal);
  min-height: 1.5em;
}

/* Quote / manifesto */
.manifesto {
  padding: 56px 0;
  text-align: center;
}
.manifesto blockquote {
  margin: 0 auto;
  max-width: 28ch;
  font-family: Syne, sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.manifesto cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* Page hero (inner) */
.page-hero {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  background:
    linear-gradient(135deg, rgba(42, 111, 122, 0.08), transparent 55%),
    linear-gradient(225deg, rgba(184, 92, 56, 0.06), transparent 40%);
}
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin: 0; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 28px;
}
.filters button {
  font-family: Syne, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 14px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.filters button:hover,
.filters button.is-active {
  border-color: var(--nutmeg);
  color: var(--nutmeg-deep);
  background: rgba(184, 92, 56, 0.08);
}

/* Analysis articles */
.article-stack { display: grid; gap: 22px; }
.article {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  border-left: 4px solid var(--teal);
}
.article[hidden] { display: none; }
.article h2 { margin-top: 8px; font-size: 1.45rem; }
.article p { color: var(--ink-soft); }
.article .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}
.term {
  border-bottom: 1.5px dashed var(--nutmeg);
  cursor: help;
  color: var(--nutmeg-deep);
  font-weight: 600;
}

/* Glossary grid */
.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.glossary dt {
  font-family: Syne, sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.glossary dd {
  margin: 0 0 12px;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* Accordion */
.acc {
  border: 1px solid var(--line);
  background: var(--paper);
  margin-top: 10px;
  overflow: hidden;
}
.acc button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 16px 18px;
  font-family: Syne, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.acc .panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.acc .panel > * { padding: 0 18px 16px; margin: 0; color: var(--muted); }
.acc.open .panel { max-height: 480px; }
.acc .chevron { transition: transform 0.25s; color: var(--nutmeg); }
.acc.open .chevron { transform: rotate(45deg); }

/* Jobs / lists */
.job-list { display: grid; gap: 14px; }
.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  align-items: center;
}
.job h3 { margin: 0 0 4px; }
.job p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Legal prose */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }

.cols {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 14px;
}
.contact-block {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
}

/* Footer */
.site-footer {
  margin-top: 80px;
  padding: 48px 0 32px;
  background: var(--ink);
  color: rgba(232, 242, 248, 0.78);
  clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%);
}
.site-footer a { color: #9fd0d8; }
.site-footer a:hover { color: #e8a07a; }
.site-footer h4 {
  font-family: Syne, sans-serif;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.footer-cols {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.3fr 1fr 1fr;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a { text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { text-decoration: underline; }
.disclaimer {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 16px;
  font-size: 0.82rem;
  color: rgba(232, 242, 248, 0.55);
  margin-top: 32px;
}
.site-footer .muted { color: rgba(232, 242, 248, 0.45); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glossary popup */
.term-popup {
  position: fixed;
  z-index: 120;
  max-width: min(360px, calc(100vw - 32px));
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: none;
}
.term-popup.is-open { display: block; }
.term-popup strong {
  display: block;
  font-family: Syne, sans-serif;
  margin-bottom: 6px;
  color: var(--ink);
}
.term-popup p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.term-popup .term-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 520px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: none;
}
.cookie-banner.is-open { display: block; animation: rise 0.4s ease both; }
.cookie-banner p { margin: 0 0 12px; font-size: 0.92rem; color: var(--ink-soft); }
.cookie-banner .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .split,
  .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic-tile.tall { grid-row: auto; min-height: 280px; }
  .method-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .rail-item { grid-template-columns: 56px 1fr; }
  .rail-item .tag { grid-column: 2; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 251, 253, 0.98);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 8px 0;
  }
  .nav.open { display: flex; }
  .nav li a {
    display: block;
    padding: 14px 22px;
    border-radius: 0;
  }
  .hero-bleed { min-height: 72vh; }
  .method { clip-path: none; }
  .site-footer { clip-path: none; }
}
