:root {
  --ink: #171917;
  --ivory: #f1eee7;
  --stone: #c9bda7;
  --muted: #b9bcb6;
  --blue: #99bfce;
  --line: #f1eee72e;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  color: var(--ivory);
  background: var(--ink);
  font:
    400 15px/1.6 'DM Sans',
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
p,
figure {
  margin: 0;
}
h1,
h2 {
  font-family: Manrope, sans-serif;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.06;
}
h1 {
  font-size: clamp(48px, 5vw, 76px);
}
h2 {
  font-size: clamp(34px, 3.4vw, 52px);
}
em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--stone);
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 100;
  padding: 12px;
  background: var(--ivory);
  color: var(--ink);
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 88px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(#171917f5, #171917cf);
  border-bottom: 1px solid #ffffff12;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.brand b {
  font-weight: 400;
  color: var(--muted);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--stone);
  border-radius: 50%;
  color: var(--stone);
  font:
    italic 23px Georgia,
    serif;
}
.site-header nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 11px;
}
.site-header nav a {
  padding-block: 10px;
}
.site-header nav a:hover,
.text-link:hover {
  color: var(--stone);
}
.site-header .nav-collection {
  border: 1px solid #f1eee744;
  padding: 10px 18px;
  border-radius: 2px;
}
.nav-collection span {
  margin-left: 18px;
}
.menu-toggle {
  display: none;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.21em;
  color: var(--blue);
  margin-bottom: 20px;
}
.chapter-body {
  color: #d4d4cd;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.8;
  max-width: 365px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 11px;
  border-bottom: 1px solid #f1eee74d;
  padding: 10px 0;
  margin-top: 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 46px;
  border: 0;
  padding: 13px 20px;
  background: var(--ivory);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  border-radius: 2px;
}
.button:hover {
  background: #daceb9;
}
.chapter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 18px;
}
.chapter-actions .text-link {
  margin-top: 0;
}
/* The default document remains readable without animation or JavaScript. */
.story {
  padding-top: 88px;
}
.story-stage {
  position: relative;
}
.car-film-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.car-film-media > picture,
.car-film-media > picture > img,
.car-film-media canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}
.car-film-media canvas {
  opacity: 0;
}
.car-film-media canvas.is-ready {
  opacity: 1;
}
.chapter {
  position: relative;
  padding: 70px 6vw;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 35px;
  align-items: start;
}
.chapter-copy {
  max-width: 470px;
}
.chapter--right .chapter-copy {
  margin-left: auto;
}
.chapter-photo {
  width: 220px;
  flex-shrink: 0;
}
.photo-window {
  position: relative;
  height: 125px;
  overflow: hidden;
  background: #282b28;
}
.photo-window img {
  position: absolute;
  width: 290%;
  max-width: none;
  height: 290%;
  object-fit: cover;
}
.photo-window--wheel img {
  left: -49%;
  top: -162%;
}
.photo-window--line img {
  left: -165%;
  top: -117%;
}
.chapter-photo figcaption {
  margin-top: 10px;
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #bfc1b9;
}
.story-footer {
  padding: 28px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
}
.concept-note {
  font-size: 9px;
  color: #bfc1b9;
  max-width: 260px;
}
.chapter-nav {
  display: none;
}
.scroll-note {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-note span {
  margin-left: 20px;
}
@media (min-width: 1024px) and (min-aspect-ratio: 1/1) {
  /* One sticky stage, one frame controller, six compositions. */
  .story.is-animated {
    height: 650svh;
    padding-top: 0;
  }
  .is-animated .story-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    isolation: isolate;
  }
  .is-animated .car-film-media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    z-index: -2;
  }
  .is-animated .car-film-media > picture,
  .is-animated .car-film-media canvas {
    inset: auto auto -5vh 50%;
    width: min(100vw, 1600px);
    height: auto;
    aspect-ratio: 16 / 9;
    transform: translateX(-50%) scale(0.92);
  }
  .is-animated .story-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
      #171917 9%,
      #171917b0 26%,
      #17191710 48%,
      transparent 67%,
      #171917 100%
    );
  }
  .is-animated .chapters {
    position: absolute;
    inset: 0;
  }
  .is-animated .chapter {
    position: absolute;
    top: clamp(118px, 15vh, 160px);
    left: 5vw;
    right: 5vw;
    padding: 0;
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .is-animated .chapter[data-current='true'] {
    pointer-events: auto;
  }
  .is-animated .chapter--intro .chapter-body {
    max-width: 330px;
  }
  .is-animated #collection .chapter-actions {
    position: absolute;
    top: 18px;
    left: 0;
    max-width: 265px;
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
  .is-animated .heading-mask {
    overflow: hidden;
  }
  .is-animated .story-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 76px;
    border: 0;
  }
  .is-animated .chapter-nav {
    display: flex;
    align-items: center;
    gap: 3px;
  }
}
.chapter-nav a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  color: #90948d;
  font-size: 9px;
  position: relative;
}
.chapter-nav a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 16px;
  height: 1px;
  background: #ffffff35;
}
.chapter-nav a[aria-current='step'] {
  color: var(--ivory);
}
.chapter-nav a[aria-current='step']::after {
  background: var(--stone);
}
.contact {
  position: relative;
  background: #edeae2;
  color: var(--ink);
  padding: 100px 6vw 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
}
.contact em {
  color: #79705e;
}
.contact .eyebrow {
  color: #58676a;
}
.contact-copy > p:not(.eyebrow) {
  margin-top: 25px;
  font-size: 14px;
  max-width: 350px;
  color: #60665e;
}
.contact-details {
  display: grid;
  gap: 8px;
  font-size: 12px;
  margin-top: 36px;
}
.contact .text-link {
  border-color: #17191755;
}
form {
  display: grid;
  gap: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #17191744;
  padding: 10px 0;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  font-size: 14px;
  letter-spacing: 0;
}
textarea {
  resize: vertical;
}
form .button {
  background: var(--ink);
  color: var(--ivory);
}
.form-status {
  min-height: 24px;
  font-size: 12px;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 6vw;
  font-size: 10px;
  color: var(--muted);
}
.site-footer .brand {
  color: var(--ivory);
  font-size: 12px;
}
@media (max-width: 1023px) {
  .chapter {
    flex-wrap: wrap;
    padding: 50px 6vw;
  }
  .chapter--right .chapter-copy {
    margin-left: 0;
  }
  .chapter-photo {
    order: 2;
    width: min(100%, 300px);
  }
  .photo-window {
    height: 170px;
  }
  .chapter-copy {
    width: 100%;
  }
  .story-footer {
    flex-wrap: wrap;
  }
  .scroll-note {
    display: none;
  }
}
@media (max-width: 800px) {
  .site-header {
    height: 76px;
    padding: 0 24px;
  }
  .brand {
    font-size: 13px;
  }
  .menu-toggle {
    display: flex;
    gap: 18px;
    align-items: center;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--ivory);
    font-size: 11px;
    cursor: pointer;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 25px;
    background: #171917;
    border-bottom: 1px solid var(--line);
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .site-header nav.is-open {
    display: flex;
  }
  .story {
    padding-top: 76px;
  }
  h1 {
    font-size: clamp(44px, 9vw, 64px);
  }
  h2 {
    font-size: clamp(34px, 7vw, 48px);
  }
  .chapter-body br {
    display: none;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 65px 24px 45px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
    align-items: start;
    padding: 28px 24px;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Touch-sized storytelling: the picture stays above naturally scrolling chapters. */
@media (max-width: 1023px), (max-aspect-ratio: 1/1) {
  .site-header {
    background: var(--ink);
  }
  .story.is-animated {
    --story-header: 88px;
    --film-height: min(56.25vw, 34svh);
    padding-top: var(--story-header);
    height: auto;
  }
  .is-animated .story-stage {
    position: relative;
    overflow: visible;
    isolation: isolate;
  }
  .is-animated .car-film-media {
    position: sticky;
    top: var(--story-header);
    z-index: 5;
    height: var(--film-height);
    aspect-ratio: auto;
    border-bottom: 1px solid var(--line);
  }
  .is-animated .car-film-media > picture,
  .is-animated .car-film-media canvas {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }
  .is-animated .chapters {
    position: relative;
  }
  .is-animated .chapter {
    min-height: max(320px, calc(100svh - var(--story-header) - var(--film-height)));
    padding: 30px 6vw 40px;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 24px;
    background: var(--ink);
  }
  .is-animated .chapter-copy,
  .is-animated .chapter--right .chapter-copy {
    width: 100%;
    max-width: 540px;
    margin: 0;
  }
  .is-animated .chapter-photo {
    order: 2;
    width: min(220px, 70%);
  }
  .is-animated .photo-window {
    height: 110px;
  }
  .is-animated .chapter-actions {
    position: static;
  }
  .is-animated .chapter-body {
    font-size: 14px;
    margin-top: 16px;
  }
  .is-animated .chapter h1 {
    font-size: clamp(40px, 8vw, 64px);
  }
  .is-animated .chapter h2 {
    font-size: clamp(32px, 6vw, 48px);
  }
  .is-animated .heading-mask {
    overflow: clip;
  }
  .is-animated .story-footer {
    position: relative;
    display: grid;
    justify-content: start;
    gap: 12px;
    height: auto;
    padding: 24px 6vw;
  }
  .is-animated .chapter-nav {
    display: flex;
    flex-wrap: wrap;
  }
  .is-animated .scroll-note {
    display: none;
  }
}
@media (max-width: 800px) {
  .story.is-animated {
    --story-header: 76px;
  }
}
/* Landscape phones use the width instead of consuming their limited vertical space. */
@media (min-width: 600px) and (max-width: 1023px) and (max-height: 540px) {
  .is-animated .story-stage {
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: start;
  }
  .is-animated .car-film-media {
    grid-column: 1;
    height: calc(100svh - var(--story-header));
    border-bottom: 0;
  }
  .is-animated .chapters {
    grid-column: 2;
    min-width: 0;
  }
  .is-animated .chapter {
    min-height: calc(100svh - var(--story-header));
    padding: 24px;
  }
  .is-animated .chapter h1 {
    font-size: 42px;
  }
  .is-animated .chapter h2 {
    font-size: 34px;
  }
  .is-animated .story-footer {
    grid-column: 1 / -1;
  }
}
