/* The type, served from this site: no visitor ever contacts Google. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/bricolage-grotesque-normal-500-f39ba9.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/bricolage-grotesque-normal-500-f39ba9.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/bricolage-grotesque-normal-500-f39ba9.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/bricolage-grotesque-normal-500-f39ba9.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-normal-400-acb0f0.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-normal-500-117e88.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/source-serif-4-italic-400-324356.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/source-serif-4-normal-400-91f1a3.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/source-serif-4-normal-400-91f1a3.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Layout: one shared left edge for everything. The hero splits in two: the
   promise on the left, the product itself (a live answer) on the right.
   Reading text keeps a letter's measure inside that same edge. */
:root {
  --paper: #F5F3EE;
  --sheet: #FFFFFF;
  --well: #EFECE5;
  --ink: #17171A;
  --ink-soft: #4E4C47;
  --ink-faint: #6F6C66;
  --rule: rgba(23, 23, 26, 0.10);
  --amber: #F0A35E;
  --amber-ink: #8A4310;
  --strong: #1F6B4A;
  --strong-wash: #E4F1E9;
  --blocked: #A3261C;
  --blocked-wash: #FBE9E6;
  --track: #E4E0D7;
  --partial-bar: #B9B4A9;
  --needle-back: #F5F3EE;
  --tile: #17171A;
  --seg-on: #FFFFFF;
  --seg-on-edge: transparent;
  --shadow: 0 1px 2px rgba(23,23,26,.05), 0 8px 24px rgba(23,23,26,.06), 0 32px 64px -24px rgba(23,23,26,.14);

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --data: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --page: 76rem;
  --split: minmax(0, 1fr) minmax(0, 1fr);
  --split-gap: clamp(32px, 6vw, 96px);
  --measure: 35rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141412; --sheet: #1D1D1A; --well: #252521;
    --ink: #EDEAE3; --ink-soft: #C2BEB5; --ink-faint: #9C988F;
    --rule: rgba(237,234,227,.12);
    --amber-ink: #F0A35E;
    --strong: #6FC79A; --strong-wash: #1B2D24;
    --blocked: #F08A7E; --blocked-wash: #33201C;
    --track: #33322E; --partial-bar: #6A675F;
    --needle-back: #EDEAE3; --tile: #2A2A27; --seg-on: #3A3934; --seg-on-edge: rgba(237,234,227,.22);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 60px -20px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141412; --sheet: #1D1D1A; --well: #252521;
  --ink: #EDEAE3; --ink-soft: #C2BEB5; --ink-faint: #9C988F;
  --rule: rgba(237,234,227,.12);
  --amber-ink: #F0A35E;
  --strong: #6FC79A; --strong-wash: #1B2D24;
  --blocked: #F08A7E; --blocked-wash: #33201C;
  --track: #33322E; --partial-bar: #6A675F;
  --needle-back: #EDEAE3; --tile: #2A2A27; --seg-on: #3A3934; --seg-on-edge: rgba(237,234,227,.22);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 60px -20px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.page {
  max-width: calc(var(--page) + 2 * 32px);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
a { color: var(--amber-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* The mark: a compass needle on the ink tile, settling once on load. */
.mark { width: 36px; height: 36px; flex: none; }
.mark .tile { fill: var(--tile); }
.mark .fore { fill: var(--amber); }
.mark .back { fill: var(--needle-back); }
:root[data-theme="dark"] .mark .back, :root[data-theme="dark"] .mark .tile {}
.needle { transform-box: view-box; transform-origin: 50% 50%; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .needle { animation: settle 1.7s cubic-bezier(.2,.8,.2,1) .15s both; }
  .rise { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .28s; }
}
@keyframes settle {
  0% { transform: rotate(-70deg); } 45% { transform: rotate(62deg); }
  70% { transform: rotate(38deg); } 86% { transform: rotate(48deg); } 100% { transform: rotate(45deg); }
}
/* Starts visible: only a short lift, never from transparent. */
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }

header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand span { font: 800 26px/1 var(--display); letter-spacing: -0.035em; }
.top-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--rule);
  font: 600 16px/1 var(--display); color: var(--ink); text-decoration: none;
}
.top-link:hover { background: var(--sheet); }
/* A 360 px phone has no room for the wordmark beside the language pill and
   the start link (the bar scrolled sideways by 23 px): the mark alone, the
   link keeps its name ("Rumbo, inicio") for screen readers. */
