/* ==========================================================
   Motion & Memory — Mitchell Lawson
   Documentary wedding films · Ottawa
   ========================================================== */

:root {
  --ink: #111311;
  --forest: #1a201b;
  --forest-2: #222a23;
  --cream: #ede6da;
  --muted: #b3aa9c;
  /* Gold sampled from the Motion & Memory logo */
  --sand: #e3c296;
  --sand-2: #f3dab8;
  --line: rgba(237, 230, 218, 0.14);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-lg: 56px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--sand); color: var(--ink); }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

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

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 7.4vw, 96px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: clamp(26px, 3vw, 38px); }
p { margin: 0 0 1.2em; text-wrap: pretty; }
em { font-style: italic; }
strong { font-weight: 600; color: #fff; }

.eyebrow {
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 18px;
  display: block;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.55;
  color: var(--cream);
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(80px, 11vw, 150px); }
.section--tight { padding-block: clamp(56px, 7vw, 90px); }
.section--forest { background: var(--forest); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 860px) {
  .split, .split--wide-left { grid-template-columns: 1fr; }
  .split > .order-first-mobile { order: -1; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  padding-block: 26px;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(17, 19, 17, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-block: 14px;
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Logo: bars mark + name, cropped from the Motion & Memory logo (img/logo*.png) */
.brand {
  display: flex; align-items: center; gap: 16px; flex-shrink: 0;
  text-decoration: none; transition: opacity 0.4s var(--ease);
}
.brand__mark { width: auto; height: 38px; transition: height 0.4s var(--ease); }
.brand__name { width: auto; height: 17px; }
.is-solid .brand__mark { height: 30px; }
/* Home page: the big logo is in the hero, so the header logo appears once you scroll */
.home .site-header:not(.is-solid) .brand { opacity: 0; pointer-events: none; }
.home.menu-open .site-header .brand { opacity: 1; pointer-events: auto; }

.logo-full { display: block; }
.logo-full img, img.logo-full { width: 100%; height: auto; }
.logo-full--hero {
  width: clamp(260px, 36vw, 480px); margin: 0 auto clamp(34px, 5vw, 56px);
  filter: drop-shadow(0 2px 14px rgba(0,0,0,.55)) drop-shadow(0 0 2px rgba(0,0,0,.35));
}
.logo-full--footer { width: 260px; margin-bottom: 26px; }
.mark { width: 42px; margin: 0 auto 34px; opacity: 0.95; }

.nav ul { list-style: none; display: flex; gap: clamp(20px, 3vw, 44px); margin: 0; padding: 0; }
.nav a {
  text-decoration: none;
  font: 500 12.5px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  padding-block: 8px;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--sand);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-cta { color: var(--sand-2); }

.menu-btn {
  display: none;
  background: none; border: 0; color: var(--cream); cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px;
}
.menu-btn span { display: block; height: 1px; background: currentColor; margin: 7px 0; transition: transform 0.3s, opacity 0.3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; gap: 12px; }
  .brand__mark, .is-solid .brand__mark { height: 28px; }
  .brand__name { height: 13px; }
  .nav {
    position: fixed; inset: 0;
    background: var(--ink);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: center; gap: 28px; }
  .nav a { font: 400 34px/1.1 var(--serif); letter-spacing: 0; text-transform: none; }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-block: 140px clamp(60px, 9vw, 110px);
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%;
  filter: grayscale(0.35) contrast(1.05) brightness(0.62) sepia(0.18);
  transform: scale(1.04);
  animation: slowzoom 18s var(--ease) forwards;
}
@keyframes slowzoom { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; transform: none; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(17,19,17,.55) 0%, rgba(17,19,17,0) 30%),
    linear-gradient(0deg, rgba(17,19,17,.96) 0%, rgba(17,19,17,.4) 45%, rgba(17,19,17,0) 70%),
    radial-gradient(ellipse at 85% 20%, rgba(214, 140, 70, .22), transparent 55%);
}
.hero h1 { max-width: 12ch; margin-bottom: 0.3em; }
.hero .lede { max-width: 34ch; color: var(--cream); opacity: 0.9; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center;
  margin-top: 36px;
}

/* Centred, cinematic video hero */
.hero--video { align-items: center; text-align: center; padding-block: 120px 120px; }
.hero--video::before {
  /* Footage is bright and sunlit: darken overall, extra in the centre behind the text */
  background:
    linear-gradient(180deg, rgba(17,19,17,.7) 0%, rgba(17,19,17,.3) 25%, rgba(17,19,17,.3) 65%, rgba(17,19,17,.97) 100%),
    radial-gradient(ellipse 60% 55% at center, rgba(17,19,17,.55) 0%, rgba(17,19,17,0) 100%);
}
.hero--video .hero__media video,
.hero--video .hero__media img { object-position: center; filter: brightness(0.62) saturate(0.85) sepia(0.15) contrast(1.05); }
/* Headline: one line at every width */
.hero .hero__title {
  font-size: clamp(17px, 4.4vw, 40px);
  white-space: nowrap;
  max-width: none;
  margin: 0 auto;
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
}
.hero--video .hero__meta { justify-content: center; margin-top: clamp(28px, 4.5vh, 48px); }

/* Keep logo + headline + button inside the first screen, even on short screens */
.hero--video { min-height: 100svh; padding-block: 90px 90px; }
/* Logo is the focal point: noticeably wider and taller-lettered than the headline */
.hero--video .logo-full--hero {
  width: min(clamp(300px, 58vw, 860px), 100%, 50svh * 3.9);
  margin-bottom: clamp(20px, 4vh, 44px);
}
@media (max-width: 600px) {
  .hero--video .logo-full--hero { width: min(94%, 50svh * 3.9); }
}

.btn--lg { font-size: 14px; padding: 24px 46px; gap: 16px; letter-spacing: 0.24em; }
@media (max-width: 480px) { .btn--lg { font-size: 13px; padding: 21px 32px; } }

.hero__toggle {
  position: absolute; right: var(--gutter); bottom: 32px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(237,230,218,.45); background: rgba(17,19,17,.3);
  color: var(--cream); cursor: pointer; display: grid; place-items: center;
}
.hero__toggle[hidden] { display: none; }
.hero__toggle span { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.hero__toggle.is-paused span {
  width: 0; height: 0; border: 0; margin-left: 3px;
  border-left: 11px solid currentColor; border-block: 7px solid transparent;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; translate: -50% 0;
  width: 26px; height: 42px; border: 1px solid rgba(237,230,218,.5); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 9px; width: 2px; height: 8px; margin-left: -1px;
  background: var(--sand-2); border-radius: 2px; animation: scrollcue 2s var(--ease) infinite;
}
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; } }

.page-hero {
  padding-block: clamp(170px, 20vw, 240px) clamp(50px, 7vw, 90px);
  text-align: center;
}
.page-hero .lede { max-width: 40ch; margin-inline: auto; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12.5px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none;
  padding: 18px 30px;
  border: 1px solid var(--sand);
  color: var(--ink); background: var(--sand);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}
.btn:hover { background: var(--sand-2); border-color: var(--sand-2); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(237,230,218,.45); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link {
  font: 500 12.5px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--sand-2);
  border-bottom: 1px solid currentColor; padding-bottom: 6px;
}
.text-link:hover { color: var(--cream); }

/* ---------- Framed photos ---------- */
.frame {
  position: relative;
  background: var(--forest);
  padding: clamp(10px, 1.4vw, 18px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
}
.frame::after {
  content: ""; position: absolute; inset: -12px 12px 12px -12px;
  border: 1px solid var(--line); z-index: -1; pointer-events: none;
}
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.frame--land img { aspect-ratio: 3 / 2; }
.frame--bw img { filter: grayscale(1) contrast(1.05); }

/* ---------- Intro / statement ---------- */
.statement {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.32;
  text-align: center;
  max-width: 26ch;
  margin-inline: auto;
}
.statement em { color: var(--sand-2); }

/* ---------- Films grid ---------- */
.films { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 760px) { .films { grid-template-columns: 1fr; } }
.film-card { text-decoration: none; display: block; }
.film-card__media {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--forest-2);
}
.film-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.25) brightness(.78) sepia(.12);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.film-card:hover .film-card__media img { transform: scale(1.04); filter: grayscale(0) brightness(.9); }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 78px; height: 78px; border-radius: 50%;
  border: 1px solid rgba(237,230,218,.7);
  display: grid; place-items: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  background: rgba(17,19,17,.25);
  transition: transform 0.5s var(--ease), background 0.4s;
}
.play::before {
  content: ""; margin-left: 5px;
  border-left: 16px solid var(--cream);
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.film-card:hover .play { transform: scale(1.08); background: rgba(196,168,138,.35); }
.film-card__body { padding-top: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.film-card h3 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); }
.film-card .meta { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- Video embed ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.9);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; cursor: pointer; background: none; color: var(--cream);
}
.video__poster img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6) sepia(.15); }
.video__poster .play { width: 96px; height: 96px; }
.video__poster:hover .play { transform: scale(1.08); background: rgba(196,168,138,.35); }
.video__soon {
  position: absolute; left: 0; right: 0; bottom: 24px; text-align: center;
  font: 500 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--sand-2);
}

