/* ============ DESIGN TOKENS ============ */
:root{
  /* LIGHT — Design Museum: soft grey ground, hard black edges */
  --bg:         #F7F7F8;
  --surface:    #FFFFFF;
  --surface-2:  #F0F1F3;
  --ink:        #0A0A0A;
  --ink-soft:   #444444;
  --muted:      #767676;
  --line:       #E5E5E5;
  --line-strong:#CCCCCC;
  --border-hard:#0A0A0A;
  --accent:     #0A0A0A;
  --accent-ink: #FFFFFF;
  --active-bg:  #0A0A0A;
  --active-ink: #FFFFFF;
  --focus:      #0A0A0A;
  --status-error:   #C23B2A;
  --status-warn:    #B8860B;
  --status-success: #1E6B4E;
  --status-primary: #0A0A0A;
  --shadow-card: none;
  --shadow-card-hover: none;
  --photo-duotone: grayscale(1) contrast(1.32) brightness(1.02);
  /* Design Museum stipple — fine regular black dots on light */
  --dotfield:
    radial-gradient(circle at center, rgba(10,10,10,.34) 0.75px, transparent 0.9px);
  --dotfield-size: 6px 6px;

  --radius: 0;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --page-max: 1280px;
  --gutter:   clamp(16px, 2.5vw, 24px);
  --space-section: clamp(64px, 9vw, 112px);
  --grid-gap: clamp(20px, 2.4vw, 32px);

  /* Flat — no atmospheric wash */
  --glow-accent: transparent;
  --glow-ink:    transparent;
  --bg-wash: var(--bg);
  --bg-wash-soft: var(--bg);
  --bg-wash-hero: var(--bg);
}
:root[data-theme="dark"]{
  --bg:         #0B0C0F;
  --surface:    #0B0C0F;
  --surface-2:  #14161B;
  --ink:        #F5F6F8;
  --ink-soft:   #C4CAD4;
  --muted:      #9AA3B2;
  --line:       #242831;
  --line-strong:#343A46;
  --border-hard:#E8E8EA;
  --accent:     #F5F6F8;
  --accent-ink: #0B0C0F;
  --active-bg:  #F3F4F6;
  --active-ink: #0B0C0F;
  --focus:      #F5F6F8;
  --status-error:   #E25A4A;
  --status-warn:    #F4C13D;
  --status-success: #3DBF7A;
  --status-primary: #F5F6F8;
  --shadow-card: none;
  --shadow-card-hover: none;
  --photo-duotone: grayscale(1) contrast(1.28) brightness(1.05);
  --dotfield:
    radial-gradient(circle at center, rgba(245,246,248,.38) 0.75px, transparent 0.9px);
  --dotfield-size: 6px 6px;

  --glow-accent: transparent;
  --glow-ink:    transparent;
  --bg-wash: var(--bg);
  --bg-wash-soft: var(--bg);
  --bg-wash-hero: var(--bg);
}

/* ============ BASE ============ */
*{ box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  scroll-padding-top:56px;
  overflow-x:clip;
}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body); font-size:16px; line-height:1.65;
  letter-spacing:-0.005em;
  -webkit-font-smoothing:antialiased;
  transition:background-color .2s ease, color .2s ease;
  overflow-x:clip;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--ink); text-decoration:none; }
a.link{
  border-bottom:1px solid var(--line-strong);
  padding-bottom:1px;
  transition:border-color .15s ease, color .15s ease;
}
a.link:hover{ border-bottom-color:var(--accent); color:var(--ink); background:none; }
a.link--muted{ color:var(--muted); border-bottom-color:var(--line); }
a.link--muted:hover{ color:var(--ink); background:none; border-bottom-color:var(--accent); }
:focus-visible{ outline:2px solid var(--focus); outline-offset:2px; }

/* ============ TYPE ============ */
h1{
  font-family:var(--font-display);
  font-weight:900;
  font-size:clamp(36px,5.2vw,60px);
  line-height:1.02;
  letter-spacing:-0.05em;
  margin:0 0 .35em;
  text-wrap:balance;
}
h2{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(26px,3.2vw,36px);
  line-height:1.1;
  letter-spacing:-0.04em;
  margin:0 0 .35em;
  text-wrap:balance;
}
h3{ font-family:var(--font-display); font-weight:700; font-size:clamp(17px,1.8vw,21px); margin:0 0 .35em; text-wrap:balance; letter-spacing:-0.025em; }
p{ margin:0 0 1em; max-width:62ch; }
strong{ font-weight:600; }
.eyebrow,.label{
  font-family:var(--font-body);
  font-size:11px;
  font-weight:500;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--muted);
  display:inline-block;
  padding-bottom:5px;
  border-bottom:1.5px solid var(--ink);
}
/* Chapter + role labels — bold; red square only on .eyebrow--mark (role) */
.notes-title > .eyebrow,
.proj-show__body > .eyebrow{
  font-weight:700;
}
.eyebrow--mark{
  font-weight:700;
}
.eyebrow--mark::after{
  content:"";
  display:inline-block;
  width:.55em;
  height:.55em;
  margin-left:.35em;
  margin-bottom:.08em;
  background:#D71920;
  vertical-align:baseline;
}
.hero-portrait .eyebrow--mark{
  margin:.75rem 0 0;
}
figcaption{
  font-family:var(--font-body);
  font-size:11px;
  font-weight:400;
  letter-spacing:0.02em;
  text-transform:none;
  color:var(--muted);
  margin-top:10px;
}

/* ============ LAYOUT ============ */
.visually-hidden{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.wrap{
  width:100%;
  max-width:var(--page-max);
  margin:0 auto;
  padding-inline:var(--gutter);
  box-sizing:border-box;
}
.section{ padding-block:var(--space-section); scroll-margin-top:56px; }
.section + .section{ border-top:1px solid var(--line); }

/* No scroll-reveal blank frames — content stays visible while scrolling */
.fi, .fade-in, .fade-up, .reveal, [data-reveal]{
  opacity:1 !important; transform:none !important;
  animation:none !important; visibility:visible !important;
}

.chart-legend{
  display:flex; flex-wrap:wrap; gap:10px 18px; margin:0 0 12px;
  font-size:12px; color:var(--ink-soft); max-width:none;
}
.chart-legend__item{ display:inline-flex; align-items:center; gap:6px; }
.chart-legend__swatch{ width:10px; height:10px; flex-shrink:0; border:1px solid var(--line); }
.chart-legend__swatch--high{ background:#c0392b; }
.chart-legend__swatch--med{ background:#e67e22; }
.chart-legend__swatch--low{ background:#27ae60; }
.chart-legend__dot{ display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--ink); }
.tile__type--alt{ left:8px; right:auto; }

.grid{ display:grid; grid-template-columns:repeat(12,1fr); gap:var(--grid-gap); }
.col-3{ grid-column:span 3; } .col-4{ grid-column:span 4; } .col-6{ grid-column:span 6; } .col-8{ grid-column:span 8; } .col-12{ grid-column:span 12; }

.row-2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--grid-gap); align-items:stretch; }
.row-2 > *, .row-3 > *, .row-4 > * { min-width: 0; }
.split-row { align-items: center; }
.split-row__text { display: flex; flex-direction: column; justify-content: center; }
.split-row__text h4 { margin-top: 0; margin-bottom: 12px; font-size: 18px; }
.split-row__text p { max-width: none; margin-bottom: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

figure { margin: 0; width: 100%; }
figure .plate { margin: 0; }
figure figcaption,
.plate figcaption {
  max-width: none;
  width: 100%;
  display: block;
  box-sizing: border-box;
  text-wrap: pretty;
}

.module h4 { margin-top: 0; }
.module ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.65; flex: 1; }
.module p:last-child { margin-bottom: 0; }
.module__foot { margin-top: auto; padding-top: 16px; }
.row-3 .module > p:last-child:not(.eyebrow),
.row-4 .module > p:last-child:not(.eyebrow) { flex: 1; }

.grid-gap-top { margin-top: var(--grid-gap); }
.row-2,.row-3,.row-4{
  width:100%;
  box-sizing:border-box;
}
.row-3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--grid-gap); align-items:stretch; }
#projGrid{
  align-items:stretch;
  gap:var(--grid-gap);
  margin-top:8px;
}
.proj-grid-break{ grid-column:1 / -1; height:0; margin:0; padding:0; }
.proj-grid-break.is-hidden{ display:none; }
.row-4{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--grid-gap); align-items:stretch; }

@media(max-width:820px){
  .col-3,.col-4,.col-6,.col-8{ grid-column:span 12; }
  .row-2,.row-3,.row-4{ grid-template-columns:1fr; }
}

/* ============ COMPONENTS ============ */
.module{
  background:var(--bg);
  border:1px solid var(--border-hard);
  border-radius:0;
  padding:clamp(20px,2.4vw,28px);
  height:100%;
  box-shadow:none;
}
.row-3 .module,.row-2 .module,.row-4 .module{ display:flex; flex-direction:column; }
.module--accent{
  background:var(--ink);
  color:var(--bg);
  border-color:var(--ink);
}
.module--accent h2,.module--accent h3{ color:var(--bg); }

