/* =========================================================
   Nischay Gupta — Photographer
   Palette: paper / ink / darkroom safelight red
   ========================================================= */
:root {
  --paper: #EEEBE4;
  --paper-2: #E4E0D7;
  --ink: #151513;
  --ink-2: #3a3833;
  --muted: #8a857b;
  --line: rgba(21,21,19,.14);
  --safelight: #D23A1E;

  /* One font for the whole site: Cochin (built into Apple devices); Cormorant Garamond is the look-alike for Windows/Android */
  --font: Cochin, "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif: var(--font);
  --sans: var(--font);
  --mono: var(--font);

  --gutter: clamp(16px, 2.4vw, 36px);
  --ease: cubic-bezier(.22,1,.36,1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
::selection { background: var(--safelight); color: var(--paper); }
:focus-visible { outline: 2px solid var(--safelight); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.tag { color: var(--muted); }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
section[id], footer[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.show-touch { display: none; }
@media (max-width: 760px) { .hide-sm { display: none !important; } }
@media (hover: none) { .hide-touch { display: none; } .show-touch { display: inline; } }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-3%) }
  60% { transform: translate(-2%,-1%) } 80% { transform: translate(3%,3%) } 100% { transform: translate(0,0) }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; padding: var(--gutter);
  transition: clip-path 1.1s var(--ease);
  clip-path: inset(0 0 0 0);
}
html:not(.js) .loader { display: none; }
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader-frame { margin-top: auto; display: flex; align-items: flex-start; line-height: .8; }
.loader-count { font: 400 clamp(120px, 28vw, 420px)/.8 var(--serif); font-variant-numeric: tabular-nums; color: var(--safelight); }
.loader-pct { font: italic 400 clamp(40px, 7vw, 100px)/1 var(--serif); margin-left: .1em; }
.loader-meta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 24px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.loader-bar { flex: 1; height: 1px; background: rgba(238,235,228,.2); position: relative; overflow: hidden; }
.loader-bar i { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--safelight);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .2s;
  display: grid; place-items: center; opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor.has-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor-label { font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--paper); opacity: 0; transition: opacity .2s; }
.cursor.has-label .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
  color: var(--paper); mix-blend-mode: difference;
}
.brand { font: 400 22px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand sup { font: 400 10px var(--mono); margin-left: 2px; vertical-align: top; }
.nav-links { display: flex; align-items: center; gap: 36px; font: 400 18px/1 var(--sans); letter-spacing: .01em; }
/* Monochrome sits in the middle of the menu, larger than the rest */
.nav-links .nav-mono { font: 400 30px/1 var(--serif); letter-spacing: .01em; padding: 0 10px; }
.nav-links .nav-mono[aria-current="page"]::after { transform: scaleX(1); }
.menu nav a.nav-mono { font-style: italic; }
.nav-meta { white-space: nowrap; }
@media (max-width: 1100px) { .nav-links { gap: 24px; font-size: 16px; } .nav-links .nav-mono { font-size: 26px; padding: 0 4px; } }
.nav-links a, .contact-row a, .menu-foot a { position: relative; }
.nav-links a::after, .contact-row a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav-links a:hover::after, .contact-row a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-meta { justify-self: end; display: flex; gap: 18px; font-variant-numeric: tabular-nums; }
.frame-counter b { font-weight: 500; }
.menu-btn { display: none; justify-self: end; }

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto auto; }
  .nav-links { display: none; }
  .nav-meta > :not(.dr-toggle) { display: none; }
  .menu-btn { display: block; }
}

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
}
.menu[hidden] { display: none; }
.menu-close { align-self: flex-end; height: 24px; }
.menu nav { margin: auto 0; display: flex; flex-direction: column; }
.menu nav a { font: 400 clamp(56px, 18vw, 96px)/1 var(--serif); border-bottom: 1px solid rgba(238,235,228,.15); padding: 10px 0; }
.menu nav a:hover { color: var(--safelight); font-style: italic; }
.menu-foot { display: flex; gap: 24px; }

/* ---------- reveal lines ---------- */
.line { display: block; overflow: hidden; }
.line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.is-in .line > span, html:not(.js) .line > span { transform: none; }
.line:nth-child(2) > span { transition-delay: .08s; }

/* ========================================================
   HERO — infinite draggable contact sheet
   ======================================================== */
.hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  background: var(--paper-2); cursor: grab; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.hero.is-dragging { cursor: grabbing; }
.plane { position: absolute; inset: 0; }
.tile {
  position: absolute; left: 0; top: 0; will-change: transform;
  display: flex; flex-direction: column; gap: 6px;
}
.tile-img { overflow: hidden; background: var(--paper); }
.tile img {
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  transform: scale(1.08); opacity: 0; filter: blur(12px) brightness(1.2);
  transition: opacity .8s ease, transform 1.2s var(--ease), filter 1.2s ease;
}
.tile img.is-loaded { opacity: 1; transform: scale(1); filter: none; }
.tile-cap { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-2); font: 400 9.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; }
.tile-cap span:last-child { color: var(--muted); }
.hero.is-dragging .tile img { filter: grayscale(1) contrast(1.05); }

.hero-copy {
  position: absolute; left: var(--gutter); bottom: calc(var(--gutter) + 28px); z-index: 2; pointer-events: none;
  color: var(--paper); mix-blend-mode: difference;
}
.hero-copy .tag { color: inherit; opacity: .8; margin-bottom: 14px; }
.hero-title { font: 400 clamp(54px, 10.5vw, 188px)/.88 var(--serif); letter-spacing: -.025em; }
.hero-title em { font-style: italic; }
.hero-hint, .hero-scroll {
  position: absolute; z-index: 2; bottom: var(--gutter); pointer-events: none;
  color: var(--paper); mix-blend-mode: difference;
}
.hero-hint { left: var(--gutter); }
.hero-scroll { right: var(--gutter); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ========================================================
   INTRO
   ======================================================== */
.intro { padding-top: clamp(96px, 16vw, 220px); padding-bottom: clamp(80px, 12vw, 160px); }
.intro .tag { margin-bottom: 28px; }
/* "About the work" — centred storyteller block */
.intro-story { --story: var(--font); max-width: 780px; margin: 0 auto; text-align: center; }
.intro-title { font: 400 clamp(32px, 4.6vw, 64px)/1.15 var(--story); letter-spacing: -.005em; margin: 0 0 clamp(32px, 4vw, 52px); }
.intro-title em { font-style: italic; }
.intro-body { text-align: left; font: 400 clamp(16px, 1.25vw, 18px)/2.15 var(--story); color: var(--ink-2); }
.intro-body p { margin: 0 0 1.6em; }
.intro-body p:last-child { margin-bottom: 0; }
.intro-body em { font-style: italic; color: var(--ink); }
.intro-story .reveal.intro-body { transition-delay: .12s; }
.reveal-words .w { display: inline-block; opacity: .12; transition: opacity .6s ease; }
.reveal-words .w.on { opacity: 1; }
html:not(.js) .reveal-words .w { opacity: 1; }

/* ========================================================
   INDEX
   ======================================================== */
/* ========================================================
   SEE MY WORK — two tall photos (Wedding / Fashion)
   ======================================================== */
.pick { padding-bottom: clamp(72px, 9vw, 130px); }
.pick-title { font: 400 clamp(32px, 4.6vw, 64px)/1.15 var(--serif); text-align: center; margin: 0 0 clamp(36px, 5vw, 64px); }
.pick-title em { font-style: italic; }
/* cards move right → left in an endless loop; hover pauses */
.pick-marquee { overflow: hidden; margin: 0 calc(var(--gutter) * -1); padding: 0 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pick-track { display: flex; width: max-content; gap: clamp(16px, 2.4vw, 36px); padding-left: clamp(16px, 2.4vw, 36px); animation: pick-run 38s linear infinite; }
.pick-marquee:hover .pick-track, .pick-marquee:focus-within .pick-track { animation-play-state: paused; }
@keyframes pick-run { to { transform: translateX(-50%); } }
.pick-track .pick-card { width: clamp(220px, 26vw, 380px); flex: none; }
@media (prefers-reduced-motion: reduce) {
  .pick-marquee { overflow-x: auto; }
  .pick-track { animation: none; }
  .pick-track .pick-card[aria-hidden="true"] { display: none; }
}
.pick-card { display: flex; flex-direction: column; gap: 16px; color: inherit; text-decoration: none; }
.pick-img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.pick-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.4s var(--ease), filter .6s ease; }
.pick-card:hover .pick-img img, .pick-card:focus-visible .pick-img img { transform: scale(1.045); }
.pick-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; transition: border-color .4s; }
.pick-name { font: 400 clamp(26px, 3.4vw, 48px)/1 var(--serif); }
.pick-count { color: var(--muted); white-space: nowrap; }
.pick-card.is-active .pick-label { border-bottom-color: var(--ink); }
.pick-card.is-active .pick-count { color: var(--safelight); }
@media (max-width: 560px) { .pick-label { flex-direction: column; gap: 6px; } }
/* Work page (work.html?s=wedding|fashion) */
.work-index { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 110px)); min-height: 70svh; }
.work-switch { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 52px); color: var(--muted); }
.work-switch a { color: inherit; text-decoration: none; transition: color .3s; }
.work-switch a:hover { color: var(--ink); }
.work-switch .is-current { color: var(--ink); border-bottom: 1px solid currentColor; }
.work-switch .sep { margin: 0 10px; opacity: .6; }
.works-empty { font: 400 clamp(20px, 2.2vw, 28px)/1.4 var(--serif); color: var(--muted); padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); margin: 0; }