/* ---------- Steps (The Experience) ---------- */
.steps { display: grid; gap: clamp(80px, 10vw, 140px); }
.step {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 0;
}
.step__card {
  position: relative;
  background: var(--forest);
  border-radius: var(--radius-lg) 0 var(--radius-lg) 0;
  padding: clamp(36px, 5vw, 68px);
  z-index: 1;
  margin-right: -60px;
}
.step:nth-child(even) .step__card {
  order: 2; margin-right: 0; margin-left: -60px;
  border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
}
.step__num {
  font: italic 400 clamp(64px, 8vw, 110px)/0.8 var(--serif);
  color: var(--sand);
  opacity: 0.55;
  display: block;
  margin-bottom: 18px;
}
.step__card h3 { margin-bottom: 0.6em; }
.step__card p, .step__card li { color: #d6cfc3; }
.step__card ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.step__card li { margin-bottom: .6em; }
.step__card li::marker { color: var(--sand); font-family: var(--serif); }
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; }
  .step__card, .step:nth-child(even) .step__card {
    order: 2; margin: -50px 0 0; border-radius: 0 0 var(--radius-lg) 0;
  }
  .step .frame { margin-inline: 24px; }
}

/* ---------- About ---------- */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.mosaic img:first-child { grid-row: span 2; aspect-ratio: auto; }
.chapter { margin-bottom: 56px; }
.chapter h3 { color: var(--sand-2); }
.pull {
  font: italic 400 clamp(26px, 3vw, 38px)/1.35 var(--serif);
  border-left: 1px solid var(--sand);
  padding-left: clamp(20px, 3vw, 36px);
  margin: 40px 0;
  color: var(--cream);
}

