/* akumar.co.uk
   Layout: one wide left-aligned column. Small mono labels are the "machine" voice,
   big plain sentences are the human voice. Grey lines = the AI does it.
   Green = a person says yes. Colour otherwise comes from the work itself (project images). */

:root {
  --bg: #fafaf8;
  --surface: #f0f0ec;
  --ink: #111214;
  --muted: #5c5f65;
  --line: #d6d7d2;
  --line-strong: #a6a8a3;
  --human: #16a05a;
  --human-ink: #0b7a42;
  --human-soft: rgba(22, 160, 90, 0.12);
  --band-bg: #111214;
  --reel-bg: #0b0c0d;
  --reel-fg: #ededea;

  --display: "Archivo", "Archivo Variable", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Archivo Variable", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --s-label: 0.78rem;
  --s-small: 0.9375rem;
  --s-body: 1.0625rem;
  --s-lead: clamp(1.2rem, 1.6vw, 1.4rem);
  --s-h3: 1.3rem;
  --s-h2: clamp(1.9rem, 3.6vw, 2.9rem);
  --s-h1: clamp(2.6rem, 7.2vw, 6.3rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f11;
    --surface: #17191c;
    --ink: #ededea;
    --muted: #9b9ea4;
    --line: #2e3136;
    --line-strong: #555960;
    --human: #3fd68a;
    --human-ink: #6ee3a6;
    --human-soft: rgba(63, 214, 138, 0.14);
    --band-bg: #1a1c1f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0f11;
  --surface: #17191c;
  --ink: #ededea;
  --muted: #9b9ea4;
  --line: #2e3136;
  --line-strong: #555960;
  --human: #3fd68a;
  --human-ink: #6ee3a6;
  --human-soft: rgba(63, 214, 138, 0.14);
  --band-bg: #1a1c1f;
  color-scheme: dark;
}

/* the "machine room": a dark band, same look in both themes */
.band, .vis.dark {
  --bg: var(--band-bg);
  --surface: #202226;
  --ink: #ededea;
  --muted: #a2a5ab;
  --line: #2e3136;
  --line-strong: #5a5e65;
  --human: #3fd68a;
  --human-ink: #6ee3a6;
  background: var(--bg);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--s-body);
  line-height: 1.55;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--human); }
:focus-visible { outline: 2px solid var(--human); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--human-soft); }

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

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: var(--s-h1); font-weight: 650; font-stretch: 108%; line-height: 0.98; letter-spacing: -0.03em; }
h2 { font-size: var(--s-h2); font-weight: 620; font-stretch: 106%; line-height: 1.04; letter-spacing: -0.022em; }
h3 { font-size: var(--s-h3); font-weight: 620; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: var(--s-lead); line-height: 1.45; color: var(--ink); max-width: 38ch; }
.muted { color: var(--muted); }
.prose { display: grid; gap: 1em; max-width: 62ch; }
.prose p { font-size: var(--s-body); }
.prose ul { margin: 0; padding-left: 1.1em; display: grid; gap: 0.4em; }

.label {
  font-family: var(--mono);
  font-size: var(--s-label);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.label::before { content: ""; width: 18px; height: 1px; background: var(--line-strong); }
.label.plain::before { display: none; }

.mono { font-family: var(--mono); font-size: 0.86em; }

/* the human mark: a person says yes */
.yes {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--mono); font-size: var(--s-label); font-weight: 500;
  color: var(--human-ink);
  white-space: nowrap;
}
.yes::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--human); flex: none;
}

.tag {
  display: inline-block;
  font-family: var(--mono); font-size: var(--s-label); font-weight: 500;
  padding: 0.2em 0.6em; border: 1px solid var(--line-strong); border-radius: 99px;
  color: var(--muted); white-space: nowrap;
}
.tag.live { border-color: var(--human); color: var(--human-ink); background: var(--human-soft); }

/* ---------- header / nav ---------- */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 28px; padding-block: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-stretch: 108%; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--human); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--s-small); }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--line-strong); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font: 500 var(--s-small)/1 var(--body);
  padding: 0.95em 1.25em; border-radius: 99px; text-decoration: none;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); }

