/* ==========================================================================
   STRTM — styles.css
   One stylesheet for a second-order alignment lab.
   Warm-ink monochrome. Newsreader display / Geist body / Geist Mono utility.
   No accent color. Motion is CSS-only and honors prefers-reduced-motion.
   (Built on the same token discipline as the rest of the genre — contrast and
   a held line carry all hierarchy.)
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --ink: #0C0A09;        /* page ground (warm near-black) */
  --ink-2: #15110E;      /* faint raised panels / form field */
  --bone: #EAE5DC;       /* primary text, the line that does not move */
  --ash: #948C82;        /* muted text, captions, the drifting layers */
  --rule: #2A2521;       /* hairlines, dividers, ticks */
  --rule-faint: #1B1714; /* section seams */

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-eyebrow: 0.78rem;
  --fs-micro: 0.8rem;
  --fs-body: 1.0625rem;
  --fs-lede: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  --fs-display: clamp(2.3rem, 1.4rem + 4.4vw, 4.4rem);

  --measure: 38rem;
  --measure-wide: 64rem;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --band-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  --hair: 1px;
  --radius: 1px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--bone); color: var(--ink); }

/* ---- Accessibility: skip link + visible focus ---------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

/* ==========================================================================
   Layout — the top member, the editorial column
   ========================================================================== */
.member {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-bottom: var(--hair) solid var(--rule);
}
.member__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.wordmark {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--bone);
  text-transform: uppercase;
  white-space: nowrap;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.4rem + 1.6vw, 2.1rem);
}
.nav__link {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--ash);
  transition: color 0.25s var(--ease);
  position: relative;
  padding: 0.2rem 0;
}
.nav__link:hover { color: var(--bone); }
.nav__link[aria-current="page"] { color: var(--bone); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: var(--hair);
  background: var(--bone);
}
.nav__cta {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--bone);
  border: var(--hair) solid var(--rule);
  border-radius: var(--radius);
  padding: 0.5rem 0.95rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.nav__cta:hover { border-color: var(--bone); background: var(--bone); color: var(--ink); }

@media (max-width: 40rem) {
  .member__inner { flex-wrap: wrap; gap: 0.6rem 1.1rem; }
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 1.1rem;
    padding-top: 0.55rem;
    border-top: var(--hair) solid var(--rule-faint);
  }
  .nav__cta { margin-left: auto; }
}