/* ---------- Quote band ---------- */
.quote-band { text-align: center; }
.quote-band blockquote {
  margin: 0 auto; max-width: 30ch;
  font: italic 400 clamp(28px, 3.6vw, 48px)/1.3 var(--serif);
}
.quote-band cite {
  display: block; margin-top: 26px; font: 500 12px/1 var(--sans);
  letter-spacing: .26em; text-transform: uppercase; color: var(--sand); font-style: normal;
}

/* ---------- CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center;
  padding-block: clamp(100px, 14vw, 180px);
}
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.32) grayscale(.4) sepia(.2); }
.cta h2 { max-width: 14ch; margin-inline: auto; }
.cta p { max-width: 44ch; margin: 0 auto 36px; color: #d6cfc3; }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field label {
  display: block; margin-bottom: 10px;
  font: 500 11.5px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--sand);
}
.field label .req { color: var(--sand-2); }
.field input, .field textarea, .field select {
  width: 100%;
  font: 400 17px/1.5 var(--sans);
  color: var(--cream);
  background: rgba(237,230,218,.04);
  border: 1px solid rgba(237,230,218,.22);
  border-radius: 4px;
  padding: 15px 16px;
  transition: border-color .3s, background .3s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c4a88a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select option { background: var(--forest); }
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--sand); background: rgba(237,230,218,.07);
}
.field input[type="date"] { color-scheme: dark; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; min-height: 1.5em; margin: 0; }
.form-status.is-error { color: #f0a58a; }
.form-success {
  text-align: center; padding: clamp(40px, 6vw, 70px);
  background: var(--forest); border-radius: var(--radius-lg) 0 var(--radius-lg) 0;
}
.form-success h3 { color: var(--sand-2); }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 70px 40px; background: var(--ink); }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font: 500 11.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--cream); }
.footer-base {
  margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--muted);
}

/* ---------- Film burn rail ----------
   One continuous burned edge down the right side of every page, top to bottom.
   img/film-burn-rail.jpg is the burn texture mirrored so it tiles with no seam;
   "lighten" blending drops its dark side into whatever is underneath. */
