/* CV Compiler /cv-fixer. White framed page, teal demonstration stages, three repair chapters. */

@font-face { font-family: "Space Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/uploads-pre-acq/fonts/SpaceMonoRegular/SpaceMonoRegular.woff2") format("woff2"); }
@font-face { font-family: "Cerebri Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/partner-review/vendor/fonts/CerebriSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Cerebri Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/partner-review/vendor/fonts/CerebriSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Cerebri Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/partner-review/vendor/fonts/CerebriSans-SemiBold.woff2") format("woff2"); }

:root {
  --paper: #ffffff;
  --wash: #f5f9f9;
  --ink: #14151a;
  --ink-soft: #444752;
  --ink-faint: #636672;
  --teal: #15706f;
  --teal-deep: #0b4f52;
  --teal-pale: #e2f2f0;
  --teal-line: #b9dcd8;
  --blue: #1f5f8a;
  --amber: #8f4e00;
  --amber-tint: #ffe7ba;
  --purple: #4a2de0;
  --purple-dark: #3a20c2;
  --purple-tint: #ebe7ff;
  --rule: rgba(20, 21, 26, 0.13);
  --rule-strong: rgba(20, 21, 26, 0.3);
  --error: #a3211a;

  --sans: "Cerebri Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Space Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-micro: 0.75rem;
  --fs-tag: 0.8125rem;
  --fs-small: 0.9375rem;
  --fs-body: 1.125rem;
  --fs-lead: 1.3125rem;
  --fs-mono: 1.125rem;
  --fs-h4: 1.125rem;
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem);
  --fs-h1: clamp(2.875rem, 1.7rem + 4.6vw, 4.75rem);
  --fs-btn: 1rem;
  --fs-brand: 1.1875rem;
  --fs-cv: 0.9375rem;
  --fs-cv-name: 1.375rem;

  --gutter: 48px;
  --wrap: 1200px;
  --rail: 208px;
  --gap: clamp(64px, 8vw, 120px);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 24px; }

.skip {
  position: absolute; left: 16px; top: -80px; padding: 12px 18px;
  background: var(--ink); color: #fff; font-size: var(--fs-small); font-weight: 600; border-radius: 6px;
}
.skip:focus { top: 16px; }

