/* ============================================================
   James Ingram — personal site
   "NIGHT DRIVE"
   The site behaves like the infrastructure James builds:
   precise, monitored, quietly alive. Blue-black asphalt,
   road-marking chalk, one turquoise accent — and a single
   motorway-blue payoff at the end of the route.

   Palette:
     Asphalt   #090B10  background (blue-black)
     Surface   #10141B  raised panels
     Line      #222A36  hairlines / rules
     Chalk     #EDF2F2  road-marking white (text)
     Muted     #8C97A4  secondary text
     Accent    #2DD4BF  turquoise — sole running accent
     Green     #34D27B  status / go (sparingly)
     Motorway  #1557C0  contact sign only

   Type:
     Archivo (variable, wdth 62–125) — display at Expanded 900
     Fraunces italic — human asides
     Martian Mono — labels, data, signage
   ============================================================ */

:root {
  --asphalt: #090B10;
  --surface: #10141B;
  --line: #222A36;
  --chalk: #EDF2F2;
  --muted: #8C97A4;
  --accent: #2DD4BF;
  --green: #34D27B;
  --motorway: #1557C0;

  --display: "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "Martian Mono", ui-monospace, monospace;

  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* film grain over everything — keeps the black from feeling flat */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 99;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--asphalt); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--chalk); }

em { font-family: var(--serif); font-style: italic; letter-spacing: 0.01em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3.5rem;
  z-index: 120;
  background: var(--accent);
  color: var(--asphalt);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus { top: 0; }

/* ---------- custom cursor (desktop, JS-on only) ---------- */

.cursor { display: none; }

@media (pointer: fine) {
  html.cursor-on body,
  html.cursor-on a,
  html.cursor-on button { cursor: none; }

  html.cursor-on .cursor {
    display: block;
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 110;
    pointer-events: none;
  }
  .cursor-dot,
  .cursor-ring {
    position: fixed;
    left: 0; top: 0;
    border-radius: 50%;
    will-change: transform;
  }
  .cursor-dot {
    width: 7px; height: 7px;
    margin: -3.5px 0 0 -3.5px;
    background: var(--accent);
  }
  .cursor-ring {
    width: 36px; height: 36px;
    margin: -18px 0 0 -18px;
    border: 1px solid color-mix(in srgb, var(--chalk) 45%, transparent);
    transition: width 250ms var(--ease-out), height 250ms var(--ease-out),
                margin 250ms var(--ease-out), border-color 250ms ease,
                opacity 250ms ease;
  }
  .cursor.is-hover .cursor-ring {
    width: 58px; height: 58px;
    margin: -29px 0 0 -29px;
    border-color: var(--accent);
  }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- scroll progress ---------- */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 105;
  pointer-events: none;
}
.progress-bar {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
}

/* ---------- headlight haze (decorative background depth) ---------- */

/* three soft washes of distant light behind the page; script.js slides
   each at its own rate as you scroll. Present and static without JS.
   Each glow's `top` must equal its data-from in the HTML. */
.haze {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.haze-glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
/* the gradient lives on a pseudo so its slow breathe never fights the
   JS parallax transform on the glow itself */
.haze-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent) 7%, transparent), transparent 72%);
}
.haze-glow:nth-child(1) { top: -12vh; right: -18vmax; width: 65vmax; height: 65vmax; }
.haze-glow:nth-child(2) { top: 115vh; left: -24vmax; width: 88vmax; height: 88vmax; }
.haze-glow:nth-child(2)::before {
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent) 5%, transparent), transparent 72%);
}
.haze-glow:nth-child(3) { top: 235vh; right: -14vmax; width: 56vmax; height: 56vmax; }
@media (prefers-reduced-motion: no-preference) {
  .haze-glow::before { animation: haze-breathe 17s ease-in-out infinite alternate; }
  .haze-glow:nth-child(2)::before { animation-duration: 23s; animation-delay: -9s; }
  .haze-glow:nth-child(3)::before { animation-duration: 13s; animation-delay: -5s; }
}
@keyframes haze-breathe {
  from { transform: scale(0.92); opacity: 0.7; }
  to   { transform: scale(1.06); opacity: 1; }
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad-x);
  background: color-mix(in srgb, var(--asphalt) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 115%;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  color: var(--chalk);
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }
.wordmark-dot { color: var(--accent); }

/* miniature roundabout in the wordmark — two cars circulate clockwise
   (UK rules) in two lanes; the outer car yields at the top entry each lap
   and pulls a faint light trail. Pure CSS; cars park when motion is off. */