.index { padding-bottom: clamp(80px, 10vw, 140px); position: relative; }
.index-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 36px; }
.section-title { font: 400 clamp(64px, 12vw, 200px)/.85 var(--serif); letter-spacing: -.03em; }
.section-title sup { font-size: 12px; vertical-align: top; color: var(--muted); margin-left: 6px; position: relative; top: .8em; }
.index-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: flex-end; }
.filters button { color: var(--muted); transition: color .2s; }
.filters button:hover { color: var(--ink); }
.filters button.is-active { color: var(--ink); }
.filters button.is-active::before { content: '●'; color: var(--safelight); margin-right: 5px; font-size: 8px; vertical-align: 2px; }
.filters sup { font-size: 8px; margin-left: 2px; }
.view-toggle { display: flex; gap: 8px; color: var(--muted); }
.view-toggle button.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .index-controls { align-items: flex-start; width: 100%; }
  .filters { justify-content: flex-start; }
}

.list-head, .work-row {
  display: grid; grid-template-columns: 64px 1.6fr 1fr 1fr 64px; gap: 16px; align-items: baseline;
}
.list-head { color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.list-head span:last-child, .work-row .w-year { text-align: right; }
.works--grid ~ .preview { display: none; }
body.view-grid .list-head { display: none; }

.work { border-bottom: 1px solid var(--line); }
.work[hidden] { display: none; }
.work-row { padding: 22px 0 18px; position: relative; transition: color .3s; }
.w-no { font: 400 11px var(--mono); color: var(--muted); }
.w-title { font: 400 clamp(28px, 3.6vw, 56px)/1 var(--serif); letter-spacing: -.015em; transition: transform .6s var(--ease); }
.w-client, .w-cat, .w-year { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.w-cat { color: var(--muted); }
.w-thumb { display: none; }
@media (hover: hover) {
  .works--list:hover .work-row { color: rgba(21,21,19,.28); }
  .works--list .work-row:hover { color: var(--ink); }
  .works--list .work-row:hover .w-title { transform: translateX(14px); font-style: italic; }
  .works--list .work-row:hover .w-no { color: var(--safelight); }
}
@media (max-width: 760px) {
  .list-head, .work-row { grid-template-columns: 36px 1fr 48px; }
  .w-client, .w-cat { display: none; }
  .works--list .w-thumb { display: block; grid-column: 2 / -1; margin-top: 12px; aspect-ratio: 4/3; overflow: hidden; }
  .works--list .w-thumb img { width: 100%; height: 100%; object-fit: cover; }
}

/* cursor-follow preview */
.preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: clamp(220px, 22vw, 340px); aspect-ratio: 4/5; overflow: hidden;
  opacity: 0; transition: opacity .35s ease;
}
.preview.is-on { opacity: 1; }
.preview-inner { position: absolute; inset: 0; overflow: hidden; transform: scale(.82); transition: transform .6s var(--ease); }
.preview.is-on .preview-inner { transform: scale(1); }
.preview-inner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0); transition: clip-path .6s var(--ease);
}
.preview-inner img.is-front { clip-path: inset(0 0 0 0); }
@media (hover: none) { .preview { display: none; } }

/* grid view */
.works--grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 64px) var(--gutter);
  padding-top: 8px;
}
.works--grid .work { border: 0; }
.works--grid .work-row { display: flex; flex-direction: column; gap: 10px; padding: 0; }
.works--grid .w-thumb { display: block; order: -1; overflow: hidden; aspect-ratio: 4/5; background: var(--paper-2); }
.works--grid .w-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.works--grid .work-row:hover .w-thumb img { transform: scale(1.05); }
.works--grid .w-title { font-size: clamp(24px, 2.4vw, 36px); }
.works--grid .w-no { order: -2; }
.works--grid .w-client, .works--grid .w-year { display: inline; }
.works--grid .w-cat { display: none; }
.works--grid .work:nth-child(6n+1) { grid-column: 1 / span 5; }
.works--grid .work:nth-child(6n+2) { grid-column: 7 / span 4; margin-top: 18vw; }
.works--grid .work:nth-child(6n+3) { grid-column: 2 / span 4; }
.works--grid .work:nth-child(6n+4) { grid-column: 8 / span 5; margin-top: 8vw; }
.works--grid .work:nth-child(6n+5) { grid-column: 1 / span 6; }
.works--grid .work:nth-child(6n)   { grid-column: 8 / span 4; margin-top: 12vw; }
.works--grid.is-filtered .work { grid-column: span 4 !important; margin-top: 0 !important; }
@media (max-width: 760px) {
  .works--grid { grid-template-columns: 1fr 1fr; }
  .works--grid .work, .works--grid.is-filtered .work { grid-column: span 1 !important; margin-top: 0 !important; }
  .works--grid .work:nth-child(even) { margin-top: 48px !important; }
}

