:root {
  --bg: #f3eee6;
  --bg-deep: #e8e1d6;
  --paper: #fbf8f3;
  --text: #1e201c;
  --muted: #5f635b;
  --line: rgba(30, 32, 28, 0.12);
  --line-strong: rgba(30, 32, 28, 0.24);
  --brand: #96a592;
  --brand-deep: #677460;
  --shadow: 0 24px 60px rgba(27, 28, 24, 0.08);
  --radius: 22px;
  --frame: 1320px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
}

.skip-link {
  top: -3rem;
  left: 1rem;
  z-index: 30;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.frame {
  width: min(calc(100% - 2rem), var(--frame));
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

h1 {
  font-size: clamp(4rem, 10vw, 8.8rem);
}

h2 {
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  max-width: 9ch;
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

.text-link::after {
  content: "↗";
  font-size: 0.95em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 238, 230, 0.92);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  position: relative;
  width: min(calc(100% - 2rem), var(--frame));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease;
}

.site-header.is-scrolled .site-header-inner {
  border-color: var(--line);
}

.brand {
  display: block;
  width: min(9.8rem, 38vw);
  line-height: 0;
}

.brand img {
  width: 100%;
  height: auto;
}

.brand-wordmark {
  display: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.site-nav a:last-child {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span + span {
  margin-top: 0.26rem;
}

.masthead,
.scene,
.ledger,
.contact-scene {
  padding: 2.5rem 0 0;
}

.scene,
.ledger,
.contact-scene {
  margin-top: 5rem;
}

.scene .frame,
.ledger .frame,
.contact-scene .frame {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.masthead-top {
  display: grid;
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.masthead-meta {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
}

.masthead-note {
  max-width: 22ch;
  color: var(--muted);
}

.masthead-links {
  display: grid;
  gap: 0.8rem;
  padding-top: 0.8rem;
}

.masthead-image {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: var(--paper);
}

.masthead-image img {
  width: 100%;
  height: auto;
}

.masthead-bottom {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 0.32fr);
  gap: 2rem;
  align-items: end;
  padding-top: 2rem;
}

.masthead-summary {
  display: grid;
  gap: 1.25rem;
  color: var(--muted);
  max-width: 28ch;
}

.masthead-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.95rem;
}

.masthead-list li {
  padding-left: 1rem;
  position: relative;
}

.masthead-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: var(--brand);
}

.scene-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 3rem;
  align-items: end;
}

.scene-copy {
  display: grid;
  gap: 1rem;
  max-width: 30rem;
}

.scene-copy p:last-child,
.ledger-copy p,
.contact-copy p {
  color: var(--muted);
}

.scene-image {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

.scene-image-main {
  justify-self: end;
  width: min(42rem, 100%);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.scene-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 0.32fr);
  gap: 2rem;
  align-items: start;
  padding-top: 2rem;
}

.scene-image-wide {
  aspect-ratio: 1.58;
  border-radius: 18px;
}

.scene-image-tall {
  aspect-ratio: 0.78;
  width: min(19rem, 100%);
  border-radius: 18px;
  transform: translateY(4rem);
}

.ledger-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: 3rem;
  align-items: start;
}

.ledger-copy {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
}

.ledger-rows {
  display: grid;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.ledger-row:first-child {
  padding-top: 0;
}

.ledger-row h3 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ledger-row p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.9;
  white-space: nowrap;
}

.ledger-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.5rem;
  align-items: center;
  padding-top: 1.5rem;
  color: var(--muted);
}

.ledger-notes p {
  max-width: 30ch;
}

.reel {
  margin-top: 3.5rem;
}

.reel-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem 0.4rem;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.reel-strip::-webkit-scrollbar {
  display: none;
}

.reel-card {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(27, 28, 24, 0.05);
  scroll-snap-align: start;
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-card:nth-child(2),
.reel-card:nth-child(5) {
  margin-top: 2.5rem;
}

.reel-card:nth-child(3) {
  margin-top: 1rem;
}

.reel-card-wide {
  width: min(36rem, 72vw);
  aspect-ratio: 1.52;
}

.reel-card-tall {
  width: min(20rem, 40vw);
  aspect-ratio: 0.78;
}

.reel-card-square {
  width: min(26rem, 52vw);
  aspect-ratio: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr);
  gap: 3rem;
  align-items: end;
}