.tile-wrap{
  display:block; width:100%; height:100%; min-width:0; color:inherit;
  border-radius:0;
}
.tile-wrap.is-hidden{ display:none!important; }
.tile-wrap:focus-visible{ outline:2px solid var(--focus); outline-offset:3px; }
.tile{
  position:relative;
  background:var(--bg);
  border:1px solid var(--border-hard);
  border-radius:0;
  display:flex; flex-direction:column; height:100%; color:inherit;
  overflow:hidden;
  box-shadow:none;
  transition:border-color .15s ease;
}
.tile-wrap:hover .tile,
.tile-wrap:focus-visible .tile{
  border-color:var(--ink);
  background:var(--bg);
  box-shadow:none;
  transform:none;
  opacity:1;
}
.tile__media{
  aspect-ratio:4/3; overflow:hidden;
  background:#FFFFFF; flex-shrink:0;
  border-radius:0;
  border:none;
  border-bottom:1px solid var(--line);
}
.tile__body{
  padding:14px 16px 16px;
  display:flex; flex-direction:column; flex:1; min-height:0; gap:8px;
}
.tile__tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.tile__tag{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:500;
  letter-spacing:0.02em;
  text-transform:none;
  color:var(--ink-soft);
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px 10px;
  line-height:1.2;
}
.tile__tag--type{
  padding:4px 10px;
  font-weight:600;
  letter-spacing:0.03em;
  color:var(--bg);
  background:var(--ink);
  border-color:var(--ink);
}
.tile__tag + .tile__tag::before{ content:none; }
.tile__title{
  margin:0;
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(16px,1.45vw,18px);
  line-height:1.3;
  letter-spacing:-0.02em;
  color:var(--ink);
}
.tile__brief{
  margin:0;
  font-size:13px;
  line-height:1.45;
  color:var(--ink-soft);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.tile__company{
  font-family:var(--font-display); font-weight:600; font-size:15px; line-height:1.25; margin:0;
}
.tile__outcome{
  color:var(--ink-soft); font-size:12px; line-height:1.45; margin:0; flex:1;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.tile__keywords{ margin:0; max-width:none; margin-top:2px; font-size:11px; letter-spacing:0.08em; }
.filter-row{ display:flex; flex-wrap:wrap; gap:8px; margin:24px 0 28px; align-items:center; }
.filter-row .tab-btn{
  border:1px solid var(--line);
  background:var(--bg);
  padding:7px 14px;
  font-size:12px; font-weight:600; color:var(--ink-soft);
  border-radius:999px;
  line-height:1.2;
}
.filter-row .tab-btn:hover{
  background:var(--surface-2) !important;
  color:var(--ink);
  border-color:var(--ink) !important;
}
.filter-row .tab-btn.active,
.filter-row .tab-btn.active:hover{
  background:var(--ink) !important;
  color:var(--bg) !important;
  border-color:var(--ink) !important;
}
.tile__media img{
  width:100%; height:100%; display:block;
  object-fit:cover; object-position:top center;
  image-rendering:auto;
}
.tile__media--diagram{ background:#FFFFFF; }
.tile__media--diagram img{ object-fit:contain; object-position:center; padding:8px; box-sizing:border-box; }
.tile__media--cover{
  background:var(--surface-2);
  display:flex; align-items:center; justify-content:center;
}
.tile__media--cover img{
  object-fit:contain;
  object-position:center;
  width:72%;
  height:72%;
  padding:0;
}
@media (max-width:820px){
  #projGrid .tile-wrap{ max-width:100%; width:100%; }
  .tile__body{ padding:14px 14px 16px; }
}
.tile__media--label{
  display:flex; align-items:center; justify-content:center;
  background:#0A0A0A; color:#FFFFFF;
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(18px,2.2vw,24px);
  letter-spacing:-0.02em;
  text-align:center;
  padding:24px;
  line-height:1.2;
}
:root[data-theme="dark"] .tile__media--label{
  background:#0A0A0A; color:#FFFFFF;
  border-bottom-color:#222;
}
.tile__media--logo{ background:#050b1a; display:flex; align-items:center; justify-content:center; }
.tile__media--logo img{ object-fit:contain; width:100%; height:100%; padding:18%; box-sizing:border-box; }

/* Screenshot mat — ALWAYS white so UI reads in both light and dark mode */
.plate{ background:#FFFFFF; border:1px solid var(--line); padding:clamp(12px,1.6vw,24px); }
.plate img{ width:100%; }
.plate--wide{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.plate--wide img{ width:100%; max-width:100%; height:auto; min-width:0; }
.scroll-hint{ font-size:12px; color:var(--accent); margin-top:8px; letter-spacing:.04em; }

.meta{ display:flex; flex-wrap:wrap; gap:clamp(20px,4vw,56px); padding-top:20px; border-top:1px solid var(--line); }
.meta .k{
  display:inline-block;
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:8px;
  padding-bottom:4px;
  border-bottom:1.5px solid var(--ink);
}
.meta .v{ font-family:var(--font-display); font-weight:700; font-size:16px; color:var(--ink); }

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ font-size:12px; font-weight:500; letter-spacing:0.04em; color:var(--ink-soft); border:none; border-bottom:1px solid var(--line); background:transparent; padding:4px 0; border-radius:0; }

/* ============ BUTTONS ============ */
.btn{
  display:inline-block; font-size:14px; font-weight:500;
  border:1px solid var(--ink); padding:10px 18px;
  border-radius:0;
  background:var(--bg);
  color:var(--ink);
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover{
  background:var(--ink);
  color:var(--bg);
  border-color:var(--ink);
  box-shadow:none;
}
.btn--demo{ border-color:var(--accent-ink); margin-top:16px; }
.btn--demo:hover{ background:var(--surface); color:var(--accent-ink); border-color:var(--accent-ink); }
.module--accent .btn{ background:var(--accent-ink); color:var(--accent); border-color:var(--accent-ink); }
.module--accent .btn:hover{ background:var(--surface); color:var(--accent-ink); }

/* ============ HOMEPAGE ============ */
.site-logo{ font-family:var(--font-display); font-weight:600; font-size:20px; letter-spacing:-0.03em; }
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:var(--grid-gap);
  align-items:center;
  width:100%;
}
.hero-grid img{ width:100%; border:none; }

/* Hero portrait — B&W duotone + subtle mono glitch */
.hero-portrait{ position:relative; }
.hero-portrait__role{
  margin:.75rem 0 0;
  text-align:left;
  width:100%;
}
#home .hero-portrait__role.page-lede-mark{
  margin:.75rem 0 0;
}
.hero-glitch{
  position:relative;
  margin:0;
  overflow:hidden;
  isolation:isolate;
  border:1px solid var(--border-hard);
}
.hero-glitch img{
  display:block;
  width:100%;
  filter:var(--photo-duotone);
  animation:hero-glitch-jitter 7s steps(1,end) infinite;
}
.hero-glitch__scan{
  position:absolute; inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 2px,
      rgba(10,10,10,.05) 2px,
      rgba(10,10,10,.05) 3px
    ),
    linear-gradient(
      180deg,
      rgba(0,240,255,.045) 0%,
      transparent 28%,
      transparent 72%,
      rgba(255,0,170,.035) 100%
    );
  mix-blend-mode:multiply;
  opacity:.65;
  z-index:2;
}
:root[data-theme="dark"] .hero-glitch__scan{
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 2px,
      rgba(255,255,255,.05) 2px,
      rgba(255,255,255,.05) 3px
    ),
    linear-gradient(
      180deg,
      rgba(0,240,255,.09) 0%,
      transparent 30%,
      transparent 70%,
      rgba(255,0,170,.06) 100%
    );
  mix-blend-mode:screen;
  opacity:.5;
}
.hero-glitch__lines{
  position:absolute; inset:0;
  pointer-events:none;
  z-index:3;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(0,240,255,.4) 8% 8.4%, transparent 8.4% 62%, rgba(255,0,170,.32) 62% 62.5%, transparent 62.5%),
    linear-gradient(180deg, transparent 0 34%, rgba(10,10,10,.14) 34% 34.6%, transparent 34.6% 71%, rgba(10,10,10,.12) 71% 72%, transparent 72%);
  background-size:100% 100%, 100% 100%;
  opacity:0;
  animation:hero-glitch-lines 7s steps(1,end) infinite;
  mix-blend-mode:multiply;
}
:root[data-theme="dark"] .hero-glitch__lines{ mix-blend-mode:screen; }
.hero-glitch::before,
.hero-glitch::after{
  content:"";
  position:absolute; inset:0;
  background:url("../profile.jpg") center/cover no-repeat;
  pointer-events:none;
  opacity:0;
  z-index:1;
  mix-blend-mode:difference;
}
.hero-glitch::before{
  transform:translate(-3px,0);
  filter:var(--photo-duotone) contrast(1.4) drop-shadow(-2px 0 0 rgba(0,240,255,.45));
  animation:hero-glitch-slice-a 7s steps(1,end) infinite;
}
.hero-glitch::after{
  transform:translate(3px,0);
  filter:var(--photo-duotone) contrast(1.15) drop-shadow(2px 0 0 rgba(255,0,170,.4));
  animation:hero-glitch-slice-b 7s steps(1,end) infinite;
}
@keyframes hero-glitch-jitter{
  0%,88%,100%{ transform:none; filter:var(--photo-duotone); }
  89%{ transform:translate(-2px,1px); filter:grayscale(1) contrast(1.45) brightness(1.04); }
  90%{ transform:translate(2px,-1px) skewX(-.4deg); }
  91%{ transform:translate(-1px,0); }
  92%{ transform:none; filter:var(--photo-duotone); }
}
@keyframes hero-glitch-lines{
  0%,88%,92%,100%{ opacity:0; }
  89%,91%{ opacity:.7; }
  90%{ opacity:.35; background-position:12% 0, 0 8%; }
}
@keyframes hero-glitch-slice-a{
  0%,88%,92%,100%{ opacity:0; clip-path:inset(0 0 100% 0); }
  89%{ opacity:.4; clip-path:inset(18% 0 62% 0); }
  90%{ opacity:.3; clip-path:inset(55% 0 28% 0); }
  91%{ opacity:.35; clip-path:inset(72% 0 12% 0); }
}
@keyframes hero-glitch-slice-b{
  0%,88%,92%,100%{ opacity:0; clip-path:inset(0 0 100% 0); }
  89%{ opacity:.35; clip-path:inset(40% 0 40% 0); }
  90%{ opacity:.4; clip-path:inset(8% 0 70% 0); }
  91%{ opacity:.28; clip-path:inset(64% 0 18% 0); }
}
.glitch-text{
  position:relative;
  display:inline-block;
}
.glitch-text::before,
.glitch-text::after{
  content:attr(data-text);
  position:absolute;
  left:0; top:0;
  width:100%;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  color:var(--ink);
}
.glitch-text::before{
  animation:name-glitch-a 7s steps(1,end) infinite;
}
.glitch-text::after{
  animation:name-glitch-b 7s steps(1,end) infinite;
}
@keyframes name-glitch-a{
  0%,89%,92%,100%{ opacity:0; transform:none; clip-path:inset(0 0 100% 0); }
  90%{ opacity:.55; transform:translate(-2px,0); clip-path:inset(10% 0 55% 0); }
  91%{ opacity:.4; transform:translate(1px,0); clip-path:inset(50% 0 20% 0); }
}
@keyframes name-glitch-b{
  0%,89%,92%,100%{ opacity:0; transform:none; clip-path:inset(0 0 100% 0); }
  90%{ opacity:.5; transform:translate(2px,0); clip-path:inset(45% 0 25% 0); }
  91%{ opacity:.35; transform:translate(-1px,0); clip-path:inset(15% 0 60% 0); }
}
@media (prefers-reduced-motion: reduce){
  .hero-glitch img,
  .hero-glitch::before,
  .hero-glitch::after,
  .hero-glitch__lines,
  .glitch-text::before,
  .glitch-text::after{ animation:none !important; opacity:0; }
  .hero-glitch__scan{ opacity:.25; }
  .hero-glitch img{ filter:var(--photo-duotone); opacity:1; }
}
.hero-grid h1{
  white-space:normal;
  margin-bottom:0.15em;
}
.hero-aka{
  margin:0 0 0;
  font-size:15px;
  line-height:1.4;
  color:var(--muted);
  letter-spacing:-0.01em;
}
.hero-lede{
  margin:22px 0 0;
  max-width:52ch;
  display:flex;
  flex-direction:column;
  gap:14px;
}
@media (max-width:520px){
  .hero-grid h1{
    white-space:normal;
    font-size:clamp(28px,8.2vw,40px);
  }
}
.hero-lede p{
  margin:0;
  font-size:15px;
  line-height:1.65;
  color:var(--ink-soft);
  text-wrap:pretty;
}
.hero-lede strong{
  color:var(--ink);
  font-weight:500;
  background:none;
}
.hero-looking{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:16px 0 0;
  max-width:52ch;
}
.hero-looking__label{
  font-family:var(--font-display);
  font-size:13px;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--ink);
  margin:0;
  display:inline-block;
  width:fit-content;
  padding-bottom:4px;
  border-bottom:2px solid var(--ink);
}
.hero-looking__body{
  font-size:15px;
  line-height:1.65;
  color:var(--ink-soft);
  text-wrap:pretty;
}
.hero-looking__body strong{
  color:var(--ink);
  font-weight:500;
}
.contact-band__lead strong{
  color:inherit;
  font-weight:600;
}
.brand-yc,
strong.brand-yc{
  color:#FF6600;
  font-weight:600;
}
:root[data-theme="dark"] .brand-yc,
:root[data-theme="dark"] strong.brand-yc{
  color:#FF7A1A;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:24px;
  margin-top:28px;
}
.hero-actions .btn,
.hero-actions .link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-height:42px;
  font-size:14px;
  font-weight:500;
  line-height:1.2;
  margin:0;
}
.hero-actions .btn{
  padding:10px 18px;
}
.hero-actions .link{
  padding:10px 0;
  height:auto;
  align-self:center;
}
.hero-loc{ font-size:14px; color:var(--ink-soft); margin-top:16px; }
.hero-loc + .hero-loc{ margin-top:6px; }

/* Footer — Design Museum credit block: black panel, white type, dots around */
.site-footer{
  margin-top:clamp(48px,7vw,88px);
  padding:clamp(48px,8vw,96px) 0 clamp(40px,6vw,72px);
  position:relative;
  overflow:hidden;
  background-color:var(--bg);
  background-image:var(--dotfield);
  background-size:var(--dotfield-size);
  border-top:1px solid var(--border-hard);
}
.site-footer .wrap{
  display:flex;
  flex-direction:column;
  gap:0;
  padding-top:0;
  position:relative;
  z-index:1;
}
.contact-panel{
  position:relative;
  background:#0A0A0A;
  color:#FFFFFF;
  border:1px solid #0A0A0A;
  width:100%;
  box-sizing:border-box;
  padding:clamp(28px,4vw,48px) clamp(24px,3.5vw,40px) clamp(20px,3vw,28px);
}
.contact-band{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1.4fr) minmax(0,.8fr);
  gap:clamp(28px,4vw,48px);
  align-items:start;
  width:100%;
  padding-bottom:clamp(20px,3vw,28px);
  color:#FFFFFF;
}
.contact-band__intro h2{
  margin:0 0 .35em;
  font-size:clamp(28px,3.6vw,40px);
  color:#FFFFFF;
}
.contact-band__lead{
  margin:0 0 14px;
  max-width:36ch;
  font-size:16px;
  line-height:1.55;
  color:rgba(255,255,255,.78);
  text-wrap:pretty;
}
.contact-band__meta{
  margin:0;
  font-size:13px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55);
}
.contact-band__channels{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.contact-action{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:16px 0;
  border:none;
  border-top:1px solid rgba(255,255,255,.22);
  border-radius:0;
  background:transparent;
  color:#FFFFFF;
  text-decoration:none;
  transition:color .15s ease, opacity .15s ease;
}
:root[data-theme="dark"] .contact-action{
  background:transparent;
}
.contact-action:hover{
  border-color:rgba(255,255,255,.4);
  background:transparent;
  box-shadow:none;
  transform:none;
  opacity:.85;
}
.contact-band__channels .contact-action:first-child{ border-top:none; padding-top:0; }
.contact-action__label{
  margin:0;
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55);
  font-weight:600;
  border-bottom:0;
  padding-bottom:0;
}
.contact-action__value{
  font-family:var(--font-display);
  font-size:clamp(16px,1.6vw,20px);
  font-weight:600;
  color:#FFFFFF;
  line-height:1.3;
  word-break:break-word;
}
:root[data-theme="dark"] .contact-action__value{ color:#FFFFFF; }
.contact-action:hover .contact-action__value{ text-decoration:underline; }
.contact-band__social .contact-action__label{ margin-bottom:12px; }
.contact-band__social .social-links{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:0;
}
.contact-band__social .social-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:fit-content;
  padding:10px 0;
  color:rgba(255,255,255,.78);
  font-size:15px;
  font-weight:500;
  border-bottom:1px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.contact-band__social .social-link svg{
  width:18px;
  height:18px;
  flex-shrink:0;
  display:block;
  overflow:visible;
  color:#FFFFFF;
}
.contact-band__social .social-link__icon--behance{
  width:20px;
  height:20px;
  margin-inline:-1px;
}
.contact-band__social .social-link:hover{
  color:#FFFFFF;
  border-bottom-color:#FFFFFF;
  background:none;
}
/* legacy contact-card fallback */
.contact-card{
  max-width:none;
  width:100%;
  border:none;
  background:transparent;
  padding:0;
}
.contact-card h2{ margin:0 0 .35em; }
.contact-card > p{ margin:0 0 1.2em; max-width:none; color:var(--ink); }
.contact-link{
  display:inline-block;
  width:fit-content;
  color:var(--ink);
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid currentColor;
  padding-bottom:2px;
  line-height:1.4;
}
.contact-link:hover{ color:var(--ink); background:none; opacity:.7; }
:root[data-theme="dark"] .contact-link{ color:var(--ink); }
:root[data-theme="dark"] .contact-link:hover{ color:var(--ink); }
.site-footer__bar{
  margin-top:0;
  padding:18px 0 0;
  border-top:1px solid rgba(255,255,255,.22);
  color:rgba(255,255,255,.55);
  font-size:13px;
}
.site-footer__bar p{ margin:0; color:inherit; }
@media (max-width:900px){
  .contact-band{
    grid-template-columns:1fr;
    gap:24px;
  }
}
.making-grid ul{ margin:0; padding-left:18px; color:var(--ink-soft); font-size:14px; line-height:1.7; }
.making-grid h3{ font-size:16px; margin-bottom:10px; font-weight:600; }
.making-grid p{ font-size:14.5px; color:var(--ink-soft); margin:0; max-width:36ch; line-height:1.6; }
.making-grid{ margin-top:32px; align-items:start; gap:var(--grid-gap); width:100%; }

/* —— About: journey trail —— */
.journey{
  margin-top:clamp(32px,4.5vw,48px);
  margin-bottom:clamp(40px,6vw,72px);
}
.journey__head{
  max-width:40rem;
  margin-bottom:clamp(28px,4vw,40px);
}
.journey__lede{
  margin:10px 0 0;
  max-width:48ch;
  font-size:clamp(17px,1.7vw,20px);
  line-height:1.45;
  color:var(--ink-soft);
  text-wrap:pretty;
}
.journey__trail{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:clamp(28px,4vw,40px);
  position:relative;
  max-width:52rem;
}
.journey__trail::before{
  content:"";
  position:absolute;
  left:7px;
  top:10px;
  bottom:10px;
  width:1px;
  background:var(--line);
  pointer-events:none;
}
.journey__stop{
  position:relative;
  padding-left:40px;
}
.journey__mark{
  position:absolute;
  left:0;
  top:6px;
  width:15px;
  height:15px;
  border-radius:50%;
  background:var(--bg);
  border:2px solid var(--accent);
  box-shadow:0 0 0 3px var(--bg);
  z-index:1;
}
.journey__stop--feature .journey__mark{
  background:var(--accent);
}
.journey__when{
  display:block;
  font-size:11px;
  font-weight:500;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:8px;
}
.journey__stop h3{
  margin:0 0 8px;
  font-size:clamp(18px,1.8vw,22px);
  font-weight:600;
  letter-spacing:-0.02em;
}
.journey__stop p{
  margin:0;
  max-width:46ch;
  font-size:15px;
  line-height:1.6;
  color:var(--ink-soft);
  text-wrap:pretty;
}
.journey__stop--feature{
  padding:clamp(12px,1.5vw,20px) 0 clamp(12px,1.5vw,20px) 40px;
  background:transparent;
  border:none;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  border-radius:0;
}
.journey__stop--feature p{
  max-width:54ch;
  color:var(--ink);
}

.define-board{
  margin-top:clamp(8px,1.5vw,16px);
}
.define-board__head{
  max-width:40rem;
  margin-bottom:clamp(24px,3.5vw,36px);
}
.define-board__head h2{ margin-bottom:.35em; }
.define-board__lede{
  margin:0;
  max-width:46ch;
  color:var(--ink-soft);
  font-size:clamp(16px,1.5vw,18px);
  line-height:1.5;
}
.define-board__lede span{ color:var(--accent); font-weight:500; }

/* —— My journey: horizontal timeline (minimal) —— */
.timeline{
  margin-top:clamp(48px,7vw,80px);
  padding-top:clamp(32px,4.5vw,48px);
  border-top:1px solid var(--line);
}
.timeline__head{
  max-width:36rem;
  margin-bottom:clamp(32px,4.5vw,48px);
}
.timeline__head h2{
  margin-bottom:.3em;
  font-weight:600;
  letter-spacing:-0.03em;
}
.timeline__lede{
  margin:0;
  max-width:42ch;
  color:var(--ink-soft);
  font-size:clamp(15px,1.35vw,17px);
  line-height:1.45;
}
/* Journey secondary line — museum white plate under “How I got here” */
.timeline__lede.page-lede-mark{
  max-width:none;
  color:var(--ink);
  font-size:clamp(15px,1.5vw,17px);
  line-height:1.75;
}
.timeline__track{
  --tl-dot: 8px;
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(16px,2.5vw,28px);
  position:relative;
}
.timeline__track::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  /* Center the hairline on the dots */
  top:calc(var(--tl-dot) / 2);
  height:1px;
  background:var(--line);
  transform:translateY(-50%);
  z-index:0;
}
.timeline__item{
  position:relative;
  margin:0;
  padding-top:calc(var(--tl-dot) + 14px);
  min-width:0;
}
.timeline__dot{
  position:absolute;
  top:0;
  left:0;
  width:var(--tl-dot);
  height:var(--tl-dot);
  border-radius:50%;
  background:var(--bg);
  border:1.5px solid var(--ink-soft);
  box-sizing:border-box;
  box-shadow:0 0 0 3px var(--bg);
  z-index:1;
}
.timeline__item:last-child .timeline__dot{
  background:var(--accent);
  border-color:var(--accent);
}
.timeline__when{
  display:block;
  font-size:10px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:10px;
}
.timeline__item:last-child .timeline__when{
  color:var(--accent);
}
.timeline__item h3{
  margin:0 0 6px;
  font-size:clamp(14px,1.2vw,16px);
  font-weight:500;
  letter-spacing:-0.02em;
  color:var(--ink);
}
.timeline__item p{
  margin:0;
  font-size:13px;
  line-height:1.45;
  color:var(--ink-soft);
  max-width:26ch;
}
@media (max-width:960px){
  .timeline__track{
    grid-template-columns:repeat(5,minmax(200px,1fr));
    overflow-x:auto;
    padding-bottom:8px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }
  .timeline__item{ scroll-snap-align:start; }
  .timeline__track::before{
    left:0;
    right:0;
    width:calc(5 * 200px + 4 * 20px);
  }
}
@media (max-width:560px){
  .timeline__track{
    grid-template-columns:1fr;
    gap:24px;
    padding-top:0;
    overflow:visible;
  }
  .timeline__track::before{
    left:calc(var(--tl-dot) / 2);
    right:auto;
    top:0;
    bottom:0;
    width:1px;
    height:auto;
    transform:translateX(-50%);
    background:var(--line);
  }
  .timeline__item{ padding-top:0; padding-left:calc(var(--tl-dot) + 14px); }
  .timeline__dot{ top:4px; left:0; }
  .timeline__item p{ max-width:none; }
}

