/* mulugeta.ca — home page, Modernist theme.
   ---------------------------------------------------------------------------
   Scoped to index.html on purpose. The case-study pages still run on
   css/site.css (the editorial theme); this file does not touch them.

   Tokens below are the Modernist design-system values: one red accent, a
   neutral ramp generated on a shared lightness scale, 2px rules, zero radius.
   Archivo at 800 does all the display work. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap');

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-400: #ff9783;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 10px 14px; background: var(--color-accent); color: var(--color-bg);
  font-weight: 800; text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; color: var(--color-bg); }

/* -- Film grain -------------------------------------------------------------
   One tiled fractalNoise bitmap over the whole page at `overlay`, which
   darkens the dark sections and lightens the light ones from the same tile.
   It drifts on a 6-step loop, so it reads as projected film rather than a
   static texture. Off entirely under prefers-reduced-motion. */
body::before {
  content: "";
  position: fixed; inset: -50%; z-index: 100;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0 0 0 0 1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* -- Shared layout ---------------------------------------------------------- */
.wrap {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.dark {
  position: relative;
  overflow: hidden;
  background: var(--color-text);
  color: var(--color-bg);
}

.glow { position: absolute; inset: 0; pointer-events: none; }

.kicker {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
}

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
  min-width: 180px; padding: 12px 16px;
  font-family: var(--font-heading); font-weight: 800; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  color: var(--color-text); background: transparent;
  border: 2px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-outline { color: var(--color-bg); border-color: var(--color-neutral-700); }
.btn-outline:hover { color: var(--color-bg); border-color: var(--color-bg); }
.btn-ghost {
  min-width: 0; padding-inline: 0; justify-content: flex-start;
  color: var(--color-accent-700);
}
.btn-ghost:hover { color: var(--color-accent); }

.grayscale { filter: grayscale(1) contrast(1.08); }

/* -- Morphing nav -----------------------------------------------------------
   Closed: a 300px red pill naming the section you are in. Open: a 600px white
   panel, the links on the left and a preview image on the right that changes
   with the hovered link. Without JS the panel is simply open (see the `.js`
   guard) so every link stays reachable. */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  width: 600px; max-width: calc(100vw - 32px);
  overflow: hidden;
  background: var(--color-bg);
  border: 2px solid var(--color-text);
  box-shadow: var(--shadow-lg);
  transition: width 480ms var(--ease), background-color 300ms ease,
              border-color 300ms ease, box-shadow 300ms ease;
}

.js .nav[data-open="false"] {
  width: 300px;
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: none;
}

.nav__bar {
  display: flex; width: 100%; height: 44px; align-items: center; gap: 10px;
  padding: 0 14px;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-heading); font-weight: 800; font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--color-text);
  transition: color 300ms ease;
}
.js .nav[data-open="false"] .nav__bar { color: var(--color-bg); }

.nav__name { white-space: nowrap; }

.nav__slash { opacity: .55; }
.js .nav[data-open="false"] .nav__slash { opacity: 0; }
.js .nav[data-open="false"][data-section] .nav__slash { opacity: .55; }

.nav__label {
  color: var(--color-accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.js .nav[data-open="false"] .nav__label { color: var(--color-bg); }

.nav__burger {
  margin-left: auto; position: relative;
  width: 16px; height: 12px; flex: none; display: block;
}
.nav__burger span {
  position: absolute; left: 0; display: block;
  width: 16px; height: 2px; background: currentColor;
  transition: top 350ms var(--ease), transform 350ms var(--ease);
}
.nav__burger span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav__burger span:nth-child(2) { top: 5px; transform: rotate(-45deg); }
.js .nav[data-open="false"] .nav__burger span:nth-child(1) { top: 1px; transform: rotate(0); }
.js .nav[data-open="false"] .nav__burger span:nth-child(2) { top: 9px; transform: rotate(0); }

.nav__panel {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows 480ms var(--ease);
}
.js .nav[data-open="false"] .nav__panel { grid-template-rows: 0fr; }

.nav__panel > div { overflow: hidden; min-height: 0; }

.nav__grid {
  border-top: 2px solid var(--color-text);
  display: grid; gap: 12px; padding: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  opacity: 1;
  transition: opacity 260ms ease;
}
.js .nav[data-open="false"] .nav__grid { opacity: 0; }

.nav__links { display: flex; flex-direction: column; }

.nav__links a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; text-decoration: none;
  color: var(--color-text);
  border-left: 4px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links li[data-current="true"] a {
  background: var(--color-accent-100);
  border-left-color: var(--color-accent);
  color: var(--color-accent);
}
.nav__links strong {
  font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: -0.03em;
  color: inherit;
}
.nav__links small { font-size: 12px; font-weight: 600; color: var(--color-neutral-700); }

.nav__preview {
  position: relative; min-height: 210px; overflow: hidden;
  background: var(--color-neutral-900);
  border: 2px solid var(--color-text);
}
.nav__preview img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transform: scale(1.08);
  transition: opacity 420ms var(--ease), transform 700ms var(--ease);
}
.nav__preview img[data-on="true"] { opacity: 1; transform: scale(1); }
.nav__caption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 4px 8px;
  background: var(--color-accent); color: var(--color-bg);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}

