/* Human Archive — homepage + blog identity layer ("archive index").
   Loaded last on / and /blog. Grotesk for reading, mono only for data
   (IDs, dates, counts, timecodes). Cool neutral paper, ink, one signal red
   taken from the capture REC light. Wide left-aligned shell; ruled ledgers
   instead of cards and timelines. */

:root {
  --paper: #f5f5f2;
  --card: #fcfcfa;
  --ink: #111111;
  --ink-2: rgba(17, 17, 17, 0.64);
  --ink-3: rgba(17, 17, 17, 0.44);
  --rule: rgba(17, 17, 17, 0.14);
  --wash: rgba(17, 17, 17, 0.03);
  --accent: #c2412d;
  --accent-expanding: #3159c9;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;
  --shell: 1120px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

html, body { background-color: var(--paper); color: var(--ink); }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- shell ---------- */

.container {
  width: auto;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
  box-sizing: border-box;
}

.wide { width: auto; }

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

.ha-header { background-color: var(--paper); border-bottom: 1px solid var(--rule); }
.ha-header-inner { max-width: var(--shell); padding: 0 var(--gutter); box-sizing: border-box; font-family: var(--sans); }
.ha-nav-link { font-family: var(--sans); font-size: 14px; letter-spacing: 0; opacity: 0.7; }
.ha-nav { gap: 28px; }
@media (max-width: 720px) { .ha-nav { background: var(--paper); } }

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

.hero {
  padding: clamp(56px, 10vw, 128px) 0 0;
}

.hero-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 15.5em;
  text-wrap: balance;
}

.hero-title .muted { color: var(--ink-3); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
}

.hero-stats div {
  padding: 14px 16px 0 0;
  border-top: 1px solid var(--rule);
  min-width: 0;
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 6px;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.hero-stats dd .live {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-left: 8px; vertical-align: 0.35em;
  animation: blink 1.2s steps(1) infinite;
}

/* ---------- section heads: one system for Blog / Operations / Products ---------- */

.section-head,
.index-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: clamp(56px, 8vw, 104px) 0 20px;
}

.section-head h2,
.index-head h2 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}

.index-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.ops-legend, .ops-footer { font-family: var(--mono); }

/* ---------- products ---------- */

.product-list { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-top: 0; }
.product-row { border-top: 1px solid var(--rule); }
.product-row:first-child { border-top: 0; }
.product-title { font-family: var(--sans); font-weight: 600; letter-spacing: -0.035em; font-size: clamp(36px, 5vw, 64px); }
.product-row:hover .product-title { color: var(--ink); }

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

