/* Sodium Noir on Asphalt. Colors have jobs:
   structure (sand)  = panels, labels, numerals, tags, the surname, the timeline
   action (amber)    = the Resume button and the most recent timeline node. Nothing else.
   open (sage)       = the open-to-work status light beside the title and location. Nothing else.
   guardrail (brick) = the human-oversight rail, link underlines, the contact panel edge
   Everything else is neutral warm charcoal and off-white. Variable names are roles, not colors, so a
   palette change touches only the values below. */
:root {
  --bg: #111110;
  --surface: #181816;
  --line: #2d2c28;
  --ink: #f2eee4;
  --muted: #aaa69a;          /* neutral, not violet-tinted */
  --struct: #d6b98c;
  --rail: #e5533d;
  --cta: #ffb000;
  --open: #9fc89a;           /* sage: the open-to-work status light only */
  --on: #111110;
  --gp: 45%;               /* glow strength */
  --c: var(--struct);      /* default element color */
  --display: "Geist Mono", "Cascadia Mono", ui-monospace, Consolas, monospace;
  --body: "Geist Mono", "Cascadia Mono", ui-monospace, Consolas, monospace;
  --wrap: 74rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 40% at 10% 0%, color-mix(in srgb, var(--struct) 9%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 35% at 96% 28%, color-mix(in srgb, var(--rail) 6%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--line) 40%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 40%, transparent) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  font: .9375rem/1.7 var(--body);
}
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--struct); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--cta); color: var(--on); padding: .5rem .75rem; z-index: 20; }
.muted { color: var(--muted); }
main, footer { max-width: var(--wrap); margin-inline: auto; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.5rem; padding: .7rem 1.25rem;
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.mark { font: 800 1rem var(--display); letter-spacing: .04em; text-decoration: none; color: var(--struct); border: 1px solid var(--struct); padding: .1rem .5rem; box-shadow: 0 0 14px -4px color-mix(in srgb, var(--struct) var(--gp), transparent); }
.bar nav { display: flex; gap: 1.4rem; margin-left: auto; font: 500 .8125rem var(--display); text-transform: uppercase; letter-spacing: .08em; }
.bar nav a { text-decoration: none; color: var(--muted); }
.bar nav a:hover { color: var(--struct); }

/* buttons */
.btn { display: inline-block; font: 700 .875rem var(--display); letter-spacing: .02em; text-decoration: none; padding: .7rem 1.2rem; border: 1px solid var(--struct); color: var(--struct); background: transparent; }
.btn.small { padding: .4rem .8rem; font-size: .8rem; }
.btn.small:hover { background: var(--struct); color: var(--on); }
.btn.primary { background: var(--cta); border-color: var(--cta); color: var(--on); box-shadow: 0 0 0 1px var(--cta), 0 0 26px -2px color-mix(in srgb, var(--cta) var(--gp), transparent); }
.btn.primary:hover { box-shadow: 0 0 0 1px var(--cta), 0 0 42px 0 color-mix(in srgb, var(--cta) var(--gp), transparent); }
.btn.ghost:hover { background: color-mix(in srgb, var(--struct) 12%, transparent); }
.text { color: var(--ink); text-decoration-color: var(--rail); text-underline-offset: .25em; text-decoration-thickness: 2px; }
.text:hover { color: var(--rail); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; list-style: none; padding: 0; margin: 0; }

main { padding: 0 1.25rem 4rem; }
section { padding: clamp(2rem, 5vw, 3.5rem) 0 0; }

/* section labels */
.label { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.25rem; font: 600 .75rem/1.4 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.label::before { content: "//"; color: var(--struct); }
.label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; padding-top: clamp(2.5rem, 7vw, 5.5rem); }
.status { font: 500 .8125rem/1.5 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.25rem; }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--open); box-shadow: 0 0 12px 1px color-mix(in srgb, var(--open) var(--gp), transparent); margin-right: .7rem; vertical-align: .05em; }
h1 { font: 800 clamp(2.5rem, 7.6vw, 5.6rem)/.95 var(--display); letter-spacing: -.05em; text-transform: uppercase; margin: 0 0 1.5rem; overflow-wrap: anywhere; }
.surname { color: var(--struct); text-shadow: 0 0 28px color-mix(in srgb, var(--struct) var(--gp), transparent); display: block; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.55; max-width: 38ch; margin: 0 0 1.75rem; }

.hud, .tile { position: relative; }
.hud { background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--struct) 38%, var(--line)); padding: 1.1rem 1.25rem 1.25rem; box-shadow: 0 0 40px -18px color-mix(in srgb, var(--struct) var(--gp), transparent); }
.hud::before, .hud::after, .tile::before, .tile::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--c); }
.hud::before, .tile::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud::after, .tile::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hud .label { margin-bottom: .9rem; }
.hud dl { margin: 0; display: grid; gap: .65rem; }
.hud dl div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .75rem; padding-bottom: .65rem; border-bottom: 1px dashed var(--line); }
.hud dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.hud dt { font: 600 .75rem/1.9 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hud dd { margin: 0; }
.hud .ok { color: var(--cta); font-weight: 600; }

/* pipeline trace */
.stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.stages li { position: relative; padding: .9rem; border: 1px solid var(--line); border-right-width: 0; background: var(--surface); font: 700 .875rem var(--display); letter-spacing: .06em; text-transform: uppercase; }
.stages li:last-child { border-right-width: 1px; }
.stages li:not(:last-child)::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--bg); border-top: 1px solid var(--struct); border-right: 1px solid var(--struct); transform: rotate(45deg); z-index: 1; }
.stages .n { display: block; color: var(--struct); font-size: .75rem; letter-spacing: .14em; margin-bottom: .2rem; }
.rail { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin: 0; padding: .65rem .9rem; border: 1px solid var(--rail); border-top-width: 2px; background: color-mix(in srgb, var(--rail) 9%, transparent); font: 600 .75rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); box-shadow: 0 0 30px -14px color-mix(in srgb, var(--rail) var(--gp), transparent); }
.rail span::before { content: "+ "; color: var(--rail); }
.caption { margin: .75rem 0 0; color: var(--muted); font-size: .85rem; }