body { position: relative; }
body::before {
  content: "";
  position: absolute; top: 0; bottom: 0; right: 0; z-index: 60;
  width: clamp(48px, 9vw, 150px);
  background: url("/img/film-burn-rail.jpg") right top / 100% auto repeat-y;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.6) 30%, #000 60%);
  mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.6) 30%, #000 60%);
  mix-blend-mode: lighten;
  filter: saturate(1.25) brightness(1.05);
  pointer-events: none;
  animation: burn-flicker 7s steps(1, end) infinite;
}
/* The black, dusty film stock from the same scan, laid faintly over the whole page.
   "lighten" means it only shows where the page is darker than it (the dark
   backgrounds), so photos and text stay clean while the background reads as film. */
html::after {
  content: "";
  position: fixed; inset: 0; z-index: 55;
  background: url("/img/film-texture.jpg") center / cover no-repeat;
  mix-blend-mode: lighten;
  opacity: .9;
  pointer-events: none;
}
@keyframes burn-flicker {
  0%   { opacity: 0.92; }
  6%   { opacity: 1; }
  8%   { opacity: 0.72; }
  9%   { opacity: 1; }
  41%  { opacity: 0.95; }
  43%  { opacity: 0.8; }
  44%  { opacity: 1; }
  71%  { opacity: 0.9; }
  72%  { opacity: 0.68; }
  73%  { opacity: 0.97; }
}
@media (max-width: 640px) {
  body::before { width: 26px; }
  :root { --gutter: 30px; }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Hand-drawn emphasis (contact headline) ---------- */
.ink { position: relative; display: inline-block; color: var(--sand-2); white-space: nowrap; }
.ink svg {
  position: absolute; left: -3%; bottom: -0.06em; width: 106%; height: 0.22em;
  overflow: visible; pointer-events: none;
}
.ink path {
  fill: none; stroke: var(--sand); stroke-width: 2.5; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: ink-draw 1.5s 0.6s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes ink-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ink path { animation: none; stroke-dashoffset: 0; } }

/* ---------- Soft scroll reveals ---------- */
.reveal { transition-delay: var(--d, 0s); }
.reveal--soft {
  transform: translateY(40px);
  filter: blur(6px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease), filter 1.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal--soft.is-in { filter: none; }
.reveal-img {
  opacity: 0;
  clip-path: inset(10% 6% 10% 6%);
  transition: clip-path 1.8s var(--ease), opacity 1.4s var(--ease);
}
.reveal-img.is-in { opacity: 1; clip-path: inset(0 0 0 0); }
.no-js .reveal-img { opacity: 1; clip-path: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal--soft { filter: none; }
  .reveal-img { opacity: 1; clip-path: none; transition: none; }
}

/* ---------- About: philosophy + approach ---------- */
.philosophy {
  background: linear-gradient(180deg, var(--ink) 0%, var(--forest) 20%, var(--forest) 80%, var(--ink) 100%);
  padding-block: clamp(110px, 15vw, 200px);
}
.philosophy h2 { margin-bottom: 0.2em; }
.philosophy__beat {
  font: italic 400 clamp(24px, 2.6vw, 32px)/1.4 var(--serif);
  color: var(--sand-2);
  text-align: center;
  max-width: 30ch;
  margin: clamp(44px, 6vw, 70px) auto;
}

.approach__head { margin-bottom: clamp(60px, 9vw, 120px); }
.approach__head h2 { max-width: 18ch; margin-inline: auto; }
.approach__row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  margin-bottom: clamp(90px, 13vw, 170px);
}
.approach__row:last-child { margin-bottom: 0; }
.approach__row--flip { grid-template-columns: 0.9fr 1.1fr; }
.approach__row--flip .photo { order: 2; }
.approach__text h3 { color: var(--sand-2); }
.approach__text p { color: var(--muted); max-width: 46ch; }
.approach__num {
  display: block;
  font: italic 400 22px/1 var(--serif);
  color: var(--sand);
  margin-bottom: 18px;
}
.approach__num::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 48px; height: 1px; background: var(--sand); opacity: .5; margin-left: 14px;
}

