:root {
  --ink: #EDE8E0;
  --dim: #9A948B;
  --soft: #C9C3B9;
  --line: #262320;
  --brass: #C96395;        /* the pink out of the logo */
  --brass-ink: #A63C70;    /* the same pink, dark enough to read on white */
  --bg: #0A0A0A;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brass); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--bg); }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }
h1, h2, h3 { font-weight: 200; letter-spacing: -0.03em; margin: 0; }

/* Header ---------------------------------------------------------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(10,10,10,0.72), rgba(10,10,10,0));
}
.mark { position: relative; display: block; }
.mark img { display: block; height: 48px; width: auto; transition: opacity 450ms ease; }
/* White by default — the logo only takes its colour when the cursor is on it. */
.mark .mark-white { position: absolute; inset: 0 auto auto 0; filter: brightness(0) invert(1); opacity: 1; }
.mark .mark-colour { opacity: 0; }
.mark:hover .mark-colour, .mark:focus-visible .mark-colour { opacity: 1; }
.mark:hover .mark-white, .mark:focus-visible .mark-white { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .mark img { transition: none; } }
.topnav { display: flex; align-items: center; gap: 34px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.topnav .tel { color: var(--brass); }
@media (max-width: 780px) {
  .topnav { gap: 16px; font-size: 10px; letter-spacing: 0.14em; }
  .topnav a:not(.tel):not([href="#work"]) { display: none; }
}

/* Hero ------------------------------------------------------------------ */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #0A0A0A; }
.hero-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1500ms cubic-bezier(.2,.8,.2,1);
  animation: drift 22s ease-out infinite alternate;
}
.hero-frame.is-on { opacity: 1; }
.hero-wash { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.86), rgba(10,10,10,0.24) 55%, rgba(10,10,10,0.5)); }
.hero-copy {
  position: absolute; inset: auto 0 clamp(40px, 8vh, 88px) 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 0 clamp(18px, 4vw, 56px);
}
.hero-copy h1 { max-width: 14ch; font-size: clamp(42px, 7.6vw, 116px); line-height: 0.96; }
.spec { margin: 0; max-width: 30ch; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); line-height: 2; }
@keyframes drift { from { transform: scale(1.04) } to { transform: scale(1.14) } }

