:root {
  --bg: #070504;
  --bg-2: #0d0906;
  --brass: #c58a3e;
  --brass-hi: #e8b366;
  --ivory: #e9dcc3;
  --dim: #8f8068;
  --serif: "P052", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --gutter: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(17px, 1.3vw + 11px, 21px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain over everything, very quiet */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; }

/* ---------- top ---------- */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding: 26px var(--gutter);
  opacity: 0;
  animation: fade 1.6s ease 3.2s forwards;
}
.top-link {
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  transition: color .4s;
}
.top-link:hover { color: var(--brass-hi); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px var(--gutter) 110px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(120, 66, 14, .22), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.65) 100%),
    var(--bg);
  overflow: hidden;
}

#embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mark {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 1330 / 480;
  opacity: 0;
  filter: blur(8px);
  animation: arrive 3s cubic-bezier(.2, .6, .2, 1) .5s forwards;
}
.mark img {
  display: block;
  width: 100%;
  height: auto;
}

/* the flame's light, breathing over the picture */
.glow {
  position: absolute;
  left: 21.9%;
  top: 34.4%;
  width: 20%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 190, 90, .55) 0%, rgba(255, 150, 40, .18) 30%, transparent 68%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: breathe 2.4s ease-in-out infinite, flicker 0.37s steps(2, end) infinite;
}

.tagline {
  margin: clamp(22px, 4vw, 48px) 0 0;
  font-size: clamp(.7rem, .55rem + .5vw, .9rem);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0;
  animation: fade 2s ease 3s forwards;
}

.scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  width: 24px;
  height: 56px;
  margin-left: -12px;
  opacity: 0;
  animation: fade 2s ease 4s forwards;
}
.scroll span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--brass));
  transform-origin: top;
  animation: drip 2.8s ease-in-out infinite;
}

/* ---------- about ---------- */
.about {
  padding: clamp(110px, 18vw, 240px) var(--gutter) clamp(70px, 10vw, 140px);
  text-align: center;
}
.about h2 {
  margin: 0 auto;
  max-width: 16ch;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ivory);
}
.about p {
  margin: clamp(28px, 4vw, 52px) auto 0;
  max-width: 32em;
  color: var(--dim);
}

/* ---------- work ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.work article {
  padding: clamp(36px, 5vw, 64px) clamp(16px, 3vw, 40px);
  text-align: center;
  border-top: 1px solid rgba(197, 138, 62, .28);
}
.work article + article { border-left: 1px solid rgba(197, 138, 62, .12); }
.work h3 {
  margin: 0 0 14px;
  font-weight: 400;
  font-size: clamp(.8rem, .65rem + .5vw, 1rem);
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--brass-hi);
  padding-left: .4em;
}
.work p { margin: 0 auto; max-width: 15em; color: var(--ivory); opacity: .82; }

/* ---------- ident ---------- */
.ident {
  padding: clamp(120px, 16vw, 220px) var(--gutter) 0;
  text-align: center;
}
.eyebrow {
  margin: 0 0 28px;
  font-size: .75rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--brass);
  padding-left: .42em;
}
.player {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 0 0 1px rgba(197, 138, 62, .22), 0 40px 120px rgba(150, 80, 10, .18);
  overflow: hidden;
}
.player video { width: 100%; height: 100%; display: block; object-fit: cover; }
.play {
  position: absolute;
  left: 50%;
  bottom: 7%;
  margin-left: -34px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(232, 179, 102, .6);
  background: rgba(7, 5, 4, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .5s, border-color .5s, background .5s;
}
.play svg { width: 26px; height: 26px; fill: var(--brass-hi); margin-left: 4px; }
.play:hover, .play:focus-visible { transform: scale(1.1); border-color: var(--brass-hi); background: rgba(40, 22, 6, .55); outline: none; }
.player.playing .play { opacity: 0; pointer-events: none; }
.note { margin: 22px 0 0; font-style: italic; color: var(--dim); font-size: .9em; }

/* ---------- contact ---------- */
.contact {
  padding: clamp(130px, 18vw, 260px) var(--gutter) clamp(110px, 14vw, 200px);
  text-align: center;
}
.contact h2 {
  margin: 0;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 1rem + 4vw, 4rem);
}
.contact p { margin: 18px 0 0; color: var(--dim); }

footer {
  padding: 30px var(--gutter) 40px;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #5a5042;
  border-top: 1px solid rgba(197, 138, 62, .1);
}

/* ---------- motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2, .6, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.work article:nth-child(2).reveal { transition-delay: .15s; }
.work article:nth-child(3).reveal { transition-delay: .3s; }

@keyframes arrive { to { opacity: 1; filter: blur(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes flicker { 0% { filter: brightness(1); } 50% { filter: brightness(1.12); } 100% { filter: brightness(.94); } }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 720px) {
  .work { grid-template-columns: 1fr; }
  .work article + article { border-left: 0; }
  .play { width: 54px; height: 54px; margin-left: -27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark, .tagline, .top, .scroll { animation-duration: .01s; animation-delay: 0s; filter: none; }
  .glow, .scroll span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
