/* Snapshot Cinematics — blue-hour palette, wide credit-style headings */
:root {
  --night: #0F1A2C;
  --night-2: #16243A;
  --night-3: #22324D;
  --light: #EEE7DA;
  --slate: #8B96AB;
  --sodium: #F0A43A;
  --emerald: #35C99A;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --display-width: 110%;
  --body: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--light);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
::selection { background: var(--sodium); color: var(--night); }

.wordmark, .half .label, .statement p:first-child, h1, h2, h3, .overlay .bar .t { font-stretch: var(--display-width); word-spacing: .06em; }
.half .label small { font-stretch: 100%; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--sodium); color: var(--night); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .3s, backdrop-filter .3s;
}
.nav.solid { background: rgba(15, 26, 44, .86); backdrop-filter: blur(10px); }
.wordmark {
  font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: 0;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.wordmark span { color: var(--sodium); }
.nav ul { list-style: none; display: flex; gap: clamp(14px, 2.4vw, 32px); margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: .975rem; color: var(--light); opacity: .8; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current="page"] { opacity: 1; border-bottom-color: var(--sodium); }
@media (max-width: 560px) {
  .nav { padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .wordmark { font-size: .95rem; }
  .nav ul { gap: 12px; }
  .nav ul a { font-size: .9rem; }
  .nav ul li.hide-sm { display: none; }
}
@media (max-width: 400px) {
  .wordmark { font-size: .86rem; }
  .nav, .nav ul { gap: 10px; }
  .nav ul a { font-size: .86rem; }
}
/* smallest phones: the logo shortens to "Snapshot" so the menu still fits */
@media (max-width: 340px) { .wordmark span { display: none; } }

/* ---------- Split hero ---------- */
.split {
  --x: 50%;
  position: relative; height: 100svh; min-height: 560px;
  display: grid; grid-template-columns: var(--x) 1fr;
  transition: grid-template-columns .9s cubic-bezier(.7, 0, .2, 1);
  background: #000;
}
.half { position: relative; overflow: hidden; text-decoration: none; isolation: isolate; }
.half .media, .half .media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stills img { opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 7s linear; }
.stills img.on { opacity: 1; transform: scale(1); }
.half::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,26,44,.45) 0%, rgba(15,26,44,0) 30%, rgba(15,26,44,0) 55%, rgba(15,26,44,.85) 100%);
  transition: opacity .6s;
}
.half .label {
  position: absolute; z-index: 2; bottom: clamp(28px, 6vh, 64px);
  font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: 0;
  font-size: clamp(2.4rem, 5.5vw, 8rem); /* "Cinematics" is ~6.2em wide and must fit the 40% half */
  white-space: nowrap;
}
.half.left .label { right: clamp(14px, 1.6vw, 26px); text-align: right; }
.half.right .label { left: clamp(14px, 1.6vw, 26px); }
.half .label small {
  display: block; font-family: var(--body); font-weight: 400; font-size: clamp(.95rem, 1.2vw, 1.1rem);
  letter-spacing: 0; line-height: 1.4; margin-top: 18px; color: var(--light); opacity: .85;
}
.half .label small b { color: var(--sodium); font-weight: 500; }
.seam {
  position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; z-index: 3;
  background: var(--sodium); pointer-events: none;
  transition: left .9s cubic-bezier(.7, 0, .2, 1);
}
.split[data-lean="left"] { --x: 60%; }
.split[data-lean="right"] { --x: 40%; }
@media (max-width: 760px) {
  .split, .split[data-lean] { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; --x: 50%; }
  .seam { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 2px; margin: -1px 0 0; }
  .half .label { font-size: clamp(2.4rem, 13vw, 4.4rem); bottom: 22px; }
  .half.left .label { right: auto; left: 16px; text-align: left; }
  .half .label small { margin-top: 10px; }
}

