:root {
  --paper: #f2f1ed;
  --ink: #111210;
  --muted: #73746e;
  --line: rgba(17, 18, 16, 0.22);
  --signal: #1737d1;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.option-switcher {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 178px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(14, 14, 13, 0.88);
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.18);
  color: #fff;
  gap: 5px;
  backdrop-filter: blur(18px);
}

body[data-option="ab"] .option-switcher {
  display: none;
}

.option-switcher p {
  margin: 0 0 5px;
  color: #a8a8a3;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.option-button {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  padding: 8px 6px;
  border: 0;
  color: #aaa;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.option-button span {
  font-size: 11px;
}

.option-button:hover,
.option-button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  display: none;
  min-height: 100svh;
  overflow: hidden;
}

body[data-option="a"] .hero-a,
body[data-option="b"] .hero-b,
body[data-option="c"] .hero-c,
body[data-option="ab"] .hero-ab {
  display: block;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-a {
  padding: 10vh 2.2vw 0;
}

.hero-a-copy {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero-a h1 {
  margin: 7vh 0 0;
  font-size: clamp(96px, 17.7vw, 340px);
  font-weight: 700;
  letter-spacing: -0.078em;
  line-height: 0.71;
  text-transform: uppercase;
}

.hero-a h1 span {
  display: block;
}

.hero-a h1 span:last-child {
  text-align: right;
}

.hero-note {
  width: 220px;
  margin: 5vh 0 0 27vw;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.2;
}

.hero-a-image {
  position: absolute;
  z-index: 3;
  top: 20vh;
  left: 43.5vw;
  width: min(24vw, 460px);
  height: 68vh;
  margin: 0;
  overflow: hidden;
}

.hero-a-image img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.scroll-cue {
  position: absolute;
  bottom: 25px;
  left: 2.2vw;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: 12px;
}

.hero-b {
  color: #fff;
  background: #080808;
}

.door-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.door-panel-left {
  left: 0;
}

.door-panel-right {
  right: 0;
}

.door-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.79);
}

.door-panel-left img {
  object-position: 38% 50%;
}

.door-panel-right img {
  object-position: 56% 50%;
}

.door-panel-left::after,
.door-panel-right::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 65%, rgba(0, 0, 0, 0.28));
  content: "";
}

.door-panel-right::after {
  background: linear-gradient(270deg, transparent 65%, rgba(0, 0, 0, 0.28));
}

.hero-b-copy {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: min(780px, 84vw);
  transform: translate(-50%, -47%);
  text-align: center;
}

