:root {
  color-scheme: light;
  --paper: #e7e7e3;
  --ink: #202020;
  --muted: #686862;
  --soft: rgba(32, 32, 32, 0.09);
  --line: rgba(32, 32, 32, 0.18);
  --panel: rgba(246, 246, 241, 0.68);
  --accent: #407a65;
  --field: rgba(255, 255, 252, 0.54);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.78), transparent 28%),
    linear-gradient(120deg, #eeeeeb, var(--paper) 56%, #d6d8d3);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  line-height: 1.45;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

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

img,
video,
canvas {
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.flow-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.54;
}

.site-header,
.site-footer {
  position: fixed;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-inline: 32px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.site-header {
  top: 0;
  min-height: 72px;
}

.site-footer {
  bottom: 0;
  min-height: 58px;
  pointer-events: none;
}

.site-footer a {
  pointer-events: auto;
}

.wordmark {
  color: var(--ink);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  position: relative;
  padding-block: 6px;
}

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

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 13px 10px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--ink);
}

.panel {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 112px 7vw 92px;
  align-items: center;
  gap: 6vw;
  scroll-snap-align: start;
  transform: scale(0.93);
  opacity: 0.24;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 700ms ease;
}

.panel.is-visible {
  transform: scale(1);
  opacity: 1;
}

.hero,
.contact {
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.7fr);
}

.case {
  grid-template-columns: 92px minmax(280px, 0.62fr) minmax(360px, 1fr);
}

.case--reverse {
  grid-template-columns: 92px minmax(360px, 1fr) minmax(280px, 0.62fr);
}

.case--reverse .case__copy {
  grid-column: 3;
}

.case--reverse .case__film {
  grid-column: 2;
  grid-row: 1;
}

.panel__copy,
.case__copy,
.contact-form {
  position: relative;
  z-index: 2;
}

.kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1,
h2 {
  max-width: 13ch;
  margin-bottom: 28px;
  font-size: 5rem;
  font-weight: 400;
  line-height: 0.94;
}

h2 {
  font-size: 4.2rem;
}

.panel__copy p:not(.kicker),
.case__copy p,
.contact-form label {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1rem;
}

.portrait {
  margin: 0;
}

.portrait img {
  width: min(34vw, 460px);
  min-width: 260px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(0.82) contrast(0.94);
  opacity: 0.9;
}

.case__index {
  align-self: start;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.case__film {
  width: 100%;
  max-height: 62vh;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  filter: grayscale(1) contrast(0.92);
  mix-blend-mode: multiply;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  max-width: none;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 118px;
  resize: vertical;
}

.contact-form button {
  width: fit-content;
  min-width: 116px;
  min-height: 46px;
  padding: 12px 22px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.contact-form button:hover {
  color: var(--ink);
  background: transparent;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 1000px) {
  .hero,
  .contact,
  .case,
  .case--reverse {
    grid-template-columns: 1fr;
  }

  .case__index,
  .case--reverse .case__copy,
  .case--reverse .case__film {
    grid-column: auto;
    grid-row: auto;
  }

  h1,
  h2 {
    max-width: 15ch;
    font-size: 3.5rem;
  }

  .portrait img {
    width: min(70vw, 420px);
  }

  .case__film {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    padding-inline: 18px;
  }

  .site-header {
    min-height: 64px;
  }

  .site-footer {
    position: static;
    min-height: auto;
    padding-block: 26px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 60px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 14px;
    padding: 18px;
    background: rgba(236, 236, 232, 0.92);
    border: 1px solid var(--line);
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .panel {
    min-height: auto;
    padding: 94px 18px 56px;
    scroll-snap-align: none;
  }

  h1,
  h2 {
    max-width: 18ch;
    font-size: 2.35rem;
  }

  .panel__copy p:not(.kicker),
  .case__copy p {
    font-size: 0.95rem;
  }

  .portrait img {
    width: 100%;
    min-width: 0;
    max-height: 420px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .panel {
    transform: none;
    opacity: 1;
  }
}
