/* vincecoombs.uk — gallery
   Palette: soot #16130F, soot-2 #201C17, paper #EEE7DB, ash #9A9184, rule #2E2923, ember #E8642C
   Type: Big Shoulders Display (titles), Hanken Grotesk (text), IBM Plex Mono (camera data and counters only) */

:root {
  --soot: #22271d;
  --soot-2: #2e3427;
  --paper: #f2f0e7;
  --ash: #b9bbaa;
  --rule: #3a4033;
  --ember: #e8642c;
  --display: "Mona Sans", "Arial Black", Arial, sans-serif;
  --text: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Mona Sans", system-ui, sans-serif;
  --edge: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--soot);
  color: var(--paper);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
::selection { background: var(--ember); color: var(--soot); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 14px; background: var(--paper); color: var(--soot);
  transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* ---------- Top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--edge);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background-color .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.bar--solid {
  background: rgb(22 19 15 / .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--rule);
}
.bar__name {
  font: 800 1.45rem/1 var(--display);
  text-transform: uppercase; letter-spacing: .01em;
  text-decoration: none;
  transition: opacity .4s;
}
.home .bar:not(.bar--solid) .bar__name { opacity: 0; pointer-events: none; }
.bar__nav { display: flex; gap: clamp(16px, 3vw, 32px); font-size: .95rem; }
.bar__nav a { text-decoration: none; color: var(--paper); opacity: .82; white-space: nowrap; }
.bar__name { white-space: nowrap; }
@media (max-width: 480px) {
  .bar { gap: 12px; }
  .bar__name { font-size: 1.2rem; }
  .bar__nav { gap: 14px; font-size: .88rem; }
}
.bar__nav a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: max(560px, 100svh);
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__photo { position: absolute; inset: 0; margin: 0; z-index: -1; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--soot) 0%, rgb(22 19 15 / .72) 26%, rgb(22 19 15 / 0) 58%),
    linear-gradient(to bottom, rgb(22 19 15 / .5), rgb(22 19 15 / 0) 22%);
}
.hero__photo figcaption {
  position: absolute; right: var(--edge); bottom: clamp(20px, 4vh, 40px); z-index: 1;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  font-size: .85rem; color: var(--ash); text-align: right;
}
.hero__photo figcaption a { color: var(--paper); text-decoration: none; font-weight: 500; }
.hero__photo figcaption a:hover { text-decoration: underline; }
.hero__text { padding: 0 var(--edge) clamp(28px, 7vh, 72px); max-width: 100%; }
.hero__name {
  margin: 0 0 .18em -.04em;
  font: 900 clamp(4.4rem, 17vw, 16rem)/.8 var(--display);
  text-transform: uppercase; letter-spacing: -.01em;
}
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.4; max-width: 34ch; }
.hero__count { margin-top: .9em; color: var(--ash); font-size: .95rem; max-width: 52ch; }

@media (max-width: 760px) {
  .hero__photo figcaption { display: none; }
  .hero__photo img { object-position: 52% 40%; }
}

/* One orchestrated moment: the hero photo develops in, the name rises with it. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__photo img { animation: develop 2.4s var(--ease) both; }
  .js .hero__name { animation: rise 1.1s .35s var(--ease) both; }
  .js .hero__lede, .js .hero__count { animation: fade .9s .9s both; }
}
@keyframes develop {
  0%   { filter: brightness(.04) contrast(1.8) sepia(.7); transform: scale(1.08); }
  45%  { filter: brightness(.55) contrast(1.35) sepia(.35); }
  100% { filter: none; transform: none; }
}
@keyframes rise { from { clip-path: inset(100% 0 0 0); transform: translateY(.25em); } to { clip-path: inset(-10% 0 -10% 0); transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Album titles: the photo shows through the letters ---------- */
.albums { padding: clamp(40px, 8vh, 96px) 0 clamp(40px, 10vh, 120px); }
.reel {
  --py: 50%;
  position: relative; display: block;
  padding: clamp(18px, 3.2vw, 44px) var(--edge) clamp(22px, 3.4vw, 46px);
  border-top: 1px solid var(--rule);
  text-decoration: none; color: inherit;
}
.albums .reel:last-child { border-bottom: 1px solid var(--rule); }
.reel__title {
  display: block; margin: 0 0 0 -.03em;
  font: 900 clamp(3.4rem, 12.5vw, 12.5rem)/.84 var(--display);
  text-transform: uppercase; letter-spacing: -.005em;
  overflow-wrap: break-word; hyphens: manual;
}
.reel__fill {
  color: var(--paper);
  background-image: linear-gradient(rgb(255 255 255 / .1), rgb(255 255 255 / .1)), var(--img);
  background-size: cover;
  background-position: 50% var(--py);
  -webkit-background-clip: text;
  background-clip: text;
  transition: color .9s var(--ease);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.reel.is-lit .reel__fill, .reel:focus-visible .reel__fill { color: transparent; }
@media (hover: hover) { .reel:hover .reel__fill { color: transparent; } }
.reel::after {
  content: ""; position: absolute; left: var(--edge); right: var(--edge); bottom: -1px; height: 2px;
  background: var(--ember); transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease);
}
.reel.is-lit::after, .reel:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) { .reel:hover::after { transform: scaleX(1); } }
.reel__meta {
  display: flex; flex-wrap: wrap; gap: 4px 22px;
  margin-top: clamp(10px, 1.4vw, 18px);
  color: var(--ash); font-size: .95rem;
}
.reel__meta span:first-child { color: var(--paper); }

