:root {
  --ink: #171a18;
  --ink-soft: #454b46;
  --paper: #efeee9;
  --paper-warm: #e5e0d5;
  --white: #f8f7f2;
  --green: #234a38;
  --green-bright: #b7d8a9;
  --bronze: #a46e46;
  --line: rgba(23, 26, 24, 0.18);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(239, 238, 233, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  width: fit-content;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.site-header nav {
  display: flex;
  gap: 36px;
}

.site-header nav a {
  font-size: 12px;
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.status-pill {
  justify-self: end;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.status-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62a568;
  box-shadow: 0 0 0 5px rgba(98, 165, 104, 0.12);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: clamp(70px, 8vw, 145px) 5vw 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.15em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 30px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(60px, 7.2vw, 118px);
  line-height: 0.84;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--green);
  font-weight: 300;
}

.hero-intro {
  max-width: 500px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: 180ms ease;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--green);
}

.button-quiet {
  background: transparent;
}

.button-quiet:hover {
  background: var(--paper-warm);
}

.hero-visual {
  min-width: 0;
  padding: 18px 18px 18px 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.hero-image {
  position: relative;
  min-height: 570px;
  margin: 0;
  overflow: hidden;
  background: #d8d6cf;
}

.hero-image > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}

.hero-image:hover > img {
  transform: scale(1.018);
}

.hero-image figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  color: var(--white);
  background: rgba(18, 21, 19, 0.76);
  backdrop-filter: blur(12px);
}

.hero-image figcaption span {
  font-family: var(--serif);
  font-size: 26px;
}

.hero-image figcaption p,
.hero-image figcaption small {
  margin: 0;
}

.hero-image figcaption p {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-image figcaption small {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--mono);
  font-size: 8px;
}

