/* wzsh.dev — dark theme after the V2X isometric animations (red / teal / gray) */

:root {
  --bg: #111214;
  --bg-2: #0C0D0F;
  --surface: #18191C;
  --surface-2: #1F2124;

  --ink: #F2F2F3;
  --ink-2: #C5C8CC;
  --muted: #8C9096;
  --faint: #5E6268;

  --line: #2A2C30;
  --line-2: #3A3D42;

  --red: #EC4426;
  --red-text: #F26A4F;

  --teal: #0782A1;
  --teal-dark: #066F8A;
  --teal-text: #45B6D4;
  --teal-soft: rgba(7, 130, 161, .16);

  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 44px rgba(0, 0, 0, .5);

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-title: "Inter Tight", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

p { margin: 0; }

a { color: var(--teal-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #6CC8E0; }

::selection { background: rgba(7, 130, 161, .45); color: #fff; }

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

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px; top: 10px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 8px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
.skip:focus { left: 16px; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 18, 20, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-title); font-size: 19px; font-weight: 700; letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 24px; height: 24px; }
.brand .tld { color: var(--muted); font-weight: 500; }

.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }

.nav-link {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border: 1.5px solid transparent; border-radius: 5px;
  color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.nav-link:hover { border-color: var(--teal); background: var(--teal-soft); color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- shared bits (taken from the video labels) ---------- */

.legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.dot.teal { background: var(--teal-text); }

.rule { margin: 22px 0; border: 0; border-top: 1px solid var(--line); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* teal tag: "CAM" */
.tag {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 26px; padding: 0 9px;
  border: 1.5px solid var(--teal); border-radius: 5px;
  background: var(--teal); color: #fff;
  font-size: 12.5px; font-weight: 700; line-height: 1; letter-spacing: .02em;
  white-space: nowrap; text-decoration: none;
}
.tag .n {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; color: var(--teal-dark); font-size: 10.5px;
}
.tag.outline { background: transparent; color: var(--teal-text); }
.tag.outline .n { background: transparent; border: 1.3px solid currentColor; color: currentColor; }
a.tag.outline:hover { background: var(--teal-soft); color: var(--ink); }
.tag.redfill { background: var(--red); border-color: var(--red); color: #fff; }
.tag.gray { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px; font-weight: 600; }

/* numbered circle: "①" */
.num {
  display: inline-grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--teal); background: transparent; color: var(--teal-text);
  font-size: 12px; font-weight: 700; line-height: 1;
}

/* gray outline chip */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2);
  color: var(--ink-2); font-size: 12.5px; line-height: 1; white-space: nowrap;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 18px;
  border: 1.5px solid var(--teal); border-radius: var(--radius-sm);
  background: var(--teal); color: #fff;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: #0991B3; border-color: #0991B3; color: #fff; }
.btn.outline { background: transparent; color: var(--teal-text); border-color: var(--teal); }
.btn.outline:hover { background: var(--teal-soft); color: var(--ink); }
.btn.ok { background: var(--teal-soft); color: var(--ink); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* LinkedIn button */
.btn.linkedin {
  background: var(--surface-2); border-color: var(--line-2); color: var(--ink);
}
.btn.linkedin .in {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px;
  background: #0A66C2; color: #fff;
}
.btn.linkedin .in svg { width: 13px; height: 13px; }
.btn.linkedin .ext { color: var(--muted); transition: transform .15s, color .15s; }
.btn.linkedin:hover { background: #22262B; border-color: #0A66C2; color: #fff; }
.btn.linkedin:hover .ext { color: var(--ink); transform: translate(2px, -2px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.iso text { font-family: var(--font); }

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

.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hero-inner {
  position: relative;
  display: flex; align-items: center;
  min-height: min(700px, calc(100vh - 62px));
  padding-block: 56px;
}
.hero-card { width: 100%; max-width: 560px; padding: 34px 34px 32px; background: rgba(24, 25, 28, .94); }
.hero h1 { margin: 14px 0 16px; font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; }
.lead { color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.now { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; color: var(--ink); font-size: 14.5px; }
.now b { font-weight: 700; }
.hero .actions { margin-top: 26px; }

/* ---------- sections ---------- */

.section { padding-block: 76px; }
.section + .section { padding-top: 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 24px; margin-bottom: 26px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 36px); }
.section-head h2 + .legend { margin-top: 8px; }
.section-head .more { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }

.page-head { padding-block: 64px 36px; }
.page-head h1 { font-size: clamp(40px, 6vw, 60px); letter-spacing: -.03em; }
.page-head .legend { margin-top: 12px; }
.page-head .toc { margin-top: 24px; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 24px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; color: var(--ink); font-family: var(--font-title); font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* focus areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); }
.area { padding: 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.area:first-child { border-left: 0; }
.area h3 { font-size: 21px; margin-top: 6px; }
.area .chips { margin-top: auto; padding-top: 6px; }

/* project cards (home) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.pcard {
  display: flex; flex-direction: column; overflow: hidden;
  color: inherit; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pcard:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pcard .media { aspect-ratio: 360 / 220; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.pcard .media svg, .pcard .media video { width: 100%; height: 100%; object-fit: cover; }
.pcard .body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.pcard h3 { font-size: 20px; }
.pcard p { font-size: 15.5px; }
.pcard .go { margin-top: auto; padding-top: 4px; color: var(--teal-text); font-size: 15px; font-weight: 600; }
.go .arrow { display: inline-block; transition: transform .15s; }
.pcard:hover .go .arrow { transform: translateX(3px); }

.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; color: var(--muted); font-size: 13.5px; }

/* call to action */
.cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 40px; padding: 34px 36px; }
.cta h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 10px; }

/* ---------- projects page ---------- */

.toc { display: flex; flex-wrap: wrap; gap: 8px; }

.projects { display: grid; gap: 28px; padding-bottom: 88px; }

.project { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); overflow: hidden; scroll-margin-top: 90px; }
.project .media { background: var(--bg-2); border-right: 1px solid var(--line); }
.project .body { padding: 30px 34px 32px; }
.project h2 { font-size: 26px; margin: 14px 0 12px; }
.project p + p { margin-top: 12px; }
.project .chips { margin-top: 20px; }

.did { margin: 16px 0 0; padding: 0; list-style: none; }
.did li { position: relative; margin: 8px 0; padding-left: 24px; }
.did li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 9px; height: 11px; border-radius: 2px;
  background: var(--teal); box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.6px #6A6E74;
}

.result {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px;
  margin-top: 20px; padding: 14px 18px;
  border: 1px solid var(--line-2); border-left: 3px solid var(--red); border-radius: 8px;
  background: var(--surface-2);
}
.result b { color: var(--ink); font-family: var(--font-title); font-size: 26px; letter-spacing: -.02em; }
.result span { font-size: 15px; }

.featured { grid-template-columns: 1fr; }
.featured .videos { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.vid { margin: 0; background: #080808; }
.vid video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #080808; }

/* the V2X animations were rendered on a light background; inverting lightness (hue kept) fits them to the dark theme.
   Remove the class from a <video> to show the original colors. */
video.night { filter: invert(1) hue-rotate(180deg) saturate(1.5) brightness(1.08); background: #080808; }
.project-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); }

/* gallery / carousel */
.gallery { display: flex; flex-direction: column; }
.g-stage { position: relative; background: var(--bg-2); }
.g-track {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 16 / 10;
}
.g-track::-webkit-scrollbar { display: none; }
.g-track:focus-visible { outline-offset: -3px; }
.g-slide {
  position: relative; flex: 0 0 100%; margin: 0;
  display: grid; place-items: center; padding: 14px;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.g-slide > img, .g-slide > video, .g-slide > svg {
  position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); max-width: none;
  object-fit: contain; border-radius: 4px;
}
.g-slide.zoomable { cursor: zoom-in; }
.g-slide .zoom {
  position: absolute; right: 22px; top: 22px;
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: rgba(17, 18, 20, .82); color: var(--ink); cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.g-slide:hover .zoom, .g-slide .zoom:focus-visible { opacity: 1; }
.g-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: rgba(17, 18, 20, .85); color: var(--ink);
  font: 600 20px/1 var(--font); cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}
.g-nav:hover { background: var(--teal); border-color: var(--teal); }
.g-prev { left: 12px; }
.g-next { right: 12px; }
.g-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px 10px; }
.g-cap { flex: 1; min-width: 0; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.g-count { flex: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.g-thumbs { position: relative; display: flex; gap: 8px; padding: 2px 16px 16px; overflow-x: auto; scrollbar-width: thin; }
.g-thumb {
  position: relative; flex: none; width: 72px; height: 48px; padding: 0; overflow: hidden;
  border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--surface);
  cursor: pointer; opacity: .6; transition: opacity .15s, border-color .15s;
}
.g-thumb:hover { opacity: .9; }
.g-thumb[aria-current="true"] { border-color: var(--teal-text); opacity: 1; }
.g-thumb img, .g-thumb video, .g-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.g-thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .35); color: #fff; font-size: 14px;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink);
}
.lightbox::backdrop { background: rgba(6, 7, 8, .94); }
.lb-fig { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; width: 100%; height: 100%; margin: 0; padding: 64px 76px 22px; }
.lb-fig img { width: 100%; height: 100%; object-fit: contain; }
.lb-fig figcaption { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; color: var(--ink-2); text-align: center; }
.lb-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: rgba(24, 25, 28, .9); color: var(--ink);
  font: 500 22px/1 var(--font); cursor: pointer;
}
.lb-btn:hover { background: var(--teal); border-color: var(--teal); }
.lb-close { top: 14px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- about page ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.prose p { font-size: 17.5px; }
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--ink); font-weight: 600; }

.facts { padding: 28px 28px 22px; }
.facts h2 { font-size: 24px; }
.facts .rule { margin: 18px 0 16px; }
.facts dl { margin: 0; }
.facts dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-top: 1px dashed var(--line-2); }
.facts dl div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); font-size: 13.5px; padding-top: 2px; }
.facts dd { margin: 0; color: var(--ink); font-size: 15px; }