/* ---------- Frame: an outer page edge and an inner column, both drawn as hairlines ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 900px) {
  .page { margin: 0 16px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
  .wrap {
    max-width: min(calc(var(--wrap) + 2 * var(--gutter)), calc(100% - 64px));
    border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  }
}
.sec { border-top: 1px solid var(--rule); }
.sec > .wrap { padding-top: var(--gap); padding-bottom: var(--gap); }
.grille { border-top: 1px solid var(--rule); }
.grille .wrap { height: 44px; display: flex; align-items: center; justify-content: center; }
.grille i {
  display: block; width: 168px; height: 17px;
  background-image: radial-gradient(circle, rgba(20, 21, 26, 0.34) 1.6px, transparent 2px);
  background-size: 7px 6px; background-position: 0 0;
}

h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; }
h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.045em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.025em; }
h4 { font-size: var(--fs-h4); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint);
}
.tag--teal { color: var(--teal); }

.prose > * + * { margin-top: 1.05em; }
.prose a, .faq a, .uk a, .next a { color: var(--purple-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .faq a:hover, .uk a:hover, .next a:hover { color: var(--purple); text-decoration-thickness: 2px; }
.lede { font-size: var(--fs-lead); line-height: 1.5; }

/* Buttons keep their colour family on hover and move by one pixel. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 13px 28px; border: 0; border-radius: 10px;
  background: var(--purple); color: #fff; font-size: var(--fs-btn); font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(20, 21, 26, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 5px 14px rgba(58, 32, 194, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn:active { transform: none; }
.btn[disabled] { background: #8f8ca6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--small { min-height: 44px; padding: 9px 18px; font-size: var(--fs-small); }

/* ---------- Header ---------- */
.top__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand {
  font-family: var(--mono); font-weight: 400; font-size: var(--fs-brand); letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap; margin-right: auto;
}
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.nav a {
  display: inline-block; padding: 10px 0; font-size: var(--fs-small); color: var(--ink-soft);
  text-decoration: none; transition: color 160ms var(--ease);
}
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle {
  display: none; align-items: center; min-height: 44px; padding: 8px 16px; background: transparent;
  border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--rule-strong);
  font-size: var(--fs-small); font-weight: 600; cursor: pointer;
}
.nav-toggle:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Hero ---------- */
.hero { text-align: center; }
.hero > .wrap {
  padding-top: clamp(56px, 8vw, 116px); padding-bottom: clamp(56px, 7vw, 96px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 82%),
    repeating-linear-gradient(0deg, rgba(21, 112, 111, 0.07) 0 1px, transparent 1px 6px),
    radial-gradient(70% 90% at 50% 0%, var(--teal-pale) 0%, #fff 78%);
}
.pill {
  display: inline-block; padding: 6px 15px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  font-family: var(--mono); font-size: var(--fs-tag); color: var(--ink-soft);
}
.hero h1 { margin-top: 22px; }
.hero__lead { max-width: 33em; margin: 26px auto 0; font-size: var(--fs-lead); line-height: 1.48; color: var(--ink-soft); }

.upload {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; text-align: left;
  max-width: 640px; margin: 40px auto 0; padding: 18px 18px 18px 22px;
  background: #fff; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  box-shadow: 0 0 0 6px rgba(21, 112, 111, 0.08), 0 18px 36px -22px rgba(11, 79, 82, 0.4);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.upload.is-drag { border-color: var(--purple); background: #f6f4ff; }
.upload__icon {
  flex: 0 0 44px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 10px; background: var(--teal-pale); color: var(--teal-deep);
}
.upload__icon svg { width: 22px; height: 22px; }
.upload__text { flex: 999 1 190px; min-width: 0; }
.upload__title { font-size: var(--fs-body); font-weight: 600; line-height: 1.3; }
.upload__meta { margin-top: 2px; font-size: var(--fs-small); color: var(--ink-soft); }
.upload__action { flex: 1 0 auto; }
/* Messages added by the shared uploader. */
.upload noscript { flex: 1 1 100%; }
.upload__status { flex: 1 1 100%; font-size: var(--fs-small); font-weight: 500; color: var(--error); }
.upload + div { max-width: 640px; margin: 18px auto 0; font-size: var(--fs-small); font-weight: 500; text-align: left; }
.upload + div p { margin-bottom: 10px; }
.upload + div button {
  min-height: 44px; padding: 8px 18px; background: transparent; border: 0; border-radius: 10px;
  box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; cursor: pointer;
}

/* ---------- Section heads: heading left, opening paragraph right ---------- */
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 64px; align-items: end; }
.head .tag { display: block; margin-bottom: 16px; }
.head h2 { max-width: 13em; }
.head p { color: var(--ink-soft); }

/* ---------- Stages ---------- */
.stage {
  position: relative; border-radius: 22px; padding: clamp(16px, 3.4vw, 46px);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4px),
    radial-gradient(60% 80% at 96% 0%, rgba(140, 208, 203, 0.7) 0%, transparent 62%),
    radial-gradient(60% 80% at 0% 100%, var(--teal-deep) 0%, transparent 66%),
    linear-gradient(135deg, #1f7775, #145c5e);
  box-shadow: inset 0 0 0 1px rgba(11, 79, 82, 0.55), inset 0 0 0 8px rgba(255, 255, 255, 0.13);
}
.stage--blue {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4px),
    radial-gradient(60% 80% at 96% 0%, rgba(147, 200, 226, 0.7) 0%, transparent 62%),
    radial-gradient(60% 80% at 0% 100%, #123f5e 0%, transparent 66%),
    linear-gradient(135deg, #256f98, #1a5880);
  box-shadow: inset 0 0 0 1px rgba(18, 63, 94, 0.55), inset 0 0 0 8px rgba(255, 255, 255, 0.13);
}
.stage--pale {
  background:
    repeating-linear-gradient(0deg, rgba(21, 112, 111, 0.06) 0 1px, transparent 1px 4px),
    radial-gradient(70% 90% at 14% 0%, #ffffff 0%, transparent 60%),
    linear-gradient(135deg, #d5ece9, #b7dcd8);
  box-shadow: inset 0 0 0 1px rgba(21, 112, 111, 0.3), inset 0 0 0 8px rgba(255, 255, 255, 0.4);
}

/* ---------- How to fix a CV ---------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 60px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--wash); }
.flow li { padding: 26px 28px 30px; }
.flow li + li { border-left: 1px solid var(--rule); }
.flow .tag { margin-bottom: 14px; }
.flow h3 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 8px; }
.flow p { font-size: var(--fs-small); line-height: 1.6; color: var(--ink-soft); }
.scene { margin-top: 20px; }
.scene .stage { padding: clamp(12px, 2.2vw, 28px); }
.scene img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 12px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: var(--fs-small); }
.cap { margin-top: 14px; font-size: var(--fs-small); color: var(--ink-faint); }

/* ---------- Statement ---------- */
.say > .wrap { padding-top: clamp(64px, 9vw, 136px); padding-bottom: clamp(64px, 9vw, 136px); }
.say__in { max-width: 43em; margin: 0 auto; font-family: var(--mono); font-size: var(--fs-mono); line-height: 1.75; letter-spacing: -0.01em; }
.say__in p + p { margin-top: 1.5em; }
.hl { padding: 1px 7px 2px; border-radius: 5px; text-decoration: none; font-weight: 400; white-space: nowrap; transition: box-shadow 160ms var(--ease); }
.hl::before { content: attr(data-n); margin-right: 7px; font-size: var(--fs-micro); opacity: 0.75; }
.hl--amber { background: var(--amber-tint); color: #5c3200; }
.hl--blue { background: #d9ebf7; color: #123f5e; }
.hl--teal { background: var(--teal-pale); color: var(--teal-deep); }
.hl:hover { box-shadow: inset 0 -2px 0 currentColor; }

/* ---------- Repairs ---------- */
.repairs__grid { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 0 56px; align-items: start; margin-top: clamp(44px, 6vw, 80px); }
.rail { position: sticky; top: 28px; }
.rail .tag { margin-bottom: 14px; }
.rail ol { border-left: 2px solid var(--rule); }
.rail a {
  position: relative; display: block; padding: 9px 0 9px 18px; margin-left: -2px; border-left: 2px solid transparent;
  font-size: var(--fs-small); line-height: 1.35; color: var(--ink-faint); text-decoration: none;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.rail a b { display: block; font-family: var(--mono); font-size: var(--fs-micro); font-weight: 400; letter-spacing: 0.08em; }
.rail a:hover { color: var(--ink); border-left-color: var(--rule-strong); }
.rail a[aria-current="true"] { color: var(--ink); border-left-color: var(--teal); }

.chapter + .chapter { margin-top: clamp(72px, 9vw, 128px); }
.chapter__head { max-width: 760px; }
.chapter__head .tag { margin-bottom: 12px; }
.chapter__head p { margin-top: 14px; }
.chapter .stage { margin-top: 30px; }
.chapter__body { max-width: 760px; margin-top: 30px; }

/* Original / Revised control. Radios work from the keyboard and without JavaScript. */
.swap { display: none; }
.swap__set { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(6, 40, 43, 0.62); }
.stage--pale .swap__set { background: rgba(11, 79, 82, 0.86); }
.swap input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.swap label {
  display: block; min-width: 108px; padding: 10px 18px; border-radius: 9px; text-align: center; cursor: pointer;
  font-family: var(--mono); font-size: var(--fs-tag); line-height: 1.3; color: #fff;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.swap label:hover { background: rgba(255, 255, 255, 0.14); }
.swap input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(6, 40, 43, 0.4); }
.swap input:focus-visible + label { outline: 3px solid #fff; outline-offset: 2px; }
.swap__hint { display: block; margin: 0 0 10px; padding: 0; font-size: var(--fs-small); color: #fff; }
.stage--pale .swap__hint { color: var(--teal-deep); }

.ver + .ver { margin-top: 20px; }
.ver__tag {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
}
.ver__tag::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.is-revised .ver__tag { color: var(--teal); }

@supports selector(:has(*)) {
  .swap { display: block; margin-bottom: 22px; }
  .stage:has(.swap__o:checked) .is-revised,
  .stage:has(.swap__r:checked) .is-original { display: none; }
  .ver + .ver { margin-top: 0; }
  .ver { animation: ver-in 320ms var(--ease) both; }
}
@keyframes ver-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sheet {
  max-width: 760px; margin: 0 auto; padding: clamp(20px, 3.2vw, 40px) clamp(18px, 3.4vw, 44px) clamp(22px, 3.4vw, 42px);
  background: #fff; border-radius: 10px; color: #1b1c21; font-size: var(--fs-cv); line-height: 1.55;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2), 0 26px 50px -26px rgba(4, 36, 38, 0.7);
}
.cv__name { font-size: var(--fs-cv-name); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.cv__role { margin-top: 2px; color: #3d3e46; }
.cv__h {
  margin: 20px 0 10px; padding-bottom: 5px; border-bottom: 1px solid #1b1c21;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.cv__h:first-child { margin-top: 0; }
.cv__job { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 20px; margin-top: 12px; }
.cv__h + .cv__job { margin-top: 0; }
.cv__job b { font-weight: 600; }
.cv__date { white-space: nowrap; color: #3d3e46; }
.cv ul { margin-top: 5px; }
.cv li { position: relative; padding-left: 16px; }
.cv li + li { margin-top: 3px; }
.cv li::before { content: ""; position: absolute; left: 3px; top: 0.68em; width: 4px; height: 4px; border-radius: 50%; background: #1b1c21; }
.cv mark { padding: 1px 4px; margin: 0 -1px; border-radius: 3px; background: var(--amber-tint); color: inherit; }
.weak { text-decoration: underline dotted var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: var(--fs-tag); color: var(--ink-faint); }

/* The untidy original in the formatting chapter. Each rule here is one of the inconsistencies the text describes. */
.cv--mixed .h-a { border: 0; padding: 0; margin: 26px 0 4px; font-size: var(--fs-cv); letter-spacing: 0; text-decoration: underline; }
.cv--mixed .h-b { border: 0; padding: 0; margin: 9px 0 14px; font-size: var(--fs-h4); letter-spacing: 0; text-transform: none; }
.cv--mixed .h-c { border: 0; padding: 0; margin: 30px 0 2px; font-size: var(--fs-cv); font-weight: 400; font-style: italic; letter-spacing: 0; text-transform: none; }
.cv--mixed .cv__job { display: block; margin-top: 4px; }
.cv--mixed .cv__job--gap { margin-top: 22px; }
.cv--mixed .dash li::before { width: 7px; height: 1.5px; border-radius: 0; left: 1px; top: 0.78em; }
.cv--mixed .dash li + li { margin-top: 9px; }

/* Section order view */
.order li {
  display: grid; grid-template-columns: 28px 128px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline;
  padding: 13px 0; border-top: 1px solid var(--rule);
}
.order li:first-child { border-top: 0; padding-top: 0; }
.order__n { font-family: var(--mono); font-size: var(--fs-micro); color: var(--ink-faint); }
.order__sec { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.order__txt b { font-weight: 600; }
.flag { justify-self: end; padding: 2px 9px; border-radius: 999px; font-family: var(--mono); font-size: var(--fs-micro); white-space: nowrap; background: var(--amber-tint); color: #5c3200; }
.flag--quiet { background: #eef0f2; color: var(--ink-soft); }
.order__out { margin-top: 16px; padding: 12px 16px; border-radius: 8px; background: var(--wash); border: 1px dashed var(--rule-strong); font-size: var(--fs-small); color: var(--ink-soft); }
.order__out s { text-decoration-thickness: 1.5px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(56px, 7vw, 96px); padding: 26px 30px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--wash); }
.cta p { flex: 1 1 320px; max-width: 34em; }

/* ---------- UK decisions ---------- */
.uk-table { margin-top: clamp(36px, 5vw, 60px); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.uk { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--fs-small); line-height: 1.55; }
.uk caption { caption-side: bottom; padding: 14px 24px; border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--ink-faint); text-align: left; }
.uk th, .uk td { padding: 18px 24px; vertical-align: top; border-top: 1px solid var(--rule); }
.uk thead th { border-top: 0; background: var(--teal-pale); font-family: var(--mono); font-size: var(--fs-micro); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }
.uk tbody th { width: 23%; font-size: var(--fs-body); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.uk td:nth-child(2) { width: 38%; color: var(--ink); }
.uk td:nth-child(3) { color: var(--ink-soft); }
.uk td + td, .uk th + td { border-left: 1px solid var(--rule); }
.after { max-width: 760px; margin-top: clamp(40px, 5vw, 64px); }
.after h3 { margin-bottom: 14px; }
.after h3:not(:first-child) { margin-top: 1.9em; }

/* ---------- Finished file ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 60px); }
.cell { display: flex; flex-direction: column; padding: 30px 30px 28px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--wash); }
.cell .tag { margin-bottom: 14px; }
.cell h3 { margin-bottom: 10px; }
.cell > p { color: var(--ink-soft); }
.demo { margin-top: auto; padding-top: 26px; }
.demo__in { padding: 18px 20px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 14px 28px -20px rgba(11, 79, 82, 0.45); font-size: var(--fs-small); line-height: 1.5; }
.demo__cap { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.find li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 12px; padding: 9px 0; border-top: 1px solid var(--rule); }
.find li:first-child { border-top: 0; padding-top: 0; }
.find li:last-child { padding-bottom: 0; }
.find i { font-family: var(--mono); font-style: normal; font-size: var(--fs-micro); color: var(--teal); padding-top: 3px; }
.find b { display: block; font-weight: 600; }
.find span { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { padding: 4px 12px; border-radius: 999px; background: var(--teal-pale); color: var(--teal-deep); font-size: var(--fs-tag); font-weight: 500; }
.ask li { padding: 10px 14px; border-radius: 10px 10px 10px 2px; background: var(--purple-tint); color: #24146f; }
.ask li + li { margin-top: 8px; }
.files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.files li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--rule); }
.files i { flex: 0 0 auto; padding: 5px 7px; border-radius: 5px; font-family: var(--mono); font-style: normal; font-size: var(--fs-micro); line-height: 1; color: #fff; background: var(--teal); }
.files li:last-child i { background: var(--blue); }
.files span { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }

.next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; margin-top: clamp(48px, 6vw, 80px); }
.next h3 { margin-bottom: 14px; }
.next p + p { margin-top: 1.05em; }
.links { border-top: 1px solid var(--rule); }
.links li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.links a { font-weight: 600; }
.links p { margin-top: 2px; font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.faq__grid > div:first-child { position: sticky; top: 28px; }
.faq__grid h2 { max-width: 9em; }
.faq__grid > div:first-child p { margin-top: 18px; max-width: 22em; color: var(--ink-soft); }
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0;
  font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 30px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule-strong); font-family: var(--mono); font-weight: 400; font-size: var(--fs-small); color: var(--ink-soft);
  transition: background-color 160ms var(--ease);
}
.faq summary:hover::after { background: var(--teal-pale); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 40em; padding: 0 54px 26px 0; color: var(--ink-soft); }

/* ---------- Closing ---------- */
.close { text-align: center; }
.close > .wrap {
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #fff 84%),
    repeating-linear-gradient(0deg, rgba(21, 112, 111, 0.07) 0 1px, transparent 1px 6px),
    radial-gradient(70% 90% at 50% 100%, var(--teal-pale) 0%, #fff 78%);
}
.close h2 { max-width: 14em; margin: 0 auto; }
.close .wrap > p { max-width: 31em; margin: 18px auto 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--ink-soft); }
.foot > .wrap { padding-top: 44px; padding-bottom: 48px; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.foot__about { margin-top: 12px; max-width: 26em; }
.foot__h { margin-bottom: 8px; font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.foot li a { display: inline-block; padding: 5px 0; text-decoration: none; }
.foot li a:hover { text-decoration: underline; }
.foot__legal { margin-top: 36px; color: var(--ink-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --gutter: 36px; --rail: 176px; }
  .repairs__grid { gap: 0 40px; }
  .nav ul { gap: 4px 18px; }
  .head, .faq__grid, .next { gap: 20px 44px; }
}
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; order: 2; }
  .top__in > .btn { order: 1; }
  .top__in { flex-wrap: wrap; gap: 12px 14px; padding-top: 12px; padding-bottom: 12px; }
  .nav { flex: 1 1 100%; order: 3; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding-bottom: 6px; }
  .nav a { display: block; padding: 11px 0; border-top: 1px solid var(--rule); font-size: var(--fs-body); }

  .head, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .head h2, .faq__grid h2 { max-width: 16em; }
  .faq__grid > div:first-child { position: static; }
  .faq__grid > div:first-child p { max-width: 34em; }

  /* The chapter rail becomes a row of three links above the first chapter. */
  .repairs__grid { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; margin-bottom: 44px; }
  .rail ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 0; border-top: 2px solid var(--rule); }
  .rail a { margin: -2px 0 0; padding: 12px 12px 4px 0; border-left: 0; border-top: 2px solid transparent; }
  .rail a:hover { border-top-color: var(--rule-strong); }
  .rail a[aria-current="true"] { border-top-color: var(--teal); }
}
@media (max-width: 899px) {
  :root { --gutter: 28px; }
}
@media (max-width: 760px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .bento, .next { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .order li { grid-template-columns: 24px minmax(0, 1fr); }
  .order__sec, .order__txt, .flag { grid-column: 2; }
  .flag { justify-self: start; margin-top: 4px; }

  /* The decisions table becomes one card per decision. */
  .uk-table { border: 0; border-radius: 0; overflow: visible; }
  .uk { display: flex; flex-direction: column; }
  .uk thead { display: none; }
  .uk tbody, .uk tr, .uk th, .uk td { display: block; width: auto; }
  .uk tbody th, .uk td:nth-child(2) { width: auto; }
  .uk tr { margin-top: 12px; padding: 20px 20px 22px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--wash); }
  .uk tr:first-child { margin-top: 0; }
  .uk th, .uk td { padding: 0; border: 0; }
  .uk td + td, .uk th + td { border-left: 0; }
  .uk td { margin-top: 12px; }
  .uk td::before { content: attr(data-l); display: block; margin-bottom: 2px; font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
  .uk caption { display: block; order: 2; width: 100%; padding: 14px 0 0; border: 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; --fs-body: 1.0625rem; --fs-lead: 1.1875rem; --fs-mono: 1rem; --fs-cv: 0.875rem; --fs-cv-name: 1.25rem; }
  .top__in { min-height: 64px; gap: 12px 10px; }
  .top__in > .btn { padding: 9px 14px; }
  .nav-toggle { padding: 8px 13px; }
  .hero h1 { margin-top: 18px; }
  .hero__lead { margin-top: 20px; }
  .upload { margin-top: 30px; padding: 16px; }
  .stage { border-radius: 16px; }
  .chapter .stage, .scene .stage { margin-left: -8px; margin-right: -8px; }
  .swap__set { display: flex; }
  .swap label { flex: 1; min-width: 0; }
  .cv__job { display: block; }
  .cv__job span { display: block; }
  .cell { padding: 24px 20px 22px; }
  .files { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 22px 20px; }
  .cta .btn { width: 100%; }
  .rail a span { display: block; }
  .faq summary { padding: 18px 0; }
  .faq details p { padding-right: 0; }
}
@media (max-width: 380px) {
  .btn--small { padding: 9px 14px; }
  .brand { font-size: var(--fs-h4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ver { animation: none !important; }
  .btn, .upload, .nav a, .rail a, .swap label, .hl, .faq summary::after { transition: none; }
  .btn:hover { transform: none; }
}
@media print {
  .top, .upload, .foot, .close, .swap, .cta, .rail { display: none !important; }
  .ver { display: block !important; }
  .stage { background: none; box-shadow: none; padding: 0; }
}
