/* Layout concept: a dark viewing room. Photos run edge to edge; text sits in a
   narrow column beside them; technical details are set in mono like film-edge markings. */
:root {
  --bg: #11100e;          /* viewing-room charcoal, slightly warm */
  --surface: #1b1a17;
  --fg: #ece8e1;
  --muted: #9b968c;
  --line: #2e2c28;
  --accent: #e3a44c;      /* safelight amber */
  --on-photo: #ffffff;
  --shade: rgba(8, 7, 6, 0.62);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.78rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.5vw, 3.25rem);
  --step-4: clamp(2.4rem, 7vw, 5.5rem);

  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 60px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f1f0ec; --surface: #e5e3dd; --fg: #1a1916; --muted: #69655d;
    --line: #d2cfc7; --accent: #a5601b; --shade: rgba(8, 7, 6, 0.55);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f1f0ec; --surface: #e5e3dd; --fg: #1a1916; --muted: #69655d;
  --line: #d2cfc7; --accent: #a5601b; --shade: rgba(8, 7, 6, 0.55);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.mono { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.04em; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted); margin: 0;
}
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header .bar {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header.solid { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-color: var(--line); }
.site-header.over-photo { color: var(--on-photo); }
.brand {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; text-decoration: none; font-size: 0.95rem; white-space: nowrap;
}
.brand .short { display: none; }
.nav { display: flex; gap: clamp(14px, 2.6vw, 32px); }
.nav a {
  text-decoration: none; font-size: 0.9rem; opacity: 0.78; padding-block: 6px; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; border-color: currentColor; }
@media (max-width: 640px) {
  .brand .full { display: none; }
  .brand .short { display: inline; }
  .nav a { font-size: 0.84rem; }
}

/* ---------- Views ---------- */
.view { animation: rise 0.45s ease both; }
@keyframes rise { from { opacity: 0.001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-top { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(28px, 6vw, 72px)); }
.page-title {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: var(--step-3); line-height: 1; letter-spacing: -0.01em; margin: 10px 0 0; text-wrap: balance;
}
.page-intro { color: var(--muted); max-width: 60ch; margin: 14px 0 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: clamp(440px, 78vh, 820px); display: grid; place-items: center;
  color: var(--on-photo); text-align: center; overflow: hidden; background: #000;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
}
.hero-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; padding-inline: var(--gutter); }
.hero .eyebrow { color: rgba(255,255,255,0.78); }
.hero h1 {
  margin: 0; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: var(--step-4); line-height: 0.92; letter-spacing: -0.015em; text-wrap: balance;
}
.btn-photo {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.75); color: var(--on-photo); padding: 13px 26px;
  font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em;
  background: rgba(0,0,0,0.18); backdrop-filter: blur(4px); transition: background 0.2s, color 0.2s;
}
.btn-photo:hover { background: #fff; color: #111; }
.hero-meta {
  position: absolute; z-index: 1; bottom: 18px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,0.7);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 10vw, 128px); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(24px, 5vw, 80px); }
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.section h2 {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: var(--step-2); line-height: 1.05; margin: 10px 0 0; text-wrap: balance;
}
.about-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 820px) { .about-body { grid-template-columns: minmax(0, 1fr); } }
.about-body p { margin: 0 0 1em; max-width: 62ch; font-size: 1.08rem; }
.about-body figure { margin: 0; }
.about-body figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.facts { display: grid; gap: 6px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }

/* ---------- Contact ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: 12px 14px; outline: none; transition: border-color 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn {
  border: 1px solid var(--fg); background: var(--fg); color: var(--bg); padding: 13px 26px; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: progress; }
.form-status { margin: 0; color: var(--muted); }
.form-status.ok { color: var(--accent); }
.contact-direct { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--muted); }
.contact-direct .addr { color: var(--fg); user-select: all; }
.linkish {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent);
  font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em;
}

.site-footer { padding-block: 32px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); }

/* ---------- Portfolio (categories) ---------- */
.all-box {
  margin-top: 36px; display: inline-flex; align-items: center; gap: 16px; text-decoration: none;
  border: 1px solid var(--line); padding: 10px 18px 10px 10px; background: var(--surface); max-width: 100%;
  transition: border-color 0.2s;
}
.all-box:hover { border-color: var(--accent); }
.all-box .stack { display: flex; }
.all-box .stack img { width: 40px; height: 40px; object-fit: cover; border: 2px solid var(--surface); }
.all-box .stack img + img { margin-left: -14px; }
.all-box strong { font-weight: 600; display: block; line-height: 1.2; }
.all-box .mono { color: var(--muted); }
.all-box .arrow { color: var(--accent); font-size: 1.2rem; }

