/* ANP Strategies — public site, "Navy" variant (Western institutional tone)
   One committed look (deep navy, steel blue and cool-white bands) — no light/dark switching.
   No external requests: system fonts only, no trackers, no cookies. */

:root {
  --night: #0a1424;
  --night-2: #0e1b2f;
  --line: #1f2f48;
  --accent: #8fb4dc;
  --accent-bright: #d3e3f6;
  --accent-ink: #2c4a73;
  --paper: #f2f5f9;
  --accent-line: #6d8fb8;
  --accent-text: #2f5688;
  --paper-ink: #0c1626;
  --paper-soft: #3c4a5e;
  --text: #eef2f7;
  --text-soft: #a9b6c7;
  --text-faint: #7f8da1;
  --metal: linear-gradient(115deg, #5f86b8 0%, #d3e3f6 38%, #8fb4dc 62%, #4f76a8 100%);

  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --measure: 1180px;
  --band: clamp(72px, 10vw, 136px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
  border-radius: 2px;
}

h1,
h2,
h3,
p,
dl,
dd,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 300;
  text-wrap: balance;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--paper-ink);
  padding: 10px 16px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.topbar {
  height: 3px;
  background: var(--metal);
}

/* Header (sits over the hero) */

.site-header {
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 132px;
}

.brand {
  display: inline-flex;
  align-items: baseline;   /* the bars stand on the same line as the letters */
  gap: 0;
  font-size: 36px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand img {
  display: block;
  width: auto;
  height: 1.45em;          /* scales with the ANP size at every breakpoint */
  margin-right: 0.16em;    /* a short step from the tall bar to the A (was a full 18px gap) */
  flex: none;
}

.brand span span {
  font-size: 23px;
  font-weight: 400;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav a {
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent-bright);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(132px + clamp(40px, 7vw, 96px)) 0 clamp(64px, 9vw, 112px);
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(95, 134, 184, 0.18), transparent 60%),
    var(--night);
}

.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}

.eyebrow,
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before,
.kicker::before {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: currentColor;
}

