/* AMUN Industrial — site styles.
   Brand Guidelines V1.1 · Implementation Spec Shift v1.1, web-applied.

   The system: day fields and night fields joined at one 2px Arc seam,
   traded at the shift change. Role variables (--ground/--band, defined in
   tokens.css) swap with [data-shift] on <html>; every component reads its
   colors from its field so contrast rules hold in both polarities.

   Motion budget: the mark's 400ms shift-change flip is the only
   transition in this file. Nothing else animates. */

/* ---------- base ---------- */

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

html { color-scheme: dark; }
html[data-shift="day"] { color-scheme: light; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  background: var(--ground);
  color: var(--ground-ink);
  -webkit-text-size-adjust: 100%;
}

::selection { background: var(--ground-ink); color: var(--ground); }

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

img, svg { display: block; max-width: 100%; }

ul, ol { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

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

.kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ground-ink-2);
}

h2.kicker { margin-bottom: clamp(20px, 3.5vw, 36px); }

.display {
  font-weight: 700;
  letter-spacing: var(--track-display);
  line-height: 1.05;
}

.h2 {
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 24em;
}

p { max-width: var(--measure); }

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
}

.mono-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.placeholder { color: var(--ground-ink-2); }

/* ---------- the mark ---------- */

.mark { flex: none; }
.mark .mark-a { stroke: currentColor; }
.mark .mark-i { stroke: var(--arc); }

/* The flip: upright is the day resting state; the 180° flip is the
   night-shift orientation, entered through the one sanctioned animation
   at the shift change (bar leading the turn). transform-origin is the
   mark's optical center so the flipped mark holds its position. */
.mark-flip {
  transform-origin: 50% 43.6%;
  transition: transform var(--flip-duration) var(--flip-ease);
  transform: rotate(180deg);
}
html[data-shift="day"] .mark-flip { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .mark-flip { transition: none; }
}
html.shift-snap .mark-flip { transition: none; }

/* ---------- nav ---------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  padding-block: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.brand .brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: var(--track-wordmark);
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links li { display: flex; align-items: center; gap: 26px; }
.nav-links li + li::before { content: "·" / ""; color: inherit; opacity: 0.5; }
.nav-links a {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero (statement 50/50) — index ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero-fields { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.hero-fields .hf-a { background: var(--band); }
.hero-fields .hf-b { background: var(--ground); }

/* the seam — the page's one 2px Arc rule, where the fields meet */
.hero::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 1px);
  width: var(--seam);
  background: var(--arc);
}

.hero > .wrap { position: relative; z-index: 2; width: 100%; }

.hero .site-nav .brand { color: var(--band-ink); }
.hero .site-nav .nav-links { color: var(--ground-ink); }

.hero-headline {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.1em;
  align-content: center;
  padding-inline: clamp(20px, 5vw, 48px);
  font-size: clamp(2.1rem, 5.4vw, 4.6rem);
  pointer-events: none;
}
.hero-headline .hh-a { justify-self: end; text-align: right; color: var(--band-ink); }
.hero-headline .hh-b { justify-self: start; color: var(--ground-ink); }

/* the sanctioned crossing: the single display headline crosses the seam
   in difference mode (white renders as each field's opposite) */
@supports (mix-blend-mode: difference) {
  .hero-headline { mix-blend-mode: difference; }
  .hero-headline .hh-a, .hero-headline .hh-b { color: var(--day); }
}

.shift-label {
  position: absolute;
  z-index: 2;
  bottom: 34px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  max-width: none;
}
.shift-label.sl-a { left: clamp(20px, 5vw, 48px); color: var(--band-ink-2); }
.shift-label.sl-b { right: clamp(20px, 5vw, 48px); color: var(--ground-ink-2); }

/* polarity-dependent label text (night is the no-JS default) */
.pol-day-only { display: none; }
html[data-shift="day"] .pol-day-only { display: inline; }
html[data-shift="day"] .pol-night-only { display: none; }

/* ---------- interior header band (22/78) ---------- */

.bandhead { background: var(--band); color: var(--band-ink); }
.bandhead.band-seam { border-bottom: var(--seam) solid var(--arc); }
.bandhead .site-nav { color: var(--band-ink); }
.bandhead .brand { color: var(--band-ink); }

