/* AXE Co — one stylesheet, no build step. See DESIGN.md for the system. */

/* ---------- fonts ---------- */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plexmono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plexmono-500.woff2") format("woff2");
}

/* ---------- tokens ---------- */

:root {
  --black: #0b0b0b;
  --black-lift: #141413;
  --bone: #eeeee9;
  --bone-soft: #c6c6c0;
  --muted: #9c9c98;
  --rule: rgba(238, 238, 233, 0.14);
  --rule-strong: rgba(238, 238, 233, 0.28);
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- reset ---------- */

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

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--black);
  color: var(--bone-soft);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--bone);
}

:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}

::selection {
  background: var(--bone);
  color: var(--black);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  text-transform: none;
  letter-spacing: normal;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--bone);
  color: var(--black);
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-decoration: none;
  transform: translateY(-250%);
}
.skip:focus {
  transform: none;
}

/* ---------- type ---------- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-size: clamp(2.625rem, 6.6vw, 5.25rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--bone);
}
.display .dim {
  color: var(--muted);
}

.h2 {
  font-size: clamp(1.875rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--bone);
  max-width: 20ch;
}
.h2--wide {
  max-width: 28ch;
}

.h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.014em;
  line-height: 1.2;
  color: var(--bone);
}

.lede {
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.6;
  max-width: 52ch;
}

.prose {
  max-width: 62ch;
}
.prose p + p {
  margin-top: 1.1em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.secnum {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.sechead {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.sechead .h2 {
  margin-top: 10px;
}
.sechead-stack {
  display: grid;
  gap: 10px;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.0625rem;
  color: var(--bone);
}
.brand .mark {
  width: 18px;
  height: 18px;
  flex: none;
}
.brand .co {
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}
.site-nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding-block: 22px;
}
.site-nav a:hover {
  color: var(--bone);
}
.site-nav a.cta {
  color: var(--bone);
  border: 1px solid var(--rule-strong);
  padding: 11px 18px;
}
.site-nav a.cta:hover {
  background: var(--bone);
  color: var(--black);
}
@media (max-width: 720px) {
  .site-nav a:not(.cta) {
    display: none;
  }
}

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

.hero {
  border-bottom: 1px solid var(--rule);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: min(78vh, 860px);
}
.hero__copy {
  padding: clamp(56px, 9vw, 128px) var(--gutter);
  padding-right: clamp(24px, 4vw, 72px);
  max-width: calc((var(--wrap) * 0.58) + var(--gutter));
  margin-left: max(0px, calc((100vw - var(--wrap)) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3vw, 32px);
}
.hero__media {
  position: relative;
  border-left: 1px solid var(--rule);
  overflow: hidden;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}
.hero__media .tag {
  position: absolute;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--bone);
  background: rgba(11, 11, 11, 0.72);
  padding: 8px 12px;
}
.hero__media .tag--tl {
  top: 20px;
  left: 20px;
}
.hero__media .tag--tr {
  top: 20px;
  right: 20px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__media {
    border-left: 0;
    border-top: 1px solid var(--rule);
    aspect-ratio: 16 / 9;
  }
  .hero__media img {
    position: static;
    aspect-ratio: 16 / 9;
  }
}

.microrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-block: 16px;
  border-top: 1px solid var(--rule);
}
.microrow span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.btn--solid {
  background: var(--bone);
  color: var(--black);
  border: 1px solid var(--bone);
}
.btn--solid:hover {
  background: var(--black);
  color: var(--bone);
}
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--rule-strong);
}
.btn--ghost:hover {
  background: var(--bone);
  color: var(--black);
  border-color: var(--bone);
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(64px, 9vw, 136px);
}
.section + .section {
  border-top: 1px solid var(--rule);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.figure {
  position: relative;
}
.figure img {
  width: 100%;
  filter: grayscale(1) contrast(1.04);
}
.figure figcaption {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  margin-top: 12px;
}

/* stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  margin-top: clamp(40px, 6vw, 72px);
}
.stat {
  background: var(--black);
  padding: clamp(20px, 3vw, 36px) clamp(16px, 2vw, 28px);
}
.stat b {
  display: block;
  font-size: clamp(1.875rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--bone);
}
.stat span {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 880px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* team blocks */

