/* =============================================================================
   willstruloeff.com
   Design system: Cinematic Compute (NVIDIA reference DESIGN.md).
   Black canvas, grayscale chrome, ONE accent locked to action and brand mark,
   4px radii everywhere, hard 1px borders, no hover lifts, media-led hero.
   Dark only, by system rule. There is no light variant on purpose.
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JBMono';
  src: url('fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 100 800; font-style: normal; font-display: swap;
}

/* ---------- tokens -------------------------------------------------------- */
:root {
  --bg:            #000000;
  --bg-alt:        #0A0A0A;
  --surface:       #131313;
  --surface-2:     #1C1C1C;
  --text:          #FFFFFF;
  --text-muted:    #B4B4B4;
  --text-dim:      #757575;
  --border:        #262626;
  --border-strong: #3D3D3D;

  /* The single accent. Action and brand mark only. Chrome stays grayscale. */
  --accent:        #FF4A1C;
  --accent-hover:  #FF6B44;

  --r:             4px;          /* one radius, everywhere */

  --e:             cubic-bezier(0.22, 1, 0.36, 1);

  --gut:           clamp(20px, 4vw, 32px);
  --maxw:          1440px;
  --nav-h:         68px;

  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JBMono', ui-monospace, 'SF Mono', Menlo, monospace;

  color-scheme: dark;
}

/* ---------- reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

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

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 300;
  transform: translateY(-200%);
  padding: 12px 20px;
  background: var(--accent);
  color: #000;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 14px;
  transition: transform 220ms var(--e);
}
.skip:focus-visible { transform: translateY(0); }

/* ---------- layout -------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.band { padding-block: clamp(64px, 11vw, 128px); }
.band--tight { padding-block: clamp(48px, 7vw, 80px); }

.hr { height: 1px; background: var(--border); border: 0; }

/* ---------- type ---------------------------------------------------------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; }

.d1 {
  font-size: clamp(46px, 8.4vw, 118px);
  line-height: 0.96;
  letter-spacing: -0.042em;
  font-weight: 600;
  text-wrap: balance;
}
.d2 {
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.d3 {
  font-size: clamp(24px, 2.9vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.lede {
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
  text-wrap: pretty;
}
.body-dim { color: var(--text-muted); text-wrap: pretty; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.kicker--accent { color: var(--accent); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* ---------- buttons (4px, flat, no lift) ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--accent); color: #000; }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); }

.iconbtn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}
.iconbtn:hover { color: var(--text); border-color: var(--border-strong); }
.iconbtn svg { width: 20px; height: 20px; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--border-strong);
  transition: border-color 200ms ease, color 200ms ease;
}
.tlink:hover { color: var(--accent); border-color: var(--accent); }
.tlink svg { width: 14px; height: 14px; }

/* ---------- nav ----------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  padding-top: env(safe-area-inset-top);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, background-color 300ms ease;
}
.nav[data-scrolled="true"] { border-bottom-color: var(--border); }

.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav__mark {
  width: 10px; height: 18px;
  background: var(--accent);
  flex: none;
}
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 200ms ease;
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="true"] { color: var(--text); }
.nav__link[aria-current="true"]::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--accent);
}
.nav__end { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; }

/* ---------- mobile drawer ------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 24px) var(--gut)
           calc(32px + env(safe-area-inset-bottom));
  background: var(--bg);
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transition: opacity 260ms var(--e), visibility 0s linear 260ms;
}
.drawer[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transition: opacity 260ms var(--e), visibility 0s;
}
.drawer__nav { align-self: center; }
.drawer__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: clamp(28px, 9vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--e), transform 420ms var(--e), color 200ms ease;
}
.drawer[data-open="true"] .drawer__link {
  opacity: 1;
  transform: none;
  transition-delay: calc(60ms + var(--i) * 55ms);
}
.drawer__link:hover { color: var(--accent); }
.drawer__link .kicker { flex: none; }
.drawer__foot { display: flex; flex-wrap: wrap; gap: 12px; }

body[data-locked="true"] { overflow: hidden; }

/* ---------- hero ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: clamp(48px, 8vh, 88px);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
/* Slow push-in. Transform only, and switched off under reduced motion. */
.hero__media img { animation: push 26s var(--e) forwards; }
@keyframes push {
  from { transform: scale(1.0); }
  to   { transform: scale(1.09); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 34%, rgba(0,0,0,0.92) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.72) 0%, transparent 62%);
}
.hero__in { display: grid; gap: 26px; max-width: 940px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- metrics band -------------------------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metric {
  padding: clamp(28px, 3.6vw, 48px) clamp(20px, 2.4vw, 32px);
  border-left: 1px solid var(--border);
}
.metric:first-child { border-left: 0; }
.metric__v {
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.metric__l { font-size: 14px; color: var(--text-dim); line-height: 1.45; }

/* ---------- section heads ------------------------------------------------- */
.head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 68ch; }

/* ---------- feature (split media) ---------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.feature__media {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--surface);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { display: grid; gap: 20px; align-content: start; }
.feature__title { display: grid; gap: 10px; }

.speclist { display: grid; gap: 14px; }
.speclist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}
.speclist li::before {
  content: '';
  width: 8px; height: 1px;
  margin-top: 0.72em;
  background: var(--accent);
}

.stack { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.stack img {
  height: 26px; width: auto;
  opacity: 0.62;
  transition: opacity 200ms ease;
}
.stack:hover img { opacity: 0.95; }

/* ---------- media grid (2 up) -------------------------------------------- */
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.tile {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-alt);
  transition: border-color 240ms ease;
}
.tile:hover { border-color: var(--accent); }
.tile__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(22px, 2.4vw, 32px);
}
.tile__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- statement (full bleed) --------------------------------------- */
.statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-block: clamp(80px, 12vw, 160px);
  text-align: center;
}
.statement__media { position: absolute; inset: 0; z-index: -2; }
.statement__media img { width: 100%; height: 100%; object-fit: cover; }
.statement__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.86), rgba(0,0,0,0.72) 50%, rgba(0,0,0,0.9));
}
/* ch resolves against THIS element's font-size (17px), not the 72px headline
   inside it, so a ch cap here crushed the h2 into a narrow ragged column.
   Cap in px and let the lede keep its own measure. */
