/* ==========================================================================
   gregorymhill.com — website styles (media="screen")
   The printed / one-page résumé lives entirely in paper.css.
   ========================================================================== */

:root {
  --paper:      #f6f2ea;
  --surface:    #fffdf8;
  --surface-2:  #f0ebe1;
  --ink:        #1d1b18;
  --ink-2:      #4a463f;
  --ink-3:      #807a6f;
  --rule:       #e2dbcd;
  --rule-2:     #d3cab8;

  --accent:     #bf4f2a;   /* terracotta */
  --accent-ink: #9c3d1e;
  --accent-bg:  #f6e3d8;

  --health:  #c8504a;
  --edu:     #2f6db0;
  --defense: #a87414;
  --startup: #7651c2;
  --ship:    #1f8a6e;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1160px;
  --pad: clamp(1.25rem, 4.5vw, 3rem);
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 1px 0 rgba(40, 30, 10, .04), 0 10px 30px -12px rgba(40, 30, 10, .18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #14130f;
    --surface:   #1c1a16;
    --surface-2: #24211c;
    --ink:       #f1ece2;
    --ink-2:     #c4bdb0;
    --ink-3:     #8d867a;
    --rule:      #2e2a23;
    --rule-2:    #3b362d;
    --accent:     #f08a5d;
    --accent-ink: #f7a47f;
    --accent-bg:  #3a2419;
    --health:  #ef7b72;
    --edu:     #6aa6ea;
    --defense: #dfa83f;
    --startup: #a98af0;
    --ship:    #4cc39f;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 14px 34px -14px rgba(0,0,0,.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Engineering-paper grid that fades out below the hero */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 10%, transparent 75%);
  opacity: .55;
  z-index: 0;
}

a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-bg); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.paper-only, .paper-toolbar { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: .5rem .9rem; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .78rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 .95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: var(--rule-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-sm { padding: .55rem .9rem; font-size: .85rem; }

/* ------------------------------------------------------------------ Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .8rem var(--pad);
  transition: background .25s, border-color .25s, box-shadow .25s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--rule);
}
.mark { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 600; margin-right: auto; }
.mark:hover { color: var(--ink); }
.mark-glyph {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--ink); color: var(--paper);
  font: 600 .95rem/1 var(--serif); font-style: italic; letter-spacing: -.02em;
  transition: background .2s, transform .3s var(--ease);
}
.mark:hover .mark-glyph { background: var(--accent); transform: rotate(-6deg); }
.mark-name { font-size: .95rem; opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s var(--ease); }
.topbar.scrolled .mark-name { opacity: 1; transform: none; }

.topnav { display: flex; gap: .25rem; }
.topnav a {
  position: relative; padding: .45rem .75rem; border-radius: 999px;
  color: var(--ink-2); font-size: .88rem; font-weight: 500; text-decoration: none;
}
.topnav a:hover { color: var(--ink); background: var(--surface-2); }
.topnav a.active { color: var(--accent-ink); background: var(--accent-bg); }
@media (max-width: 860px) { .topnav { display: none; } }

/* -------------------------------------------------------------------- Shell */
main {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: clamp(4rem, 9vw, 7rem) 0 0; }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.eyebrow {
  margin: 0 0 .9rem;
  font: 500 .75rem/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow span { color: var(--accent); margin-right: .55rem; }
.section-head h2 {
  margin: 0;
  font: 500 clamp(2.1rem, 4.6vw, 3.2rem)/1.04 var(--serif);
  letter-spacing: -.025em;
  font-variation-settings: "opsz" 144;
}
.lede { margin: 1rem 0 0; font-size: 1.12rem; color: var(--ink-2); line-height: 1.55; }

/* ------------------------------------------------------------------ Masthead */
.masthead {
  min-height: min(100svh, 900px);
  padding: clamp(6.5rem, 14vh, 9rem) 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-areas: "text photo" "stats stats";
  gap: 3rem clamp(2rem, 6vw, 5rem);
  align-content: center;
}
.mh-text { grid-area: text; align-self: center; }
.mh-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1.6rem; padding: .4rem .85rem .4rem .7rem;
  border: 1px solid var(--rule-2); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  font: 500 .74rem/1.2 var(--mono); letter-spacing: .06em; color: var(--ink-2);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #2fb36c; box-shadow: 0 0 0 0 rgba(47,179,108,.5); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,179,108,.5); } 70%,100% { box-shadow: 0 0 0 9px rgba(47,179,108,0); } }

.mh-name {
  margin: 0;
  font: 400 clamp(3.4rem, 10vw, 7.4rem)/.9 var(--serif);
  letter-spacing: -.045em;
  font-variation-settings: "opsz" 144;
}
.mh-name span { font-style: italic; color: var(--accent); padding-right: .06em; }
.mh-role {
  margin: 1.2rem 0 0;
  font: 500 clamp(1.05rem, 2vw, 1.3rem)/1.3 var(--sans);
  letter-spacing: -.01em;
}
.mh-role i { font-style: normal; color: var(--accent); margin: 0 .35rem; }
.mh-summary { margin: 1.25rem 0 0; max-width: 40rem; font-size: 1.1rem; color: var(--ink-2); }
.mh-summary strong { color: var(--ink); font-weight: 600; }
.mh-contact { display: none; }
.mh-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.mh-photo {
  grid-area: photo; align-self: center; justify-self: end;
  position: relative; margin: 0; width: min(100%, 380px);
}
.mh-photo::before {
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid var(--accent); border-radius: 28px;
  transform: translate(14px, 14px); transition: transform .5s var(--ease);
}
.mh-photo:hover::before { transform: translate(8px, 8px); }
.mh-photo img {
  position: relative; width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover;
  border-radius: 28px; box-shadow: var(--shadow);
}

.stats {
  grid-area: stats; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2);
}
.stats > div { padding: 1.3rem 1.2rem 1.3rem 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .35rem; }
.stats > div + div { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
.stats dd { margin: 0; font: 400 clamp(2rem, 3.6vw, 2.8rem)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats dt { font-size: .82rem; color: var(--ink-3); line-height: 1.35; }

@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr; grid-template-areas: "photo" "text" "stats"; min-height: 0; gap: 2rem; }
  .mh-photo { justify-self: start; width: 132px; }
  .mh-photo::before { border-radius: 22px; transform: translate(8px, 8px); }
  .mh-photo img { border-radius: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: 1.1rem 1rem 1.1rem 0; border-left: 0 !important; }
  .stats > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--rule) !important; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .stats > div:last-child { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------- Press */
.press {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2rem;
  padding: 1.6rem 0 0;
}
.press-label { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.press ul { display: flex; flex-wrap: wrap; gap: .6rem 1.7rem; margin: 0; padding: 0; list-style: none; }
.press a, .press span:not(.press-label) { color: var(--brand, var(--ink)); text-decoration: none; white-space: nowrap; transition: opacity .2s, transform .2s var(--ease); }
.press a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transform: translateY(-1px); }
/* Brand-tinted wordmarks, tuned for >= 4.5:1 contrast in both themes */
:root { --b-cnn: #c0170d; --b-jaci: #1d5e98; --b-wc: #0063b1; --b-local: #b0400c; --b-inspire: #6847b3; }
@media (prefers-color-scheme: dark) {
  :root { --b-cnn: #ff5c4f; --b-jaci: #92c2e8; --b-wc: #5cb2f0; --b-local: #ff8048; --b-inspire: #c0a8f5; }
}
.p-cnn     { --brand: var(--b-cnn);  font: 800 1.15rem/1 var(--sans); letter-spacing: -.04em; }
.p-nyt     { font: italic 700 1.15rem/1 "Times New Roman", Times, var(--serif); }
.p-jaci    { --brand: var(--b-jaci); font: italic 500 1rem/1 var(--serif); }
.p-halo    { font: 700 .88rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.p-wc      { --brand: var(--b-wc);   font: 600 1.02rem/1 var(--sans); letter-spacing: -.01em; }
.p-local   { --brand: var(--b-local); font: 800 .98rem/1 var(--sans); letter-spacing: -.01em; }
.p-inspire { --brand: var(--b-inspire); font: italic 500 1.05rem/1 var(--serif); }

/* ---------------------------------------------------------------- Leadership */
.pillars {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  counter-reset: pillar;
}
.pillars li {
  counter-increment: pillar;
  position: relative;
  padding: 1.6rem 1.4rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.pillars li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--rule-2); }
.pillars li::before {
  content: "0" counter(pillar);
  display: block; margin-bottom: 1.6rem;
  font: 500 .75rem/1 var(--mono); color: var(--accent);
}
.pillars h3 { margin: 0 0 .55rem; font: 500 1.35rem/1.15 var(--serif); letter-spacing: -.015em; }
.pillars p { margin: 0 0 1rem; font-size: .95rem; color: var(--ink-2); line-height: 1.55; }
.pillars a {
  display: inline-block; margin: 0 .3rem .3rem 0; padding: .2rem .55rem;
  border-radius: 999px; background: var(--surface-2);
  font: 500 .72rem/1.4 var(--mono); color: var(--ink-2); text-decoration: none;
}
.pillars a:hover { background: var(--accent-bg); color: var(--accent-ink); }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pillars { grid-template-columns: 1fr; } .pillars li::before { margin-bottom: 1rem; } }

/* ------------------------------------------------------------------ Timeline */
.timeline {
  margin: 0 0 3rem;
  padding: 1.4rem 1.4rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.tl-scroll { overflow-x: auto; padding-bottom: .3rem; }
.tl-scroll > * { min-width: 720px; }
.tl-axis, .tl-track { position: relative; margin-left: 96px; }
.tl-axis { height: 1.4rem; border-bottom: 1px dashed var(--rule-2); margin-bottom: .6rem; }
.tl-axis span {
  position: absolute; left: calc((var(--y) - var(--from)) / (var(--to) - var(--from)) * 100%);
  transform: translateX(-50%);
  font: 500 .7rem/1 var(--mono); color: var(--ink-3);
}
.tl-lane { position: relative; display: flex; align-items: center; height: 34px; }
.tl-label {
  position: absolute; left: 0; width: 90px;
  display: flex; align-items: center; gap: .45rem;
  font: 500 .72rem/1 var(--mono); letter-spacing: .04em; color: var(--ink-3);
}
.tl-label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.tl-track { flex: 1; height: 100%; }
.tl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--rule); }
.tl-lane[data-domain="health"]  { --c: var(--health); }
.tl-lane[data-domain="edu"]     { --c: var(--edu); }
.tl-lane[data-domain="defense"] { --c: var(--defense); }
.tl-lane[data-domain="startup"] { --c: var(--startup); }
.tl-lane[data-domain="ship"]    { --c: var(--ship); }

.tl-bar {
  position: absolute; top: 5px; bottom: 5px;
  left: calc((var(--s) - var(--from)) / (var(--to) - var(--from)) * 100%);
  width: calc((var(--e) - var(--s)) / (var(--to) - var(--from)) * 100%);
  display: flex; align-items: center; padding: 0 .55rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--c) 18%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  color: var(--ink); text-decoration: none;
  font: 500 .74rem/1 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: clip;
  transform-origin: left center;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.tl-bar:hover { background: var(--c); color: #fff; box-shadow: 0 6px 16px -6px var(--c); z-index: 2; overflow: visible; }
.tl-tiny { font-size: 0; padding: 0; }
.tl-tiny::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: .35rem .6rem; border-radius: 6px; background: var(--ink); color: var(--paper);
  font: 500 .7rem/1.2 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.tl-tiny:hover::after { opacity: 1; }
.tl-now { border-right: 0; border-radius: 6px 0 0 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, var(--surface)) 70%, transparent); }

.tl-dot {
  position: absolute; top: 50%;
  left: calc((var(--s) - var(--from)) / (var(--to) - var(--from)) * 100%);
  width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  border-radius: 50%; background: var(--surface); border: 2.5px solid var(--c);
  transition: transform .2s var(--ease), background .2s;
}
.tl-dot:hover { transform: scale(1.35); background: var(--c); z-index: 3; }
.tl-dot::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 9px); left: 50%;
  transform: translate(-50%, 4px);
  padding: .35rem .6rem; border-radius: 6px;
  background: var(--ink); color: var(--paper);
  font: 500 .7rem/1.2 var(--sans); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.tl-dot:hover::after { opacity: 1; transform: translate(-50%, 0) scale(.75); }

/* ---------------------------------------------------------------- Experience */
.jobs { position: relative; }
.job {
  --c: var(--ink-3);
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  grid-template-areas: "when role" "when org" "when points";
  column-gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 90px;
  transition: background .4s;
}
.job[data-domain="health"]  { --c: var(--health); }
.job[data-domain="edu"]     { --c: var(--edu); }
.job[data-domain="defense"] { --c: var(--defense); }
.job[data-domain="startup"] { --c: var(--startup); }
.job-head { display: contents; }
.job-when {
  grid-area: when; margin: .35rem 0 0;
  font: 500 .82rem/1.3 var(--mono); color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.job-when em { font-style: normal; color: var(--accent); }
.job-role { grid-area: role; }
.job-org { grid-area: org; }
.job-role { margin: 0; font: 500 1.6rem/1.15 var(--serif); letter-spacing: -.015em; }
.job-org { margin: .3rem 0 0; font-weight: 500; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.job-domain {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .12rem .55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 13%, transparent);
  color: color-mix(in srgb, var(--c) 80%, var(--ink));
  font: 500 .68rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.job-domain::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.job-points { grid-area: points; margin: .9rem 0 0; padding: 0; list-style: none; max-width: 50rem; }
.job-points li { position: relative; padding-left: 1.3rem; margin: .45rem 0; color: var(--ink-2); }
.job-points li::before { content: "–"; position: absolute; left: 0; top: 0; color: var(--c); font-weight: 600; }
.job-points strong { color: var(--ink); font-weight: 600; }
.job:target, .job.flash { animation: flash 1.8s var(--ease); }
@keyframes flash { 0% { background: color-mix(in srgb, var(--c) 14%, transparent); } 100% { background: transparent; } }

@media (max-width: 720px) {
  .job { grid-template-columns: 1fr; grid-template-areas: "when" "role" "org" "points"; }
  .job-when { margin: 0 0 .4rem; }
}

/* ---------------------------------------------------------------------- Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 90px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--rule-2); }
.card-feature, .card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }

.shot {
  position: relative; display: block;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
/* faux browser chrome */
.shot::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 22px; z-index: 1;
  background:
    radial-gradient(circle at 12px 11px, #ed6a5e 3.5px, transparent 4px),
    radial-gradient(circle at 26px 11px, #f4bf4f 3.5px, transparent 4px),
    radial-gradient(circle at 40px 11px, #61c554 3.5px, transparent 4px),
    var(--surface-2);
  border-bottom: 1px solid var(--rule);
}
.shot img, .shot iframe {
  position: absolute; top: 22px; left: 0; width: 100%; height: calc(100% - 22px);
  object-fit: cover; object-position: top center; border: 0;
  transition: transform .8s var(--ease);
}
.card:hover .shot img { transform: scale(1.035); }
.shot-video::before { display: none; }
.shot-video iframe { top: 0; height: 100%; }
.shot-pair, .shot-trio { display: grid; gap: 2px; background: var(--rule); }
.shot-pair { grid-template-columns: 1fr 1fr; }
.shot-trio { grid-template-columns: 1fr 1fr 1fr; }
.shot-pair img, .shot-trio a { position: relative; top: 0; height: 100%; }
.shot-pair, .shot-trio { padding-top: 22px; }
.shot-trio a { display: block; overflow: hidden; }
.shot-trio img { top: 0; height: 100%; }

.card-feature .shot, .card-wide .shot { aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--rule); }
.card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-feature .card-body, .card-wide .card-body { padding: 2rem; justify-content: center; }
.card-meta { order: -1; margin: 0; font: 500 .72rem/1.45 var(--mono); letter-spacing: .03em; color: var(--ink-3); }
.card h3 { margin: 0; font: 500 1.45rem/1.15 var(--serif); letter-spacing: -.015em; }
.card-feature h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.card-body > p:not(.card-meta):not(.card-links) { margin: 0; color: var(--ink-2); font-size: .97rem; }
.card-body strong { color: var(--ink); }
.card-links { margin: auto 0 0; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .88rem; font-weight: 500; }
.card-links a { text-decoration: none; }
.card-links a::after { content: " ↗"; font-size: .8em; opacity: .6; }

@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
  .card-feature, .card-wide { display: flex; }
  .card-feature .shot, .card-wide .shot { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--rule); }
  .card-feature .card-body, .card-wide .card-body { padding: 1.4rem 1.5rem 1.5rem; }
}

/* --------------------------------------------------------- Skills & facts */
.skills .section-head, .education .section-head, .recognition .section-head { margin-bottom: 1.5rem; }
.skill-list { margin: 0; border-bottom: 1px solid var(--rule); }
.skill-list > div { display: grid; grid-template-columns: 11rem 1fr; column-gap: 2.5rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.skill-list dt { font: 500 .74rem/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.skill-list dd { margin: 0; color: var(--ink); font-size: 1.05rem; }
@media (max-width: 720px) { .skill-list > div { grid-template-columns: 1fr; row-gap: .3rem; } }

.education, .recognition { display: inline-block; vertical-align: top; width: calc(50% - 1.5rem); }
.education { margin-right: 2.5rem; }
@media (max-width: 820px) { .education, .recognition { display: block; width: auto; margin-right: 0; } }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--rule);
}
.facts strong { font-weight: 600; }
.facts span { grid-column: 1; color: var(--ink-3); font-size: .93rem; }
.facts time { grid-column: 2; grid-row: 1 / span 2; font: 500 .8rem/1.6 var(--mono); color: var(--ink-3); }

/* -------------------------------------------------------------------- Beyond */
.beyond-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.beyond-feature { display: flex !important; }
.beyond-feature .shot { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--rule); }
.beyond-feature .shot::before { display: none; }
.beyond-feature .shot img { top: 0; height: 100%; object-position: center; }
.beyond-feature .card-body { padding: 1.6rem; }
.beyond-text > p { margin: 0 0 1.5rem; font-size: 1.12rem; color: var(--ink-2); }
.anecdote { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--accent-bg); }
.anecdote .eyebrow { color: var(--accent-ink); margin-bottom: .6rem; }
.anecdote p:last-child { margin: 0; font: 400 1.12rem/1.5 var(--serif); }
@media (max-width: 860px) { .beyond-grid { grid-template-columns: 1fr; } }