/* —— How I define myself: contact-sheet mosaic (subtle) —— */
.life-board{
  margin-top:0;
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  grid-template-rows:repeat(6,minmax(64px,clamp(72px,9.5vw,112px)));
  gap:1px;
  background:var(--line);
  padding:0;
  border-radius:0;
  overflow:hidden;
  border:1px solid var(--line);
}
.lb{
  position:relative;
  margin:0;
  min-height:0;
  overflow:hidden;
  background:var(--bg);
  border-radius:0;
  border:none;
}
.lb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  filter:var(--photo-duotone);
  opacity:.92;
  transform:scale(1.01);
  transition:transform .55s cubic-bezier(.22,1,.36,1), filter .35s ease, opacity .35s ease;
}
.lb:hover img{
  transform:scale(1.04);
  filter:grayscale(1) contrast(1.38) brightness(1.03);
  opacity:1;
}
/* Explicit mosaic — photos + notes interleaved */
.lb--hero{ grid-column:1 / 7; grid-row:1 / 5; }
.lb--p2{ grid-column:7 / 10; grid-row:1 / 5; }
/* Keep the face in frame — subject sits on the left of the square */
.lb--p2 img{ object-position:18% 32%; }
.lb--n1{ grid-column:10 / 13; grid-row:1 / 5; }
.lb--p3{ grid-column:1 / 3; grid-row:5 / 7; }
.lb--p3 img{ object-position:70% 45%; }
.lb--n2{ grid-column:3 / 6; grid-row:5 / 7; }
.lb--p4{ grid-column:6 / 8; grid-row:5 / 6; }
.lb--p4 img{ object-position:45% 55%; }
.lb--p5{ grid-column:8 / 10; grid-row:5 / 6; }
.lb--n3{ grid-column:10 / 13; grid-row:5 / 7; }
.lb--p7{ grid-column:6 / 8; grid-row:6 / 7; }
.lb--p8{ grid-column:8 / 10; grid-row:6 / 7; }

.lb--lonely{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:12px;
  padding:clamp(18px,2.2vw,28px);
  background:var(--surface-2);
  color:var(--ink);
  border:none;
}
:root[data-theme="dark"] .lb--lonely{
  background:var(--surface-2);
  color:var(--ink);
}
.lb__kicker{
  margin:0;
  font-size:10px;
  font-weight:500;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--accent);
}
.lb__quote{
  margin:0;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(22px,2.6vw,34px);
  line-height:1.12;
  letter-spacing:-0.03em;
  text-wrap:balance;
  max-width:18ch;
}
.lb__quote span{ color:var(--accent); }

.lb--note{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  padding:clamp(14px,1.5vw,20px);
  background:var(--surface-2);
  color:var(--ink);
  position:relative;
}
/* Subtle HUD corners — gamer / systems feel without neon */
.life-board--gamer .lb--note::before,
.life-board--gamer .lb--note::after{
  content:"";
  position:absolute;
  width:12px;
  height:12px;
  border:1.5px solid var(--ink);
  pointer-events:none;
  opacity:.55;
}
.life-board--gamer .lb--note::before{
  top:8px; left:8px;
  border-right:0; border-bottom:0;
}
.life-board--gamer .lb--note::after{
  right:8px; bottom:8px;
  border-left:0; border-top:0;
}
.life-board--gamer .lb--note{
  background-color:var(--surface-2);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(10,10,10,.035) 3px,
      rgba(10,10,10,.035) 4px
    );
}
.lb--note .lb__idx{
  font-family:var(--font-display);
  font-weight:700;
  font-size:11px;
  letter-spacing:0.14em;
  color:var(--accent);
  opacity:.9;
}
.lb--note h3{
  margin:0;
  font-size:clamp(14px,1.25vw,16px);
  font-weight:500;
  color:var(--ink);
}
.lb--note p{
  margin:0;
  font-size:12.5px;
  line-height:1.5;
  color:var(--ink-soft);
  max-width:28ch;
  opacity:.92;
}
.lb--n1,
.lb--n2,
.lb--n3{
  background:var(--surface-2);
  color:var(--ink);
}
.lb--n1-stack{
  justify-content:center;
  gap:clamp(16px,2vw,24px);
}
.lb--n1-stack .lb__quote{
  font-size:clamp(18px,1.8vw,26px);
  font-weight:600;
  max-width:16ch;
  line-height:1.2;
}
.lb--n1-stack .lb__foot{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.lb--n1-stack .lb__foot p{
  max-width:28ch;
}
.lb--n1 p,
.lb--n2 p,
.lb--n3 p{ color:var(--ink-soft); opacity:.92; }
.lb--n1 .lb__quote,
.lb--n1 .lb__quote span{ opacity:1; }
.lb--n1 h3,
.lb--n2 h3,
.lb--n3 h3{ color:var(--ink); }

@media (max-width:960px){
  .life-board{
    grid-template-columns:repeat(6,minmax(0,1fr));
    grid-template-rows:repeat(8,minmax(70px,13vw));
  }
  .lb--hero{ grid-column:1 / 5; grid-row:1 / 3; }
  .lb--p2{ grid-column:5 / 7; grid-row:1 / 3; }
  .lb--n1{ grid-column:1 / 4; grid-row:3 / 5; }
  .lb--p3{ grid-column:4 / 6; grid-row:3 / 5; }
  .lb--n2{ grid-column:6 / 7; grid-row:3 / 5; }
  .lb--p4{ grid-column:1 / 2; grid-row:5 / 6; }
  .lb--p5{ grid-column:2 / 3; grid-row:5 / 6; }
  .lb--p7{ grid-column:1 / 2; grid-row:6 / 7; }
  .lb--p8{ grid-column:2 / 3; grid-row:6 / 7; }
  .lb--n3{ grid-column:3 / 7; grid-row:5 / 7; }
}
@media (max-width:560px){
  .life-board{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:none;
    grid-auto-rows:minmax(130px,auto);
  }
  .lb--hero{ grid-column:1 / -1; min-height:220px; }
  .lb--p2{ grid-column:1; min-height:180px; }
  .lb--n1{ grid-column:2; }
  .lb--p3{ grid-column:1; }
  .lb--n2{ grid-column:2; }
  .lb--n3{ grid-column:1 / -1; }
  .lb--p4{ grid-column:1; }
  .lb--p5{ grid-column:2; }
  .lb--p7{ grid-column:1; }
  .lb--p8{ grid-column:2; }
}

.kw-board{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--grid-gap);
  width:100%;
  margin-top:40px;
  border-top:none;
  box-sizing:border-box;
}
.kw-col{
  min-width:0;
  padding:0;
  border-right:none;
}
.kw-col:first-child{ padding-left:0; }
.kw-col:last-child{ border-right:none; padding-right:0; }
.kw-col .label{ margin:0 0 16px; }
.kw-list{
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:kw;
}
.kw-list li{
  counter-increment:kw;
  display:block;
  align-items:baseline;
  gap:0;
  padding:8px 0;
  border-bottom:none;
  font-family:var(--font-body);
  font-size:15px;
  font-weight:400;
  color:var(--ink-soft);
  line-height:1.45;
  transition:color .15s ease;
}
.kw-list li:last-child{ border-bottom:none; }
.kw-list li::before{ content:none; display:none; }
.kw-list li:hover{
  color:var(--ink);
  padding-left:0;
}
@media (max-width:820px){
  /* Compact chip layout — desktop column lists stay unchanged */
  .kw-board{
    grid-template-columns:1fr;
    gap:22px;
    margin-top:24px;
  }
  .kw-col{
    padding:0;
    border-right:none;
    border-top:none;
  }
  .kw-col:first-child{ padding-left:0; }
  .kw-col:last-child{ padding-right:0; }
  .kw-col .label{ margin:0 0 10px; }
  .kw-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }
  .kw-list li{
    padding:4px 0;
    border:none;
    border-bottom:1px solid var(--line);
    border-radius:0;
    background:transparent;
    font-size:13px;
    line-height:1.25;
    color:var(--ink-soft);
  }
  .kw-list li:hover{ padding-left:12px; }
}
@media (prefers-reduced-motion: reduce){
  .kw-list li{ transition:none; }
  .tile,
  .mw-card{ transition:none; }
  .tile-wrap:hover .tile,
  .tile-wrap:focus-visible .tile{ transform:none; }
}
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:var(--grid-gap); align-items:start; }
.contact-links{ display:flex; flex-direction:column; gap:12px; margin:20px 0; }
.social-links{ display:flex; gap:10px; margin:0 0 20px; }
.social-link{
  display:inline-flex; align-items:center; justify-content:center;
  width:auto; height:auto; border:none; padding:0; color:var(--muted);
  transition:color .15s ease;
}
.social-link svg{ width:18px; height:18px; }
.social-link:hover{ color:var(--ink); background:none; border-color:transparent; }