.footer-links {
  margin-top: 72px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* /blog page title */
.page-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: clamp(48px, 8vw, 96px) 0 0;
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stats dt { white-space: nowrap; font-size: 10px; letter-spacing: 0.03em; }
  .section-head { flex-direction: row; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stats dd .live { animation: none; }
}

/* ---------- press: label row, then outlets on the same 3 columns as the stats ---------- */

.press {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.press h2 {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding: 14px 0 6px;
}

.press li {
  padding: 0 16px 0 0;
  min-width: 0;
}

.press h2 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.press ul { display: contents; list-style: none; margin: 0; padding: 0; }

.press-name {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(18px, 1.9vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

a.press-name::after {
  content: "\2197";
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.55em;
  margin-left: 6px;
  vertical-align: 0.5em;
  color: var(--ink-3);
}

a.press-name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.press-name:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.hero-stats { margin-bottom: 0; }
.hero-stats div { padding-bottom: 22px; }

@media (max-width: 720px) {
  .press { grid-template-columns: minmax(0, 1fr); }
  .press h2 { padding-bottom: 4px; }
  .press li { padding: 10px 0; border-top: 1px solid var(--rule); }
  .press li:first-of-type { border-top: 0; }
  .press-name { font-size: 20px; }
}

@media (max-width: 720px) {
  .product-title { font-size: 34px; white-space: normal; text-wrap: balance; }
}

/* ---------- content pages (.container.doc): legal, help, careers, contact ---------- */

.doc .page-title { margin-bottom: 28px; max-width: 18em; text-wrap: balance; }

.doc { --measure: 640px; }
.doc > p,
.doc > ul,
.doc > ol,
.doc > .note,
.doc > form,
.doc > hr,
.doc h3 { max-width: var(--measure); }
.doc > ul.roles { max-width: none; }
.doc > .footer-links { max-width: none; }

.doc p, .doc li { font-size: 16px; line-height: 1.6; margin: 0 0 16px; }
.doc a { text-underline-offset: 3px; text-decoration-thickness: 1px; }

.doc .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 28px;
}

.doc h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 48px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.doc p.role-group {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  margin: 32px 0 8px;
}

.doc ul.bulleted { padding-left: 1.2em; margin: 0 0 20px; }
.doc ul.bulleted li { margin: 0 0 8px; }
.doc ul.bulleted li::marker { color: var(--ink-3); }

.doc hr { border: 0; border-top: 1px solid var(--rule); opacity: 1; margin: 32px 0; }

.doc .note {
  border: 0;
  border-left: 2px solid var(--accent);
  background: var(--card);
  padding: 14px 18px;
  margin: 0 0 32px;
  font-size: 15px;
}
.doc .note .label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}

/* careers: roles as ledger rows, grouped under mono labels */
.doc h2.role-group {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 48px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.doc ul.roles { list-style: none; margin: 0; padding: 0; }
.doc ul.roles li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin: 0; padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.doc ul.roles a {
  font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink);
}
.doc ul.roles a:hover { text-decoration: underline; }
.doc .role-loc {
  font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap;
}

/* contact form */
.doc .contact-form { margin-top: 8px; }
.doc .field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.doc .field input[type="text"],
.doc .field input[type="email"],
.doc .field textarea { font-family: var(--sans); font-size: 16px; color: var(--ink); border-color: var(--ink); }
.doc .field textarea::placeholder { font-style: normal; color: var(--ink-3); }
.doc .submit-btn {
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  padding: 10px 22px;
}
.doc .submit-btn:hover { background: transparent; color: var(--ink); }

@media (max-width: 720px) {
  .doc ul.roles li { flex-direction: column; gap: 2px; }
  .doc ul.roles a { font-size: 17px; }
}

/* ---------- hero block field (hero-blocks.js) ---------- */
.hero { position: relative; }
.hero > :not(.hero-blocks) { position: relative; z-index: 1; }
.hero-blocks {
  position: absolute;
  top: 0;
  bottom: -24px;
  left: calc(50% - 50vw);
  width: 100vw;
  height: calc(100% + 24px);
  z-index: 0;
  pointer-events: none;
  /* soften the edge where the field meets the Blog section */
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

/* Real2Sim glyph: the simulated (dashed) cube settles onto the real one on hover */
.glyph-sim .cube-sim { transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.product-row:hover .glyph-sim .cube-sim { transform: translate(-34px, 20px); }

/* stats removed: give the press row the space the stats used to take */
.hero .press { margin-top: clamp(40px, 6vw, 72px); }

/* content pages: one heading system
   h1 page title · .lede subtitle · .eyebrow date · h3 section (rule above) · h4 sub-section */
.doc .lede {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: var(--measure);
  margin: -8px 0 16px;
}
.doc .lede + .eyebrow { margin-top: 0; }
.doc h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
  max-width: var(--measure);
  margin: 28px 0 8px;
}
.doc h3 + h4 { margin-top: 12px; }
.doc li strong { font-weight: 600; }

/* consistency fixes: footer size on content pages, one bold weight */
.doc p.footer-links { font-size: 12px; line-height: 1.6; max-width: none; }
.doc strong, .doc b, .doc strong a { font-weight: 600; }
