/* Irene Martin — modern library catalog: cream, plum, structured grids.
   Headings: Source Serif 4 (600). Labels: IBM Plex Mono. Body: system sans. All OFL, self-hosted. */

@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  --cream: #f6f1e7;
  --cream-2: #eee6d6;
  --paper: #fcf9f3;
  --ink: #1f1a26;
  --ink-2: #413a49;
  --muted: #675f6e;
  --line: #ddd2bf;
  --plum: #4a2565;
  --plum-2: #6b3f88;
  --lilac: #ddd0e8;
  --lilac-soft: #efe8f4;
  --night: #1f1928;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1060px;
  --gutter: clamp(20px, 5vw, 44px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 600; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-color: var(--plum-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--plum); color: var(--cream); padding: 10px 14px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Catalog-style labels */
.label, .eyebrow, .kit dt, .status, .timeline__date, .gallery__hint, .idcard dt, .stats span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.label { color: var(--plum); display: flex; align-items: center; gap: 12px; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.label--spaced { margin-top: 48px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(246, 241, 231, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand__name { font: 600 17px/1.1 var(--serif); white-space: nowrap; }
.brand__sep { color: var(--plum-2); font: 400 15px/1 var(--mono); }
.brand__role { font: 500 11.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--plum); white-space: nowrap; }
.nav { display: flex; gap: 26px; }
.nav a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.nav { align-items: center; }
.nav a[aria-current="true"] { color: var(--plum); box-shadow: inset 0 -2px 0 var(--plum); }
@media (hover: hover) { .nav a:hover { color: var(--plum); } }
.nav a:focus { outline: none; }
.nav a:focus-visible { outline: 2px solid var(--plum-2); outline-offset: 3px; }
@media (max-width: 640px) {
  .topbar__inner { flex-direction: column; align-items: stretch; height: auto; padding-top: 10px; gap: 4px; }
  .brand { gap: 8px; }
  .brand__name { font-size: 16px; }
  .brand__role { font-size: 10px; letter-spacing: .05em; }
  .topbar nav { border-top: 1px solid var(--line); margin: 0 -2px; }
  .nav { justify-content: space-between; gap: 8px; }
  .nav a { display: block; font-size: 14px; padding: 10px 2px; }
}
@media (max-width: 640px) { html { scroll-padding-top: 96px; } }
@media (max-width: 350px) { .brand__name { font-size: 15px; } .brand__role { font-size: 9px; } .brand { gap: 6px; } }

/* Hero */
.hero { padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 40px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px clamp(32px, 5vw, 64px); align-items: start; }

/* Portrait as a library card: photo + catalog fields */
.idcard { margin-top: 30px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--plum); border-radius: 4px; padding: 6px; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-radius: 2px; }
.idcard__info { padding: 10px 6px 4px; }
.idcard__name { display: block; font: 600 19px/1.15 var(--serif); color: var(--ink); }
.idcard__rows { margin-top: 8px; border-top: 1px solid var(--line); }
.idcard__rows div { display: grid; grid-template-columns: 54px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.idcard__rows div:last-child { border-bottom: 0; }
.idcard dt { font-size: 10.5px; color: var(--plum-2); padding-top: 2px; }
.idcard dd { color: var(--ink-2); }

.eyebrow { color: var(--plum); }
.hero h1 { margin-top: 14px; font: 600 clamp(32px, 4.2vw, 50px)/1.08 var(--serif); letter-spacing: -.015em; color: var(--ink); max-width: 20ch; }
.amp { color: var(--plum-2); }
.hero__lede { margin-top: 18px; max-width: 58ch; font-size: 19px; line-height: 1.55; color: var(--ink); }
.hero__body { margin-top: 12px; max-width: 66ch; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.hero__actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 20px; background: var(--plum); color: var(--cream); font-weight: 500; font-size: 15px; text-decoration: none; border-radius: 4px; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--cream); }
.btn--primary { min-height: 50px; padding: 0 24px; font-size: 15.5px; font-weight: 600; box-shadow: 0 8px 18px -10px rgba(74, 37, 101, .7); }
.ico { width: 16px; height: 16px; flex: none; }
.btn--outline { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); }
.btn--outline:hover { background: var(--lilac-soft); color: var(--plum); }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--plum); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .idcard { order: -1; margin-top: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; max-width: 380px; }
  .idcard__info { padding: 0 4px 0 0; }
}

