/* Personalized Photoart — main_v1
   A bright gallery-wall look. The colours still come straight from David's logo (hot pink + lime),
   with a black film strip, snapshot prints and Limelight display type. */

:root {
  --bg: #f4f5ef;            /* cool gallery-wall white */
  --surface: #ffffff;
  --sunk: #e9ebe1;
  --line: #d8dbcd;
  --text: #141414;
  --muted: #55584f;
  --faint: #85887c;
  --ink: #141414;           /* the logo's black */
  --pink: #e8338f;          /* logo pink: fills & buttons */
  --pink-deep: #c2186f;     /* pink for text */
  --pink-soft: #fce4ef;
  --lime: #7cc242;          /* logo green: fills */
  --lime-soft: #e3f2d4;
  --green: #3d7a1c;         /* green for text */

  /* Limelight is only for h1, h2 and h3; Philosopher is everything else */
  --font-heading: "Limelight", Georgia, serif;
  --font-body: "Philosopher", Georgia, serif;

  --radius: 6px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
a { color: var(--text); text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--pink-deep); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; line-height: 1.12; letter-spacing: 0; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 2.7rem); }
h3 { font-size: 1.4rem; letter-spacing: 0; }
p { margin: 0 0 1.1em; }

/* Small uppercase "film edge" labels */
.label, .eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-body); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }

/* Section number: "01", "02"… like frame numbers on a contact sheet */
.sec-num {
  display: inline-block; font-family: var(--font-body); font-size: .85rem; font-weight: 500;
  padding: .2rem .55rem; border-radius: 4px; background: var(--lime); color: var(--ink); margin-bottom: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,245,239,.9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 2px solid var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--text); }
.brand img { height: 50px; width: auto; border-radius: 6px; }
.brand-name { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; letter-spacing: 0; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; }
.site-nav a {
  display: block; padding: .5rem .95rem; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: var(--lime-soft); color: var(--text); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-toggle {
  display: none; background: var(--surface); border: 2px solid var(--ink); color: var(--text);
  border-radius: 999px; padding: .45rem 1rem; font: inherit; font-weight: 700; cursor: pointer;
}

@media (max-width: 1180px) { .brand-name { display: none; } }
@media (max-width: 900px) { .site-nav a { padding: .5rem .7rem; } }
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header); left: 0; right: 0;
    background: var(--bg); border-bottom: 2px solid var(--ink);
    display: none; padding: .75rem var(--gutter) 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: .2rem; }
  .site-nav a { padding: .75rem 1rem; font-size: 1.1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid var(--ink); transition: transform .15s, box-shadow .15s, background-color .2s, color .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; box-shadow: 4px 4px 0 var(--pink); }
.btn-line { background: var(--surface); color: var(--ink); }
.btn-line:hover { color: var(--ink); background: var(--lime-soft); }
.head-links { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.tagline {
  font-family: var(--font-heading); font-weight: 400; letter-spacing: 0; line-height: 1.12;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem); margin: 0 0 1.4rem;
}
.tagline mark { background: linear-gradient(transparent 58%, var(--lime) 58% 92%, transparent 92%); color: inherit; padding: 0 .05em; }
.tagline em { font-style: normal; color: var(--pink); }
.hero-sub { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* "In Loving Memory" line, above the logo on the homepage and under David's portrait on About */
.memorial {
  font-family: var(--font-body); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.3; text-wrap: balance;
  color: var(--ink); text-align: center; margin: 0;
}
.hero-side { justify-self: center; width: min(100%, 500px); display: grid; gap: 1.9rem; }
/* The logo, framed like a mounted print with a lime offset block behind it */
.hero-logo-wrap { position: relative; width: 100%; }
.hero-logo-wrap::before {
  content: ""; position: absolute; inset: 0; transform: translate(16px, 16px);
  background: var(--lime); border-radius: 18px; border: 2px solid var(--ink);
}
.hero-logo { position: relative; width: 100%; border-radius: 18px; border: 2px solid var(--ink); }
.hero-sticker {
  position: absolute; z-index: 1; right: -12px; top: -18px;
  font-family: var(--font-body); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--pink); color: #fff; padding: .45rem .8rem; border-radius: 999px; border: 2px solid var(--ink);
  transform: rotate(6deg);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { order: -1; width: min(88%, 420px); justify-self: start; }
}