.band-title { padding-block: clamp(36px, 7vh, 84px) clamp(40px, 8vh, 96px); }
.band-title h1 {
  font-weight: 700;
  letter-spacing: var(--track-display);
  line-height: 1.05;
  font-size: clamp(2.3rem, 5vw, 4rem);
}
.band-title .standfirst {
  margin-top: 16px;
  color: var(--band-ink-2);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

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

.section { padding-block: clamp(56px, 9vw, 112px); }
.section--tight { padding-top: 0; }
.section--ruled { padding-top: 0; }
.section--ruled > .wrap::before {
  content: "";
  display: block;
  border-top: 1px solid var(--ground-hairline);
  margin-bottom: clamp(56px, 9vw, 112px);
}

/* statements — the problem, in three declarative rows */
.statements { border-top: 1px solid var(--ground-hairline); }
.statements li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 16px;
  align-items: baseline;
  padding-block: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--ground-hairline);
}
.statements .n {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ground-ink-2);
}
.statements .statement {
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  max-width: 30em;
}

/* ---------- chart (the model in one figure) ---------- */

.chart-block { max-width: 900px; }
.chart-block .chart { width: 100%; height: auto; }
.chart .grid { stroke: var(--ground-hairline); stroke-width: 1; }
.chart .cap { stroke: var(--ground-ink-2); stroke-width: 1; stroke-dasharray: 6 6; }
.chart .s-host { stroke: var(--ground-ink); stroke-width: 2.5; fill: none; }
.chart .s-compute { stroke: var(--arc); stroke-width: 2.5; fill: none; }
.chart-axis {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ground-ink-2);
  text-align: center;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  max-width: none;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: var(--track-label);
  color: var(--ground-ink-2);
}
.chart-legend .sw {
  display: inline-block;
  width: 20px;
  height: 2px;
  margin-right: 9px;
  vertical-align: middle;
  background: var(--ground-ink);
}
.chart-legend .sw-compute { background: var(--arc); }
.chart-legend .sw-capacity {
  background: none;
  border-top: 1px dashed var(--ground-ink-2);
  height: 0;
}
.chart-caption { margin-top: 22px; }

/* ---------- proof / facts ---------- */

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.fact-grid .kicker { display: block; margin-bottom: 14px; }
.fact-grid p { font-weight: 500; font-size: 1.12rem; line-height: 1.35; }
.fact-grid .mono-fact {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

/* ---------- audience router cards ---------- */

.router {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.router a {
  display: block;
  border: 1px solid var(--ground-hairline);
  padding: 22px 20px 26px;
  text-decoration: none;
  min-height: 130px;
}
.router .kicker { display: block; margin-bottom: 12px; }
.router .line { font-weight: 500; font-size: 1.02rem; line-height: 1.3; }
.router a:hover .line, .router a:focus-visible .line { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the handoff diagram (model page statement split) ---------- */

.handoff {
  position: relative;
  min-height: clamp(380px, 60vh, 560px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.handoff .ho-a { background: var(--ground); }
.handoff .ho-b { background: var(--band); }
/* the seam — this page's one Arc rule: the seam IS the shift change */
.handoff::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 1px);
  width: var(--seam);
  background: var(--arc);
}
.handoff-line {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.15em;
  align-content: center;
  padding-inline: clamp(20px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: var(--track-display);
  line-height: 1.12;
  font-size: clamp(1.35rem, 2.9vw, 2.5rem);
  pointer-events: none;
}
.handoff-line .hl-a { justify-self: end; text-align: right; color: var(--ground-ink); }
.handoff-line .hl-b { justify-self: start; color: var(--band-ink); }
@supports (mix-blend-mode: difference) {
  .handoff-line { mix-blend-mode: difference; }
  .handoff-line .hl-a, .handoff-line .hl-b { color: var(--day); }
}
.handoff .shift-label { bottom: 26px; }
.handoff .sl-a { left: clamp(20px, 5vw, 48px); color: var(--ground-ink-2); }
.handoff .sl-b { right: clamp(20px, 5vw, 48px); color: var(--band-ink-2); }

/* ---------- fact list (modular by design / what each party gets) ---------- */

.ledger-list { border-top: 1px solid var(--ground-hairline); max-width: 62rem; }
.ledger-list li {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 12px 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--ground-hairline);
  align-items: baseline;
}
.ledger-list .kicker { padding-top: 3px; }
.ledger-list p { font-weight: 500; font-size: 1.08rem; }

/* NDA / deliberately unanswered block */
.nda-block {
  border: 1px solid var(--ground-hairline);
  padding: clamp(24px, 4vw, 40px);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: var(--track-label);
  line-height: 2;
  color: var(--ground-ink-2);
  text-transform: uppercase;
  max-width: 56rem;
}

/* ---------- sites ledger table ---------- */

.ledger { width: 100%; border-collapse: collapse; max-width: 56rem; }
.ledger th {
  background: var(--band);
  color: var(--band-ink);
  font-weight: 500;
  font-size: 0.9rem;
  text-align: left;
  padding: 13px 16px;
  border-bottom: var(--seam) solid var(--arc);
}
.ledger td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--ground-hairline);
  font-size: 0.95rem;
}
.ledger .num, .ledger td.code { font-family: var(--font-mono); white-space: nowrap; }
.ledger th.status, .ledger td.status { text-align: right; font-family: var(--font-mono); }
.ledger td.status { font-size: 0.83rem; letter-spacing: 0.06em; }
.ledger .row-placeholder td {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ground-ink-2);
}

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