.hero-b-copy h1 {
  margin: 22px 0 38px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(84px, 11vw, 210px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.72;
}

.hero-b-copy a {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-c {
  color: #efeee9;
  background: #151412;
}

.hero-c-stage {
  position: absolute;
  inset: 11vh 5vw 7vh 42vw;
}

.portrait-frame {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(33vw, 560px);
  height: 78vh;
  margin: 0;
  overflow: hidden;
  transform: translateX(-50%);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-back {
  transform: translateX(-69%) rotate(-5deg) scale(0.88);
  filter: brightness(0.48);
}

.frame-middle {
  transform: translateX(-31%) rotate(4deg) scale(0.92);
  filter: brightness(0.62);
}

.frame-front {
  z-index: 3;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.hero-c-copy {
  position: absolute;
  z-index: 5;
  top: 34vh;
  left: 2.2vw;
  width: 53vw;
}

.hero-c-copy h1 {
  margin: 18px 0 25px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(78px, 11.3vw, 220px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.82;
}

.hero-c-copy > p:last-child {
  width: 260px;
  margin: 0 0 0 11vw;
  color: #c5c2ba;
  font-size: 14px;
  line-height: 1.35;
}

.hero-c-index {
  position: absolute;
  right: 2.2vw;
  bottom: 25px;
  z-index: 5;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.13em;
}

.hero-ab {
  --slide-progress: 0;
  padding: 10vh 2.2vw 0;
}

.hero-ab-copy {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero-ab h1 {
  margin: 7vh 0 0;
  font-size: clamp(96px, 17.7vw, 340px);
  font-weight: 700;
  letter-spacing: -0.078em;
  line-height: 0.71;
  text-transform: uppercase;
}

.hero-ab h1 span {
  display: block;
}

.hero-ab h1 span:last-child {
  text-align: right;
}

.hero-ab .hero-note {
  margin-left: 27vw;
}

.hero-ab .hero-note span {
  color: var(--muted);
  font-size: 0.78em;
}

.hero-ab-image {
  position: absolute;
  z-index: 3;
  top: 20vh;
  left: 43.5vw;
  width: auto;
  height: min(72vh, 760px);
  aspect-ratio: 1 / 2;
  max-width: 28vw;
  margin: 0;
  overflow: hidden;
  opacity: calc(1 - var(--slide-progress));
  transform: translate3d(calc(var(--slide-progress) * 48vw), 0, 0);
  will-change: transform, opacity;
}

.hero-ab-image img,
.hero-ab-image video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.hero-video-fallback {
  opacity: 1;
  transition: opacity 420ms ease;
}

.hero-video-fallback.is-hidden {
  opacity: 0;
}

.hero-video {
  z-index: 1;
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.04);
  transition: opacity 700ms cubic-bezier(0.45, 0, 0.55, 1),
    filter 700ms cubic-bezier(0.45, 0, 0.55, 1),
    transform 700ms cubic-bezier(0.45, 0, 0.55, 1);
  will-change: opacity, filter, transform;
}

.hero-video.is-active {
  z-index: 2;
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.hero-ab-image::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(17, 18, 16, 0.12);
  content: "";
  pointer-events: none;
}

.portrait-intro {
  display: grid;
  min-height: 68vh;
  grid-template-columns: 1fr 3fr 1fr;
  align-items: start;
  padding: 16vh 2.2vw 9vh;
  border-top: 1px solid var(--line);
}

.section-kicker,
.section-count {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portrait-intro h2,
.journal h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(68px, 10.8vw, 205px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
}

.section-title-link {
  position: relative;
  display: inline-block;
  transition: opacity 220ms ease;
}

.section-title-link > span {
  position: absolute;
  top: 0.08em;
  right: -0.48em;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.12em;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title-link:hover { opacity: 0.72; }
.section-title-link:hover > span,
.section-title-link:focus-visible > span { opacity: 1; transform: translate(0, 0); }

.section-count {
  justify-self: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
  text-align: right;
}

.section-more {
  padding: 0 2.2vw 18vh;
  text-align: center;
}

.section-more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 220ms ease;
}

.section-more a:hover { opacity: 0.72; }

.commercial-more {
  padding-top: 10vh;
  padding-bottom: 0;
}

.portrait-stream {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding: 0 2.2vw 24vh;
  column-gap: 2vw;
  row-gap: 13vh;
}

.work-card {
  margin: 0;
}

@media (min-width: 901px) {
  .work-card[data-scroll-column] {
    will-change: transform;
  }
}

.work-link {
  display: block;
}

.work-link img {
  transition: filter 240ms ease, transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-link:hover img {
  filter: brightness(0.88);
  transform: scale(0.985);
}

.work-card img {
  width: 100%;
  background: #e5e3dd;
  object-fit: cover;
}

.work-card-tall img {
  aspect-ratio: 2 / 3;
}

.work-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.work-card h3,
.work-card p {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
}

.work-card p {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shift-small {
  margin-top: 9vh;
}

.shift-large {
  margin-top: 27vh;
}

.commercial {
  padding: 15vh 2.2vw 20vh;
  color: #f1f0eb;
  background: #0d0e0d;
}

.commercial-heading {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  align-items: start;
  margin-bottom: 15vh;
}

.commercial-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(68px, 9.6vw, 184px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
}

.commercial-heading > a {
  justify-self: end;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(241, 240, 235, 0.48);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-preview {
  display: flex;
  overflow-x: auto;
  padding-bottom: 3vh;
  gap: 1.4vw;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.commercial-preview::-webkit-scrollbar {
  display: none;
}

.commercial-rail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5vh;
  border-top: 1px solid rgba(241, 240, 235, 0.28);
  padding-top: 12px;
}

.commercial-rail-meta p {
  margin: 0;
  color: #989991;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.commercial-current {
  color: #f1f0eb;
}

.commercial-navigation {
  display: flex;
  justify-content: center;
  margin-top: 4vh;
}

.commercial-controls {
  display: flex;
  gap: 8px;
}

.commercial-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(241, 240, 235, 0.42);
  border-radius: 50%;
  background: transparent;
  color: #f1f0eb;
  cursor: pointer;
  font: inherit;
  place-items: center;
  transition: color 180ms ease, background 180ms ease;
}

.commercial-controls button:hover {
  background: #f1f0eb;
  color: #0d0e0d;
}

.commercial-card {
  flex: 0 0 clamp(240px, 27vw, 420px);
  scroll-snap-align: start;
}

.commercial-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: filter 240ms ease, transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.commercial-card:hover img {
  filter: brightness(0.86);
  transform: scale(0.985);
}

.commercial-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(241, 240, 235, 0.28);
}

.commercial-card h3,
.commercial-card p {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
}

.commercial-card p {
  color: #989991;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.journal {
  padding: 2.2vw;
  color: #f5f4ef;
  background: var(--paper);
}

.journal-entry {
  position: relative;
  display: block;
  width: min(34vw, 520px);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  overflow: hidden;
  background: #242724;
}

.journal-entry::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 12, 10, 0.67) 0%, rgba(9, 12, 10, 0.2) 53%, rgba(9, 12, 10, 0.04) 100%);
  content: "";
}

.journal-entry-image {
  position: absolute;
  inset: 0;
  margin: 0;
}

.journal-entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 500ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.journal-entry:hover .journal-entry-image img {
  filter: brightness(0.88);
  transform: scale(1.018);
}

.journal-entry-copy {
  position: relative;
  z-index: 2;
  display: grid;
  height: 100%;
  grid-template-columns: 1fr 3fr 1fr;
  grid-template-rows: auto 1fr auto;
  padding: 3vh 2.2vw 2.8vh;
}

.journal-entry-copy h2 {
  grid-column: 2;
  align-self: center;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.1vw, 72px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.78;
}

.journal-entry-copy .section-kicker {
  color: inherit;
}

.journal-note {
  grid-column: 3;
  margin: 0;
  color: rgba(245, 244, 239, 0.74);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.45;
}

.journal-entry-meta {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(245, 244, 239, 0.45);
  padding-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

footer {
  display: flex;
  min-height: 44vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 6vh 2.2vw 4vh;
  color: #f0efe9;
  background: #0d0e0d;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer p,
footer span {
  margin: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-style: normal;
  line-height: 1.35;
  text-transform: none;
}

.contact-details a {
  border-bottom: 0;
}

.contact-details a:hover {
  opacity: 0.68;
}

footer > a {
  justify-self: end;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 900px) {
  :root {
    --header-height: 58px;
  }

  .site-header {
    padding: 0 16px;
  }

  .option-switcher {
    right: 10px;
    bottom: 10px;
    width: 158px;
  }

  .hero-a {
    padding: 12vh 16px 0;
  }

  .hero-ab {
    padding: 12vh 16px 0;
  }

  .hero-a h1 {
    margin-top: 4vh;
    margin-bottom: 0;
    font-size: clamp(70px, 23vw, 140px);
    line-height: 0.84;
  }

  .hero-ab h1 {
    margin-top: 4vh;
    margin-bottom: 0;
    font-size: clamp(70px, 23vw, 140px);
    line-height: 0.84;
  }

  .hero-a h1 span:last-child {
    margin-left: -4px;
    text-align: left;
  }

  .hero-ab h1 span:last-child {
    margin-left: -4px;
    text-align: left;
  }

  .hero-a-image {
    top: 35vh;
    right: 12vw;
    left: auto;
    width: 62vw;
    height: 56vh;
  }

  .hero-ab-image {
    top: 35vh;
    right: 12vw;
    left: auto;
    width: calc(min(58vh, 580px) / 2);
    max-width: none;
    height: min(58vh, 580px);
    aspect-ratio: 1 / 2;
    transform: translate3d(calc(var(--slide-progress) * 76vw), 0, 0);
  }

  .hero-video {
    filter: none;
    transform: none;
    transition: opacity 520ms cubic-bezier(0.45, 0, 0.55, 1);
  }

  .hero-video.is-active {
    filter: none;
    transform: none;
  }

  .hero-note {
    position: absolute;
    top: 52vh;
    left: 0;
    width: 76px;
    margin: 0;
    font-size: 12px;
    line-height: 1.12;
  }

  .hero-ab .hero-note {
    margin: 0;
  }

  .scroll-cue {
    left: 16px;
  }

  .hero-b-copy h1 {
    font-size: clamp(64px, 21vw, 110px);
  }

  .hero-c-stage {
    inset: 19vh -5vw 9vh 23vw;
  }

  .portrait-frame {
    width: 58vw;
    height: 65vh;
  }

  .hero-c-copy {
    top: 18vh;
    left: 16px;
    width: calc(100% - 32px);
  }

  .hero-c-copy h1 {
    font-size: clamp(70px, 20vw, 110px);
  }

  .hero-c-copy > p:last-child {
    display: none;
  }

  .portrait-intro {
    min-height: 54vh;
    grid-template-columns: 1fr auto;
    padding: 12vh 16px 7vh;
  }

  .portrait-intro h2 {
    grid-column: 1 / -1;
    margin-top: 12vh;
    font-size: clamp(58px, 18vw, 105px);
  }

  .portrait-stream {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 16px 15vh;
    column-gap: 12px;
    row-gap: 8vh;
  }

  .section-more {
    padding: 0 16px 12vh;
  }

  .commercial-more {
    padding-top: 6vh;
    padding-bottom: 0;
  }

  .work-card[data-scroll-column] {
    transform: none !important;
    will-change: auto;
  }

  .shift-small {
    margin-top: 5vh;
  }

  .shift-large {
    margin-top: 14vh;
  }

  .commercial {
    padding: 12vh 16px 14vh;
  }

  .commercial-heading {
    grid-template-columns: 1fr auto;
    margin-bottom: 10vh;
  }

  .commercial-heading h2 {
    grid-column: 1 / -1;
    margin: 8vh 0 6vh;
    font-size: clamp(58px, 17vw, 102px);
  }

  .commercial-heading > a {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .commercial-preview {
    gap: 12px;
  }

  .commercial-card {
    flex-basis: min(68vw, 360px);
  }

  .work-card div {
    display: block;
  }

  .work-card p {
    margin-top: 4px;
  }

  .journal {
    padding: 16px;
  }

  .journal-entry,
  .journal-entry-copy {
    min-height: 0;
  }

  .journal-entry { width: min(78vw, 430px); }

  .journal-entry-copy {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    padding: 24px 18px 18px;
  }

  .journal-entry-copy h2 {
    grid-column: 1 / -1;
    align-self: center;
    font-size: clamp(45px, 13vw, 72px);
  }

  .journal-note {
    grid-column: 1 / -1;
    margin-bottom: 4vh;
  }

  .journal-entry-meta {
    align-items: flex-start;
    gap: 12px;
  }

  footer {
    min-height: 36vh;
    padding: 5vh 16px 3vh;
  }
}

@media (max-width: 760px) {
  .portrait-stream {
    grid-template-columns: 1fr;
    row-gap: 9vh;
  }

  .shift-small,
  .shift-large {
    margin-top: 0;
  }

  .commercial-preview {
    display: flex;
  }

  .commercial-card,
  .commercial-card:nth-child(even) {
    flex-basis: 78vw;
    margin-top: 0;
    margin-bottom: 0;
  }

  .contact-details {
    font-size: 10px;
  }
}

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

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