/* LinkedIn-style Experience / Education */
.li-card{
  margin-top:40px;
  width:100%;
  border:none;
  background:transparent;
  border-radius:0;
  overflow:visible;
  border-top:none;
  box-sizing:border-box;
}
.li-item{
  display:grid;
  grid-template-columns:40px 1fr;
  gap:12px 18px;
  padding:28px 0;
  border-bottom:1px solid var(--line);
}
.li-item:last-child{ border-bottom:none; }
.li-logo{
  width:40px; height:40px;
  border-radius:0;
  border:none;
  background:var(--surface-2);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:600; font-size:14px;
  color:var(--ink-soft); flex-shrink:0;
}
.li-logo--img{ padding:6px; background:#FFFFFF; }
.li-logo--img img{ width:100%; height:100%; object-fit:contain; display:block; }
.li-logo--edu{ padding:3px; }
.li-logo--dark{ background:#0F1B3D; padding:0; }
.li-logo--dark img{ object-fit:contain; }
:root[data-theme="dark"] .li-logo--img{ background:#FFFFFF; }
:root[data-theme="dark"] .li-logo--dark{ background:#0F1B3D; }
.li-body{ min-width:0; }
.li-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:
    "title date"
    "company date";
  column-gap:20px;
  row-gap:4px;
  align-items:start;
  margin-bottom:0;
}
.li-head .li-title{
  grid-area:title;
  margin:0;
  padding-right:8px;
}
.li-head .li-company{
  grid-area:company;
  margin:0;
  padding-right:8px;
}
.li-head .li-date{
  grid-area:date;
  margin:0;
  justify-self:end;
  align-self:start;
  flex-shrink:0;
  text-align:right;
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
  white-space:nowrap;
  padding-top:3px;
}
/* Title-only heads (e.g. Freelancing): date still top-right */
.li-head:not(:has(.li-company)){
  grid-template-areas:"title date";
}
.li-title{
  font-family:var(--font-display);
  font-size:17px; font-weight:600; line-height:1.35;
  letter-spacing:-.015em;
}
.li-domain{
  font-weight:500;
  color:var(--ink-soft);
}
.li-role__title .li-domain{
  font-weight:500;
  color:var(--muted);
  font-size:0.92em;
}
.li-company{
  font-size:14px; color:var(--ink-soft); line-height:1.45;
}
.li-company-link{
  color:var(--ink);
  font-weight:500;
  text-decoration:none;
  border-bottom:1px solid var(--line-strong);
}
.li-company-link:hover{
  color:var(--ink);
  text-decoration:none;
  border-bottom-color:var(--ink);
  background:none;
}
:root[data-theme="dark"] .li-company-link{ color:var(--ink); }
:root[data-theme="dark"] .li-company-link:hover{ color:var(--ink); }
.li-meta{
  margin:0;
  font-size:13px; color:var(--muted); line-height:1.5;
}
@media (max-width:640px){
  .li-head{
    grid-template-columns:1fr;
    grid-template-areas:
      "title"
      "company"
      "date";
    row-gap:4px;
  }
  .li-head:not(:has(.li-company)){
    grid-template-areas:
      "title"
      "date";
  }
  .li-head .li-date{
    justify-self:start;
    text-align:left;
    white-space:normal;
    padding-top:0;
  }
  .li-head .li-title,
  .li-head .li-company{ padding-right:0; }
}
.li-ext{
  display:inline-block;
  margin-left:4px;
  color:var(--accent);
  font-size:12px;
  text-decoration:none;
  vertical-align:middle;
}
.li-ext:hover{ opacity:.75; background:none; }
.li-expand{ margin-top:14px; }
.li-snippet{
  margin:0;
  font-size:14.5px; color:var(--ink-soft); line-height:1.6;
  max-width:none;
}
.li-more-btn{
  display:inline;
  border:none; background:none; padding:0; margin:0;
  font:inherit; font-weight:600; color:var(--ink);
  cursor:pointer; vertical-align:baseline;
  text-decoration:underline;
  text-underline-offset:2px;
}
.li-more-btn:hover{ color:var(--ink); background:none; opacity:.7; }
:root[data-theme="dark"] .li-more-btn{ color:var(--ink); }
:root[data-theme="dark"] .li-more-btn:hover{ color:var(--ink); }
.li-more-btn--less{ display:inline-block; margin-top:8px; }
.li-details ul{
  margin:0; padding-left:18px;
  font-size:14.5px; color:var(--ink-soft); line-height:1.65;
  max-width:none;
}
.li-details li{ margin-bottom:10px; }
.li-details li:last-child{ margin-bottom:0; }
.li-roles{
  margin-top:14px;
  padding-left:14px;
  border-left:2px solid var(--line);
  display:flex; flex-direction:column; gap:18px;
}
.li-role__title{
  margin:0 0 2px;
  font-family:var(--font-display);
  font-size:15px; font-weight:700; line-height:1.3;
}
.li-item--group .li-title{ margin-bottom:2px; }
.tag-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
@media(max-width:520px){
  .li-item{ grid-template-columns:40px 1fr; padding:16px; gap:12px; }
  .li-logo{ width:40px; height:40px; font-size:15px; border-radius:0; }
}
@media(max-width:820px){
  .hero-grid,.contact-grid{ grid-template-columns:1fr; }
  .hero-grid{
    gap:clamp(20px,4vw,28px);
    align-items:start;
  }
  .hero-portrait,
  .hero-glitch{
    width:100%;
    max-width:100%;
  }
  .hero-lede,
  .hero-looking{
    max-width:none;
    width:100%;
    min-width:0;
  }
  .hero-portrait__role{
    max-width:100%;
  }
}

/* ============ HEADER + THEME TOGGLE ============ */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--bg);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  /* Museum underline — full viewport width */
  border-bottom:3px solid #0A0A0A;
}
:root[data-theme="dark"] .site-header{
  background:var(--bg);
  border-bottom-color:#FFF;
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:56px;
  position:relative;
  gap:12px;
}

/* Hero wash — homepage only (not case study first sections) */
#home.section,
.section.hero-section{
  position:relative;
  background:var(--bg-wash-hero);
  border-top:none;
}
#home.section + .section,
.section.hero-section + .section{
  border-top:1px solid var(--line);
}

/* Case study pages: flat hero / intro */
main.cs-page > .section:first-of-type,
.cs-page .section:first-of-type{
  background:var(--bg);
  background-image:none;
}

/* Flat bands — skills stay solid */
.skills-marquee{
  position:relative;
  background:var(--bg);
  background-image:none;
}

/* Flat content bands — no atmospheric wash
   Projects / Articles / Experience / Education / Notes keep dotted fields (see museum pass) */
.page-band{
  background:var(--bg);
  background-image:none;
  padding-block:clamp(32px,4.5vw,56px);
}
#projects.section,
#articles.section,
#experience.section,
#education.section,
#notes.section{
  padding-block:clamp(32px,4.5vw,56px);
}
#making.section{
  padding-block:clamp(32px,4.5vw,56px);
}

/* Shared page chrome — Projects + Experience + Case studies */
.page-intro{
  max-width:46rem;
  margin:0 0 clamp(24px,3.5vw,36px);
  text-align:left;
}
.page-intro h1,
.page-intro h2{
  margin:0 0 .4em;
}
.page-intro__lede{
  margin:0;
  max-width:58ch;
  color:var(--ink-soft);
  font-size:clamp(15px,1.5vw,17px);
  line-height:1.6;
  text-wrap:pretty;
}
#experience .page-intro{
  max-width:none;
}
/* Museum white plate — shared lede mark (Home, Projects, Experience, AI, Notes) */
.page-lede-mark,
.notes-lede{
  position:relative;
  z-index:1;
  margin:0;
  padding:0;
  border:none;
  background:none;
  max-width:100%;
  width:auto;
  color:var(--ink);
  font-size:clamp(15px,1.5vw,17px);
  line-height:1.75;
  text-wrap:unset;
  overflow-wrap:break-word;
}
#home .page-lede-mark{
  margin:0 0 .55em;
}
.page-lede-mark > span,
.notes-lede > span{
  display:inline;
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--border-hard);
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
  padding:.22em .5em;
  white-space:nowrap;
  max-width:100%;
  box-sizing:border-box;
}
/* Allow wrap on small screens so long ledes don’t force horizontal scroll */
@media (max-width:520px){
  .page-lede-mark > span,
  .notes-lede > span{
    white-space:normal;
  }
}
.page-intro--sub{
  margin-bottom:clamp(20px,3vw,28px);
}
.page-band .filter-row{
  justify-content:flex-start;
  margin:0 0 24px;
}
.page-band .li-card{
  margin-top:0;
}
.page-band--continue .page-intro--sub h2{
  font-size:clamp(24px,3vw,36px);
}
.skills-marquee{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.site-header nav{
  display:flex;
  flex-wrap:nowrap;
  gap:2px;
  align-items:stretch;
  align-self:stretch;
  justify-content:flex-end;
  min-width:0;
  border-bottom:none;
}
.site-header nav a{
  font-size:13px;
  font-weight:500;
  color:var(--muted);
  padding:0 12px;
  border:none;
  border-radius:0;
  background:transparent;
  text-decoration:none;
  white-space:nowrap;
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  box-sizing:border-box;
}
.site-header nav a:hover{
  color:var(--ink);
  background:transparent;
}
/* Active tab — solid block flush with the underline */
.site-header nav a.active,
.site-header nav a[aria-current="page"]{
  background:#0A0A0A;
  color:#FFF;
  border:none;
  border-radius:0;
  width:fit-content;
  max-width:100%;
}
.site-header nav a.active:hover,
.site-header nav a[aria-current="page"]:hover{
  background:#0A0A0A;
  color:#FFF;
}
:root[data-theme="dark"] .site-header nav a.active,
:root[data-theme="dark"] .site-header nav a[aria-current="page"],
:root[data-theme="dark"] .site-header nav a.active:hover,
:root[data-theme="dark"] .site-header nav a[aria-current="page"]:hover{
  background:#FFF;
  color:#0A0A0A;
}
.site-header nav .theme-toggle{
  align-self:center;
  margin-left:10px;
  flex-shrink:0;
  padding:0 4px;
}
.nav-toggle{
  display:none;
  background:none;
  border:none;
  width:auto;
  height:auto;
  cursor:pointer;
  color:var(--ink);
  flex-shrink:0;
  min-width:44px;
  min-height:44px;
  padding:10px;
  box-sizing:border-box;
}

/* Outlined "tab" buttons (like Schools ⌄ / Directly to ⌄ / Login ⌄):
   thin border, sharp corners, small caret. Use for dropdown-style controls. */
.tab-btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-body); font-size:14px; font-weight:500; color:var(--ink);
  background:transparent; border:1px solid var(--ink); border-radius:0;
  padding:8px 14px; cursor:pointer;
}
.tab-btn:hover{ background:var(--active-bg); color:var(--active-ink); border-color:var(--active-bg); }
.tab-btn.active{ background:var(--active-bg); color:var(--active-ink); border-color:var(--active-bg); }
.tab-btn svg{ width:12px; height:12px; }
.theme-toggle{ background:none; border:none; width:auto; height:auto; padding:0; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; color:var(--muted); }
.theme-toggle:hover{ color:var(--ink); }
.theme-toggle svg{ width:18px; height:18px; }

/* Resume popup */
.resume-modal[hidden]{ display:none !important; }
.resume-modal{
  position:fixed; inset:0; z-index:1200;
  background:rgba(0,0,0,.72);
  display:flex; align-items:center; justify-content:center;
  padding:clamp(16px,3vw,32px);
}
.resume-modal-card{
  width:min(960px,96vw);
  height:min(86vh,980px);
  background:var(--bg);
  border:1px solid var(--line);
  display:flex; flex-direction:column;
  box-shadow:none;
  overflow:hidden;
}
.resume-modal-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  flex-shrink:0;
  background:var(--bg);
  backdrop-filter:none;
}
.resume-modal-title{
  font-family:var(--font-display);
  font-size:13px; font-weight:600;
  letter-spacing:0.06em; text-transform:uppercase;
  color:var(--ink);
}
.resume-modal-actions{ display:inline-flex; align-items:center; gap:10px; }
.resume-download{
  font-size:13px; font-weight:600; color:var(--ink);
  text-decoration:underline;
  text-underline-offset:2px;
}
.resume-download:hover{ text-decoration:underline; color:var(--ink); background:none; opacity:.7; }
:root[data-theme="dark"] .resume-download{ color:var(--ink); }
:root[data-theme="dark"] .resume-download:hover{ color:var(--ink); }
.resume-close{
  width:36px; height:32px;
  border:1px solid var(--line);
  background:var(--surface-2);
  color:var(--ink);
  cursor:pointer;
  font-size:20px; line-height:1;
  display:inline-flex; align-items:center; justify-content:center;
}
.resume-close:hover{ border-color:var(--ink); background:var(--bg); }
.resume-frame{
  flex:1; width:100%; border:0; background:#fff; min-height:0;
}
@media (max-width:640px){
  .resume-modal{ padding:8px; }
  .resume-modal-card{ height:92vh; width:100%; }
}

.music-toggle{
  position:fixed; right:1.25rem; bottom:1.25rem; z-index:60;
  width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
  background:#0A0A0A; border:1px solid #0A0A0A; color:#FFF;
  cursor:pointer; opacity:1; border-radius:0;
  box-shadow:none;
  backdrop-filter:none;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.music-toggle:hover{
  background:#0A0A0A; color:#FFF; border-color:#0A0A0A;
  opacity:.85;
  transform:none;
}
.music-toggle svg{ width:18px; height:18px; pointer-events:none; }
.music-toggle svg[hidden],
.music-toggle svg.is-hidden{ display:none !important; }
:root[data-theme="dark"] .music-toggle{
  background:#FFF; color:#0A0A0A; border-color:#FFF;
  box-shadow:none;
}
:root[data-theme="dark"] .music-toggle:hover{
  background:#FFF; color:#0A0A0A; border-color:#FFF;
  opacity:.85;
}

.skills-marquee{
  padding-block:clamp(28px,4vw,40px);
  overflow:hidden;
  opacity:.9;
}
.marquee{ overflow:hidden; width:100%; }
.marquee__track{
  display:flex; width:max-content; gap:0;
  animation:marquee 55s linear infinite;
}
.marquee:hover .marquee__track{ animation-play-state:paused; }
.marquee__item{
  font-family:var(--font-body); font-size:12px; font-weight:500;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--muted);
  white-space:nowrap; padding:0 clamp(20px,3vw,36px);
  position:relative;
}
.marquee__item::after{
  content:"·"; position:absolute; right:-2px; color:var(--line);
}
.marquee__item:hover{ color:var(--ink); }
@keyframes marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee__track{ animation:none; flex-wrap:wrap; justify-content:center; }
  .skills-marquee{ overflow:visible; }
}