.photo { position: relative; margin: 0; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transform: translateY(var(--py, 0px)) scale(1.12);
  will-change: transform;
}
.photo--land img { aspect-ratio: 3 / 2; }
.approach__row .photo:not(.photo--land) { width: min(100%, 440px); justify-self: center; }

@media (max-width: 860px) {
  .approach__row, .approach__row--flip { grid-template-columns: 1fr; gap: 32px; }
  .approach__row--flip .photo { order: 0; }
  .approach__row .photo:not(.photo--land) { width: min(100%, 380px); }
}
@media (prefers-reduced-motion: reduce) { .photo img { transform: none; } }

/* ---------- Films page: black & white until hover ---------- */
.films--mono .film-card__media img {
  filter: grayscale(1) brightness(.7) contrast(1.08);
  transition: transform 1.2s var(--ease), filter 0.9s var(--ease);
}
.films--mono .film-card:hover .film-card__media img,
.films--mono .film-card:focus-visible .film-card__media img {
  filter: grayscale(0) saturate(1.15) brightness(.95);
  transform: scale(1.04);
}

/* ---------- Film lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
  display: grid; place-items: center;
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(8, 9, 8, 0); transition: background .5s var(--ease); }
.lightbox.is-open::backdrop { background: rgba(8, 9, 8, .92); }
.lightbox__frame {
  position: relative;
  width: min(92vw, calc((100svh - 140px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 50px 140px -30px rgba(0,0,0,.95);
  transform-origin: 0 0;
  transition: transform .65s cubic-bezier(.2, .8, .2, 1);
}
.lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__close {
  position: fixed; top: clamp(14px, 3vw, 30px); right: clamp(14px, 3vw, 30px);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(237,230,218,.45); background: rgba(17,19,17,.4); color: var(--cream);
  font: 300 26px/1 var(--sans); cursor: pointer;
  opacity: 0; transition: opacity .4s .25s, background .3s;
}
.lightbox.is-open .lightbox__close { opacity: 1; }
.lightbox__close:hover { background: rgba(196,168,138,.35); }
@media (prefers-reduced-motion: reduce) {
  .lightbox__frame, .lightbox::backdrop { transition: none; }
}

/* ---------- Films page: one film per row ---------- */
.films--single { grid-template-columns: 1fr; gap: clamp(56px, 7vw, 100px); max-width: 1080px; }
.film-card--feature .film-card__media { aspect-ratio: 16 / 9; }
.film-card__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.film-card__time {
  display: block;
  font: 500 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  color: var(--sand); white-space: nowrap;
}
.film-card__name { margin: 0; font-size: clamp(36px, 4.6vw, 60px); color: var(--cream); }
.film-card--feature .play { width: clamp(70px, 8vw, 104px); height: clamp(70px, 8vw, 104px); }
.film-card__desc {
  max-width: 62ch;
  margin: clamp(18px, 2.2vw, 28px) 0 0;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.film-card--feature:hover .film-card__desc,
.film-card--feature:focus-visible .film-card__desc { opacity: 1; transform: none; }
/* Phones/tablets have no hover: show colour + description as the film scrolls into view */
@media (hover: none) {
  .film-card__desc { opacity: 1; transform: none; }
}

.film-card__desc > p {
  font: italic 400 clamp(20px, 2vw, 25px)/1.5 var(--serif);
  color: var(--cream); margin: 0 0 20px;
}
.film-card__quote {
  margin: 0;
  padding-left: clamp(18px, 2.4vw, 28px);
  border-left: 1px solid var(--sand);
  font: 400 clamp(15px, 1.3vw, 17px)/1.75 var(--sans);
  color: var(--muted);
}
.film-card__quote cite {
  display: block; margin-top: 12px;
  font: 500 11.5px/1 var(--sans); font-style: normal; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sand);
}
.film-card__quote cite::before { content: "— "; }

/* Films page: size each film so the video, description and quote fit on one screen */
.films--single { max-width: none; justify-items: center; scroll-margin-top: 110px; }
.film-card--feature { width: min(100%, max(560px, calc((100svh - 440px) * 16 / 9)), 980px); }