.hero-index {
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.hero-index div {
  padding: 10px 18px;
  border-left: 1px solid var(--line);
}

.hero-index strong,
.hero-index span {
  display: block;
}

.hero-index strong {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 40px;
}

.hero-index span {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.manifesto {
  padding: 120px 10vw;
  display: grid;
  grid-template-columns: 0.6fr 2fr;
  gap: 8vw;
}

.manifesto > p {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.manifesto h2 {
  max-width: 1000px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.manifesto .line {
  grid-column: 2;
  height: 1px;
  background: var(--ink);
}

.compare-section,
.gallery-section,
.storyboard-section,
.motion-section {
  padding: 100px 4vw;
  border-top: 1px solid var(--line);
}

.compare-section {
  background: #d8d3c7;
}

.section-heading {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 60px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(50px, 6vw, 88px);
  font-weight: 300;
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 430px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.plan-card {
  padding: 18px;
  background: var(--paper);
}

.plan-card-top {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.plan-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 30px;
}

.plan-card .eyebrow {
  margin: 0 0 4px;
}

.plan-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 300;
}

.plan-state {
  padding: 8px 10px;
  color: var(--green);
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.plan-card figure {
  height: clamp(420px, 50vw, 690px);
  margin: 0;
  overflow: hidden;
  background: var(--paper-warm);
}

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

.plan-notes {
  padding: 28px 2px 8px;
}

.plan-notes > p {
  max-width: 560px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
}

.plan-notes dl {
  margin: 28px 0 0;
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.plan-notes dl div {
  padding-right: 15px;
}

.plan-notes dt {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.plan-notes dd {
  margin: 0;
  font-size: 11px;
}

.gallery-section {
  background: var(--ink);
  color: var(--paper);
}

.gallery-section .eyebrow,
.gallery-section .section-heading > p {
  color: rgba(239, 238, 233, 0.66);
}

.gallery-heading {
  align-items: end;
}

.gallery-controls {
  max-width: 600px;
  display: flex;
  justify-content: end;
  flex-wrap: wrap;
  gap: 6px;
}

.filter {
  padding: 9px 13px;
  border: 1px solid rgba(239, 238, 233, 0.24);
  border-radius: 999px;
  color: var(--paper);
  background: transparent;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  cursor: pointer;
}

.filter:hover,
.filter.is-active {
  color: var(--ink);
  background: var(--green-bright);
  border-color: var(--green-bright);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 38px 12px;
}

.gallery-card {
  grid-column: span 4;
  cursor: zoom-in;
}

.gallery-card:nth-child(7n + 1),
.gallery-card:nth-child(7n + 5) {
  grid-column: span 8;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card figure {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: #272c28;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 300ms ease;
}

.gallery-card:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.gallery-card footer {
  padding: 13px 0 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: baseline;
}

.gallery-card footer span,
.gallery-card footer small {
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.gallery-card footer span {
  color: var(--green-bright);
}

.gallery-card footer h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
}

.gallery-card footer small {
  color: rgba(239, 238, 233, 0.45);
}

.storyboard-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 8vw;
  background: var(--paper-warm);
}

.storyboard-copy {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.storyboard-copy h2 {
  font-family: var(--serif);
  font-size: clamp(50px, 6vw, 86px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.storyboard-copy > p:last-child {
  max-width: 420px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.storyboard-tracks {
  display: grid;
  gap: 18px;
}

.storyboard-tracks article {
  padding: 24px;
  background: var(--paper);
}

.storyboard-tracks header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.storyboard-tracks header > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--green);
  font-family: var(--serif);
}

.storyboard-tracks h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
}

.storyboard-tracks header small {
  font-family: var(--mono);
  font-size: 9px;
}

.storyboard-tracks ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.storyboard-tracks li {
  min-height: 56px;
  padding: 0 6px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.storyboard-tracks li::after {
  content: "TO RENDER";
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.storyboard-tracks li.is-complete::after {
  content: "FRAME READY";
  color: var(--green);
}

.motion-section {
  color: var(--paper);
  background: #111513;
}

.motion-heading > p {
  max-width: 470px;
  color: rgba(239, 238, 233, 0.6);
  font-size: 13px;
  line-height: 1.7;
}

.motion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: 18px;
}

.motion-card {
  padding: 16px;
  color: var(--ink);
  background: var(--paper);
}

.motion-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080a09;
}

.motion-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.motion-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 10px;
  color: var(--paper);
  background: rgba(17, 21, 19, 0.78);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.motion-card-copy {
  padding: 24px 2px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}

.motion-card-copy .eyebrow {
  margin-bottom: 5px;
}

.motion-card-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 300;
}

.motion-card-copy > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.frame-pair {
  padding-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.frame-pair figure {
  margin: 0;
}

.frame-pair img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.frame-pair figcaption {
  padding-top: 7px;
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.frame-pair > span {
  font-family: var(--serif);
  font-size: 28px;
}

.motion-progress {
  min-height: 100%;
  padding: 34px;
  color: var(--ink);
  background: var(--green-bright);
}

.motion-progress > strong {
  display: block;
  margin: 38px 0 18px;
  font-family: var(--serif);
  font-size: clamp(70px, 9vw, 136px);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.motion-progress > p:not(.eyebrow) {
  max-width: 390px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.motion-progress-bar {
  height: 5px;
  margin: 36px 0;
  overflow: hidden;
  background: rgba(23, 26, 24, 0.16);
}

.motion-progress-bar span {
  width: 58.333%;
  height: 100%;
  display: block;
  background: var(--ink);
}

.motion-progress dl {
  margin: 0;
  border-top: 1px solid rgba(23, 26, 24, 0.2);
}

.motion-progress dl div {
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 26, 24, 0.2);
  display: flex;
  justify-content: space-between;
}

.motion-progress dt,
.motion-progress dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.closing {
  min-height: 72vh;
  padding: 120px 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.closing blockquote {
  margin: 10px 0 50px;
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 105px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

body > footer {
  padding: 34px 4vw;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 40px;
  color: var(--paper);
  background: var(--ink);
}

body > footer p,
body > footer > small {
  margin: 0;
  color: rgba(239, 238, 233, 0.58);
  font-size: 9px;
  line-height: 1.6;
}

.lightbox {
  width: min(94vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  color: var(--paper);
  background: var(--ink);
}

.lightbox::backdrop {
  background: rgba(9, 11, 10, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-size: 24px;
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  display: block;
  object-fit: contain;
  background: #0e100f;
}

.lightbox figcaption {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.lightbox figcaption span {
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 8px;
}

.lightbox figcaption h3 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
}

.lightbox figcaption p {
  margin: 0;
  color: rgba(239, 238, 233, 0.62);
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero,
  .storyboard-section,
  .motion-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 50px;
  }

  .hero-visual {
    padding: 0 18px 18px;
  }

  .hero-image {
    min-height: 500px;
  }

  .manifesto {
    padding: 80px 5vw;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .manifesto .line {
    grid-column: 1;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .gallery-controls {
    margin-top: 30px;
    justify-content: start;
  }

  .gallery-card,
  .gallery-card:nth-child(7n + 1),
  .gallery-card:nth-child(7n + 5) {
    grid-column: span 6;
  }

  .storyboard-copy {
    position: static;
  }

  .motion-progress {
    min-height: 420px;
  }

  body > footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 66px;
    padding: 0 18px;
  }

  .status-pill {
    font-size: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 72px 20px 44px;
  }

  h1 {
    font-size: 58px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual {
    padding: 0 10px 10px;
  }

  .hero-image {
    min-height: 440px;
  }

  .hero-image figcaption {
    grid-template-columns: auto 1fr;
  }

  .hero-image figcaption small {
    display: none;
  }

  .hero-index div {
    padding: 8px;
  }

  .hero-index strong {
    font-size: 30px;
  }

  .manifesto,
  .compare-section,
  .gallery-section,
  .storyboard-section,
  .motion-section {
    padding: 70px 20px;
  }

  .motion-card {
    padding: 8px;
  }

  .motion-card-copy {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .plan-card {
    padding: 10px;
  }

  .plan-card-top {
    grid-template-columns: auto 1fr;
  }

  .plan-state {
    display: none;
  }

  .plan-card figure {
    height: 450px;
  }

  .plan-notes dl {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-card,
  .gallery-card:nth-child(7n + 1),
  .gallery-card:nth-child(7n + 5) {
    grid-column: span 12;
  }

  .storyboard-tracks article {
    padding: 16px;
  }

  .lightbox figcaption {
    grid-template-columns: 1fr;
  }
}