/* results tiles: one color each */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile { container-type: inline-size; background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line)); padding: 1.4rem 1.5rem 1.5rem; }
.tile.big { box-shadow: 0 0 46px -20px color-mix(in srgb, var(--c) var(--gp), transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 8%, var(--surface)), var(--surface) 60%); }
.tile p { margin: 0; }
.num { font: 800 clamp(2.2rem, 5.4vw, 3.6rem)/1 var(--display); font-size: min(3.6rem, 16cqw); display: flex; align-items: flex-end; min-height: 1em; letter-spacing: -.04em; color: var(--c); text-shadow: 0 0 24px color-mix(in srgb, var(--c) var(--gp), transparent); margin-bottom: .8rem !important; text-transform: uppercase; }

/* work cards: one color each */
.note { color: var(--muted); font-size: .875rem; margin: -.4rem 0 1.25rem; max-width: 70ch; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card { --c: var(--struct); background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--c); padding: 1.25rem 1.4rem 1.4rem; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--c); box-shadow: 0 0 34px -16px color-mix(in srgb, var(--c) var(--gp), transparent); }
.card p { margin: 0; }
.idx { font: 700 .8rem var(--display); letter-spacing: .12em; color: var(--c); margin-bottom: .6rem !important; }
.badge { margin-left: .6rem; padding: .05rem .5rem; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.card h3 { font: 700 1.1rem/1.35 var(--display); margin: 0 0 .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 0 !important; padding: 0; }
.chips span { border: 1px solid color-mix(in srgb, var(--struct) 28%, var(--line)); padding: .1rem .55rem; font: 500 .78rem/1.6 var(--display); color: color-mix(in srgb, var(--struct) 62%, var(--ink)); background: transparent; }

/* timeline */
.org { margin: -.4rem 0 1.5rem; font: 500 .8125rem var(--display); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.timeline { border-left: 1px solid color-mix(in srgb, var(--struct) 45%, var(--line)); margin-left: .35rem; }
.job { position: relative; display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; padding: 0 0 2.2rem 1.6rem; }
.job:last-child { padding-bottom: 0; }
.job::before { content: ""; position: absolute; left: -6px; top: .45rem; width: 11px; height: 11px; background: var(--bg); border: 2px solid var(--struct); box-shadow: 0 0 12px color-mix(in srgb, var(--struct) var(--gp), transparent); }
.job:nth-child(1)::before { border-color: var(--cta); box-shadow: 0 0 12px color-mix(in srgb, var(--cta) var(--gp), transparent); } /* most recent */
.when { margin: 0; font: 600 .8125rem/1.6 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .25rem; }
.job h3 { font: 700 1.15rem/1.35 var(--display); margin: 0 0 .5rem; }
.job ul { margin: 0; padding-left: 1.1rem; }
.job li { margin: .4rem 0; }
.job li::marker { color: var(--struct); }

/* stack: one color per row */
.stack { margin: 0; border-top: 1px solid var(--line); }
.stack div { --c: var(--struct); display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stack dt { font: 600 .75rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stack dt { position: relative; padding-left: 1.15rem; }
.stack dt::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem; background: var(--c); }
.stack dd { margin: 0; }
.stack .chips { margin: 0 !important; }

/* contact */
.cta-panel { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--struct); border-left: 4px solid var(--rail); background: linear-gradient(135deg, color-mix(in srgb, var(--struct) 9%, var(--surface)), var(--surface) 65%); box-shadow: 0 0 60px -22px color-mix(in srgb, var(--struct) var(--gp), transparent); }
.pitch { font: 700 clamp(1.25rem, 3vw, 1.9rem)/1.35 var(--display); letter-spacing: -.02em; max-width: 30ch; margin: 0 0 1.5rem; }

footer { padding: 1.5rem 1.25rem 3rem; color: var(--muted); font: .8rem/1.6 var(--display); border-top: 1px solid var(--line); }
footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; }
  .stages { grid-template-columns: 1fr; }
  .stages li { border-right-width: 1px; border-bottom-width: 0; }
  .stages li:last-child { border-bottom-width: 1px; }
  .stages li:not(:last-child)::after { right: auto; left: 1.5rem; top: auto; bottom: -7px; margin-top: 0; transform: rotate(135deg); }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.big { grid-column: auto; grid-row: auto; }
  .cards { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: .4rem; }
  .stack div { grid-template-columns: 1fr; gap: .4rem; }
}
@media (max-width: 480px) {
  body { font-size: .9rem; }
  .hud dl div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero > :nth-child(2) { animation-delay: .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
@media print { body { background: #fff; color: #000; } .bar, .skip { display: none; } }
