:root {
  --boreal: #1F5C3A;
  --boreal-deep: #143E27;
  --boreal-light: #2D7A4D;
  --aurora-teal: #2DD4BF;
  --aurora-blue: #3B82F6;
  --aurora-violet: #8B5CF6;
  --aurora-magenta: #D946EF;
  --navy: #0B1220;
  --navy-2: #0E1A2C;
  --ink: #0A1014;
  --paper: #FAFAF7;
  --paper-2: #F2F1EA;
  --line: rgba(10, 16, 20, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Display headlines — italic heavy condensed-feel */
.display {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-stretch: 75%;
  letter-spacing: -0.02em;
  line-height: 0.92;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--boreal);
}

/* Glass eyebrow pill */
.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Layout */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

section { position: relative; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 200ms ease;
}
.wordmark .wm-mark {
  height: 44px; width: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 200ms ease;
}
.nav.scrolled .wordmark { color: var(--boreal-deep); }
.nav.scrolled .wordmark .wm-mark { filter: none; }
.wordmark .dot { color: var(--boreal-light); }
.nav.scrolled .wordmark .dot { color: var(--boreal); }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 200ms ease;
}
.nav.scrolled .nav-links { color: var(--ink); }
.nav-links a { transition: opacity 200ms ease; }
.nav-links a:hover { opacity: 0.6; }
.nav-links .divider {
  width: 1px; height: 16px;
  background: currentColor;
  opacity: 0.25;
}
.nav-links .asm {
  color: var(--aurora-teal);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav.scrolled .nav-links .asm { color: #0E7C6E; }
@media (max-width: 800px) {
  .nav-links { gap: 18px; }
  .nav-links .desktop-only { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 60px;
}

/* Animated morphing gradient — built from layered radial gradients */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 800px at 15% 20%, rgba(31, 92, 58, 0.85), transparent 60%),
    radial-gradient(1000px 700px at 85% 30%, rgba(45, 212, 191, 0.35), transparent 65%),
    radial-gradient(1400px 900px at 60% 90%, rgba(20, 62, 39, 0.7), transparent 60%),
    radial-gradient(900px 700px at 30% 80%, rgba(11, 18, 32, 0.9), transparent 70%),
    linear-gradient(180deg, #050a14 0%, #0B1220 40%, #0E2A1C 100%);
  z-index: 0;
  animation: heroMorph 24s ease-in-out infinite alternate;
  filter: saturate(1.05);
}
@keyframes heroMorph {
  0%   { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; transform: scale(1); }
  50%  { background-position: 6% 4%, -4% 6%, 4% -3%, -3% -4%, 0 0; transform: scale(1.04); }
  100% { background-position: -3% 5%, 5% -2%, -3% 3%, 4% 5%, 0 0; transform: scale(1.02); }
}

/* Tree silhouette texture */
.hero-trees {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 38vh; min-height: 220px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  background-image: var(--tree-svg);
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: auto 100%;
  mask-image: linear-gradient(180deg, transparent 0%, #000 60%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%, #000 100%);
}

/* Topographic line overlay */
.hero-topo {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("assets/topo_lines_sparse.png");
  background-size: 160%;
  background-position: center;
  mix-blend-mode: screen;
}

/* Grain */
.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.06;
  z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero-inner {
  position: relative; z-index: 3;
  text-align: center;
}

.hero h1 {
  font-size: clamp(56px, 9.5vw, 152px);
  margin: 28px auto 32px;
  max-width: 14ch;
}
/* Boreal-native accent: solid forest green word with a hand-drawn underline */
.hero h1 .accent-word {
  color: #fff;
  display: inline-block;
  position: relative;
  padding: 0 0.02em 0.08em;
}
.hero h1 .accent-word::after {
  content: '';
  position: absolute;
  left: -0.02em; right: -0.02em;
  bottom: -0.02em;
  height: 0.16em;
  background-image: var(--underline-svg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(0 0 12px rgba(45,122,77,0.45));
}

.hero p.lede {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 56ch;
  margin: 0 auto 56px;
}

.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.scroll-cue:hover {
  color: #fff; border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.07);
}
.scroll-cue .chev {
  display: inline-block;
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ---------- SECTION COMMON ---------- */
.section {
  padding: clamp(80px, 9vw, 140px) 0;
}
.section .grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(32px, 6vw, 88px);
}
@media (max-width: 860px) {
  .section .grid { grid-template-columns: 1fr; gap: 24px; }
}
.section h2 {
  font-size: clamp(36px, 5.4vw, 76px);
  max-width: 18ch;
  margin-bottom: 28px;
}
.section .body {
  max-width: 62ch;
  color: rgba(10, 16, 20, 0.72);
  font-size: 17px;
  line-height: 1.6;
}
.section .body p + p { margin-top: 18px; }

/* Section divider rule */
.rule {
  height: 1px; background: var(--line); margin: 0;
}

/* ---------- WHO WE ARE ---------- */
.who-headline {
  border-left: 4px solid var(--boreal);
  padding-left: 22px;
}

/* ---------- OUR WORK ---------- */
.work {
  background: linear-gradient(180deg, #FAFAF7 0%, #EEF1EE 100%);
  position: relative;
  overflow: hidden;
}
.work::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(45, 212, 191, 0.10), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(31, 92, 58, 0.08), transparent 60%);
  pointer-events: none;
}
.work .inner { position: relative; z-index: 1; }

/* Product name: outlined italic — distinguishes from filled Boreal headlines without borrowing ASM's gradient */
.product-name {
  color: var(--ink);
  -webkit-text-stroke: 1.5px var(--ink);
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.product-name.filled {
  color: var(--boreal-deep);
  -webkit-text-stroke: 0;
  -webkit-text-fill-color: currentColor;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 56px;
}
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-radius: 18px;
  padding: 28px 28px 32px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 18px 40px -24px rgba(11,18,32,0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 26px 50px -22px rgba(11,18,32,0.22);
}
.feature-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.20em;
  color: var(--boreal);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.feature-card h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-stretch: 90%;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature-card p {
  color: rgba(10,16,20,0.7);
  font-size: 15px;
  line-height: 1.55;
}

.pill-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 40px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}
.pill-link:hover { transform: translateY(-1px); background: var(--boreal-deep); }
.pill-link .arr { transition: transform 180ms ease; }
.pill-link:hover .arr { transform: translate(2px, -2px); }

/* ---------- STRUCTURE / DARK ---------- */
.structure {
  color: #fff;
  background: #0A1A14;
  position: relative;
  overflow: hidden;
}
.structure-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 700px at 80% 10%, rgba(31, 92, 58, 0.65), transparent 60%),
    radial-gradient(800px 600px at 10% 90%, rgba(11, 18, 32, 0.9), transparent 60%),
    linear-gradient(180deg, #07140D 0%, #0A1A14 50%, #061018 100%);
  z-index: 0;
  animation: heroMorph 30s ease-in-out infinite alternate;
}
.structure .inner { position: relative; z-index: 1; }
.structure .label { color: var(--aurora-teal); }
.structure .body { color: rgba(255,255,255,0.74); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 64px;
}
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 32px 28px 36px;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,0.6), transparent);
}
.pillar h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-stretch: 85%;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: #fff;
}
.pillar .pillar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.20em;
  color: var(--aurora-teal);
  margin-bottom: 18px;
}
.pillar p {
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- PRINCIPLES ---------- */
.principles {
  background: #FAFAF7;
}
.principle {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.principle:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .principle { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
}
.principle .pn {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-stretch: 75%;
  font-size: clamp(64px, 9vw, 132px);
  color: var(--boreal);
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.principle h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-stretch: 85%;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.principle p {
  color: rgba(10,16,20,0.72);
  font-size: 17px;
  line-height: 1.6;
  max-width: 58ch;
}

/* ---------- AUDIENCE ---------- */
.audience {
  background: #F2F1EA;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  background: #FAFAF7;
  padding: 36px 32px 40px;
}
.audience-card .a-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.20em;
  color: var(--boreal);
  margin-bottom: 28px;
}
.audience-card h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-style: italic;
  font-stretch: 85%;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.audience-card p {
  color: rgba(10,16,20,0.7);
  font-size: 15px; line-height: 1.6;
}

/* ---------- FOUNDER ---------- */
.founder {
  background: #FAFAF7;
}
.founder-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; gap: 32px; } }
.portrait {
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-filter: grayscale(100%) contrast(1.05);
  filter: grayscale(100%) contrast(1.05);
  transition: -webkit-filter 300ms ease, filter 300ms ease;
}
.portrait img:hover {
  -webkit-filter: grayscale(0%) contrast(1);
  filter: grayscale(0%) contrast(1);
}
.founder h2 { margin-bottom: 32px; }
.founder .bio { color: rgba(10,16,20,0.72); font-size: 17px; line-height: 1.6; max-width: 56ch; }
.founder .bio p + p { margin-top: 18px; }
.founder .quote {
  margin-top: 36px;
  padding: 24px 0 24px 22px;
  border-left: 4px solid var(--boreal);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 50ch;
}
.founder .contact-line {
  margin-top: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.10em;
  color: rgba(10,16,20,0.6);
}
.founder .contact-line a { color: var(--boreal); border-bottom: 1px solid currentColor; }

