@font-face {
  font-family: Archivo;
  src: url("./fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url("./fonts/playfair.woff2") format("woff2");
  font-weight: 300 900;
  font-stretch: 87.5% 112.5%;
  font-display: swap;
}
@font-face { font-family: "Titan One"; src: url("./fonts/titan-one.woff2") format("woff2"); font-display: swap; }

:root {
  --paper: #ecf2e9;
  --ink: #142921;
  --accent: #15604f;
  --sand: #e8c797;
  --glacier: #86bec9;
  --heather: #bcaacf;
  --moss: #a5bd94;
  --panel: #f8fbf5;
  --mint: #bce1cd;
  --media-placeholder: #d7e2d8;
  --page: var(--paper);
  --brand-color: var(--accent);
  --switch: cubic-bezier(.65,.05,0,1);
  font-size: calc(100vw / 90);
  background: var(--page);
  transition: background-color .7s var(--switch);
}
:root[data-theme="dark"] {
  --page: var(--ink);
  --brand-color: var(--mint);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
body { font-family: Archivo, Arial, sans-serif; color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; }
:focus-visible { outline: .18rem solid var(--brand-color); outline-offset: .28rem; }
.nav-pill a:focus-visible, .case-detail :focus-visible { outline-color: var(--accent); }
::selection { background: var(--mint); color: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.js:not([data-page-ready]) main { visibility: hidden; }
.definitions { position: absolute; width: 0; height: 0; }
.wipe { position: fixed; inset: 0; z-index: 1000; pointer-events: none; overflow: clip; display: none; }
.js .wipe:not([data-done]) { display: block; }
.wipe svg { width: 100%; height: 100%; }
.wipe path { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 0; }

.headline {
  font-size: 8rem;
  font-variation-settings: "wght" var(--wght, 700), "wdth" 72;
  font-weight: 700;
  font-stretch: 72%;
  line-height: .8;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.headline em {
  font-family: Playfair, Georgia, serif;
  font-variation-settings: "wght" var(--wght, 300), "wdth" 87.5, "opsz" 120;
  font-weight: 300;
  font-style: normal;
  letter-spacing: -.035em;
}
.headline .line-mask, .headline .line { padding: .11em 0; margin: -.11em 0; }
.headline .char { font-variation-settings: "wght" var(--wght, 700), "wdth" 72; }
.headline em .char { font-variation-settings: "wght" var(--wght, 300), "wdth" 87.5, "opsz" 120; }
.eyebrow, .reel-link {
  font-family: Playfair, Georgia, serif;
  font-variation-settings: "wght" 500, "wdth" 87.5, "opsz" 40;
  font-size: 2rem;
  letter-spacing: -.03em;
  line-height: 1;
}
.eyebrow .line-mask, .eyebrow .line { padding-bottom: .09em; margin-bottom: -.09em; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: .16em;
  line-height: 1;
  white-space: nowrap;
}
.brand-name {
  font-variation-settings: "wght" 790, "wdth" 87;
  letter-spacing: -.038em;
}
.brand-label {
  font-size: .32em;
  font-variation-settings: "wght" 680, "wdth" 100;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.brand {
  color: var(--brand-color);
  font-size: 2.75rem;
  rotate: -4deg;
  transform-origin: left center;
  margin-top: .2rem;
  transition: color .7s var(--switch);
}
.brand .brand-label { font-size: max(.32em, 11px); }
.nav-pill, .contact-pill {
  display: flex;
  align-items: center;
  height: 3rem;
  padding: 0 1.25rem;
  background: var(--panel);
  color: var(--ink);
  border-radius: 5rem;
  font-size: 1.05rem;
  font-variation-settings: "wght" 700, "wdth" 72;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.nav-pill { gap: 1.5rem; position: absolute; left: 50%; translate: -50%; }
.nav-pill a, .reel-text { position: relative; }
.contact-pill { gap: .5rem; }
.contact-pill span { width: .45rem; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.draw-line { position: absolute; color: var(--accent); inset: 100% 0 auto; height: .5em; pointer-events: none; }
.draw-line svg { display: block; width: 100%; height: 100%; overflow: visible; }

.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  overflow: clip;
  background: var(--paper);
}
.hero-film { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center 50%; }
.hero-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: -3rem;
  text-align: center;
  pointer-events: none;
}
.hero-headline { font-size: 9rem; }
.hero-headline em, .work-copy .headline em { color: var(--accent); }
.reel-link { font-size: 2.1rem; display: inline-flex; align-items: center; gap: .375em; pointer-events: auto; }
.reel-link .draw-line { top: 118%; height: .6em; }
.arrow-box { position: relative; display: block; width: 1em; aspect-ratio: 1; overflow: hidden; background: var(--accent); color: var(--panel); }
.arrow-box svg {
  position: absolute;
  left: .27em;
  top: .27em;
  width: .46em;
  height: .46em;
  transition: transform .525s cubic-bezier(.175,.885,.32,1.275);
}
.arrow-box svg + svg { top: -.73em; }
.reel-link:is(:hover, :focus-visible) .arrow-box svg { transform: translateY(1em); }
.hero-card {
  display: none;
  position: absolute;
  z-index: 1;
  width: 16rem;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  overflow: hidden;
  pointer-events: none;
  background: var(--media-placeholder);
}
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  .hero-card { display: block; visibility: hidden; }
}
.hero-card-media { position: absolute; inset: 0; scale: 1.2; }
.hero-card-media .crop { visibility: hidden; }
.hero-card-media .crop.on { visibility: inherit; }
.demo-credit {
  position: absolute;
  z-index: 2;
  bottom: .72rem;
  right: 1.5rem;
  padding: .27rem .48rem;
  color: var(--ink);
  background: var(--paper);
  font-size: max(.72rem, 12px);
  font-variation-settings: "wght" 680, "wdth" 88;
  letter-spacing: .025em;
}
.marquee { position: absolute; z-index: 2; bottom: 1.5rem; left: 0; width: 100%; overflow: clip; color: var(--accent); pointer-events: none; }
.marquee-rail { display: flex; margin-left: -10%; width: 120%; }
.marks { flex: none; display: flex; align-items: center; }
.marks svg { width: 5.4rem; height: 4.2rem; margin: 1.4rem 4.3rem; }

.crop { position: absolute; inset: 0; container-type: size; overflow: hidden; background: var(--media-placeholder); }
.cell {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: max(100cqw, calc(100cqh * var(--ar)));
  aspect-ratio: var(--ar);
}
.cell img { position: absolute; max-width: none; }

.work { position: relative; background: var(--paper); }
.work-pin {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  align-items: center;
  gap: 2rem;
  padding: 0 3rem 0 5rem;
  overflow: clip;
}
.work-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.work-copy .eyebrow { max-width: 26rem; }
.work-copy .headline em { font-size: .88em; white-space: nowrap; }
.work-stage { position: relative; height: 100%; perspective: 1400px; }
.stack { position: relative; height: 100%; transform-style: preserve-3d; }
.case-card {
  position: absolute;
  display: block;
  aspect-ratio: 1.75;
  width: min(80vh, 52vw);
  left: 50%;
  top: calc(50% - 5vh);
  translate: -50% -50%;
  --pad: 1.75vh;
  background: var(--frame);
}
.case-card .crop, .case-card::after { inset: var(--pad); }
.case-card .crop { background: var(--ink); }
.case-card::after { content: ""; position: absolute; background: linear-gradient(#0000 50%, #0007); pointer-events: none; }
.case-card > span {
  position: absolute;
  z-index: 1;
  inset: auto 5% 1.22em;
  text-align: center;
  font-size: 7vh;
  font-variation-settings: "wght" 800, "wdth" 72;
  line-height: .84;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 .05em .3em #0006;
}
.case-card:last-child > span { font-size: 6.2vh; }
.case-card:focus-visible { z-index: 7 !important; }
.badge { position: absolute; right: 1rem; bottom: 1rem; width: 9rem; z-index: 6; pointer-events: none; overflow: visible; }
.badge text { font-variation-settings: "wght" 800, "wdth" 80; font-size: 20px; fill: var(--paper); }
.work:not(.is-pinned) .work-pin { height: auto; min-height: 100vh; padding-block: 6rem 4rem; }
.work:not(.is-pinned) .stack { display: grid; gap: 1.5rem; }
.work:not(.is-pinned) .case-card { width: 100%; position: relative; inset: auto; translate: none; }
.work:not(.is-pinned) .badge { display: none; }
.case-cursor { position: fixed; z-index: 100; top: 0; left: 0; pointer-events: none; }
.cursor-card { display: flex; width: 10.5rem; background: var(--mint); color: var(--ink); overflow: hidden; scale: 0; transition: scale .4s var(--switch); }
.case-cursor.is-active .cursor-card { scale: 1; }
.cursor-card span {
  flex: none;
  white-space: nowrap;
  text-transform: uppercase;
  font-variation-settings: "wght" 700, "wdth" 72;
  font-size: 1.3rem;
  padding: .375em .25em;
  animation: cursor-label var(--duration, 3s) linear infinite paused;
}
.case-cursor.is-running span { animation-play-state: running; }
@keyframes cursor-label { to { transform: translateX(-100%); } }

.team {
  position: relative;
  height: 340vh;
  color: var(--ink);
  transition: color .7s var(--switch);
}
[data-theme="dark"] .team { color: var(--paper); }
[data-theme="dark"] .team .headline em { color: var(--mint); }
.team-pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; z-index: 1; }
.team-copy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }
.team .headline { font-size: 7rem; }
.team .eyebrow { font-size: 2.5rem; }
.team-description, .case-detail p {
  font-family: Playfair, Georgia, serif;
  font-variation-settings: "wght" 400, "wdth" 100, "opsz" 20;
  max-width: 26rem;
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.stamp { position: absolute; top: -8rem; left: -3rem; rotate: -10deg; }
.stamp .brand-lockup {
  align-items: center;
  justify-content: center;
  width: 10rem;
  aspect-ratio: 1.75;
  padding: .3em;
  background: var(--paper);
  border: .4rem solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.62rem;
  rotate: -3deg;
}
.stamp .brand-label { font-size: .4em; }
.team-photos { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: clip; }
.team-photo { position: absolute; top: var(--top); width: var(--width); }
.team-photo[data-side="left"] { left: var(--offset); }
.team-photo[data-side="right"] { right: var(--offset); }
.photo-inner { aspect-ratio: 4 / 5; position: relative; rotate: var(--angle); pointer-events: auto; }
.photo-name {
  position: absolute;
  left: 50%;
  bottom: -.9rem;
  translate: -50%;
  rotate: var(--label-angle);
  font: 3.4rem/1 "Titan One", sans-serif;
  color: var(--accent);
  paint-order: stroke fill;
  -webkit-text-stroke: .32rem var(--paper);
}
.photo-tag {
  position: absolute;
  left: .7rem;
  bottom: .7rem;
  padding: .25rem .5rem;
  color: var(--ink);
  background: var(--paper);
  text-transform: uppercase;
  font-size: .9rem;
  font-variation-settings: "wght" 700, "wdth" 72;
}

.case-detail {
  color: var(--ink);
  background: var(--paper);
  border: 0;
  padding: 1.1rem;
  position: fixed;
  inset: 0;
  width: min(38rem, 90vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 1rem 4rem #0007;
}
.case-detail::backdrop { background: #142921b8; }
.case-detail h2 { font-size: 3rem; font-variation-settings: "wght" 800, "wdth" 72; line-height: 1; }
.case-detail-copy { display: grid; gap: .75rem; padding: 1rem .5rem .5rem; }
.case-detail .art { position: relative; aspect-ratio: 1.75; }
.case-detail button {
  position: absolute;
  z-index: 1;
  top: 1.6rem;
  right: 1.6rem;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  padding: .45rem .7rem;
  cursor: pointer;
}
.case-detail-copy a { font-weight: 700; text-decoration: underline; text-underline-offset: .2em; width: fit-content; }

@media (max-width: 991px) {
  :root { font-size: calc(100vw / 60); }
  .nav-pill { display: none; }
  .headline, .team .headline { font-size: 6rem; }
  .hero-headline { font-size: 6.4rem; }
  .work-pin { height: auto; padding: 6rem 1.5rem 4rem; grid-template-columns: 1fr; gap: 3rem; }
  .work-stage, .stack { height: auto; }
  .stack { display: grid; gap: 1.5rem; }
  .case-card { position: relative; width: 100%; left: auto; top: auto; translate: none; --pad: 1rem; }
  .case-card > span, .case-card:last-child > span { font-size: 3.4rem; bottom: 1.6em; }
  .badge { display: none; }
  .team { height: 260vh; }
}
@media (max-width: 600px) {
  :root { font-size: calc(100vw / 24.375); }
  .site-header { padding: 1rem; }
  .brand { font-size: 1.9rem; }
  .contact-pill { height: 2.5rem; font-size: .95rem; padding: 0 .9rem; }
  .hero-film { object-position: 6% 50%; }
  .hero-content { gap: 1.4rem; margin-top: 5rem; padding: 0 1rem; }
  .hero-headline { font-size: 4rem; }
  .hero-card { display: block; width: 7.5rem; top: 13%; translate: -50% 0; rotate: -5deg; }
  .reel-link { font-size: 1.6rem; }
  .marks svg { width: 3.3rem; height: 3rem; margin: 1rem 2.1rem; }
  .demo-credit { right: 1rem; }
  .headline, .team .headline { font-size: 4.2rem; }
  .hero .headline { font-size: 4rem; }
  .eyebrow { font-size: 1.5rem; }
  .team .eyebrow { font-size: 1.75rem; }
  .team-copy { padding-inline: 1.5rem; }
  .case-card > span, .case-card:last-child > span { font-size: 2rem; }
  .team-photo { width: 8rem; top: var(--mobile-top); }
  .team-photo[data-side="left"] { left: var(--mobile-offset); }
  .team-photo[data-side="right"] { right: var(--mobile-offset); }
  .photo-name { font-size: 1.9rem; -webkit-text-stroke-width: .22rem; bottom: -.45rem; }
  .photo-tag { display: none; }
  .stamp { left: 1rem; top: -5rem; }
  .stamp .brand-lockup { width: 6rem; font-size: 1rem; border-width: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root, .brand, .team, .cursor-card, .arrow-box svg { transition: none; }
  .js:not([data-page-ready]) main { visibility: visible; }
  .js .wipe { display: none; }
  [data-enter] .char, [data-reveal] .char, [data-reveal] .line, [data-reveal="element"] {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .team { height: auto; }
  .team-pin { position: relative; height: auto; padding: 8rem 1rem 4rem; }
  .team-photos { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); gap: 2rem; padding: 2rem; }
  .team-photo[data-side] { position: relative; inset: auto; width: auto; }
  .cursor-card span { animation: none; }
  .cursor-card span + span { display: none; }
}