/* Stat strip */
.proof { padding: 0 0 clamp(8px, 2vw, 16px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.stats li { padding: 18px 22px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { display: block; font: 600 clamp(28px, 3.4vw, 38px)/1 var(--serif); color: var(--plum); }
.stats span { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.stats__link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--plum); }
.stats__link span { display: inline; margin: 0; font-size: inherit; color: #c99a2e; letter-spacing: 0; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section--tint { background: var(--cream-2); }
.title { font: 600 clamp(28px, 3.4vw, 38px)/1.12 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.title--sm { font-size: clamp(24px, 2.8vw, 30px); }
.section--tight { padding: clamp(40px, 5vw, 60px) 0; }

/* What OCLS needs. Where I've done it. */
.fit { margin-top: 22px; border-top: 2px solid var(--plum); }
.fit > div { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 4px 28px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fit dt { font: 600 18px/1.3 var(--serif); color: var(--ink); }
.fit dt span { display: block; margin-top: 5px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--plum-2); }
.fit dd { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 700px) { .fit > div { grid-template-columns: 1fr; } }

/* How I approach a problem */
.steps { margin-top: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 22px; counter-reset: st; }
.steps li { counter-increment: st; padding-top: 14px; border-top: 2px solid var(--plum); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.steps li::before { content: counter(st); display: block; margin-bottom: 6px; font: 500 12px/1 var(--mono); color: var(--plum-2); }
.steps b { display: block; margin-bottom: 4px; font: 600 17px/1.25 var(--serif); color: var(--ink); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 2px solid var(--plum); }
  .steps li::before { grid-row: span 2; margin: 3px 0 0; }
  .steps b { margin-bottom: 2px; }
}

/* Skills index */
.kit { margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 4px 20px; }
.kit div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4px 20px; padding: 11px 0; }
.kit div + div { border-top: 1px solid var(--line); }
.kit dt { color: var(--plum); padding-top: 2px; font-size: 11.5px; }
.kit dd { font-size: 15px; color: var(--ink-2); }
@media (max-width: 600px) { .kit div { grid-template-columns: 1fr; } .kit { padding: 4px 16px; } }

/* Work */
.projects { display: grid; gap: 20px; }
.project { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--plum); border-radius: 4px; padding: clamp(22px, 3vw, 32px); overflow: hidden; }
.project__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 40px; min-width: 0; }
.project__text > .status, .project__text > h3, .project__text > .project__sub { grid-column: 1; }
.project__text > .ticks { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
.project__text > .project__foot { grid-column: 1; align-self: end; border-top: 0; padding-top: 18px; flex-direction: column; align-items: flex-start; }
@media (max-width: 900px) {
  .project__text { display: flex; flex-direction: column; }
  .project__text > .ticks { margin-top: 16px; }
  .project__text > .project__foot { border-top: 1px solid var(--line); padding-top: 14px; flex-direction: row; align-items: center; }
}
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--plum); }
.status span { width: 8px; height: 8px; border-radius: 50%; background: #3f8a5a; box-shadow: 0 0 0 3px rgba(63, 138, 90, .18); }
.project h3 { margin-top: 10px; font: 600 28px/1.1 var(--serif); color: var(--ink); }
.project__sub { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.ticks { margin-top: 16px; flex: 1; }
.ticks li { position: relative; padding-left: 18px; margin-bottom: 7px; font-size: 15px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--plum-2); border-radius: 1px; }
.project__foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.project__foot span { font: 400 12.5px/1.4 var(--mono); color: var(--muted); }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; } }