/* ---------- Album page ---------- */
.ahead { padding: clamp(96px, 18vh, 180px) 0 clamp(24px, 4vw, 48px); }
.ahead__back {
  display: inline-block; margin: 0 var(--edge) clamp(14px, 2vw, 22px);
  color: var(--ash); font-size: .95rem; text-decoration: none;
}
.ahead__back::before { content: "\2190\00a0"; }
.ahead__back:hover { color: var(--paper); text-decoration: underline; }
.reel--static { margin: 0; padding-top: 0; border-top: 0; }
.reel--static .reel__title { font-size: clamp(3rem, 11vw, 11rem); }
.ahead__info {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px;
  padding: 0 var(--edge);
}
.ahead__intro { max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.45; }
.ahead__meta { display: flex; gap: 22px; color: var(--ash); font-size: .95rem; }

/* Justified rows, done in CSS: each photo grows in proportion to its shape, so a row shares one height. */
.grid {
  --rowh: 340px;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 6px;
}
@media (max-width: 1100px) { .grid { --rowh: 260px; } }
@media (max-width: 700px)  { .grid { --rowh: 170px; gap: 4px; padding: 0 4px; } }
.ph {
  position: relative; display: block;
  flex: var(--r) var(--r) calc(var(--r) * var(--rowh));
  aspect-ratio: var(--r);
  background: var(--soot-2);
  overflow: hidden;
  cursor: zoom-in;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.js .ph img { opacity: 0; transition: opacity .7s var(--ease); }
.js .ph.is-loaded img { opacity: 1; }
.ph:focus-visible { outline-offset: -2px; z-index: 1; }
/* iPad/iPhone: a long press used to "select" a photo and tint it orange with the selection colour */
.grid { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.grid ::selection { background: transparent; }

/* Album shortcuts: a small floating bar so long albums have a way out */
.dock { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 4px; padding: 5px;
  background: rgb(20 21 17 / .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgb(242 240 231 / .14); border-radius: 999px;
  transform: translate(-50%, 140%); opacity: 0; transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s; pointer-events: none; }
.dock.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.dock__btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 999px; background: transparent; color: #f2f0e7; font: 700 .78rem/1 var(--f-sans, sans-serif); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap; }
.dock__btn:hover, .dock__btn:focus-visible { background: #f2f0e7; color: #141511; }
.dock__btn:first-child { background: #e8642c; color: #141511; }
html.menu-open .dock, .lb[open] ~ .dock { opacity: 0; pointer-events: none; }
@media (max-width: 420px) { .dock__btn { padding: 10px 12px; font-size: .72rem; } }
.grid__end { flex: 999999 1 0; height: 0; }

.next { margin-top: clamp(64px, 12vh, 140px); }
.next__label { padding: 0 var(--edge) 10px; color: var(--ash); font-size: .95rem; }
.next .reel { border-bottom: 1px solid var(--rule); }

.empty { padding: 0 var(--edge) 80px; color: var(--ash); max-width: 60ch; }

/* ---------- Lightbox ---------- */
.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgb(14 12 10 / .97); color: var(--paper);
  overflow: hidden;
}
.lb[open] { display: grid; grid-template-rows: 1fr auto; }
.lb::backdrop { background: rgb(0 0 0 / .6); }
.lb__stage {
  position: relative; min-height: 0;
  display: grid; place-items: center;
  padding: clamp(12px, 3vw, 40px) clamp(12px, 7vw, 96px) 0;
  touch-action: pan-y pinch-zoom;
}
.lb__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; user-select: none; -webkit-user-drag: none;
  transition: opacity .25s;
}
.lb__img.is-swapping { opacity: 0; }
.lb__info {
  display: flex; gap: 24px; align-items: baseline;
  padding: 16px clamp(16px, 7vw, 96px) max(18px, env(safe-area-inset-bottom));
  min-height: 72px;
}
.lb__count { font: 400 .8rem/1.4 var(--mono); color: var(--ash); white-space: nowrap; }
.lb__text { min-width: 0; }
.lb__title { font-weight: 600; font-size: 1.05rem; }
.lb__caption { color: var(--ash); font-size: .95rem; }
.lb__exif { margin-top: 4px; font: 400 .78rem/1.4 var(--mono); color: var(--ash); white-space: pre-wrap; }
.lb__text p:empty { display: none; }
.lb__btn {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0;
  border: 1px solid rgb(238 231 219 / .18); border-radius: 50%;
  background: rgb(22 19 15 / .55); color: var(--paper); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lb__btn:hover { border-color: var(--paper); background: rgb(22 19 15 / .85); }
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb__prev, .lb__next { top: calc(50% - 60px); }
.lb__prev { left: clamp(8px, 2vw, 28px); }
.lb__next { right: clamp(8px, 2vw, 28px); }
.lb__close { top: max(12px, env(safe-area-inset-top)); right: clamp(8px, 2vw, 28px); }
@media (max-width: 700px) {
  .lb__stage { padding: 56px 0 0; }
  .lb__prev, .lb__next { top: auto; bottom: 14px; width: 44px; height: 44px; }
  .lb__prev { left: auto; right: 64px; }
  .lb__next { right: 12px; }
  .lb__info { padding-right: 124px; }
}
::view-transition-old(photo), ::view-transition-new(photo) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* ---------- Footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 48px;
  padding: clamp(48px, 9vh, 96px) var(--edge) max(40px, env(safe-area-inset-bottom));
  color: var(--ash); font-size: .95rem;
}
.foot__line { max-width: 52ch; color: var(--paper); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a { color: var(--paper); }

/* ---------- 404 ---------- */
.nf { min-height: 80svh; padding: 22vh var(--edge) 0; }
.nf__title { margin: 0 0 .2em; font: 900 clamp(4rem, 14vw, 12rem)/.84 var(--display); text-transform: uppercase; }
.nf__text { max-width: 44ch; color: var(--ash); margin-bottom: 1.2em; }
.nf__link { color: var(--ember); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Nov 2026: matched to the home page (Mona Sans + Instrument Serif, garden palette) ---------- */
body { font-weight: 450; }
.hero { background: var(--soot); }
.hero__name { font-size: clamp(3.6rem, 13vw, 12rem); font-stretch: 112%; letter-spacing: -.04em; }
.hero__name .serif { display: block; font-size: .62em; line-height: .9; color: var(--ember); }
.reel__title { font-size: clamp(2.6rem, 8.6vw, 9rem); line-height: .86; letter-spacing: -.04em; font-stretch: 100%; }
.reel--static .reel__title { font-size: clamp(2.6rem, 8vw, 8.5rem); }
.reel::after { height: 3px; }
.reel__meta, .ahead__meta, .hero__count, .ahead__back, .next__label { text-transform: uppercase; font-weight: 700; font-size: .78rem; letter-spacing: .02em; }
.hero__lede, .ahead__intro { font-family: var(--f-serif); font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.2; }
.ph { border-radius: 4px; }
.lb__title { font-weight: 750; text-transform: uppercase; font-size: .95rem; }
.lb__count, .lb__exif { letter-spacing: .02em; }
.nf__title { font-stretch: 112%; letter-spacing: -.04em; }

/* ---------- About and Contact pages ---------- */
.pg { padding: clamp(110px, 18vh, 180px) var(--edge) clamp(60px, 10vh, 120px); }
.pg__head { margin-bottom: clamp(28px, 5vh, 56px); }
.pg__kicker { color: var(--ember); font: 700 .78rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1em; }
.pg__title { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .28em; line-height: .86; }
.pg__title .sans { font: 900 clamp(3.4rem, 11vw, 9.5rem)/.84 var(--display); font-stretch: 112%; letter-spacing: -.04em; text-transform: uppercase; }
.pg__title .serif { font: italic 400 clamp(2.6rem, 7.4vw, 6.4rem)/.9 "Instrument Serif", Georgia, serif; color: var(--ember); }
.pg__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pg__photo { margin: 0; position: sticky; top: 110px; }
.pg__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 24px 60px rgb(0 0 0 / .35); }
.pg__photo figcaption { margin-top: .7em; color: var(--ash); font-size: .85rem; }
.pg__photo figcaption::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .6em; background: var(--ember); vertical-align: .05em; }
.pg__body { max-width: 60ch; display: grid; gap: 1.05em; }
.pg__body p { color: #d9dacd; }
.pg__body .pg__lede { font: 400 clamp(1.45rem, 2.4vw, 2rem)/1.18 "Instrument Serif", Georgia, serif; color: var(--paper); }
.pg__facts { margin: .6em 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.pg__facts div { padding: .9em 0; border-bottom: 1px solid var(--rule); }
.pg__facts dt { color: var(--ash); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.pg__facts dd { margin: .2em 0 0; font-weight: 700; }
.pg__quote { margin: .8em 0 0; padding-left: 1em; border-left: 2px solid var(--ember); }
.pg__quote p { font: italic 400 clamp(1.4rem, 2.2vw, 1.8rem)/1.2 "Instrument Serif", Georgia, serif; color: var(--paper); }
.pg__quote cite { display: block; margin-top: .4em; color: var(--ember); font: 700 .78rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; font-style: normal; }
.pg__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: .8em; }
.pg__link { color: var(--paper); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: .3em; }
.pg__link:hover { color: var(--ember); }

.cf { display: grid; gap: 22px; margin-top: .6em; }
.cf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf__field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cf__field label, .cf__field legend { color: var(--ash); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 0; }
.cf__field legend { margin-bottom: 10px; }
.cf input[type="text"], .cf input[type="email"], .cf textarea {
  width: 100%; padding: 12px 0; background: transparent; color: var(--paper); font: inherit;
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; transition: border-color .2s;
}
.cf textarea { resize: vertical; min-height: 140px; }
.cf input:focus, .cf textarea:focus { outline: none; border-bottom-color: var(--ember); }
.cf__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf__chips input { position: absolute; opacity: 0; pointer-events: none; }
.cf__chips label { cursor: pointer; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 999px; color: var(--paper); text-transform: none; letter-spacing: 0; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.cf__chips label:hover { border-color: var(--ash); }
.cf__chips input:checked + label { background: var(--paper); color: var(--soot); border-color: var(--paper); }
.cf__chips input:focus-visible + label { outline: 2px solid var(--ember); outline-offset: 2px; }
.cf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf__send { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cf__send button { cursor: pointer; border: 0; font: inherit; }
.cf__send button:disabled { opacity: .6; cursor: wait; }
.cf__status { font-size: .95rem; }
.cf__status.ok { color: #9fd39f; }
.cf__status.err { color: var(--ember); }
@media (max-width: 820px) {
  .pg__grid { grid-template-columns: 1fr; }
  .pg__photo { position: static; }
  .cf__row { grid-template-columns: 1fr; }
}
.cf__note { min-height: 1.2em; margin-top: 2px; font-size: .88rem; color: var(--ember); }
.cf__note:empty { min-height: 0; }
.cf__fix { margin-left: .3em; padding: 3px 10px; border: 1px solid var(--ember); border-radius: 999px; background: none; color: var(--paper); font: inherit; font-size: .82rem; cursor: pointer; }
.cf__fix:hover { background: var(--ember); color: var(--soot); }
.cf input[aria-invalid="true"] { border-bottom-color: var(--ember); }

/* Menu bar: solid once the page scrolls (album pages, album list, About, Contact) */
.nav { transition: background-color .3s, box-shadow .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s; }
.nav.is-solid { background: rgb(34 39 29 / .9); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 rgb(242 240 231 / .08); pointer-events: auto; }