.head-roundabout {
  position: relative;
  width: 20px; height: 20px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.head-roundabout::before { /* centre island */
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--line);
}
.rab-lane {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
/* parked position for the inner car — also its no-motion resting spot */
.rab-inner { inset: 4px; transform: rotate(150deg); }
.rab-lane::before { /* car */
  content: "";
  position: absolute;
  top: -2px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.rab-inner::before {
  top: -1.5px;
  width: 3px; height: 3px;
  margin-left: -1.5px;
  opacity: 0.55;
  box-shadow: 0 0 4px var(--accent);
}
.rab-outer::after { /* light trail behind the outer car */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: rotate(-40deg);
}
@media (prefers-reduced-motion: no-preference) {
  .rab-outer {
    animation: rab-orbit-outer 3.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }
  .rab-inner {
    animation: rab-orbit-inner 5.6s linear infinite;
    animation-delay: -2.1s;
  }
}
@keyframes rab-orbit-outer {
  0%   { transform: rotate(0deg); }
  14%  { transform: rotate(24deg); }  /* creeps off the give-way line… */
  62%  { transform: rotate(290deg); } /* …clear run round… */
  100% { transform: rotate(360deg); } /* …slows back into the entry */
}
@keyframes rab-orbit-inner {
  from { transform: rotate(150deg); }
  to   { transform: rotate(510deg); }
}

.site-head nav ul {
  display: flex;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  list-style: none;
  margin: 0; padding: 0;
}
.site-head nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
}
.site-head nav a:hover { color: var(--chalk); }
.site-head nav a.active { color: var(--chalk); }
.site-head nav a.active .jno { border-color: var(--accent); color: var(--accent); }

.jno {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
  margin-right: 0.35rem;
  transition: border-color 250ms ease, color 250ms ease;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line));
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  white-space: nowrap;
}
.status:hover { color: var(--chalk); border-color: var(--green); }
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}
@media (prefers-reduced-motion: no-preference) {
  .status-dot { animation: pulse 2.2s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); }
  55%      { box-shadow: 0 0 0 7px transparent; }
}

@media (max-width: 760px) {
  .site-head nav a .lbl { display: none; }
  .site-head nav a .jno { margin-right: 0; font-size: 0.7rem; padding: 0.18rem 0.42rem; }
  .status .status-label { display: none; }
}
@media (max-width: 480px) {
  .status { display: none; }
  .head-roundabout { display: none; }
  .site-head nav ul { gap: 0.45rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 3.6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 7vh, 5rem) var(--pad-x) clamp(2rem, 5vh, 3.5rem);
  overflow: clip;
}

/* headlight sweep — follows the pointer on desktop */
.hero-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(620px circle at var(--mx, 72%) var(--my, 24%),
      color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%),
    radial-gradient(900px circle at 15% 110%,
      color-mix(in srgb, var(--motorway) 14%, transparent), transparent 60%);
}

.hero-inner {
  position: relative;
  max-width: 75rem;
  width: 100%;
  margin: 0 auto;
}

/* VMS — overhead matrix sign */
.vms {
  display: inline-block;
  margin: 0 0 clamp(1.25rem, 3vh, 2rem);
  padding: 0.7rem 1.1rem;
  background: #070910;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.9), 0 6px 24px -12px rgba(0, 0, 0, 0.8);
}
.vms-text {
  font-family: var(--mono);
  font-size: clamp(0.62rem, 1.6vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 65%, transparent);
  white-space: nowrap;
}