/* ---------- sections ---------- */
section { padding-block: clamp(56px, 9vw, 120px); }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 52rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(44px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero > .wrap { display: grid; gap: clamp(36px, 5vw, 64px); }
.hero-top { display: grid; gap: 26px; }
.hero h1 { max-width: 14.5ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero-copy { display: grid; gap: 28px; min-width: 0; align-content: start; }
.hero-copy .lead { max-width: 34ch; }

/* example run log */
.run {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.5;
}
.run-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted);
}
.run ol { list-style: none; margin: 0; padding: 10px 0; }
.run li {
  display: grid; grid-template-columns: 1.5em minmax(0, 1fr) auto; gap: 8px; align-items: baseline;
  padding: 6px 16px;
  animation: scan 12s infinite;
}
.run li .n { color: var(--muted); }
.run li .what { color: var(--ink); }
.run li .what span { color: var(--muted); }
.run li .yes { font-size: 0.74rem; }
.run li:nth-child(1) { animation-delay: 0s; }
.run li:nth-child(2) { animation-delay: 1.2s; }
.run li:nth-child(3) { animation-delay: 2.4s; }
.run li:nth-child(4) { animation-delay: 3.6s; }
.run li:nth-child(5) { animation-delay: 4.8s; }
.run li:nth-child(6) { animation-delay: 6s; }
.run li:nth-child(7) { animation-delay: 7.2s; }
.run-foot { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cursor { display: inline-block; width: 0.55em; height: 1em; background: var(--ink); vertical-align: -0.15em; animation: blink 1.1s steps(1) infinite; }
@keyframes scan {
  0% { background: transparent; }
  2% { background: var(--bg); }
  9% { background: var(--bg); }
  12% { background: transparent; }
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- trust strip ---------- */
.trust { padding-block: 28px; border-top: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 36px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.trust li { font-weight: 600; font-stretch: 112%; letter-spacing: -0.01em; color: var(--muted); font-size: 1.05rem; }

/* ---------- three ideas ---------- */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.three > div { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 1px solid var(--ink); }
.three p { color: var(--muted); }

/* ---------- pipeline ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; margin-bottom: 28px; }
.legend .ai { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--mono); font-size: var(--s-label); color: var(--muted); }
.legend .ai::before { content: ""; width: 22px; height: 1px; background: var(--line-strong); }

.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.pipe::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong);
}
.pipe::after {
  content: ""; position: absolute; top: 4px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink); animation: travel 9s linear infinite;
}
@keyframes travel { from { left: 0; } to { left: calc(100% - 7px); } }
.pipe li { position: relative; padding: 32px 14px 0 0; display: grid; gap: 8px; align-content: start; }
.pipe li::before {
  content: ""; position: absolute; top: 2px; left: 0; width: 11px; height: 11px;
  border: 1px solid var(--line-strong); background: var(--bg); border-radius: 2px;
}
.pipe li.gate::before { background: var(--human); border-color: var(--human); border-radius: 50%; }
.pipe .step { font-family: var(--mono); font-size: var(--s-label); color: var(--muted); }
.pipe h3 { font-size: 1.15rem; }
.pipe p { font-size: var(--s-small); color: var(--muted); line-height: 1.45; }
.rule-line { margin-top: clamp(32px, 5vw, 56px); font-size: var(--s-lead); max-width: 40ch; }
.rule-line strong { font-weight: 620; }

/* ---------- work cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); }
.card { display: grid; gap: 14px; text-decoration: none; color: inherit; align-content: start; min-width: 0; }
.vis {
  aspect-ratio: 16 / 10; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden; position: relative;
  transition: border-color 0.2s;
}
.card:hover .vis { border-color: var(--line-strong); }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card h3 { font-size: 1.45rem; font-stretch: 106%; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--human); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.card p { color: var(--muted); max-width: 46ch; }

/* drawings inside cards */
.vis svg { width: 86%; height: auto; }
.g-line { stroke: var(--line-strong); fill: none; stroke-width: 1.2; }
.g-node { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.2; }
.g-ink { fill: var(--ink); }
.g-human { fill: var(--human); }
.g-text { fill: var(--muted); font-family: var(--mono); font-size: 10px; }
.g-text-ink { fill: var(--ink); font-family: var(--mono); font-size: 10px; }

.phone {
  height: 80%; width: auto; aspect-ratio: 9 / 18.5; max-width: 100%;
  border: 1.5px solid var(--ink); border-radius: 22px; background: var(--bg);
  display: grid; align-content: center; justify-items: center; gap: 10px; padding: 12px;
}
.phone .time { font-family: var(--display); font-weight: 600; font-stretch: 110%; font-size: clamp(1.3rem, 3vw, 2rem); letter-spacing: -0.02em; }
.phone .bar { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: 3px; width: 100%; }
.phone .bar span { height: 5px; background: var(--line-strong); border-radius: 3px; }
.phone .bar span:nth-child(2) { background: var(--ink); }
.phone .names { display: grid; grid-template-columns: 1fr 3fr 1fr; width: 100%; font-family: var(--mono); font-size: 0.55rem; color: var(--muted); text-align: center; }

.frames { display: flex; align-items: flex-end; gap: 4%; width: 84%; }
.frames div {
  border: 1.2px solid var(--line-strong); border-radius: 3px; background: var(--bg);
  display: grid; place-items: center; position: relative; min-width: 0;
}
.frames div::after { content: ""; width: 26%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.frames div span { position: absolute; top: calc(100% + 6px); left: 0; font-family: var(--mono); font-size: 0.62rem; color: var(--muted); white-space: nowrap; }
.frames .r916 { width: 17%; aspect-ratio: 9 / 16; }
.frames .r45 { width: 22%; aspect-ratio: 4 / 5; }
.frames .r11 { width: 24%; aspect-ratio: 1; }
.frames .r169 { width: 33%; aspect-ratio: 16 / 9; }
.frames .ok { border-color: var(--ink); }

.chat { width: 70%; display: grid; gap: 8px; }
.chat span { display: block; height: 22px; border-radius: 11px; border: 1.2px solid var(--line-strong); background: var(--bg); }
.chat span:nth-child(odd) { width: 62%; }
.chat span:nth-child(even) { width: 48%; justify-self: end; background: var(--ink); border-color: var(--ink); }
.chat span.typing { width: 18%; display: flex; align-items: center; justify-content: center; gap: 4px; }
.chat span.typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.chat span.typing i:nth-child(2) { animation-delay: 0.2s; }
.chat span.typing i:nth-child(3) { animation-delay: 0.4s; }

/* ---------- why me ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.why > div { display: grid; gap: 12px; align-content: start; }
.why .big { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 620; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.05; }
.why p { color: var(--muted); }

/* ---------- reel ---------- */
.reel {
  display: grid; position: relative; aspect-ratio: 16 / 9; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--reel-bg); color: var(--reel-fg); text-decoration: none;
}
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-card { place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.reel-card .tc { font-family: var(--mono); font-size: clamp(1.2rem, 4vw, 2.6rem); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.reel-card .play { display: inline-flex; align-items: center; gap: 0.6em; font-size: var(--s-small); border: 1px solid currentColor; padding: 0.7em 1.1em; border-radius: 99px; }
.reel-card:hover .play { background: var(--reel-fg); color: var(--reel-bg); }
.reel-corners { position: absolute; inset: 16px; pointer-events: none; }
.reel-corners i { position: absolute; width: 18px; height: 18px; border-color: currentColor; border-style: solid; opacity: 0.5; }
.reel-corners i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.reel-corners i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.reel-corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.reel-corners i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.reel-below { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--muted); font-size: var(--s-small); }

/* ---------- contact ---------- */
.contact { display: grid; gap: 28px; }
.contact h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); font-stretch: 108%; max-width: 18ch; line-height: 1; }
.contact .lines { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
.email { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.email a { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 560; text-decoration: none; border-bottom: 1px solid var(--ink); }
.copy { font: 500 var(--s-label) var(--mono); background: none; border: 1px solid var(--line-strong); color: var(--muted); padding: 0.45em 0.8em; border-radius: 99px; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--ink); }
.links-row { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--s-small); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: var(--s-small); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-foot a { color: var(--muted); }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.page-head .wrap { display: grid; gap: 24px; }
.page-head h1 { max-width: 16ch; }
.page-head .lead { max-width: 40ch; }
.facts { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 8px; }
.facts div { padding: 14px 28px 14px 0; margin-right: 28px; display: grid; gap: 2px; }
.facts div + div { padding-left: 28px; border-left: 1px solid var(--line); margin-right: 0; }
.facts b { font-weight: 600; font-size: 1.05rem; }
.facts span { font-family: var(--mono); font-size: var(--s-label); color: var(--muted); }

.status {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  max-width: 62ch; font-size: var(--s-small);
}
.status .tag { flex: none; }

.part { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.part .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 20px clamp(24px, 4vw, 56px); }
.part .side { padding-top: 6px; }
.part .main { display: grid; gap: 22px; min-width: 0; }
.part h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* stage table */
.stages { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stages li { display: grid; grid-template-columns: 4.5rem minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1.4fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stages .n { font-family: var(--mono); font-size: var(--s-label); color: var(--muted); }
.stages b { font-weight: 600; }
.stages .ai { color: var(--muted); font-size: var(--s-small); }
.stages .yes { white-space: normal; }
.stages .head { color: var(--muted); font-family: var(--mono); font-size: var(--s-label); padding-block: 10px; }

/* ladder */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ladder li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.ladder .n { font-family: var(--mono); font-size: var(--s-label); color: var(--muted); }
.ladder .cost { font-family: var(--mono); font-size: var(--s-label); color: var(--muted); letter-spacing: 0.1em; white-space: nowrap; }
.ladder li.person { border-color: var(--human); background: var(--human-soft); }

/* compare bars */
.compare { display: grid; gap: 22px; max-width: 46rem; }
.compare .row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 14px; align-items: center; }
.compare .row > span { font-family: var(--mono); font-size: var(--s-label); color: var(--muted); }
.compare .bars { display: grid; gap: 6px; }
.compare .bar { display: flex; align-items: center; gap: 10px; font-size: var(--s-small); }
.compare .bar i { display: block; height: 14px; background: var(--line-strong); border-radius: 2px; flex: none; }
.compare .bar.cust i { background: var(--ink); }
.compare .bar em { font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare-key { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: var(--s-label); color: var(--muted); }
.compare-key span { display: inline-flex; align-items: center; gap: 8px; }
.compare-key span::before { content: ""; width: 14px; height: 10px; background: var(--line-strong); border-radius: 2px; }
.compare-key span.cust::before { background: var(--ink); }

/* build steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: var(--s-label); color: var(--muted); padding-top: 4px; }
.steps li div { display: grid; gap: 6px; }
.steps b { font-weight: 600; }
.steps p { color: var(--muted); font-size: var(--s-small); }
.steps .tools { font-family: var(--mono); font-size: var(--s-label); color: var(--muted); }

/* plain table */
.table-wrap { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: var(--s-small); }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: var(--s-label); font-weight: 500; color: var(--muted); border-bottom-color: var(--line-strong); }
td:last-child, th:last-child { padding-right: 0; }

/* timeline weeks */
.weeks { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 6px; }
.weeks div { border-top: 3px solid var(--line-strong); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.weeks div:nth-child(2) { border-top-color: var(--ink); }
.weeks div:nth-child(3) { border-top-color: var(--human); }
.weeks .when { font-family: var(--mono); font-size: var(--s-label); color: var(--muted); }
.weeks p { color: var(--muted); font-size: var(--s-small); }

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rules li { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 560; font-stretch: 104%; letter-spacing: -0.012em; padding: 14px 0; border-bottom: 1px solid var(--line); }

.toolset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.toolset ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toolset li { font-family: var(--mono); font-size: var(--s-label); border: 1px solid var(--line-strong); border-radius: 99px; padding: 0.3em 0.75em; }
.toolset .learning li { border-style: dashed; color: var(--muted); }

.career { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.career li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.career .when { font-family: var(--mono); font-size: var(--s-label); color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.career b { font-weight: 600; }
.career p { color: var(--muted); font-size: var(--s-small); }

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

.next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }

.small-print { font-size: var(--s-small); color: var(--muted); max-width: 62ch; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .pipe { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 28px; }
  .pipe::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .pipe::after { display: none; }
  .pipe li { padding: 0 0 22px 0; }
  .pipe li::before { left: -28px; top: 5px; }
  .stages li { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .stages li > :nth-child(3), .stages li > :nth-child(4) { grid-column: 2; }
  .stages .head { display: none; }
}
@media (max-width: 760px) {
  .three, .why, .cards, .toolset { grid-template-columns: minmax(0, 1fr); }
  .part .wrap { grid-template-columns: minmax(0, 1fr); }
  .weeks { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .career li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .facts div, .facts div + div { padding: 12px 20px 12px 0; margin-right: 20px; border-left: 0; }
  .compare .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- fan-out (one master, many pieces) ---------- */
.fan { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fan .grp { display: grid; gap: 10px; justify-items: start; }
.fan .cap { font-family: var(--mono); font-size: var(--s-label); color: var(--muted); }
.fan .m { width: 168px; max-width: 100%; aspect-ratio: 16 / 9; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--bg); display: grid; place-items: center; font-family: var(--mono); font-size: var(--s-label); }
.fan .arrow { font-family: var(--mono); color: var(--muted); }
.fan .shorts { display: grid; grid-template-columns: repeat(5, 16px); gap: 5px; }
.fan .shorts i { display: block; aspect-ratio: 9 / 16; border: 1.2px solid var(--line-strong); border-radius: 2px; background: var(--bg); }
.fan .carousel { display: flex; padding-left: 18px; }
.fan .carousel i { display: block; width: 34px; aspect-ratio: 4 / 5; border: 1.2px solid var(--line-strong); border-radius: 2px; background: var(--bg); margin-left: -18px; }
.fan .posts { display: grid; gap: 5px; width: 64px; }
.fan .posts i { display: block; height: 6px; border-radius: 3px; background: var(--line-strong); }
.fan .posts i:nth-child(2) { width: 80%; }
.fan .posts i:nth-child(3) { width: 60%; }
.fan .gate { margin-left: auto; }

.vis.wide { aspect-ratio: 21 / 9; }
.vis.tall { aspect-ratio: 4 / 3; }
.vis.wide .frames { width: 70%; }
figure { margin: 0; }
figcaption { margin-top: 10px; font-family: var(--mono); font-size: var(--s-label); color: var(--muted); }
@media (max-width: 760px) {
  .vis.wide { aspect-ratio: 4 / 3; }
  .vis.wide .frames { width: 88%; }
  .fan .gate { margin-left: 0; }
}


/* ---------- images and coloured tiles ---------- */
.vis.photo { background: var(--surface); }
.vis.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.card:hover .vis.photo img { transform: scale(1.025); }
.vis.dark { border-color: transparent; }
.vis.warm { background: #f4efe9; }
.vis.warm .frames div { border: 0; background: linear-gradient(160deg, #ffd9c0 0%, #f4a3a0 55%, #b7a5ee 100%); }
.vis.warm .frames div::after { background: #1b1a22; width: 22%; }
.vis.warm .frames div span { color: #6b6660; }
.vis.warm .frames .ok { outline: 2px solid var(--human); outline-offset: 3px; }
.vis.warm .frames .ok::before { content: ""; position: absolute; top: -9px; right: -9px; width: 14px; height: 14px; border-radius: 50%; background: var(--human); box-shadow: 0 0 0 3px #f4efe9; }

.vis.reel-tile { background: var(--reel-bg); color: var(--reel-fg); place-content: center; justify-items: center; gap: 12px; text-align: center; }
.reel-tile .tc { font-family: var(--mono); font-size: clamp(1.1rem, 3vw, 1.9rem); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.reel-tile .play { display: inline-flex; align-items: center; gap: 0.6em; font-size: var(--s-small); border: 1px solid currentColor; padding: 0.6em 1em; border-radius: 99px; }
.card:hover .reel-tile .play { background: var(--reel-fg); color: var(--reel-bg); }
.reel-tile .reel-corners { inset: 14px; }

.shot { margin: 0; display: grid; gap: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.figure-sec { padding-block: 0 clamp(40px, 6vw, 72px); }
.figure-sec + section { border-top: 1px solid var(--line); }

/* about portrait */
.head-text { display: grid; gap: 24px; align-content: end; }
.page-head.with-pic .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 32px clamp(32px, 5vw, 72px); }
.portrait { margin: 0; aspect-ratio: 4 / 5; width: 100%; max-width: 400px; justify-self: end; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait.empty { border: 1px dashed var(--line-strong); display: grid; place-items: center; text-align: center; font-family: var(--mono); font-size: var(--s-label); color: var(--muted); line-height: 1.7; }
@media (max-width: 760px) {
  .page-head.with-pic .wrap { grid-template-columns: minmax(0, 1fr); }
  .portrait { justify-self: start; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover .vis.photo img { transform: none; }
}

/* Miracle Ritual: website in a browser frame, illustrated ritual cards */
.browser { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-bar span { margin-left: 10px; font-family: var(--mono); font-size: var(--s-label); color: var(--muted); background: var(--bg); padding: 3px 12px; border-radius: 99px; }
.browser img { display: block; width: 100%; height: auto; }

.ritual { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ritual figure, .duo figure { margin: 0; display: grid; gap: 14px; align-content: start; }
.ritual img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.ritual figcaption, .duo figcaption { margin: 0; display: grid; gap: 4px; font-family: var(--body); font-size: var(--s-body); color: var(--ink); }
.ritual .when { font-family: var(--mono); font-size: var(--s-label); color: var(--muted); }
.ritual b, .duo b { font-weight: 600; font-size: 1.1rem; }
.ritual p, .duo p { color: var(--muted); font-size: var(--s-small); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.duo .pic { aspect-ratio: 5 / 4; max-width: 100%; overflow: hidden; border-radius: var(--radius); }
.duo .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.duo .pic img.top { object-position: 50% 12%; }
@media (max-width: 760px) {
  .ritual, .duo { grid-template-columns: minmax(0, 1fr); }
  .ritual img { aspect-ratio: 16 / 10; object-position: 50% 45%; }
}

/* a real number in the pipeline band */
.band-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: end; margin-top: clamp(32px, 5vw, 56px); }
.band-foot .rule-line { margin-top: 0; }
.stat { display: grid; gap: 8px; padding-left: 20px; border-left: 2px solid var(--human); }
.stat b { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 650; font-stretch: 108%; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.stat span { color: var(--muted); max-width: 38ch; }

/* certificates strip */
.certs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(32px, 5vw, 48px); padding-top: 20px; border-top: 1px solid var(--line); }
.certs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.certs a { display: inline-block; font-family: var(--mono); font-size: var(--s-label); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 99px; padding: 0.35em 0.8em; color: var(--ink); }
.certs a:hover { border-color: var(--human); color: var(--human-ink); }
@media (max-width: 760px) { .band-foot { grid-template-columns: minmax(0, 1fr); } }

/* ---------- who I am ---------- */
.who { display: grid; gap: 6px; }
.who .name { font-family: var(--display); font-weight: 650; font-stretch: 112%; font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.01em; }
.who .roles { font-family: var(--mono); font-size: clamp(0.8rem, 1.2vw, 0.95rem); color: var(--human-ink); }

/* ---------- AI factory ---------- */
.factory { margin: 0; min-width: 0; background: var(--band-bg); border-radius: var(--radius); overflow: hidden; }
.factory svg { display: block; width: 100%; height: auto; }
.f-grid path { stroke: #23262b; stroke-width: 1; fill: none; }
.f-path { fill: none; stroke: #4a4e55; stroke-width: 1.2; stroke-dasharray: 3 5; }
.f-node circle { fill: #17191c; stroke: #5a5e65; stroke-width: 1.2; }
.f-node .ring { fill: none; stroke: #8a8e95; stroke-dasharray: 2 7; }
.f-node text { fill: #ededea; font-family: var(--mono); font-size: 11px; text-anchor: middle; }
.f-node.gate circle { fill: #3fd68a; stroke: #3fd68a; }
.f-node.gate text { fill: #0e0f11; font-size: 15px; font-weight: 700; }
.f-out rect { fill: #1d2b5e; stroke: #3fd68a; stroke-width: 1.5; }
.f-label { fill: #9b9ea4; font-family: var(--mono); font-size: 11px; }
.f-label.on { fill: #6ee3a6; }

/* ---------- trust, louder ---------- */
.trust.big { padding-block: 40px; }
.trust.big li { font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--ink); }
.trust.big ul { gap: 12px 44px; }

/* ---------- bigger work cards ---------- */
.cards.big { gap: clamp(28px, 4vw, 48px); }
.cards.big .card h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

/* ---------- why me: six skills ---------- */
.skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.skills li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.skills b { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 620; letter-spacing: -0.01em; }
.skills span { color: var(--muted); font-size: var(--s-small); }

/* ---------- career toggle ---------- */
.fold summary { cursor: pointer; font-family: var(--mono); font-size: var(--s-label); padding: 0.6em 1em; border: 1px solid var(--line-strong); border-radius: 99px; display: inline-block; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: " +"; }
.fold[open] summary::after { content: " –"; }
.fold[open] summary { margin-bottom: 20px; }
.toolset { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 760px) { .skills { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .factory animateMotion { display: none; } }

/* sticky header with roles */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-head .wrap { padding-block: 14px; }
.head-roles { flex: 1; text-align: center; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
@media (max-width: 900px) { .head-roles { order: 3; flex-basis: 100%; text-align: left; font-size: 0.68rem; } }
.roles-line { font-family: var(--mono); font-size: var(--s-small); color: var(--human-ink); }
.toolset .wide { grid-column: 1 / -1; }

/* ---------- softer dark mode: deep indigo-slate instead of black ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1e2e; --surface: #242839; --ink: #eceef5; --muted: #a3a8bc;
    --line: #333852; --line-strong: #555c7a; --band-bg: #23273b; --reel-bg: #141726;
    --human: #3fd6a0; --human-ink: #6fe3b8; --human-soft: rgba(63, 214, 160, 0.14);
  }
}
:root[data-theme="dark"] {
  --bg: #1b1e2e; --surface: #242839; --ink: #eceef5; --muted: #a3a8bc;
  --line: #333852; --line-strong: #555c7a; --band-bg: #23273b; --reel-bg: #141726;
  --human: #3fd6a0; --human-ink: #6fe3b8; --human-soft: rgba(63, 214, 160, 0.14);
}
:root { --band-bg: #1f2336; }
.band, .vis.dark { --bg: var(--band-bg); --surface: #2a2e44; --line: #363b56; --line-strong: #5a6181; --muted: #a8adc2; --human: #3fd6a0; --human-ink: #6fe3b8; }
.factory { background: var(--band-bg); }
.f-grid path { stroke: #2b3048; }
.f-node circle { fill: #262a40; stroke: #5a6181; }
.f-out rect { fill: #2c3466; }

/* ---------- a bit more green ---------- */
.label { color: var(--human-ink); }
.label::before { background: var(--human); }
.btn:hover { background: var(--human); border-color: var(--human); color: #0e1a14; }
.btn.ghost:hover { border-color: var(--human); color: var(--human-ink); background: transparent; }
.card:hover .vis { border-color: var(--human); }
.nav a[aria-current="page"] { text-decoration-color: var(--human); color: var(--ink); }
.skills li { border-top-color: var(--human); }
.skills b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--human); margin-right: 10px; vertical-align: 0.18em; }
.trust.big li:hover { color: var(--human-ink); }
.reel-below a, .links-row a, .prose a { text-decoration-color: var(--human); }
.email a { border-bottom-color: var(--human); }