/* ---------- Sections ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.statement { padding-top: clamp(80px, 14vh, 160px); padding-bottom: clamp(56px, 10vh, 120px); }
.statement p {
  margin: 0; max-width: 20ch;
  font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: 0;
  font-size: clamp(1.75rem, 4.2vw, 4.1rem);
}
.statement p + p { margin-top: 28px; max-width: 52ch; font-family: var(--body); font-weight: 400; font-size: 1.15rem; line-height: 1.6; color: var(--slate); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: 0; }
.textlink { color: var(--sodium); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; font-weight: 500; }
.textlink:hover { color: var(--light); }

/* selected stills: asymmetric triptych */
.triptych { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.triptych a { position: relative; overflow: hidden; display: block; background: var(--night-2); }
.triptych a:first-child { grid-row: span 2; }
.triptych img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.triptych a:first-child img { aspect-ratio: auto; }
.triptych a:hover img { transform: scale(1.03); }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; font-size: .9rem; background: linear-gradient(transparent, rgba(15,26,44,.85)); opacity: 0; transition: opacity .3s; }
.cap span { color: var(--slate); }
a:hover .cap, a:focus-visible .cap { opacity: 1; }
@media (max-width: 760px) {
  .triptych { grid-template-columns: 1fr 1fr; }
  .triptych a:first-child { grid-column: span 2; grid-row: auto; }
  .triptych a:first-child img { aspect-ratio: 3 / 2; }
  .cap { opacity: 1; }
}
/* vertical rhythm only, so it never cancels .wrap's side gutters */
.block { padding-top: clamp(64px, 11vh, 130px); padding-bottom: clamp(64px, 11vh, 130px); }

/* ---------- Film list (shared by home + films page) ---------- */
.films { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-3); }
.film { border-bottom: 1px solid var(--night-3); }
.film button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: clamp(18px, 3vh, 30px) 0; position: relative;
}
.film button:focus-visible { outline: 2px solid var(--emerald); outline-offset: 4px; }
.film h3 {
  margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.05;
  font-size: clamp(1.9rem, 5.6vw, 5.2rem); letter-spacing: 0;
  transition: color .25s;
}
.film .meta { text-align: right; color: var(--slate); font-size: .95rem; line-height: 1.45; }
.film .meta b { display: block; color: var(--light); font-weight: 500; }
.film button:hover h3, .film button:focus-visible h3 { color: var(--sodium); }
.film .peek {
  position: absolute; z-index: 5; pointer-events: none; width: clamp(240px, 28vw, 420px);
  top: 50%; left: 58%; transform: translate(-50%, -50%) scale(.92); opacity: 0;
  transition: opacity .3s, transform .4s cubic-bezier(.2, .7, .2, 1);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.film .peek.tall { width: clamp(150px, 14vw, 220px); }
.film button:hover .peek, .film button:focus-visible .peek { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.film p.logline { grid-column: 1 / -1; margin: -6px 0 0; max-width: 60ch; color: var(--slate); }
@media (hover: none), (max-width: 760px) {
  .film .peek, .film button:hover .peek, .film button:focus-visible .peek { position: static; transform: none; opacity: 1; width: 100%; grid-column: 1 / -1; order: -1; box-shadow: none; }
  .film .peek.tall, .film button:hover .peek.tall { width: 56%; }
  .film button { grid-template-columns: 1fr; gap: 12px; }
  .film .meta { text-align: left; }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.services h3 { margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.1; }
.services p { margin: 0 0 18px; color: var(--slate); max-width: 46ch; }
.services ul { list-style: none; margin: 0; padding: 0; }
.services li { padding: 12px 0; border-top: 1px solid var(--night-3); display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 20px; }
.services li span { color: var(--slate); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .services li { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.about figure { margin: 0; position: relative; }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about figcaption { margin-top: 10px; color: var(--slate); font-size: .9rem; }
.about h2 { margin: 0 0 22px; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1.1; letter-spacing: 0; }
.about p { max-width: 54ch; margin: 0 0 16px; }
.about p.dim { color: var(--slate); }
.kit { margin-top: 26px; display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; font-size: .97rem; }
.kit dt { color: var(--slate); }
.kit dd { margin: 0; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about figure { max-width: 420px; } }

/* ---------- Contact ---------- */
.contact { background: var(--sodium); color: var(--night); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.contact h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 6vw, 6rem); line-height: 1.1; letter-spacing: 0; }
.contact .lede { font-size: 1.15rem; max-width: 40ch; margin: 22px 0 0; }
.contact .lede + .lede { margin-top: 12px; font-size: 1rem; overflow-wrap: anywhere; }
.contact .lede a { font-weight: 600; }
.btn:disabled { opacity: .7; cursor: progress; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; align-content: start; }
form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 500; }
form .full { grid-column: 1 / -1; }
input, select, textarea {
  font: inherit; color: var(--night); background: rgba(255,255,255,.35);
  border: 0; border-bottom: 2px solid var(--night); border-radius: 0; padding: 10px 10px; width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; background: rgba(255,255,255,.6); border-bottom-color: var(--night); box-shadow: 0 2px 0 var(--night); }
.btn {
  justify-self: start; cursor: pointer; border: 0; background: var(--night); color: var(--light);
  padding: 14px 26px; font-weight: 600; font-size: 1rem;
}
.btn:hover { background: var(--night-3); }
.contact :focus-visible { outline-color: var(--night); }
.form-note { grid-column: 1 / -1; margin: 0; font-size: .92rem; min-height: 1.4em; }
@media (max-width: 760px) { .contact .wrap, form { grid-template-columns: 1fr; } }

footer { padding: 28px 0 36px; color: var(--slate); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--light); }

/* ---------- Page headers (stills / films) ---------- */
.page-head { padding: clamp(120px, 20vh, 200px) 0 clamp(28px, 5vh, 48px); }
.page-head h1 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1; font-size: clamp(3.2rem, 11vw, 10rem); letter-spacing: 0; }
.page-head p { margin: 22px 0 0; max-width: 50ch; color: var(--slate); font-size: 1.1rem; }

.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 22px; padding: 0; list-style: none; position: sticky; top: 62px; z-index: 20; background: var(--night); padding: 12px 0; }
.filters button { cursor: pointer; background: none; border: 0; padding: 4px 0; font-size: 1.05rem; color: var(--slate); border-bottom: 2px solid transparent; }
.filters button sup { font-size: .7em; margin-left: 2px; }
.filters button:hover { color: var(--light); }
.filters button[aria-pressed="true"] { color: var(--light); border-bottom-color: var(--sodium); }