/* The preview column is dead weight once the panel is a single column. */
@media (max-width: 520px) {
  .nav__preview { display: none; }
}

/* -- Hero ------------------------------------------------------------------- */
.hero .glow {
  background:
    radial-gradient(42% 60% at 68% 18%,
      color-mix(in srgb, var(--color-accent) 42%, transparent) 0%,
      color-mix(in srgb, var(--color-accent-700) 18%, transparent) 45%,
      transparent 75%),
    radial-gradient(130% 110% at 40% 40%, transparent 45%,
      color-mix(in srgb, black 60%, transparent) 100%);
}

/* One column until there is room for the portrait beside the copy. An
   auto-fit track plus `grid-column: span 2` looks equivalent and is not: once
   the track count falls to one, the span invents a second column and the copy
   runs off the side of the phone. */
.hero__grid {
  display: grid; gap: 40px; align-items: end;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(112px, 13vw, 180px) 0 clamp(48px, 7vw, 96px);
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 340px; }
}

.hero__copy {
  min-width: 0;
  display: flex; flex-direction: column; gap: 28px;
}

.hero__eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600;
  color: var(--color-neutral-400);
}

.badge {
  padding: 4px 10px;
  background: var(--color-accent); color: var(--color-bg);
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(44px, 7.2vw, 100px);
  line-height: 0.95; letter-spacing: -0.045em;
  text-wrap: balance;
  color: var(--color-bg);
}

.hero h1 .ship {
  color: var(--color-accent-400);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 6px;
  text-underline-offset: 12px;
}

.hero__lede {
  font-size: 18px; line-height: 1.5; max-width: 36rem;
  text-wrap: pretty;
  color: var(--color-neutral-300);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__portrait {
  display: flex; flex-direction: column;
  min-width: 0; width: 100%; max-width: 340px;
}
.hero__portrait .frame {
  aspect-ratio: 4 / 5;
  background: var(--color-neutral-900);
  border: 2px solid var(--color-neutral-700);
}
.hero__portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 64% 0%;
}
.hero__portrait figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  padding-top: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-neutral-400);
}

/* -- Outcomes band ----------------------------------------------------------
   The two black bars top and bottom are the film-strip edge: they stop the
   band and the hero reading as one continuous dark field. */
.band { border-top: 2px solid var(--color-text); }
.band .glow {
  background:
    radial-gradient(120% 90% at 30% 0%,
      color-mix(in srgb, var(--color-accent) 22%, transparent) 0%, transparent 55%),
    radial-gradient(140% 120% at 50% 50%, transparent 40%,
      color-mix(in srgb, black 55%, transparent) 100%);
}
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: black; z-index: 1;
}
.band::before { top: 0; }
.band::after { bottom: 0; }

.band .wrap { padding-block: clamp(40px, 6vw, 72px) clamp(40px, 6vw, 64px); }