@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ========================================================
   INFO
   ======================================================== */
.info { padding-top: clamp(24px, 4vw, 60px); padding-bottom: clamp(96px, 14vw, 200px); }
.info > .tag { margin-bottom: 36px; }
.info-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.info-portrait { position: sticky; top: calc(var(--nav-h) + 16px); }
.info-portrait img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(1); transition: filter .8s; }
.info-portrait:hover img { filter: none; }
.info-portrait figcaption { margin-top: 10px; color: var(--muted); }
.info-lead { font: 400 clamp(32px, 4vw, 60px)/1.02 var(--serif); letter-spacing: -.015em; margin-bottom: 32px; }
.info-bio p { max-width: 52ch; color: var(--ink-2); margin-bottom: 1em; font-size: 17px; }
.info-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; border-top: 1px solid var(--ink); padding-top: 18px; }
.info-cols h3 { color: var(--muted); margin-bottom: 14px; font-weight: 400; }
.info-cols li { font-size: 15px; padding: 5px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-portrait { position: static; max-width: 420px; }
  .info-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .info-cols { grid-template-columns: 1fr; } }

/* ========================================================
   CONTACT
   ======================================================== */
.contact { background: var(--ink); color: var(--paper); padding-top: clamp(80px, 12vw, 160px); overflow: hidden; }
.contact .tag { color: rgba(238,235,228,.5); margin-bottom: 24px; }
.contact-mail {
  font: 400 clamp(26px, 3.2vw, 46px)/1.05 var(--serif); letter-spacing: -.01em; text-align: left;
  overflow-wrap: anywhere; transition: color .3s; margin-top: 10px;
  border-bottom: 1px solid rgba(238,235,228,.25); padding-bottom: 4px;
}

/* ---------- enquiry form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-title { font: 400 clamp(64px, 9vw, 150px)/.86 var(--serif); letter-spacing: -.035em; margin-bottom: 28px; }
.contact-title em { color: var(--safelight); }
.contact-lead { color: rgba(238,235,228,.7); font-size: 17px; max-width: 38ch; }
.enquiry-wrap { position: relative; }
.enquiry { display: flex; flex-direction: column; gap: 26px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eq-chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eq-chips legend { color: rgba(238,235,228,.5); margin-bottom: 14px; padding: 0; }
.eq-chips label { position: relative; cursor: pointer; }
.eq-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.eq-chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(238,235,228,.25);
  font-size: 14px; transition: background .25s, color .25s, border-color .25s;
}
.eq-chips label:hover span { border-color: var(--paper); }
.eq-chips input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.eq-chips input:focus-visible + span { outline: 2px solid var(--safelight); outline-offset: 2px; }
.eq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 560px) { .eq-row { grid-template-columns: 1fr; } }
.eq-field { display: flex; flex-direction: column; gap: 8px; }
.eq-field > span { color: rgba(238,235,228,.5); }
.eq-field input, .eq-field textarea, .eq-field select {
  font: 400 22px/1.3 var(--serif); color: var(--paper); background: transparent;
  border: 0; border-bottom: 1px solid rgba(238,235,228,.25); border-radius: 0; padding: 6px 0 10px;
  transition: border-color .3s; width: 100%; -webkit-appearance: none; appearance: none;
}
.eq-field select { cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23EEEBE4' stroke-width='1.3'/%3E%3C/svg%3E") right 4px center no-repeat; }
.eq-field select option { color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; }
.eq-field textarea { resize: vertical; min-height: 110px; }
.eq-field input::placeholder, .eq-field textarea::placeholder { color: rgba(238,235,228,.28); }
.eq-field input:focus, .eq-field textarea:focus, .eq-field select:focus { outline: none; border-bottom-color: var(--safelight); }
.eq-field.is-invalid input, .eq-field.is-invalid textarea { border-bottom-color: var(--safelight); }
.eq-field.is-invalid > span::after { content: ' — please fill this in'; color: var(--safelight); text-transform: none; letter-spacing: 0; }
.eq-field.is-invalid.bad-email > span::after { content: ' — that email looks off'; }
.eq-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.eq-send {
  display: inline-flex; align-items: center; gap: 14px; height: 58px; padding: 0 30px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font: 500 15px var(--sans); transition: background .3s, color .3s, transform .2s;
}
.eq-send i { font-style: normal; transition: transform .4s var(--ease); }
.eq-send:hover { background: var(--safelight); color: var(--paper); }
.eq-send:hover i { transform: translateX(5px); }
.eq-send[disabled] { opacity: .6; pointer-events: none; }
.eq-status { color: rgba(238,235,228,.6); }
.eq-status.is-error { color: var(--safelight); text-transform: none; letter-spacing: 0; font-size: 13px; }
.eq-done { padding-top: 10px; }
.eq-done:focus { outline: none; }
.eq-done-title { font: 400 clamp(44px, 6vw, 88px)/.92 var(--serif); letter-spacing: -.03em; margin-bottom: 18px; }
.eq-done-title em { color: var(--safelight); }
.eq-done:not([hidden]) { animation: rise .9s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ========================================================
   FILM-WIPE PAGE TRANSITION
   ======================================================== */
