/* ==========================================================================
   Public website — minimal, image-first.
   ========================================================================== */

:root {
  /* Colors and fonts are set per site/gallery in a <style> tag (see lib/design.js);
     these are only fallbacks. Muted, line and soft tones are mixed from them. */
  --bg: #ffffff;
  --fg: #171717;
  --accent: #171717;
  --accent-fg: #ffffff;
  --muted: color-mix(in srgb, var(--fg) 50%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 12%, var(--bg));
  --soft: color-mix(in srgb, var(--fg) 4%, var(--bg));
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-weight: 300;
  --display-tracking: 0.01em;
  --display-case: none;
  --brand-case: uppercase;
  --brand-tracking: 0.2em;
  --body-weight: 300;
  --gutter: clamp(18px, 4vw, 56px);
  --max: 1480px;
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: var(--body-weight) 15px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.12;
  margin: 0;
}
h1, h2 { text-transform: var(--display-case); }

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose { max-width: 640px; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { border-bottom: 1px solid var(--line); transition: border-color .2s; }
.prose a:hover { border-color: var(--accent); }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; font-size: 1.6em; }
.prose strong { font-weight: 500; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 34px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.button:hover { background: transparent; color: var(--accent); }

.link-arrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.link-arrow::after { content: ' →'; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  transition: background .3s, color .3s;
}
.brand {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: var(--brand-tracking);
  text-transform: var(--brand-case);
  white-space: nowrap;
}
.site-nav { display: flex; gap: clamp(20px, 3vw, 42px); }
.site-nav a {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-nav a:hover, .site-nav a[aria-current] { border-color: currentColor; }

.site-header.is-overlay {
  position: fixed;
  left: 0;
  right: 0;
  color: #fff;
  background: transparent;
  backdrop-filter: none;
}
.site-header.is-overlay.is-scrolled {
  color: var(--fg);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nav-toggle span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1px;
  background: currentColor;
  transition: transform .3s, top .3s;
}
.nav-toggle span:first-child { top: 13px; }
.nav-toggle span:last-child { top: 20px; }
.nav-open .nav-toggle span:first-child { top: 17px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 17px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .brand { font-size: 19px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: var(--bg);
    color: var(--fg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .site-nav a { font-size: 13px; }
  .nav-open .site-nav { opacity: 1; pointer-events: auto; }
  .nav-open .site-header { color: var(--fg); }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  color: #fff;
  background: #111;
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.42) 100%);
}
.hero__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(70px, 14vh, 140px);
  text-align: center;
  padding: 0 var(--gutter);
}
.hero__text h1 { font-size: clamp(40px, 7vw, 96px); text-shadow: 0 1px 30px rgba(0,0,0,.18); }
.hero__text p { margin: 16px 0 0; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,.7);
  animation: scrollhint 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollhint { 0%, 100% { transform: scaleY(.3); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

.intro {
  padding: clamp(80px, 16vh, 180px) var(--gutter) clamp(40px, 8vh, 90px);
  text-align: center;
}
.intro h1 { font-size: clamp(44px, 8vw, 110px); margin-bottom: 18px; }

.statement {
  padding: clamp(70px, 12vh, 140px) var(--gutter);
  display: flex;
  justify-content: center;
  text-align: center;
}
.statement .prose { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45; font-weight: 300; max-width: 820px; }

/* ---------- sections & grids ---------- */

.section { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(70px, 10vh, 120px); }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.section__head h2 { font-size: clamp(28px, 3.2vw, 42px); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: clamp(28px, 3vw, 48px) clamp(18px, 2vw, 32px);
}
.project-card { display: block; }
.project-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.project-card:hover img { transform: scale(1.035); }
.project-card__media .placeholder { width: 100%; height: 100%; }
.project-card__text { padding-top: 16px; }
.project-card__text h3 { font-size: 24px; }
.project-card__text p { margin: 4px 0 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.disciplines {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: clamp(70px, 10vh, 120px);
}
.disciplines a {
  flex: 1 1 220px;
  text-align: center;
  padding: clamp(36px, 6vh, 64px) 20px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: var(--display-weight);
  transition: background .3s;
}
.disciplines a + a { border-left: 1px solid var(--line); }
.disciplines a:hover { background: var(--soft); }

.cta { text-align: center; padding: 0 var(--gutter) clamp(90px, 14vh, 160px); }
.cta h2 { font-size: clamp(34px, 4.5vw, 60px); margin-bottom: 34px; }

.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 11vh, 130px) var(--gutter) clamp(40px, 6vh, 70px);
  text-align: center;
}
.page-head h1 { font-size: clamp(40px, 6vw, 80px); }
.page-head .prose { margin: 26px auto 0; color: color-mix(in srgb, var(--fg) 78%, transparent); }
.page-head--center { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.message-page .prose { margin-bottom: 30px; }
.draft-note { display: inline-block; margin: 18px 0 0; padding: 6px 14px; background: #fff3cd; color: #6b5300; font-size: 12px; }

.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 30px; margin-top: 34px; }
.filters a { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid transparent; }
.filters a:hover { color: var(--fg); }
.filters a[aria-current] { color: var(--fg); border-color: currentColor; }
.empty { text-align: center; color: var(--muted); }

/* ---------- justified photo grid (keeps your order, no cropping) ---------- */

.jgrid { display: flex; flex-wrap: wrap; gap: var(--jgap, 10px); --row: clamp(170px, 26vw, 360px); }
.jgrid::after { content: ''; flex-grow: 999999; }
.jgrid__item {
  position: relative;
  display: block;
  flex-grow: calc(var(--ar) * 100);
  flex-basis: calc(var(--ar) * var(--row));
  overflow: hidden;
  background: var(--soft);
  cursor: zoom-in;
  margin: 0;
}
.jgrid__item > i { display: block; }
.jgrid__item > img, .jgrid__item > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jgrid__item > img { transition: opacity .3s; }
.jgrid__item:hover > img { opacity: .92; }

/* ---------- project page ---------- */

.project-block { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(28px, 4vw, 56px); }
.project-block--film, .project-block--audio { max-width: 1200px; }
.project-block--single a { display: block; cursor: zoom-in; }
.project-block--single img { width: auto; height: auto; max-width: 100%; max-height: 88vh; margin: 0 auto; }
.player { position: relative; aspect-ratio: var(--ar, 1.7778); background: #000; }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.player__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .3s; }
.player__facade:hover img { opacity: 1; }
.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(3px);
  transition: transform .3s;
}
.play-icon::after {
  content: '';
  position: absolute;
  left: 32px;
  top: 26px;
  border-style: solid;
  border-width: 13px 0 13px 20px;
  border-color: transparent transparent transparent #fff;
}
.player__facade:hover .play-icon { transform: scale(1.06); }
.caption { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tracks li { border-bottom: 1px solid var(--line); padding: 4px 0; }
.soundcloud { width: 100%; height: 166px; border: 0; display: block; margin: 12px 0; }

.track { display: flex; align-items: center; gap: 18px; padding: 16px 0; }
.track__play {
  flex: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.track__play::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 14px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent currentColor;
}
.track.is-playing .track__play::after {
  left: 15px;
  top: 14px;
  width: 4px;
  height: 16px;
  border: 0;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
  width: 14px;
  box-sizing: border-box;
}
.track__body { flex: 1; min-width: 0; }
.track__title { font-size: 15px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__bar { position: relative; height: 18px; cursor: pointer; }
.track__bar::before { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: var(--line); }
.track__bar span { position: absolute; left: 0; top: 8px; height: 1px; width: 0; background: var(--fg); }
.track__time { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }

.next-project {
  max-width: var(--max);
  margin: clamp(40px, 8vh, 90px) auto 0;
  padding: clamp(60px, 10vh, 110px) var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
}
.next-project .eyebrow { display: block; }
.next-project a { display: inline-block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(32px, 4.5vw, 58px); }
.next-project a:hover { opacity: .7; }

/* ---------- about ---------- */

.about {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(50px, 9vh, 110px) var(--gutter) clamp(80px, 12vh, 140px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: center;
}
.about--text-only { grid-template-columns: 1fr; max-width: 760px; text-align: center; }
.about--text-only .prose { margin: 0 auto; }
.about__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__text h1 { font-size: clamp(40px, 5.4vw, 72px); margin-bottom: 30px; }
.about__actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 40px; }
.about--text-only .about__actions { justify-content: center; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* ---------- booking ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 1200px;
  padding: 0;
  margin-bottom: clamp(60px, 9vh, 100px);
}
.service { background: var(--bg); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; }
.service h3 { font-size: 26px; margin-bottom: 12px; }
.service p { margin: 0 0 18px; color: color-mix(in srgb, var(--fg) 75%, transparent); font-size: 14px; }
.service__meta { margin-top: auto !important; display: flex; justify-content: space-between; gap: 12px; font-size: 11px !important; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg) !important; }

.booking { max-width: 760px; }
.booking-form { display: grid; gap: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .inline-form input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: 300 16px/1.5 var(--font-body);
  padding: 10px 0;
  outline: none;
  transition: border-color .2s;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; border: 1px solid var(--line); padding: 12px 14px; }
.field input:not([type=checkbox]):focus, .field select:focus, .field textarea:focus, .inline-form input:focus { border-color: var(--fg); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { border-left: 2px solid #b4261a; padding: 4px 0 4px 16px; color: #b4261a; font-size: 14px; }
.form-errors p { margin: 4px 0; }
.booking-form .button { justify-self: start; }

.calendar { border: 1px solid var(--line); padding: 18px; user-select: none; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__title { font-family: var(--font-display); font-size: 22px; font-weight: var(--display-weight); }
.cal__nav { width: 34px; height: 34px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 16px; line-height: 1; }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.cal__day {
  aspect-ratio: 1;
  border: 0;
  background: none;
  font-size: 14px;
  cursor: pointer;
  border-radius: 50%;
  max-width: 48px;
  width: 100%;
  justify-self: center;
  transition: background .15s, color .15s;
}
.cal__day:hover:not(:disabled) { background: var(--soft); }
.cal__day:disabled { color: var(--muted); opacity: .45; cursor: default; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.cal__day.is-past:disabled { text-decoration: none; }
.cal__day.is-selected { background: var(--accent); color: var(--accent-fg); }
.calendar__picked { margin: 0; font-size: 14px; min-height: 1.5em; }

.inline-form { display: flex; gap: 16px; width: min(100%, 480px); margin: 10px auto 0; align-items: flex-end; }
.inline-form input { flex: 1; text-align: center; }
.form-note { color: #b4261a; font-size: 14px; }

/* ---------- footer ---------- */

.site-footer {
  padding: 50px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 30px; margin-bottom: 16px; }
.footer-links a { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.footer-links a:hover { opacity: .6; }
.footer-meta { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- lightbox (shared with galleries) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  grid-template-rows: 64px 1fr auto;
  background: var(--bg);
  color: var(--fg);
}
.lightbox[hidden] { display: none; }
.lightbox__bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 24px; }
.lightbox__count { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.lightbox__actions { display: flex; gap: 6px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: rgba(128,128,128,.12); }
.icon-btn.is-on .i-heart { fill: currentColor; }
.lightbox__stage { grid-column: 2; grid-row: 2; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; touch-action: pan-y; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lightbox__stage video { width: 100%; height: 100%; background: #000; }
.lightbox__embed { width: min(100%, calc((100vh - 150px) * 16 / 9)); aspect-ratio: 16 / 9; border: 0; background: #000; }
.lightbox__nav { grid-row: 2; align-self: center; justify-self: center; width: 56px; height: 56px; border: 0; background: none; cursor: pointer; opacity: .55; transition: opacity .2s; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }
.lightbox__caption { grid-column: 1 / -1; margin: 0; padding: 14px 24px 22px; text-align: center; font-size: 13px; color: var(--muted); min-height: 20px; }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 0 1fr 0; }
  .lightbox__nav { display: none; }
}
.icon-btn[hidden] { display: none; }

/* ---------- image protection (Site Settings → Protect photos & videos) ---------- */
.is-protected img, .is-protected video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none; /* no "Save image" on long-press (iOS) */
}
@media print {
  .is-protected img, .is-protected video, .is-protected iframe { visibility: hidden !important; }
}