/* Small scroll arrow under a page intro */
.scroll-arrow {
  display: inline-block; margin-top: clamp(26px, 4vw, 44px);
  width: 30px; height: 52px; color: var(--sand);
  animation: arrow-drift 2.4s var(--ease) infinite;
}
.scroll-arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.scroll-arrow:hover { color: var(--sand-2); }
@keyframes arrow-drift { 0%, 100% { transform: translateY(0); opacity: .65; } 50% { transform: translateY(8px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-arrow { animation: none; } }

/* Films page: shorter intro so the first film appears sooner */
.page-hero--compact { padding-block: clamp(120px, 13vw, 160px) clamp(24px, 3vw, 40px); }
.page-hero--compact + section { padding-top: clamp(20px, 3vw, 40px) !important; }

/* Home page: no burn edge or film texture, so the hero video stays clean */
.page-home::after, .page-home body::after { display: none; }
/* …but bring the burn edge back from the end of the hero down (--burn-top is the hero height, set in main.js) */
.page-home body::before {
  top: var(--burn-top, 100svh);
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.6) 30%, #000 60%), linear-gradient(to bottom, transparent 0, #000 160px);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.6) 30%, #000 60%), linear-gradient(to bottom, transparent 0, #000 160px);
  mask-composite: intersect;
}
.film-overlay { display: none; }
.page-home .film-overlay {
  display: block;
  position: absolute; left: 0; right: 0; bottom: 0; top: var(--burn-top, 100svh); z-index: 55;
  background: url("/img/film-texture.jpg") center top / max(100vw, 1200px) auto repeat fixed;
  mix-blend-mode: lighten;
  opacity: .9;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 160px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 160px);
}
.page-home .film-overlay::after {
  content: ""; position: absolute; inset: 0; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Hero video: no slow zoom (scaling a video every frame made it shimmer) */
.hero__media video { animation: none; transform: none; }

/* Home page: tighter rhythm between sections, like the About page */
.page-home .section { padding-block: clamp(56px, 7vw, 100px); }

/* Home: camera formats */
.format { margin-top: clamp(26px, 3vw, 38px); padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--line); }
.format h3 { font-size: clamp(24px, 2.2vw, 30px); color: var(--sand-2); margin-bottom: .35em; }
.format p { margin: 0; }
.cameras__media { position: sticky; top: 120px; }
@media (max-width: 860px) { .cameras__media { position: static; } }

/* "Scroll down" label with the drifting arrow under it */
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: clamp(20px, 3vw, 36px);
  text-decoration: none; color: var(--sand);
  font: 500 11.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
}
.scroll-cue .scroll-arrow { margin-top: 10px; }
.scroll-cue:hover { color: var(--sand-2); }
#about-body { scroll-margin-top: 90px; }

/* About page: tighter rhythm so the next section always peeks into view */
.about-body { padding-block: clamp(24px, 3vw, 40px) clamp(40px, 5vw, 64px) !important; }
.philosophy { padding-block: clamp(64px, 8vw, 110px); }
.approach { padding-block: clamp(56px, 7vw, 100px); }
.approach__head { margin-bottom: clamp(36px, 5vw, 64px); }
.approach__row { margin-bottom: clamp(56px, 7vw, 96px); }
.philosophy__beat { margin: clamp(28px, 4vw, 44px) auto; }

/* Home: Super 8 strip, fading into the page at top and bottom */
.super8 {
  display: block; width: 100%; height: auto; aspect-ratio: 736 / 720; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
}

/* Home: green sections melt into the black ones above and below (like the About page) */
.page-home .section--forest {
  background: linear-gradient(180deg, var(--ink) 0%, var(--forest) 20%, var(--forest) 80%, var(--ink) 100%);
}

/* About: video in place of a photo (no parallax drift: scaling video makes it shimmer) */
.photo--video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.approach__row .photo.photo--video { width: min(100%, 280px); }
.photo--bw img { filter: grayscale(1) contrast(1.05); }

/* ---------- FAQ ----------
   Each topic is a dropdown (.faq__section); inside it, each question is its own dropdown (.faq__item). */