@media (max-width: 380px) {
  .brand span { display: none; }
  .brand { min-width: 44px; justify-content: center; }
}

/* Hero: promise left, product right. */
.hero {
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  /* Both columns start on one line, right under the header: centring the
     promise against the taller demo left a gap above the headline. */
  align-items: start;
  padding-block: clamp(16px, 3vh, 32px) clamp(40px, 6vh, 64px);
}
.hero h1 {
  margin: 0;
  font: 800 clamp(48px, 7vw, 92px)/0.94 var(--display);
  letter-spacing: -0.048em;
}
.hero h1 em { font-style: normal; color: var(--amber-ink); display: block; }
.lede { margin: 30px 0 0; font-size: 22px; line-height: 1.55; color: var(--ink-soft); max-width: 28rem; }
.start { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  border-radius: 999px; border: 0;
  background: var(--ink); color: var(--paper);
  font: 700 18px/1 var(--display); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 20px -8px rgba(23,23,26,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 12px 26px -10px rgba(23,23,26,.5); }
.btn svg { width: 18px; height: 18px; }
.start small { font: 400 16px/1.45 var(--display); color: var(--ink-faint); max-width: 28rem; }

/* The product: a live answer, three jobs one tap apart. */
.demo { display: grid; gap: 12px; }
/* The demo is a <section> for screen readers, not a page section: no section spacing. */
.hero .demo { padding-block: 0; }
.seg {
  margin: 0; border: 0; min-width: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  padding: 4px; border-radius: 16px; background: var(--well);
}
.seg button {
  min-height: 48px; padding: 8px 10px 8px 22px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink-soft); cursor: pointer; text-align: left;
  font: 600 14px/1.2 var(--display);
  display: grid; gap: 2px; align-content: center;
}
.seg button b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg button span { font: 400 14px/1.2 var(--display); color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg button[aria-pressed="true"] { background: var(--seg-on); outline: 1px solid var(--seg-on-edge); outline-offset: -1px; color: var(--ink); box-shadow: 0 1px 2px rgba(23,23,26,.08), 0 2px 8px rgba(23,23,26,.06); }
.answer {
  background: var(--sheet); border-radius: 24px; padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
}
/* The three answers share one cell: the card keeps the tallest one's size. */
.answer > .state { grid-area: 1 / 1; display: grid; gap: 16px; align-content: start; visibility: hidden; }
.answer > .state.is-on { visibility: visible; }
.gate { border: 1px solid var(--blocked); border-radius: 14px; background: var(--blocked-wash); padding: 13px 15px; font: 400 16px/1.45 var(--display); }
.gate b { display: block; color: var(--blocked); font-weight: 700; margin-bottom: 3px; }
.verdict { display: flex; gap: 14px; align-items: center; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.icon svg { width: 26px; height: 26px; }
.verdict h3 { margin: 0; font: 800 34px/1 var(--display); letter-spacing: -0.035em; }
.verdict p { margin: 6px 0 0; font: 400 14px/1.3 var(--display); color: var(--ink-faint); }
.advice { margin: 0; font: 400 18px/1.45 var(--text); }
.bar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.bar i { height: 8px; border-radius: 999px; background: var(--track); }
.bar i.s { background: var(--strong); }
.bar i.p { background: var(--amber); }
.bar i.m { background: var(--blocked); opacity: .5; }
.counts span { white-space: nowrap; }
.counts { margin: -4px 0 0; font: 500 16px/1.4 var(--display); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.met b { display: block; font: 600 14px/1.3 var(--display); color: var(--ink-faint); margin-bottom: 8px; }
.met ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.met li.more { background: none; color: var(--ink-faint); padding-inline: 4px; }
.met li { padding: 5px 10px; border-radius: 999px; background: var(--strong-wash); color: var(--strong); font: 500 14px/1.3 var(--display); }
.missing { background: var(--well); border-radius: 14px; padding: 13px 16px; }
.missing b { display: block; font: 600 14px/1.3 var(--display); color: var(--ink-faint); margin-bottom: 3px; }
.missing span { font: 600 18px/1.4 var(--display); }
.why span { font: 400 17px/1.5 var(--text); }
.caption { margin: 2px 0 0; font: 400 14px/1.45 var(--display); color: var(--ink-faint); }

/* Section rhythm: space, not rules. Each section opens with one line. */
section { padding-block: clamp(48px, 7vh, 72px); }
.kicker { margin: 0 0 16px; font: 500 14px/1.3 var(--data); letter-spacing: .04em; color: var(--amber-ink); }
h2 { margin: 0 0 26px; font: 700 clamp(34px, 4.6vw, 54px)/1.04 var(--display); letter-spacing: -0.035em; max-width: 18ch; }

/* The tailored CV: the pitch and the job's words on the left, a real CV on paper on the right. */
.cv-asks-label { margin: 0 0 10px; font: 600 14px/1.3 var(--display); color: var(--ink-faint); }
.cv-asks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cv-asks li { padding: 6px 12px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--rule); font: 600 16px/1.3 var(--display); }
.cv-also { margin: 24px 0 0; font: 400 16px/1.5 var(--display); color: var(--ink-faint); }
.cv-sheet { margin: 0; background: var(--sheet); border-radius: 18px; padding: 32px 34px; box-shadow: var(--shadow); }
.cv-name { margin: 0; font: 700 26px/1.15 var(--display); letter-spacing: -0.02em; }
.cv-role { margin: 2px 0 0; font: 400 16px/1.4 var(--display); color: var(--ink-soft); }
.cv-job { margin: 22px 0 10px; font: 600 16px/1.4 var(--display); }
.cv-bullets { margin: 0; padding-left: 1.1em; display: grid; gap: 14px; font: 400 16px/1.55 var(--text); }
.cv-bullets mark { background: color-mix(in srgb, var(--amber) 32%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
.cv-cite { display: block; margin-top: 4px; font: 500 14px/1.3 var(--display); color: var(--strong); }
.cv-sheet figcaption { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); font: 400 14px/1.45 var(--display); color: var(--ink-faint); }

/* The note: a letter. Its first line is set large, like the start of a page. */
.note-grid { display: block; }
.note { columns: 2; column-gap: var(--split-gap); }
.note p { break-inside: avoid; }
.note .sign { break-inside: avoid; }
.note-head { margin-bottom: 36px; }
.note-head .open { margin: 0; font: 700 clamp(34px, 4.6vw, 54px)/1.06 var(--display); letter-spacing: -0.035em; max-width: 22ch; }
.note p { margin: 0 0 1.05em; }
.note p:last-child { margin-bottom: 0; }
.sign { margin-top: 30px; display: flex; align-items: baseline; gap: 14px; }
.sign .name { font: italic 400 34px/1 var(--text); }
.sign .where { font: 400 14px/1.4 var(--data); color: var(--ink-faint); }

/* Where it works: two white cards, the only cards on the page besides the demo. */
.ways { display: grid; grid-template-columns: var(--split); gap: 24px var(--split-gap); }
.way-card { background: var(--sheet); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.way-card h3 { margin: 0; font: 700 26px/1.15 var(--display); letter-spacing: -0.02em; }
.way-card p { margin: 0; color: var(--ink-soft); }
.way-card ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; font: 500 18px/1.45 var(--display); }
.way-card ol li::marker { color: var(--amber-ink); font-weight: 700; }
.way-card .btn { justify-self: start; margin-top: 8px; }
.way-card .soon { font: 500 16px/1.45 var(--display); color: var(--ink-faint); margin-top: 4px; }

/* What it refuses: statements, set large. */
.nots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: var(--split); gap: 40px var(--split-gap); }
.nots h3 { position: relative; }
@media (min-width: 1240px) { .nots h3 svg { position: absolute; left: -32px; top: 50%; translate: 0 -50%; } .nots p { padding-left: 0 !important; } }
.nots li { display: grid; gap: 8px; align-content: start; }
.nots h3 { margin: 0; display: flex; align-items: center; gap: 12px; font: 700 26px/1.15 var(--display); letter-spacing: -0.02em; }
.nots h3 svg { width: 20px; height: 20px; flex: none; stroke: var(--blocked); }
.nots p { margin: 0; color: var(--ink-soft); font-size: 18px; line-height: 1.55; padding-left: 32px; }

/* Costs: the $0 is the peak of the page. */
.cost-grid { display: grid; grid-template-columns: var(--split); gap: var(--split-gap); align-items: start; }
.zero span { display: inline-block; transform-origin: left bottom; white-space: nowrap; transition: color .5s ease; }
/* Counting down it is just a number; the green is for landing on $0. */
.zero span.counting { color: var(--ink); }
.zero { margin: 24px 0 0; font: 800 clamp(120px, 20vw, 240px)/0.82 var(--display); letter-spacing: -0.06em; color: var(--strong); }
.zero-label { margin: 18px 0 0; font: 600 22px/1.3 var(--display); max-width: none; letter-spacing: -0.01em; }
.zero-note { margin: 6px 0 0; font-size: 18px; color: var(--ink-faint); max-width: 22rem; }
.costs { width: 100%; border-collapse: collapse; font: 500 18px/1.4 var(--display); }
.costs caption { caption-side: bottom; text-align: left; padding-top: 12px; font: 400 14px/1.4 var(--display); color: var(--ink-faint); }
.costs tr:first-child td { border-top: 0; }
.costs td em { display: block; font: 400 14px/1.3 var(--display); font-style: normal; color: var(--ink-faint); }
.costs td { padding: 16px 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
.costs td:last-child { text-align: right; font: 500 18px/1.4 var(--data); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 16px; }
.fine { margin-top: 26px; display: grid; gap: 14px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.fine p { margin: 0; }
.fine strong { color: var(--ink); font-weight: 600; }

/* Last call */
.last { padding-block: clamp(48px, 8vh, 88px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.last h2 { margin: 0; max-width: none; }
.last .start { margin-top: 0; flex-direction: column; align-items: flex-start; gap: 12px; }
footer {
  padding-block: 24px 40px;
  display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; align-items: center;
  font: 400 14px/1.5 var(--display); color: var(--ink-faint);
  border-top: 1px solid var(--rule);
}
footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
/* Korven's wordmark (as on korven.dev): K, the hexagon with its amber node, RVEN. */
.made-by { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-faint); text-decoration: none; }
.made-by:hover .korven { color: var(--ink); }
.korven { display: inline-flex; align-items: center; font: 700 18px/1 var(--display); letter-spacing: 0.04em; color: var(--ink-soft); transition: color .15s ease; }
.korven-hex { width: 15px; height: 16px; margin: 0 1px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
footer a { color: var(--ink-faint); display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .note { columns: 1; }
  .cost-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  section { padding-block: 36px; }
  .hero { padding-block: 20px 40px; gap: 40px; }
  .lede { font-size: 18px; line-height: 1.5; margin-top: 18px; }
  .hero h1 { font-size: 46px; }
  .start { margin-top: 24px; }
  .btn { width: 100%; }
  .start small { max-width: none; }
  .seg button { padding: 8px 6px; text-align: center; justify-items: center; }
  .seg button b { display: none; }
  .seg button span { font: 600 16px/1.2 var(--display); color: inherit; }
  .answer { padding: 20px; }
  .verdict h3 { font-size: 34px; }
  .nots, .ways { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cv-sheet { padding: 22px; }
  .way-card { padding: 22px; }
  .last .start { width: 100%; }
  .nots h3 { font-size: 26px; }
  .nots p { padding-left: 32px; }
  .last h2 { font-size: 34px; }
}

/* ES · EN: the landing in either language; the app then opens in it. */
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--rule); }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; font: 600 14px/1 var(--display); color: var(--ink-faint); text-decoration: none; }
.lang a[aria-current="page"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(23,23,26,.08); }
.top-end { display: flex; align-items: center; gap: 12px; }


/* An example says it is one, on the card itself (2026-11-23). */
.sample-tag, .cv-sample {
  justify-self: start; margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 999px;
  font: 500 13px/1.2 var(--data); letter-spacing: .03em;
  background: var(--well); color: var(--amber-ink);
}
.sample-tag::before, .cv-sample::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
}

/* Each gap with its reason: the honest part of the answer, spelled out. */
.gaps ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.gaps li { display: grid; gap: 2px; }
.gaps strong { font: 600 17px/1.35 var(--display); }
.gaps li span { font: 400 16px/1.5 var(--text); color: var(--ink-soft); }

/* The CV is a printed page in either theme: white paper, dark ink, the
   sections a recruiter expects. Its colours are the page's own. */
:root {
  --page-paper: #FFFFFF;
  --page-ink: #1B1B1E;
  --page-soft: #55534E;
  --page-faint: #74716A;
  --page-rule: rgba(27, 27, 30, 0.14);
  --page-cite: #1F6B4A;
  --page-mark: rgba(240, 163, 94, 0.32);
  --page-tag: #F3EFE7;
  --page-tag-ink: #8A4310;
}
.cv-sheet {
  position: relative;
  background: var(--page-paper); color: var(--page-ink);
  border-radius: 6px; padding: 40px 42px 30px;
  border: 1px solid var(--page-rule);
  display: grid; gap: 0;
}
.cv-sheet .cv-sample { position: absolute; top: -14px; right: 22px; background: var(--page-tag); color: var(--page-tag-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cv-top { text-align: center; padding-bottom: 14px; }
.cv-name { font: 700 30px/1.1 var(--display); letter-spacing: -0.02em; }
.cv-role { margin: 4px 0 0; font: 500 16px/1.35 var(--display); color: var(--page-soft); }
.cv-contact { margin: 8px 0 0; font: 400 13px/1.4 var(--display); color: var(--page-faint); }
.cv-section {
  margin: 18px 0 10px; padding-bottom: 5px; border-bottom: 1px solid var(--page-rule);
  font: 700 13px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--page-ink);
}
.cv-job { margin: 4px 0 8px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.cv-job b { font: 600 16px/1.35 var(--display); }
.cv-job span { font: 400 14px/1.3 var(--display); color: var(--page-faint); white-space: nowrap; }
.cv-sheet .cv-bullets { margin-bottom: 12px; font-size: 15.5px; color: var(--page-ink); }
.cv-sheet .cv-bullets mark, .cv-skills mark { background: var(--page-mark); color: inherit; border-radius: 3px; padding: 0 2px; }
.cv-sheet .cv-cite { color: var(--page-cite); font-size: 13px; }
.cv-skills { margin: 0; font: 400 15px/1.6 var(--text); }
.cv-sheet figcaption { margin-top: 22px; border-top-color: var(--page-rule); color: var(--page-faint); }
.cv-sheet { box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -18px rgba(0,0,0,.35); }

@media (max-width: 640px) {
  .cv-sheet { padding: 30px 20px 22px; }
  .cv-name { font-size: 26px; }
  .cv-job span { font-size: 13px; }
}
.cv-job { flex-wrap: nowrap; }
.cv-job b { min-width: 0; }

/* ==========================================================================
   How it works (2026-11-23): the page's spine. The top shows the payoff;
   from here the three steps run in order, each beside its own example, the
   examples on the same column as the answer card above. A line joins the
   numbers and, where the browser can, fills as you read down; with reduced
   motion (or no support) it is simply drawn, step one already lit.
   ========================================================================== */
.how { --rail: 48px; --how-gap: clamp(80px, 10vw, 132px); }
.how h2 { margin-bottom: 14px; }
.how-sub { margin: 0 0 clamp(44px, 5vw, 68px); color: var(--ink-soft); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--how-gap); }
.how-step {
  position: relative;
  display: grid; grid-template-columns: var(--split); gap: var(--split-gap); align-items: start;
  view-timeline: --how block;
}
/* The rail: from under this number to the next one. */
.how-step:not(:last-child)::before,
.how-step:not(:last-child)::after {
  content: ''; position: absolute; left: calc(var(--rail) / 2 - 1px); top: var(--rail);
  bottom: calc(-1 * var(--how-gap)); width: 2px; border-radius: 1px;
}
.how-step:not(:last-child)::before { background: var(--track); }
.how-step:not(:last-child)::after { background: var(--amber); transform-origin: top; transform: scaleY(0); }
.how-step:first-child::after { transform: scaleY(.35); }

/* The text keeps its place while a tall example scrolls past it. */
.how-text {
  position: sticky; top: 40px; z-index: 1;
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: 22px; align-content: start;
}
.how-text > :not(.how-n) { grid-column: 2; }
.how-n {
  grid-row: 1 / span 8; position: relative; z-index: 1;
  width: var(--rail); height: var(--rail); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 22px/1 var(--display);
  background: var(--paper); border: 2px solid var(--amber); color: var(--amber-ink);
}
.how-step:first-child .how-n { background: var(--amber); color: var(--ink); }
.how-text h3 { margin: 6px 0 14px; font: 800 clamp(28px, 3vw, 38px)/1.06 var(--display); letter-spacing: -0.03em; }
.how-lede { margin: 0; color: var(--ink-soft); max-width: var(--measure); }
.how .cv-asks-label { margin-top: 28px; }
.how-see {
  margin-top: 16px; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 600 16px/1.3 var(--display); color: var(--amber-ink); text-underline-offset: 4px;
}
.how-see svg { width: 18px; height: 18px; }

.how-ex { margin: 0; min-width: 0; display: grid; gap: 14px; }
.flow .sample-tag { justify-self: start; }
.flow-arrow { width: 26px; height: 26px; justify-self: center; color: var(--amber); }

/* Step 1: a file becomes a record. */
.file-chip {
  margin: 0; justify-self: center; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 14px; background: var(--sheet); box-shadow: var(--shadow);
  font: 600 16px/1 var(--display);
}
.file-chip svg { width: 22px; height: 22px; color: var(--amber-ink); flex: none; }
.record, .posting, .mini-verdict { background: var(--sheet); border-radius: 22px; box-shadow: var(--shadow); }
.record { padding: 24px 26px; display: grid; gap: 16px; }
.record-title { margin: 0; font: 500 13px/1.2 var(--data); letter-spacing: .04em; color: var(--amber-ink); }
.record-roles { list-style: none; margin: 0; padding: 0; display: grid; }
.record-roles li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 2px;
  padding: 12px 0; border-top: 1px solid var(--rule);
}
.record-roles li:first-child { padding-top: 0; border-top: 0; }
.record-roles b { font: 600 17px/1.3 var(--display); }
.record-roles span { grid-column: 1; font: 400 15px/1.35 var(--display); color: var(--ink-soft); }
.record-roles time { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 400 14px/1.3 var(--display); color: var(--ink-faint); white-space: nowrap; }
.record-ach { background: var(--well); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.record-ach-label { margin: 0; font: 600 14px/1.3 var(--display); color: var(--ink-faint); }
.record-ach-text { margin: 0; font: 400 16px/1.5 var(--text); }
.record-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.record-chips li { padding: 4px 11px; border-radius: 999px; background: var(--strong-wash); color: var(--strong); font: 600 14px/1.3 var(--display); }

/* Step 2: a posting becomes an answer. */
.posting { padding: 22px 26px; display: grid; gap: 10px; }
.posting-title { margin: 0; font: 700 20px/1.2 var(--display); letter-spacing: -0.01em; }
.posting-label { margin: 0; font: 600 14px/1.3 var(--display); color: var(--ink-faint); }
.posting-reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.req { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font: 400 16px/1.45 var(--text); }
.req-mark { width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.req-mark svg { width: 14px; height: 14px; }
.is-ok .req-mark { background: var(--strong-wash); color: var(--strong); }
.is-half .req-mark { background: color-mix(in srgb, var(--amber) 24%, transparent); color: var(--amber-ink); }
.mini-verdict { padding: 18px 22px 20px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; align-items: center; }
.mini-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--strong-wash); color: var(--strong); display: inline-flex; align-items: center; justify-content: center; }
.mini-icon svg { width: 22px; height: 22px; }
.mini-word { margin: 0; font: 800 26px/1.1 var(--display); letter-spacing: -0.02em; }
.mini-counts { margin: 3px 0 0; font: 400 14px/1.35 var(--display); color: var(--ink-soft); }
.mini-bar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
.mini-bar i { height: 6px; border-radius: 3px; background: var(--strong); }
.mini-bar i.p { background: var(--amber); }

/* Reading down lights the way: the rail fills, each number turns on. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .how-step:not(:last-child)::after {
      transform: scaleY(0);
      animation: how-fill linear both; animation-timeline: --how; animation-range: cover 25% cover 75%;
    }
    .how-n { animation: how-on linear both; animation-timeline: --how; animation-range: entry 60% cover 30%; }
  }
}
@keyframes how-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes how-on {
  from { background: var(--paper); color: var(--amber-ink); }
  to { background: var(--amber); color: var(--ink); }
}

@media (max-width: 900px) {
  .how-step { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .how-text { position: static; }
  /* The example sits under its step, on the text's edge, beside the rail. */
  .how-ex { margin-left: calc(var(--rail) + 22px); }
}
@media (max-width: 640px) {
  .how { --rail: 40px; --how-gap: 64px; }
  .how-n { font-size: 19px; }
  .how-text { column-gap: 16px; }
  /* Too narrow for a rail beside a CV: the examples take the full width,
     and the numbers alone keep the order. */
  .how-ex { margin-left: 0; }
  .how-step::before, .how-step::after { display: none; }
  .record, .posting { padding: 20px; }
  .record-roles li { grid-template-columns: minmax(0, 1fr); }
  .record-roles time { grid-column: 1; grid-row: auto; }
}

/* ==========================================================================
   No blank space (2026-11-23): every column and card ends where its row does.
   ========================================================================== */

/* The hero's left column ends where the right one does: its three promises
   sit at the bottom, level with the end of the example, wherever that is. */
.hero > div:first-child { display: flex; flex-direction: column; align-self: stretch; }
.promises {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px; max-width: 30rem;
}
.hero > div:first-child > .promises { margin-top: auto; padding-top: 40px; }
.promises li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.promise-icon {
  width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--well); color: var(--amber-ink);
}
.promise-icon svg { width: 18px; height: 18px; }
.promises li > span:last-child { font: 400 17px/1.45 var(--text); color: var(--ink-soft); padding-top: 6px; }
.promises b { font: 600 17px/1.3 var(--display); color: var(--ink); }

/* Every answer fills the card. The tallest sets the size (so switching
   never moves the page); a shorter one spreads the difference across the
   spaces between its blocks, a few pixels each, instead of leaving a blank
   strip at the bottom or an empty box. */
.answer > .state { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }

/* The note in two columns of its own; the signature sits at the foot of the
   second, on the line where the first one ends. */
.note { columns: auto; display: grid; grid-template-columns: var(--split); column-gap: var(--split-gap); }
.note-col { display: flex; flex-direction: column; }
.note-col p:last-of-type { margin-bottom: 0; }
.note-col .sign { margin-top: auto; padding-top: 30px; margin-bottom: 3.7px; }

@media (max-width: 900px) {
  .note { grid-template-columns: minmax(0, 1fr); row-gap: 1.05em; }
  .note-col .sign { margin-bottom: 0; }
  .hero > div:first-child > .promises { margin-top: 0; padding-top: 32px; }
}

/* ==========================================================================
   The CV writes itself (2026-11-23). The finished page is the default; the
   script adds .cv-pre (the empty page) and then .cv-run, and every piece
   moves only after its own --d. Masks, fades and colour only: nothing that
   reflows. Without the script, or with reduced motion, nothing here applies.
   ========================================================================== */
.cv-section { position: relative; border-bottom-color: transparent; }
.cv-section::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--page-rule); transform-origin: left;
}
.cv-sheet .cv-bullets mark, .cv-skills mark { transition: background-color .45s ease; }
.cv-done {
  margin: 18px 0 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.cv-done-word { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.3 var(--display); color: var(--page-cite); }
.cv-done-word svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: color-mix(in srgb, var(--page-cite) 14%, transparent); }
.cv-replay {
  min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  font: 600 14px/1 var(--display); color: var(--page-faint); text-decoration: underline; text-underline-offset: 3px;
}
.cv-replay:hover { color: var(--page-ink); }
/* The chips the CV answers carry a tick once their word is in it. */
.cv-asks li { display: inline-flex; align-items: center; gap: 6px; }
.cv-asks li::before {
  content: ''; width: 14px; height: 14px; flex: none; background: var(--strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .2s ease;
}
.cv-asks li { transition: border-color .3s ease, background-color .3s ease; }

/* The empty page, before it is written. */
.cv-pre .cv-section::after { transform: scaleX(0); }
.cv-pre .cv-bullets li {
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
}
.cv-pre .cv-sheet .cv-bullets mark, .cv-pre .cv-skills mark { background-color: transparent; }
.cv-pre .cv-cite, .cv-pre .cv-done { opacity: 0; transform: translateY(4px); }
.cv-pre .cv-asks li:not(.is-hit)::before { transform: scale(0); opacity: 0; }
.cv-pre .cv-asks li.is-hit { border-color: color-mix(in srgb, var(--strong) 45%, transparent); }

/* Writing it. */
.cv-run .cv-section::after { transform: scaleX(1); transition: transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.cv-run .cv-bullets li {
  -webkit-mask-position: 0 0; mask-position: 0 0;
  transition: -webkit-mask-position .9s cubic-bezier(.3, .6, .2, 1) var(--d, 0ms), mask-position .9s cubic-bezier(.3, .6, .2, 1) var(--d, 0ms);
}
.cv-run .cv-sheet .cv-bullets mark, .cv-run .cv-skills mark {
  background-color: var(--page-mark); transition: background-color .45s ease var(--d, 0ms);
}
.cv-run .cv-cite, .cv-run .cv-done {
  opacity: 1; transform: none; transition: opacity .5s ease var(--d, 0ms), transform .5s ease var(--d, 0ms);
}
/* The bullet is drawn inside its line, so the line's wipe writes it in too
   (a browser marker sits outside the box and a mask would clip it away). */
.cv-sheet .cv-bullets { list-style: none; padding-left: 0; }
.cv-sheet .cv-bullets li { position: relative; padding-left: 1.15em; }
.cv-sheet .cv-bullets li::before {
  content: ''; position: absolute; left: .25em; top: .66em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--page-ink);
}

/* The 24-second film, right under the hero: muted, looping, its own pause. */
.film { padding-block: 0 clamp(48px, 7vh, 72px); }
.film-frame {
  position: relative; overflow: hidden; border-radius: 20px;
  border: 1px solid var(--rule); background: var(--paper); aspect-ratio: 16 / 9;
}
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Bottom left: the one corner no scene of the film uses. */
.film-toggle {
  position: absolute; left: 10px; bottom: 10px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; cursor: pointer; background: none;
  /* Over the film, which is the same in both themes: always a light icon. */
  color: #fff;
}
.film-toggle::before {
  content: ''; position: absolute; inset: 4px; border-radius: inherit;
  background: color-mix(in srgb, var(--tile) 72%, transparent);
  /* A thin light ring: the disc still shows over the film's dark scenes. */
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28);
}
.film-toggle svg { position: relative; width: 18px; height: 18px; }
.film-toggle .i-play, .film-toggle.is-paused .i-pause { display: none; }
.film-toggle.is-paused .i-play { display: block; }
/* A phone: the same 44 px to tap, a smaller disc to see. */
@media (max-width: 640px) {
  .film-frame { border-radius: 14px; }
  .film-toggle { left: 2px; bottom: 2px; }
  .film-toggle::before { inset: 10px; }
  .film-toggle svg { width: 12px; height: 12px; }
}
