:root {
  --ink: #0c0d0d;
  --paper: #e9e4d9;
  --rust: #b95336;
  --steel: #9ea7a5;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); }
body { color: var(--paper); font-family: var(--mono); }
.branch-entry { position: fixed; z-index: 200; inset: 0; display: grid; align-content: center; justify-items: center; gap: clamp(14px, 2vh, 26px); background: #11110f; color: #eee9df; pointer-events: none; overflow: hidden; text-align: center; }
.branch-entry-kicker, .branch-entry-note { font-size: 9px; text-transform: uppercase; letter-spacing: .16em; }
.branch-entry-kicker { color: rgba(238, 233, 223, .56); }
.branch-entry-note { color: rgba(238, 233, 223, .72); }
.branch-entry strong { display: flex; flex-direction: column; align-items: center; font-family: var(--serif); font-size: clamp(72px, 13vw, 214px); font-weight: 400; line-height: .78; letter-spacing: -.065em; }
.branch-entry strong span { display: block; }
.branch-entry strong span:first-child { font-size: .667em !important; }
.branch-entry-line { position: absolute; left: 50%; bottom: clamp(22px, 4vh, 56px); width: 1px; height: clamp(44px, 9vh, 108px); background: rgba(238, 233, 223, .48); transform: translateX(-50%); }
a { color: inherit; }
.scroll-track { height: 2200vh; }
.viewport { position: fixed; inset: 0; overflow: hidden; background: var(--ink); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 22px clamp(18px, 2vw, 36px);
  text-transform: uppercase;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: .12em;
  mix-blend-mode: difference;
  pointer-events: none;
}

.header-brand {
  display: flex;
  flex-direction: column;
  width: max-content;
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
}
.header-brand span { font-size: 11px; font-weight: 500; }
.header-brand em { font-style: normal; opacity: .62; }
.scene-label { color: #fff; }
.header-end { display: flex; justify-content: flex-end; gap: 26px; color: #fff; }
.header-end a { text-decoration: none; pointer-events: auto; opacity: .68; }
.header-end a:hover { opacity: 1; }
.scene-count { display: flex; gap: 6px; }
.scene-count b { font-weight: 500; }
.scene-count i { font-style: normal; opacity: .55; }

.progress {
  position: fixed;
  z-index: 100;
  left: 22px;
  right: 22px;
  bottom: 18px;
  --progress-color: #fff;
  --progress-line: rgba(255,255,255,.25);
  mix-blend-mode: difference;
}

.scene { position: absolute; inset: 0; overflow: hidden; visibility: hidden; will-change: clip-path, mask-image, -webkit-mask-image; }
.scene-01 { z-index: 1; visibility: visible; }
.scene-02 { z-index: 2; }
.scene-03 { z-index: 3; }
.scene-04 { z-index: 4; }
.scene-05 { z-index: 5; }
.scene-06 { z-index: 6; }
.scene-07 { z-index: 7; }
.scene-08 { z-index: 8; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,9,.88) 0%, rgba(8,9,9,.25) 52%, rgba(8,9,9,.42) 100%); }
.scrim--soft { background: linear-gradient(90deg, rgba(8,9,9,.74), rgba(8,9,9,.06) 70%); }
.scrim--heavy { background: linear-gradient(90deg, rgba(8,9,9,.9), rgba(8,9,9,.42) 68%, rgba(8,9,9,.68)); }
.scene-02 .cover { object-position: 52% 50%; }
.scene-03 .cover { object-position: 72% 50%; }
.scene-04 .cover { object-position: 54% 50%; }
.scene-05 .cover { object-position: 52% 50%; }
.scene-08 .cover { object-position: 50% 48%; }
.scene-02 .scrim,
.scene-04 .scrim,
.scene-05 .scrim { background: linear-gradient(90deg, rgba(8,9,9,.86) 0%, rgba(8,9,9,.36) 51%, rgba(8,9,9,.18) 100%); }

.hero-copy,
.statement,
.audience-intro,
.final-copy {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 5vw, 96px);
}

.hero-copy { top: 50%; transform: translateY(-46%); }
.hero-copy p,
.statement p,
.audience-intro p,
.final-copy p,
.kicker,
.projects-heading p {
  margin: 0 0 18px;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .13em;
  line-height: 1.45;
  opacity: .72;
}

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.05em;
}
h1 { font-size: clamp(70px, 10vw, 184px); line-height: .74; }
h2 { font-size: clamp(66px, 8.7vw, 164px); line-height: .78; }
h1 em, h2 em { font-weight: 400; }

