/* ───────────────────────────────────────────
   Brodie Duncan — landing
   palette drawn from the work:
   bone #EAE4D8 · ink #131410 · bronze #A97E48
   moss #21392B · slate #8E938D
─────────────────────────────────────────── */

@font-face {
  font-family: "Italiana";
  src: url("../assets/fonts/italiana-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-roman.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  --bone: #eae4d8;
  --bone-dim: #d8d0c0;
  --ink: #131410;
  --ink-soft: #1c1d18;
  --bronze: #a97e48;
  --bronze-light: #c9a36c;
  --slate: #8e938d;
  --serif: "Italiana", Georgia, serif;
  --serif-2: "Cormorant Garamond", Georgia, serif;
  --sans: "Space Grotesk", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.has-gsap { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--bronze); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── grain ─────────────────────────────── */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 60;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-2%); }
  80% { transform: translate(3%,3%); }
}

/* ── cursor ────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bone);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%,-50%);
  display: flex; align-items: center; justify-content: center;
  transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1);
}
.cursor.is-big { width: 72px; height: 72px; }
.cursor__label {
  font-family: var(--sans); font-size: 11px; letter-spacing: .08em;
  color: var(--ink); opacity: 0; transition: opacity .25s;
  text-transform: uppercase;
}
.cursor.is-big .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ── preloader ─────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: stretch; justify-content: flex-end;
  padding: 4vmin 5vmin;
}
.preloader__inner {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.5vmin;
}
.preloader__name {
  font-family: var(--serif); font-size: clamp(22px, 4vmin, 42px);
  letter-spacing: .06em;
}
.preloader__count {
  font-family: var(--serif); font-size: clamp(48px, 12vmin, 140px);
  line-height: .85; color: var(--bronze-light);
  font-variant-numeric: tabular-nums;
}
.preloader__bar {
  height: 1px; background: rgba(234,228,216,.18);
  overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--bronze-light);
}

/* ── header ────────────────────────────── */
.site-head {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 5vmin;
  mix-blend-mode: difference;
  color: var(--bone);
}
.site-head__logo {
  font-family: var(--serif);
  font-size: 19px; letter-spacing: .12em; text-transform: uppercase;
}
.site-head__logo span { color: var(--bronze-light); margin-left: .35em; }
.site-head__nav { display: flex; gap: 2.2em; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.site-head__nav a, .site-head__cta { position: relative; padding: 2px 0; }
.site-head__nav a::after, .site-head__cta::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s cubic-bezier(.77,0,.18,1);
}
.site-head__nav a:hover::after, .site-head__cta:hover::after { transform: scaleX(1); transform-origin: left; }
.site-head__cta { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze-light); }
@media (max-width: 720px) { .site-head__nav { display: none; } }

/* ── hero ──────────────────────────────── */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #181a15 0%, #0e0f0c 60%, #090a08 100%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.hero__eyebrow {
  display: flex; gap: 1.2em;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 3.5vmin;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 14.5vw, 230px);
  line-height: .88;
  letter-spacing: .035em;
  text-shadow: 0 2px 60px rgba(9,10,8,.55);
}
.hero__line { display: block; overflow: hidden; }
.hero__line--offset { margin-left: .9em; }
.hero__line .char { display: inline-block; will-change: transform; }
.hero__sub {
  margin-top: 4vmin;
  font-family: var(--serif-2); font-style: italic;
  font-size: clamp(16px, 2.1vmin, 22px);
  color: var(--bone-dim);
  text-shadow: 0 1px 24px rgba(9,10,8,.9), 0 0 8px rgba(9,10,8,.6);
}
.hero__eyebrow span { text-shadow: 0 1px 18px rgba(9,10,8,.9); }

.hero__meta {
  position: absolute; bottom: 4vmin; left: 5vmin; right: 5vmin;
  display: flex; justify-content: space-between;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--slate);
  z-index: 2; pointer-events: none;
}
.hero__scroll {
  position: absolute; bottom: 3.6vmin; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--slate); z-index: 2;
}
.hero__scroll em {
  width: 1px; height: 52px;
  background: linear-gradient(var(--bronze-light), transparent);
  animation: drop 1.8s cubic-bezier(.77,0,.18,1) infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── manifesto ─────────────────────────── */
.manifesto {
  position: relative; z-index: 3;
  background: var(--bone); color: var(--ink);
  padding: 18vmin 7vw 14vmin;
  border-radius: 0;
}
.manifesto__kicker {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 5vmin;
}
.manifesto__text {
  font-family: var(--serif-2); font-weight: 400;
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.18;
  max-width: 18em;
}
.manifesto__text .word { opacity: .14; display: inline-block; }
.manifesto__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw;
  margin-top: 9vmin; max-width: 900px; margin-left: auto;
  font-size: 15.5px; line-height: 1.75; color: #4d4c45;
}
@media (max-width: 720px) { .manifesto__cols { grid-template-columns: 1fr; } }