/* justified gallery: rows sized in JS via --r (aspect ratio) */
.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery::after { content: ""; flex-grow: 999; }
.tile {
  --r: 1.5;
  flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--row, 300px));
  aspect-ratio: var(--r); min-width: 0; position: relative; overflow: hidden; background: var(--night-2);
  border: 0; padding: 0; cursor: zoom-in;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity .5s; }
.tile:hover img { transform: scale(1.025); }
.tile .cap { text-align: left; }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; }
.tile[hidden] { display: none; }
@media (max-width: 1000px) { .gallery { --row: 165px; } }
/* small tiles are too tight for captions; the viewer shows them when a photo is opened */
@media (max-width: 760px), (hover: none) { .gallery .tile .cap { display: none; } }
@media (max-width: 560px) { .gallery { --row: 105px; gap: 6px; } }

/* ---------- Lightbox / player ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(8, 13, 23, .96);
  display: grid; grid-template-rows: 1fr auto; padding: 56px var(--gutter) 20px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
.overlay.open { opacity: 1; visibility: visible; transition: opacity .25s; }
.overlay .stage { min-height: 0; display: grid; place-items: center; }
.overlay .stage img, .overlay .stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.overlay .bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; }
.overlay .bar .t { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; }
.overlay .bar .t span { display: block; font-family: var(--body); font-weight: 400; font-size: .92rem; color: var(--slate); margin-top: 4px; }
.ctrl { display: flex; gap: 8px; }
.ctrl[hidden] { display: none; }
.ctrl button, .close {
  cursor: pointer; background: none; border: 1px solid var(--night-3); color: var(--light);
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.2rem;
}
.ctrl button:hover, .close:hover { border-color: var(--sodium); color: var(--sodium); }
.close { position: absolute; top: 10px; right: var(--gutter); }

/* ---------- Films page extras ---------- */
.feature { position: relative; margin-bottom: clamp(40px, 7vh, 80px); }
.feature video { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.feature .play {
  position: absolute; left: clamp(14px, 3vw, 40px); bottom: clamp(14px, 3vw, 40px);
  cursor: pointer; border: 0; background: var(--sodium); color: var(--night);
  padding: 14px 24px; font-weight: 600; font-size: 1rem;
}
.feature .play:hover { background: var(--light); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .stills img { transform: none !important; }
}
