/* ==========================================================================
   Luis Valdez — Photography, Film & Audio
   Design system v2: editorial / magazine — warm paper canvas, a serif
   display face for headlines, small-caps sans for structure, asymmetric
   picture grids, hairline rules. Built to read like a printed feature,
   not a shop window.
   ========================================================================== */

:root {
  --paper: #FAFAF7;       /* Museum White — cool gallery white page */
  --paper-deep: #F1F1EC;  /* deeper cool white for alternating chapters */
  --card: #FFFFFF;

  --ink: #1B1712;
  --ink-soft: #454036;
  --text-muted: #6E6656;
  --text-faint: #9C927C;
  --line: #E4E4DC;
  --line-strong: #CFCFC2;

  --accent: #E24B33;      /* the one spot colour — same red as v1 */
  --accent-soft: #F3D9CD;

  --max-w: 1280px;
  --max-w-narrow: 760px;

  --shadow: none;         /* Museum White is flat — hairline borders carry separation instead */
  --transition: 240ms cubic-bezier(.4,0,.2,1);

  --serif: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

/* Break a block out to full viewport width inside a centred layout */
.bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-muted); }

em, .i { font-style: italic; color: var(--accent); font-weight: 400; }

/* ---------- Kicker / eyebrow ---------- */
.kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.kicker .no {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-faint);
  font-size: 1rem;
}

/* ---------- Display headlines ---------- */
.display-xl { font-size: clamp(3rem, 8.4vw, 6.8rem); font-weight: 450; }
.display-lg { font-size: clamp(2.2rem, 5.6vw, 4rem); }
.display-md { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Rule / divider ---------- */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Drop cap ---------- */
.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  font-weight: 600;
  line-height: .78;
  float: left;
  padding: .04em .09em 0 0;
  color: var(--ink);
}

/* ---------- Pull quote ---------- */
.pull-quote-wrap { padding: 20px 0; text-align: center; }
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 780px;
  margin: 0 auto;
}
.pull-quote-attr {
  margin-top: 20px;
  font-family: var(--sans);
  font-style: normal;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Buttons (sharp corners — deliberately not v1's pill shape) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color var(--transition), border-color var(--transition);
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Header / masthead nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.logo span { font-style: italic; color: var(--accent); font-weight: 500; text-transform: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.nav-contact {
  background: var(--ink);
  color: var(--accent);
  padding: 10px 20px;
  border: 1px solid var(--ink);
}
.nav-links a.nav-contact:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: var(--transition); }

@media (max-width: 860px) { .nav-links { gap: 20px; } }
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 28px;
    gap: 26px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.1rem; }
}

/* ---------- Section scaffolding ---------- */
section { padding: 108px 0; }
.section-tight { padding: 64px 0; }
.chapter-alt { background: var(--paper-deep); }

.section-head { margin-bottom: 56px; }
.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: none;
}

/* ---------- Home: cover hero ---------- */
.cover {
  padding: 84px 0 0;
}
.cover .kicker { justify-content: center; }
.cover-head { max-width: 900px; margin: 0 auto; text-align: center; }
.cover-head .display-xl { margin-bottom: 26px; }
.cover-lede { max-width: 560px; margin: 0 auto 40px; text-align: center; }
.cover-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 70px; }

.cover-media { position: relative; overflow: hidden; }
.cover-carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 90vh; }
.cover-slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.cover-slide.is-active { opacity: 1; pointer-events: auto; }
.cover-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-video-frame { width: 100%; height: 100%; background: #0c0a08; }
/* pointer-events:none because YouTube's own hover controls (the big center
   play/pause/skip overlay) aren't governed by the controls=0 param — they
   appear on ANY mouse interaction with the iframe. This loop is a muted,
   click-through background; the "Watch full video" button above it is the
   only intended way to interact with it. */
.cover-video-frame iframe { width: 100%; height: 100%; display: block; border: 0; pointer-events: none; }
.cover-video-watch {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(27,23,18,.55);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,.65);
  color: #fff;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 22px 12px 14px;
  cursor: pointer;
  transition: var(--transition);
}
.cover-video-watch svg { width: 30px; height: 30px; flex-shrink: 0; }
.cover-video-watch:hover { background: var(--accent); border-color: var(--accent); }
@media (max-width: 640px) {
  /* Narrow viewports don't have room for the button on the same line as the
     caption and the arrows/dots, so it sits in its own row just above them. */
  .cover-video-watch { bottom: 56px; padding: 9px 16px 9px 11px; gap: 9px; font-size: .66rem; }
  .cover-video-watch svg { width: 24px; height: 24px; }
}
.cover-media-cap {
  position: absolute; top: 20px; right: 28px;
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
  z-index: 2;
  max-width: 55%;
  text-align: right;
  transition: opacity .3s ease;
}

