:root {
  --bg: #ffffff;
  --ink: #14130f;
  --muted: #9a958c;
  --pad: clamp(16px, 3vw, 70px);          /* outer side margin */
  --vgap: clamp(120px, 17vw, 300px);      /* vertical air between photos */
  --pw: clamp(195px, 31vw, 510px);        /* base photo width */
}
@media (max-width: 560px) { :root { --vgap: 60px; --pad: 12px; --pw: 47vw; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
#top { position: absolute; top: 0; }

/* ---------- fixed centred brand ---------- */
.brand {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;          /* clicks pass through to media */
  mix-blend-mode: difference;     /* stays legible over any photo */
  transition: opacity .5s ease;
  will-change: opacity;
}
.brand img {
  width: clamp(170px, 23vw, 430px);
  height: auto;
}
.brand.dim { opacity: 0; }        /* hide over footer */

/* ---------- scattered side layout: two staggered columns, lots of white ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;          /* left / right */
  align-items: start;
  /* starts blank: ~one screen of white with just the centred logo, then photos */
  padding: 86vh var(--pad) clamp(80px, 12vw, 180px);
  column-gap: clamp(10px, 2.5vw, 56px);    /* small gutter → photos reach the centre, logo overlaps them */
}
.col {
  display: flex;
  flex-direction: column;
  gap: var(--vgap);
}
.col.left  { align-items: flex-start; }    /* hug the left edge */
.col.right { align-items: flex-end; margin-top: clamp(110px, 20vw, 320px); }  /* stagger down */

.item {
  position: relative;
  width: calc(var(--pw) * var(--f, 1));
  aspect-ratio: var(--ar, 0.8);
  background: #efece6;
  overflow: hidden;
  opacity: 0;
  transform: translateY(34px) scale(.99);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.item.in { opacity: 1; transform: none; }
.item img, .item video { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 560px) {
  .gallery { column-gap: 8px; padding-top: 78vh; }
  .col.right { margin-top: 90px; }
}

/* ---------- video ---------- */
.vid { position: relative; cursor: pointer; background: #000; width: 100%; height: 100%; }
.vid .poster { width: 100%; height: 100%; object-fit: cover; }
.vid video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.vid.playing .poster { display: none; }
.vid .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .3s ease;
}
.vid .play::before {
  content: ""; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.6);
}
.vid .play::after {
  content: ""; position: absolute; border-style: solid;
  border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.vid.playing .play { opacity: 0; pointer-events: none; }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 40;
  text-align: center;
  padding: clamp(80px, 16vw, 160px) 24px clamp(50px, 8vw, 90px);
}
.footer-links {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px;
}
.footer-links a {
  color: var(--ink); text-decoration: none; font-size: 15px; letter-spacing: .04em;
  padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color .25s ease;
}
.footer-links a:hover { border-color: var(--ink); }
.footer-credit { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .item { transition: none; opacity: 1; transform: none; }
}