.partner { scroll-margin-top: 24px; }
.partner .h2 { margin-bottom: 26px; }
.props { max-width: 46rem; }
.props li {
  padding-block: 13px;
  border-bottom: 1px solid var(--ground-hairline);
  font-weight: 500;
  font-size: 1.05rem;
}
.props li:first-child { border-top: 1px solid var(--ground-hairline); }

.process {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: var(--track-label);
  color: var(--ground-ink-2);
  text-transform: uppercase;
}
.process li + li::before { content: "→  " / ""; }

.cta {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.lede { margin-top: 24px; max-width: var(--measure); }
.lede p + p { margin-top: 1em; }
.intro { margin-bottom: 34px; max-width: var(--measure); }
.diagram-caption { margin-top: 30px; }

/* ---------- company ---------- */

.bio-block { max-width: var(--measure); }
.bio-block p + p { margin-top: 1em; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  max-width: 780px;
}
.team-card .headshot {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ground-hairline);
  display: grid;
  place-content: center;
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: var(--track-label);
  color: var(--ground-ink-2);
  text-transform: uppercase;
}
.team-card .name { margin-top: 14px; font-weight: 500; }
.team-card .role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ground-ink-2);
  margin-top: 4px;
}

.insights { display: grid; gap: 0; max-width: 62rem; }
.insight {
  padding-block: clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--ground-hairline);
}
.insight:last-child { border-bottom: 1px solid var(--ground-hairline); }
.insight .kicker { display: block; margin-bottom: 10px; }
.insight h3 { font-weight: 500; font-size: 1.35rem; margin-bottom: 10px; }
.insight .note { margin-top: 12px; }

.presskit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  max-width: 62rem;
}
.presskit-grid .specimen {
  border: 1px solid var(--ground-hairline);
  display: block;
  text-decoration: none;
}
.presskit-grid .specimen .tile { display: grid; place-content: center; padding: 30px 20px; min-height: 130px; }
.presskit-grid .specimen .tile img { height: 56px; width: auto; }
.presskit-grid .specimen .tile.on-night { background: var(--night); }
.presskit-grid .specimen .tile.on-day { background: var(--day); border-bottom: 0; }
.presskit-grid .specimen .meta {
  border-top: 1px solid var(--ground-hairline);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.presskit-grid .specimen:hover .meta, .presskit-grid .specimen:focus-visible .meta { text-decoration: underline; }

.boilerplate {
  border: 1px solid var(--ground-hairline);
  padding: clamp(22px, 3.5vw, 34px);
  max-width: 56rem;
  margin-top: 34px;
}
.boilerplate p { font-size: 1.02rem; }
.boilerplate .kicker + p { margin-top: 14px; }

/* ---------- contact form ---------- */

.contact-form { max-width: 40rem; }
.field { display: grid; gap: 9px; margin-bottom: 26px; }
.field label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ground-ink-2);
}
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ground-ink);
  background: transparent;
  border: 1px solid var(--ground-ink-2);
  border-radius: 0;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: auto; }

