:root {
  --paper: #e7e0d6;
  --paper-2: #d8cfc2;
  --ink: #14110f;
  --mute: #6a5f56;
  --line: rgba(20, 17, 15, 0.14);
  --wine: #7a2433;
  --wine-bright: #a33a4a;
  --night: #100e0c;
  --night-2: #1a1613;
  --cream: #f4ebe2;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1000px 480px at 90% -8%, rgba(122, 36, 51, 0.12), transparent 55%),
    radial-gradient(800px 400px at 0% 20%, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img, video { max-width: 100%; display: block; }
.frame {
  width: auto;
  height: auto;
  max-width: min(100%, 920px);
  max-height: 82vh;
  object-fit: contain;
  margin: 0.8rem 0 1.2rem;
  background: #171311;
}
a { color: var(--wine); }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 4.5vw;
  background: rgba(231, 224, 214, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  justify-content: flex-end;
}
.nav-links a {
  text-decoration: none;
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--wine); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100svh - 3.4rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream);
}
.hero-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(16, 14, 12, 0.18) 0%, rgba(16, 14, 12, 0.72) 48%, rgba(16, 14, 12, 0.94) 100%),
    #1a1410 center 20% / cover no-repeat;
  animation: plane-drift 16s ease-in-out infinite alternate;
}
.hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 28%, rgba(244, 235, 226, 0.22), transparent 42%),
    radial-gradient(ellipse at 80% 75%, rgba(122, 36, 51, 0.28), transparent 48%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 10vh 5vw 8vh;
  max-width: min(700px, 92vw);
  animation: rise 0.95s ease-out both;
}
.brand-mark {
  font-family: var(--serif);
  font-size: clamp(4rem, 13vw, 8.8rem);
  line-height: 0.84;
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
  color: #fff;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3.15rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 14ch;
}
.lede {
  margin: 0 0 1.7rem;
  max-width: 34rem;
  color: rgba(244, 235, 226, 0.84);
  font-size: 1.05rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta-primary { background: var(--wine); color: #fff; border-color: var(--wine); }
.cta-primary:hover { background: var(--wine-bright); border-color: var(--wine-bright); color: #fff; }
.cta-ghost { background: transparent; color: var(--cream); border-color: rgba(244, 235, 226, 0.45); }
.cta-ghost:hover { border-color: #fff; color: #fff; }

.wrap { width: min(1120px, 90vw); margin: 0 auto; }
section { padding: 5.2rem 0; }
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.05;
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}
.section-lede {
  max-width: 38rem;
  color: var(--mute);
  margin: 0 0 2.2rem;
  font-size: 1.05rem;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.theme-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.35rem 1.2rem 1.25rem;
  background: rgba(255, 255, 255, 0.28);
  border-bottom: 2px solid var(--wine);
  transition: transform 0.3s ease, background 0.3s ease;
  animation: rise 0.7s ease-out both;
}
.theme-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.48);
}
.theme-card .count {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
}
.theme-card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}
.theme-card p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
}

.gallery {
  background:
    linear-gradient(180deg, transparent, rgba(122, 36, 51, 0.05)),
    transparent;
}
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1.5rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filters button:hover { border-color: var(--wine); color: var(--wine); }
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.scene {
  margin: 0 0 3.4rem;
  scroll-margin-top: 5rem;
  animation: rise 0.6s ease-out both;
}
.scene-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
}
.scene h2,
.scene h3 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 400;
  margin: 0 0 0.55rem;
}
.scene h2 a,
.scene h3 a { color: inherit; text-decoration: none; }
.scene-story {
  max-width: 44rem;
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--mute);
}
.scene-meta {
  margin: 0 0 0.95rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.5rem;
}
.tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--night-2);
  cursor: zoom-in;
  overflow: hidden;
  min-height: 160px;
  isolation: isolate;
}
.tile img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.tile:hover img { transform: scale(1.04); }
.tile-fallback {
  display: grid;
  place-items: center;
  height: 200px;
  color: var(--cream);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  background: linear-gradient(160deg, #2a2220, #171311);
}
.tile-badge {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  display: flex;
  gap: 0.3rem;
  z-index: 1;
}
.tile-badge span {
  background: rgba(16, 14, 12, 0.72);
  color: var(--cream);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
}
.tile-video img {
  object-fit: contain;
  background: #171311;
}
.tile-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(10, 8, 7, 0.96);
  color: var(--cream);
  padding: 1rem;
}
.lightbox.open { display: grid; }
.lightbox-close,
.lightbox-nav,
.zoom-bar button {
  border: 1px solid rgba(244, 235, 226, 0.28);
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-nav.prev { left: 0.6rem; }
.lightbox-nav.next { right: 0.6rem; }
.lightbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 1rem;
  width: min(1280px, 96vw);
  margin: 2.5rem auto 1rem;
  max-height: calc(100svh - 3.5rem);
}
.lightbox-stage-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 0;
}
.zoom-stage {
  position: relative;
  overflow: hidden;
  background: #080706;
  min-height: 50vh;
  flex: 1;
  cursor: grab;
  touch-action: none;
}
.zoom-stage.is-dragging { cursor: grabbing; }
#lightbox-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform-origin: center center;
}
#lightbox-stage img,
#lightbox-stage video {
  max-width: 100%;
  max-height: calc(100svh - 9rem);
  object-fit: contain;
  user-select: none;
}
.zoom-bar {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}
.zoom-bar button {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}
.lightbox-side {
  overflow: auto;
  padding: 0.4rem 0.2rem 1rem;
  border-left: 1px solid rgba(244, 235, 226, 0.12);
  padding-left: 1rem;
}
.lb-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4a0a8;
}
.lb-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
}
.lb-story {
  margin: 0 0 0.8rem;
  color: rgba(244, 235, 226, 0.78);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.35;
}
.lb-views {
  margin: 0 0 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4a0a8;
}
.comments h4 {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#comment-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
  max-height: 28vh;
  overflow: auto;
}
.comment {
  padding: 0.65rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid rgba(163, 58, 74, 0.7);
}
.comment strong {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}
.comment p { margin: 0; color: rgba(244, 235, 226, 0.82); font-size: 0.92rem; }
#comment-form {
  display: grid;
  gap: 0.5rem;
}
#comment-form input,
#comment-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 235, 226, 0.22);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: inherit;
  padding: 0.55rem 0.65rem;
  resize: vertical;
}
#comment-form .cta { width: fit-content; }

footer { border-top: 1px solid var(--line); }
.footer-cta {
  background: var(--night);
  color: var(--cream);
  text-align: center;
  padding: 3.2rem 5vw;
}
.footer-cta .brand-mark {
  font-size: clamp(2.8rem, 8vw, 5rem);
  margin-bottom: 0.55rem;
}
.footer-cta p {
  margin: 0;
  color: rgba(244, 235, 226, 0.75);
}
.footer-note {
  margin: 0;
  padding: 1.2rem 5vw 2rem;
  color: var(--mute);
  font-size: 0.85rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes plane-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1.4%, 1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-plane, .hero-copy, .theme-card, .scene, .tile img { animation: none; transition: none; }
  .cta:hover, .theme-card:hover { transform: none; }
}

@media (max-width: 920px) {
  .lightbox-layout { grid-template-columns: 1fr; max-height: none; overflow: auto; }
  .lightbox-side { border-left: 0; border-top: 1px solid rgba(244, 235, 226, 0.12); padding-left: 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(231, 224, 214, 0.97);
    padding: 0.8rem 4.5vw 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: inline-flex; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-top: 16vh; }
}