/* Phone-frame galleries */
.gallery { min-width: 0; }
.gallery__row { display: flex; justify-content: safe center; align-items: flex-start; padding: 8px 4px 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.phone { scroll-snap-align: start; }
.phone { flex: none; width: 176px; margin: 0; position: relative; }
.gallery__row { gap: 14px; }
.phone + .phone { margin-left: 0; }
.phone:nth-child(2) { margin-top: 24px; }
.gallery { border-top: 1px solid var(--line); padding-top: 22px; }
.phone__btn { display: block; width: 100%; padding: 7px; border: 0; border-radius: 26px; background: var(--night); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 18px 34px -16px rgba(31, 26, 38, .55), 0 2px 6px rgba(31, 26, 38, .2); cursor: zoom-in; transition: transform .25s ease; }
.phone__btn:hover { transform: translateY(-4px); }
.phone__btn:focus-visible { outline: 3px solid var(--plum-2); outline-offset: 4px; }
.phone__btn picture, .phone__btn img { display: block; width: 100%; height: auto; border-radius: 20px; background: #eee; }
.phone figcaption { margin-top: 10px; padding: 0 6px; font-size: 12.5px; line-height: 1.4; color: var(--muted); text-align: center; }
.phone--wide { width: 250px; }
.gallery__hint { display: none; }
.gallery:not(.is-static) .gallery__hint { display: block; margin-top: 4px; color: var(--plum-2); text-align: right; }
@media (max-width: 900px) {
  .gallery { margin: 0 calc(-1 * clamp(22px, 3vw, 32px)); }
  .gallery__row { justify-content: flex-start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px clamp(22px, 3vw, 32px) 12px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .phone, .phone + .phone { margin: 0; scroll-snap-align: start; }
  .phone { width: 62vw; max-width: 220px; }
  .phone--wide { width: 78vw; max-width: 300px; }
  .gallery.is-static .gallery__hint { display: none; }
.gallery:not(.is-static) .gallery__hint { display: block; margin-top: 4px; color: var(--plum-2); text-align: right; }
  .gallery__hint { display: block; padding: 0 clamp(22px, 3vw, 32px); color: var(--plum-2); }
}

.more-shots { margin-top: 6px; }
.more-shots summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--plum); list-style: none; }
.more-shots summary::-webkit-details-marker { display: none; }
.more-shots summary::after { content: "+"; font: 500 16px/1 var(--mono); }
.more-shots[open] summary::after { content: "−"; }
.more-shots summary:hover { background: var(--lilac-soft); }
.gallery__row--more { margin-top: 14px; justify-content: flex-start; }
.gallery__row--more .phone { width: 150px; }
.gallery__row--more .phone:nth-child(2) { margin-top: 0; }
.project + .project { margin-top: 20px; }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(31, 25, 40, .86); }
.lightbox__img { display: block; max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); color: var(--plum); font-size: 24px; line-height: 40px; cursor: pointer; }
.lightbox__close:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
@media (max-width: 600px) { .lightbox__close { top: 8px; right: 8px; } }

/* Experience */
.timeline { margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0 20px; }
.timeline li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; }
.timeline li + li { border-top: 1px solid var(--line); }
.timeline__date { color: var(--plum-2); padding-top: 3px; font-size: 11.5px; }
.timeline__role { font-size: 16px; }
.timeline__role b { font-weight: 600; }
.timeline li p:last-child { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; } .timeline { padding: 0 16px; } }

