:root {
  --white: #ffffff;
  --paper: #f4f4f2;
  --grey-1: #d9d9d6;
  --grey-2: #9a9a97;
  --grey-3: #5c5c5a;
  --charcoal: #1c1c1c;
  --black: #0a0a0a;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, svg, canvas { display: block; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--black); color: var(--white); padding: .75rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  color: var(--white);
  mix-blend-mode: difference;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.brand-name { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.site-nav ol { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); }
.site-nav a {
  text-decoration: none; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  display: inline-flex; gap: .45rem; align-items: baseline; position: relative; padding: .25rem 0;
}
.site-nav a span { font-family: var(--mono); font-size: .65rem; opacity: .55; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

@media (max-width: 820px) {
  .site-header { mix-blend-mode: normal; color: var(--white); background: rgba(10,10,10,.94); }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .75rem; background: none; border: 0; color: inherit;
    font: 500 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: .5rem 0;
  }
  .menu-toggle-lines { width: 22px; height: 8px; border-top: 1.5px solid; border-bottom: 1.5px solid; transition: transform .4s var(--ease); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines { transform: scaleY(.2); }
  .site-nav {
    position: fixed; inset: 60px 0 0; background: var(--black);
    padding: 2rem var(--pad); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav ol { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--charcoal); }
  .site-nav a { font-size: clamp(1.75rem, 8vw, 2.5rem); letter-spacing: -.01em; text-transform: none; font-weight: 500; padding: 1rem 0; gap: 1rem; }
  .site-nav a::after { display: none; }
}

/* ---------- Shared ---------- */
.eyebrow {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-3);
  display: flex; align-items: center; gap: .9rem;
}
.eyebrow span { display: inline-flex; align-items: center; gap: .9rem; color: var(--black); }
.eyebrow span::after { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
.section { padding: clamp(5rem, 12vw, 10rem) var(--pad); position: relative; }
.section-head { display: grid; gap: 1.75rem; max-width: 70rem; margin-bottom: clamp(3rem, 7vw, 6rem); }
.section-title {
  font-size: clamp(2rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 500;
}
.lead { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.45; letter-spacing: -.01em; font-weight: 400; }
.line-outline { color: transparent; -webkit-text-stroke: 1px var(--white); }
@supports not (-webkit-text-stroke: 1px black) { .line-outline { color: inherit; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; background: var(--black); color: var(--white);
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: calc(100% / 6) calc(100% / 4);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero-inner { width: 100%; padding: 7rem var(--pad) clamp(3rem, 7vw, 5rem); }
.hero .eyebrow, .hero .eyebrow span { color: var(--grey-2); }
.hero-eyebrow { margin-bottom: 1.5rem; }
.hero-title {
  font-size: clamp(3.2rem, 12.5vw, 13rem); line-height: .86; letter-spacing: -.055em; font-weight: 800; text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line-outline { -webkit-text-stroke-width: 1.5px; font-weight: 600; }
.hero-foot {
  margin-top: clamp(2rem, 5vw, 4rem); padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.18);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: start;
}
.hero-headline { font-size: clamp(1.5rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.hero-copy { color: var(--grey-1); max-width: 34rem; font-size: clamp(1rem, 1.2vw, 1.125rem); }
.scroll-cue {
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center;
  display: flex; align-items: center; gap: .75rem; text-decoration: none;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-2);
}
.scroll-cue i { width: 3rem; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--white); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.js .hero-title .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js .hero-eyebrow, .js .hero-foot { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .loaded .hero-title .line > span { transform: none; }
.js .loaded .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.js .loaded .hero-eyebrow { opacity: 1; transform: none; }
.js .loaded .hero-foot { opacity: 1; transform: none; transition-delay: .45s; }

@media (max-width: 820px) {
  .hero-foot { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

/* ---------- About ---------- */
.about-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem 5rem; max-width: 80rem; margin-left: auto; color: var(--charcoal); }
.about-body p:not(.lead) { color: var(--grey-3); }
.pillars {
  list-style: none; padding: 0; margin: clamp(4rem, 8vw, 7rem) 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--black);
}
.pillars li { padding: 2rem 2rem 2.5rem 0; border-bottom: 1px solid var(--grey-1); display: grid; gap: .6rem; align-content: start; }
.pillars li:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid var(--grey-1); }
.pillar-index { font-family: var(--mono); font-size: .75rem; color: var(--grey-2); }
.pillars h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.pillars p { color: var(--grey-3); font-size: .975rem; }

@media (max-width: 900px) {
  .about-body { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars li, .pillars li:not(:nth-child(3n+1)) { padding: 1.75rem 1.25rem 2rem 0; border-left: 0; }
  .pillars li:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--grey-1); }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Areas ---------- */
.areas { background: var(--paper); }
.divisions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--black); border-left: 1px solid var(--grey-1); }
.division {
  position: relative; display: flex; flex-direction: column; gap: 1rem; min-height: 26rem;
  padding: 1.75rem; border-right: 1px solid var(--grey-1); border-bottom: 1px solid var(--grey-1);
  background: var(--paper); transition: background .6s var(--ease), color .6s var(--ease);
}
.division-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.division-num { font-family: var(--mono); font-size: .8rem; color: var(--grey-3); transition: color .6s var(--ease); }
.glyph { width: clamp(64px, 7vw, 96px); height: auto; fill: none; stroke: currentColor; stroke-width: 1; transition: transform 1.2s var(--ease); }
.glyph .fill { fill: currentColor; stroke: none; }
.division h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; margin-top: 5rem; }
.division p { color: var(--grey-3); font-size: .975rem; transition: color .6s var(--ease); }
.division:hover { background: var(--black); color: var(--white); }
.division:hover p, .division:hover .division-num { color: var(--grey-2); }
.division:hover .glyph { transform: rotate(90deg); }

@media (max-width: 1100px) { .divisions { grid-template-columns: 1fr 1fr; } .division { min-height: 22rem; } }
@media (max-width: 560px) { .divisions { grid-template-columns: 1fr; } .division { min-height: 0; } .division h3 { margin-top: 3rem; } }

/* ---------- Philosophy ---------- */
.philosophy { background: var(--black); color: var(--white); overflow: hidden; }
.philosophy .eyebrow, .philosophy .eyebrow span { color: var(--grey-2); }
.philosophy-title {
  display: grid; margin: clamp(2.5rem, 6vw, 5rem) 0;
  font-size: clamp(4rem, 19vw, 20rem); line-height: .82; letter-spacing: -.06em; font-weight: 800; text-transform: uppercase;
}
.philosophy-title .line-outline { -webkit-text-stroke-width: 1.5px; justify-self: end; }
.philosophy-defs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--charcoal); }
.def { padding: 2rem 2.5rem 2.5rem 0; display: grid; gap: .75rem; }
.def + .def { padding-left: 2.5rem; border-left: 1px solid var(--charcoal); }
.def-term { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.def-term span { font-family: var(--mono); font-size: .8rem; font-weight: 400; color: var(--grey-2); margin-left: .5rem; }
.def p:not(.def-term) { color: var(--grey-1); font-size: clamp(1.05rem, 1.4vw, 1.3rem); max-width: 30rem; }
.philosophy-close {
  margin-top: clamp(3rem, 7vw, 6rem); max-width: 54rem;
  font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 400;
}
@media (max-width: 720px) {
  .philosophy-defs { grid-template-columns: 1fr; }
  .def + .def { padding-left: 0; border-left: 0; border-top: 1px solid var(--charcoal); }
}

/* ---------- Vision ---------- */
.vision-body { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; }
.network { margin: 0; border: 1px solid var(--grey-1); background: var(--white); }
.network svg { width: 100%; height: auto; }
.network .dot-field { fill: none; }
.network pattern circle { fill: var(--grey-1); }
.network .meridians * { fill: none; stroke: var(--grey-1); stroke-width: 1; }
.network .arcs path { fill: none; stroke: var(--black); stroke-width: 1.25; stroke-dasharray: 600; stroke-dashoffset: 600; }
.network.in .arcs path { animation: draw 2.4s var(--ease) forwards; }
.network.in .arcs path:nth-child(2) { animation-delay: .4s; }
.network.in .arcs path:nth-child(3) { animation-delay: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.network .core { fill: var(--black); }
.network .pulse { fill: none; stroke: var(--black); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pulse 3s var(--ease) infinite; }
.network .nodes g:nth-child(2) .pulse { animation-delay: 1s; }
.network .nodes g:nth-child(3) .pulse { animation-delay: 2s; }
@keyframes pulse { 0% { transform: scale(.25); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.network text { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; fill: var(--black); }
.regions { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--black); }
.regions li { padding: 1.25rem 0; font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -.01em; display: flex; gap: 1rem; align-items: baseline; }
.regions span { font-family: var(--mono); font-size: .75rem; color: var(--grey-2); }
@media (max-width: 900px) { .vision-body { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .regions { grid-template-columns: 1fr; } .regions li { border-bottom: 1px solid var(--grey-1); } }

/* ---------- Contact ---------- */
.contact { background: var(--paper); display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem clamp(3rem, 7vw, 8rem); }
.contact-intro { display: grid; gap: 1.5rem; align-content: start; }
.contact-intro > p:not(.eyebrow) { color: var(--grey-3); max-width: 26rem; }
.contact-email {
  justify-self: start; font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -.01em;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .2rem; word-break: break-all;
}
.contact-email:hover { color: var(--grey-3); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; align-content: start; }
.field { display: grid; gap: .5rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-3); }
.optional { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--black); background: transparent;
  border: 0; border-bottom: 1px solid var(--grey-2); border-radius: 0; padding: .65rem 0; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.5rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--black); box-shadow: 0 1px 0 var(--black); }
.field [aria-invalid="true"] { border-bottom-color: var(--black); border-bottom-style: dashed; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.button {
  display: inline-flex; align-items: center; gap: 1.25rem; cursor: pointer;
  font: 500 .85rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); background: var(--black); border: 1px solid var(--black); padding: 1.15rem 1.75rem;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.button i { font-style: normal; transition: transform .4s var(--ease); }
.button:hover { background: transparent; color: var(--black); }
.button:hover i { transform: translateX(6px); }
.form-status { font-size: .95rem; color: var(--charcoal); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--grey-2); padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem; overflow: hidden; }
.footer-mark {
  font-size: clamp(3rem, 15vw, 16rem); font-weight: 800; letter-spacing: -.06em; line-height: .8; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px var(--charcoal); white-space: nowrap; margin-bottom: 2.5rem;
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--charcoal); padding-top: 1.5rem; font-size: .875rem; }
.footer-row strong { color: var(--white); font-weight: 500; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .network .arcs path { stroke-dashoffset: 0; }
}