.cover-carousel-controls {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.cover-carousel-arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(27,23,18,.28);
  backdrop-filter: blur(3px);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.cover-carousel-arrow:hover { background: var(--accent); border-color: var(--accent); }
.cover-carousel-dots { display: flex; align-items: center; gap: 8px; }
.cover-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: rgba(255,255,255,.55);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}
.cover-carousel-dot:hover { background: rgba(255,255,255,.85); }
.cover-carousel-dot.is-active { background: var(--accent); width: 20px; border-radius: 0; }

@media (max-width: 640px) {
  .cover-carousel-controls { right: 16px; bottom: 16px; gap: 10px; }
  .cover-carousel-arrow { width: 28px; height: 28px; font-size: 1.05rem; }
  .cover-media-cap { top: 16px; right: 16px; max-width: 60%; font-size: .9rem; }
}

.stat-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
}
.stat-row div { text-align: center; }
.stat-row strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--ink); font-weight: 500; }
.stat-row span { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }

@media (max-width: 760px) {
  .cover { padding: 56px 0 0; }
  .cover-actions { margin-bottom: 46px; }
  .stat-row { gap: 36px; padding: 36px 0; }
}

/* ---------- Home: index / table of contents teaser ---------- */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line);
  transition: color var(--transition);
}
.index-row .no { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--text-faint); }
.index-row h3 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 500; transition: color var(--transition); }
.index-row p { margin: 6px 0 0; font-size: .92rem; max-width: 460px; }
.index-row:hover h3 { color: var(--accent); }
.index-row .arrow { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--text-faint); }

@media (max-width: 620px) {
  .index-row { grid-template-columns: 40px 1fr; }
  .index-row .arrow { display: none; }
}

/* ---------- Dynamic mosaic photo grid ----------
   A CSS-grid "brick wall": tile sizes cycle through a 10-item pattern via
   nth-child and grid-auto-flow: dense packs everything with no gaps, so any
   number of photos (7 or 70) reads as an irregular, hand-laid mosaic rather
   than a uniform grid. Captions sit on a hover overlay so tiles of very
   different heights still line up cleanly. ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  grid-auto-flow: dense;
  gap: 20px;
}
.mosaic figure {
  margin: 0;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
  grid-column: span 2;
  grid-row: span 2;
}
.mosaic figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--paper-deep);
  transition: transform .6s ease;
}
.mosaic figure:hover img { transform: scale(1.045); }
/* "From the archive" homepage mosaic: each tile links straight through to its
   matching chapter on the Work page, so it needs a plain-link reset and a
   pointing-hand cursor rather than the lightbox's zoom-in cursor. */
.mosaic-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(27,23,18,.88), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
}
.mosaic figure:hover figcaption { opacity: 1; }
.mosaic figcaption .cap-title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: .74rem;
  margin-bottom: 4px;
}
/* Same look as the title, just smaller and pulled up a touch — shown only
   when the photo's entry in js/work-content.json sets a "subject" property. */
.mosaic figcaption .cap-subject {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1rem;
    margin: -5px 0 4px;
    color: rgba(255, 255, 255, .85);
    line-height: 0.9rem;
}
.mosaic figcaption .cap-desc {
  display: block;
  font-size: .74rem;
  line-height: 1.4;
  color: rgba(255,255,255,.8);
}