/* Black 35mm film strip of random photos, drifting across the page */
.filmstrip {
  --frame-h: 170px;
  position: relative; margin-top: clamp(3rem, 7vw, 5rem);
  background: var(--ink); border-block: 2px solid var(--ink);
  padding: 44px 0; overflow: hidden;
}
.filmstrip::before, .filmstrip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 14px, var(--bg) 14px 30px);
  border-radius: 2px;
}
.filmstrip::before { top: 8px; }
.filmstrip::after { bottom: 8px; }
.film-track { display: flex; gap: 14px; width: max-content; animation: film 90s linear infinite; }
.filmstrip:hover .film-track, .filmstrip:focus-within .film-track { animation-play-state: paused; }
@keyframes film { to { transform: translateX(-50%); } }
.frame { position: relative; flex: none; margin: 0; }
.frame button { display: block; padding: 0; border: 2px solid var(--ink); background: var(--ink); cursor: zoom-in; border-radius: 3px; overflow: hidden; }
.frame img { height: var(--frame-h); width: auto; transition: transform .4s ease; }
.frame button:hover img { transform: scale(1.05); }
.frame-no {
  position: absolute; left: 4px; bottom: -18px; line-height: 1;
  font-family: var(--font-body); font-size: .68rem; letter-spacing: .08em; color: #fff; opacity: .9;
}
@media (max-width: 520px) { .filmstrip { --frame-h: 160px; } }
@media (prefers-reduced-motion: reduce) {
  .filmstrip { overflow-x: auto; }
  .film-track { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section + .section { border-top: 2px solid var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .7rem 0 0; }

.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
/* .page-hero h1 { max-width: 16ch; } */
/* Anchored sections land below the sticky header and jump bar */
section[id] { scroll-margin-top: 150px; }

/* On-page jump menu (David's Work: photographs / films) */
.jump-bar { position: sticky; top: var(--header); z-index: 40; padding: .7rem 0; pointer-events: none; }
.jump {
  pointer-events: auto; display: inline-flex; gap: 4px; padding: 4px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
}
.jump a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.2rem; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: .98rem;
  transition: background-color .2s, color .2s;
}
.jump a:hover { background: var(--lime-soft); color: var(--text); }
.jump a[aria-current="true"] { background: var(--pink); color: #fff; }
.jump-count { font-family: var(--font-body); font-size: .8em; font-weight: 400; opacity: .75; }
.jump-count:empty { display: none; }

/* ---------- Galleries ---------- */
/* Masonry via CSS columns; the preserved archive files are small, so tiles stay modest. */
.gallery { columns: 4 220px; column-gap: 14px; }
.gallery .tile { break-inside: avoid; margin: 0 0 14px; }
.gallery-lg { columns: 3 280px; column-gap: 18px; }
.gallery-lg .tile { margin-bottom: 18px; }
/* Phones: two columns keeps the small recovered photos near their true size, so they stay sharp */
@media (max-width: 520px) {
  .gallery:not(.gallery-lg) { columns: 2; column-gap: 8px; }
  .gallery:not(.gallery-lg) .tile { margin-bottom: 8px; }
}

.tile-btn {
  display: block; width: 100%; padding: 0; border: 2px solid var(--ink); background: var(--sunk);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative;
  transition: transform .2s, box-shadow .2s;
}
.tile-btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--pink); }
.tile-btn img { width: 100%; height: auto; transition: transform .5s ease; }
.tile figcaption { padding: .55rem .1rem 0; display: grid; gap: .1rem; }
.tile-title { font-weight: 700; font-size: .95rem; }
.tile-sub { font-family: var(--font-body); font-size: .76rem; color: var(--faint); }