/* timeline drawn like the Local Dynamic Map card */
.lane-card { padding: 30px 32px; }
.lane { position: relative; margin: 0; padding: 0; list-style: none; }
.lane::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 46px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
}
.lane::after {
  content: ""; position: absolute; left: 22px; top: 10px; bottom: 10px;
  border-left: 1.5px dashed #44484E;
}
.lane li { position: relative; z-index: 1; display: grid; grid-template-columns: 46px 1fr; column-gap: 22px; padding: 16px 0; }
.lane .node {
  position: relative; justify-self: center; margin-top: 1px;
  width: 16px; height: 24px; border: 1.5px solid #7B8086; border-radius: 4px; background: var(--surface);
}
.lane .node::after { content: ""; position: absolute; inset: 5px 3px; border-radius: 1.5px; background: var(--teal); }
.lane .now .node::after { background: var(--red); }
.lane .node::before {
  content: ""; position: absolute; left: calc(100% + 1.5px); top: 50%; width: 29px;
  border-top: 1px solid var(--line-2);
}
.lane .when { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.lane .when .t { color: var(--muted); font-size: 13.5px; }
.lane h3 { font-size: 18px; margin: 8px 0 3px; }
.lane p { font-size: 15px; }

/* skills, listed like the CV */
.skill-list { padding: 6px 30px; }
.skill-row { display: grid; grid-template-columns: 74px minmax(0, 240px) 1fr; align-items: start; gap: 8px 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.skill-row:first-child { border-top: 0; }
.skill-row .tag { justify-self: start; }
.skill-row h3 { font-size: 17px; line-height: 26px; }
.skill-row .list { line-height: 26px; }
.list { margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15.5px; }
.list li { display: inline; }
.list li:not(:last-child)::after { content: ", "; }

.pub { display: grid; grid-template-columns: auto 1fr; gap: 18px 24px; align-items: start; padding: 28px 30px; }
.pub h3 { font-size: 20px; margin-bottom: 8px; }
.pub h3 a { color: var(--ink); text-decoration: none; }
.pub h3 a:hover { color: var(--teal-text); text-decoration: underline; }
.pub .by { font-size: 15px; }
.pub .by b { color: var(--ink); font-weight: 600; }
.pub .actions { margin-top: 18px; }

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

.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px; align-items: start; padding-bottom: 88px; }
.mail-card { overflow: hidden; }
.mail-card .scene { aspect-ratio: 420 / 250; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mail-card .scene svg { width: 100%; height: 100%; }
.mail-card .pad { padding: 28px 30px 30px; }
.email {
  display: inline-block; margin: 6px 0 20px;
  color: var(--ink); font-family: var(--font-title); font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -.02em;
  text-decoration: none; overflow-wrap: anywhere;
}
.email:hover { color: var(--teal-text); }
.mail-card h3 { font-size: 18px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.compose { padding: 28px 30px 30px; }
.compose h2 { font-size: 24px; margin-bottom: 8px; }
.compose .hint { color: var(--muted); font-size: 14.5px; }
.field { display: grid; gap: 6px; margin-top: 16px; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2);
  color: var(--ink); font: 400 16px/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7, 130, 161, .3);
}
.compose .btn { width: 100%; margin-top: 20px; }
.compose .status { min-height: 1.5em; margin-top: 12px; color: var(--teal-text); font-size: 14px; }

/* ---------- 404 ---------- */

.lost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-block: 72px 96px; }
.lost h1 { font-size: clamp(36px, 5vw, 52px); margin: 14px 0 16px; }
.lost .scene { overflow: hidden; background: var(--bg-2); }
.lost .scene svg { width: 100%; height: auto; }

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

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 26px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--teal-text); text-decoration: underline; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .skill-row { grid-template-columns: 74px 1fr; }
  .skill-row .list { grid-column: 2; }
}