.hero-name {
  margin: 0 0 clamp(1.5rem, 4vh, 2.75rem);
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(3.4rem, 14.5vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero-name .line { display: block; }
.hero-name .word { display: inline-block; }
.full-stop { color: var(--accent); font-style: normal; font-family: inherit; }

/* name reveal: lines rise out of a clip, pure CSS so it never depends on script.js */
.js .hero-name .line { overflow: hidden; }
.js .hero-name .word {
  transform: translateY(115%);
  animation: rise 950ms var(--ease-out) forwards;
}
.js .hero-name .line:nth-child(2) .word { animation-delay: 120ms; }
@keyframes rise {
  to { transform: translateY(0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero-line {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  color: var(--muted);
  max-width: 30em;
  margin: 0 0 1.5rem;
}
.hero-line em { color: var(--chalk); }

.hero-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 2rem;
}
.dot { margin: 0 0.5rem; color: var(--line); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  transition: transform 200ms var(--ease-out), background 200ms ease,
              color 200ms ease, border-color 200ms ease;
  will-change: transform;
}
.btn-amber {
  background: var(--accent);
  color: var(--asphalt);
  border: 1px solid var(--accent);
}
.btn-amber:hover { background: var(--chalk); border-color: var(--chalk); color: var(--asphalt); }
.btn-ghost {
  color: var(--chalk);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* portrait — sign-panel frame, corner ticks, JS tilt */
.portrait {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 19rem);
  border: 2px solid color-mix(in srgb, var(--chalk) 75%, transparent);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 300ms var(--ease-out);
  will-change: transform;
}
.portrait img { display: block; width: 100%; height: auto; }
.portrait figcaption {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.tick {
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--accent);
  z-index: 1;
}
.tick-tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.tick-br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.scroll-cue {
  position: relative;
  align-self: center;
  margin-top: clamp(1.5rem, 5vh, 3rem);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.cue-track {
  display: block;
  width: 2px; height: 44px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.cue-car {
  display: block;
  width: 100%; height: 12px;
  background: var(--accent);
  border-radius: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .cue-car { animation: drive 1.8s var(--ease-out) infinite; }
}
@keyframes drive {
  from { transform: translateY(-14px); }
  to   { transform: translateY(46px); }
}
.cue-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue:hover .cue-label { color: var(--accent); }

/* hero load choreography — CSS-only, gated on .js */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: settle 750ms var(--ease-out) forwards;
  animation-delay: calc(280ms + var(--i, 0) * 110ms);
}
@keyframes settle {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  /* everything in the hero centres on small screens */
  .hero-inner { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-line { margin-inline: auto; }
  .portrait { justify-self: center; width: min(100%, 16rem); }
  .scroll-cue { display: none; }
  /* location on its own line, role on the line below — no separator dot */
  .hero-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
  .hero-meta .dot { display: none; }
  .hero-cta { justify-content: center; }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  background: var(--surface);
}
.marquee-track {
  display: flex;
  width: max-content;
}
@media (prefers-reduced-motion: no-preference) {
  /* -50% of a 4-set track = exactly two sets, so the restart is invisible */
  .marquee-track { animation: marquee 60s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee-set {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.marquee-set li {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-set li::after {
  content: "·";
  color: var(--accent);
  margin: 0 1.4rem;
}

/* ---------- panels (sections) ---------- */

.panel {
  position: relative;
  max-width: 75rem;
  margin: 0 auto;
  padding: clamp(4rem, 11vh, 7.5rem) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

/* lane markings between panels */
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad-x);
  right: var(--pad-x);
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--line) 0 26px,
    transparent 26px 52px
  );
}

/* huge ghost junction number — sized to fit inside the panel's top padding
   band (clamp(4rem, 11vh, 7.5rem)) so the content boxes never cover it */
.ghost-no {
  position: absolute;
  top: clamp(0.75rem, 1.5vh, 1.5rem);
  right: var(--pad-x);
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(3.25rem, 8vh, 6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--chalk) 20%, transparent);
  pointer-events: none;
  user-select: none;
}

.panel-rail {
  position: sticky;
  top: 5.5rem;
}
.junction {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--asphalt);
  border: 2px solid var(--line);
  border-radius: 999px;
  transition: border-color 400ms ease, color 400ms ease, box-shadow 400ms ease;
}
.junction.lit {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px -6px var(--accent);
}
.panel-title {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  /* sized so the longest title (EXPERIENCE) stays inside the 18rem rail */
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
.panel-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 1rem 0 0;
  max-width: 22em;
}

.panel-body { position: relative; min-width: 0; }

@media (max-width: 880px) {
  .panel { grid-template-columns: 1fr; }
  .panel-rail { position: static; }
  /* full-width rail: the title can be big again */
  .panel-title { font-size: clamp(1.9rem, 6vw, 2.9rem); }
  .ghost-no { font-size: clamp(4rem, 18vw, 7rem); opacity: 0.7; }
}

/* scroll-triggered reveals — gated on .anim (set by script.js) so
   content is never stranded invisible if the script fails to load */
html.anim [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.anim [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- profile ---------- */

.lede {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  margin: 0 0 1.25rem;
  max-width: 28em;
}
.lede em { color: var(--accent); }
.prose {
  color: var(--muted);
  max-width: 44em;
  margin: 0 0 2.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 2.5rem;
}
.stat {
  background: var(--surface);
  padding: 1.1rem 1.2rem 1rem;
}
.stat dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.stat dd {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1;
  margin: 0;
}
.stat-suffix { color: var(--accent); }

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.strengths {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.7rem;
}
.strengths li {
  font-size: 0.95rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: border-color 250ms ease, color 250ms ease;
}
.strengths li:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--chalk); }
.strengths li::before {
  content: "—";
  color: var(--accent);
  margin-right: 0.5rem;
}

/* ---------- skills ---------- */

/* dividers are borders on the rows (not a backing colour showing through
   1px gaps) so rows waiting to reveal leave nothing visible behind them */
.skills {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.skill-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.25rem 2rem;
  padding: 1.4rem 1.5rem;
  background: var(--asphalt);
  transition: background 250ms ease;
}
.skill-group + .skill-group { border-top: 1px solid var(--line); }
.skill-group:hover { background: var(--surface); }
.skill-about h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.skill-about h3::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.55rem;
  vertical-align: 2px;
}
.skill-about p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.chips {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-content: flex-start;
}
.chips li {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.3rem 0.6rem;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  transition: border-color 200ms ease, transform 200ms var(--ease-out);
}
.chips li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .skill-group { grid-template-columns: 1fr; gap: 0.9rem; padding: 1.2rem 1.1rem; }
}

/* ---------- experience ---------- */

.jobs { display: grid; gap: 1.4rem; }

.job {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.8rem 1.4rem 2rem;
  overflow: hidden;
  transition: border-color 250ms ease, transform 250ms var(--ease-out);
}

/* hover reward: road markings stream past the card's left edge */
.job::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    var(--accent) 0 12px,
    transparent 12px 24px
  );
  background-size: 100% 24px;
  opacity: 0;
  transition: opacity 250ms ease;
}
.job:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
}
.job:hover::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .job:hover::before { animation: markings 900ms linear infinite; }
}
@keyframes markings {
  from { background-position: 0 24px; }
  to   { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .job, .job:hover { transform: none; }
}

.job-dates {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.9rem;
}
.now {
  display: inline-block;
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--asphalt);
  background: var(--accent);
  border-radius: 4px;
  padding: 0.12rem 0.4rem;
  margin-right: 0.55rem;
}
.job-head { margin-bottom: 0.9rem; }
.job-head h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}
.job-org {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--accent);
  margin: 0.25rem 0 0;
}
.job ul { margin: 0; padding-left: 1.1rem; }
.job li {
  margin-bottom: 0.5rem;
  color: color-mix(in srgb, var(--chalk) 86%, var(--muted));
}
.job li::marker { color: var(--accent); }