/* Favourite movies & series — museum collection grid */
.fav-media{
  padding-block:clamp(28px,4vw,48px);
  border-top:1px solid var(--line);
  background:var(--bg);
  background-image:var(--dotfield);
  background-size:var(--dotfield-size);
  overflow-x:clip;
}
.fav-media .page-intro--sub{
  margin-bottom:clamp(12px,2vw,18px);
}
.fav-media .page-intro--sub h2{
  font-size:clamp(22px,2.8vw,32px);
  margin:0;
}
.fav-media__lede{
  margin:14px 0 0;
  max-width:42rem;
  color:var(--ink-soft);
  font-size:clamp(14px,1.4vw,16px);
  line-height:1.55;
}
.fav-media__filters{
  margin:0 0 clamp(20px,3vw,28px);
}
.fav-media .filter-row .tab-btn{
  border-radius:0;
}
.fav-media__grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));
  gap:clamp(16px,2.2vw,24px) clamp(12px,1.8vw,18px);
  position:relative;
  z-index:1;
}
@media (min-width:720px){
  .fav-media__grid{
    grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
  }
}
@media (min-width:1100px){
  .fav-media__grid{
    grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
  }
}
.fav-media__item{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.fav-media__poster{
  display:block;
  text-decoration:none;
  color:inherit;
  border-radius:0;
  outline:none;
  transition:opacity 0.15s ease, transform 0.15s ease;
}
.fav-media__poster:hover,
.fav-media__poster:focus-visible{
  opacity:0.92;
}
.fav-media__poster:focus-visible{
  outline:2px solid var(--ink);
  outline-offset:2px;
}
.fav-media__item img,
.fav-media__poster img{
  display:block;
  width:100%;
  aspect-ratio:2 / 3;
  height:auto;
  object-fit:cover;
  border:1px solid var(--border-hard);
  background:var(--surface);
  border-radius:0;
}
.fav-media__item figcaption{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin:0;
  padding:0;
  border:0;
  color:var(--ink);
}
.fav-media__title{
  font-family:var(--font-display);
  font-size:clamp(13px,1.2vw,15px);
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1.25;
  color:var(--ink);
}
a.fav-media__title{
  text-decoration:none;
  color:var(--ink);
  border-bottom:1px solid transparent;
  width:fit-content;
  max-width:100%;
}
a.fav-media__title:hover,
a.fav-media__title:focus-visible{
  border-bottom-color:var(--ink);
}
.fav-media__meta{
  font-family:var(--font-body);
  font-size:11px;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--muted);
}
a.fav-media__meta{
  text-decoration:none;
  color:var(--muted);
  width:fit-content;
}
a.fav-media__meta:hover,
a.fav-media__meta:focus-visible{
  color:var(--ink);
}
.fav-media--page{
  border-top:0;
  padding-block:clamp(32px,4.5vw,56px);
  overflow:visible;
}
.fav-media--page .notes-back{
  margin:0 0 clamp(18px,2.5vw,28px);
}
.fav-media--page .page-intro{
  margin-bottom:clamp(18px,2.5vw,28px);
}
.fav-media__layout{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(24px,3vw,36px);
  align-items:start;
}
.fav-media__main{
  min-width:0;
}
.fav-media__sidebar{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:22px;
  padding:18px 16px;
  border:1px solid var(--border-hard);
  background:var(--surface);
}
.fav-media__search-wrap{
  position:relative;
  display:block;
}
.fav-media__search-icon{
  position:absolute;
  left:12px;
  top:50%;
  width:16px;
  height:16px;
  transform:translateY(-50%);
  color:var(--muted);
  pointer-events:none;
}
.fav-media__search{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--line);
  background:var(--bg);
  color:var(--ink);
  border-radius:999px;
  padding:11px 14px 11px 38px;
  font-family:var(--font-body);
  font-size:14px;
  line-height:1.2;
  outline:none;
}
.fav-media__search::placeholder{
  color:var(--muted);
}
.fav-media__search:focus{
  border-color:var(--ink);
}
.fav-media__filter-block{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.fav-media__filter-label{
  margin:0;
  font-family:var(--font-body);
  font-size:11px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.fav-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.fav-chip{
  appearance:none;
  border:1px solid var(--line);
  background:var(--bg);
  color:var(--ink-soft);
  border-radius:999px;
  padding:8px 14px;
  font-family:var(--font-body);
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  cursor:pointer;
  transition:background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.fav-chip:hover{
  border-color:var(--ink);
  color:var(--ink);
  background:var(--surface-2);
}
.fav-chip.is-active,
.fav-chip.is-active:hover{
  background:var(--ink);
  color:var(--bg);
  border-color:var(--ink);
}
.fav-media__empty{
  margin:12px 0 0;
  color:var(--muted);
  font-size:14px;
}
@media (min-width:960px){
  .fav-media__layout{
    grid-template-columns:minmax(0,1fr) 240px;
    align-items:start;
  }
  .fav-media__sidebar{
    position:sticky;
    top:72px;
    align-self:start;
    max-height:calc(100vh - 88px);
    overflow-y:auto;
    overscroll-behavior:contain;
    order:2;
  }
  .fav-media__main{
    order:1;
  }
}
@media (max-width:959px){
  .fav-media__sidebar{
    order:-1;
  }
}
.define-collections-head{
  margin-top:clamp(36px,5vw,56px);
}
/* Collection tiles */
.define-pair{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(16px,2.5vw,24px);
  margin-top:clamp(36px,5vw,56px);
  position:relative;
  z-index:1;
}
@media (min-width:820px){
  .define-pair{
    grid-template-columns:repeat(2, 1fr);
    align-items:stretch;
  }
}
@media (min-width:1180px){
  .define-pair{
    grid-template-columns:repeat(3, 1fr);
  }
}
.define-card{
  display:flex;
  flex-direction:column;
  gap:0;
  background:var(--surface);
  border:1px solid var(--border-hard);
  color:inherit;
  text-decoration:none;
  min-width:0;
  overflow:hidden;
}
.define-card .define-mosaic{
  border:0;
  border-bottom:1px solid var(--border-hard);
  aspect-ratio:16 / 10;
  border-radius:0;
}
.define-card__body{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:clamp(16px,2.2vw,22px);
  flex:1;
}
.define-card__body .eyebrow{
  margin:0 0 4px;
}
.define-card__title{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(18px,2vw,22px);
  font-weight:800;
  letter-spacing:-0.03em;
  line-height:1.2;
  color:var(--ink);
}
.define-card__brief{
  margin:0 0 8px;
  max-width:none;
  font-size:14px;
  line-height:1.5;
  color:var(--ink-soft);
}
.define-card .proj-show__cta{
  margin-top:auto;
}
/* Hard-border poster mosaic — collection preview */
.define-mosaic{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  grid-template-rows:repeat(2, 1fr);
  gap:2px;
  background:var(--border-hard);
  border:1px solid var(--border-hard);
  overflow:hidden;
  aspect-ratio:16 / 10;
}
.define-mosaic img{
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  display:block;
  border:0 !important;
  filter:none !important;
  transform:none !important;
}
.define-mosaic--yt img{
  object-position:center;
}
.define-mosaic--toys img{
  object-fit:contain;
  object-position:center;
  background:var(--surface);
}
.define-mosaic--people img{
  object-position:center top;
}

/* Toys collection grid */
.fav-toys{
  background:var(--bg);
  background-image:var(--dotfield);
  background-size:var(--dotfield-size);
}
.fav-toys__grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
  gap:clamp(16px,2.2vw,24px);
  position:relative;
  z-index:1;
}
@media (min-width:900px){
  .fav-toys__grid{
    grid-template-columns:repeat(3, 1fr);
  }
}
.fav-toys__item{
  margin:0;
  min-width:0;
}
.fav-toys__card{
  display:flex;
  flex-direction:column;
  gap:10px;
  text-decoration:none;
  color:inherit;
}
.fav-toys__card img{
  display:block;
  width:100%;
  aspect-ratio:1;
  object-fit:contain;
  object-position:center;
  border:1px solid var(--border-hard);
  background:var(--surface);
}
.fav-toys__title{
  font-family:var(--font-display);
  font-size:clamp(15px,1.4vw,18px);
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1.25;
  color:var(--ink);
  border-bottom:1px solid transparent;
  width:fit-content;
}
.fav-toys__card:hover .fav-toys__title,
.fav-toys__card:focus-visible .fav-toys__title{
  border-bottom-color:var(--ink);
}
.fav-toys__meta{
  display:block;
  margin-top:3px;
  font-family:var(--font-body);
  font-size:11px;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--muted);
}

/* YouTube collection grid */
.fav-people{
  background:var(--bg);
  background-image:var(--dotfield);
  background-size:var(--dotfield-size);
}
.fav-people__toolbar{
  display:flex;
  justify-content:flex-end;
  margin:0 0 12px;
  position:relative;
  z-index:1;
}
.fav-people__sort{
  display:flex;
  flex-shrink:0;
}
.fav-people__sort-select{
  appearance:none;
  -webkit-appearance:none;
  font-family:var(--font-body);
  font-size:14px;
  font-weight:600;
  color:var(--ink);
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 36px 10px 16px;
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:12px 7px;
  transition:border-color .15s ease;
}
.fav-people__sort-select:hover{
  border-color:var(--ink);
}
.fav-people__sort-select:focus-visible{
  outline:2px solid var(--ink);
  outline-offset:2px;
}
.fav-people__grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
  gap:clamp(20px,2.8vw,32px) clamp(14px,2vw,22px);
  position:relative;
  z-index:1;
}
@media (min-width:720px){
  .fav-people__grid{
    grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  }
}
@media (min-width:1100px){
  .fav-people__grid{
    grid-template-columns:repeat(5, 1fr);
  }
}
.fav-people__item{
  margin:0;
  min-width:0;
}
.fav-people__card{
  display:flex;
  flex-direction:column;
  gap:12px;
  text-decoration:none;
  color:inherit;
  height:100%;
}
.fav-people__card img{
  display:block;
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  object-position:center top;
  border:1px solid var(--border-hard);
  background:var(--surface-2);
  filter:grayscale(1) contrast(1.15) brightness(1.02);
  transition:filter 0.3s ease, opacity 0.15s ease;
}
.fav-people__card:hover img,
.fav-people__card:focus-visible img{
  filter:grayscale(0) contrast(1) brightness(1);
}
.fav-people__card:hover img,
.fav-people__card:focus-visible img{
  opacity:0.92;
}
.fav-people__card:focus-visible img{
  outline:2px solid var(--ink);
  outline-offset:2px;
}
.fav-people__card figcaption{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin:0;
  padding:0;
  border:0;
  text-transform:none;
  letter-spacing:normal;
  font-size:inherit;
  font-weight:inherit;
  color:var(--ink);
}
.fav-people__title{
  font-family:var(--font-display);
  font-size:clamp(15px,1.35vw,18px);
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1.25;
  color:var(--ink);
  border-bottom:1px solid transparent;
  width:fit-content;
  max-width:100%;
}
.fav-people__card:hover .fav-people__title,
.fav-people__card:focus-visible .fav-people__title{
  border-bottom-color:var(--ink);
}
.fav-people__role{
  font-family:var(--font-body);
  font-size:11px;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--muted);
}
.fav-youtube{
  background:var(--bg);
  background-image:var(--dotfield);
  background-size:var(--dotfield-size);
}
.fav-youtube__grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));
  gap:clamp(16px,2.2vw,24px);
  position:relative;
  z-index:1;
}
@media (min-width:900px){
  .fav-youtube__grid{
    grid-template-columns:repeat(4, 1fr);
  }
}
@media (min-width:1200px){
  .fav-youtube__grid{
    grid-template-columns:repeat(5, 1fr);
  }
}
.fav-youtube__item{
  margin:0;
  min-width:0;
}
.fav-youtube__card{
  display:flex;
  flex-direction:column;
  gap:10px;
  text-decoration:none;
  color:inherit;
}
.fav-youtube__card img{
  display:block;
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  object-position:center;
  border:1px solid var(--border-hard);
  background:var(--surface-2);
}
.fav-youtube__title{
  font-family:var(--font-display);
  font-size:clamp(15px,1.4vw,18px);
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1.25;
  color:var(--ink);
  border-bottom:1px solid transparent;
  width:fit-content;
}
.fav-youtube__card:hover .fav-youtube__title,
.fav-youtube__card:focus-visible .fav-youtube__title{
  border-bottom-color:var(--ink);
}
.fav-youtube__meta{
  display:block;
  margin-top:3px;
  font-family:var(--font-body);
  font-size:11px;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--muted);
}
#articles .page-intro--sub{
  margin-bottom:clamp(18px,2.5vw,28px);
}
#articles .page-intro--sub h2{
  font-size:clamp(22px,2.8vw,32px);
  margin:0;
}

/* Collapse earlier so active tab + links don’t overflow mid widths */
@media(max-width:900px){
  .site-header nav{ display:none; }
  .site-header nav.open{
    display:flex;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction:column;
    align-items:flex-start;
    align-self:auto;
    gap:2px;
    background:var(--bg);
    backdrop-filter:none;
    border-bottom:3px solid #0A0A0A;
    padding:12px var(--gutter) 16px;
    z-index:60;
    box-shadow:none;
  }
  :root[data-theme="dark"] .site-header nav.open{
    border-bottom-color:#FFF;
  }
  .site-header nav.open a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
    padding:10px 12px;
  }
  .site-header nav.open a.active,
  .site-header nav.open a[aria-current="page"]{
    width:fit-content;
    max-width:calc(100% - 8px);
  }
  .site-header nav.open .theme-toggle{
    margin-left:0;
    margin-top:8px;
    min-height:44px;
    padding:10px 4px;
  }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
}