/* Ten-tile repeating rhythm of tall / wide / small / square */
.mosaic figure:nth-child(10n+1) { grid-column: span 2; grid-row: span 3; }
.mosaic figure:nth-child(10n+2) { grid-column: span 1; grid-row: span 2; }
.mosaic figure:nth-child(10n+3) { grid-column: span 1; grid-row: span 2; }
.mosaic figure:nth-child(10n+4) { grid-column: span 1; grid-row: span 3; }
.mosaic figure:nth-child(10n+5) { grid-column: span 1; grid-row: span 2; }
.mosaic figure:nth-child(10n+6) { grid-column: span 1; grid-row: span 1; }
.mosaic figure:nth-child(10n+7) { grid-column: span 1; grid-row: span 1; }
.mosaic figure:nth-child(10n+8) { grid-column: span 2; grid-row: span 1; }
.mosaic figure:nth-child(10n+9) { grid-column: span 1; grid-row: span 2; }
.mosaic figure:nth-child(10n)   { grid-column: span 1; grid-row: span 1; }

@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 16px; }
  .mosaic figure { grid-column: span 1 !important; grid-row: span 2 !important; }
  .mosaic figure:nth-child(10n+1), .mosaic figure:nth-child(10n+4) { grid-column: span 2 !important; grid-row: span 2 !important; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 240px; gap: 20px; }
  .mosaic figure { grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* Compact sub-chapter jump links (Photography's eight subjects) */
.tag-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tag-links a {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  transition: var(--transition);
}
.tag-links a:hover { border-color: var(--accent); color: var(--accent); }

/* Sub-chapter heading (one notch below the numbered chapters) */
.sub-chapter { padding: 70px 0; }
.sub-chapter-head { max-width: 640px; margin-bottom: 40px; }
.sub-chapter-head .kicker { color: var(--text-faint); }
.sub-chapter-head .kicker .no { color: var(--accent); }

/* ---------- Filmography list (editorial video listing) ---------- */
.film-list { border-top: 1px solid var(--line); }
/* .film-item's own "display: grid" below (same specificity as the browser's
   built-in [hidden] rule) would otherwise win and keep hidden items visible —
   this rule is deliberately more specific so [hidden] actually hides them. */
.film-item.film-item-hidden { display: none; }
.film-item {
  display: grid;
  grid-template-columns: 56px 190px 1fr;
  align-items: center;
  gap: 26px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--transition);
}
.film-item:hover { background: rgba(226,75,51,.06); }
.film-item .idx { font-family: var(--serif); font-style: italic; color: var(--text-faint); font-size: 1rem; }
.film-item .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--paper-deep); }
.film-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.film-item .thumb .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27,23,18,.28);
}
.film-item .thumb .play svg { width: 48px; height: 48px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.film-item .meta span {
  display: block;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.film-item .meta h4 { margin: 0; font-size: 1.12rem; font-weight: 500; color: var(--ink); }
/* Per-video credits line — what Luis actually did on that project, pulled
   from the "skills" property in js/work-content.json. Not every video has
   one (the Mais do que Amor, é Fado chapter doesn't set it), so it's only
   rendered when present. */
.film-item .meta .film-skills {
  margin: 8px 0 0;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.film-item .meta .fado-piece-link { margin-top: 10px; font-size: .74rem; }
.section-head .series-hub-link { margin-top: 18px; }
.film-item .meta .film-skills strong {
  display: inline-block;
  margin-right: 8px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.film-show-more-wrap { padding: 32px 0; text-align: center; }

@media (max-width: 700px) {
  .film-item { grid-template-columns: 96px 1fr; }
  .film-item .idx { display: none; }
}

/* ---------- Lightbox / video modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(27,23,18,.94);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-content { position: relative; max-width: 1040px; width: 100%; }
/* The lightbox's content box shrink-wraps the photo itself (rather than
   stretching to the modal's full width) so the caption overlay — which is
   absolutely positioned to the content box's edges — lines up exactly with
   the visible image on every aspect ratio, portrait included. */
#lightbox .modal-content { width: auto; }
.modal-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  margin: 0 auto;
}
#lightbox .modal-content img {
  max-width: min(1040px, calc(100vw - 48px));
}
.modal-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 80px 32px 26px;
  background: linear-gradient(to top, rgba(27,23,18,.9), rgba(27,23,18,.45) 60%, transparent);
  text-align: left;
  pointer-events: none;
}
.modal-caption-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  margin: 0 0 6px;
}
/* Same look as the title, just a different size and pulled up a touch — an
   optional subject line (e.g. "Sexteto de Jazz de Lisboa") shown only when
   the photo's entry in js/work-content.json sets a "subject" property. */