/* Contact */
.contact { background: var(--night); color: var(--cream); padding: clamp(48px, 7vw, 72px) 0 0; }
.contact .title { color: var(--cream); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; padding-bottom: clamp(36px, 5vw, 56px); }
.contact__note { margin-top: 8px; color: #c4bacb; font-size: 15px; }
.contact__links { text-align: right; }
.contact__email { font: 600 clamp(24px, 3.4vw, 36px)/1.15 var(--serif); text-decoration-color: var(--lilac); text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact__email:hover { color: var(--lilac); }
.contact__links p { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; font-size: 14.5px; }
.contact a { text-decoration-color: var(--lilac); }
.contact a:hover { color: var(--lilac); }
.contact :focus-visible { outline-color: var(--lilac); }
.footer { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: #a69caf; }
.footer::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid #382d44; }
@media (max-width: 700px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__links { text-align: left; }
  .contact__links p { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .topbar { display: none; } .contact { background: #fff; color: #000; } }

/* Mobile hero + tap targets (kept last so it wins the cascade) */
@media (max-width: 640px) {
  .idcard { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; max-width: none; }
  .idcard__name { font-size: 17px; }
  .idcard__rows div { grid-template-columns: 42px 1fr; gap: 6px; font-size: 13px; }
  .hero h1 { margin-top: 10px; font-size: clamp(29px, 8.4vw, 36px); }
  .hero__lede { font-size: 17px; }
  .hero__body { font-size: 15.5px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}
.stats__link { display: inline-block; padding: 6px 0; }
.brand { padding: 4px 0; }
.title + .project { margin-top: 28px; }
.stats span { font-size: 12.5px; letter-spacing: .02em; }
@media (max-width: 640px) {
  .stats li { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 18px; }
  .stats span { margin-top: 0; }
  .stats__link { grid-column: 2; margin-top: 4px; }
}

/* ===== v23: direct layout ===== */
.hero .wrap { max-width: var(--wrap); }
.id { display: flex; align-items: center; gap: 18px; }
.id .portrait { width: 120px; flex: none; aspect-ratio: 4 / 5; border-radius: 4px; }
.id__name { font: 600 24px/1.1 var(--serif); color: var(--ink); }
.id__role { margin-top: 4px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--plum); }
.id__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--ink-2); }
.id__meta li + li::before { content: "·"; margin: 0 9px; color: var(--muted); }
.id__meta a { color: var(--ink); text-decoration-color: var(--plum-2); text-underline-offset: 3px; }
.hero .eyebrow { margin-top: 30px; font: 500 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.hero h1 { max-width: 30ch; font-size: clamp(27px, 3.3vw, 40px); line-height: 1.15; }
.hero__lede { max-width: 66ch; font-size: 17px; color: var(--ink-2); }
.hero .stats { margin-top: 26px; }
.section__note { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.subtitle { margin-top: 48px; font: 600 clamp(21px, 2.4vw, 26px)/1.2 var(--serif); color: var(--ink); scroll-margin-top: 96px; }
.subtitle + .project { margin-top: 20px; }
.fit__tools { margin-top: 6px; font: 400 12.5px/1.6 var(--mono); color: var(--plum-2); }
.fit__tools--only { margin-top: 0; }
#work .timeline { margin-top: 22px; }

/* topbar: single row everywhere */
@media (max-width: 640px) {
  .topbar__inner { flex-direction: row; align-items: center; height: 58px; padding-top: 0; gap: 10px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand__sep { display: none; }
  .brand__name { font-size: 15.5px; }
  .brand__role { font-size: 9px; }
  .topbar nav { border-top: 0; margin: 0; }
  .nav { gap: 14px; }
  .nav a { font-size: 13.5px; padding: 12px 0; }
  html { scroll-padding-top: 66px; }
  .subtitle { scroll-margin-top: 66px; }
  .id { gap: 14px; align-items: flex-start; }
  .id .portrait { width: 84px; }
  .id__name { font-size: 20px; }
  .id__meta { font-size: 13px; }
  .id__meta li + li::before { margin: 0 6px; }
  .hero .eyebrow { margin-top: 24px; font-size: 11px; }
  .hero h1 { font-size: clamp(24px, 6.8vw, 30px); }
  .hero__lede { font-size: 15.5px; }
  .hero__actions .btn { flex: 1 1 40%; }
}
@media (max-width: 340px) { .brand__role { display: none; } }
@media (max-width: 380px) { .nav { gap: 11px; } .nav a { font-size: 13px; } }
.id__meta a { display: inline-block; padding: 3px 0; }
@media (max-width: 640px) { .id__meta { display: block; margin-top: 8px; } .id__meta li { margin-top: 2px; } .id__meta li + li::before { content: none; } }

/* ===== v24: resume buttons ===== */
.hero__resume { margin-top: 22px; }
.btn--resume { min-height: 54px; padding: 0 26px; gap: 10px; font-size: 16px; font-weight: 600; background: var(--plum); color: var(--cream); box-shadow: 0 10px 22px -10px rgba(74, 37, 101, .75); }
.btn--resume .ico { width: 18px; height: 18px; }
.btn--resume:hover { background: var(--ink); color: var(--cream); }
.nav__resume { display: inline-block; padding: 6px 14px !important; border-radius: 999px; background: var(--plum); color: var(--cream) !important; font-weight: 600; box-shadow: none !important; }
.nav__resume:hover { background: var(--ink); }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 22px; }
.btn--resume-dark { background: var(--cream); color: var(--plum); box-shadow: none; }
.btn--resume-dark:hover { background: var(--lilac); color: var(--night); }
.contact .btn--resume-dark { text-decoration: none; }
@media (max-width: 860px) { .contact__row { justify-content: flex-start; } }
@media (max-width: 640px) {
  .btn--resume { width: 100%; justify-content: center; }
  .nav { gap: 10px; }
  .nav a { font-size: 13px; }
  .nav__resume { padding: 6px 11px !important; }
}
@media (max-width: 360px) { .nav { gap: 8px; } .nav a { font-size: 12.5px; } .nav__resume { padding: 5px 9px !important; } }
.nav a, .stats__link { white-space: nowrap; }
@media (max-width: 400px) { .nav { gap: 9px; } .nav a { font-size: 12.5px; } .brand__name { font-size: 14.5px; } }
/* v25: smaller hero resume button, no nav pill */
.btn--resume { min-height: 44px; padding: 0 18px; gap: 8px; font-size: 15px; box-shadow: 0 6px 14px -10px rgba(74, 37, 101, .7); }
.btn--resume .ico { width: 16px; height: 16px; }
@media (max-width: 640px) { .btn--resume { width: auto; } }
@media (max-width: 380px) { .brand__role { font-size: 8.5px; } }
/* v26: resume viewer page */
.resume-back { font-size: 14.5px; }
.resume { padding-top: 28px; padding-bottom: 56px; max-width: 920px; }
.resume__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.resume__title { font: 600 clamp(26px, 3vw, 34px)/1.1 var(--serif); color: var(--ink); }
.resume__pages { margin-top: 20px; display: grid; gap: 18px; }
.resume__page { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 14px 30px -22px rgba(33, 26, 40, .45); }
.resume__foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
@media (max-width: 640px) { .resume-page .brand__role { display: block; } }

/* ===== v27: swipe galleries ===== */
.gallery__row { padding: 12px 4px 30px; overscroll-behavior-x: contain; scroll-behavior: smooth; }
@media (hover: none) { .phone__btn:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .gallery__row { scroll-behavior: auto; } }
.gallery__ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: -10px; }
.gallery__ctrl[hidden] { display: none; }
.gallery__ctrl button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--plum); font: 500 20px/1 var(--sans, inherit); cursor: pointer; }
.gallery__ctrl button:hover:not(:disabled) { background: var(--lilac-soft); }
.gallery__ctrl button:disabled { opacity: .35; cursor: default; }
.gallery__ctrl button:focus-visible { outline: 3px solid var(--plum-2); outline-offset: 2px; }
.gallery__count { min-width: 52px; text-align: center; font: 500 12.5px/1 var(--mono); color: var(--muted); }
@media (max-width: 900px) {
  .gallery__row, .gallery__row--more {
    gap: 14px; justify-content: flex-start;
    padding: 12px clamp(22px, 3vw, 32px) 30px;
    scroll-padding-inline: clamp(22px, 3vw, 32px);
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .gallery__row::-webkit-scrollbar { display: none; }
  .gallery__row--more { margin: 14px calc(-1 * clamp(22px, 3vw, 32px)) 0; }
  .phone, .phone + .phone, .phone:nth-child(2) { margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  .phone { width: 60vw; max-width: 210px; }
  .phone--wide { width: 74vw; max-width: 290px; }
  .gallery__row--more .phone { width: 52vw; max-width: 180px; }
  .gallery__ctrl { padding: 0 clamp(22px, 3vw, 32px); }
}
.project { grid-template-columns: minmax(0, 1fr); }
.more-shots { min-width: 0; max-width: 100%; }
@media (min-width: 641px) and (max-width: 900px) {
  .phone { width: 180px; }
  .phone--wide { width: 250px; }
  .gallery__row--more .phone { width: 150px; }
}
/* v27: deeper troubleshooting rows */
.steps__lede { max-width: 70ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.steps--deep { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 2px solid var(--plum); }
.steps--deep li { display: grid; grid-template-columns: 34px 230px minmax(0, 1fr); column-gap: 18px; align-items: baseline; padding: 16px 0; border-top: 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.6; }
.steps--deep li::before { margin: 0; grid-row: 1; }
.steps--deep b { margin: 0; font-size: 18px; }
@media (max-width: 760px) {
  .steps--deep li { grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; padding: 14px 0; }
  .steps--deep li:first-child { border-top: 0; }
  .steps--deep li::before { grid-row: span 2; margin-top: 4px; }
  .steps--deep b { margin-bottom: 4px; }
}
/* v28: lightbox close button sits above the image, never on it */
.lightbox { max-height: none; }
.lightbox__img { margin-top: 54px; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); }
.lightbox__close, .lightbox__close { top: 0; right: 0; }
@media (max-width: 600px) { .lightbox__close { top: 0; right: 0; } }
.notfound { padding: 80px 0 100px; }
.notfound p { margin-top: 12px; color: var(--ink-2); }
.notfound .btn { margin-top: 22px; }
/* v30: "next to learn" row reads as a note, not a claim */
.fit__next dd { color: var(--muted); font-style: normal; }
.fit__next dt { color: var(--ink-2); }
@media (max-width: 440px) { .hide-sm { display: none; } }
/* v31: clickable links on the resume page images */
.resume__sheet { position: relative; }
.resume__hot { position: absolute; display: block; border-radius: 3px; min-height: 14px; }
.resume__hot:hover { background: rgba(107, 63, 136, .14); }
.resume__hot:focus-visible { outline: 2px solid var(--plum-2); outline-offset: 2px; }
@media (hover: none) { .resume__hot { margin: -6px -4px; padding: 6px 4px; box-sizing: content-box; } }
.show-sm { display: none; }
@media (max-width: 440px) { .show-sm { display: inline; } }
.rh1 { left: 7.19%; top: 17.6%; width: 13.78%; height: 1.38%; }
.rh2 { left: 31.34%; top: 15.18%; width: 64.17%; height: 2.42%; }
.rh3 { left: 18.15%; top: 15.18%; width: 13.2%; height: 2.42%; }
.rh4 { left: 16.57%; top: 10.88%; width: 13.77%; height: 1.45%; }
.rh5 { left: 22.37%; top: 76.22%; width: 10.24%; height: 1.64%; }
.rh6 { left: 25.82%; top: 12.4%; width: 29.89%; height: 1.45%; }
.rh7 { left: 5.88%; top: 12.4%; width: 17.76%; height: 1.45%; }
.rh8 { left: 32.52%; top: 10.88%; width: 8.76%; height: 1.45%; }
.rh9 { left: 44.3%; top: 8.07%; width: 8.76%; height: 1.45%; }
.rh10 { left: 27.16%; top: 4.55%; width: 16.28%; height: 1.64%; }