/* ── works ─────────────────────────────── */
.works {
  position: relative; z-index: 3;
  background: var(--bone); color: var(--ink);
  padding: 4vmin 7vw 16vmin;
}
.works__head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid rgba(19,20,16,.25);
  padding-top: 3.5vmin; margin-bottom: 10vmin;
}
.works__head h2, .films__head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 7vw, 110px);
  letter-spacing: .02em; line-height: 1;
  overflow: hidden;
}
.works__head span { font-family: var(--serif-2); font-style: italic; font-size: clamp(16px,2vw,24px); color: var(--bronze); }

.work {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 5vw;
  align-items: end;
  margin-bottom: 16vmin;
}
.work--flip { grid-template-columns: minmax(0,4fr) minmax(0,7fr); }
.work--flip .work__media { order: 2; }
.work--flip .work__info { order: 1; text-align: right; }
.work--flip .work__info .work__note { margin-left: auto; }

.work__media {
  position: relative; overflow: hidden;
  background: var(--bone-dim);
  aspect-ratio: 4 / 4.6;
}
.work:nth-child(odd) .work__media { aspect-ratio: 4/4.1; }
.work__media img {
  transform: scale(1.15);
  will-change: transform;
  transition: filter .6s;
}
.work__media:hover img { filter: saturate(1.08); }

.work__info { padding-bottom: 1.5vmin; }
.work__index {
  font-family: var(--serif-2); font-style: italic;
  font-size: 15px; color: var(--bronze);
}
.work__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 1.05; margin: .25em 0 .4em;
}
.work__spec {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: #6d6c63; margin-bottom: 1.6em;
}
.work__note { font-size: 15px; line-height: 1.7; color: #4d4c45; max-width: 34ch; }

@media (max-width: 820px) {
  .work, .work--flip { grid-template-columns: 1fr; gap: 6vmin; align-items: start; }
  .work--flip .work__media { order: 1; }
  .work--flip .work__info { order: 2; text-align: left; }
  .work--flip .work__info .work__note { margin-left: 0; }
}

/* ── films ─────────────────────────────── */
.films {
  position: relative; z-index: 3;
  background: var(--ink); color: var(--bone);
  padding: 16vmin 7vw;
}
.films__head { margin-bottom: 8vmin; display: flex; align-items: end; justify-content: space-between; gap: 4vw; flex-wrap: wrap; }
.films__head p { color: var(--slate); font-size: 15px; max-width: 32ch; }
.films__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4vw;
  align-items: start;
}
.film {
  position: relative; overflow: hidden;
  aspect-ratio: 9 / 14;
  background: var(--ink-soft);
}
.film--late { margin-top: 10vmin; }
.film video { transform: scale(1.12); will-change: transform; }
.film figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 20px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(9,10,8,.65));
}
.film figcaption span:first-child { font-family: var(--serif); font-size: 19px; letter-spacing: .08em; text-transform: none; }
@media (max-width: 720px) {
  .films__row { grid-template-columns: 1fr; }
  .film--late { margin-top: 0; }
}

/* ── contact ───────────────────────────── */
.contact {
  position: relative; z-index: 3;
  background: var(--ink); color: var(--bone);
  padding: 6vmin 0 0;
  border-top: 1px solid rgba(234,228,216,.12);
  overflow: hidden;
}
.contact__marquee { overflow: hidden; white-space: nowrap; padding: 2.5vmin 0; opacity: .5; }
.contact__track { display: inline-flex; will-change: transform; }
.contact__track span {
  font-family: var(--serif-2); font-style: italic;
  font-size: clamp(18px, 2.6vw, 30px);
  color: var(--bronze-light);
}
.contact__mail {
  display: block; text-align: center;
  padding: 9vmin 5vw 10vmin;
}
.contact__mail span {
  display: block; overflow: hidden;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 10.5vw, 170px);
  line-height: .98; letter-spacing: .02em;
}
.contact__mail em {
  font-family: var(--serif-2); font-style: italic;
  color: var(--bronze-light);
  transition: color .4s;
}
.contact__mail:hover em { color: var(--bone); }
.contact__base {
  display: flex; justify-content: space-between; gap: 3vw; flex-wrap: wrap;
  padding: 3vmin 5vmin 4vmin;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate);
  border-top: 1px solid rgba(234,228,216,.1);
}
.contact__base a:hover { color: var(--bone-dim); }

/* ── reveal helpers ────────────────────── */
[data-fade] { opacity: 0; transform: translateY(24px); }
html.no-js [data-fade], html.reduced [data-fade] { opacity: 1; transform: none; }
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(110%); }
html.reduced .line-mask > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll em { animation: none; }
}