html.is-arriving::after { content: ''; position: fixed; inset: 0; z-index: 150; background: var(--ink); }
.wipe {
  position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; text-align: center; padding: 24px;
  transform: translateY(100%); visibility: hidden; pointer-events: none;
}
.wipe::before, .wipe::after {
  content: ''; position: absolute; left: 0; right: 0; height: 12px;
  background: radial-gradient(circle at 50% 50%, var(--paper) 0 3.5px, transparent 4px) 0 0 / 22px 12px repeat-x; opacity: .85;
}
.wipe::before { top: 14px; } .wipe::after { bottom: 14px; }
.wipe-bg { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; display: none; }
.wipe-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(12,12,11,.5), rgba(12,12,11,.72)); }
.wipe.has-cover .wipe-bg { display: block; }
.wipe.has-cover { color: #F3F0E9; }
.wipe.has-cover::before, .wipe.has-cover::after, .wipe.has-cover .wipe-kicker { display: none; }
.wipe.has-cover .wipe-title { text-shadow: 0 2px 40px rgba(0,0,0,.45); }
.wipe-kicker { display: block; color: var(--safelight); margin-bottom: 18px; }
.wipe-title { display: block; font: 400 clamp(52px, 10vw, 160px)/.9 var(--serif); letter-spacing: -.035em; }
.wipe-in > * { transform: translateY(30px); opacity: 0; transition: transform .7s var(--ease) .15s, opacity .5s ease .15s; }
.wipe.is-enter { visibility: visible; transform: none; pointer-events: auto; transition: transform .7s cubic-bezier(.7,0,.2,1); }
.wipe.is-enter .wipe-in > *, .wipe.is-cover .wipe-in > * { transform: none; opacity: 1; }
.wipe.is-cover { visibility: visible; transform: none; pointer-events: auto; }
.wipe.is-cover.is-leave { transform: translateY(-100%); transition: transform .85s cubic-bezier(.7,0,.2,1); pointer-events: none; }
.wipe.is-leave .wipe-in > * { transform: translateY(-30px); opacity: 0; transition: transform .6s var(--ease), opacity .4s ease; }

/* ========================================================
   "DEVELOPING" IMAGE LOAD
   ======================================================== */
.dev-box { background-size: cover; background-position: center; }
.dev:not(.is-dev) { opacity: 0; filter: blur(14px) grayscale(.7) brightness(1.25); transform: scale(1.04); }
.dev.is-dev { transition: opacity .9s ease, filter 1.5s ease, transform 1.3s var(--ease) !important; }
.p-cover img.dev.is-dev { transition: opacity .9s ease, filter 1.5s ease !important; }

/* smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.contact-mail:hover { color: var(--safelight); font-style: italic; }
.copy-note { min-height: 16px; margin-top: 12px; color: var(--safelight); }
.contact-row { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 56px; padding-top: 18px; border-top: 1px solid rgba(238,235,228,.18); color: rgba(238,235,228,.7); }
.contact-row span { margin-left: auto; }
@media (max-width: 560px) { .contact-row span { margin-left: 0; width: 100%; } }
.giant {
  font: italic 400 30vw/.74 var(--serif); letter-spacing: -.05em; text-align: center;
  color: var(--paper); margin-top: 40px; transform: translateY(12%); white-space: nowrap;
}

/* ========================================================
   PROJECT PAGE
   ======================================================== */
.project-page .nav { color: var(--paper); }
.back-btn { display: none; }
@media (max-width: 760px) { .back-btn { display: block; } }
.p-hero { padding-top: calc(var(--nav-h) + clamp(48px, 10vw, 140px)); padding-bottom: clamp(32px, 5vw, 64px); }
.back-link { display: inline-block; margin-bottom: 28px; transition: color .2s; }
.back-link:hover { color: var(--safelight); }
.p-title { font: 400 clamp(64px, 14vw, 240px)/.86 var(--serif); letter-spacing: -.035em; }
.p-meta {
  display: grid; grid-template-columns: repeat(4, 1fr) 2fr; gap: 16px; margin-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--ink); padding-top: 14px;
}
.p-meta dt { color: var(--muted); margin-bottom: 4px; }
.p-meta dd { color: var(--ink); }
@media (max-width: 760px) { .p-meta { grid-template-columns: 1fr 1fr; } .p-meta-wide { grid-column: 1 / -1; } }