@media (max-width: 860px) {
  .project, .project-row { grid-template-columns: 1fr; }
  .project .media { border-right: 0; border-bottom: 1px solid var(--line); }
  .areas { grid-template-columns: 1fr; }
  .area { border-left: 0; border-top: 1px solid var(--line); }
  .area:first-child { border-top: 0; }
  .lost { grid-template-columns: 1fr; padding-block: 40px 72px; }
}

@media (max-width: 820px) {
  .hero-scene { position: relative; height: 360px; }
  .hero-inner { min-height: 0; margin-top: -48px; padding-block: 0 44px; }
  .hero-card { padding: 26px 24px 26px; }
}

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 18px 22px; }
  .stat:first-child { border-top: 0; }
  .featured .videos { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 28px 24px; }
  .lb-fig { padding: 64px 12px 18px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding-block: 56px; }
  .page-head { padding-block: 44px 28px; }
  .project .body, .lane-card, .facts, .compose, .mail-card .pad, .pub { padding: 24px 20px; }
  .skill-list { padding: 4px 20px; }
  .skill-row { grid-template-columns: 1fr; gap: 8px; }
  .skill-row .list { grid-column: auto; }
  .pub { grid-template-columns: 1fr; }
  .lead, .prose p { font-size: 16.5px; }
  .g-nav { width: 34px; height: 34px; }
}

@media (max-width: 420px) {
  .nav-link { padding: 0 8px; font-size: 14px; }
  .brand .tld { display: none; }
  .facts dl div { grid-template-columns: 1fr; gap: 2px; }
}

@media (hover: none) {
  .g-slide .zoom { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
