/* ==========================================================================
   Portfolio — global stylesheet
   1. Tokens          5. Buttons & pills      9.  Timeline
   2. Reset & base    6. Cards & grids        10. Forms
   3. Layout          7. Hero                 11. Gallery / lightbox
   4. Header / nav    8. Section furniture    12. Footer, motion, print
   ========================================================================== */

/* -- 1. Tokens ----------------------------------------------------------- */
:root {
  /* type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --t-xs: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --t-sm: clamp(0.84rem, 0.81rem + 0.14vw, 0.92rem);
  --t-base: clamp(0.98rem, 0.94rem + 0.20vw, 1.08rem);
  --t-lg: clamp(1.14rem, 1.05rem + 0.40vw, 1.35rem);
  --t-xl: clamp(1.45rem, 1.25rem + 0.95vw, 2.05rem);
  --t-2xl: clamp(1.9rem, 1.45rem + 2.10vw, 3.1rem);
  --t-3xl: clamp(2.6rem, 1.70rem + 4.20vw, 5.2rem);

  /* space + shape */
  --max: 1160px;
  --max-prose: 68ch;
  --gutter: clamp(20px, 5vw, 44px);
  --pad-section: clamp(64px, 9vw, 128px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(.22, .68, .36, 1);

  /* dark palette (default) */
  --bg: #0b0c0f;
  --bg-alt: #101216;
  --surface: #14161b;
  --surface-2: #1a1d24;
  --line: #262a33;
  --line-soft: #1d2028;
  --ink: #edeef2;
  --ink-2: #b9bdc9;
  --ink-3: #838897;
  --accent: #ff9245;
  --accent-ink: #1a0d02;
  --accent-soft: #ff924522;
  --glow: radial-gradient(60% 60% at 50% 0%, #ff924522, transparent 70%);
  --shadow: 0 1px 2px #0006, 0 18px 40px -22px #000c;
  --danger: #ff6b6f;
  --danger-soft: #e5484d1f;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #fbfaf8;
  --bg-alt: #f4f2ee;
  --surface: #ffffff;
  --surface-2: #f7f5f1;
  --line: #e2ded6;
  --line-soft: #ebe7e0;
  --ink: #15171c;
  --ink-2: #454a55;
  --ink-3: #6d7280;
  --accent: #c85a12;
  --accent-ink: #fff8f2;
  --accent-soft: #c85a1216;
  --glow: radial-gradient(60% 60% at 50% 0%, #c85a1214, transparent 70%);
  --shadow: 0 1px 2px #0000000f, 0 18px 40px -26px #00000038;
  --danger: #c0272d;
  --danger-soft: #c0272d12;
  color-scheme: light;
}

/* -- 2. Reset & base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-base)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); letter-spacing: -0.015em; }
p { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -- 3. Layout ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--pad-section); }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.prose { max-width: var(--max-prose); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1.1em; }
.prose h3 { margin: 2em 0 .6em; }
.prose ul { padding-left: 1.15em; color: var(--ink-2); }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code {
  font: 500 .88em var(--font-mono);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: .12em .4em; border-radius: 5px;
}
.lede { font-size: var(--t-lg); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-3); }
.center { text-align: center; margin-inline: auto; }
.stack > * + * { margin-top: 18px; }

/* -- 4. Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); }
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.brand__mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .78rem; font-weight: 700; letter-spacing: 0;
  transition: transform .3s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-6deg); }
.brand__name { font-size: 1.02rem; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 8px 12px; border-radius: 8px;
  font-size: var(--t-sm); color: var(--ink-2); font-weight: 500;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--surface); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line);
  cursor: pointer; color: var(--ink-2);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); background: var(--surface); }
.icon-btn svg { width: 17px; height: 17px; }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 14px var(--gutter) 26px; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 13px 12px; font-size: var(--t-base); }
  .nav__links a[aria-current="page"]::after { left: 12px; right: auto; width: 16px; bottom: 8px; }
}

/* -- 5. Buttons & pills -------------------------------------------------- */
.btn {
  --btn-bg: var(--accent); --btn-ink: var(--accent-ink); --btn-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 21px; border-radius: 11px; border: 1px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-ink);
  font-size: var(--t-sm); font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--line); }
.btn--ghost:hover { --btn-line: var(--ink-3); background: var(--surface); box-shadow: none; }
.btn--sm { padding: 9px 15px; font-size: var(--t-xs); border-radius: 9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font: 500 var(--t-xs)/1 var(--font-mono);
  color: var(--ink-2); letter-spacing: .02em; white-space: nowrap;
}
.pill--accent { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); color: var(--accent); }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.dot--live { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

/* -- 8b. Catalog search -------------------------------------------------- */
.catalog-bar {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.searchbar { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 420px; }
.searchbar__icon {
  position: absolute; left: 14px; display: flex; color: var(--ink-3); pointer-events: none;
}
.searchbar__icon svg { width: 16px; height: 16px; }
.searchbar input {
  width: 100%; padding: 11px 44px 11px 40px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--line); font-size: var(--t-sm);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.searchbar input::placeholder { color: var(--ink-3); }
.searchbar input:focus { border-color: var(--accent); outline: none; background: var(--surface); }
.searchbar input::-webkit-search-cancel-button,
.searchbar input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.searchbar__clear { position: absolute; right: 5px; width: 30px; height: 30px; border: 0; }
.searchbar__clear svg { width: 15px; height: 15px; }
.catalog-count {
  font: 500 var(--t-xs)/1 var(--font-mono); color: var(--ink-3); letter-spacing: .04em;
  white-space: nowrap;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chip {
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent;
  font-size: var(--t-xs); font-weight: 500; color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* -- 6. Cards & grids ---------------------------------------------------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__badge { position: absolute; top: 12px; left: 12px; background: #0b0c0fcc; backdrop-filter: blur(6px); color: #fff; border-color: #ffffff2b; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 10px; font: 500 var(--t-xs)/1 var(--font-mono); color: var(--ink-3); }
.card__title { font-size: var(--t-lg); transition: color .2s var(--ease); }
.card:hover .card__title { color: var(--accent); }
.card__text { font-size: var(--t-sm); color: var(--ink-2); }
.card__foot { margin-top: auto; padding-top: 8px; }
.card__link::after { content: ""; position: absolute; inset: 0; }

.feature { padding: 26px 24px 28px; }
.feature__icon {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  margin-bottom: 16px;
}
.feature__icon svg { width: 20px; height: 20px; }
.feature ul { margin-top: 14px; padding-left: 1.05em; font-size: var(--t-sm); color: var(--ink-2); }
.feature li + li { margin-top: .35em; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r); overflow: hidden;
}
.stat { background: var(--bg); padding: 22px 20px; }
.stat__value { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.03em; }
.stat__label { font-size: var(--t-xs); color: var(--ink-3); margin-top: 4px; }

/* Client reviews. The quote mark is decorative and sits behind the text, so it
   is drawn with a pseudo-element rather than typed into the content. */
.quote { padding: 26px 24px; }
.quote blockquote {
  margin: 0 0 18px; position: relative; color: var(--ink-2);
  font-size: var(--t-base); line-height: 1.62;
}
.quote blockquote::before {
  content: "\201C"; position: absolute; top: -26px; left: -8px;
  font-family: var(--font-display); font-size: 76px; line-height: 1;
  color: var(--accent); opacity: .18; pointer-events: none;
}
.quote figcaption {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.quote__author { display: block; font-family: var(--font-display); font-weight: 600; }
.quote__role { display: block; margin-top: 3px; font-size: var(--t-xs); color: var(--ink-3); }

.strip { overflow: hidden; border-block: 1px solid var(--line-soft); background: var(--bg-alt); padding-block: 16px; }
.strip__track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item {
  display: flex; align-items: center; gap: 40px; padding-right: 40px;
  font: 500 var(--t-sm)/1 var(--font-mono); color: var(--ink-3);
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.strip__item::after { content: "\25C6"; color: var(--accent); font-size: .7em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* -- 7. Hero ------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(70px, 11vw, 148px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto; height: 620px;
  background: var(--glow); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(120% 78% at 50% 0%, #000 5%, transparent 72%);
  mask-image: radial-gradient(120% 78% at 50% 0%, #000 5%, transparent 72%);
}
.hero > * { position: relative; z-index: 1; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { max-width: 54ch; margin-top: 22px; }
.hero__actions { margin-top: 34px; }
.hero__foot {
  margin-top: 54px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center;
  font: 400 var(--t-xs)/1.6 var(--font-mono); color: var(--ink-3);
}

.split { display: grid; gap: clamp(28px, 5vw, 60px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1.35fr 1fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
}
.portrait { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }

/* -- 8. Section furniture ------------------------------------------------ */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(28px, 4vw, 46px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 var(--t-xs)/1 var(--font-mono); letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.sec-head p { color: var(--ink-2); max-width: 52ch; margin-top: 10px; }

.page-head { position: relative; padding-block: clamp(56px, 8vw, 96px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: -20% 0 auto; height: 380px; background: var(--glow); pointer-events: none; }
.page-head > * { position: relative; }

.cta {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: clamp(34px, 5vw, 60px);
  text-align: center;
}
.cta::before { content: ""; position: absolute; inset: auto 0 -60%; height: 320px; background: var(--glow); transform: rotate(180deg); }
.cta > * { position: relative; }
.cta p { color: var(--ink-2); margin: 12px auto 26px; max-width: 46ch; }
.cta .btn-row { justify-content: center; }

/* -- 9. Timeline & skills ------------------------------------------------ */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.tl-item__period { font: 500 var(--t-xs)/1 var(--font-mono); color: var(--accent); letter-spacing: .04em; }
.tl-item h3 { margin: 9px 0 3px; }
.tl-item__org { font-size: var(--t-sm); color: var(--ink-3); }
.tl-item p { font-size: var(--t-sm); color: var(--ink-2); margin-top: 10px; }

.skill-group { padding: 22px 22px 24px; }
.skill-group h3 { font-size: var(--t-base); margin-bottom: 14px; }

/* -- 10. Forms ----------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: var(--t-sm); font-weight: 500; }
.field input, .field textarea, .field select {
  padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--line);
  font-size: var(--t-sm);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; background: var(--surface); }
.field textarea { resize: vertical; min-height: 150px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: var(--t-xs); color: var(--ink-3); }
.form__status {
  padding: 12px 15px; border-radius: var(--r-sm); font-size: var(--t-sm);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
}
.form__status--ok {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--accent-soft); color: var(--accent);
}
.form__status--error { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--danger); }
.field.is-invalid label { color: var(--danger); }
/* Honeypot: off-screen for people, irresistible to bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Filtering toggles [hidden]; grid/flex children would otherwise ignore it. */
[hidden] { display: none !important; }

.contact-line { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.contact-line svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.contact-line span { font-size: var(--t-xs); color: var(--ink-3); display: block; }
.contact-line strong { font-weight: 500; font-size: var(--t-sm); }

/* -- 11. Gallery & lightbox ---------------------------------------------- */
/* The "At a glance" table on a project page: label above value, one per row. */
.facts { margin-top: 14px; font-size: var(--t-sm); }
.facts dt {
  font: 500 var(--t-xs)/1 var(--font-mono); color: var(--ink-3);
  letter-spacing: .04em; text-transform: uppercase;
}
.facts dd { margin: 5px 0 0; color: var(--ink-2); }
.facts dd + dt { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

.masonry { columns: 3 260px; column-gap: clamp(14px, 2vw, 22px); }
.masonry > * { break-inside: avoid; margin-bottom: clamp(14px, 2vw, 22px); }
.shot {
  position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in;
  border: 1px solid var(--line-soft); border-radius: var(--r);
  overflow: hidden; background: var(--surface-2);
}
.shot img { width: 100%; transition: transform .5s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot__cap {
  position: absolute; inset: auto 0 0; padding: 30px 16px 13px; text-align: left;
  background: linear-gradient(transparent, #000000cc);
  color: #fff; font-size: var(--t-xs);
  opacity: 0; transform: translateY(6px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-items: center; padding: clamp(16px, 4vw, 48px);
  background: #050608e6; backdrop-filter: blur(10px);
}
.lightbox.is-open { display: grid; }
.lightbox figure { display: grid; justify-items: center; }
.lightbox img { max-height: 80vh; width: auto; border-radius: var(--r); border: 1px solid #ffffff1f; }
.lightbox figcaption { margin-top: 14px; text-align: center; color: #d8dae2; font-size: var(--t-sm); }
.lightbox .icon-btn { position: fixed; background: #ffffff14; border-color: #ffffff2b; color: #fff; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { top: 50%; left: 16px; transform: translateY(-50%); }
.lightbox__next { top: 50%; right: 16px; transform: translateY(-50%); }

/* -- 12. Footer, motion, print ------------------------------------------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-alt); padding-block: clamp(44px, 6vw, 72px) 30px; }
.footer__top { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.7fr 1fr 1fr; } }
.footer__col h4 {
  font: 500 var(--t-xs)/1 var(--font-mono); text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-3); margin-bottom: 14px;
}
.footer__col a { display: block; padding: 5px 0; font-size: var(--t-sm); color: var(--ink-2); transition: color .18s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__blurb { font-size: var(--t-sm); color: var(--ink-2); max-width: 40ch; margin: 14px 0 18px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: var(--t-xs); color: var(--ink-3);
}
.socials { display: flex; gap: 8px; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

.empty { padding: 40px 24px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--r); font-size: var(--t-sm); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  @page { margin: 14mm 12mm; }
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  /* Scroll-reveal never fires in print (nothing scrolls), so force everything visible. */
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { font-size: 12.5px; }
  .section, .page-head { padding-block: 8px; }
  .section--alt { background: none; }
  .card, .stats, .tl-item, .skill-group { break-inside: avoid; }
  .tl-item { padding-bottom: 14px; }
  .tl-item p { margin-top: 6px; }
  .stack > * + * { margin-top: 10px; }
  .split { gap: 18px; grid-template-columns: 1.5fr 1fr; }
  .grid { gap: 10px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .skill-group { padding: 10px 12px; min-width: 0; }
  .pill-row { gap: 4px; }
  .pill { font-size: 0.68rem; padding: 3px 8px; white-space: normal; }
  .tl-item h3, .skill-group h3, .card.feature h3 { font-size: 1rem; }
  .skill-group h3 { margin-bottom: 8px; }
  .card.feature { padding: 14px 16px; }
  a { color: inherit; text-decoration: none; }
}
