/* Kevin Lee portfolio, pixel/retro design system.
   Minimal black-on-white with a Silkscreen pixel accent layer, custom
   crosshair cursor, and click sparks. Recreated from the Claude Design
   handoff. No border-radius, no shadows (except the cursor drop-shadow). */

:root {
  --ink: #111;
  --ink-soft: #3a3a3a;
  --body: #333;
  --body-2: #555;
  --muted: #6d6d6d;
  --muted-2: #6f6f6f;
  --faint: #aaa;
  --faint-2: #b0b0b0;

  --line: #e8e8e8;      /* main dividers */
  --line-sub: #f0f0f0;  /* subsection dividers */
  --line-box: #e0e0e0;  /* box borders */
  --line-foot: #eaeaea; /* footer top */
  --box-fill: #fcfcfc;

  --accent: rgb(42, 92, 184);       /* labels, numbers */
  --cat-green: rgb(46, 158, 94);    /* student work / design */
  --cat-blue: rgb(66, 118, 206);    /* figma work / strategy */
  --cat-orange: rgb(219, 127, 44);  /* ai work / engineering */
  --ok: rgb(36, 140, 78);
  --err: rgb(196, 60, 44);

  --gutter: clamp(24px, 5vw, 72px);
  --maxw: 1160px;

  --pix: "Silkscreen", monospace;
  --sans: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, sans-serif;

  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cdefs%3E%3Cfilter id='s' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeDropShadow dx='0' dy='0.5' stdDeviation='0.6' flood-color='black' flood-opacity='0.32'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23s)'%3E%3Cline x1='11' y1='4' x2='11' y2='18' stroke='%23474747' stroke-width='1.1'/%3E%3Cline x1='4' y1='11' x2='18' y2='11' stroke='%23474747' stroke-width='1.1'/%3E%3C/g%3E%3C/svg%3E") 11 11, crosshair;
  --cursor-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cdefs%3E%3Cfilter id='s' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeDropShadow dx='0' dy='0.5' stdDeviation='0.6' flood-color='black' flood-opacity='0.32'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23s)'%3E%3Cline x1='11' y1='4' x2='11' y2='18' stroke='%23474747' stroke-width='1.4'/%3E%3Cline x1='4' y1='11' x2='18' y2='11' stroke='%23474747' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") 11 11, pointer;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  cursor: var(--cursor);
}
::selection { background: #111; color: #fff; }

a { color: #000; text-decoration: none; }
a:hover { opacity: 0.7; }
a, [role=button], button, summary { cursor: var(--cursor-i); }

/* image tiles zoom on hover, no clip (wrapper has no overflow:hidden) */
.tile { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); display: block; }
.tile:hover { transform: scale(1.045); opacity: 1; }

/* ---------- page frame ---------- */
.page {
  min-height: 100vh;
  padding: 0 var(--gutter);
  position: relative;
}
#spark-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 9999;
}
.main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-bottom: 40px;
  position: relative; z-index: 2;
}

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; gap: 24px;
  padding: 24px 0; position: relative; z-index: 2;
}
.logo { display: flex; align-items: center; }
.logo img { height: 30px; width: auto; display: block; }
.header-name { font-size: 14px; letter-spacing: 0.01em; }
.header-name b { font-weight: 600; }
.header-name span { color: #666; }
.nav {
  font-family: var(--pix); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  display: inline-flex; align-items: center;
  padding: 14px 0; margin: -14px 0;  /* taller hit area, same visual height */
}
.nav-group {
  margin-left: auto;            /* desktop: nav sits at the right */
  display: flex; align-items: center; gap: 28px; flex-wrap: nowrap;
}

/* ---------- hero ---------- */
.hero {
  height: 56vh; max-height: 60vh; position: relative;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  background: #fff;
}
#hero-canvas {
  width: 100%; height: 100%; display: block;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cline x1='10' y1='3' x2='10' y2='17' stroke='%23a0a0a0' stroke-width='1'/%3E%3Cline x1='3' y1='10' x2='17' y2='10' stroke='%23a0a0a0' stroke-width='1'/%3E%3C/svg%3E") 10 10, crosshair;
}