/* ---------- education ---------- */

.edu-list { display: grid; gap: 1rem; }

.edu {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  transition: border-color 250ms ease;
}
.edu:hover { border-color: color-mix(in srgb, var(--chalk) 30%, var(--line)); }
.edu h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  margin: 0 0 0.3rem;
}
.edu-pathway {
  display: block;
  font-weight: 400;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.edu-where {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.edu-result {
  display: inline-block;
  margin: 0.7rem 0 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
}
.edu-degree { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }

/* ---------- contact ---------- */

/* the one blue moment: a motorway sign — chalk border, rounded corners */
.contact-panel {
  background: var(--motorway);
  border: 3px solid var(--chalk);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--motorway) 60%, transparent);
}
.contact-kicker {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--chalk) 70%, transparent);
  margin: 0 0 1rem;
}
.contact-lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 0 0 1.75rem;
  max-width: 28em;
}
.contact-email {
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 110%;
  font-size: clamp(1.3rem, 4.2vw, 2.4rem);
  letter-spacing: -0.01em;
  color: var(--chalk);
  text-decoration: none;
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: 0 96%;
  transition: background-size 350ms var(--ease-out), color 250ms ease;
  will-change: transform;
}
.contact-email:hover {
  color: var(--accent);
  background-size: 100% 3px;
}
.contact-rest {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: color-mix(in srgb, var(--chalk) 75%, transparent);
}
.contact-rest a { color: var(--chalk); }
.contact-rest a:hover { color: var(--accent); }
.contact-panel .dot { color: color-mix(in srgb, var(--chalk) 35%, transparent); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem var(--pad-x) 2.5rem;
  text-align: center;
}
.end-sign {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  margin: 0 0 1.1rem;
}
.catseyes {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: 1.1rem;
}
.catseyes span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}
@media (prefers-reduced-motion: no-preference) {
  .catseyes span { animation: glint 3s ease-in-out infinite; }
  .catseyes span:nth-child(2) { animation-delay: 0.4s; }
  .catseyes span:nth-child(3) { animation-delay: 0.8s; }
}
@keyframes glint {
  0%, 100% { opacity: 0.35; box-shadow: none; }
  50%      { opacity: 1; box-shadow: 0 0 10px var(--accent); }
}
.footer-chips {
  justify-content: center;
  margin-bottom: 1.1rem;
}
.site-footer p:last-child {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
  margin: 0;
}
