:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
body{margin:0}
img{max-width:100%}
[hidden]{display:none!important}
/* Layout: a highway drive. Road-sign hero, then the career as a route with year markers down a centre line, ending at the contact exit. */
:root {
  --bg: #eef0ec;
  --surface: #ffffff;
  --fg: #16201b;
  --muted: #56625b;
  --line: #cfd6d0;
  --sign: #0d5c3d;        /* highway-sign green */
  --sign-fg: #ffffff;
  --amber: #c98a12;       /* lane-marking amber */
  --amber-soft: #f3e3bf;
  --display: "Overpass", "Highway Gothic", "Arial Narrow", system-ui, sans-serif;
  --body: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Overpass Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step--1: .8125rem; --step-0: 1rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: 2.2rem; --step-4: clamp(2.6rem, 8vw, 5.4rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111613; --surface: #19201c; --fg: #e6ece7; --muted: #9aa79f; --line: #2c3631;
    --sign: #1f7a54; --sign-fg: #f4fbf6; --amber: #e8b04a; --amber-soft: #3a2f17; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111613; --surface: #19201c; --fg: #e6ece7; --muted: #9aa79f; --line: #2c3631;
  --sign: #1f7a54; --sign-fg: #f4fbf6; --amber: #e8b04a; --amber-soft: #3a2f17; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.05; }
p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
nav.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { font-family: var(--display); font-weight: 900; letter-spacing: .02em; text-decoration: none; font-size: var(--step-1); }
.brand span { color: var(--amber); }
nav.top ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; font-size: var(--step--1); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
nav.top ul a { text-decoration: none; color: var(--muted); }
nav.top ul a:hover { color: var(--fg); }
@media (max-width: 640px) { nav.top ul { display: none; } }

/* hero */
header.hero .wrap { padding-block: clamp(40px, 8vw, 88px) clamp(32px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { header.hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--step-4); font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; }
.hero h1 .last { color: var(--sign); display: block; }
.hero .lede { margin-top: 20px; font-size: var(--step-1); color: var(--muted); max-width: 34ch; font-weight: 300; }
.hero .lede strong { color: var(--fg); font-weight: 600; }
.cta-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; padding: 12px 18px; border-radius: 6px; border: 2px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--sign); border-color: var(--sign); color: var(--sign-fg); }

/* the road sign */
.sign {
  background: var(--sign); color: var(--sign-fg);
  border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.55);
  transform: rotate(-1.2deg);
}
.sign-inner { border: 3px solid var(--sign-fg); border-radius: 10px; padding: 22px 24px 20px; display: grid; gap: 14px; }
.sign-route { display: flex; align-items: center; gap: 14px; }
.shield { flex: none; width: 64px; height: 70px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--sign); background: var(--sign-fg); clip-path: path("M32 0 C44 6 56 6 64 4 L64 34 C64 54 48 64 32 70 C16 64 0 54 0 34 L0 4 C8 6 20 6 32 0 Z"); }
.sign-route p { font-family: var(--display); font-weight: 800; font-size: var(--step-2); line-height: 1.05; text-transform: uppercase; }
.sign-rows { display: grid; gap: 8px; border-top: 2px solid color-mix(in srgb, var(--sign-fg) 40%, transparent); padding-top: 14px; }
.sign-row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--display); font-weight: 600; font-size: var(--step-1); }
.sign-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 800; }
.sign-foot { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

/* lane divider */
.lane { height: 6px; background: repeating-linear-gradient(90deg, var(--amber) 0 44px, transparent 44px 76px); opacity: .9; }

section { padding-block: clamp(48px, 8vw, 96px); }
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head h2 { font-size: var(--step-3); font-weight: 800; text-transform: uppercase; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid .prose { display: grid; gap: 16px; font-size: var(--step-1); font-weight: 300; max-width: 60ch; }
.about-grid .prose strong { font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.fact { background: var(--surface); padding: 18px; display: grid; gap: 2px; }
.fact b { font-family: var(--display); font-size: var(--step-3); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: var(--sign); }
.fact span { font-size: var(--step--1); color: var(--muted); }

/* experience: route */
.route { position: relative; display: grid; gap: 28px; }
.route::before { content: ""; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 4px; background: repeating-linear-gradient(180deg, var(--amber) 0 18px, transparent 18px 30px); }
.stop { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 40px; position: relative; }
.marker { font-family: var(--mono); font-weight: 600; font-size: var(--step--1); text-align: right; padding-top: 6px; color: var(--muted); line-height: 1.3; }
.marker b { display: block; font-family: var(--display); font-size: var(--step-1); font-weight: 900; color: var(--fg); }
.stop::after { content: ""; position: absolute; left: 80px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 4px solid var(--sign); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 12px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.card h3 { font-size: var(--step-2); font-weight: 800; }
.card .org { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); letter-spacing: .04em; }
.card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--fg); }
.card li::marker { color: var(--amber); }
.card li strong { font-weight: 600; }
.card.current { border-color: var(--sign); box-shadow: inset 0 0 0 1px var(--sign); }
.chip { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: 3px 8px; border-radius: 4px; background: var(--amber-soft); color: var(--fg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: .75rem; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
@media (max-width: 560px) {
  .route::before { left: 6px; }
  .stop { grid-template-columns: 1fr; gap: 8px; padding-left: 32px; }
  .stop::after { left: 0; top: 4px; }
  .marker { text-align: left; padding-top: 0; }
  .marker b { display: inline; margin-right: 8px; }
}

/* terminal skills */
.term { background: #0f1512; color: #d9e4dc; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.term-bar { display: flex; gap: 6px; padding: 10px 14px; background: #1a221d; align-items: center; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b4741; }
.term-bar span { margin-left: 8px; font-family: var(--mono); font-size: .75rem; color: #8fa197; }
.term pre { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; margin: 0; padding: 18px 20px 22px; font-family: var(--mono); font-size: .875rem; line-height: 1.75; overflow-x: auto; }
.term .p { color: #e8b04a; }
.term .h { color: #8fa197; }
.term .ok { color: #6fd29e; }

/* pubs, edu */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.pub { text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.pub:hover { transform: translateY(-3px); border-color: var(--sign); }
.pub h3 { font-size: var(--step-1); font-weight: 800; line-height: 1.2; }
.pub .meta { font-size: var(--step--1); color: var(--muted); }
.pub .go { font-family: var(--mono); font-size: var(--step--1); color: var(--sign); text-transform: uppercase; letter-spacing: .08em; }
.list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row .t { font-weight: 600; }
.row .s { color: var(--muted); font-size: var(--step--1); grid-column: 1; }
.row .r { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); grid-row: 1; grid-column: 2; text-align: right; font-variant-numeric: tabular-nums; }
.row .r b { color: var(--sign); font-family: var(--display); font-size: var(--step-1); font-weight: 900; }
.subhead { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--step-1); margin: 0 0 8px; }
.stack { display: grid; gap: 40px; }

/* road */
.road { background: var(--sign); color: var(--sign-fg); }
.road .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .road .wrap { grid-template-columns: 1fr; } }
.road .eyebrow { color: color-mix(in srgb, var(--sign-fg) 75%, transparent); }
.road h2 { font-size: var(--step-3); font-weight: 900; text-transform: uppercase; margin-top: 10px; }
.road p { margin-top: 16px; font-size: var(--step-1); font-weight: 300; max-width: 46ch; }
.road .btn { border-color: var(--sign-fg); color: var(--sign-fg); }
.road .btn.solid { background: var(--sign-fg); color: var(--sign); }
.odo { border: 3px solid var(--sign-fg); border-radius: 12px; padding: 22px; display: grid; gap: 14px; font-family: var(--mono); }
.odo-num { display: flex; gap: 4px; }
.odo-num span { flex: 1; text-align: center; font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 600; background: color-mix(in srgb, #000 30%, transparent); border-radius: 6px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.odo-num span.last { background: var(--amber); color: #1a1407; }
.odo small { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }


/* ride log */
.rides-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.rides-head .sec-head { margin: 0; }
.legend { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }
.year { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 28px; border-top: 2px dashed var(--line); }
.year > h3 { font-family: var(--display); font-weight: 900; font-size: var(--step-3); color: var(--amber); line-height: 1; }
@media (max-width: 640px) { .year { grid-template-columns: 1fr; gap: 14px; } .year > h3 { position: static; } }
.ride-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.ride { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }


.ride-photo { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--sign); color: var(--sign-fg); display: grid; align-content: end; padding: 16px; overflow: hidden; }

@media (max-width: 560px) { .ride-photo { aspect-ratio: 4 / 3; } }
.ride-photo::before { content: ""; position: absolute; inset: auto -10% 18% -10%; height: 5px; background: repeating-linear-gradient(90deg, var(--amber) 0 26px, transparent 26px 46px); opacity: .55; transform: rotate(-4deg); }
.ride-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ride-photo .pin { position: relative; font-family: var(--display); font-weight: 900; font-size: var(--step-2); line-height: 1; text-transform: uppercase; text-wrap: balance; }
.ride-photo.has-img .pin { text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.ride-photo .mo { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; background: var(--amber); color: #1a1407; padding: 3px 8px; border-radius: 4px; }
.ride-body { padding: 14px 16px 16px; display: grid; gap: 10px; align-content: start; }
.ride-body .where { font-size: var(--step--1); color: var(--muted); }
.albums { display: flex; flex-wrap: wrap; gap: 6px; }
.albums a { font-family: var(--mono); font-size: .72rem; text-decoration: none; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); }
.albums a:hover { border-color: var(--sign); color: var(--sign); }

.ride-photo.has-img { background: #000; }
.ride-photo.has-img::before { display: none; }
.ride-photo img { transition: opacity .6s ease; }
.ride-photo a.cover { position: absolute; inset: 0; }
.ride-photo .count { position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: .72rem; background: rgba(0,0,0,.55); color: #fff; padding: 3px 8px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.ride-photo .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.ride-photo .nav.prev { left: 10px; } .ride-photo .nav.next { right: 10px; }
.ride-photo .nav:hover { background: rgba(0,0,0,.75); }
.ride-photo .pin, .ride-photo .mo, .ride-photo .count { pointer-events: none; z-index: 1; }
.ride-photo .mo { z-index: 1; }
.strip-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.strip { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 4px; min-width: 0; flex: 1; scrollbar-width: thin; }
.strip button { flex: 0 0 96px; height: 64px; padding: 0; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: var(--line); cursor: pointer; scroll-snap-align: start; opacity: .6; transition: opacity .2s ease, border-color .2s ease; }
.strip button:hover { opacity: .9; }
.strip button.on { border-color: var(--amber); opacity: 1; }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; font-size: .8rem; }
.play:hover { border-color: var(--sign); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .card { align-content: start; }
.contact-grid .label { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-grid .val { font-weight: 600; font-size: var(--step-1); overflow-wrap: anywhere; user-select: all; }
.contact-grid a.val { text-decoration: none; }
.contact-grid a.val:hover { color: var(--sign); }
.copy { justify-self: start; padding: 8px 12px; }
footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }

@keyframes signIn { from { transform: rotate(-1.2deg) translateY(14px); opacity: .4; } to { transform: rotate(-1.2deg); opacity: 1; } }
.sign { animation: signIn .7s cubic-bezier(.2,.8,.2,1) both; }