/* ============ LIGHTBOX ============ */
.lightbox{ position:fixed; inset:0; background:rgba(0,0,0,.9); display:none; align-items:center; justify-content:center; z-index:1000; padding:24px; cursor:zoom-out; }
.lightbox.open{ display:flex; }
.lightbox img{ max-width:96vw; max-height:92vh; width:auto; height:auto; background:#fff; }
.lightbox__close{ position:absolute; top:18px; right:22px; background:none; border:1px solid rgba(255,255,255,.5); color:#fff; width:40px; height:40px; cursor:pointer; font-size:20px; line-height:1; }
[data-zoom]{ cursor:zoom-in; }

/* ============ CASE STUDY CONFIDENTIALITY (above Next up) ============ */
.section.cs-confidentiality{
  padding-block:clamp(20px,3vw,32px);
  text-align:center;
}
.cs-confidentiality__note{
  font-size:12px;
  color:var(--muted);
  max-width:52ch;
  margin:0 auto;
  line-height:1.55;
}
.section.cs-confidentiality + .section.more-work{
  border-top:1px solid var(--line);
}

/* ============ MORE WORK / NEXT UP — minimal horizontal scroll ============ */
.more-work__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-bottom:clamp(16px,2.5vw,24px);
}
.more-work__head .eyebrow{ letter-spacing:.12em; }
.more-work__all{
  font-size:13px;
  font-weight:500;
  color:var(--ink-soft);
  border-bottom:1px solid var(--line-strong);
  padding:0 0 1px;
  white-space:nowrap;
  flex-shrink:0;
}
.more-work__all:hover{
  color:var(--ink);
  border-bottom-color:var(--accent);
  background:none;
}
.section.more-work{
  padding-bottom:clamp(28px,4vw,44px);
}
/* Scrollbar sits on the section bottom divider */
.section.more-work + .section{
  border-top:none;
}
.more-work__scroller,
.more-work__grid{
  --mw-gap:clamp(16px,2vw,24px);
  display:flex;
  gap:var(--mw-gap);
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  padding:2px 0 14px;
  margin:0;
  /* Firefox: thumb on a full-width bottom track line */
  scrollbar-width:thin;
  scrollbar-color:var(--ink-soft) var(--line);
}
.more-work__scroller::-webkit-scrollbar,
.more-work__grid::-webkit-scrollbar{
  height:2px;
  background:transparent;
}
.more-work__scroller::-webkit-scrollbar-track,
.more-work__grid::-webkit-scrollbar-track{
  background:var(--line);
}
.more-work__scroller::-webkit-scrollbar-thumb,
.more-work__grid::-webkit-scrollbar-thumb{
  background:var(--ink-soft);
  border-radius:0;
}
.more-work__scroller:hover::-webkit-scrollbar-thumb,
.more-work__grid:hover::-webkit-scrollbar-thumb{
  background:var(--ink);
}
.mw-card{
  /* ~3.5 cards: 3 full + half of the 4th peeking */
  flex:0 0 calc((100% - (2.5 * var(--mw-gap))) / 3.5);
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
  background:transparent;
  border:none;
  padding:0;
  overflow:visible;
  color:inherit;
  height:auto;
  scroll-snap-align:start;
  text-decoration:none;
}
.mw-card:hover{
  border-color:transparent;
  background:transparent;
  box-shadow:none;
}
.mw-card__media{
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--surface);
  flex-shrink:0;
  border:1px solid var(--line-strong);
  box-sizing:border-box;
  transition:border-color .15s ease;
}
.mw-card:hover .mw-card__media{ border-color:var(--ink); }
.mw-card__media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:top center;
  border-radius:0;
  box-shadow:none;
}
.mw-card__media--diagram{ background:var(--surface); }
.mw-card__media--diagram img{
  object-fit:contain;
  object-position:center;
  padding:8px;
  box-sizing:border-box;
}
.mw-card__media--label{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0A0A0A;
  color:#FFFFFF;
  font-family:var(--font-display);
  font-weight:600;
  font-size:13px;
  letter-spacing:-0.01em;
  text-align:center;
  padding:12px;
  line-height:1.25;
}
.mw-card__body{
  min-width:0;
  padding:0 2px 0 0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  text-align:left;
}
.mw-card__tags{ display:none; }
.mw-card__name{
  font-family:var(--font-display);
  font-weight:500;
  font-size:14.5px;
  line-height:1.25;
  letter-spacing:-0.02em;
  color:var(--ink);
}
.mw-card__desc{
  font-size:12.5px;
  line-height:1.4;
  color:var(--ink-soft);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.mw-card .proj-show__cta{
  margin-top:2px;
  font-size:12.5px;
}
@media (max-width:900px){
  .mw-card{
    flex-basis:calc((100% - (1.5 * var(--mw-gap))) / 2.5);
  }
}
@media (max-width:560px){
  .mw-card{
    flex-basis:calc((100% - (0.5 * var(--mw-gap))) / 1.5);
  }
}

/* ============ PROJECTS INDEX PAGE — Design Museum catalog list ============ */
#projects.section,
#articles.section{
  background-color:var(--bg) !important;
  background-image:var(--dotfield) !important;
  background-size:var(--dotfield-size) !important;
}
#projects .page-intro,
#projects .filter-row,
#articles .page-intro,
#articles .filter-row{
  position:relative;
  z-index:1;
}
.proj-catalog{
  position:relative;
  z-index:1;
  background:var(--surface);
  border:1px solid var(--border-hard);
  width:100%;
  box-sizing:border-box;
  /* Generous inset so thumbs + copy breathe inside the hard border */
  padding:0 clamp(24px,3.5vw,40px);
}
#articles .proj-catalog{
  padding:0 clamp(24px,3.5vw,40px);
}

/* ============ EXPERIENCE / EDUCATION — museum catalog (same family as projects) ============ */
#experience.section,
#education.section{
  background-color:var(--bg) !important;
  background-image:var(--dotfield) !important;
  background-size:var(--dotfield-size) !important;
}
#experience .page-intro,
#education .page-intro{
  position:relative;
  z-index:1;
}
.li-catalog{
  position:relative;
  z-index:1;
  background:var(--surface);
  border:1px solid var(--border-hard);
  width:100%;
  box-sizing:border-box;
  padding:0 clamp(20px,3vw,36px);
  margin-top:0;
  overflow:visible;
}
.li-catalog .li-item{
  padding:clamp(24px,3vw,32px) 0;
  border-bottom:1px dotted var(--line-strong);
  align-items:start;
}
.li-catalog .li-item:last-child{ border-bottom:none; }
/* Date badge as top/left museum marker — full date strings kept */
.li-catalog .li-head{
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}
.li-catalog .li-date{
  order:-1;
  display:inline-block;
  margin:0;
  padding:6px 10px;
  background:var(--accent);
  color:var(--accent-ink);
  font-family:var(--font-display);
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  line-height:1.35;
  text-align:left;
  white-space:normal;
  max-width:100%;
  flex-shrink:0;
  border-radius:0;
}
.li-catalog .li-roles{
  border-left-color:var(--line-strong);
}
@media (max-width:640px){
  .li-catalog{ padding:0 16px; }
  .li-catalog .li-item{ padding:18px 0; }
  .li-catalog .li-date{
    font-size:11px;
    padding:5px 8px;
  }
}

/* ============ NOTES — Design Museum Q&A / catalog essay ============ */
#notes.section,
.notes-band{
  position:relative;
  background-color:var(--bg) !important;
  background-image:var(--dotfield) !important;
  background-size:var(--dotfield-size) !important;
  overflow:hidden;
}
.notes-wrap{
  position:relative;
  z-index:1;
  min-width:0;
  width:100%;
  box-sizing:border-box;
}
/* Secondary horizontal dashed guide lines (museum Q&A structure) */
.notes-guides{
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:100vw;
  transform:translateX(-50%);
  z-index:0;
  pointer-events:none;
  background-image:repeating-linear-gradient(
    90deg,
    rgba(10,10,10,.28) 0 6px,
    transparent 6px 16px
  );
  background-size:16px 1px;
  background-repeat:repeat;
  background-position:0 0;
  /* Only paint a rule every ~56px: mask to thin horizontal slots */
  -webkit-mask-image:repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 55px,
    #000 55px,
    #000 56px
  );
  mask-image:repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 55px,
    #000 55px,
    #000 56px
  );
  opacity:1;
}
:root[data-theme="dark"] .notes-guides{
  background-image:repeating-linear-gradient(
    90deg,
    rgba(245,246,248,.32) 0 6px,
    transparent 6px 16px
  );
}
.notes-stack{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:clamp(16px,2.4vw,24px);
  width:100%;
  max-width:none;
}
.notes-title{
  position:relative;
  z-index:1;
  margin:0;
  max-width:none;
  background:none;
  border:0;
  padding:0;
}
/* Match global page H1 (Archivo display) — wrap long article titles */
.notes-title h1{
  margin:0;
  white-space:normal;
  text-wrap:balance;
}
.notes-back{
  position:relative;
  z-index:1;
  margin:0;
}
.notes-back .link,
a.link.cs-back,
a.link.tx-back,
.cs-back.link,
.tx-back.link{
  display:inline-flex;
  align-items:center;
  background:#0A0A0A;
  color:#FFF;
  border:1px solid #0A0A0A;
  border-bottom:1px solid #0A0A0A;
  border-radius:0;
  padding:8px 12px;
  font-size:13px;
  font-weight:500;
  line-height:1.2;
  text-decoration:none;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.notes-back .link:hover,
a.link.cs-back:hover,
a.link.tx-back:hover,
.cs-back.link:hover,
.tx-back.link:hover{
  background:#FFF;
  color:#0A0A0A;
  border-color:#0A0A0A;
}
:root[data-theme="dark"] .notes-back .link,
:root[data-theme="dark"] a.link.cs-back,
:root[data-theme="dark"] a.link.tx-back,
:root[data-theme="dark"] .cs-back.link,
:root[data-theme="dark"] .tx-back.link{
  background:#FFF;
  color:#0A0A0A;
  border-color:#FFF;
}
:root[data-theme="dark"] .notes-back .link:hover,
:root[data-theme="dark"] a.link.cs-back:hover,
:root[data-theme="dark"] a.link.tx-back:hover,
:root[data-theme="dark"] .cs-back.link:hover,
:root[data-theme="dark"] .tx-back.link:hover{
  background:#0A0A0A;
  color:#FFF;
  border-color:#FFF;
}
.notes-panel{
  position:relative;
  z-index:1;
  background:var(--surface);
  border:1px solid var(--border-hard);
  border-radius:0;
  box-sizing:border-box;
  width:100%;
  max-width:none;
  align-self:stretch;
  margin:0;
}
.notes-panel--essay{
  padding:clamp(22px,2.8vw,36px) clamp(18px,2.6vw,36px);
  text-align:left;
}
.notes-essay p{
  color:var(--ink-soft);
  font-size:16px;
  line-height:1.7;
  max-width:none;
  width:100%;
  margin:0 0 1.15em;
  text-align:left;
}
.notes-essay p:last-child{
  margin-bottom:0;
}
/* Key-point callout blocks inside articles */
.notes-highlight{
  margin:0 0 1.25em;
  padding:clamp(14px,1.8vw,20px) clamp(14px,2vw,22px);
  background:var(--bg);
  border:1px solid var(--border-hard);
  border-left:4px solid var(--ink);
  color:var(--ink);
  font-family:var(--font-display);
  font-size:clamp(16px,1.55vw,19px);
  font-weight:600;
  letter-spacing:-0.02em;
  line-height:1.45;
  max-width:none;
  width:100%;
  box-sizing:border-box;
}
.notes-highlight p{
  margin:0;
  color:inherit;
  font:inherit;
  max-width:none;
}
.notes-highlight + .notes-highlight{
  margin-top:-0.35em;
}
/* Museum wall-label attribution — muted, tracked, left under essay */
.notes-essay .notes-attr{
  margin:1.6em 0 0;
  padding:0;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  letter-spacing:0.22em;
  line-height:1.4;
  text-transform:uppercase;
  text-align:left;
  max-width:none;
}
/* Full-bleed still inside the essay panel — hard edges, no extra bordered shell */
.notes-essay .notes-figure{
  margin:0 calc(-1 * clamp(18px,2.6vw,36px)) 1.15em;
  width:calc(100% + 2 * clamp(18px,2.6vw,36px));
  max-width:none;
  padding:0;
  border:0;
  background:transparent;
}
.notes-essay .notes-figure img{
  width:100%;
  height:auto;
  display:block;
  border:0;
  border-radius:0;
}
.notes-essay .notes-figure > img{
  filter:none !important;
}
.notes-essay .notes-figure figcaption{
  margin:10px clamp(18px,2.6vw,36px) 0;
  padding:0;
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
  text-align:center;
}
@media (max-width:720px){
  .notes-stack{ gap:14px; }
  .notes-title,
  .notes-lede,
  .notes-back{
    max-width:100%;
    min-width:0;
  }
  .notes-panel--essay{
    padding:18px 16px;
    overflow-x:clip;
  }
  .notes-essay p{
    font-size:15.5px;
    max-width:none;
  }
  .notes-essay .notes-figure{
    margin:0 -16px 1.15em;
    width:calc(100% + 32px);
    max-width:none;
  }
  .notes-essay .notes-figure img{
    width:100%;
    height:auto;
  }
  .notes-essay .notes-figure figcaption{
    margin-left:16px;
    margin-right:16px;
  }
  .notes-guides{
    opacity:.55;
  }
}
@media (max-width:520px){
  .li-catalog .li-item{
    grid-template-columns:40px 1fr;
    padding:16px 0;
    gap:12px;
  }
}
.proj-stack{
  display:flex;
  flex-direction:column;
  gap:0;
  width:100%;
  margin:0;
}
.proj-show{
  display:grid;
  grid-template-columns:minmax(160px,240px) minmax(0,1fr);
  gap:clamp(24px,3vw,32px);
  align-items:start;
  color:inherit;
  text-decoration:none;
  padding:clamp(28px,3.2vw,36px) 0;
  border-bottom:1px dotted var(--line-strong);
}
.proj-show:last-child{ border-bottom:none; }
/* Always image left / text right — no alternating */
.proj-show:nth-child(even),
.proj-show:nth-child(odd){
  grid-template-columns:minmax(160px,240px) minmax(0,1fr);
}
.proj-show:nth-child(even) .proj-show__media,
.proj-show:nth-child(even) .proj-show__body{ order:unset; }

.proj-show__media{
  background:var(--surface-2);
  border-radius:0;
  border:1px solid var(--line);
  padding:0;
  overflow:hidden;
  min-width:0;
  aspect-ratio:4/3;
}
.proj-show__media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  border-radius:0;
  box-shadow:none;
  filter:none !important;
  transition:opacity .2s ease;
}
/* Article catalog thumbs — keep photo crops clean (no glitch wrappers) */
#articles .proj-show__media img{
  object-position:center;
  filter:none !important;
}
.proj-show:hover .proj-show__media img{
  transform:none;
  opacity:.9;
}
.proj-show__media--label{
  min-height:0;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0A0A0A;
  color:#fff;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(14px,1.6vw,18px);
  letter-spacing:-0.02em;
  text-align:center;
  padding:20px;
  border:none;
}
.proj-show__media--diagram{
  background:var(--surface);
  border:1px solid var(--line);
}
.proj-show__media--diagram img{
  object-fit:contain;
  object-position:center;
  padding:8px;
  box-sizing:border-box;
}
:root[data-theme="dark"] .proj-show__media--diagram{
  background:var(--surface);
}
.proj-show__body{
  min-width:0;
  text-align:left;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  padding-block:0;
}
.proj-show__tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  justify-content:flex-start;
  margin-bottom:10px;
}
.proj-show__title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(18px,2vw,24px);
  letter-spacing:-0.03em;
  line-height:1.15;
  margin:0 0 8px;
  color:var(--ink);
  text-wrap:balance;
}
.proj-show__brief{
  margin:0 0 12px;
  max-width:none;
  width:100%;
  color:var(--ink-soft);
  font-size:14.5px;
  line-height:1.55;
}
.proj-show__brief strong{
  color:var(--ink);
  font-size:inherit;
  font-weight:600;
}
.proj-show__cta{
  display:inline-block;
  font-size:13px;
  font-weight:500;
  color:var(--muted);
  border-bottom:1px solid var(--line-strong);
  border-radius:0;
  padding:2px 0 1px;
  transition:color .15s ease, border-color .15s ease, background-color .15s ease, padding .15s ease;
}
/* Museum black highlight — CTA hover */
.proj-show:hover .proj-show__cta,
.proj-show:focus-visible .proj-show__cta,
.mw-card:hover .proj-show__cta,
.mw-card:focus-visible .proj-show__cta{
  background:#0A0A0A;
  color:#FFF;
  border-bottom-color:transparent;
  border-radius:0;
  padding:2px 6px 1px;
}
.proj-show.is-hidden{ display:none!important; }