.cats { display: grid; gap: clamp(14px, 2vw, 24px); margin-top: 28px; padding-bottom: clamp(48px, 8vw, 96px); }
.cat {
  position: relative; display: block; overflow: hidden; text-decoration: none; color: var(--on-photo);
  aspect-ratio: 21 / 9; max-width: 100%; background: #000;
}
@media (max-width: 700px) { .cat { aspect-ratio: 4 / 3; } }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(.2,.7,.2,1), opacity 0.4s; opacity: 0.92; }
.cat:hover img, .cat:focus-visible img { transform: scale(1.035); opacity: 1; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0) 55%); }
.cat-label {
  position: absolute; z-index: 1; left: clamp(16px, 3vw, 36px); right: clamp(16px, 3vw, 36px); bottom: clamp(14px, 3vw, 32px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cat-label h2 {
  margin: 0; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: var(--step-3); line-height: 0.95;
}
.cat-label .mono { color: rgba(255,255,255,0.8); }

/* ---------- Category / carousel ---------- */
.back { text-decoration: none; color: var(--muted); }
.back:hover { color: var(--fg); }
.carousel { margin-top: 32px; }
.stage { position: relative; min-height: 240px; display: grid; place-items: center; }
.slide { width: 100%; display: grid; gap: clamp(8px, 1.5vw, 20px); animation: fade 0.45s ease both; }
@keyframes fade { from { opacity: 0.001; } to { opacity: 1; } }
.slide.full { grid-template-columns: minmax(0, 1fr); }
.slide.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.slide.single-half { grid-template-columns: minmax(0, 1fr); width: min(100%, 50%); }
@media (max-width: 700px) { .slide.single-half { width: 100%; } }
.slide figure { margin: 0 auto; display: grid; gap: 10px; width: fit-content; max-width: 100%; }
.slide img { width: auto; height: auto; max-width: 100%; max-height: 74vh; }
.slide figcaption { width: 0; min-width: 100%; }
figcaption { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
figcaption .t { font-weight: 500; }
figcaption .mono { color: var(--muted); }

.car-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.car-btns { display: flex; gap: 8px; }
.icon-btn {
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--fg); font-size: 1.1rem;
}
.icon-btn:hover { border-color: var(--fg); }
.counter { font-variant-numeric: tabular-nums; }
.thumbs { position: relative; display: flex; gap: 8px; overflow-x: auto; margin-top: 16px; padding-bottom: 6px; padding-top: 4px; }
.thumbs button { flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0.45; transition: opacity 0.2s; display: flex; gap: 2px; }
.thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 -3px 0 var(--accent) inset; padding-bottom: 5px; }
.thumbs button:hover { opacity: 0.85; }
.thumbs img { height: 56px; width: auto; }
.cat-next { display: flex; justify-content: flex-end; padding-block: 40px 80px; }

/* ---------- All photos ---------- */
.filters { display: grid; gap: 16px; margin-top: 32px; padding-block: 20px; border-block: 1px solid var(--line); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.filter-row > .eyebrow { width: 70px; flex: 0 0 auto; }
.chip {
  border: 1px solid var(--line); background: transparent; padding: 6px 14px; cursor: pointer; border-radius: 999px;
  font-size: 0.88rem; text-transform: capitalize;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); cursor: pointer; padding: 0;
  box-shadow: 0 0 0 1px var(--line);
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--fg); }
.select { background: var(--surface); border: 1px solid var(--line); padding: 7px 12px; border-radius: 0; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block: 20px; color: var(--muted); }
.grid { columns: 3 300px; column-gap: 14px; padding-bottom: 96px; }
.tile { break-inside: avoid; margin: 0 0 14px; position: relative; cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0; background: var(--surface); text-align: left; }
.tile img { width: 100%; height: auto; }
.tile .meta {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; color: var(--on-photo);
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0)); display: grid; gap: 2px;
  opacity: 0; transition: opacity 0.25s;
}
.tile:hover .meta, .tile:focus-visible .meta { opacity: 1; }
@media (hover: none) { .tile .meta { display: none; } }
@media (max-width: 600px) { .grid { columns: 2; column-gap: 8px; } .tile { margin-bottom: 8px; } }
.tile .meta .t { font-weight: 500; }
.tile .meta .mono { color: rgba(255,255,255,0.82); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.empty { padding: 60px 0 120px; color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(6, 6, 5, 0.96); color: #eee;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
}
.lightbox .top { display: flex; justify-content: space-between; align-items: center; }
.lightbox .icon-btn { color: #eee; border-color: rgba(255,255,255,0.25); }
.lightbox .img-wrap { display: grid; place-items: center; min-height: 0; position: relative; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox .nav-l, .lightbox .nav-r { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); }
.lightbox .nav-l { left: 0; } .lightbox .nav-r { right: 0; }
.lightbox figcaption { padding-top: 14px; }
.lightbox figcaption .mono { color: rgba(255,255,255,0.65); }

/* ---------- Header: theme switch + phone menu ---------- */
.header-right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.theme-switch {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; background: none; border: 0;
  color: inherit; cursor: pointer;
}
.theme-switch .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: 0.45; transition: opacity 0.2s; }
.theme-switch .moon { fill: currentColor; stroke: none; }
.theme-switch .track {
  position: relative; width: 38px; height: 20px; border-radius: 999px;
  border: 1px solid currentColor; opacity: 0.85;
}
.theme-switch .thumb {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: currentColor; transition: transform 0.25s cubic-bezier(.3,.7,.3,1);
}
.theme-switch[aria-checked="true"] .thumb { transform: translateX(18px); }
.theme-switch[aria-checked="true"] .moon, .theme-switch[aria-checked="false"] .sun { opacity: 1; }

.menu-btn {
  display: none; background: none; border: 1px solid currentColor; padding: 5px 12px; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
}
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter) 14px;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.05rem; padding-block: 12px; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--accent); border-color: var(--line); }
  .site-header .bar { position: static; }
  .site-header { position: fixed; }
}