/* ---------- landing intro ---------- */
.intro { padding: 100px 0 72px; display: flex; justify-content: center; }
.intro-line {
  margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 8px 16px;
  font-family: var(--pix); font-size: 20px; font-weight: 400;
  line-height: 1.4; color: #111;
}
.intro-line .green { color: var(--cat-green); }
.intro-line .blue { color: var(--cat-blue); }
.intro-line .orange { color: var(--cat-orange); }
.intro-line .x { color: #c9c9c9; }
.status { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.status .k {
  font-family: var(--pix); font-size: 9px; letter-spacing: 0.16em;
  color: var(--accent); text-transform: uppercase;
}
.status .v {
  font-family: var(--pix); font-size: 10px; letter-spacing: 0.14em;
  color: var(--muted-2); text-transform: uppercase;
}

/* ---------- work groups ---------- */
.work-group { padding-top: 40px; }
.wg-head {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0 14px; border-top: 1px solid var(--line);
  cursor: var(--cursor-i); user-select: none;
}
.wg-dot { width: 7px; height: 7px; display: block; }
.wg-num { font-family: var(--pix); font-size: 10px; letter-spacing: 0.14em; }
.wg-title {
  margin: 0; font-family: var(--pix); font-size: 16px; font-weight: 400;
  letter-spacing: 0.11em; text-transform: uppercase; line-height: 1;
}
.wg-count { font-family: var(--pix); font-size: 9px; letter-spacing: 0.14em; color: var(--faint-2); }
.wg-spacer { flex: 1; }
.wg-toggle {
  font-family: var(--pix); font-size: 12px; color: var(--faint-2);
  transition: color 0.25s ease;
}
.wg-head:hover .wg-toggle { color: #111; }

.wg-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-group[data-open="true"] .wg-body { grid-template-rows: 1fr; }
.wg-body-inner {
  min-height: 0; overflow: hidden; opacity: 0;
  transition: opacity 0.4s ease; margin: 0 -18px; padding: 0 18px;
}
.work-group[data-open="true"] .wg-body-inner { opacity: 1; }
.wg-grid {
  display: grid; gap: clamp(20px, 2.5vw, 40px);
  padding-top: 24px; padding-bottom: 12px;
}
.wg-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.wg-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- tiles ---------- */
.tile-img {
  width: 100%; height: clamp(220px, 26vw, 340px);
  background-color: #fbfbfb;
  background-image: radial-gradient(#d6d6d6 1px, transparent 1px);
  background-size: 9px 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; border: 1px solid #ededed; overflow: hidden;
}
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-img .ph {
  font-family: var(--pix); font-size: 10px; letter-spacing: 0.14em;
  color: #111; background: #fff; padding: 5px 9px;
}
.tile-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.tile-title { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #000; }
.tile-arrow { font-family: var(--pix); font-size: 11px; color: #111; }
.tile-desc {
  margin: 0; font-family: var(--pix); font-size: 10px; line-height: 1.6;
  letter-spacing: 0.04em; color: var(--body-2); text-transform: uppercase;
}

/* ---------- contact box (Let's talk) ---------- */
.contact { padding: 140px 0 8px; }
.box { border: 1px solid var(--line-box); background: var(--box-fill); padding: clamp(28px, 4vw, 56px); }
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(28px, 4vw, 64px); }
.contact-left {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px; align-self: stretch;
  border-right: 1px solid var(--line); padding-right: clamp(28px, 4vw, 56px);
}
.contact-title { display: flex; align-items: baseline; gap: 18px; }
.contact-title .k { font-family: var(--pix); font-size: 9px; letter-spacing: 0.16em; color: var(--accent); }
.contact-title .v { font-family: var(--pix); font-size: clamp(15px, 1.5vw, 20px); letter-spacing: 0.02em; color: #111; }
.contact-body { margin: 0; font-size: 15px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.links-label {
  font-family: var(--pix); font-size: 9px; letter-spacing: 0.14em;
  color: var(--muted-2); text-transform: uppercase; margin-bottom: 8px;
}
.links-row { display: flex; white-space: nowrap; gap: 24px; }
.links-row a { font-family: var(--pix); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

.contact-right { display: flex; flex-direction: column; gap: 28px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.5vw, 40px); }
.field { display: block; }
.field-label {
  display: block; font-family: var(--pix); font-size: 9px; letter-spacing: 0.14em;
  color: var(--muted-2); text-transform: uppercase; margin-bottom: 10px;
}
.field input, .field textarea {
  width: 100%; box-sizing: border-box; border: none; border-bottom: 1px solid #d8d8d8;
  padding: 6px 0 10px; font-family: var(--sans); font-size: 15px; color: #111;
  background: transparent; outline: none;
}
.field textarea { line-height: 1.6; resize: none; overflow: hidden; }
.field input:focus, .field textarea:focus { border-bottom: 1px solid #111; }
.send-row { display: flex; align-items: center; gap: 20px; }
.send-btn {
  background: var(--ink-soft); color: #fff; border: none; padding: 14px 26px;
  font-family: var(--pix); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; transition: background 0.15s ease;
}
.send-btn:hover { background: var(--accent); opacity: 1; }
.send-note { font-family: var(--pix); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-foot); margin-top: 0;
  padding: 56px 0 40px; text-align: right; position: relative; z-index: 2;
}
.footer-logo { display: flex; justify-content: flex-end; margin-bottom: 32px; }
.footer-logo.tight { margin-bottom: 24px; }
.footer-name { font-size: 14px; margin-bottom: 18px; }
.footer-name b { font-weight: 600; }
.footer-name span { color: #666; }
.footer-credit {
  font-family: var(--pix); font-size: 9px; letter-spacing: 0.14em;
  color: var(--faint); text-transform: uppercase; margin-bottom: 26px;
}
.footer-nav {
  display: flex; gap: 28px; justify-content: flex-end; align-items: center;
  font-family: var(--pix); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  margin: -12px 0;  /* absorb the links' vertical padding so spacing holds */
}
.footer-nav a { display: inline-flex; align-items: center; padding: 12px 0; }

/* ---------- about ---------- */
.about-hero {
  padding: 56px 0 64px; display: grid; grid-template-columns: 1fr 320px;
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.eyebrow .dot { width: 7px; height: 7px; display: inline-block; }
.eyebrow .t { font-family: var(--pix); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.about-h1 {
  margin: 0 0 28px; font-family: var(--pix); font-weight: 400;
  font-size: clamp(26px, 3.4vw, 48px); line-height: 1.2; letter-spacing: 0.01em; color: var(--ink-soft);
}
.about-h1 .period { color: var(--accent); }
.lede {
  margin: 0 0 16px; max-width: 30em; font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 300; line-height: 1.6; letter-spacing: -0.01em; color: #111; text-wrap: pretty;
}
.about-support { margin: 0; max-width: 34em; font-size: 15px; line-height: 1.7; color: var(--body-2); text-wrap: pretty; }
/* A quiet "system note" credit, styled like an image caption with a Claude-orange nod. */
.about-credit {
  margin: 0; max-width: 46em;
  font-family: var(--pix); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; line-height: 1.9; color: var(--cat-orange);
  text-wrap: pretty;
}
.about-photo { width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.photo-slot {
  width: 100%; height: 100%;
  background-color: #f4f4f4;
  background-image: radial-gradient(#d6d6d6 1px, transparent 1px);
  background-size: 9px 9px;
  display: flex; align-items: center; justify-content: center;
}
.photo-slot .ph { font-family: var(--pix); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }

/* section header (numbered) */
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 36px; }
.sec-num { font-family: var(--pix); font-size: 10px; letter-spacing: 0.14em; color: var(--accent); }
.sec-title {
  margin: 0; font-family: var(--pix); font-size: 14px; font-weight: 400;
  letter-spacing: 0.11em; text-transform: uppercase; line-height: 1.5; color: var(--muted);
}

.three-things { padding: 0 0 72px; }
.tt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 40px); }
.tt-card { padding-top: 24px; }
.tt-card { border-top: 2px solid var(--ink); }
.tt-card.orange { border-top-color: var(--cat-orange); }
.tt-card.blue { border-top-color: var(--cat-blue); }
.tt-card.green { border-top-color: var(--cat-green); }
.tt-tag { font-family: var(--pix); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.tt-card.orange .tt-tag { color: var(--cat-orange); }
.tt-card.blue .tt-tag { color: var(--cat-blue); }
.tt-card.green .tt-tag { color: var(--cat-green); }
.tt-card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--body); text-wrap: pretty; }

/* two-column narrative sections (journey / believe / hobbies / case study) */
.split {
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 4vw, 64px);
  padding: 52px 0; border-top: 1px solid var(--line-sub);
}
.split .sec-head { margin-bottom: 0; align-self: start; }
.split-body { min-width: 0; }

.journey { display: flex; flex-direction: column; gap: 28px; }
.journey-row { display: grid; grid-template-columns: 150px 1fr; gap: clamp(16px, 2vw, 32px); align-items: center; }
.journey-side { display: flex; flex-direction: column; gap: 9px; }
.journey-logo { height: 20px; width: auto; max-width: 132px; object-fit: contain; object-position: left center; display: block; }
.journey-tag { font-family: var(--pix); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.journey-sub { font-size: 11.5px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.journey-row p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--body); text-wrap: pretty; }

.pullquote {
  margin: 0; padding-left: 22px; border-left: 2px solid var(--cat-blue);
  font-size: clamp(18px, 1.7vw, 23px); font-weight: 300; letter-spacing: -0.01em;
  line-height: 1.5; color: #111; text-wrap: pretty;
}

.hobbies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px clamp(20px, 2.5vw, 40px); }
.hobby { display: flex; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--body); }
.hobby .tag {
  font-family: var(--pix); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  padding-top: 5px; min-width: 64px;
}
.hobby .txt { text-wrap: pretty; }

/* ---------- case study ---------- */
.cs-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.cs-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.cs-eyebrow .dot { width: 7px; height: 7px; display: block; }
.cs-eyebrow .t { font-family: var(--pix); font-size: 10px; letter-spacing: 0.14em; }
.cs-title { margin: 0 0 14px; font-size: clamp(36px, 4.5vw, 64px); font-weight: 200; letter-spacing: -0.02em; line-height: 1.05; }
.cs-sub { margin: 0 0 28px; font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; color: var(--body); }
.cs-tags { display: flex; gap: 36px; font-family: var(--pix); font-size: 11px; letter-spacing: 0.14em; color: var(--faint-2); text-transform: uppercase; flex-wrap: wrap; }
.cs-tags .tag-hl { color: rgb(19,138,74); }

.cs-intro { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 4vw, 64px); padding: 44px 0 48px; }
.cs-meta { display: flex; flex-direction: column; gap: 18px; }
.cs-meta .k { font-family: var(--pix); font-size: 9px; letter-spacing: 0.14em; color: var(--muted-2); text-transform: uppercase; margin-bottom: 6px; }
.cs-meta .v { font-size: 13px; line-height: 1.55; color: #111; }
.cs-intro-lede { display: flex; justify-content: center; }
.cs-intro-lede p { margin: 0; max-width: 30em; font-size: clamp(18px, 1.7vw, 23px); font-weight: 300; line-height: 1.6; letter-spacing: -0.01em; color: #111; text-wrap: pretty; }

.cs-figure { width: 100%; margin: 0 0 10px; }
.cs-figure.hero-fig { height: auto; }
.cs-figure img { width: 100%; height: auto; display: block; border: 1px solid #ededed; }
.cs-figure figcaption {
  margin-top: 12px; font-family: var(--pix); font-size: 9px; letter-spacing: 0.1em;
  color: var(--muted); text-transform: uppercase; line-height: 1.7;
}
.cs-slot {
  width: 100%; height: clamp(320px, 42vw, 560px);
  background-color: #f4f4f4;
  background-image: radial-gradient(#d6d6d6 1px, transparent 1px);
  background-size: 9px 9px;
  display: flex; align-items: center; justify-content: center; border: 1px solid #ededed;
}
.cs-slot .ph { font-family: var(--pix); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; background: #fff; padding: 5px 9px; }

.cs-section { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 4vw, 64px); padding: 52px 0; border-bottom: 1px solid var(--line-sub); }
.cs-section .sec-head { margin-bottom: 0; align-self: start; }
.cs-body { min-width: 0; }
.cs-body p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.cs-body p:last-child { margin-bottom: 0; }
.cs-body p.cs-lead { margin: 24px 0 10px; }
.cs-body p.cs-lead:first-child { margin-top: 0; }
.cs-body p.cs-lead strong { font-weight: 600; color: var(--ink); }
.cs-quote { margin: 14px 0 0; padding: 12px 0 12px 18px; border-left: 2px solid var(--line); font-size: 14.5px; line-height: 1.75; color: var(--body); font-style: normal; }
.cs-bullets { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.cs-bullet { display: flex; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--body); }
.cs-bullet .b { font-family: var(--pix); font-size: 9px; color: var(--accent); padding-top: 5px; }
.cs-bullet .txt { text-wrap: pretty; }
.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); margin-top: 26px; }
.cs-stat { border-top: 1px solid #111; padding-top: 14px; }
.cs-stat .n { font-size: clamp(30px, 3.2vw, 46px); font-weight: 200; letter-spacing: -0.02em; line-height: 1; }
.cs-stat .l { font-family: var(--pix); font-size: 9px; letter-spacing: 0.12em; color: #888; text-transform: uppercase; margin-top: 10px; line-height: 1.7; }
.cs-inline-fig { width: 100%; margin: 28px 0 22px; }
.cs-inline-fig img { width: 100%; height: auto; display: block; border: 1px solid #ededed; }
.cs-inline-fig figcaption { margin-top: 12px; font-family: var(--pix); font-size: 9px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; line-height: 1.7; }
/* last content section: no divider, tighter bottom */
.cs-section.last { border-bottom: none; padding-bottom: 40px; }

/* ---------- multi-project case study (Stanford): two projects, each with its
   own high-level hero (facts | description), separated by a subtle hairline
   matching the rest of the case study ---------- */
.project { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--line); }
/* first project: no own border (cs-head hairline serves), but same room
   above the marker as the second project */
.project.first { margin-top: 0; padding-top: 56px; border-top: none; }

/* project marker: a quiet grey label so it reads as subordinate to the
   green "STUDENT WORK" eyebrow (no dot, muted color) */
.ph-marker { margin-bottom: 20px; }
.ph-marker .m { font-family: var(--pix); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ph-name { margin: 0; font-size: clamp(28px, 3.4vw, 46px); font-weight: 200; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); }
.project-hero .cs-intro { padding: 28px 0 44px; }
.ph-fig { width: 100%; margin: 0; }
.ph-fig img { width: 100%; height: auto; display: block; border: 1px solid #ededed; }
.ph-fig figcaption { margin-top: 12px; font-family: var(--pix); font-size: 9px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; line-height: 1.7; }

/* view more work */
.more-work { padding: 140px 0 8px; }
.mw-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 36px; }
.mw-head .k { font-family: var(--pix); font-size: 9px; letter-spacing: 0.16em; color: var(--accent); }
.mw-head .v { font-family: var(--pix); font-size: clamp(15px, 1.5vw, 20px); letter-spacing: 0.02em; color: #111; }
.mw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 40px); }
.mw-img {
  width: 100%; height: clamp(150px, 17vw, 220px);
  background-color: #fbfbfb;
  background-image: radial-gradient(#d6d6d6 1px, transparent 1px);
  background-size: 9px 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; border: 1px solid #ededed; overflow: hidden;
}
.mw-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mw-img .ph { font-family: var(--pix); font-size: 10px; letter-spacing: 0.14em; color: #111; background: #fff; padding: 5px 9px; }
.mw-cat { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mw-cat .dot { width: 6px; height: 6px; display: inline-block; }
.mw-cat .t { font-family: var(--pix); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }
.mw-title { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #000; }
.mw-title .arrow { font-family: var(--pix); font-size: 11px; font-weight: 400; color: #111; }

/* scan layer: TL;DR box after the intro + one takeaway line per section.
   Scanning eyebrow → H1 → TL;DR → takeaways should carry the whole argument. */
.tldr { border: 1px solid var(--line-box); background: var(--box-fill); padding: clamp(20px, 3vw, 36px); margin: 0 0 8px; }
.tldr-label {
  font-family: var(--pix); font-size: 9px; letter-spacing: 0.16em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 6px;
}
.tldr-row {
  display: grid; grid-template-columns: 130px 1fr; gap: clamp(16px, 2vw, 28px);
  padding: 14px 0; border-bottom: 1px solid var(--line-sub); align-items: baseline;
}
.tldr-row:last-child { border-bottom: none; padding-bottom: 0; }
.tldr-k { font-family: var(--pix); font-size: 9px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; }
.tldr-v { font-size: 15.5px; line-height: 1.6; color: var(--ink); font-weight: 500; text-wrap: pretty; }

.takeaway {
  margin: 0 0 18px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.5; color: var(--ink); text-wrap: pretty;
}
.takeaway .a { font-family: var(--pix); font-size: 0.7em; color: var(--accent); margin-right: 10px; }

/* opening stat strip + live Figma embed */
.opening-stats { margin: 36px 0 8px; }
.figma-block { margin-top: 28px; }
.figma-block iframe {
  width: 100%; aspect-ratio: 16 / 10; border: 1px solid #ededed;
  display: block; background: var(--box-fill);
}
.figma-block .figma-link {
  display: inline-block; margin-top: 12px;
  font-family: var(--pix); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid #ccd8ee; padding: 8px 12px;
}

/* figure strips inside case-study bodies (2-up / 3-up screenshots) */
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin: 28px 0 22px; }
.fig-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin: 28px 0 22px; }
/* Two figures each capped at the 3-up column width, centered as a pair. */
.fig-duo { display: flex; justify-content: center; gap: clamp(16px, 2vw, 28px); margin: 28px 0 22px; }
.fig-duo figure { margin: 0; flex: 0 0 calc((100% - 2 * clamp(16px, 2vw, 28px)) / 3); }
.fig-pair figure, .fig-strip figure { margin: 0; }
.fig-pair img, .fig-strip img, .fig-duo img { width: 100%; height: auto; display: block; border: 1px solid #ededed; cursor: zoom-in; }
.fig-pair figcaption, .fig-strip figcaption, .fig-duo figcaption {
  margin-top: 10px; font-family: var(--pix); font-size: 9px; letter-spacing: 0.1em;
  color: var(--muted); text-transform: uppercase; line-height: 1.7;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tldr-row { grid-template-columns: 1fr; gap: 6px; }
  .fig-pair, .fig-strip { grid-template-columns: 1fr; }
  .fig-duo { flex-direction: column; }
  .fig-duo figure { flex: 1 1 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-left { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .about-hero { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .split, .cs-intro, .cs-section { grid-template-columns: 1fr; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
  .tt-grid, .mw-grid { grid-template-columns: 1fr; }
  .hobbies { grid-template-columns: 1fr; }
  .cs-intro-lede { justify-content: flex-start; }
  .wg-grid.cols-3 { grid-template-columns: 1fr 1fr; }   /* tablet: 2-up, not 3 cramped */
  .cs-stats { grid-template-columns: 1fr 1fr; }          /* stat rows never stayed 3-up well */
}
@media (max-width: 620px) {
  .site-header { flex-wrap: wrap; gap: 10px 18px; }
  /* nav drops to its own second row, all three links together, left-aligned */
  .nav-group { flex-basis: 100%; margin-left: 0; justify-content: flex-start; gap: 22px; }
  .wg-grid.cols-2, .wg-grid.cols-3 { grid-template-columns: 1fr; }
  .hero { display: none; }                       /* drop the animation on phones */
  .intro { padding: 40px 0 52px; justify-content: flex-start; }
  .intro-line { justify-content: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .journey-row { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .journey-side { flex-direction: row; align-items: center; gap: 12px; }
  .links-row { flex-wrap: wrap; }
}
@media (max-width: 440px) {
  .cs-stats { grid-template-columns: 1fr; }
  .cs-title { font-size: clamp(28px, 8vw, 36px); }
}

/* ---------- image lightbox ---------- */
.cs-inline-fig img, .fig-pair img, .fig-strip img, .fig-duo img, .ph-fig img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 400; cursor: zoom-out;
  background: rgba(16, 16, 18, 0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  transition: background .3s ease, backdrop-filter .3s ease, -webkit-backdrop-filter .3s ease;
}
.lightbox.open { background: rgba(16, 16, 18, .72); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.lightbox-img {
  position: fixed; margin: 0; transform-origin: top left; will-change: transform;
  cursor: default; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); border: 1px solid rgba(255,255,255,.06);
}
.lightbox-img.animate { transition: transform .34s cubic-bezier(.2, .8, .2, 1); }
body.lb-lock { overflow: hidden; }

/* ---------- page fade transition ---------- */
#top.page { animation: page-in .3s ease both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
#top.page.is-leaving { animation: none; opacity: 0; transition: opacity .19s ease; }
@media (prefers-reduced-motion: reduce) {
  #top.page, #top.page.is-leaving { animation: none; opacity: 1; transition: none; }
  .lightbox, .lightbox-img.animate { transition: none; }
}

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 500;
  background: var(--ink); color: #fff; padding: 10px 16px;
  font-family: var(--pix); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cs-inline-fig img:focus-visible, .fig-pair img:focus-visible,
.fig-strip img:focus-visible, .fig-duo img:focus-visible,
.ph-fig img:focus-visible { outline-offset: 2px; }

/* ---------- resume passcode modal ---------- */
.pass-overlay {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  /* Lighter tint so the dark crosshair cursor stays visible; blur still dims the page. */
  background: rgba(28, 28, 32, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pass-box {
  position: relative;
  background: #fff; border: 1px solid var(--line-box);
  padding: 30px 28px; width: 100%; max-width: 380px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
.pass-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; padding: 6px 8px;
  font-size: 20px; line-height: 1; color: var(--muted);
  cursor: var(--cursor-i);
}
.pass-close:hover { color: #111; }
.pass-label {
  font-family: var(--pix); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cat-orange); margin-bottom: 12px;
}
.pass-desc { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--body); }
.pass-form { display: flex; gap: 10px; }
.pass-input {
  flex: 1; min-width: 0; font-family: var(--pix); font-size: 14px; letter-spacing: 0.3em;
  padding: 12px 14px; border: 1px solid var(--line-box); background: #fff; color: #111;
}
.pass-input:focus { outline: none; border-color: #111; }
.pass-btn {
  font-family: var(--pix); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 16px; border: 1px solid #111; background: #111; color: #fff; cursor: var(--cursor-i);
  white-space: nowrap;
}
.pass-btn:hover { opacity: .85; }
.pass-note {
  min-height: 13px; margin-top: 14px;
  font-family: var(--pix); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--err);
}
