/* Jeremiah Ndirangu Photography
   Layout follows the Khong template he liked: slim black nav, white wordmark hero,
   mono full-bleed strip, white cards floating over mono photos, boxed letter-spaced
   labels, gapless grid with a white wash on hover. One accent: his JN monogram blue. */

:root {
  --ink: #111;
  --ink-2: #555;
  --ink-3: #8a8a8a;
  --paper: #fff;
  --tint: #f5f5f3;
  --line: #e4e4e4;
  --blue: #005eff;          /* sampled from the JN monogram */
  --nav-h: 56px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- shared atoms ---------- */
.label {
  display: inline-block;
  padding: .5em 1em .45em;
  border: 2px solid var(--ink);
  font-size: 12px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
  line-height: 1;
}
.rule { width: 48px; height: 0; border: 0; border-top: 1px solid var(--ink-3); margin: 28px auto; }
.rule--dark { border-color: #3a3a3a; }
.btn {
  display: inline-block;
  padding: 15px 30px 14px;
  border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink);
  font: 800 12px/1 var(--font); letter-spacing: .28em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.wordmark {
  font-size: clamp(56px, 11vw, 136px); font-weight: 800; letter-spacing: -.045em; line-height: .95;
}
.wordmark span:not(.sr) { color: var(--blue); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 36px);
  background: #0c0c0c;
}
.nav__mark img { width: 44px; height: auto; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav__links a {
  color: #d6d6d6; text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s;
}
.nav__links a:hover, .nav__links a.is-here { color: #fff; }
.nav__toggle { display: none; }

/* ---------- hero: collage + knockout name ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 560px;
  background: var(--paper);
}
.collage {
  position: absolute; inset: var(--nav-h) 0 0; z-index: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr);
}
.collage img {
  width: 100%; height: 100%; object-fit: cover; min-height: 0;
  transform: scale(1.14); opacity: 0;
  transition: transform 1.8s var(--ease), opacity .9s var(--ease);
}
/* 14 tiles placed by hand so the 6 x 4 grid has no holes */
.collage img:nth-child(1)  { grid-area: 1 / 1 / 3 / 3; }
.collage img:nth-child(2)  { grid-area: 1 / 3 / 2 / 4; }
.collage img:nth-child(3)  { grid-area: 2 / 3 / 3 / 4; }
.collage img:nth-child(4)  { grid-area: 1 / 4 / 2 / 6; }
.collage img:nth-child(5)  { grid-area: 2 / 4 / 3 / 5; }
.collage img:nth-child(6)  { grid-area: 2 / 5 / 4 / 6; }
.collage img:nth-child(7)  { grid-area: 1 / 6 / 3 / 7; }
.collage img:nth-child(8)  { grid-area: 3 / 1 / 5 / 2; }
.collage img:nth-child(9)  { grid-area: 3 / 2 / 4 / 4; }
.collage img:nth-child(10) { grid-area: 4 / 2 / 5 / 3; }
.collage img:nth-child(11) { grid-area: 4 / 3 / 5 / 5; }
.collage img:nth-child(12) { grid-area: 3 / 4 / 4 / 5; }
.collage img:nth-child(13) { grid-area: 4 / 5 / 5 / 6; }
.collage img:nth-child(14) { grid-area: 3 / 6 / 5 / 7; }
.collage img:nth-child(15) { display: none; }

/* Soft dark band behind the name: sits between the photos and the white sheet, so it
   only shows inside the letters (the 96% white hides it elsewhere). Deepens pale photo
   edges at the letters' feet. Stops follow the measured name box (44 to 61% of the collage, below the camera). */
.hero::after {
  content: ""; position: absolute; inset: var(--nav-h) 0 0; z-index: 0; pointer-events: none;
  background: linear-gradient(transparent 22%, rgba(0, 0, 0, .34) 32%, rgba(0, 0, 0, .34) 67%, transparent 77%); /* name spans 44 to 61% */
  opacity: 0; transition: opacity 1.3s var(--ease) .35s; /* in step with the sheet, never a bare stripe */
}
.hero.is-open::after { opacity: 1; }

.hero__layer {
  position: absolute; inset: var(--nav-h) 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 3vw 88px; text-align: center; /* bottom padding = the Scroll cue, so the stack centres above it */
}
/* White sheet. In screen blend, white stays white and black becomes see-through,
   so the black name turns into a window onto the collage. */
.hero__knock {
  z-index: 1;
  background: #fff; color: #000;
  mix-blend-mode: screen;
  opacity: 0; transition: opacity 1.3s var(--ease) .35s;
}
.hero__knock .hero__sub { visibility: hidden; } /* solid in the ink layer; this copy only holds the space */
.hero__ink { z-index: 2; }
.hero__ink .hero__name { color: transparent; }
.hero__ink .hero__name b { color: var(--blue); }
.hero__name {
  margin: 0;
  font-size: clamp(40px, 8.3vw, 210px); /* "JEREMIAH N. PHOTO" is 10.81em wide at this tracking: ~90vw */
  font-weight: 900; letter-spacing: -.02em; line-height: .9; text-transform: uppercase;
  white-space: nowrap;
}
.hero__name b { font-weight: inherit; }
/* DSLR line drawing above the name. The knock layer holds an empty svg with the same
   viewBox, so both layers reserve the same box and stay aligned. Sized by width AND height
   so a short laptop screen never pushes the name down. */
.hero__cam {
  width: clamp(170px, min(23vw, 33svh), 420px); height: auto; margin-bottom: clamp(10px, 1.4vw, 24px); overflow: visible;
  stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.hero__cam .thin { stroke-width: 1.7; }
.hero__cam-glint { stroke: var(--blue); }
/* draws itself in once the white sheet has filled in: dash 1 + gap 2 on a pathLength of 1,
   body first, then the details, the lens rings, and the blue glints last */
/* strokes only, never a group: dasharray inherits and would chop up a group's children.
   Not [pathLength]: it matched, but Chrome never restyled the strokes when .is-open landed. */
.hero__ink .hero__cam > :not(g, defs) {
  stroke-dasharray: 1 2; stroke-dashoffset: 1.02;
  transition: stroke-dashoffset 1.2s cubic-bezier(.6, .1, .3, 1) calc(1.15s + var(--i, 0) * 55ms);
}
.hero.is-open .hero__ink .hero__cam > :not(g, defs) { stroke-dashoffset: 0; }
/* lens photo, shutter iris and pointer tracking, built by cam.js */
.hero__cam .cam-pivot { transform-box: view-box; transform-origin: 200px 150px; }
.hero__cam .cam-view { opacity: 0; transition: opacity 1.1s var(--ease); }
.hero__cam .cam-view.is-on { opacity: 1; }
.hero__cam .cam-view > circle { stroke: none; }
.hero__cam .cam-ap { display: none; }
/* same face as the name, solid ink: photo-filled letters stop reading at this size */
.hero__sub {
  margin: clamp(10px, 1.5vw, 24px) 0 0;
  font-size: clamp(15px, 3.2vw, 80px); /* 15.38em wide: about half the name */
  font-weight: 900; letter-spacing: -.02em; line-height: 1; text-transform: uppercase; white-space: nowrap;
  color: var(--ink);
}
.hero__ink .hero__sub, .hero__ink .hero__name b, .hero__cue {
  opacity: 0; transform: translateY(12px);
  transition: opacity .9s var(--ease) 1.1s, transform .9s var(--ease) 1.1s;
}
.hero__ink .hero__sub { transition-delay: 1.25s; }
.hero__cue {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; margin-left: -30px; width: 60px;
  padding-bottom: 46px; text-align: center; text-decoration: none;
  font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2);
}
.hero__cue::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 36px; background: var(--ink-3);
  transform-origin: top; animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* develop: photos settle in first, then the white sheet fills in around the name */
.hero.is-open .collage img { transform: none; opacity: 1; }
.hero.is-open .hero__knock { opacity: .96; }
.hero.is-open .hero__ink .hero__sub,
.hero.is-open .hero__ink .hero__name b, .hero.is-open .hero__cue { opacity: 1; transform: none; }
.collage img:nth-child(3n+2) { transition-delay: .08s; }
.collage img:nth-child(3n) { transition-delay: .16s; }

/* ---------- shutter intro ---------- */
.shutter {
  position: fixed; inset: 0; z-index: 200;
  background: #151515; color: #fff; /* solid until the iris fires, so the site never flashes first */
}
.shutter.is-firing { background: transparent; }
.no-intro .shutter { display: none; }
.shutter.is-done { display: none; }
.shutter__iris { position: absolute; inset: 0; width: 100%; height: 100%; }
.shutter__flash {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #fff 0 38%, #f3f6ff 70%, #e6ecfb 100%);
}
/* the exposure: blinding pop, short hold, long falloff (one flash only, under the 3 per second limit) */
.shutter.is-flash .shutter__flash { animation: flashBurst 1.15s cubic-bezier(.2, .6, .3, 1) both; }
@keyframes flashBurst { 0% { opacity: 0; } 3% { opacity: 1; } 14% { opacity: 1; } 100% { opacity: 0; } }
/* the frame behind it reads overexposed, then settles like an image developing */
.collage { filter: brightness(.74) contrast(1.15) saturate(1.2); transition: filter 1.7s var(--ease); } /* deeper photos read as solid letters */
.hero.is-overexposed .collage { filter: brightness(2.3) saturate(.35) contrast(.8); transition: none; }

.vf { position: absolute; inset: clamp(18px, 5vmin, 56px); transition: opacity .3s; animation: vfIn .4s ease-out both; }
@keyframes vfIn { from { opacity: 0; transform: scale(1.03); } }
.shutter.is-firing .vf { opacity: 0; }
.vf__c { position: absolute; width: 34px; height: 34px; border: 0 solid rgba(255, 255, 255, .85); }
.vf__c--tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.vf__c--tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.vf__c--bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.vf__c--br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.vf__mark { position: absolute; top: 18px; left: 22px; width: 36px; height: auto; }
.vf__bolt { position: absolute; top: 19px; right: 74px; width: 16px; height: 20px; fill: #ffcc33; animation: charge .5s steps(2) infinite; }
@keyframes charge { 50% { opacity: .15; } }
.shutter.is-locked .vf__bolt { animation: none; fill: #fff; }
.vf__mode { position: absolute; top: 22px; right: 24px; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: rgba(255, 255, 255, .8); }
.vf__af {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 66px; margin: -33px 0 0 -46px;
  border: 2px solid rgba(255, 255, 255, .9);
  /* only the four corners of the box */
  -webkit-mask: linear-gradient(#000 0 0) top left / 16px 16px no-repeat, linear-gradient(#000 0 0) top right / 16px 16px no-repeat,
                linear-gradient(#000 0 0) bottom left / 16px 16px no-repeat, linear-gradient(#000 0 0) bottom right / 16px 16px no-repeat;
          mask: linear-gradient(#000 0 0) top left / 16px 16px no-repeat, linear-gradient(#000 0 0) top right / 16px 16px no-repeat,
                linear-gradient(#000 0 0) bottom left / 16px 16px no-repeat, linear-gradient(#000 0 0) bottom right / 16px 16px no-repeat;
  animation: hunt .7s ease-in-out infinite alternate;
}
@keyframes hunt { from { transform: scale(1.35); opacity: .6; } to { transform: scale(1.05); opacity: 1; } }
.shutter.is-locked .vf__af { animation: lock .34s ease-out both; border-color: var(--blue); }
@keyframes lock { 0% { transform: scale(1.12); } 60% { transform: scale(.94); } 100% { transform: scale(1); } }
.vf__read {
  position: absolute; left: 0; right: 0; bottom: 16px;
  display: flex; justify-content: center; gap: clamp(14px, 3vw, 34px);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; color: rgba(255, 255, 255, .85);
  font-variant-numeric: tabular-nums;
}
.vf__shots { color: var(--blue); }
.shutter.is-locked .vf__shots { color: #fff; }
.shutter__skip {
  position: absolute; right: 22px; bottom: 22px; z-index: 2;
  padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .35); background: none; cursor: pointer;
  color: rgba(255, 255, 255, .75); font: 700 10px/1 var(--font); letter-spacing: .26em; text-transform: uppercase;
}
.shutter__skip:hover { color: #fff; border-color: #fff; }
.shutter.is-firing .shutter__skip { opacity: 0; }

/* ---------- category strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: block; }
.strip__tile img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.02);
  transition: filter .7s var(--ease), transform 1.2s var(--ease);
}
.strip__tile:hover img, .strip__tile:focus-visible img { filter: none; transform: scale(1.07); }
.tag {
  position: absolute; left: 50%; bottom: 12%; transform: translate(-50%, 10px);
  padding: .7em 1.2em .65em;
  background: var(--paper); color: var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; line-height: 1;
  opacity: 0; transition: opacity .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap;
}
.strip__tile:hover .tag, .strip__tile:focus-visible .tag { opacity: 1; transform: translate(-50%, 0); }

/* ---------- floating card panels ---------- */
.panel { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 150px) clamp(16px, 4vw, 40px); }
.panel__bg {
  position: absolute; inset: -18% 0; z-index: 0;
  background: center / cover no-repeat;
  filter: grayscale(1) brightness(1.15) contrast(.85);
  will-change: transform;
}
.panel__bg::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .55); }
.card {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto;
  background: var(--paper);
  padding: clamp(36px, 6vw, 90px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .35);
}
.card--center { max-width: 860px; text-align: center; }

.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.about__copy { display: grid; gap: 18px; justify-items: start; }
.about__copy .label { margin-bottom: 8px; }
.about__copy p { color: var(--ink-2); }
.about__copy .lede { color: var(--ink); font-size: clamp(19px, 2vw, 24px); font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
.about__copy .btn { margin-top: 10px; }

/* ---------- plain sections ---------- */
.section { padding: clamp(80px, 10vw, 130px) clamp(16px, 4vw, 40px); max-width: calc(var(--wrap) + 80px); margin: 0 auto; }
.section--tint { max-width: none; background: var(--tint); }
.section--tint > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section--tint > .label { display: table; margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.section__intro { margin-top: 18px; color: var(--ink-2); }

/* ---------- portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 40px 0 28px; }
.filters button {
  position: relative;
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: 700 11px/1 var(--font); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3);
  transition: color .2s;
}
.filters button::after {
  content: ""; position: absolute; left: 0; right: .24em; bottom: -2px; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.filters button:hover { color: var(--ink); }
.filters button.is-on { color: var(--ink); }
.filters button.is-on::after { transform: scaleX(1); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); }
@media (min-width: 1400px) { .grid { margin: 0 calc((var(--wrap) - 100vw) / 2 + 20px); grid-template-columns: repeat(4, 1fr); } }
.tile {
  position: relative; aspect-ratio: 1; overflow: hidden;
  padding: 0; border: 0; background: #eee; cursor: zoom-in;
  animation: tileIn .6s var(--ease) both;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(255, 255, 255, .78); opacity: 0; transition: opacity .35s var(--ease);
}
.tile .tag { bottom: auto; top: 50%; z-index: 2; transform: translate(-50%, -40%); border: 2px solid var(--ink); background: transparent; }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile:hover .tag, .tile:focus-visible .tag { opacity: 1; transform: translate(-50%, -50%); }
.tile:hover img { transform: scale(1.04); }
@keyframes tileIn { from { opacity: 0; } to { opacity: 1; } }
.more { text-align: center; margin-top: 48px; }
.more[hidden] { display: none; }

/* ---------- stories ---------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 48px; }
.story { text-align: left; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.story__img { aspect-ratio: 4 / 5; overflow: hidden; background: #ddd; position: relative; }
.story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.story:hover .story__img img { transform: scale(1.05); }
.story__count {
  position: absolute; right: 14px; bottom: 14px;
  padding: 6px 10px 5px; background: var(--paper);
  font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; line-height: 1;
}
.story__meta { display: block; margin-top: 18px; font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.story h3 { margin-top: 6px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.story p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px clamp(28px, 4vw, 56px); margin-top: 56px; }
.service svg, .details svg, .social svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.service h3 { margin: 18px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.service p { font-size: 14px; color: var(--ink-2); }

/* ---------- cta ---------- */
.cta__title { font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.card--center > p { color: var(--ink-2); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(40px, 7vw, 110px); margin-top: 48px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 32px; align-content: start; }
.form__intro, .form__wide, .form__status { grid-column: 1 / -1; }
.form__intro { color: var(--ink-2); }
.form label { display: grid; gap: 6px; }
.form label span { font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.form input, .form select, .form textarea {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); font: 500 15px/1.5 var(--font);
  transition: border-color .2s;
}
.form select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--ink); }
.form .is-bad { border-color: #d22; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.8em; font-size: 13px; color: var(--ink-2); }
.form__status a { color: inherit; text-decoration: underline; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* honeypot: off screen, skipped by keyboard */
.details { display: grid; gap: 40px; align-content: start; padding-top: 6px; }
.details h3 { margin: 12px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
.details p, .details a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.details a:hover { color: var(--blue); }

/* ---------- footer ---------- */
.footer { background: #141414; color: #bdbdbd; text-align: center; padding: 84px 24px 64px; }
.wordmark--sm { font-size: 30px; color: #fff; }
.social { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 22px; justify-content: center; }
.social a { color: #cfcfcf; display: block; transition: color .2s, transform .2s; }
.social a:hover { color: #fff; transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.footer__copy { font-size: 12px; color: #8a8a8a; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: 70px 1fr 70px; align-items: center;
  background: rgba(10, 10, 10, .97); color: #fff;
  animation: tileIn .25s ease both;
}
.lb[hidden] { display: none; }
.lb__fig { margin: 0; height: 100vh; height: 100dvh; display: grid; grid-template-rows: 1fr auto; padding: 56px 0 18px; min-width: 0; }
.lb__fig img { width: 100%; height: 100%; object-fit: contain; min-height: 0; transition: opacity .2s; }
.lb__fig img.is-loading { opacity: .25; }
.lb figcaption { padding: 16px 16px 0; text-align: center; }
.lb__title { font-size: 11px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; margin-right: 16px; }
.lb__blurb { display: block; order: 3; max-width: 640px; margin: 6px auto 0; font-size: 13px; line-height: 1.6; color: #a8a8a8; }
.lb__blurb:empty { display: none; }
.lb__count { font-size: 11px; color: #8a8a8a; letter-spacing: .12em; }
.lb button { border: 0; background: none; color: #fff; cursor: pointer; font-family: var(--font); }
.lb__nav { height: 100%; font-size: 48px; font-weight: 300; opacity: .55; transition: opacity .2s; }
.lb__nav:hover { opacity: 1; }
.lb__close { position: absolute; top: 10px; right: 18px; z-index: 2; font-size: 40px; line-height: 1; opacity: .7; }
.lb__close:hover { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .about, .contact { grid-template-columns: 1fr; }
  .about__photo { aspect-ratio: 3 / 2; }
  .grid, .stories, .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav__toggle {
    display: grid; gap: 6px; width: 40px; height: 40px; place-content: center;
    border: 0; background: none; cursor: pointer;
  }
  .nav__toggle span:not(.sr) { width: 22px; height: 2px; background: #fff; transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 0 18px;
    background: #0c0c0c;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { padding: 14px clamp(16px, 3vw, 36px); font-size: 12px; }

  .collage { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(5, 1fr); }
  .collage img:nth-child(n) { grid-area: auto; display: block; }
  .hero::after { background: linear-gradient(transparent 22%, rgba(0, 0, 0, .34) 31%, rgba(0, 0, 0, .34) 63%, transparent 73%); } /* 2-line name: 44 to 60% */
  .hero__name { font-size: 13.6vw; line-height: .9; } /* "JEREMIAH N." is 6.77em wide: ~92vw */
  .hero__name span { display: block; }
  .hero__cam { width: min(56vw, 30svh); }
  .hero__sub { font-size: 5.4vw; } /* ~83vw */
  .vf__read { bottom: 52px; flex-wrap: wrap; gap: 8px 16px; }

  .strip { grid-template-columns: repeat(2, 1fr); }
  .stories, .services { grid-template-columns: 1fr; }
  .services { gap: 40px; }
  .form { grid-template-columns: 1fr; }
  .card { padding: 32px 22px; }
  .panel { padding: 64px 16px; }
  .lb { grid-template-columns: 1fr; }
  .lb__nav { position: absolute; top: 50%; height: auto; padding: 20px 10px; transform: translateY(-50%); z-index: 2; }
  .lb__prev { left: 0; } .lb__next { right: 0; }
}
@media (hover: none) {
  .tile::before, .tile .tag { display: none; }
}
/* no hover on touch (tablets too, not just phone widths): show the label, keep the color */
@media (max-width: 760px), (hover: none) {
  .strip__tile img { filter: none; }
  .strip__tile .tag { opacity: 1; transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