/* ---------- Past shoots ---------- */
.shoots { padding-block: clamp(32px, 6vw, 64px) clamp(56px, 9vw, 112px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.shoots-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px clamp(24px, 5vw, 80px); align-items: end; }
.shoots-head > * { min-width: 0; }
.shoots-head .page-intro { margin: 0; }
@media (max-width: 760px) { .shoots-head { grid-template-columns: minmax(0, 1fr); } }
.shoot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(18px, 2.4vw, 28px); margin-top: 32px; }
.shoot { display: grid; gap: 12px; text-decoration: none; min-width: 0; }
.shoot .frame { overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--surface); }
.shoot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.shoot:hover img, .shoot:focus-visible img { transform: scale(1.04); }
.shoot .row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.shoot .tag { color: var(--accent); }
.shoot h3 { margin: 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: var(--step-1); line-height: 1.15; }
.shoot .client { margin: -6px 0 0; color: var(--muted); }
.shoot-meta { margin: 14px 0 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.shoot-meta .tag { color: var(--accent); }
@media (max-width: 560px) { #hero-count { display: none; } }

/* ---------- Responsive tuning: one photo per row on phones ---------- */
@media (max-width: 1000px) { .grid { columns: 2; column-gap: 12px; } .tile { margin-bottom: 12px; } }
@media (max-width: 600px) {
  .grid { columns: 1; }
  .tile { margin-bottom: 14px; }
}
@media (max-width: 900px), (max-height: 500px) {
  .slide.pair { grid-template-columns: minmax(0, 1fr); }
  .slide.single-half { width: 100%; }
  .slide img { max-height: 80vh; }
}

/* Banner: the whole photo, uncropped and uncovered; name and button sit below it */
.hero {
  height: auto; display: block; overflow: visible; background: var(--bg); color: var(--fg);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
.hero::after { display: none; }
.hero img { position: static; width: 100%; height: auto; object-fit: contain; }
.hero-inner {
  justify-items: center; gap: 18px; padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(36px, 6vw, 72px);
}
.hero .eyebrow { color: var(--muted); }
.hero h1 { color: var(--fg); }
.btn-photo { margin-top: 10px; color: var(--fg); border-color: var(--fg); background: transparent; backdrop-filter: none; }
.btn-photo:hover { background: var(--fg); color: var(--bg); }
.hero-meta { position: static; display: flex; justify-content: space-between; width: 100%; max-width: 1320px; margin: 0 auto; color: var(--muted); padding: 10px var(--gutter) 0; text-align: left; }
.site-header.over-photo { color: inherit; }