h1 {
  margin-top: 30px;
  font-size: clamp(40px, 6.2vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.028em;
}

h1 em,
.band em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 em {
  color: var(--accent);
  padding-right: 0.06em;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 em {
    background: var(--metal);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.lede {
  margin-top: 34px;
  max-width: 54ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text-soft);
}

/* At-a-glance panel */

.spec {
  border-top: 1px solid var(--accent);
  background: rgba(10, 20, 36, 0.72);
}

.spec > div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 16px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}

.spec dt {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.spec dd {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}

/* Bands */

.section {
  padding: var(--band) 0;
}

.section--paper {
  background: var(--paper);
  color: var(--paper-ink);
}

.section--paper .kicker {
  color: var(--accent-ink);
}

.section--raised {
  background: var(--night-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  margin-top: 26px;
  font-size: clamp(30px, 3.9vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  max-width: 20ch;
}

/* Focus */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.prose {
  display: grid;
  gap: 22px;
  padding-top: 28px;
  border-top: 1px solid var(--accent-ink);
  max-width: 60ch;
  color: var(--paper-soft);
}

.prose p:first-child {
  font-size: 19px;
  line-height: 1.55;
  color: var(--paper-ink);
}

/* Approach rows */

.rows {
  margin-top: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(16px, 5vw, 80px);
  align-items: baseline;
  padding: clamp(24px, 3vw, 38px) 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.row h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  transition: color 0.3s ease;
}

.row p {
  max-width: 58ch;
  font-size: 16px;
  color: var(--text-soft);
}

.row:hover {
  border-top-color: var(--accent);
}

.row:hover h3 {
  color: var(--accent-bright);
}

/* Process pipeline */

.pipeline {
  list-style: none;
  padding: 0;
  margin-top: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pipeline li {
  position: relative;
  padding: 44px clamp(16px, 3vw, 48px) 0 0;
}

.pipeline li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}

.pipeline li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--accent-bright);
  background: var(--night-2);
  box-shadow: inset 0 0 0 4px var(--night-2), inset 0 0 0 8px var(--accent);
}

.pipeline small {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.pipeline h3 {
  margin-top: 12px;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.018em;
}

.pipeline p {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 16px;
  color: var(--text-soft);
}

.loop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(36px, 5vw, 64px);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.loop svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* Gold band */

.band {
  padding: clamp(64px, 9vw, 128px) 0;
  background: var(--paper);
  color: var(--paper-ink);
  border-top: 2px solid var(--accent-line);
  border-bottom: 2px solid var(--accent-line);
}

.band em {
  color: var(--accent-text);
}

.band p {
  max-width: 24ch;
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Footer */

.site-footer {
  padding: clamp(56px, 7vw, 96px) 0 40px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-faint);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 96px);
}

.site-footer .brand {
  font-size: 30px;
  white-space: nowrap;
  color: var(--text);
}

.site-footer .brand span span {
  font-size: 19px;
}

.site-footer h2 {
  margin: 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.site-footer p {
  margin-top: 14px;
  max-width: 78ch;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Hero entrance — pure CSS, always ends visible */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rise {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.d1 { animation-delay: 0.12s; }
.d2 { animation-delay: 0.24s; }
.d3 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise {
    animation: none;
  }
}

@media (max-width: 900px) {
  .site-header .wrap {
    height: 112px;
  }

  .site-header .brand {
    font-size: 30px;
  }

  .site-header .brand span span {
    font-size: 19px;
  }

  .nav {
    font-size: 13px;
  }

  .hero {
    padding-top: calc(112px + clamp(32px, 6vw, 72px));
  }

  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pipeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pipeline li {
    padding: 0 0 40px 40px;
  }

  .pipeline li:last-child {
    padding-bottom: 0;
  }

  .pipeline p {
    max-width: 52ch;
  }

  .pipeline li::before {
    top: 0;
    bottom: 0;
    left: 7px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .pipeline li:last-child::before {
    display: none;
  }

  .pipeline small {
    padding-top: 1px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .site-header .wrap {
    height: 92px;
  }

  .site-header .brand {
    font-size: 22px;
    letter-spacing: 0.16em;
  }

  .hero {
    padding-top: calc(92px + 36px);
  }

  .site-header .brand span span {
    display: none;
  }

  .site-footer .brand {
    font-size: 24px;
  }

  .site-footer .brand span span {
    font-size: 15.5px;
  }

  .nav {
    gap: 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .eyebrow,
  .kicker {
    font-size: 12.5px;
    letter-spacing: 0.16em;
  }

  .eyebrow::before {
    width: 20px;
  }

  .spec > div {
    grid-template-columns: 7em minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .nav {
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}

/* Quiet texture for the panels below the hero. One device per panel, all taken from motifs the
   page already has: the dot field, the logo bars and their lean, and the process line. */

.section,
.band {
  position: relative;
  overflow: hidden;
}

.section > .wrap,
.band > .wrap {
  position: relative;
  z-index: 1;
}

/* Focus: the hero's dot field, fading in from the lower right corner */
#focus::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--accent-ink) 1.15px, transparent 1.7px);
  background-size: 24px 24px;
  opacity: 0.34;
  -webkit-mask-image: radial-gradient(ellipse 70% 115% at 100% 100%, #000 0%, transparent 74%);
  mask-image: radial-gradient(ellipse 70% 115% at 100% 100%, #000 0%, transparent 74%);
  pointer-events: none;
}

/* Approach: the logo bars as a faint watermark beside the heading */
#approach::before {
  content: "";
  position: absolute;
  top: calc(var(--band) - 12px);
  right: max(var(--gutter), calc((100% - var(--measure)) / 2 + var(--gutter)));
  width: min(36vw, 430px);
  aspect-ratio: 182 / 100;
  background: url("/assets/img/logo-bars.svg") no-repeat right top / contain;
  opacity: 0.06;
  pointer-events: none;
}

/* Process: a small light travels the line from research to deployment */
.pipeline {
  position: relative;
}

.pipeline::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px 3px color-mix(in srgb, var(--accent-bright) 55%, transparent);
  animation: travel 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}

@keyframes travel {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 9px); opacity: 0; }
}

/* Closing statement: fine lines at the same lean as the logo bars, fading in from the right */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(121.8deg, var(--accent-line) 0 1px, transparent 1px 17px);
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(to right, transparent 42%, #000 100%);
  mask-image: linear-gradient(to right, transparent 42%, #000 100%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .pipeline::after {
    display: none;   /* the line runs vertically here; keep it still */
  }

  #approach::before {
    width: 52vw;
    opacity: 0.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pipeline::after {
    display: none;
  }
}

/* 404 page */

.notfound {
  min-height: 100vh;
}

.back {
  display: inline-block;
  margin-top: 40px;
  padding-bottom: 3px;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s ease;
}

.back:hover {
  color: var(--accent-bright);
}