.band__head {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-neutral-800);
  color: var(--color-neutral-400);
}
.band__head .dot {
  width: 8px; height: 8px; display: block;
  background: var(--color-accent);
}
.band__head span:first-child { display: flex; align-items: center; gap: 10px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border-left: 2px solid var(--color-neutral-800);
}
.stats li {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
  border-right: 2px solid var(--color-neutral-800);
}
.stats .figure {
  display: flex; align-items: flex-start;
  font-weight: 800; font-size: clamp(72px, 9vw, 136px);
  line-height: 0.82; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.stats .figure .pct {
  color: var(--color-accent);
  font-size: 0.5em; line-height: 1; margin-left: 4px;
}
.stats .meter {
  position: relative; display: block; height: 2px;
  background: var(--color-neutral-800);
}
.stats .meter i {
  position: absolute; left: 0; top: 0; bottom: 0; display: block;
  background: var(--color-accent);
}
.stats .what { font-size: 17px; line-height: 1.3; }
.stats .project { color: var(--color-accent-400); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-top: 2px solid var(--color-neutral-800);
  border-left: 2px solid var(--color-neutral-800);
}
.facts > div {
  padding: 22px clamp(20px, 3vw, 36px) 24px;
  border-right: 2px solid var(--color-neutral-800);
}
.facts dt { margin-bottom: 8px; color: var(--color-neutral-400); }
.facts dd { margin: 0; font-size: 15px; line-height: 1.4; }

/* Count-up and reveal. Values are in the HTML; JS only animates toward them,
   so the band is complete and correct with scripting off. */
.js .count-up .stats li,
.js .count-up .facts > div { opacity: 0; }
.js .count-up .stats li { transform: translateY(24px); }
.js .count-up[data-run="true"] .stats li,
.js .count-up[data-run="true"] .facts > div {
  opacity: 1; transform: none;
  transition: opacity 900ms ease, transform 1200ms cubic-bezier(.16, 1, .3, 1);
}

/* -- Section headers (light sections) --------------------------------------- */
.section { scroll-margin-top: 64px; }
.section > .wrap { padding-block: clamp(64px, 9vw, 120px); }

.section__head {
  display: grid; gap: 16px 40px;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 32px;
  border-bottom: 2px solid var(--color-text);
}

@media (min-width: 860px) {
  .section__head { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .section__head p { grid-column: 2; }
}
.section__head h2 {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
}
.section__head p {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}
.section__head .accent { color: var(--color-accent); }

/* -- Work ------------------------------------------------------------------- */
.work li { border-bottom: 2px solid var(--color-divider); }

.work a {
  display: grid; gap: 20px 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  padding: 32px 0;
  color: var(--color-text); text-decoration: none;
  transition: background-color .25s ease;
}
.work a:hover { background: var(--color-surface); color: var(--color-text); }

.work__id { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.work__num {
  font-size: 13px; font-weight: 800; color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.work h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.035em; }
.work__meta { font-size: 13px; font-weight: 600; }

.work__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.work__body p { font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.work__result {
  font-size: 14px; font-weight: 800;
  padding-top: 12px; border-top: 2px solid var(--color-text);
}
.work__more {
  font-size: 14px; font-weight: 800; color: var(--color-accent-700);
  display: flex; gap: 8px;
}

.work__thumb {
  aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--color-surface);
  border: 2px solid var(--color-text);
  transition: border-color .3s ease;
}
.work__thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: grayscale(1) contrast(1.08);
  transition: filter .5s ease, transform .7s var(--ease);
}
.work a:hover .work__thumb { border-color: var(--color-accent); }
.work a:hover .work__thumb img { filter: none; transform: scale(1.04); }

.work__all { padding-top: 24px; }

.work__aside {
  max-width: 46rem; padding-top: 8px;
  font-size: 14px; line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* -- Agents ----------------------------------------------------------------- */
.agents { margin-top: clamp(64px, 9vw, 120px); scroll-margin-top: 64px; }
.agents .glow {
  background:
    radial-gradient(50% 60% at 85% 0%,
      color-mix(in srgb, var(--color-accent) 20%, transparent) 0%, transparent 70%),
    radial-gradient(130% 110% at 40% 40%, transparent 45%,
      color-mix(in srgb, black 55%, transparent) 100%);
}
.agents .wrap { padding-block: clamp(64px, 9vw, 120px); }

.agents__intro {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 46rem; padding-bottom: 40px;
}
.agents__intro h2 {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-neutral-400);
}
.agents__intro .lead {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(30px, 3.8vw, 50px); line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}
.agents__intro .lead .accent { color: var(--color-accent-400); }
.agents__intro .note {
  font-size: 16px; line-height: 1.55; max-width: 36rem;
  color: var(--color-neutral-300); text-wrap: pretty;
}

/* -- The agents in production -------------------------------------------
   Three numbered rows under one heading. Rows rather than cards: they are
   read in order, and a card grid would say they are alternatives. */
.live {
  padding: 8px 0 clamp(56px, 7vw, 80px);
}

.live__head {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 46rem; padding-bottom: 32px;
}
.live__head h3 {
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.06; letter-spacing: -0.03em;
  color: var(--color-bg); text-wrap: balance;
}

/* Each item carries its own border rather than sitting on a coloured grid.
   The gap-over-background trick paints a filled empty cell wherever the last
   row is short — three items across two columns is exactly that case. */
.live__list {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.live__list li {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px 28px;
  background: color-mix(in srgb, var(--color-bg) 4%, transparent);
  border: 2px solid var(--color-neutral-800);
}
.live__list .n {
  font-family: var(--font-heading); font-weight: 800; font-size: 13px;
  color: var(--color-accent); font-variant-numeric: tabular-nums;
}
.live__list h4 {
  font-size: 21px; line-height: 1.15; letter-spacing: -0.025em; color: var(--color-bg);
}
.live__list p { font-size: 14px; line-height: 1.6; color: var(--color-neutral-300); }

/* -- The decisions ------------------------------------------------------
   The argument of the whole section. Red hairline on the left of each, so
   the six read as one list and not six separate claims. */
.decisions {
  padding: 0 0 clamp(56px, 7vw, 80px);
  border-bottom: 2px solid var(--color-neutral-800);
}

.decisions__head {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 46rem; padding-bottom: 32px;
}
.decisions__head h3 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -0.035em;
  color: var(--color-bg); text-wrap: balance;
}
.decisions__head .accent { color: var(--color-accent-400); }
.decisions__head p { font-size: 16px; line-height: 1.55; color: var(--color-neutral-300); }

.decisions__list {
  display: grid; gap: 28px 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}
.decisions__list li {
  display: flex; flex-direction: column; gap: 8px;
  padding-left: 18px;
  border-left: 2px solid var(--color-accent);
}
.decisions__list .n {
  font-family: var(--font-heading); font-weight: 800; font-size: 12px;
  color: var(--color-accent); font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.decisions__list h4 {
  font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; color: var(--color-bg);
}
.decisions__list p { font-size: 14px; line-height: 1.62; color: var(--color-neutral-300); }
.decisions__list em { font-style: normal; color: var(--color-bg); font-weight: 600; }

.decisions__coda {
  margin-top: 36px; padding: 20px 24px;
  background: color-mix(in srgb, var(--color-bg) 5%, transparent);
  border: 2px solid var(--color-neutral-800);
  font-size: 15px; line-height: 1.62; max-width: 54rem;
  color: var(--color-neutral-300);
}
.decisions__coda strong { color: var(--color-bg); font-weight: 800; }

/* Six decisions: an auto-fit track gives 3 + 3 wide, 2 + 2 + 2 at tablet,
   both of which land square. */
@media (min-width: 1100px) {
  .decisions__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The shipped AI work. Two columns on desktop: the argument on the left, the
   three measured figures stacked on the right. */
.shipped {
  display: grid; gap: 32px 48px;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(56px, 7vw, 80px) 0 40px;
  border-bottom: 2px solid var(--color-neutral-800);
}

@media (min-width: 900px) {
  .shipped { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}

.shipped__copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.shipped__copy h3 {
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -0.03em;
  color: var(--color-bg);
}
.shipped__copy p { font-size: 15px; line-height: 1.6; color: var(--color-neutral-300); }
.shipped__note {
  font-size: 13px; font-weight: 600;
  color: var(--color-neutral-400);
  padding-top: 12px; border-top: 2px solid var(--color-neutral-800); align-self: stretch;
}

.shipped__stats { display: flex; flex-direction: column; }
.shipped__stats li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0;
  border-bottom: 2px solid var(--color-neutral-800);
}
.shipped__stats li:first-child { padding-top: 0; }
.shipped__stats li:last-child { border-bottom: 0; }
.shipped__stats .n {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(40px, 5vw, 60px); line-height: 0.85; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums; flex: none; min-width: 2.6ch;
}
.shipped__stats .pct { color: var(--color-accent); font-size: 0.5em; margin-left: 2px; }
.shipped__stats li > span:last-child {
  font-size: 14px; line-height: 1.4; color: var(--color-neutral-300);
}

/* Wizard of Oz: what testing the autonomy by hand settled. */
.wizard { padding: 48px 0 0; }

.wizard__copy {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 46rem; padding-bottom: 28px;
}
.wizard__copy h3 {
  font-size: clamp(24px, 2.8vw, 36px); line-height: 1.08; letter-spacing: -0.03em;
  color: var(--color-bg);
}
.wizard__copy p { font-size: 15px; line-height: 1.6; color: var(--color-neutral-300); }

.findings {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.findings li {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
  background: color-mix(in srgb, var(--color-bg) 4%, transparent);
  border: 2px solid var(--color-neutral-800);
}
.findings .n {
  font-family: var(--font-heading); font-weight: 800; font-size: 13px;
  color: var(--color-accent); font-variant-numeric: tabular-nums;
}
.findings h4 {
  font-size: 18px; line-height: 1.2; letter-spacing: -0.02em; color: var(--color-bg);
}
.findings p { font-size: 14px; line-height: 1.55; color: var(--color-neutral-400); }

.wizard__lesson {
  margin-top: 28px; padding-left: 16px;
  border-left: 4px solid var(--color-accent);
  font-size: 15px; line-height: 1.6; max-width: 46rem;
  color: var(--color-neutral-300);
}
.wizard__lesson strong { color: var(--color-bg); font-weight: 800; }

/* Prior art */
.agents__priorart { padding-top: clamp(56px, 7vw, 88px); }

.agents__subhead {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -0.035em;
  max-width: 22ch; text-wrap: balance;
  color: var(--color-bg);
}
.agents__subhead .accent { color: var(--color-accent-400); }

.agents__priorart .note {
  margin: 16px 0 32px; max-width: 36rem;
  font-size: 16px; line-height: 1.55; color: var(--color-neutral-300); text-wrap: pretty;
}

.lessons {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

/* Four cards: an auto-fit track gives 3 + 1 on a wide screen, which reads as
   one card left over. Cap it at two so it lands as a square. */
@media (min-width: 1100px) {
  .lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lessons li {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px;
  border: 2px solid var(--color-neutral-800);
  background: color-mix(in srgb, var(--color-bg) 4%, transparent);
  transition: border-color .25s ease, background-color .25s ease;
}
.lessons li:hover {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-bg) 7%, transparent);
}
.lessons .project { color: var(--color-accent-400); }
.lessons .evidence {
  padding-left: 14px;
  border-left: 2px solid var(--color-neutral-700);
  font-size: 14px; line-height: 1.55;
  color: var(--color-neutral-400);
}
.lessons h3 {
  font-size: 22px; line-height: 1.15; letter-spacing: -0.025em;
  margin-top: 6px; color: var(--color-bg);
}
.lessons .carry { font-size: 15px; line-height: 1.55; color: var(--color-neutral-300); }

/* -- Approach --------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  border-left: 2px solid var(--color-divider);
}
.steps li {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px 24px 32px;
  border-right: 2px solid var(--color-divider);
  border-bottom: 2px solid var(--color-divider);
}
.steps .n {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 56px; line-height: 0.9; letter-spacing: -0.05em;
  color: var(--color-accent); font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 20px; letter-spacing: -0.02em; margin-top: 8px; }
.steps p { font-size: 14px; line-height: 1.5; }

/* -- Contact ---------------------------------------------------------------- */
.contact {
  background: var(--color-accent); color: var(--color-bg);
  scroll-margin-top: 64px;
}
.contact .wrap {
  display: flex; flex-direction: column; gap: 36px;
  padding-block: clamp(64px, 9vw, 120px);
}
.contact h2 {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding-bottom: 16px; border-bottom: 2px solid var(--color-bg);
}
.contact__title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(44px, 7vw, 104px); line-height: 0.94; letter-spacing: -0.045em;
  max-width: 14ch;
}
.contact__mail {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(22px, 3vw, 36px); letter-spacing: -0.02em;
  color: var(--color-bg);
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px;
  word-break: break-word;
}
.contact__mail:hover { color: var(--color-text); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact .btn-light { min-width: 220px; background: var(--color-bg); color: var(--color-text); }
.contact .btn-light:hover { background: var(--color-text); color: var(--color-bg); }
.contact .btn-edge { color: var(--color-bg); border-color: var(--color-bg); }
.contact .btn-edge:hover { background: var(--color-accent-600); color: var(--color-bg); }

/* -- Footer ----------------------------------------------------------------- */
.site-footer { border-top: 2px solid var(--color-text); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px;
  font-size: 12px; font-weight: 600;
}

/* -- Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  * { transition-duration: 1ms !important; }
  .js .count-up .stats li,
  .js .count-up .facts > div { opacity: 1; transform: none; }
}