.page { flex: 1 0 auto; width: 100%; }
.wrap {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.band { padding-top: var(--band-y); padding-bottom: var(--band-y); }
.band--tight {
  padding-top: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  padding-bottom: clamp(2.25rem, 1.5rem + 3vw, 4rem);
}

.rule {
  border: 0;
  height: var(--hair);
  background: var(--rule);
  max-width: var(--measure-wide);
  margin: 0 auto;
  position: relative;
}
.rule::before,
.rule::after {
  content: "";
  position: absolute;
  top: -3px;
  width: var(--hair);
  height: 7px;
  background: var(--rule);
}
.rule::before { left: 0; }
.rule::after { right: 0; }
.rule--faint { background: var(--rule-faint); }

/* ==========================================================================
   Type roles
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 1.4rem;
}
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--bone);
  max-width: 20ch;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.008em;
  color: var(--bone);
  max-width: 24ch;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.18;
  color: var(--bone);
  max-width: 28ch;
}
.serif-em { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.lede {
  font-family: var(--font-body);
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--bone);
  max-width: var(--measure);
}
.prose {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--ash);
  max-width: var(--measure);
}
.prose strong, .prose b { color: var(--bone); font-weight: 500; }
.prose + .prose { margin-top: 1.15rem; }
.muted { color: var(--ash); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--ash);
}

.stack > * + * { margin-top: 1.15rem; }
.lede + .prose,
.display + .lede,
.h2 + .prose,
.h2 + .lede,
.h3 + .prose { margin-top: 1.35rem; }

.sub { margin-top: 1.1rem; color: var(--ash); max-width: var(--measure); }

.link {
  color: var(--bone);
  border-bottom: var(--hair) solid var(--rule);
  padding-bottom: 0.05em;
  transition: border-color 0.25s var(--ease);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.05em;
}
.link:hover { border-color: var(--bone); }
.link__arrow { transition: transform 0.25s var(--ease); display: inline-block; }
.link:hover .link__arrow { transform: translateX(3px); }

/* ==========================================================================
   The stacked-horizon signature
   Three baselines = three orders of the stack over a month of work.
     · the model   — sags hard and early
     · the layer   — sags too, later and less (the whole point)
     · STRTM       — the held line; never moves
   Motion: the two lower lines settle from flat into their sag, once, on load.
   prefers-reduced-motion → shown sagged, static.
   ========================================================================== */
.stack3 {
  position: relative;
  width: 100%;
  max-width: var(--measure);
  height: 210px;
  margin-top: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
}
.stack3 svg { width: 100%; height: 100%; overflow: visible; }

.ln { fill: none; stroke-linecap: round; }
.ln--held { stroke: var(--bone); stroke-width: 1.5; }
.ln--mid  { stroke: var(--ash); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: 0.9; }
.ln--low  { stroke: var(--ash); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: 0.6; }

/* The two lower lines animate from steady to sagged, one beat. */
.ln--mid { animation: sag-mid 2200ms var(--ease) 350ms both; }
.ln--low { animation: sag-low 2000ms var(--ease) 250ms both; }
@keyframes sag-mid {
  from { d: path("M0 110 L 1000 110"); }
  to   { d: path("M0 110 C 380 110, 600 112, 760 126 S 960 150, 1000 152"); }
}
@keyframes sag-low {
  from { d: path("M0 180 L 1000 180"); }
  to   { d: path("M0 180 C 250 180, 430 184, 600 198 S 880 214, 1000 216"); }
}

/* End ticks at the held line, day-one … day-thirty. */
.stack3__tick {
  position: absolute;
  width: var(--hair);
  height: 12px;
  background: var(--bone);
  top: calc(40 / 210 * 100% - 6px);
}
.stack3__tick--start { left: 0; }
.stack3__tick--end { right: 0; }
.stack3__day {
  position: absolute;
  top: calc(40 / 210 * 100% - 2rem);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--ash);
  white-space: nowrap;
}
.stack3__day--start { left: 0; }
.stack3__day--end { right: 0; }

/* Right-edge labels, each sitting just above its line. */
.stack3__tag {
  position: absolute;
  right: 0;
  transform: translateY(-0.55rem);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--ash);
  background: var(--ink);
  padding-left: 0.5rem;
  white-space: nowrap;
}
.stack3__tag--held { top: calc(40 / 210 * 100%); color: var(--bone); }
.stack3__tag--mid  { top: calc(110 / 210 * 100%); }
.stack3__tag--low  { top: calc(180 / 210 * 100%); }

.stack3__caption {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--ash);
  max-width: var(--measure);
}

@media (prefers-reduced-motion: reduce) {
  .ln--mid { animation: none; d: path("M0 110 C 380 110, 600 112, 760 126 S 960 150, 1000 152"); }
  .ln--low { animation: none; d: path("M0 180 C 250 180, 430 184, 600 198 S 880 214, 1000 216"); }
}

/* ==========================================================================
   Cards — the three teaser routes on Home
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hair);
  background: var(--rule-faint);
  border: var(--hair) solid var(--rule-faint);
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--ink);
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  transition: background 0.25s var(--ease);
  min-height: 100%;
}
.card:hover { background: var(--ink-2); }
.card__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.2;
  color: var(--bone);
}
.card__body {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  line-height: 1.6;
  color: var(--ash);
  flex: 1 0 auto;
}
.card__more {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.05em;
  color: var(--bone);
}
.card__more .link__arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.card:hover .card__more .link__arrow { transform: translateX(3px); }

@media (max-width: 52rem) { .cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   Roster — "above the stack", plain wordmarks (never a logo wall)
   ========================================================================== */
