/* Liam Lehmann. Two colours taken from his headshot: the olive wall behind
   him and the navy of his polo. Photography carries the page; the type is
   Bricolage for headings and Geist for reading. The one orchestrated moment
   is the hero: three photo bands open one after another. */
@font-face { font-family: "Bricolage"; src: url(/assets/fonts/Bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/assets/fonts/Geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0a2b52;
  --navy-2: #163f70;
  --navy-deep: #061c37;
  --olive-top: #a69f6a;
  --olive: #9c9765;
  --olive-low: #8f8b5e;
  --olive-ink: #5c5930;
  --tint: #e9e8dc;
  --base: #fafaf7;
  --text: #1b2531;
  --text-2: #4a5562;
  --line: #d9d8cd;
  --cream: #f4f1e4;
  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--base); color: var(--text); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }
figure { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 4px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 247, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -0.035em; color: var(--navy); min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 13px; border-radius: 6px; color: var(--text-2); }
.nav a:hover { color: var(--navy); background: var(--tint); }
.nav a[aria-current="page"] { color: var(--navy); }
.nav .cta-link { background: var(--navy); color: #fff; margin-left: 10px; padding: 10px 16px; }
.nav .cta-link:hover { background: var(--navy-2); color: #fff; }
.menu { display: none; font: 600 15px/1 var(--body); background: var(--navy); color: #fff; border: 0; border-radius: 6px; min-height: 44px; padding: 0 18px; cursor: pointer; }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 6px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; transition: background .2s; }
.btn:hover { background: var(--navy-2); }
.btn--light { background: var(--cream); color: var(--navy); }
.btn--light:hover { background: #fff; }
.text-link { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--olive); text-decoration-thickness: 2px; text-underline-offset: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.text-link:hover { text-decoration-color: currentColor; }
.text-link--light { color: var(--cream); }

/* Hero: his headshot, full bleed and uncut, with his name once, large, over
   the navy of his polo. Beside it three bands open in turn on load; after
   that each one opens when you point at it or tap it, showing the detail. */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); height: clamp(580px, calc(100svh - 64px), 800px); background: var(--navy-deep); gap: 3px; }
.hero-me { position: relative; overflow: hidden; background: var(--olive); }
.hero-me img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.02); animation: settle 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1.02); } }
.hero-me::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(180deg, rgba(6, 28, 55, 0) 0%, rgba(6, 28, 55, .55) 60%, rgba(6, 28, 55, .85) 100%); }
.hero-me h1 { position: absolute; z-index: 2; left: max(24px, calc((100vw - var(--wrap)) / 2)); bottom: clamp(22px, 3vw, 40px); color: #fff; font-size: clamp(56px, 6.6vw, 112px); line-height: .86; letter-spacing: -0.055em; }
.hero-bands { display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.band { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; display: block; color: #fff; text-decoration: none; transition: flex-grow .55s cubic-bezier(.65, 0, .25, 1); animation: band-open .8s cubic-bezier(.65, 0, .25, 1) both; outline-offset: -4px; }
.band.is-open { flex-grow: 2.1; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.band.is-open > img { transform: scale(1.04); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 28, 55, .88) 0%, rgba(6, 28, 55, .6) 48%, rgba(6, 28, 55, .15) 100%); pointer-events: none; }
.band-text { position: absolute; z-index: 2; left: clamp(22px, 3.4vw, 52px); right: 24px; bottom: clamp(16px, 2.2vw, 28px); display: block; }
.band-text strong { display: block; font: 800 clamp(30px, 4vw, 62px)/1 var(--display); letter-spacing: -0.04em; animation: band-text .6s ease both; }
.band-more { display: block; max-width: 44ch; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .88); max-height: 0; opacity: 0; overflow: hidden; transform: translateY(6px); transition: max-height .5s ease, opacity .35s ease, transform .45s ease, margin .45s ease; }
.band.is-open .band-more { max-height: 6em; opacity: 1; transform: none; margin-top: 12px; }
.band--build { background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-2) 100%); }
.band--build::after { display: none; }
.band-shot { position: absolute; z-index: 1; right: 4%; top: 50%; width: min(40%, 400px); border-radius: 8px; overflow: hidden; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .18); transform: translateY(-46%) rotate(-3deg); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.band-shot img { width: 100%; height: auto; display: block; }
.band--build.is-open .band-shot { transform: translateY(-50%) rotate(0deg) scale(1.03); }
.band:nth-child(1), .band:nth-child(1) strong { animation-delay: .1s; }
.band:nth-child(1) strong { animation-delay: .45s; }
.band:nth-child(2) { animation-delay: .35s; } .band:nth-child(2) strong { animation-delay: .7s; }
.band:nth-child(3) { animation-delay: .6s; } .band:nth-child(3) strong { animation-delay: .95s; }
@keyframes band-open { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes band-text { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.logo-status { display: none; }
.home .logo { position: relative; }
.home .logo-status, .home .logo-name { transition: opacity .35s ease, transform .35s ease; }
.home .logo-status { display: inline-flex; align-items: center; gap: 10px; position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 16px/1 var(--body); letter-spacing: 0; color: var(--navy); }
.home .logo-status i { width: 9px; height: 9px; border-radius: 50%; background: #2f8a5b; box-shadow: 0 0 0 4px rgba(47, 138, 91, .16); }
.home .top:not(.scrolled) .logo-name { opacity: 0; transform: translateY(6px); }
.home .top.scrolled .logo-status { opacity: 0; transform: translateY(-120%); pointer-events: none; }

/* Intro */
.intro { padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.intro-big { font: 800 clamp(32px, 3.8vw, 52px)/1.06 var(--display); letter-spacing: -0.035em; color: var(--navy); margin: 0 0 16px; max-width: 18ch; }
.intro-sub { font-size: 20px; color: var(--text-2); margin: 0; }
.facts-list { margin: 0; }
.facts-list div { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
.facts-list div:last-child { border-bottom: 1px solid var(--line); }
.facts-list dt { font-size: 14px; font-weight: 600; color: var(--olive-ink); padding-top: 2px; }
.facts-list dd { margin: 0; font-size: 16.5px; line-height: 1.45; }

/* Sections */
.section { padding: 100px 0; }
.section > .wrap > h2, .experience h2, .skills h2 { font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -0.04em; margin-bottom: 44px; max-width: 26ch; }

.roles { background: var(--tint); }
.role-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.role-cols h3 { font-size: 28px; margin-bottom: 12px; padding-top: 18px; border-top: 3px solid var(--navy); }
.role-cols p { color: var(--text-2); margin: 0; font-size: 17px; }
.remote-proof { margin: 64px 0 0; max-width: 58ch; font: 600 clamp(20px, 2vw, 25px)/1.4 var(--display); letter-spacing: -0.015em; color: var(--navy); }

/* Resume Insite */
.built { background: var(--navy); color: var(--cream); overflow: hidden; }
.built h2 { color: #fff; font-size: clamp(36px, 4.2vw, 56px); letter-spacing: -0.04em; margin-bottom: 20px; }
.built-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; }
.shots { position: relative; padding-bottom: 22%; }
.shot { border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .14); background: #fff; }
.shot img { width: 100%; height: auto; }
.shot--main { width: 88%; }
.shot--a { position: absolute; right: 0; bottom: 4%; width: 50%; }
.shot--b { position: absolute; left: 8%; bottom: 0; width: 42%; }
.built-lede { font-size: 19px; color: rgba(244, 241, 228, .82); max-width: 50ch; }
.systems { list-style: none; margin: 26px 0 0; padding: 0; }
.systems li { padding: 13px 0; border-top: 1px solid rgba(244, 241, 228, .16); color: rgba(244, 241, 228, .78); font-size: 16px; }
.systems b { color: #fff; font-weight: 600; }

/* Process flows */
.flow { background: #fff; }
.flow-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 44px; }
.flow-head h2 { margin: 0 !important; }
.flow-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-tabs button { font: 600 15px/1 var(--body); color: var(--text-2); background: var(--tint); border: 0; border-radius: 6px; padding: 12px 16px; min-height: 44px; cursor: pointer; }
.flow-tabs button:hover { color: var(--navy); }
.flow-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.flow-panel[hidden] { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 20px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 26px; }
.steps li::before { content: ""; position: absolute; left: 0; right: -20px; top: 0; height: 4px; background: var(--line); }
.steps li:last-child::before { right: 0; }
.steps li::after { content: ""; position: absolute; left: 0; right: -20px; top: 0; height: 4px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.steps li:last-child::after { right: 0; }
.steps li.lit::after { transform: scaleX(1); }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps h3::before { content: counter(s) ". "; color: var(--olive-ink); }
.steps p { font-size: 15px; color: var(--text-2); margin: 0; }
.steps .node { display: none; }

/* Experience */
.job { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; padding: 44px 0; border-top: 1px solid var(--line); align-items: start; }
.job:last-child { border-bottom: 1px solid var(--line); }
.job-img { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint); }
.job-img img { width: 100%; height: 100%; object-fit: cover; }
.when { font-size: 14.5px; font-weight: 600; color: var(--olive-ink); margin: 0 0 6px; }
.job h3 { font-size: clamp(23px, 2.2vw, 29px); margin-bottom: 16px; max-width: 30ch; }
.job ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.job li { position: relative; padding-left: 20px; color: var(--text-2); }
.job li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--olive); }

/* Education and water polo */
.school { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; background: var(--navy-deep); }
.photo-panel { position: relative; min-height: 560px; overflow: hidden; margin: 0; }
.photo-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 28, 55, 0) 35%, rgba(6, 28, 55, .9) 100%); }
.photo-copy { position: absolute; z-index: 1; left: clamp(24px, 4vw, 52px); right: clamp(24px, 4vw, 52px); bottom: clamp(24px, 4vw, 48px); color: #fff; }
.photo-copy h2 { color: #fff; font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 12px; }
.photo-copy p { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .88); }

/* Skills */
.skill-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.skill-cols h3 { font-size: 20px; margin-bottom: 8px; padding-top: 14px; border-top: 3px solid var(--olive); }
.skill-cols p { color: var(--text-2); margin: 0; }

/* Contact */
.contact { background: var(--navy); color: var(--cream); padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: center; }
.contact-me { width: 240px; height: 240px; object-fit: cover; border-radius: 8px; }
.contact h2 { color: #fff; font-size: clamp(38px, 5vw, 68px); letter-spacing: -0.045em; margin-bottom: 14px; max-width: 16ch; }
.contact p { color: rgba(244, 241, 228, .8); font-size: 19px; margin-bottom: 18px; }
.mail { font: 600 clamp(19px, 2.4vw, 28px)/1.3 var(--body); color: #fff; text-decoration: underline; text-decoration-color: var(--olive); text-decoration-thickness: 3px; text-underline-offset: 8px; word-break: break-all; }
.mail:hover { text-decoration-color: #fff; }

.foot { background: var(--navy-deep); color: rgba(244, 241, 228, .7); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0; }
.foot a { color: #fff; }

/* Case study page */
.eyebrow { font-size: 15px; font-weight: 600; color: var(--olive-ink); margin: 0 0 12px; }
.cs-hero { padding: 72px 0 24px; }
.cs-hero h1 { font-size: clamp(54px, 8.4vw, 112px); letter-spacing: -0.05em; }
.cs-hero .lede { font-size: 20px; margin-top: 22px; max-width: 62ch; color: var(--text-2); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 44px 0 0; border-top: 3px solid var(--navy); }
.facts div { padding: 18px 20px 0 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-size: 14px; font-weight: 600; color: var(--olive-ink); margin-bottom: 6px; }
.facts dd { margin: 0; font: 700 20px/1.25 var(--display); letter-spacing: -0.015em; color: var(--navy); }
.cs-shot { padding: 40px 0 10px; }
.browser { border-radius: 8px; overflow: hidden; background: var(--navy-deep); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(6, 28, 55, .45); }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.browser .bar span { margin-left: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.browser img { width: 100%; height: auto; }
.chapter { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
.chapter:nth-of-type(even) .chapter-media { order: -1; }
.chapter h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 18px; letter-spacing: -0.035em; }
.chapter p { color: var(--text-2); }
.chapter ul { padding: 0; margin: 18px 0 0; list-style: none; display: grid; gap: 10px; }
.chapter ul > li { position: relative; padding-left: 20px; color: var(--text-2); }
.chapter ul > li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--olive); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.pair figcaption { font-size: 13.5px; color: var(--text-2); margin-top: 8px; }
.loop { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.loop ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: l; }
.loop li { counter-increment: l; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px; border-radius: 6px; transition: background .35s; }
.loop li::before { content: counter(l); font: 700 15px/36px var(--display); text-align: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--navy); transition: background .35s, color .35s; }
.loop li b { display: block; font: 700 18px/1.3 var(--display); color: var(--navy); }
.loop li span { color: var(--text-2); font-size: 15px; }
.loop li.on { background: var(--tint); }
.loop li.on::before { background: var(--navy); color: #fff; }
.loop .back { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--olive-ink); }
.meter { background: var(--navy); color: var(--cream); border-radius: 8px; padding: 28px; }
.meter h3 { color: #fff; font-size: 24px; }
.meter .row { display: flex; justify-content: space-between; font-size: 14px; color: rgba(244, 241, 228, .75); margin: 20px 0 8px; }
.meter .track { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.meter .track i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--olive); transition: width 1.4s cubic-bezier(.2, .7, .2, 1); }
.meter.in .track i { width: var(--w); }
.meter p { color: rgba(244, 241, 228, .7); font-size: 14.5px; margin: 18px 0 0; }
.flow-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px 22px; }
.flow-card .flow-head { margin-bottom: 22px; }
.flow-card .flow-head p { margin: 0; font-weight: 600; color: var(--navy); }
.chapter .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
.chapter .steps li { padding: 12px 0 12px 22px; }
.chapter .steps li::before, .chapter .steps li::after { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
.chapter .steps li::after { transform: scaleY(0); transform-origin: top; }
.chapter .steps li.done::after, .chapter .steps li.on::after { transform: scaleY(1); }
.chapter .steps h3 { font-size: 18px; margin-bottom: 2px; }
.chapter .steps p { font-size: 14.5px; }
.takeaway { background: var(--navy); color: var(--cream); border-radius: 8px; padding: 52px 48px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; margin: 40px 0 100px; }
.takeaway .eyebrow { color: var(--olive-top) !important; }
.takeaway h2 { color: #fff; font-size: clamp(32px, 4vw, 50px); }
.takeaway ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.takeaway li { padding-left: 22px; position: relative; font-size: 17px; }
.takeaway li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--olive); }
.takeaway .btns { display: flex; margin-top: 26px; }
.takeaway .btn { background: var(--cream); color: var(--navy); }
.takeaway .btn svg { display: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Options research */
.options-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.options h2 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -0.04em; margin-bottom: 20px; max-width: 18ch; }
.options-lede { font-size: 19px; color: var(--text-2); max-width: 52ch; }
.options-steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: o; }
.options-steps li { counter-increment: o; position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line); color: var(--text-2); }
.options-steps li:last-child { border-bottom: 1px solid var(--line); }
.options-steps li::before { content: counter(o); position: absolute; left: 0; top: 13px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 14px/30px var(--display); text-align: center; }
.options-steps b { color: var(--navy); font-weight: 600; }
.signal { margin: 0; }
.signal-card { position: relative; background: var(--navy-deep); border-radius: 10px; padding: 28px 22px 22px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(6, 28, 55, .7); }
.signal-chart { width: 100%; height: auto; display: block; }
.signal-chart .lvl { stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; stroke-dasharray: 6 8; }
.signal-chart .lvl--hot { stroke: var(--olive-top); stroke-width: 2; }
.signal-chart .lvl-tag { fill: rgba(255, 255, 255, .5); font: 500 13px var(--body); }
.signal-chart .lvl-tag--hot { fill: var(--olive-top); }
.signal-chart .price { fill: none; stroke: #fff; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.signal-chart .touch { fill: var(--olive-top); opacity: 0; transform-box: fill-box; transform-origin: center; }
.signal.play .price { animation: draw-line 2.6s cubic-bezier(.45, .05, .35, 1) forwards; }
.signal.play .touch { animation: ping 1.4s ease-out 2.05s 3 both; }
.text-bubble { position: absolute; left: 22px; top: 22px; max-width: 250px; background: #fff; color: var(--text); border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: 15px; line-height: 1.4; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom left; }
.text-bubble .from { display: block; font-size: 12.5px; font-weight: 700; color: var(--olive-ink); margin-bottom: 2px; }
.signal.play .text-bubble { animation: bubble .5s cubic-bezier(.2, .9, .3, 1.2) 2.35s forwards; }
.signal figcaption { margin-top: 12px; font-size: 14px; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.replay { font: 600 14px/1 var(--body); color: var(--navy); background: var(--tint); border: 0; border-radius: 6px; padding: 10px 14px; min-height: 40px; cursor: pointer; }
.replay:hover { background: var(--line); }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { opacity: 1; transform: scale(.6); } 70% { opacity: .9; transform: scale(1.6); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes bubble { to { opacity: 1; transform: none; } }

/* Experience: on wide screens one photo stays in view and changes with the
   role you are reading. */
.exp-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.exp-stage { position: sticky; top: 96px; aspect-ratio: 4 / 5; max-height: calc(100vh - 130px); border-radius: 8px; overflow: hidden; background: var(--tint); }
.exp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.exp-stage img.on { opacity: 1; transform: none; }
.exp-list .job { grid-template-columns: minmax(0, 1fr); padding: 40px 0; opacity: .45; transition: opacity .4s ease; }
.exp-list .job.active { opacity: 1; }
.exp-list .job:first-child { border-top: 0; padding-top: 0; }
.exp-list .job-img { display: none; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.lost h1 { font-size: clamp(80px, 16vw, 200px); }

/* Scroll reveals are switched off on purpose: the hero is the one moment. */
.reveal { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .intro-grid, .built-grid, .chapter, .takeaway, .options-grid, .exp-grid { grid-template-columns: minmax(0, 1fr); }
  .options-grid { gap: 40px; }
  .exp-stage { display: none; }
  .exp-list .job { opacity: 1; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); padding: 36px 0; }
  .exp-list .job:first-child { border-top: 1px solid var(--line); padding-top: 36px; }
  .exp-list .job-img { display: block; }
  .intro-grid { gap: 40px; }
  .role-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { padding: 14px 0 14px 24px; }
  .steps li::before, .steps li::after { left: 0; right: auto !important; top: 0; bottom: 0; width: 3px; height: auto; }
  .steps li::after { transform: scaleY(0); transform-origin: top; }
  .steps li.lit::after { transform: scaleY(1); }
  .skill-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter:nth-of-type(even) .chapter-media { order: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 820px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .menu { display: inline-flex; align-items: center; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--base); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav .cta-link { margin: 8px 0 0; text-align: center; }
  .hero { grid-template-columns: minmax(0, 1fr); height: auto; }
  .hero-me { height: 460px; }
  .hero-me h1 { left: 16px; font-size: 60px; }
  .band { flex: none; height: 132px; transition: height .5s cubic-bezier(.65, 0, .25, 1); }
  .band.is-open { height: 230px; }
  .band-text strong { font-size: 32px; }
  .band-more { font-size: 15.5px; }
  .band-text { left: 16px; right: 16px; bottom: 14px; }
  .band-shot { width: 46%; right: -4%; }
  .band--build .band-text { right: 46%; }
  .exp-list .job { grid-template-columns: minmax(0, 1fr); }
  .intro { padding: 44px 0 52px; }
  .section { padding: 72px 0; }
  .job { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 32px 0; }
  .job-img { aspect-ratio: 16 / 9; }
  .school { grid-template-columns: minmax(0, 1fr); }
  .photo-panel { min-height: 440px; }
  .contact { padding: 72px 0; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-me { width: 120px; height: 120px; }
  .pair, .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div + div { padding-left: 0; border-left: 0; }
  .takeaway { padding: 34px 22px; }
  .shots { padding-bottom: 30%; }
}
@media (max-width: 520px) {
  .skill-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .facts-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .steps li::after { transform: none !important; }
  .signal .price { stroke-dashoffset: 0; }
  .signal .text-bubble { opacity: 1; transform: none; }
  .band-more { transition: none; }
  .meter .track i { width: var(--w); }
}