.hero-copy > span,
.statement > span {
  display: block;
  max-width: 370px;
  margin-top: 28px;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .12em;
  line-height: 1.55;
  opacity: .7;
}

.edge-note {
  position: absolute;
  z-index: 2;
  right: 28px;
  top: 50%;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: .15em;
  opacity: .7;
}

.statement { top: 50%; transform: translateY(-45%); }

.project-rail figcaption {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: .13em;
}

.audience-intro { top: 16%; }
.audience-intro h2 { font-size: clamp(62px, 7.5vw, 142px); }
.audience-rail {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 10%;
  display: flex;
  gap: clamp(58px, 8vw, 150px);
  width: max-content;
  padding-left: 18vw;
  white-space: nowrap;
}
.audience-rail span {
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 170px);
  line-height: .8;
  letter-spacing: -.045em;
}
.audience-rail span::after { content: '↗'; margin-left: 24px; font-family: var(--mono); font-size: .18em; vertical-align: top; opacity: .55; }

.scene-07 { color: var(--paper); background: var(--ink); }
.com-projects-heading {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 4vw, 76px);
  top: 36%;
  width: 34vw;
  text-shadow: 0 2px 28px rgba(0,0,0,.72);
}
.com-projects-heading p { color: #d98062; }
.com-projects-heading h2 { font-size: clamp(92px, 9vw, 164px); }
.com-projects-heading small { display: block; max-width: 320px; margin: 24px 0 0 9vw; font-size: 9px; line-height: 1.55; text-transform: uppercase; letter-spacing: .11em; opacity: .74; }
.com-project-rail {
  position: absolute;
  left: 0;
  top: 11vh;
  display: grid;
  grid-template-rows: repeat(2, 37.5vh);
  grid-auto-columns: 25vw;
  grid-auto-flow: column dense;
  gap: 1.15vw;
  width: max-content;
  height: 76.15vh;
  padding: 0 10vw 0 42vw;
  will-change: transform;
}
.com-project-rail figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #171817;
  border: 1px solid rgba(233,228,217,.24);
}
.commercial-gallery-item--wide { grid-column: span 2; }
.commercial-gallery-item--portrait { grid-row: span 2; }
.com-project-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) brightness(.88);
  transform: scale(1.015);
  transition: filter .7s ease, transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.com-project-rail figure:hover img { filter: saturate(1) brightness(1); transform: scale(1.055); }
.com-project-rail figure:nth-child(4n+1) img { object-position: 48% center; }
.com-project-rail figure:nth-child(5n+2) img { object-position: 58% center; }

.final-copy { top: 50%; transform: translateY(-48%); }
.final-copy h2 { font-size: clamp(70px, 9.5vw, 180px); }
.final-copy > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(440px, 78vw);
  margin-top: 38px;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.7);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .13em;
}
.final-copy > a span { font-size: 17px; }
.back-link {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 42px;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 8px;
  letter-spacing: .14em;
  opacity: .68;
}

.motion-unavailable .scroll-track { height: auto; }
.motion-unavailable .viewport { position: relative; }
.motion-unavailable .scene { position: relative; min-height: 100svh; visibility: visible; }

@media (max-width: 760px) {
  .scroll-track { height: 1700vh; }
  .progress { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .scene-label { display: none; }
  .header-end a { display: none; }
  h1 { font-size: clamp(60px, 20vw, 96px); }
  h2 { font-size: clamp(56px, 18vw, 88px); }
  .audience-intro { top: 14%; }
  .audience-rail { bottom: 18%; }
  .com-projects-heading { top: 14%; width: 78vw; }
  .com-projects-heading h2 { font-size: clamp(64px, 19vw, 92px); }
  .com-projects-heading small { max-width: 240px; margin: 14px 0 0 12vw; }
  .com-project-rail { top: 39vh; grid-template-rows: repeat(2, 25vh); grid-auto-columns: 72vw; height: 51.15vh; padding-left: 14vw; }
  .commercial-gallery-item--wide { grid-column: span 1; }
  .back-link { display: none; }
  .branch-entry strong { font-size: clamp(60px, 18vw, 112px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