.statement__in {
  display: grid;
  gap: 22px;
  max-width: 940px;
  margin-inline: auto;
  justify-items: center;
}
.statement .lede { max-width: 54ch; }

/* ---------- experience (grouped, sparse dividers) ------------------------ */
.roles { display: grid; }
.role {
  display: grid;
  grid-template-columns: 200px 1fr 110px;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(28px, 3.2vw, 44px);
}
.role + .role { border-top: 1px solid var(--border); }
.role__when { padding-top: 5px; }
.role__title { display: grid; gap: 6px; }
.role__co { color: var(--accent); }
.role__notes { display: grid; gap: 10px; margin-top: 16px; max-width: 64ch; }
.role__notes li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}
.role__notes li::before {
  content: '';
  width: 8px; height: 1px;
  margin-top: 0.72em;
  background: var(--border-strong);
}
.role__tag { justify-self: end; padding-top: 5px; }

/* ---------- education ----------------------------------------------------- */
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); }
.edu__item {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-alt);
}
.edu__notes { display: grid; gap: 9px; margin-top: 8px; }
.edu__notes li { font-size: 15px; color: var(--text-muted); line-height: 1.5; }

/* ---------- contact ------------------------------------------------------- */
.contact { display: grid; justify-items: center; gap: 26px; text-align: center; }
.contact .lede { max-width: 46ch; }
.contact__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- footer -------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot__links a { font-size: 15px; color: var(--text-muted); transition: color 200ms ease; }
.foot__links a:hover { color: var(--text); }

/* ---------- scroll reveal ------------------------------------------------- */
.js [data-rise] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--e), transform 700ms var(--e);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js [data-rise].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------------------------------------------------- */
@media (max-width: 1024px) {
  .feature { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .role { grid-template-columns: 160px 1fr; }
  .role__tag { display: none; }
}

@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }

  .hero { min-height: 100dvh; align-items: flex-end; }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.45) 30%, rgba(0,0,0,0.95) 100%);
  }
  .hero__cta { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero__cta .btn { justify-content: center; width: 100%; }

  .metrics { grid-template-columns: 1fr; }
  .metric { border-left: 0; border-bottom: 1px solid var(--border); }
  .metric:last-child { border-bottom: 0; }

  .mgrid { grid-template-columns: 1fr; }
  .edu { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; gap: 10px; }
  .contact__row { display: grid; width: 100%; }
  .contact__row .btn { justify-content: center; }
}

/* ---------- reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .hero__media img { animation: none; transform: none; }
  .js [data-rise] { opacity: 1; transform: none; }
  .drawer__link { opacity: 1; transform: none; }
}

/* ---------- print --------------------------------------------------------- */
@media print {
  .nav, .drawer, .skip, .hero__media, .hero__scrim, .statement__media { display: none !important; }
  body { background: #fff; color: #000; }
  .band { padding-block: 16px; break-inside: avoid; }
}