/* Sections -------------------------------------------------------------- */
.section { padding: clamp(56px, 9vh, 110px) clamp(18px, 4vw, 56px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; line-height: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 22px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.filter { background: none; border: 0; border-bottom: 1px solid transparent; padding: 0 0 5px; color: #7C766D; cursor: pointer; transition: color 300ms, border-color 300ms; }
.filter:hover { color: var(--ink); }
.filter.is-on { color: var(--brass); border-bottom-color: var(--brass); }
.empty { color: var(--dim); font-size: 14px; }

/* Gallery grid ---------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: start; }
.tile { margin: 0; grid-column: span 3; }
.tile.is-landscape { grid-column: span 4; }
.tile-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #141414; cursor: pointer; overflow: hidden; }
.tile.is-portrait .tile-open { aspect-ratio: 4 / 5; }
.tile.is-landscape .tile-open { aspect-ratio: 3 / 2; }
.tile-open img { width: 100%; height: 100%; object-fit: cover; opacity: 0.86; transition: transform 800ms cubic-bezier(.2,.8,.2,1), opacity 500ms; }
.tile-open:hover img, .tile-open:focus-visible img { transform: scale(1.04); opacity: 1; }
.tile figcaption {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-direction: column; gap: 5px;
  padding: 38px 14px 12px; text-align: left;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  background: linear-gradient(to top, rgba(10,10,10,0.9), rgba(10,10,10,0));
  opacity: 0; transition: opacity 350ms; pointer-events: none;
}
.tile-open:hover figcaption, .tile-open:focus-visible figcaption { opacity: 1; }
/* Private: on the site as a taste, not to browse. It looks like any other
   tile until the cursor arrives — same lift on the photograph, and the flag
   fades in with the caption. */
.tile-open.is-private { cursor: default; }
.tile-flag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 4px 8px; border: 1px solid rgba(255,255,255,0.5); border-radius: 2px;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; background: rgba(10,10,10,0.45); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 350ms; pointer-events: none;
}
.tile-open:hover .tile-flag, .tile-open:focus-visible .tile-flag { opacity: 1; }
.tile figcaption .t { font-size: 11px; color: #fff; }
.tile figcaption .c { color: var(--brass); }
@media (max-width: 899px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.is-landscape { grid-column: span 1; }
}

/* Studio ---------------------------------------------------------------- */
.studio { display: grid; grid-template-columns: minmax(260px, 32%) 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 72px); }
.studio-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 30%; background: #141414; }
.studio h2 { font-size: clamp(28px, 3.6vw, 52px); font-weight: 300; line-height: 1.06; max-width: 16ch; margin-bottom: 24px; }
.studio p { margin: 0 0 16px; max-width: 56ch; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.65; color: var(--soft); }
/* Whatever the studio text editor allows, styled to match the paragraphs. */
.studio-text ul, .studio-text ol { margin: 0 0 16px; padding-left: 20px; max-width: 56ch; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.65; color: var(--soft); }
.studio-text li { margin-bottom: 6px; }
.studio-text strong, .studio-text b { font-weight: 500; color: var(--ink); }
.studio-text a { color: var(--brass); border-bottom: 1px solid transparent; }
.studio-text a:hover { border-bottom-color: var(--brass); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin: 36px 0 0; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { color: #7C766D; margin-bottom: 8px; }
.facts dd { margin: 0; }
@media (max-width: 899px) { .studio { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } }

/* Quotes ---------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); }
.quotes figure { margin: 0; }
.quotes blockquote { margin: 0 0 16px; font-size: clamp(19px, 1.6vw, 24px); font-weight: 300; line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty; }
.quotes figcaption { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #7C766D; }
@media (max-width: 899px) { .quotes { grid-template-columns: 1fr; } }

/* Contact --------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.02; max-width: 15ch; margin-bottom: 22px; }
.lede { margin: 0 0 32px; max-width: 44ch; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.65; color: var(--soft); }
.phone { display: inline-block; font-size: clamp(26px, 2.6vw, 38px); font-weight: 300; line-height: 1; color: var(--brass); border-bottom: 1px solid #3A2A33; padding-bottom: 8px; }
.place { margin: 22px 0 0; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #7C766D; }
.contact form { display: grid; gap: 6px; }
.contact label { margin-top: 14px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #7C766D; }
.contact input, .contact select, .contact textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid #3A362F;
  border-radius: 0; padding: 6px 0; font-size: 17px; color: var(--ink);
}
.contact input:focus, .contact select:focus, .contact textarea:focus { outline: none; border-bottom-color: var(--brass); }
.contact select option { color: #0A0A0A; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.err { min-height: 14px; margin: 6px 0 0; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.send { justify-self: start; margin-top: 20px; background: var(--brass); color: #0A0A0A; border: 0; padding: 16px 32px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; transition: background-color 300ms; }
.send:hover { background: var(--ink); }
.sent { border-top: 1px solid var(--brass); padding-top: 24px; }
.sent-title { margin: 0 0 12px; font-size: 30px; font-weight: 300; }
.sent p { color: var(--soft); line-height: 1.6; max-width: 40ch; }
@media (max-width: 899px) { .contact, .contact .row { grid-template-columns: 1fr; } }

/* Footer ---------------------------------------------------------------- */
.foot {
  display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 56px) 28px; margin: 0 clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #7C766D;
}
.foot a { color: var(--soft); }

/* Lightbox -------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: rgba(10,10,10,0.97); }
.lightbox[hidden] { display: none; }
.lb-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px clamp(18px, 4vw, 40px); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #7C766D; }
.lb-title { font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.lb-close, .lb-prev, .lb-next { background: none; border: 0; cursor: pointer; color: var(--ink); }
.lb-close { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 28px); padding: 0 clamp(18px, 4vw, 40px); }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-prev, .lb-next { padding: 8px; font-size: 18px; color: #7C766D; transition: color 250ms; }
.lb-prev:hover, .lb-next:hover { color: var(--ink); }
.lb-thumbs { display: flex; align-items: center; justify-content: center; gap: 6px; overflow-x: auto; padding: 18px clamp(18px, 4vw, 40px) 22px; }
.lb-thumbs button { flex: 0 0 auto; width: 54px; height: 54px; padding: 0; border: 1px solid transparent; background: #141414; cursor: pointer; opacity: 0.4; transition: opacity 250ms, border-color 250ms; }
.lb-thumbs button:hover { opacity: 1; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--brass); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001s !important; transition-duration: 0.15s !important; }
}

/* A gallery on its own page ---------------------------------------------- */
.set {
  --set-width: min(80vw, 1400px);
  max-width: 1400px; margin: 0 auto; padding: 120px clamp(18px, 4vw, 56px) 80px;
}
.crumb { margin: 0 0 28px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.set h1 { font-size: clamp(30px, 4.4vw, 62px); font-weight: 300; line-height: 1.04; margin-bottom: 14px; }
.set-intro { margin: 0 0 44px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }
.set-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; width: min(var(--set-width), 100%); margin: 0 auto; }
.set-shot { margin: 0; }
.set-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 1100px) { .set-grid { grid-template-columns: repeat(2, 1fr); } }
.set-foot { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); }
.set-foot h2 { font-size: clamp(22px, 2.4vw, 34px); font-weight: 300; margin-bottom: 12px; }
.set-foot p { margin: 0; font-size: 15px; color: var(--soft); }
.set-foot a { color: var(--brass); }
@media (max-width: 700px) { .set-grid { grid-template-columns: 1fr; gap: 24px; } .set-cover img, .set-lead, .set-films, .set-grid { max-width: 100%; width: 100%; } }

/* A gallery opened as a page ---------------------------------------------- */
.pagebox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column;
  background: rgba(8,8,8,0.98);
}
.pagebox[hidden] { display: none; }
.pagebox-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(14px, 3vw, 40px); border-bottom: 1px solid var(--line);
}
.pagebox-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pagebox-title strong { font-size: 15px; font-weight: 400; letter-spacing: 0.02em; }
.pagebox-title span { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }
.pagebox-close {
  flex: 0 0 auto; background: none; border: 1px solid #3A362F; border-radius: 4px; color: var(--ink);
  padding: 8px 13px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.pagebox-close:hover { border-color: var(--brass); color: var(--brass); }
.pagebox-scroll {
  --set-width: min(80vw, 1600px);            /* films, cover and grid all use it */
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(14px, 3vw, 40px) clamp(14px, 3vw, 40px) 80px;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
}
/* The cover keeps its own shape and never takes more than 80% of the window. */
.pagebox-cover { margin: 0; }
.pagebox-cover img { display: block; width: auto; height: auto; max-width: min(var(--set-width), 100%); }
/* A film leading the page gets the same width rule. */
.pagebox-lead { margin: 0; width: min(var(--set-width), 100%); }
.pagebox-lead video { display: block; width: 100%; background: #0A0A0A; }
.pagebox-lead figcaption { padding: 10px 2px 0; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.pagebox-films { display: flex; flex-direction: column; gap: 40px; width: min(var(--set-width), 100%); }
.pagebox-film { margin: 0; }
.pagebox-film video { display: block; width: 100%; background: #0A0A0A; }
.pagebox-film figcaption {
  padding: 10px 2px 0; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim);
}
/* Three across, two on a smaller screen, one on a phone — 40px apart, each
   photograph at full size and its own shape. */
.pagebox-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  align-items: start; width: min(var(--set-width), 100%);
}
/* Masonry: the script gives each photograph a row span of its own height, so
   varying heights close up instead of leaving a ragged row. Without the
   script the plain 40px grid above still stands. */
.pagebox-grid.is-masonry, .set-grid.is-masonry { grid-auto-rows: 1px; row-gap: 0; align-items: stretch; }
.pagebox-grid.is-masonry > *, .set-grid.is-masonry > * { align-self: start; }
.pagebox-shot { margin: 0; }
.pagebox-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 1100px) { .pagebox-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .pagebox-grid { grid-template-columns: 1fr; gap: 24px; }
  .pagebox-scroll { gap: 24px; }
  .pagebox-cover img, .pagebox-lead, .pagebox-films, .pagebox-grid { max-width: 100%; width: 100%; }
}

.set-cover { margin: 0 auto 40px; }
.set-cover img { display: block; width: auto; height: auto; max-width: min(var(--set-width), 100%); margin: 0 auto; }
.set-lead { margin: 0 auto 40px; width: min(var(--set-width), 100%); }
.set-lead video { display: block; width: 100%; background: #0A0A0A; }
.set-lead figcaption, .set-film figcaption { padding: 10px 2px 0; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.set-films { display: flex; flex-direction: column; gap: 40px; width: min(var(--set-width), 100%); margin: 0 auto 40px; }
.set-film { margin: 0; }
.set-film video { display: block; width: 100%; background: #0A0A0A; }

/* YouTube and Vimeo films ------------------------------------------------- */
.embed-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #0A0A0A; }
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* With a cover image of its own, nothing loads from the provider until this
   is pressed. */
.embed-hold {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
  background-color: #0A0A0A; background-size: cover; background-position: center;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.embed-play {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(10,10,10,0.55); border: 1px solid rgba(255,255,255,0.75);
  transition: background-color 250ms, transform 250ms;
  position: relative;
}
.embed-play::after {
  content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.embed-hold:hover .embed-play { background: var(--brass); transform: scale(1.06); }

/* Films leading a page, one at a time ------------------------------------- */
.slides-stage { position: relative; }
.slide[hidden] { display: none; }
.slides-step {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 68px; border: 0; background: rgba(10,10,10,0.55); color: var(--ink);
  font-size: 30px; line-height: 1; cursor: pointer; opacity: 0.8; transition: background-color 200ms, opacity 200ms;
}
.slides-step:hover { background: rgba(10,10,10,0.8); opacity: 1; color: var(--brass); }
.slides-prev { left: 0; }
.slides-next { right: 0; }
.slides-caption { padding: 10px 2px 0; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 700px) { .slides-step { width: 34px; height: 54px; font-size: 24px; } }