.faq { padding-block: clamp(10px, 2vw, 30px) clamp(70px, 9vw, 120px); }
.faq__section { border-top: 1px solid var(--line); }
.faq__section:last-of-type { border-bottom: 1px solid var(--line); }
.faq__section > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(14px, 2vw, 24px);
  padding: clamp(22px, 3vw, 34px) 0;
}
.faq__section > summary::-webkit-details-marker, .faq__item summary::-webkit-details-marker { display: none; }
.faq__num { font: italic 400 20px/1 var(--serif); color: var(--sand); }
.faq__title { font: 500 clamp(28px, 3.4vw, 42px)/1.1 var(--serif); color: var(--cream); transition: color .3s var(--ease); }
.faq__section > summary:hover .faq__title, .faq__section[open] > summary .faq__title { color: var(--sand-2); }
.faq__count { font: 500 11.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.faq__section > summary::after, .faq__item summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background:
    linear-gradient(var(--sand), var(--sand)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--sand), var(--sand)) center / 1.5px 100% no-repeat;
  transition: transform .45s var(--ease);
}
.faq__section[open] > summary::after, .faq__item[open] summary::after { transform: rotate(45deg); }
.faq__list { padding: 0 0 clamp(18px, 2.4vw, 30px) clamp(0px, 4.4vw, 46px); }
.faq__section[open] .faq__list { animation: faq-open .6s var(--ease); }

.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(16px, 1.8vw, 22px) 0;
  font: 500 clamp(19px, 1.8vw, 23px)/1.35 var(--serif); color: var(--cream);
  transition: color .3s var(--ease);
}
.faq__item summary::after { width: 12px; height: 12px; }
.faq__item summary:hover { color: var(--sand-2); }
.faq__a { padding: 0 0 clamp(18px, 2.2vw, 26px); color: var(--muted); max-width: 62ch; }
.faq__a p { margin: 0 0 .9em; }
.faq__a p:last-child, .faq__a ul:last-child { margin-bottom: 0; }
.faq__a ul { margin: 0 0 .9em; padding-left: 1.2em; }
.faq__a li { margin-bottom: .3em; }
.faq__a li::marker { color: var(--sand); }
.faq__a strong { color: var(--cream); }
.faq__item[open] .faq__a { animation: faq-open .6s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .faq__item[open] .faq__a, .faq__section[open] .faq__list { animation: none; }
  .faq__section > summary::after, .faq__item summary::after { transition: none; }
}
@media (max-width: 600px) { .faq__count { display: none; } .faq__section > summary { grid-template-columns: auto 1fr auto; } }

.faq__contact { text-align: center; margin-top: clamp(48px, 6vw, 80px); }
.faq__contact p { font: italic 400 clamp(22px, 2.2vw, 28px)/1.4 var(--serif); color: var(--cream); margin-bottom: 22px; }

/* ---------- Contact: "How should it feel?" word bank ---------- */
.feel { border: 0; margin: 0; padding: 0; min-width: 0; }
.feel legend {
  padding: 0; margin-bottom: 16px;
  font: 500 clamp(22px, 2.2vw, 28px)/1.3 var(--serif); color: var(--cream);
}
.feel__hint {
  display: inline-block; margin-left: 10px; vertical-align: middle;
  font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sand);
  border: 1px solid rgba(227,194,150,.5); border-radius: 999px; padding: 6px 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid rgba(237,230,218,.28);
  background: rgba(237,230,218,.04);
  font: 400 15.5px/1 var(--sans); color: var(--cream);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s, transform .35s var(--ease), opacity .3s;
}
.chip:hover span { border-color: var(--sand); }
.chip input:checked + span {
  background: var(--sand); border-color: var(--sand); color: var(--ink);
  transform: scale(1.06);
}
.chip input:checked + span::before { content: "✓ "; }
.chip input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 3px; }
.chip input:disabled + span { opacity: .35; cursor: not-allowed; }
.chip input:disabled { cursor: not-allowed; }
.feel__count { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.feel.is-full .feel__count { color: var(--sand-2); }
@media (prefers-reduced-motion: reduce) { .chip input:checked + span { transform: none; } }
.feel .chip { display: inline-block; margin: 0; font: inherit; letter-spacing: normal; text-transform: none; }
.feel .chip span { letter-spacing: .01em; text-transform: none; }