.site-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 5rem var(--pad) 3rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  font: 400 .78rem/1.5 var(--mono); color: var(--ink-3);
}

/* ------------------------------------------------------- Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* View-transition (site ⇄ one-page) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .55s; animation-timing-function: var(--ease); }

.shot-pair img { object-position: left top; }

/* Game art: no faux browser chrome, show the whole poster */
.shot-art::before { display: none; }
.shot-art img { top: 0; height: 100%; object-position: center; image-rendering: pixelated; }
.card-feature .shot-art { background: #7cc4ea; }

/* Click-to-play video (YouTube loads only on click) */
.shot-video { cursor: pointer; background: #000; }
.shot-video img { top: 0; height: 100%; object-position: center; }
.shot-video .play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; z-index: 2;
  border-radius: 14px; background: rgba(20,20,20,.78);
  transition: background .2s, transform .2s var(--ease);
}
.shot-video .play::after {
  content: ""; position: absolute; left: 28px; top: 14px;
  border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff;
}
.shot-video:hover .play { background: #e33; transform: scale(1.06); }

/* Upcoming milestone on the timeline */
.tl-dot-next { border-style: dashed; background: color-mix(in srgb, var(--c) 18%, var(--surface)); animation: nowPulse 2.4s var(--ease) infinite; }
@keyframes nowPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.tl-dot:last-child::after { left: auto; right: -6px; transform: translate(0, 4px); }
.tl-dot:last-child:hover::after { transform: translate(0, 0) scale(.75); transform-origin: right bottom; }

/* Vision Craft LLC umbrella line under "Things I've shipped" */
.umbrella {
  display: inline-block;
  margin: 1.1rem 0 0; padding: .45rem .9rem;
  border: 1px solid var(--rule-2); border-radius: 999px;
  font: 500 .78rem/1.3 var(--mono); color: var(--ink-2);
}
.umbrella::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .55rem; vertical-align: .05em; border-radius: 2px; background: var(--ship); }