.blocks {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.block {
  background: var(--black);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 64px);
  padding-block: clamp(28px, 4vw, 48px);
}
.block__id {
  display: grid;
  gap: 12px;
  align-content: start;
}
.block__id .secnum {
  color: var(--muted);
}
.block__name {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--bone);
}
.block__role {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.block__bio {
  max-width: 58ch;
  align-self: center;
}
@media (max-width: 880px) {
  .block {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* service cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.card {
  background: var(--black-lift);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 16px;
  align-content: start;
}
.card .secnum {
  color: var(--muted);
}
.card__scope {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 880px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* protocol */

.protocol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  margin-top: clamp(40px, 6vw, 72px);
}
.step {
  background: var(--black);
  padding: clamp(20px, 3vw, 32px) clamp(16px, 2vw, 24px);
  display: grid;
  gap: 12px;
  align-content: start;
}
@media (max-width: 880px) {
  .protocol {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .protocol {
    grid-template-columns: 1fr;
  }
}

/* ---------- forms / conversations ---------- */

.convo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.convo__col {
  background: var(--black-lift);
  padding: clamp(24px, 3.5vw, 48px);
  display: grid;
  gap: 20px;
  align-content: start;
}
@media (max-width: 880px) {
  .convo {
    grid-template-columns: 1fr;
  }
}

.form {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  background: var(--black);
  border: 1px solid var(--rule-strong);
  color: var(--bone);
  font: inherit;
  font-size: 1rem;
  border-radius: 0;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239c9c98' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--bone);
  outline-offset: 2px;
  border-color: var(--bone);
}

.pathway {
  display: grid;
  gap: 18px;
}
.pathway li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
}
.pathway {
  list-style: none;
  padding: 0;
}

.smallnote {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.7;
}

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

.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: clamp(40px, 6vw, 72px) 32px;
}
.site-foot__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}
.site-foot .brand {
  font-size: 1.25rem;
}
.foot-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
}
@media (max-width: 720px) {
  .foot-meta {
    justify-items: start;
  }
}
.foot-meta span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-foot__legal {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-foot__legal span,
.site-foot__legal a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-foot__legal a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  position: relative;
}
.site-foot__legal a::before {
  content: "";
  position: absolute;
  inset: -14px 0;
}
.site-foot__legal a:hover {
  color: var(--bone);
}

/* ---------- motion ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   v3 additions — the 01–05 rail (kept from the architectural pass) and the
   protocol on its bone sheet with the axonometric, per Jordan 14 Aug.
   ========================================================================== */

.rail {
  position: fixed;
  right: clamp(10px, 1.6vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  mix-blend-mode: difference;
}
.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.rail a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 4px;
}
.rail a::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--muted);
  transition: width 200ms ease, background-color 200ms ease;
}
.rail a:hover::before { background: var(--bone); }
.rail a:hover { color: var(--bone); }
.rail a[aria-current="true"] { color: var(--bone); }
.rail a[aria-current="true"]::before {
  width: 26px;
  background: #c8442a;
}
@media (max-width: 900px) { .rail { display: none; } }

/* protocol on bone */
.section--sheet {
  background: #eeeee9;
  color: #45453f;
}
.section--sheet .h2 { color: #161614; }
.section--sheet .secnum,
.section--sheet .lede { color: #6e6e68; }
.section--sheet .step .h3 { color: #161614; }
.section--sheet .step .secnum { color: #86672f; }
.section--sheet .protocol { border-top-color: rgba(22, 22, 20, 0.4); }
.section--sheet .step::before { background: rgba(22, 22, 20, 0.4); }
.section--sheet .figure { margin-bottom: clamp(32px, 5vw, 56px); }

/* the axonometric adapts to the light ground */
.section--sheet .drawing text { fill: #6e6e68; }
.section--sheet .drawing .stroke {
  fill: none;
  stroke: #45453f;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.section--sheet .drawing .stroke--faint { stroke: rgba(22, 22, 20, 0.3); stroke-width: 1; }
.section--sheet .drawing .stroke--dash { stroke-dasharray: 5 5; }

/* steps sit flat on the sheet, not as black cards */
.section--sheet .protocol {
  background: transparent;
  border-block-color: rgba(22, 22, 20, 0.4);
  gap: 0;
}
.section--sheet .step {
  background: transparent;
  color: #45453f;
}

/* --- working forms: expander, honeypot, feedback -------------------------- */
.expander {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.expander.is-open { grid-template-rows: 1fr; }
.expander__inner { overflow: hidden; min-height: 0; }
.expander .form { padding-top: 20px; }

.form .hp { position: absolute; left: -9999px; opacity: 0; }
.form__msg { font-size: 0.9375rem; min-height: 1.4em; }
.form__msg[data-state="ok"] { color: var(--bone); }
.form__msg[data-state="err"] { color: #d06a5f; }

@media (prefers-reduced-motion: reduce) {
  .expander { transition: none; }
}

/* --- brand lockup: no mark, stronger and tighter (Jordan 14 Aug) ---------- */
.brand {
  gap: 0;
  font-size: 1.375rem;
  letter-spacing: 0.03em;
}
.site-foot .brand {
  font-size: 1.75rem;
}