.p-cover { overflow: hidden; height: 92svh; margin: 0 var(--gutter); }
.p-cover img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
@media (max-width: 760px) { .p-cover { height: 70svh; } }

.p-story { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(64px, 10vw, 140px); }
.p-blurb { font: 400 clamp(26px, 3.2vw, 48px)/1.12 var(--serif); letter-spacing: -.01em; max-width: 26ch; }
@media (max-width: 760px) { .p-story { grid-template-columns: 1fr; } }

.p-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 7vw, 120px) var(--gutter); padding-bottom: clamp(80px, 12vw, 160px); }
.g-item { cursor: zoom-in; }
.g-item .g-img { overflow: hidden; background: var(--paper-2); }
.g-item img { width: 100%; transition: transform 1.4s var(--ease); }
.g-item:hover img { transform: scale(1.03); }
.g-item figcaption { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); }
.g-item.portrait:nth-of-type(4n+1) { grid-column: 1 / span 5; }
.g-item.portrait:nth-of-type(4n+2) { grid-column: 7 / span 6; margin-top: 14vw; }
.g-item.portrait:nth-of-type(4n+3) { grid-column: 3 / span 5; }
.g-item.portrait:nth-of-type(4n)   { grid-column: 8 / span 4; margin-top: 8vw; }
.g-item.landscape { grid-column: 1 / -1; }
.g-item.landscape:nth-of-type(odd) { grid-column: 2 / span 10; }
.g-item.square:nth-of-type(odd) { grid-column: 1 / span 6; }
.g-item.square:nth-of-type(even) { grid-column: 7 / span 6; margin-top: 10vw; }
@media (max-width: 760px) {
  .p-gallery { grid-template-columns: 1fr; }
  .p-gallery .g-item { grid-column: 1 / -1 !important; margin-top: 0 !important; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

.p-next {
  display: block; position: relative; background: var(--ink); color: var(--paper);
  padding: clamp(64px, 10vw, 140px) var(--gutter); overflow: hidden;
}
.p-next .tag { color: rgba(238,235,228,.6); }
.p-next-title { display: block; position: relative; z-index: 2; margin-top: 16px; font: 400 clamp(56px, 12vw, 200px)/.9 var(--serif); letter-spacing: -.03em; transition: transform .8s var(--ease); }
.p-next:hover .p-next-title { transform: translateX(2vw); font-style: italic; }
.p-next-img { position: absolute; right: var(--gutter); top: 50%; width: clamp(160px, 22vw, 340px); aspect-ratio: 4/5; transform: translateY(-50%) rotate(4deg); overflow: hidden; opacity: .55; transition: opacity .6s, transform .8s var(--ease); }
.p-next:hover .p-next-img { opacity: 1; transform: translateY(-50%) rotate(0); }
.p-next-img img { width: 100%; height: 100%; object-fit: cover; }

.mini-foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; background: var(--ink); color: rgba(238,235,228,.6); border-top: 1px solid rgba(238,235,228,.15); }
.mini-foot a:hover { color: var(--safelight); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(21,21,19,.97); color: var(--paper);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  padding: 56px 0 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; justify-content: center; min-height: 0; }
.lightbox img { max-height: calc(100svh - 130px); max-width: 100%; width: auto; object-fit: contain; }
.lightbox figcaption { color: rgba(238,235,228,.6); }
.lb-close { position: absolute; top: 20px; right: var(--gutter); }
.lb-prev, .lb-next { font-size: 22px; height: 100%; }
.lb-prev:hover, .lb-next:hover, .lb-close:hover { color: var(--safelight); }
@media (max-width: 560px) { .lightbox { grid-template-columns: 40px 1fr 40px; } }

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

/* ========================================================
   DARKROOM MODE
   A calm, warm-black room. Photos keep their true colour;
   the red "safelight" is used only as an accent and as a
   faint lamp glow from above.
   ======================================================== */
.dr-toggle { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.dr-toggle i {
  width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.dr-toggle:hover i { background: currentColor; }

html.darkroom {
  --paper: #0D0B0A;          /* page */
  --paper-2: #161311;        /* image placeholders */
  --ink: #ECE4DC;            /* text */
  --ink-2: #BDB3AA;
  --muted: #877C74;
  --line: rgba(236,228,220,.12);
  --safelight: #E5372A;      /* deep darkroom red — accents only */
  --night: #070606;          /* darkest sections */
  color-scheme: dark;
}

/* faint safelight glow hanging over the top of the page */
body::after {
  content: ''; position: fixed; left: 0; right: 0; top: 0; height: 70vh; z-index: 45; pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 50% -12%, rgba(229,55,42,.16), rgba(229,55,42,.05) 45%, transparent 75%);
  opacity: 0; transition: opacity .8s ease;
}
html.darkroom body::after { opacity: 1; animation: lamp 7s ease-in-out infinite; }
@keyframes lamp { 50% { opacity: .7; } }

/* nav: plain colours (no blend) so the red lamp dot stays red */
html.darkroom .nav { mix-blend-mode: normal; color: var(--ink); }
html.darkroom .nav::before {
  content: ''; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(13,11,10,.85), transparent);
}
html.darkroom .dr-toggle i { background: var(--safelight); border-color: var(--safelight); box-shadow: 0 0 10px 2px rgba(229,55,42,.6); }

/* hero text uses a difference blend: white keeps it bright on black and inverted over photos */
html.darkroom :is(.hero-copy, .hero-hint, .hero-scroll) { color: #fff; }

/* dark-in-normal-mode sections become the deepest black */
html.darkroom :is(.loader, .menu, .contact, .wipe, .p-next, .mini-foot, .lightbox) { background: var(--night); color: var(--ink); }
html.darkroom.is-arriving::after { background: var(--night); }
html.darkroom .wipe::before, html.darkroom .wipe::after {
  background-image: radial-gradient(circle at 50% 50%, rgba(236,228,220,.55) 0 3.5px, transparent 4px);
}
html.darkroom .contact { border-top: 1px solid var(--line); }
html.darkroom .loader-bar i { background: var(--safelight); }
html.darkroom .cursor-label { color: #fff; }
html.darkroom .giant { color: #1C1816; }
html.darkroom .works--list:hover .work-row { color: rgba(236,228,220,.22); }
html.darkroom .works--list .work-row:hover { color: var(--ink); }
html.darkroom .works--list .work-row:hover .w-title { color: var(--ink); }

/* enquiry form */
html.darkroom :is(.eq-field input, .eq-field textarea, .eq-field select) { color: var(--ink); }
html.darkroom .eq-chips input:checked + span { background: var(--safelight); color: #fff; border-color: var(--safelight); }
html.darkroom .eq-chips label:hover span { border-color: var(--ink); }
html.darkroom .eq-send { background: var(--ink); color: var(--night); }
html.darkroom .eq-send:hover { background: var(--safelight); color: #fff; }

/* smooth cross-fade while switching */
html.dr-anim, html.dr-anim body, html.dr-anim :is(section, footer, header, a, p, h1, h2, h3, span, li, button, .work, .work-row) {
  transition: background-color .7s ease, color .7s ease, border-color .7s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  html.darkroom body::after { animation: none; }
}

/* ========================================================
   MONOCHROME — black & white gallery page
   ======================================================== */
.mono-head { padding-top: calc(var(--nav-h) + clamp(48px, 9vw, 130px)); padding-bottom: clamp(36px, 5vw, 70px); text-align: center; }
.mono-title { font: 400 clamp(56px, 11vw, 180px)/.9 var(--serif); letter-spacing: -.02em; margin: 0; }
.mono-title sup { font-size: 12px; vertical-align: top; color: var(--muted); margin-left: 6px; position: relative; top: .8em; letter-spacing: .04em; }
.mono-sub { margin: 18px 0 0; color: var(--muted); font: italic 400 clamp(17px, 1.4vw, 21px)/1.4 var(--serif); }
.mono-grid { columns: 3 300px; column-gap: clamp(12px, 1.8vw, 26px); padding-bottom: clamp(80px, 10vw, 140px); }
.m-item { break-inside: avoid; margin: 0 0 clamp(12px, 1.8vw, 26px); cursor: zoom-in; outline-offset: 4px; }
.m-img { overflow: hidden; background: var(--paper-2); }
.m-img img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.06); transition: transform 1.2s var(--ease); }
.m-item:hover .m-img img { transform: scale(1.035); }
/* keep photos black & white while they develop in */
.m-img img.dev:not(.is-dev) { filter: grayscale(1) blur(14px) brightness(1.25); }
.m-img img.dev.is-dev { filter: grayscale(1) contrast(1.06); }
.m-img.dev-box { filter: grayscale(1); }
.mono-lb img { filter: grayscale(1) contrast(1.06); }
.mono-empty { text-align: center; border-top: 0; }

/* Monochrome transition: its photo is always shown in black & white */
.wipe.is-mono .wipe-bg { filter: grayscale(1) contrast(1.05); }

/* ========================================================
   ABOUT + ENQUIRE pages, and the home page's closing footer
   ======================================================== */
.about-page .info.page-top { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 120px)); }
.enquire-page .contact.page-top { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 120px)); min-height: 100svh; }
.enquire-page .mini-foot { display: none; }
.contact--home .home-cta { padding: clamp(80px, 12vw, 180px) 0 clamp(48px, 7vw, 100px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.home-cta-link { display: inline-block; text-decoration: none; color: inherit; transition: opacity .3s; }
.home-cta-link span { display: inline-block; transition: transform .5s var(--ease); }
.home-cta-link:hover span { transform: translateX(14px); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ========================================================
   SITE FOOTER — a thin line and a small Instagram icon
   ======================================================== */
.site-foot { display: flex; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 26px; margin-top: clamp(40px, 6vw, 80px); color: var(--ink); }
.contact .site-foot { border-top-color: rgba(238,235,228,.18); color: var(--paper); margin-top: clamp(48px, 7vw, 96px); }
html.darkroom .contact .site-foot { color: var(--ink); }
.insta-link { display: inline-flex; width: 22px; height: 22px; color: inherit; opacity: .8; transition: opacity .3s, transform .4s var(--ease); }
.insta-link:hover, .insta-link:focus-visible { opacity: 1; transform: translateY(-2px); }
.insta-link svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.insta-link svg .dot { fill: currentColor; stroke: none; }

/* Opening a page directly (no transition): skip the loader if already seen, and fade the page in softly */
html.intro-seen .loader { display: none; }
@keyframes page-soft-in { from { opacity: 0; } to { opacity: 1; } }
html.soft-in body { animation: page-soft-in .55s ease both; }
@media (prefers-reduced-motion: reduce) { html.soft-in body { animation: none; } }

/* Short thin line above "Hi, I'm …" and "See my work" to separate the sections */
.intro-title::before, .pick-title::before {
  content: ''; display: block; width: clamp(140px, 16vw, 240px); height: 1px; background: currentColor; opacity: .35;
  margin: 0 auto clamp(28px, 3.5vw, 44px);
}

/* opening burst: tiles fade/scale in via JS; keep them above the copy until settled */
.tile { will-change: transform, opacity; }

/* keep hero text hidden behind the pile until the burst is over */
.hero.is-bursting .hero-hint, .hero.is-bursting .hero-scroll { opacity: 0; }
.hero-hint, .hero-scroll { transition: opacity .6s; }
.hero.is-bursting .hero-copy { opacity: 0; }
.hero-copy { transition: opacity .6s; }
.tile-in { transform-origin: 50% 50%; }
.eq-other { margin-top: -6px; }

/* ========================================================
   WEDDING projects: tidy column grid, like the Monochrome page (in colour)
   ======================================================== */
.gallery-grid .p-gallery { display: block; columns: 3 300px; column-gap: clamp(12px, 1.8vw, 26px); }
.gallery-grid .p-gallery .g-item { break-inside: avoid; margin: 0 0 clamp(12px, 1.8vw, 26px) !important; grid-column: auto !important; }
.gallery-grid .p-gallery .g-item img { display: block; height: auto; }
.gallery-grid .p-gallery .g-item figcaption { display: none; }

/* Hide the "Powered by Netlify" badge that Netlify adds to free-plan sites */
#nl-badge-frame, iframe[title="Powered by Netlify"] { display: none !important; }

/* "See my work": all four cards fit the screen in one row — no cut-off cards */
.pick-marquee { margin: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.pick-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: auto; padding: 0; animation: none; }
.pick-track .pick-card { width: auto; }
.pick-track .pick-card[aria-hidden="true"] { display: none; }
.pick-track .pick-name { font-size: clamp(22px, 2.6vw, 44px); }
@media (max-width: 900px) { .pick-track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }

/* Step slider: 4 cards fill the visible width; copies wait off-screen to the right */
.pick-marquee { overflow: hidden; }
.pick-track { display: flex; gap: clamp(16px, 2.4vw, 36px); will-change: transform; }
.pick-track .pick-card, .pick-track .pick-card[aria-hidden="true"] { display: flex; flex: 0 0 calc((100% - 3 * clamp(16px, 2.4vw, 36px)) / 4); width: auto; }
@media (max-width: 900px) {
  .pick-track { gap: 16px; }
  .pick-track .pick-card, .pick-track .pick-card[aria-hidden="true"] { flex-basis: calc((100% - 16px) / 2); }
}
@media (prefers-reduced-motion: reduce) { .pick-track .pick-card[aria-hidden="true"] { display: none; } .pick-marquee { overflow-x: auto; } }
