/* Pages that scroll: the homepage (gallery, then the enquiry form) and the pricing page. */

:root { --line: #e4e4e4; }

html.scrolls,
html.scrolls body {
  height: auto;
  overflow: visible;
  overscroll-behavior: auto;
}
html.scrolls { scroll-behavior: smooth; scroll-padding-top: var(--bar); }
html.scrolls body { overflow-x: clip; }
.scrolls .bar--top { background: var(--paper); z-index: 15; }
h1.lede, h2.lede { font-weight: 500; }

a.inline { border-bottom: 1px solid currentColor; transition: opacity .2s ease; }
a.inline:hover { opacity: .6; }

/* ---------- Gallery: the full-screen collage at the top of the homepage ---------- */

.gallery {
  position: relative;
  height: 100vh;
  height: 100svh;
}
.gallery .stage { position: absolute; bottom: var(--gutter); }

/* ---------- Homepage: intro, the banner film, then the enquiry form ---------- */

.intro {
  padding: clamp(64px, 8vw, 110px) var(--gutter) clamp(44px, 6vw, 80px);
  max-width: 1040px;
}
.intro .body { margin: 0; }
.intro .body a { color: var(--ink); }

.reel { padding: 0 var(--gutter); }

.enquire {
  padding: clamp(64px, 8vw, 110px) var(--gutter) clamp(80px, 10vw, 140px);
  max-width: 1040px;
}
.section-title {
  font: 500 clamp(22px, 2.4vw, 32px)/1.12 var(--display);
  letter-spacing: -.03em;
  margin: 0 0 clamp(28px, 4vw, 44px);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px 32px;
  margin: 0;
}
.form[hidden] { display: none; }
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field--wide { grid-column: 1 / -1; }
.field__label {
  font: 10px var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}
.field__label i { font-style: normal; opacity: .6; margin-left: 6px; }
.field input,
.field textarea {
  font: 20px/1.35 var(--sans);
  letter-spacing: -.01em;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 6px 0 10px;
  outline: none;
  transition: border-color .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus { border-color: var(--ink); }
.field textarea::placeholder { color: #a8a8a8; }

.send-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 6px; }
.send {
  font: 500 11px var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 16px 30px;
  transition: opacity .2s ease;
}
.send:hover { opacity: .82; }
.send:disabled { opacity: .4; cursor: default; }
.form__status { margin: 0; color: var(--muted); }
.form__status a { color: var(--ink); }

.sent { outline: none; }
.sent .lede { margin: 0; }

/* ---------- Footer ---------- */

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.foot nav { display: flex; gap: 28px; }
.foot a:hover { color: var(--ink); }

/* ---------- Pricing ---------- */

.pricing { padding: calc(var(--bar) + clamp(56px, 9vw, 120px)) var(--gutter) 0; }
.pricing__head { max-width: 1040px; margin-bottom: clamp(48px, 7vw, 96px); }
.pricing__head h1 { margin-bottom: 20px; }
.pricing__head .body { margin: 0; }

.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.price h2 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin: 0 0 26px;
}
.rates { margin: 0 0 22px; }
.rates div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rates div:first-child { border-top: 1px solid var(--line); }
.rates dt { font-size: 16px; }
.rates dd small { font: 400 10px var(--display); letter-spacing: .06em; color: var(--muted); margin-left: 4px; }
.rates dt small { display: block; margin-top: 3px; font: 10px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rates dd { margin: 0; font-family: var(--display); font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .note { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 32em; margin: 0; }

.media {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f2f2f2 center / cover no-repeat;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Media wall: setup and result photos stacked, swapping back and forth. */
.swap img { position: absolute; inset: 0; }
.swap img + img { opacity: 0; }
.swap.is-playing img + img { animation: swap 5.6s ease-in-out infinite; }
@keyframes swap {
  0%, 38% { opacity: 0; }
  50%, 88% { opacity: 1; }
  100% { opacity: 0; }
}

/* The film is 1.9:1; fill the 3:2 frame by trimming its sides. */
.media iframe {
  position: absolute;
  top: 0; left: 50%;
  height: 100%;
  width: calc(100% * 1.9 / 1.5);
  transform: translateX(-50%);
  border: 0;
  pointer-events: none;
}

.cta {
  padding: clamp(72px, 11vw, 150px) 0 clamp(72px, 10vw, 130px);
  border-top: 1px solid var(--line);
}
.cta .lede { margin: 0; }
.cta a { border-bottom: 1px solid currentColor; transition: opacity .2s ease; }
.cta a:hover { opacity: .6; }
.pricing + .foot { margin-top: 0; }

/* ---------- Video ---------- */

.video { padding: var(--bar) var(--gutter) 0; }

/* The film is 1.9:1: as wide as the page, but never taller than the screen. */
.film-hero {
  position: relative;
  margin: 0 auto;
  width: min(100%, calc((100svh - var(--bar) - var(--gutter)) * 1.9));
  aspect-ratio: 1.9;
  overflow: hidden;
  background: #111 center / cover no-repeat;
}
.film-hero iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.film-hero__link,
.more-images {
  position: absolute;
  left: 14px; bottom: 14px;
  font: 500 11px var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 13px 22px;
  transition: opacity .2s ease;
}
.film-hero__link:hover,
.more-images:hover { opacity: .85; }
.more-images { z-index: 3; background: rgba(255, 255, 255, .9); }
.gallery .hint { text-align: right; padding-right: 16px; bottom: 26px; } /* clear of the More images button */

.video-intro {
  max-width: 1040px;
  padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 8vw, 100px);
}
.video-intro .body { margin: 0; }

.films {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 14px;
  padding-bottom: clamp(56px, 8vw, 100px);
}
.films[hidden] { display: none; }
.film { margin: 0; }
.film__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.film__frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
.film__frame:hover img { transform: scale(1.03); }
.film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__play {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.film__play::after {
  content: "";
  position: absolute;
  left: 26px; top: 21px;
  border-style: solid;
  border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent var(--ink);
}
.film__frame:hover .film__play { transform: scale(1.08); }
.film figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  font: 500 11px var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.film figcaption span + span { color: var(--muted); font-weight: 400; }

/* ---------- Photos page: every event in one long mosaic, then a full-screen viewer ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.photos { padding: calc(var(--bar) + clamp(24px, 4vw, 48px)) var(--gutter) 0; }
#events { position: relative; }
#events > * { position: absolute; }
.name-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  background: #f4f4f4;
  text-align: center;
}
.name-tile h2 {
  margin: 0;
  font: 500 1em/1.15 var(--display);
  letter-spacing: -.02em;
}
.shot {
  display: block;
  overflow: hidden;
  background: var(--paper);
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .6, .2, 1), opacity .25s ease;
}
.shot:hover img { transform: scale(1.03); }
.shot:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

html.viewing { overflow: hidden; }
.viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--paper);
  opacity: 0;
  transition: opacity .25s ease;
}
.viewer.is-open { opacity: 1; }
.viewer[hidden] { display: none; }
.viewer__frame { position: absolute; inset: var(--bar) var(--gutter); }
.viewer__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .3s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.viewer__frame img.is-in { opacity: 1; }
.viewer__caption,
.viewer__close {
  position: absolute;
  font: 400 11px var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  z-index: 3;
}
.viewer__caption {
  left: var(--gutter); right: var(--gutter); bottom: 0;
  height: var(--bar);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.viewer__caption span + span { color: var(--muted); }
.viewer__close { top: 0; right: var(--gutter); height: var(--bar); }
.viewing .cursor { z-index: 60; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .form { grid-template-columns: 1fr; gap: 30px; }
  .price { grid-template-columns: 1fr; }
  .price .media { order: -1; }
  .price h2 { margin-bottom: 18px; }
  .films { grid-template-columns: 1fr; gap: 28px; }
  /* Phones: a taller crop of the film. */
  .film-hero { aspect-ratio: 4 / 5; }
  .film-hero iframe { width: calc(100% * 1.9 * 5 / 4); }
}

@media (prefers-reduced-motion: reduce) {
  html.scrolls { scroll-behavior: auto; }
  .swap.is-playing img + img { animation: none; }
}

/* ---------- Layout editor (photos.html?edit, on this computer only) ---------- */

.editing .photos { padding-bottom: 120px; }
.editing .shot { cursor: grab; }
.editing .shot.is-dragging { opacity: .35; }
.editing .shot:hover img { transform: none; }
.shot.is-over { outline: 3px solid #2563eb; outline-offset: -3px; }

.edit-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.edit-bar p { flex: 1; margin: 0; color: var(--muted); line-height: 1.4; }
.edit-bar p b { color: var(--ink); font-weight: 500; }
.edit-bar a, .edit-reset { white-space: nowrap; text-decoration: underline; font-size: 13px; }
.edit-status { white-space: nowrap; color: var(--muted); }
.edit-save {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 500 11px var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.edit-save:disabled { opacity: .3; cursor: default; }
