:root {
  --paper: #ece9e1;
  --ink: #151916;
  --muted: #6f746d;
  --line: rgba(21, 25, 22, 0.18);
  --moss: #173d2b;
  --plum: #382735;
  --display: "Momo Trust Display", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-padding: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--paper);
  background: var(--moss);
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.site-footer a {
  position: relative;
}

.site-footer nav a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-footer nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.page-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  padding: 0 var(--page-padding);
}

.index-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 40px 28px 40px 0;
  border-right: 1px solid var(--line);
}

.index-rail > p,
.eyebrow,
.project-index,
.project-tag,
.card-topline,
.film-card > span,
.facts dt,
.row-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.index-rail ol {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.index-rail a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms ease;
}

.index-rail a span {
  width: 18px;
  flex-shrink: 0;
  color: rgba(21, 25, 22, 0.38);
  font-size: 11px;
}

.index-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.index-rail a:hover,
.index-rail a.is-active {
  color: var(--ink);
}

.index-rail a:hover .index-icon,
.index-rail a.is-active .index-icon,
.index-rail a.is-active span {
  color: var(--ink);
  opacity: 1;
}

main {
  min-width: 0;
  max-width: 820px;
  padding: 0 0 0 clamp(28px, 4vw, 56px);
}

.hero {
  padding: 48px 0 40px;
}

.signature {
  margin-bottom: 28px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: 28px;
  font-family: var(--sans);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.hero-copy {
  display: grid;
  gap: 12px;
  max-width: 52ch;
}

.hero-copy p {
  margin-bottom: 0;
  color: #3f443f;
  font-size: 15px;
  line-height: 1.6;
}

.hero-copy a {
  border-bottom: 1px solid currentColor;
}

.hero-copy a:hover {
  color: var(--moss);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease;
}

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

.button-primary:hover {
  background: var(--moss);
  transform: translateY(-1px);
}

.contact-email {
  border-bottom: 1px solid currentColor;
  font-weight: 500;
}

.contact-email span {
  display: inline-block;
  transition: transform 180ms ease;
}

.contact-email:hover span {
  transform: translate(2px, -2px);
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

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

.section-heading h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.section-heading p {
  max-width: 34ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.list,
.project-list {
  border-top: 1px solid var(--line);
}

.list-row,
.project-row {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.list-row {
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
}

.project-row {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  transition: background-color 180ms ease;
}

.project-row:hover {
  background: rgba(255, 255, 255, 0.35);
}

.list-row h3,
.project-row h3,
.film-card h3 {
  margin-bottom: 3px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.list-row p,
.project-row p,
.film-card p {
  margin-bottom: 0;
}

.list-row > div p,
.project-row > div p,
.film-card p {
  color: var(--muted);
  font-size: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 10px;
  transition: transform 220ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.card-plum {
  color: #f1e9ef;
  background: var(--plum);
}

.card-moss {
  color: #edf1e9;
  background: var(--moss);
}

.feature-card .card-topline {
  display: flex;
  justify-content: space-between;
  color: currentColor;
  opacity: 0.6;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.feature-card > div:nth-child(2) p {
  margin-bottom: 0;
  opacity: 0.72;
  font-size: 14px;
}

.feature-card footer {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
}

.film-strip {
  display: grid;
  gap: 8px;
}

.film-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: color 180ms ease, background-color 180ms ease;
}

.film-card:hover {
  color: #f5f3ec;
  background: var(--ink);
}

.film-card:hover p,
.film-card:hover > span {
  color: rgba(245, 243, 236, 0.62);
}

.about-copy {
  max-width: 62ch;
  margin-bottom: 24px;
  color: #3d423d;
  font-size: 16px;
  line-height: 1.55;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  gap: 6px;
}

.facts dd {
  margin: 0;
  font-size: 14px;
}

.contact {
  padding: 40px 28px 24px;
  color: #f1f0e9;
  background: var(--ink);
  border-radius: 10px;
}

.contact .eyebrow {
  color: rgba(241, 240, 233, 0.5);
}

.contact h2 {
  max-width: 16ch;
  margin: 10px 0 18px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.contact h2 em {
  color: #a8c2aa;
  font-style: normal;
}

.contact-email {
  display: inline-flex;
  gap: 12px;
  padding-bottom: 4px;
  font-size: 16px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 18px;
  color: rgba(241, 240, 233, 0.58);
  border-top: 1px solid rgba(241, 240, 233, 0.18);
  font-size: 12px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

@media (max-width: 860px) {
  .page-shell {
    display: block;
  }

  .index-rail {
    height: auto;
    padding: 24px 0 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .index-rail ol {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 12px;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .section-heading {
    display: grid;
    gap: 8px;
  }

  .feature-grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .list-row,
  .project-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-tag {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .signature {
    font-size: 24px;
  }

  .contact-email {
    font-size: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