/* Homepage showcase: same bento slots as before (the random picks are sized for them) */
.showcase { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; gap: 14px; }
.showcase .tile { margin: 0; position: relative; }
.showcase .tile-btn, .showcase .tile-btn img { height: 100%; }
.showcase .tile-btn img { object-fit: cover; }
.showcase .tile:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.showcase .tile:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.showcase .tile:nth-child(3) { grid-column: span 2; grid-row: span 2; }
.showcase .tile:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.showcase .tile:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.showcase .tile:nth-child(6) { grid-column: span 2; grid-row: span 1; }
.showcase .tile figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: .3rem .75rem;
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.showcase .tile:hover figcaption, .showcase .tile:focus-within figcaption { opacity: 1; transform: none; }
.showcase .tile-sub { display: none; }
/* untitled photos: no empty caption pill */
.showcase .tile figcaption:has(.tile-title:empty) { display: none; }
@media (max-width: 760px) {
  .showcase { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .showcase .tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .showcase .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .showcase .tile figcaption { display: none; }   /* no title pills over the photos on phones */
}

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: .45rem 1rem; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--surface); color: var(--text);
  transition: background-color .2s, color .2s;
}
.chip:hover { background: var(--lime-soft); }
.chip-count { font-family: var(--font-body); font-size: .78em; opacity: .6; margin-left: .15em; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip[aria-pressed="true"] .chip-count { opacity: .8; color: var(--lime); }

/* ---------- Snapshot prints (homepage): the way into the site, laid out like photos on a table ---------- */
.prints {
  display: grid; grid-template-columns: repeat(3, minmax(0, 260px));
  justify-content: center; gap: clamp(14px, 3vw, 44px); padding: 0 .5rem;
}
.print {
  display: block; background: var(--surface); padding: 10px 10px 0; border-radius: 4px;
  text-decoration: none; color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 18px 34px -16px rgba(50,30,20,.45);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.print:nth-child(1) { transform: rotate(-4deg); }
.print:nth-child(2) { transform: rotate(1.5deg) translateY(10px); }
.print:nth-child(3) { transform: rotate(3.5deg); }
.print:hover, .print:focus-visible {
  transform: rotate(0) translateY(-8px);
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 28px 44px -18px rgba(50,30,20,.55);
  color: var(--pink-deep);
}
.print img, .print-art { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.print > span:last-child {
  display: block; padding: .7rem .2rem .85rem;
  font-family: var(--font-body); font-weight: 700; font-size: clamp(.95rem, 2.4vw, 1.25rem); line-height: 1.2;
}
/* The family print borrows the logo's googly eyes and smile */
.print-art { position: relative; display: block; background: var(--pink); overflow: hidden; }
.print-art i {
  position: absolute; top: 26%; width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #111 0 22%, #fff 23% 45%, var(--lime) 46%);
}
.print-art i:first-child { left: 16%; }
.print-art i:nth-child(2) { right: 16%; }
.print-art b {
  position: absolute; left: 30%; right: 30%; top: 58%; aspect-ratio: 2 / 1;
  border: clamp(8px, 2.4vw, 14px) solid var(--lime); border-top: 0; border-radius: 0 0 999px 999px;
}
.print:hover .print-art i { background: radial-gradient(circle at 58% 40%, #111 0 22%, #fff 23% 45%, var(--lime) 46%); }
@media (max-width: 520px) {
  .prints { gap: 10px; padding: 0; }
  .print { padding: 6px 6px 0; }
}

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.video { margin: 0; }
.video video, .video .yt {
  width: 100%; aspect-ratio: 16 / 9; background: var(--ink); display: block;
  border: 2px solid var(--ink); border-radius: var(--radius);
}
.video figcaption { padding: .6rem .1rem 0; font-weight: 700; font-size: .98rem; }
.video-frame { position: relative; border-radius: var(--radius); }
.video-expand {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink);
  transition: background-color .2s, color .2s, transform .2s;
}
.video-expand:hover { background: var(--pink); color: #fff; transform: scale(1.06); }

/* YouTube films: thumbnail cover until played, then the player */
.video button.yt { padding: 0; cursor: pointer; background-size: cover; background-position: center; display: grid; place-items: center; }
.yt-play {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; padding-left: 3px;
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink);
  transition: background-color .2s, color .2s, transform .2s;
}
.video button.yt:hover .yt-play, .video button.yt:focus-visible .yt-play { background: var(--pink); color: #fff; transform: scale(1.06); }

/* Full screen (real) and the window-fill fallback look the same: film centred on black.
   Kept as separate rules: a browser that doesn't know one selector would drop a combined rule. */
.video-frame:fullscreen { background: #000; border-radius: 0; display: grid; place-items: center; }
.video-frame:fullscreen video, .video-frame:fullscreen .yt { width: 100%; height: 100%; max-height: 100vh; aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 0; }
.video-frame:fullscreen .video-expand { top: 16px; right: 16px; }
.video-frame:-webkit-full-screen { background: #000; border-radius: 0; display: grid; place-items: center; }
.video-frame:-webkit-full-screen video, .video-frame:-webkit-full-screen .yt { width: 100%; height: 100%; max-height: 100vh; aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 0; }
.video-frame:-webkit-full-screen .video-expand { top: 16px; right: 16px; }
.video-frame.is-expanded { background: #000; border-radius: 0; display: grid; place-items: center; }
.video-frame.is-expanded video, .video-frame.is-expanded .yt { width: 100%; height: 100%; max-height: 100vh; aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 0; }
.video-frame.is-expanded .video-expand { top: 16px; right: 16px; }
.video-frame.is-expanded { position: fixed; inset: 0; z-index: 200; animation: fade .2s ease; }

/* ---------- Empty states & notes ---------- */
.empty {
  border: 2px dashed var(--ink); border-radius: 14px;
  padding: clamp(2rem, 6vw, 3.5rem); text-align: center; color: var(--muted);
  background: var(--surface);
}
.empty h3 { color: var(--text); }
.empty p { max-width: 48ch; margin: 0 auto; }
.empty-dot { width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 1rem; background: var(--lime); border: 2px solid var(--ink); position: relative; }
.empty-dot::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; box-shadow: inset 5px -4px 0 3px #111; }

.note {
  margin-top: 2.2rem; padding: 1rem 1.2rem; border: 2px solid var(--ink); border-left: 8px solid var(--lime);
  background: var(--surface); border-radius: var(--radius); color: var(--muted); font-size: .95rem;
}

/* ---------- Story / About ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Quotes: the calm v1 card (white, thin border), a pink opening mark top left and a green closing mark bottom right */
.quote {
  margin: 0; padding: 1.8rem 1.8rem 1.6rem; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.quote::before, .quote::after {
  position: absolute; font-family: var(--font-body); font-weight: 400; font-size: 5.5rem; line-height: 1; pointer-events: none;
}
.quote::before { content: "\201C"; top: -.22em; left: .35em; color: var(--pink); }
.quote::after { content: "\201D"; top: calc(100% - .42em); right: .35em; color: var(--lime); }
.quote p { font-family: var(--font-body); font-weight: 400; font-size: 1.18rem; line-height: 1.55; letter-spacing: 0; }
.quote footer { color: var(--faint); font-size: .9rem; font-weight: 600; }

/* David's portrait in an arched frame, on the homepage and About page (source is 448px wide, so it is never shown larger) */
.portrait {
  margin: 0; justify-self: center; padding: 10px; background: var(--surface);
  border-radius: 999px 999px 18px 18px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -34px rgba(60,40,20,.5);
  width: min(380px, 100%);
}
.portrait img { width: 100%; height: auto; border-radius: 999px 999px 10px 10px; }

/* Homepage camera: product photo with our own markings (inline SVG); the iris opens on scroll (js/main.js) */
.split-camera { grid-template-columns: 1.35fr 1fr; }
@media (max-width: 860px) {
  .split-camera { grid-template-columns: 1fr; gap: 1.6rem; }
  .camera { width: min(100%, 560px); }
}
@media (max-width: 600px) { .split-camera .head-links { margin-top: 1.2rem; } }
.camera { margin: 0; justify-self: center; width: min(100%, 620px); }
.camera svg { display: block; width: 100%; height: auto; overflow: visible; --open: 0; }
.cam-glint { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: calc(.12 + var(--open) * .3); }
.cam-reflect { mix-blend-mode: screen; opacity: .75; }
.cam-edge { fill: url(#cam-edge-g); pointer-events: none; }
.cam-grip-title text { font-family: var(--font-heading); font-size: 17.6px; text-anchor: middle; dominant-baseline: central; }
.cam-grip-title .cam-grip-sub { font-size: 12.3px; }
.iris .blade { fill: #1d1d1b; stroke: #4a4a45; stroke-width: .8; }
.iris g:nth-child(even) .blade { fill: #262624; }
.portrait .memorial { margin: .9rem 0 .3rem; }
.split > div > .quote { margin: 1.8rem 0 2rem; }
.split-camera .head-links { margin-top: 1.6rem; }
.lens-gallery { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
aside .quote + h2 { margin-top: 2.6rem; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.prose h2:first-child { margin-top: 0; }
.placeholder { color: var(--text-muted, var(--muted)); }

.craft { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 2rem 0 0; padding: 0; list-style: none; }
.craft li { background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; padding: 1rem 1.1rem; }
.craft b { display: block; font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; letter-spacing: 0; }
.craft span { font-size: .9rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.band {
  border-radius: 20px; padding: clamp(2rem, 5vw, 3.4rem);
  background: var(--pink); color: #fff; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--lime);
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.band h2 { margin: 0 0 .3rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.band p { margin: 0; opacity: .92; }
.band .btn-line:hover { box-shadow: 4px 4px 0 var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--ink); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; background: var(--sunk); color: var(--muted); font-size: .95rem; }
.footer-tagline {
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0; line-height: 1.12;
  font-size: clamp(1.8rem, 4vw, 3rem); color: var(--text); max-width: 22ch; margin: 0 0 2.5rem;
}
.footer-tagline em { font-style: normal; color: var(--pink); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand img { height: 64px; width: auto; border-radius: 8px; border: 2px solid var(--ink); }
.footer-brand p { margin: 0; max-width: 30ch; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-nav a {
  display: block; padding: .4rem .9rem; border: 2px solid var(--ink); border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; background: var(--surface);
}
.footer-nav a:hover { background: var(--lime); color: var(--ink); }
.footer-base {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 2px solid var(--ink);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(18,18,16,.95);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 3.5rem clamp(8px, 3vw, 32px) 2rem;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: .9rem; min-width: 0; }
.lb-img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-cap { text-align: center; display: grid; gap: .2rem; }
.lb-title { font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; color: #fff; }
.lb-sub { font-family: var(--font-body); color: #bdbfb4; font-size: .8rem; letter-spacing: .04em; }
.lb-close, .lb-prev, .lb-next {
  background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; transition: background-color .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--pink); }
.lb-close { position: absolute; top: 12px; right: 12px; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 16px; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
}

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

.craft-title { margin: 2rem 0 0; font-size: 1.2rem; }
.craft-title + .craft { margin-top: .8rem; }

/* Quotes placed inside the About David story */
.prose .quote { margin: 2rem 0; }

/* Phones: every pill button (links, photo filters, Menu) the same compact size */
@media (max-width: 600px) {
  .btn, .chip, .nav-toggle { padding: .55rem 1rem; font-size: .9rem; line-height: 1.6; }
  .head-links, .hero-actions { gap: .55rem; }
}