@media (max-width:820px){
  .proj-show,
  .proj-show:nth-child(even),
  .proj-show:nth-child(odd){
    grid-template-columns:minmax(140px,180px) minmax(0,1fr);
    gap:16px;
  }
  .proj-show__media{ border-radius:0; }
  .proj-show__body{ padding-inline:0; }
}
@media (max-width:640px){
  .proj-catalog,
  #articles .proj-catalog,
  .li-catalog{ padding:0 16px; }
  .proj-show,
  .proj-show:nth-child(even),
  .proj-show:nth-child(odd){
    grid-template-columns:1fr;
    gap:14px;
    padding:22px 0;
  }
  .proj-show__media{
    aspect-ratio:16/10;
    max-width:100%;
    width:100%;
  }
  .filter-row{ gap:8px; margin:16px 0 20px; }
  .filter-row .tab-btn{
    min-height:40px;
    padding:10px 14px;
  }
  .page-intro{
    max-width:100%;
    margin-bottom:20px;
  }
  .page-intro__lede{
    max-width:100%;
  }
}
@media (max-width:520px){
  .proj-show__title{ font-size:clamp(17px,5.2vw,22px); }
  .proj-show__brief{ font-size:14px; }
}

/* ============ CASE STUDY VISUAL SYSTEM ============ */
/* Same left edge / measure as Projects + Experience */
.cs-back{
  display:inline-flex;
  margin:clamp(20px,3vw,28px) 0 0;
}
.cs-hero{
  text-align:left;
  padding-block:clamp(20px,3vw,32px) clamp(16px,2.5vw,28px);
  background:var(--bg);
  background-image:none;
  display:grid;
  grid-template-columns:minmax(0,520px) minmax(180px,1fr);
  column-gap:clamp(28px,4vw,48px);
  row-gap:0;
  align-items:start;
}
main.wrap > .section,
main.cs-page > .section,
main > .wrap > .section{
  padding-block:clamp(32px,4.5vw,56px);
}
main.wrap > .cs-hero,
main.cs-page > .cs-hero,
main > .wrap > .cs-hero,
.section.cs-hero{
  padding-block:clamp(20px,3vw,32px) clamp(16px,2.5vw,28px);
}
.cs-hero + .section{
  padding-top:clamp(24px,3.5vw,40px);
}
.cs-hero > .cs-back,
.cs-hero > .cs-badge,
.cs-hero > .eyebrow,
.cs-hero > h1,
.cs-hero > .cs-hero__lede{
  grid-column:1 / -1;
}
.cs-hero .eyebrow,
.cs-hero > .cs-badge{ display:none !important; }
.cs-hero h1{
  max-width:22ch;
  margin:0 0 .4em;
  text-wrap:balance;
}
.cs-hero__lede{
  max-width:58ch;
  margin:0 0 clamp(24px,3.5vw,36px);
  color:var(--ink-soft);
  font-size:clamp(15px,1.45vw,17px);
  line-height:1.65;
}
.cs-hero__lede.page-lede-mark{
  max-width:none;
  color:var(--ink);
}
.cs-hero__cover{
  position:relative;
  grid-column:1;
  width:100%;
  max-width:560px;
  margin:0;
  border-radius:0;
  overflow:hidden;
  background:var(--surface);
  padding:0;
  border:1px solid var(--line-strong);
  box-sizing:border-box;
}
.cs-hero__cover img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
  object-position:top center;
  border-radius:0;
  box-shadow:none;
}
.cs-hero__cover::after{ display:none; }
.cs-hero__cover--diagram{
  background:var(--surface);
}
.cs-hero__cover--diagram img{
  object-fit:contain;
  max-height:min(42vh,360px);
  margin:0;
  box-shadow:none;
}

.cs-overview{
  display:grid;
  grid-column:2;
  grid-template-columns:1fr 1fr;
  column-gap:clamp(20px,2.5vw,32px);
  row-gap:0;
  max-width:none;
  width:100%;
  margin:0;
  padding-top:2px;
  text-align:left;
  align-self:start;
}
/* No cover image — same 2-col meta grid, full width under the lede */
.cs-hero:not(:has(.cs-hero__cover)) .cs-overview{
  grid-column:1 / -1;
  grid-template-columns:1fr 1fr;
  max-width:none;
  margin-top:0;
  align-self:stretch;
}
.cs-overview__card,
.cs-page .meta > div,
main.wrap > .section:first-of-type .meta > div,
.druva-meta > div{
  background:transparent;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  padding:12px 0;
  box-shadow:none;
  min-width:0;
}
/* Drop hairline under the last row (handles odd counts in 2-col) */
.cs-overview__card:last-child,
.cs-overview__card:nth-last-child(2):nth-child(odd),
.cs-page .meta > div:last-child,
main.wrap > .section:first-of-type .meta > div:last-child,
.druva-meta > div:last-child{
  border-bottom:0;
  padding-bottom:0;
}
.cs-overview__card .k,
.cs-page .meta .k,
main.wrap > .section:first-of-type .meta .k,
.druva-meta .k{
  display:block;
  font-size:11px;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 4px;
  padding:0;
  border:0;
}
.cs-overview__card .v,
.cs-page .meta .v,
main.wrap > .section:first-of-type .meta .v,
.druva-meta .v{
  font-family:var(--font-display);
  font-weight:700;
  font-size:15px;
  line-height:1.35;
  color:var(--ink);
}
/* No-cover heroes share the same card hairlines as covered layouts */
.cs-hero:not(:has(.cs-hero__cover)) .cs-overview__card{
  border-bottom:1px solid var(--line);
  border-top:0;
  padding:12px 0;
}
.cs-hero:not(:has(.cs-hero__cover)) .cs-overview__card:last-child,
.cs-hero:not(:has(.cs-hero__cover)) .cs-overview__card:nth-last-child(2):nth-child(odd){
  border-bottom:0;
  padding-bottom:0;
}
.cs-page .meta,
main.wrap > .section:first-of-type .meta,
.druva-meta{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:clamp(20px,3vw,32px) clamp(16px,2.5vw,28px);
  border-top:none;
  padding-top:0;
  margin-top:clamp(24px,3.5vw,36px);
}
.cs-story{
  max-width:62ch;
  margin:0;
  padding-block:0;
  text-align:left;
}
.cs-story h2,
.cs-story h3{ margin-top:0; }

.cs-well,
.cs-page .plate,
main.wrap .plate{
  background:transparent;
  border:none;
  border-radius:0;
  padding:0;
  overflow:hidden;
}
.cs-well img,
.cs-page .plate img,
main.wrap .plate img{
  width:100%;
  height:auto;
  display:block;
  border-radius:0;
  box-shadow:none;
}
.cs-well + .cs-well,
.cs-page .plate + .plate,
main.wrap .plate + .plate{
  margin-top:clamp(20px,3vw,32px);
}

.cs-impact{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  background:transparent;
  border-radius:0;
  padding:0;
  margin:clamp(24px,4vw,40px) 0;
}
.cs-impact__item{
  text-align:left;
  background:transparent;
  border-radius:0;
  padding:0;
}
.cs-impact__num{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(28px,3.5vw,40px);
  letter-spacing:-0.03em;
  color:var(--ink);
  line-height:1.1;
  margin:0 0 6px;
}
.cs-impact__label{
  font-size:13px;
  color:var(--ink-soft);
  margin:0;
  line-height:1.4;
}

/* Center classic case-study first sections that aren't already custom heroes */
main.wrap > a.link + .section.cs-hero,
main.cs-page > a.link + .section.cs-hero{
  border-top:none;
}

/* Let shared shell win over page-local hero overrides */
.cs-hero.tx-hero,
.cs-hero.db-hero{
  text-align:left;
  background:var(--bg);
}
.cs-hero.tx-hero .cs-overview,
.cs-hero.db-hero .cs-overview{ text-align:left; }
.cs-hero.db-hero .cs-back{
  display:inline-flex;
  margin:0 0 20px;
}

@media (max-width:820px){
  .cs-hero{
    grid-template-columns:1fr;
  }
  .cs-hero__cover{
    grid-column:1;
    max-width:min(100%,420px);
  }
  .cs-overview{
    grid-column:1;
    grid-template-columns:1fr 1fr;
    max-width:none;
    margin-top:20px;
    align-self:stretch;
  }
  .cs-hero:not(:has(.cs-hero__cover)) .cs-overview{
    grid-template-columns:1fr 1fr;
  }
  .cs-page .meta,
  main.wrap > .section:first-of-type .meta,
  .druva-meta,
  .cs-impact{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .cs-hero h1{ max-width:none; }
}
@media (max-width:640px){
  .cs-overview,
  .cs-hero:not(:has(.cs-hero__cover)) .cs-overview{
    grid-template-columns:1fr;
    column-gap:0;
  }
  /* Single column — only the true last item drops its hairline */
  .cs-overview__card:nth-last-child(2):nth-child(odd){
    border-bottom:1px solid var(--line);
    padding-bottom:12px;
  }
  .cs-overview__card:last-child,
  .cs-hero:not(:has(.cs-hero__cover)) .cs-overview__card:last-child{
    border-bottom:0;
    padding-bottom:0;
  }
  .cs-hero:not(:has(.cs-hero__cover)) .cs-overview__card:nth-last-child(2):nth-child(odd){
    border-bottom:1px solid var(--line);
    padding-bottom:12px;
  }
  .cs-page .meta,
  main.wrap > .section:first-of-type .meta,
  .druva-meta,
  .cs-impact{
    grid-template-columns:1fr;
  }
  .cs-hero__cover{ max-width:100%; }
}

/* Case-study utilities — Design Museum hairlines */
.cs-badge{
  display:inline-block;
  margin:0 0 16px;
  font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted);
  background:transparent;
  border:0;
  border-bottom:1.5px solid var(--ink);
  padding:0 0 5px;
  border-radius:0;
}
.cs-gate-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:12px;
  margin-top:24px;
}
.cs-gate-card{
  background:var(--bg);
  border:1px solid var(--border-hard);
  border-radius:0;
  padding:18px 20px;
  box-shadow:none;
}
.cs-gate-card .n{
  display:inline-block;
  margin:0 0 10px;
  font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted);
  padding-bottom:4px;
  border-bottom:1.5px solid var(--ink);
}
.cs-gate-card h3{
  margin:0 0 8px;
  font-family:var(--font-display);
  font-size:16px; font-weight:600; letter-spacing:-0.02em;
}
.cs-gate-card p{ margin:0; font-size:14px; color:var(--ink-soft); max-width:none; }
.cs-view-toggle{
  display:inline-flex; flex-wrap:wrap; gap:0;
  margin:0 0 16px;
  border:1px solid var(--line);
}
.cs-view-toggle__btn{
  appearance:none; cursor:pointer;
  border:0; border-right:1px solid var(--line);
  background:var(--bg);
  color:var(--ink-soft);
  font:inherit; font-size:13px; font-weight:600;
  padding:8px 14px;
}
.cs-view-toggle__btn:last-child{ border-right:0; }
.cs-view-toggle__btn:hover{ color:var(--ink); background:var(--surface-2); }
.cs-view-toggle__btn[aria-pressed="true"]{
  background:var(--ink); color:var(--bg);
}

/* ============ DESIGN MUSEUM PASS ============ */
.cs-hero h1,
.hero-grid h1{
  font-weight:900;
  letter-spacing:-0.05em;
}