.roster {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem clamp(1.25rem, 0.5rem + 2.5vw, 3rem);
  margin-top: 1.5rem;
}
.roster__name {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}
.roster__sep {
  color: var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  user-select: none;
}

/* ==========================================================================
   Scenario list — "where it matters"
   ========================================================================== */
.scenarios {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  max-width: var(--measure);
}
.scenarios li {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.35;
  color: var(--bone);
  padding: 1.3rem 0;
  border-top: var(--hair) solid var(--rule-faint);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: baseline;
}
.scenarios li:last-child { border-bottom: var(--hair) solid var(--rule-faint); }
.scenarios li::before {
  content: "·";
  font-family: var(--font-mono);
  color: var(--ash);
  font-size: 1rem;
}

/* ==========================================================================
   Updates log — the on-the-record entries (The Lab)
   ========================================================================== */
.log { margin-top: 1.75rem; max-width: var(--measure); }
.log__entry {
  padding: 1.4rem 0;
  border-top: var(--hair) solid var(--rule-faint);
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem 1.4rem;
}
.log__date {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--ash);
}
.log__body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--bone);
}
.log__sign {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--ash);
}
@media (max-width: 36rem) { .log__entry { grid-template-columns: 1fr; gap: 0.35rem; } }

/* ==========================================================================
   Request-access form — one quiet form on an --ink-2 panel
   ========================================================================== */
.form-panel {
  background: var(--ink-2);
  border: var(--hair) solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  max-width: var(--measure);
  margin-top: 1.75rem;
}
.field { display: block; }
.field + .field { margin-top: 1.5rem; }
.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 0.5rem;
}
.field__req { color: var(--bone); }
.input, .textarea {
  width: 100%;
  background: var(--ink);
  border: var(--hair) solid var(--rule);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.25s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ash); opacity: 0.7; }
.input:focus, .textarea:focus { border-color: var(--bone); outline: none; }
.input:focus-visible, .textarea:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.textarea { resize: vertical; min-height: 6rem; }

.submit {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--bone);
  background: transparent;
  border: var(--hair) solid var(--rule);
  border-radius: var(--radius);
  padding: 0.8rem 1.5rem;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.submit:hover { border-color: var(--bone); background: var(--bone); color: var(--ink); }
.submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* honeypot — visually + a11y hidden, still in the DOM for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--bone);
}
.form-status[hidden] { display: none; }

/* ==========================================================================
   Closing CTA band — recurs on every inner page
   ========================================================================== */
.close { text-align: left; }
.close__line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.15;
  color: var(--bone);
  max-width: 22ch;
}
.close__cta {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--bone);
  border: var(--hair) solid var(--rule);
  border-radius: var(--radius);
  padding: 0.7rem 1.3rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.close__cta:hover { border-color: var(--bone); background: var(--bone); color: var(--ink); }

/* ==========================================================================
   Footer — one spare band
   ========================================================================== */
.foot {
  flex-shrink: 0;
  border-top: var(--hair) solid var(--rule);
  margin-top: var(--band-y);
}
.foot__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 2rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2rem;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.6rem; }
.foot__link {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.05em;
  color: var(--ash);
  transition: color 0.25s var(--ease);
}
.foot__link:hover { color: var(--bone); }
.foot__contact {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.05em;
  color: var(--ash);
}
.foot__contact a { color: var(--bone); }
.foot__copy {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.05em;
  color: var(--ash);
}
@media (max-width: 40rem) { .foot__copy { margin-left: 0; width: 100%; } }

/* ==========================================================================
   Hero / page-head openings
   ========================================================================== */
.hero {
  padding-top: clamp(3rem, 2rem + 5vw, 6rem);
  padding-bottom: var(--band-y);
}
.page-head {
  padding-top: clamp(3rem, 2rem + 5vw, 5.5rem);
  padding-bottom: clamp(2rem, 1.4rem + 3vw, 3.5rem);
}

/* Utility */
.u-nowrap { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