.modal-caption-subject {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: #fff;
  margin: -10px 0 6px;
}
.modal-caption-desc {
  font-size: .92rem;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
  max-width: 640px;
  margin: 0;
}
@media (max-width: 640px) {
  .modal-caption { padding: 56px 18px 18px; }
  .modal-caption-title { font-size: 1.08rem; }
  .modal-caption-desc { font-size: .84rem; }
}
.modal-video-wrap { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; background: #000; }
.modal-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute; top: -46px; right: 0;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); width: 38px; height: 38px; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.05rem;
}
.modal-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); width: 48px; height: 48px; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.6rem; line-height: 1; z-index: 1001;
  transition: transform var(--transition), border-color var(--transition);
}
.modal-nav:hover { border-color: var(--ink); transform: translateY(-50%) scale(1.06); }
.modal-prev { left: 20px; }
.modal-next { right: 20px; }
@media (max-width: 640px) {
  .modal-nav { width: 40px; height: 40px; font-size: 1.3rem; }
  .modal-prev { left: 8px; }
  .modal-next { right: 8px; }
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.about-photo { overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3/4; position: sticky; top: 110px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.marginalia {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.marginalia h4 {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.kit-list li {
  font-size: .92rem;
  color: var(--text-muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.kit-list li:last-child { border-bottom: none; }

.notes-list { border-top: 1px solid var(--line); margin-top: 10px; }
.notes-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line);
}
.notes-row .no { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.notes-row h3 { font-size: 1.15rem; margin-bottom: 6px; }
.notes-row p { margin: 0; font-size: .94rem; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 340px; margin: 0 auto; position: static; }
}

/* ---------- Available-for (contact / hire clarity, no price menu) ---------- */
.available { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.available span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
}
.contact-info-card { padding-top: 6px; }
.contact-info-card .row {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-card .row .ic { font-family: var(--serif); font-style: italic; color: var(--accent); width: 20px; flex-shrink: 0; }
.contact-info-card .row a, .contact-info-card .row span.txt { font-weight: 600; font-size: .98rem; color: var(--ink); }
.contact-info-card .row small { display: block; color: var(--text-faint); font-size: .76rem; margin-top: 3px; }

.social-row { display: flex; gap: 10px; margin-top: 26px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 0;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social-row a svg { width: 17px; height: 17px; }

form.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 15px;
  color: var(--ink);
  font-family: inherit;
  font-size: .96rem;
  transition: border-color var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .78rem; color: var(--text-faint); }
.form-status { font-size: .86rem; font-weight: 600; padding: 13px 16px; border-radius: 0; display: none; border: 1px solid var(--line); }
.form-status.show { display: block; }
.form-status.ok { background: #EEF3EB; color: #386A2C; border-color: #D2DFC6; }
.form-status.err { background: var(--accent-soft); color: #9A3320; border-color: #E7BBA9; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; max-width: 760px; margin: 0 auto; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }

/* ---------- Footer / colophon ---------- */
.site-footer {
  border-top: 1px solid var(--ink);
  padding: 70px 0 32px;
  background: var(--paper-deep);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 46px;
}
.footer-top h4 { font-family: var(--sans); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 18px; }
.footer-top ul { display: flex; flex-direction: column; gap: 11px; }
.footer-top ul a { color: var(--ink-soft); font-size: .92rem; transition: color var(--transition); }
.footer-top ul a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.footer-legal { display: flex; align-items: center; gap: 6px; }
.footer-legal a { color: var(--text-faint); text-decoration: underline; }
.footer-legal a:hover { color: var(--accent); }
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--text-faint);
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: var(--accent); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 780px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  padding: 22px 24px;
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
  z-index: 300;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: .84rem; line-height: 1.55; color: var(--paper); flex: 1 1 320px; }
.cookie-banner p a { color: var(--paper); text-decoration: underline; }
.cookie-banner-cats { display: flex; gap: 18px; flex-wrap: wrap; flex-shrink: 0; }
.cookie-banner-cats label { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--paper); cursor: pointer; white-space: nowrap; }
.cookie-banner-cats input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner .btn { padding: 11px 18px; font-size: .68rem; }
.cookie-banner .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.cookie-banner .btn-primary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cookie-banner .btn-outline { background: transparent; border-color: var(--paper); color: var(--paper); }
.cookie-banner .btn-outline:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 560px) { .cookie-banner { flex-direction: column; align-items: stretch; } .cookie-banner-actions { justify-content: flex-end; } }

/* ---------- Photography chapter accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 38px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.accordion-trigger-text { display: flex; flex-direction: column; gap: 10px; }
.accordion-trigger .kicker { margin: 0; }
.accordion-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 500;
  color: var(--ink);
  transition: color var(--transition);
}
.accordion-trigger:hover .accordion-title { color: var(--accent); }
.accordion-icon {
  flex-shrink: 0;
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color var(--transition);
}
.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  transition: transform var(--transition), background var(--transition);
}
.accordion-icon::before { width: 12px; height: 1px; margin: 0 0 0 -6px; }
.accordion-icon::after { width: 1px; height: 12px; margin: -6px 0 0 -0.5px; }
.accordion-trigger:hover .accordion-icon { border-color: var(--accent); }
.accordion-trigger:hover .accordion-icon::before,
.accordion-trigger:hover .accordion-icon::after { background: var(--accent); }
.accordion-trigger[aria-expanded="true"] .accordion-icon { border-color: var(--accent); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::before,
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { background: var(--accent); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: scaleY(0); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
}
.accordion-panel-inner { padding-bottom: 60px; }
.accordion-panel-inner > .lede { margin-bottom: 26px; }

@media (max-width: 640px) {
  .accordion-trigger { padding: 28px 0; gap: 14px; }
  .accordion-icon { width: 28px; height: 28px; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-hero { padding: 76px 0 60px; }
.page-hero .kicker { justify-content: flex-start; }

/* ---------- Gear / rentals ---------- */
.gear-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0;
  margin-bottom: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gear-search { position: relative; max-width: 320px; width: 100%; }
.gear-search input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 15px;
  color: var(--ink);
  font-family: inherit;
  font-size: .92rem;
}
.gear-search input:focus { outline: none; border-color: var(--ink); }
.gear-search input::placeholder { color: var(--text-faint); }
.gear-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.gear-chip {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.gear-chip:hover { border-color: var(--accent); color: var(--accent); }
.gear-chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.gear-section { padding-top: 8px; }
.gear-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 44px;
  margin-bottom: 4px;
}
.gear-section-head h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin: 0; }
.gear-section-count { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }

.gear-list { border-top: 1px solid var(--line); }
.gear-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink-soft);
}
.gear-thumb {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 5px;
  cursor: zoom-in;
  transform-origin: left center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gear-thumb:hover,
.gear-thumb:focus-visible {
  transform: scale(5.5);
  z-index: 20;
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
  outline: none;
}
.gear-row .gear-name { flex: 1; }
.gear-row.no-thumb .gear-name { padding-left: 0; }
.gear-row .gear-qty { font-family: var(--serif); font-style: italic; color: var(--text-faint); font-size: .84rem; white-space: nowrap; }

.gear-empty, .gear-loading {
  padding: 70px 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .gear-toolbar { flex-direction: column; align-items: stretch; }
  .gear-search { max-width: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