/* Hard-edged card language sitewide */
.cs-persona,
.tx .persona,
.tx-persona,
.druva-persona,
.ui-card,
.contact-card,
.cs-impact > div,
.cs-pointer,
.cs-callout,
.tradeoff,
.plate{
  border:1px solid var(--border-hard) !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.life-board,
.life-board--gamer{
  border-color:var(--border-hard);
  background:var(--border-hard);
}

/* Shared case-study persona — IR rail pattern (all projects) */
.cs-persona{
  display:grid;
  grid-template-columns:minmax(220px,280px) minmax(0,1fr);
  align-items:stretch;
  border:1px solid var(--border-hard);
  background:var(--surface);
  width:100%;
  box-sizing:border-box;
  overflow:hidden;
}
.cs-persona + .cs-persona{ margin-top:24px; }
.cs-persona__rail{
  background:var(--accent);
  color:var(--accent-ink);
  padding:clamp(24px,2.4vw,32px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:16px;
  position:relative;
  min-height:100%;
  box-sizing:border-box;
}
.cs-persona__rail::after{ display:none !important; content:none !important; }
.cs-persona__identity{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  column-gap:14px;
  row-gap:0;
  align-items:center;
  width:100%;
}
/* Flatten wrapper so eyebrow can sit above the avatar+title row */
.cs-persona__identity > div:not(.cs-persona__avatar){
  display:contents;
}
.cs-persona__avatar{
  grid-column:1;
  grid-row:2;
  align-self:center;
  width:48px;
  height:48px;
  border:none !important;
  border-radius:0 !important;
  background:var(--accent-ink);
  color:var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-display);
  font-weight:800;
  font-size:20px;
  letter-spacing:-0.03em;
  flex-shrink:0;
  line-height:1;
}
/* Kicker above the avatar+name row (hidden by default — keep slot for pages that show it) */
.cs-persona__rail .eyebrow,
.cs-persona__identity .eyebrow{
  display:none !important;
  grid-column:1 / -1;
  grid-row:1;
  margin:0 0 8px;
  padding-bottom:3px;
  border-bottom:1px solid color-mix(in srgb, var(--accent-ink) 45%, transparent);
  width:max-content;
  max-width:100%;
  color:color-mix(in srgb, var(--accent-ink) 72%, transparent);
}
.cs-persona__rail h3,
.cs-persona__identity h3{
  grid-column:2;
  grid-row:2;
  align-self:center;
  margin:0;
  color:var(--accent-ink);
  font-size:clamp(1.35rem,2vw,1.7rem);
  line-height:1.15;
  letter-spacing:-0.03em;
}
.cs-persona__role{
  grid-column:2;
  grid-row:3;
  margin:6px 0 0;
  font-size:14px;
  line-height:1.45;
  color:color-mix(in srgb, var(--accent-ink) 78%, transparent);
}
.cs-persona__tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.cs-persona__tag{
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  border:1px solid color-mix(in srgb, var(--accent-ink) 35%, transparent);
  padding:6px 9px;
  background:color-mix(in srgb, var(--accent-ink) 12%, transparent);
  color:var(--accent-ink);
  border-radius:0;
}
.cs-persona__body{
  padding:clamp(24px,2.4vw,32px) clamp(24px,3vw,40px);
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:24px;
  justify-content:center;
  align-items:stretch;
  background:var(--surface);
  box-sizing:border-box;
}
.cs-persona__quote{
  margin:0;
  font-size:clamp(1.05rem,1.5vw,1.25rem);
  line-height:1.45;
  color:var(--ink);
  font-family:var(--font-display);
  font-weight:600;
  font-style:normal;
  padding:18px 20px;
  background:var(--surface-2);
  border-left:4px solid var(--accent);
}
.cs-persona__bio,
.cs-persona__body .ir-persona-flow{
  margin:0 0 10px;
  max-width:58ch;
  color:var(--ink-soft);
  font-size:15px;
  line-height:1.65;
}
.cs-persona__body .ir-persona-flow:last-child,
.cs-persona__bio:last-child{ margin-bottom:0; }
.cs-persona__body .ir-persona-flow strong{ color:var(--ink); font-weight:600; }
.cs-persona__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(12px,1.5vw,18px);
}
.cs-persona__block{
  min-width:0;
  border:1px solid var(--border-hard);
  background:var(--surface);
  padding:16px 16px 18px;
  border-radius:0;
  transition:none;
}
.cs-persona__block:hover{
  transform:none;
  border-color:var(--border-hard);
}
.cs-persona__block .k{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  font-weight:700;
  margin-bottom:12px;
  color:var(--ink);
}
.cs-persona__block .k svg{ width:14px; height:14px; flex-shrink:0; }
.cs-persona__block--goals .k{ color:var(--status-success); }
.cs-persona__block--frictions .k{ color:var(--status-error); }
.cs-persona__block--behaviors .k{ color:var(--status-warn); }
.cs-persona__block--needs .k{ color:var(--ink); }
.cs-persona__block ul{ margin:0; padding:0; list-style:none; }
.cs-persona__block li{
  position:relative;
  padding-left:12px;
  margin-bottom:8px;
  font-size:13px;
  line-height:1.5;
  color:var(--ink-soft);
}
.cs-persona__block li:last-child{ margin-bottom:0; }
.cs-persona__block li::before{
  content:"";
  position:absolute;
  left:0;
  top:0.55em;
  width:5px;
  height:5px;
  background:currentColor;
  opacity:.45;
}
.cs-persona__asks h4{
  margin:0 0 14px;
  font-size:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:700;
}
.cs-persona__asks-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(12px,1.5vw,18px);
  list-style:none;
  margin:0;
  padding:0;
  counter-reset:ask;
}
.cs-persona__ask{
  counter-increment:ask;
  border:1px solid var(--border-hard);
  background:var(--bg);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:100%;
  border-radius:0;
  transition:none;
}
.cs-persona__ask:hover{
  border-color:var(--border-hard);
  background:var(--surface);
}
.cs-persona__ask::before{
  content:counter(ask, decimal-leading-zero);
  font-family:var(--font-display);
  font-weight:800;
  font-size:20px;
  color:var(--accent);
  line-height:1;
}
.cs-persona__ask span{
  font-size:14px;
  line-height:1.45;
  color:var(--ink);
  font-weight:600;
}
.cs-persona__ask small{
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:700;
}
.cs-callout{
  border:1px solid var(--border-hard);
  background:var(--surface);
  padding:clamp(18px,2vw,24px);
  border-radius:0;
}
.cs-callout__title{
  margin:0 0 14px;
  font-weight:700;
  color:var(--ink);
  font-size:15px;
}
.tradeoff{
  border:1px solid var(--border-hard);
  border-left:4px solid var(--status-warn) !important;
  padding:20px 24px;
  margin-top:clamp(16px,2vw,24px);
  background:var(--surface);
  display:flex;
  gap:12px;
  align-items:flex-start;
  width:100%;
  box-sizing:border-box;
  border-radius:0;
}
.tradeoff svg{
  width:20px;
  height:20px;
  flex-shrink:0;
  margin-top:2px;
  color:var(--status-warn);
}
.tradeoff p{
  margin:0;
  max-width:none;
  font-size:15px;
  line-height:1.6;
  color:var(--ink-soft);
}
.cs-hero__cover{
  border-color:var(--border-hard) !important;
  border-radius:0 !important;
}
.druva-persona__avatar,
.tx .persona,
.tx-persona{
  border-radius:0 !important;
}
@media (max-width:980px){
  .cs-persona{ grid-template-columns:1fr; }
  .cs-persona__grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cs-persona__asks-grid{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .cs-persona__grid{ grid-template-columns:1fr; }
}

/* Micro-label underlines (Role / Domain / Scope keys) */
.cs-impact .k,
.cs-pointer__label,
.tx .persona .label{
  display:inline-block;
  padding-bottom:4px;
  border-bottom:1.5px solid var(--ink);
}
.contact-panel .contact-action__label{
  display:inline-block;
  padding-bottom:0;
  border-bottom:0;
  color:rgba(255,255,255,.55);
}

/* Dotfield — Outside of work / About (+ note cells) only. Not Projects, Experience, Making, Contact, case studies, or hero. */
.dotfield,
#about.section{
  background-color:var(--bg);
  background-image:var(--dotfield);
  background-size:var(--dotfield-size);
}
#about.section{ position:relative; }

/* Journey sits inside #about — solid full-bleed cover over parent dots.
   Extends into top margin + section bottom pad so #about stipple never shows in this band.
   Keep top margin modest: dotted breathing room lives on #about .define-board padding-bottom. */
#about .timeline{
  position:relative;
  isolation:isolate;
  z-index:1;
  background:var(--bg) !important;
  background-image:none !important;
  margin-top:clamp(28px,4vw,44px);
  /* Absorb #about section bottom padding into this solid plate */
  margin-bottom:calc(-1 * var(--space-section));
  padding-bottom:var(--space-section);
}
#about .timeline::before{
  content:"";
  position:absolute;
  left:50%;
  /* Cover only this margin-top gap (dots stay visible in define-board padding below) */
  top:calc(-1 * clamp(28px,4vw,44px));
  bottom:0;
  width:100vw;
  transform:translateX(-50%);
  background:var(--bg);
  background-image:none;
  z-index:0;
  pointer-events:none;
}
#about .timeline > *{
  position:relative;
  z-index:1;
}
.page-band:not(#projects):not(#articles):not(#experience):not(#education):not(#notes),
#making.section,
#home,
.cs-hero,
.section.hero-section,
.cs-page{
  background:var(--bg) !important;
  background-image:none !important;
}
/* Projects / Articles / Experience / Education / Notes keep dotted field + white catalog panel */
#projects.section,
#articles.section,
#experience.section,
#education.section,
#notes.section{
  background-color:var(--bg) !important;
  background-image:var(--dotfield) !important;
  background-size:var(--dotfield-size) !important;
}
/* Footer keeps its own dotted field + black panel */
.site-footer{
  background-color:var(--bg) !important;
  background-image:var(--dotfield) !important;
  background-size:var(--dotfield-size) !important;
}

#about .define-board{
  /* Generous dotted air under the mosaic before Journey’s solid band */
  padding-bottom:clamp(72px,10vw,120px);
}
#about .define-board__head{
  display:block;
  max-width:40rem;
  padding:0;
  border:0;
  background:transparent !important;
  background-image:none !important;
  box-sizing:border-box;
  margin:0 0 clamp(16px,2.5vw,24px);
}
/* Sit the bordered mosaic higher on the #about dotted field */
#about .life-board{
  margin-top:-24px;
}
/* Note cells — soft grey plate + faint HUD scan (gamer feel, still B&W) */
.life-board .lb--note,
.life-board .lb--n1,
.life-board .lb--n2,
.life-board .lb--n3{
  background-color:var(--surface-2) !important;
}
.life-board--gamer .lb--note,
.life-board--gamer .lb--n1,
.life-board--gamer .lb--n2,
.life-board--gamer .lb--n3{
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(10,10,10,.035) 3px,
      rgba(10,10,10,.035) 4px
    ) !important;
}
:root[data-theme="dark"] .life-board--gamer .lb--note,
:root[data-theme="dark"] .life-board--gamer .lb--n1,
:root[data-theme="dark"] .life-board--gamer .lb--n2,
:root[data-theme="dark"] .life-board--gamer .lb--n3{
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(245,246,248,.05) 3px,
      rgba(245,246,248,.05) 4px
    ) !important;
}
#about .timeline__head,
#about .timeline__item,
#making .wrap > h2,
#making.section .module{
  background-image:none !important;
}
#about .timeline__head{
  display:block;
  max-width:36rem;
  padding:0;
  border:0;
}
#making .wrap > h2{
  display:block;
  padding:0;
  border:0;
  margin-bottom:clamp(20px,3vw,28px);
}
#making.section .module{ background:var(--bg); }
.life-board .lb:not(.lb--note){
  background:var(--bg);
  background-image:none;
}
#home{
  position:relative;
  isolation:isolate;
}
#home > *{ position:relative; z-index:1; }

/* Case-study badge — suppressed (museum: title leads) */
.cs-page .cs-badge,
.cs-hero > .cs-badge{
  display:none !important;
}

.dotfield--panel{
  background-color:var(--bg);
  background-image:var(--dotfield);
  background-size:var(--dotfield-size);
  border:1px solid var(--border-hard);
}

/* Explicit: never duotone UI/product imagery */
.tile__media img,
.cs-shot,
.cs-page figure img,
.cs-media img,
.cs-slideshow img,
.lightbox-trigger,
.proj-show__media img,
.druva-art img,
.tx figure img,
.ui-card img{
  filter:none !important;
}

/* ── Subtle cyberpunk atmosphere (overlays only; tokens/theme/content unchanged) ── */
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:70;
  pointer-events:none;
  background:repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(10,10,10,.018) 3px,
    rgba(10,10,10,.018) 4px
  );
  opacity:.7;
}
:root[data-theme="dark"] body::after{
  background:repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0,240,255,.028) 3px,
    rgba(0,240,255,.028) 4px
  );
  opacity:.55;
}
/* Keep chrome above the scan veil */
.site-header,
.music-toggle,
.resume-modal,
.lightbox,
.nav-toggle{
  z-index:80;
}
.music-toggle{
  box-shadow:0 0 0 1px transparent, 0 0 18px rgba(0,240,255,.0);
  transition:background .15s ease, color .15s ease, border-color .15s ease, box-shadow .2s ease, opacity .15s ease;
}
.music-toggle:hover{
  box-shadow:0 0 0 1px rgba(0,240,255,.35), 0 0 16px rgba(0,240,255,.18);
}
:root[data-theme="dark"] .music-toggle:hover{
  box-shadow:0 0 0 1px rgba(0,240,255,.45), 0 0 18px rgba(0,240,255,.22);
}
.site-header{
  box-shadow:0 1px 0 rgba(0,240,255,.0);
}
:root[data-theme="dark"] .site-header{
  box-shadow:0 0 24px rgba(0,240,255,.04);
}
#home.section::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(0,240,255,.045), transparent 60%),
    radial-gradient(ellipse 55% 45% at 12% 80%, rgba(255,0,170,.03), transparent 55%);
}
:root[data-theme="dark"] #home.section::before{
  background:
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(0,240,255,.08), transparent 60%),
    radial-gradient(ellipse 55% 45% at 12% 80%, rgba(255,0,170,.055), transparent 55%);
}
@media (prefers-reduced-motion: reduce){
  body::after{ opacity:.25; }
  #home.section::before{ display:none; }
  .music-toggle:hover{ box-shadow:none; }
}