.btn {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ground);
  background: var(--ground-ink);
  border: 1px solid var(--ground-ink);
  padding: 14px 30px;
  cursor: pointer;
}

/* spam honeypot — invisible to people, present for bots */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* investor data-room line — this page's one Arc accent */
.investor-note {
  border-left: var(--seam) solid var(--arc);
  padding-left: 18px;
  margin-bottom: 26px;
  font-weight: 500;
}

.form-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ground-ink-2);
}

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

.site-footer {
  background: var(--band);
  color: var(--band-ink);
  padding-block: clamp(44px, 6vw, 72px) 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 40px;
  align-items: start;
}
/* the footer mark stands alone — the one place the mark rests flipped
   on the night shift; the wordmark below it is not a lockup */
.foot-mark { display: inline-block; color: var(--band-ink); margin-bottom: 20px; }
.foot-wordmark {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: var(--track-wordmark);
  color: var(--band-ink);
  margin-bottom: 10px;
  max-width: none;
}
.tagline {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--band-ink-2);
}
.foot-links { display: grid; gap: 12px; justify-items: start; }
.foot-links a, .foot-links span {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
}
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-links .press-line { color: var(--band-ink-2); }

.shift-toggle {
  display: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: var(--track-label);
  color: var(--band-ink-2);
  background: none;
  border: 1px solid var(--band-hairline);
  padding: 12px 16px;
  cursor: pointer;
}
html.js .shift-toggle { display: inline-block; }
.shift-toggle .t-day, .shift-toggle .t-night { color: inherit; }
html[data-shift="day"] .shift-toggle .t-day { color: var(--band-ink); text-decoration: underline; text-underline-offset: 4px; }
html:not([data-shift="day"]) .shift-toggle .t-night { color: var(--band-ink); text-decoration: underline; text-underline-offset: 4px; }

.foot-legal {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--band-hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--band-ink-2);
}
.foot-legal p { max-width: none; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  /* vertical splits stack: the fields trade top/bottom instead of left/right */
  .hero-fields { grid-template-columns: none; grid-template-rows: 1fr 1fr; }
  .hero::after {
    top: calc(50% - 1px); bottom: auto; left: 0; right: 0;
    width: auto; height: var(--seam);
  }
  /* nav sits wholly on the top field */
  .hero .site-nav .nav-links { color: var(--band-ink); }
  .hero .site-nav { justify-content: flex-start; }

  .hero-headline {
    grid-template-columns: none;
    grid-template-rows: auto auto;
    row-gap: 0.6em;
    justify-items: center;
    font-size: clamp(2rem, 8.6vw, 2.9rem);
  }
  .hero-headline .hh-a { justify-self: center; text-align: center; }
  .hero-headline .hh-b { justify-self: center; text-align: center; }

  /* the stacked top field keeps its label clear of the crossing headline */
  .shift-label.sl-a { bottom: auto; top: 156px; left: clamp(20px, 5vw, 48px); right: auto; }

  .handoff { grid-template-columns: none; grid-template-rows: 1fr 1fr; min-height: 480px; }
  .handoff::after {
    top: calc(50% - 1px); bottom: auto; left: 0; right: 0;
    width: auto; height: var(--seam);
  }
  .handoff-line {
    grid-template-columns: none;
    grid-template-rows: auto auto;
    row-gap: 0.7em;
    justify-items: center;
  }
  .handoff-line .hl-a, .handoff-line .hl-b { justify-self: center; text-align: center; }
  .handoff .sl-a { bottom: auto; top: 26px; }

  .fact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .ledger-list li { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 480px) {
  .nav-links { gap: 16px; }
  .nav-links li { gap: 16px; }
  .chart-axis { font-size: 0.58rem; }
  .statements li { grid-template-columns: 2.4rem 1fr; }
  .ledger th, .ledger td { padding-inline: 10px; }
}