.contact-image {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.contact-image img {
  width: 100%;
  height: auto;
}

.contact-copy {
  display: grid;
  gap: 1rem;
}

.contact-lines {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.5rem;
}

.contact-lines p,
.contact-lines a {
  font-size: 1rem;
}

.contact-lines a {
  width: fit-content;
  border-bottom: 1px solid transparent;
}

.contact-lines a:hover {
  border-color: currentColor;
}

.site-footer {
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
.reel-strip:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .masthead-top,
  .masthead-bottom,
  .scene-grid,
  .scene-strip,
  .ledger-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .scene-image-main {
    justify-self: start;
  }

  .scene-image-tall {
    transform: none;
  }

  .reel-card-wide {
    width: 28rem;
  }

  .reel-card-tall {
    width: 16rem;
  }

  .reel-card-square {
    width: 22rem;
  }
}

@media (max-width: 820px) {
  .frame,
  .site-header-inner {
    width: min(calc(100% - 1.5rem), var(--frame));
  }

  .site-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.85rem 0;
  }

  .brand {
    width: auto;
    max-width: none;
  }

  .brand img {
    display: none;
  }

  .brand-wordmark {
    display: block;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 999px;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.6rem;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border-top: 1px solid transparent;
    opacity: 1;
    pointer-events: none;
    transform: none;
    transition:
      max-height 220ms ease,
      padding 220ms ease,
      border-color 220ms ease,
      margin-top 220ms ease;
  }

  .site-nav.is-open {
    max-height: 22rem;
    pointer-events: auto;
    margin-top: 0.4rem;
    padding: 0.85rem 0 0.35rem;
    border-color: var(--line);
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.65rem 0;
    font-size: 1rem;
  }

  .site-nav a:last-child {
    margin-top: 0.35rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
  }

  .masthead,
  .scene,
  .ledger,
  .contact-scene {
    padding-top: 2rem;
  }

  .scene,
  .ledger,
  .contact-scene {
    margin-top: 4rem;
  }

  h1 {
    font-size: clamp(3.2rem, 14vw, 5rem);
    line-height: 0.92;
    text-wrap: balance;
  }

  h2 {
    max-width: none;
    font-size: clamp(2.4rem, 10vw, 3.6rem);
    text-wrap: balance;
  }

  .masthead-top,
  .masthead-bottom {
    gap: 1.25rem;
  }

  .masthead-meta {
    padding-top: 0;
    gap: 0.75rem;
    justify-items: start;
  }

  .masthead-note,
  .masthead-summary,
  .scene-copy,
  .ledger-copy {
    max-width: none;
  }

  .masthead-bottom,
  .reel,
  .ledger-notes,
  .footer-inner {
    text-align: left;
  }

  .masthead-bottom h1,
  .masthead-summary,
  .scene-copy,
  .ledger-copy,
  .contact-copy {
    max-width: 32rem;
  }

  .masthead-summary {
    gap: 1rem;
  }

  .masthead-list {
    gap: 0.55rem;
  }

  .scene-grid,
  .scene-strip,
  .ledger-grid,
  .contact-grid {
    gap: 1.5rem;
  }

  .scene-copy,
  .ledger-copy,
  .contact-copy {
    justify-items: start;
  }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .ledger-row p {
    white-space: normal;
  }

  .ledger-notes,
  .footer-inner {
    display: grid;
  }

  .reel-card-wide,
  .reel-card-tall,
  .reel-card-square {
    width: 84vw;
  }

  .reel-card:nth-child(2),
  .reel-card:nth-child(3),
  .reel-card:nth-child(5) {
    margin-top: 0;
  }

  .contact-grid {
    align-items: start;
  }

  .contact-image,
  .masthead-image,
  .scene-image-main,
  .scene-image-wide,
  .scene-image-tall {
    width: 100%;
  }

  .scene-image-main,
  .scene-image-wide,
  .scene-image-tall,
  .contact-image {
    border-radius: 16px;
  }

  .footer-inner {
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