/* ---------- CONTACT ---------- */
.contact {
  background: #FAFAF7;
  border-top: 1px solid var(--line);
}
.contact-rows {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.contact-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
@media (max-width: 720px) {
  .contact-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
}
.contact-row .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(10,16,20,0.5);
}
.contact-row .v {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-stretch: 90%;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.contact-row .v a { border-bottom: 2px solid var(--boreal); padding-bottom: 2px; }
.contact-row .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--boreal);
}

/* ---------- FOOTER ---------- */
footer {
  background: #050A14;
  color: rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--boreal-light), transparent);
  opacity: 0.6;
}
footer::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 240px;
  background: radial-gradient(700px 240px at 50% 0%, rgba(31,92,58,0.35), transparent 70%);
  pointer-events: none;
}
.footer-inner {
  position: relative; z-index: 1;
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.footer-brand .wm {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-style: italic;
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.footer-brand .wm-mark-footer {
  height: 56px; width: 56px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-brand .wm .dot { color: var(--boreal-light); }
.footer-brand .meta {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.footer-brand .tag {
  margin-top: 22px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700; font-style: italic;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 28ch;
  line-height: 1.3;
}
.footer-links {
  display: flex; flex-direction: column; gap: 14px;
  align-items: flex-end;
}
@media (max-width: 720px) { .footer-links { align-items: flex-start; } }
.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 180ms ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: #fff; }
.footer-links a.asm { color: var(--aurora-teal); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

/* Selection */
::selection { background: var(--boreal); color: #fff; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
