/* Portfolio Launch Kit — base styles.
   Per-site colours (chapter lines) live in the generated site.<hash>.css. */

@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/inter-display-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #F7F8FA;
  --paper-2: #EEF1F5;
  --ink: #14202B;
  --muted: #4F5D6B;
  --rule: #D5DCE4;
  --link: #2347BE;
  --focus: #2347BE;
  --now: #C77A12;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display", var(--sans);
  --measure: 64ch;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E141B; --paper-2: #16202A; --ink: #E6EBF1; --muted: #A2AFBC;
    --rule: #26333F; --link: #9DB4FF; --focus: #9DB4FF; --now: #F2B45A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E141B; --paper-2: #16202A; --ink: #E6EBF1; --muted: #A2AFBC;
  --rule: #26333F; --link: #9DB4FF; --focus: #9DB4FF; --now: #F2B45A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }
.draft { max-width: none; margin: 0; padding: .5rem var(--gutter); background: var(--now); color: #14202B; font-size: .875rem; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 1.5rem;
  max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: .75rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.brand { font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.top nav { margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.top nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.top nav a {
  display: block; padding: .5rem .7rem; border-radius: 999px; min-height: 44px; line-height: 28px;
  color: var(--muted); text-decoration: none; font-size: .9375rem; white-space: nowrap;
}
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current] { color: var(--ink); background: var(--paper-2); }
.theme { align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.theme .ring { fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme .half { fill: currentColor; }
@media (max-width: 760px) { .top nav { display: none; } .theme { margin-left: auto; } }

main { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
main:focus { outline: none; }
section { padding-block: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--rule); }
section.hero, section.route-wrap { border-top: 0; }

/* Type */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 10vw, 7.25rem); letter-spacing: -0.045em; line-height: .95; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: 2rem; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-family: var(--sans); font-size: 1.0625rem; letter-spacing: -0.005em; line-height: 1.35; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
.lede { font-size: clamp(1.25rem, 2.4vw, 1.625rem); line-height: 1.35; letter-spacing: -0.012em; max-width: 30ch; margin-top: 1.25rem; }
.lede-sm { font-size: 1.25rem; line-height: 1.4; }
.muted, .where, .org, .context, .when { color: var(--muted); }
.when, .yr { font-variant-numeric: tabular-nums; }

/* Hero */
.hero { display: grid; gap: 2.5rem; padding-top: clamp(2.5rem, 7vw, 5.5rem); padding-bottom: 1rem; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.35fr 1fr; align-items: end; } }
.portrait { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; }
.where { margin-top: .25rem; }
.summary p { color: var(--muted); }
.summary p:first-child { color: var(--ink); }

.print-contact { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.1rem;
  border: 1px solid var(--rule); border-radius: 999px; background: transparent;
  color: var(--ink); font: 600 .9375rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.ghost { border-style: dashed; }

/* Route map — the signature element */
.route-wrap { padding-top: 1rem; }
.route-wrap figure { margin: 0; }
.route { display: block; width: 100%; overflow: visible; }
.route-v { display: none; max-width: 420px; }
@media (max-width: 760px) { .route-h { display: none; } .route-v { display: block; } }
.route .seg { fill: none; stroke: var(--c); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.route .dot { fill: var(--paper); stroke: var(--c); stroke-width: 4; transition: r .15s ease; }
.route .now .dot { fill: var(--now); stroke: var(--now); }
.route .lead { stroke: var(--rule); stroke-width: 1.5; stroke-dasharray: 2 4; }
.route .lbl { fill: var(--ink); font: 600 13.5px/1 var(--sans); }
.route .yr { fill: var(--muted); font: 400 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; }
.route a { cursor: pointer; }
.route a:hover .dot, .route a:focus-visible .dot { stroke-width: 6; }
.route a:hover .lbl { text-decoration: underline; }
.route a:focus-visible { outline: none; }
.route a:focus-visible .lbl { fill: var(--link); text-decoration: underline; }
/* Draw-on, once. Without JS or with reduced motion, the line is simply there. */
.js .route .seg { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js .route-wrap.drawn .seg { animation-name: draw; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .route .seg { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
}
figcaption { margin-top: 1.5rem; color: var(--muted); font-size: .9375rem; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.legend li { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); }
.swatch { display: inline-block; width: 22px; height: 6px; border-radius: 3px; background: var(--c); }

/* Outcomes */
.outcomes { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem 3rem; }
@media (min-width: 760px) { .outcomes { grid-template-columns: 1fr 1fr; } }
.outcomes li { padding-left: 1.25rem; border-left: 3px solid var(--rule); }
.outcome { font-size: 1.1875rem; line-height: 1.45; margin-bottom: .35rem; }
.context { font-size: .9375rem; margin: 0; }

/* Experience */
.chapter { margin-top: 2.5rem; }
.chapter:first-of-type { margin-top: 0; }
.chapter > h3 { display: flex; align-items: center; gap: .75rem; padding-bottom: .75rem; }
.chapter > h3::before { content: ""; width: 28px; height: 7px; border-radius: 4px; background: var(--c); flex: none; }
.entry { display: grid; gap: .25rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); scroll-margin-top: 6rem; border-radius: 2px; }
@media (min-width: 760px) { .entry { grid-template-columns: 13rem 1fr; } }
.entry:focus { outline: none; }
.entry.is-target { box-shadow: inset 4px 0 0 var(--c); padding-left: 1rem; transition: padding .2s ease; }
.when { margin: 0; font-size: .9375rem; }
.what p { margin-bottom: .5rem; }
.org { margin: .2rem 0 .6rem; }
.points { margin: .25rem 0 0; padding-left: 1.1rem; max-width: var(--measure); }
.points li { margin-bottom: .35rem; }
.points li::marker { color: var(--c); }

/* Skills */
.skills { display: grid; gap: 1.5rem 3rem; margin: 0; }
@media (min-width: 760px) { .skills { grid-template-columns: repeat(2, 1fr); } }
.skills dt { font-weight: 600; margin-bottom: .5rem; }
.skills dd { margin: 0; }
.skills ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.skills li { padding: .3rem .7rem; border: 1px solid var(--rule); border-radius: 6px; font-size: .9375rem; }

/* Education & certifications */
#education h3 { margin: 2.5rem 0 1rem; }
.certs { padding-left: 1.1rem; }
.certs li { margin-bottom: .4rem; }

/* Recommendations */
.rec { margin: 0 0 2.5rem; max-width: 46rem; }
.rec blockquote { margin: 0; }
.rec blockquote p { font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.5; letter-spacing: -0.01em; }
.rec figcaption { display: flex; flex-direction: column; margin-top: .5rem; font-size: .9375rem; }
.who { font-weight: 600; color: var(--ink); }


/* Organisation (company / investor) hero */
.hero-org { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 960px) { .hero-org { grid-template-columns: 1.55fr 1fr; align-items: end; } }
.hero-org h1 { font-size: clamp(2.5rem, 6.4vw, 5.25rem); letter-spacing: -0.04em; line-height: 1; max-width: 16ch; }
.hero-org .lede { max-width: 44ch; }
.announce { margin: 1.5rem 0 0; font-weight: 600; }
.announce a { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--ink); text-decoration-color: var(--now); text-decoration-thickness: 2px; }
.announce a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--now); flex: none; }
.proof { border-left: 3px solid var(--now); padding: .25rem 0 .25rem 1.5rem; }
.proof-h { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0 0 1.25rem; color: var(--muted); }
.proof ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 1.25rem; }
.proof li { display: grid; gap: .15rem; }
.pv { font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pt { color: var(--muted); font-size: .9688rem; max-width: 34ch; }
.byline { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; color: var(--muted); }
.byline .portrait { width: 48px; height: 48px; margin: 0; }
.founder { display: grid; gap: 1.5rem 3rem; margin-bottom: 2.5rem; }
@media (min-width: 960px) { .founder { grid-template-columns: 1fr 1fr; } }
.founder-name { font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.founder .lede { margin-top: .75rem; }
.route-wrap > h2 { margin-bottom: 1.5rem; }

/* Custom sections */
.custom .intro { margin-bottom: 2.5rem; max-width: 48ch; }
.block + .block { margin-top: 3rem; }
.block > h3 { margin-bottom: 1.25rem; }
.note { margin-top: 2.5rem; font-size: .875rem; color: var(--muted); max-width: 72ch; }

.figures { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem 3rem; }
@media (min-width: 760px) { .figures { grid-template-columns: repeat(2, 1fr); } }
.fig p { margin: 0; }
.fig-v { font-family: var(--display); font-weight: 600; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.fig-l { margin-top: .5rem !important; font-size: 1.0625rem; max-width: 38ch; }
.fig-s { margin-top: .5rem !important; font-size: .8125rem; color: var(--muted); }
.track { display: block; height: 10px; margin-top: .9rem; border-radius: 5px; background: var(--paper-2); overflow: hidden; max-width: 28rem; }
.bar { display: block; height: 100%; border-radius: 5px; background: var(--ink); }
.fig.hl .bar { background: var(--now); }
.fig.hl .fig-v { color: var(--now); }

.statements { display: grid; gap: 1.75rem 3rem; margin: 0; }
@media (min-width: 760px) { .statements { grid-template-columns: repeat(2, 1fr); } }
.statements dt { font-weight: 600; font-size: 1.125rem; margin-bottom: .35rem; }
.statements dd { margin: 0; color: var(--muted); max-width: 46ch; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1.5rem 2rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.steps h4 { margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .9688rem; margin: 0; }

.ticks { padding-left: 1.2rem; margin: 0; max-width: var(--measure); }
.ticks li { margin-bottom: .6rem; }
.ticks li::marker { color: var(--now); }

/* Footer */
.foot { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 2rem var(--gutter) 3rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .875rem; }
.foot p { margin: 0; }

/* 404 */
.nf main { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.nf h1 { font-size: clamp(2.25rem, 6vw, 4rem); }

/* Print: the page becomes a clean one-column CV. */
@media print {
  @page { margin: 16mm 16mm; }
  :root { --paper: #fff; --ink: #000; --muted: #333; --rule: #bbb; --link: #000; }
  body { font-size: 10.5pt; line-height: 1.45; background: #fff; }
  .top, .skip, .draft, .actions, .route-wrap figure, .custom, .byline, .proof, .foot p:last-child, .theme { display: none !important; }
  main { padding: 0; max-width: none; }
  section { padding-block: 10pt; border-top: .5pt solid #bbb; }
  .hero { display: block; padding-top: 0; }
  h1 { font-size: 26pt; } .lede { font-size: 13pt; max-width: none; margin-top: 4pt; }
  h2 { font-size: 14pt; margin-bottom: 6pt; } h3 { font-size: 11.5pt; }
  .entry { grid-template-columns: 9rem 1fr; padding: 5pt 0; break-inside: avoid; }
  .outcomes { grid-template-columns: 1fr 1fr; gap: 6pt 18pt; }
  .skills li { border: 0; padding: 0; } .skills li:not(:last-child)::after { content: ","; }
  a { text-decoration: none; }
  .print-contact { display: block; margin-top: 6pt; }
  .hero a[href^="https"]::after, #contact a[href^="https"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
