@font-face {
  font-family: 'Pirata One';
  src: url('assets/PirataOne.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #080e09;
  --ice: #d5e7cd;
  --muted: #bdcbb6;
  --line: #aac09c36;
  --soft-glow: 0 0 1px #e3f9cfb3, 0 0 7px #d0ebb07a, 0 0 19px #add38b61, 0 0 36px #9fca7a38;
  --frame-gutter: 42px;
  --camera-x: 0px;
  --camera-y: 0px;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ice);
  font-family: 'Pirata One', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-shadow: var(--soft-glow);
}
.page-loader { display: none; position: fixed; z-index: 100; inset: 0; background: radial-gradient(ellipse at center, #111a0f 0%, var(--ink) 58%); opacity: 1; }
html.is-loading .page-loader, html.is-revealing .page-loader { display: grid; }
html.is-loading body { overflow: hidden; }
html.is-loading .skip-link { visibility: hidden; }
html.is-loading .steam-wisp, html.is-loading .fog, html.is-loading .film-grain { animation-play-state: paused; }
.page-loader.is-leaving { opacity: 0; pointer-events: none; transition: opacity .6s cubic-bezier(.455, .03, .515, .955); }
.loader-stars { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: blur(.35px); }
.loader-moon { display: block; position: absolute; z-index: 1; left: var(--loader-moon-x, 50%); top: var(--loader-moon-y, 50%); width: var(--loader-moon-size, 128px); height: var(--loader-moon-size, 128px); transform: translate(-50%, -50%); visibility: hidden;  }
.loader-moon.is-aligned { visibility: visible; }
.loader-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
a { color: inherit; text-decoration: none; }
a:focus-visible, .project-link:focus-visible { outline: 2px solid var(--ice); outline-offset: 7px; }
::selection { color: var(--ink); background: var(--ice); text-shadow: none; }
.skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0; text-shadow: none; }
.skip-link:focus-visible { position: fixed; z-index: 30; top: 12px; left: 50%; translate: -50% 1em; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; background: var(--ice); color: var(--ink); padding: 12px 20px; border-radius: 99px; text-align: center; }
.poster {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink);
}
.scene-stack { position: absolute; z-index: -3; inset: -18px; pointer-events: none; }
.depth-layer { position: absolute; inset: 0; will-change: transform; }
.layer-back { z-index: 0; transform: translate3d(calc(var(--camera-x) * .14), calc(var(--camera-y) * .14), 0); }
.layer-fog { z-index: 10; transform: translate3d(calc(var(--camera-x) * .36), calc(var(--camera-y) * .36), 0); }
.layer-trees { z-index: 20; transform: translate3d(calc(var(--camera-x) * .45), calc(var(--camera-y) * .45), 0); }
.layer-front { z-index: 30; transform: translate3d(var(--camera-x), var(--camera-y), 0); }
.layer-art { position: absolute; left: var(--art-x, 0px); top: var(--art-y, 0px); width: var(--art-width, 100%); height: var(--art-height, 100%); display: block; max-width: none;  -webkit-mask-image: var(--art-edge-mask, none); mask-image: var(--art-edge-mask, none); }
.layer-trees .layer-art { transform: scaleX(var(--trees-scale-x, .74));  }
.poster::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(180deg, #050a065c 0%, transparent 43%, transparent 73%, #050a06ee 100%); }
.dust { position: absolute; z-index: 2; inset: 0; pointer-events: none; width: 100%; height: 100%;  }
.film-grain { position: absolute; z-index: 20; inset: -128px; pointer-events: none; background: url('assets/grain-tile.png') repeat; mix-blend-mode: soft-light; opacity: .12; will-change: transform; animation: drifting-grain 1s steps(1, end) infinite; }
@keyframes drifting-grain {
  0%, 100% { transform: translate3d(0, 0, 0); }
  12.5% { transform: translate3d(-24px, 47px, 0); }
  25% { transform: translate3d(55px, -17px, 0); }
  37.5% { transform: translate3d(-46px, 31px, 0); }
  50% { transform: translate3d(18px, -53px, 0); }
  62.5% { transform: translate3d(-58px, -21px, 0); }
  75% { transform: translate3d(39px, 56px, 0); }
  87.5% { transform: translate3d(-11px, 23px, 0); }
}
.fog { position: absolute; width: 150%; height: 30%; left: -25%; background: url('assets/fog-graded.webp') center / 100% 100% no-repeat; pointer-events: none; mix-blend-mode: screen;  will-change: transform; }
.fog-distant { top: 49%; opacity: .23; animation: distant-fog 70s ease-in-out infinite alternate; }
.fog-near { top: 64%; height: 30%; opacity: .17; animation: near-fog 53s ease-in-out -24s infinite alternate; }
.steam { position: absolute; left: var(--cup-x, 50%); top: var(--cup-y, 60%); width: var(--steam-width, 280px); height: var(--steam-height, 330px); transform: translate(-50%, -95%); pointer-events: none; mix-blend-mode: screen; }
.steam-wisp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; transform-origin: 50% 100%; opacity: 0;  will-change: transform, opacity; animation: rising-steam 18s linear infinite; }
.steam-second { animation-duration: 22s; animation-delay: -10s; }
.steam-third { animation-duration: 26s; animation-delay: -18s; }
.steam-wing { width: 78%; filter: blur(1.2px); }
.steam-wing-left { left: -28%; mask-image: linear-gradient(90deg, transparent 0%, #0009 55%, #000 100%); animation: steam-side-left 25s linear -9s infinite; }
.steam-wing-right { left: 50%; mask-image: linear-gradient(270deg, transparent 0%, #0009 55%, #000 100%); animation: steam-side-right 29s linear -18s infinite; }
.poster[data-paused] .steam-wisp, .poster[data-paused] .fog, .poster[data-paused] .wordmark, .poster[data-paused] .film-grain { animation-play-state: paused; }
html.is-loading .wordmark { animation-play-state: paused; }
@keyframes rising-steam {
  0% { opacity: 0; transform: translate3d(-9px, 22px, 0) scale(.86, .9); }
  20% { opacity: .22; }
  60% { opacity: .18; }
  100% { opacity: 0; transform: translate3d(20px, -42px, 0) scale(1.13, 1.08); }
}
@keyframes steam-side-left {
  0% { opacity: 0; transform: translate3d(2px, 18px, 0) scale(.9, .9); }
  25% { opacity: .08; }
  65% { opacity: .05; }
  100% { opacity: 0; transform: translate3d(-24px, -38px, 0) scale(1.12, 1.05); }
}
@keyframes steam-side-right {
  0% { opacity: 0; transform: translate3d(-2px, 15px, 0) scale(.9, .9); }
  25% { opacity: .075; }
  65% { opacity: .045; }
  100% { opacity: 0; transform: translate3d(24px, -43px, 0) scale(1.12, 1.08); }
}
@keyframes distant-fog { from { transform: translate3d(-7%, 1%, 0) scale(1.04); } to { transform: translate3d(8%, -4%, 0) scale(1.09); } }
@keyframes near-fog { from { transform: translate3d(9%, 1%, 0) scaleX(1.05); } to { transform: translate3d(-8%, -5%, 0) scaleX(1.16); } }
.masthead { position: absolute; z-index: 3; inset: 0 0 auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; padding: clamp(38px, 4.5svh, 60px) var(--frame-gutter) 0; font-size: 1.125rem; line-height: 1.5; letter-spacing: .025em; opacity: .6; }
.agency-name { white-space: nowrap; }
.place { color: var(--muted); white-space: nowrap; }
main { flex: 1; text-align: center; }
.title-block { position: absolute; z-index: 3; top: 10.5svh; left: 0; right: 0; padding: 0 var(--frame-gutter); }
.moonlit-copy { display: inline-block; vertical-align: top; padding: 80px; margin: -80px; --moonlight-mask: radial-gradient(circle at 50% calc(100% - 80px), #000 18%, rgb(0 0 0 / .6) 60%, rgb(0 0 0 / .3) 100%); -webkit-mask-image: var(--moonlight-mask); mask-image: var(--moonlight-mask); }
.overline { margin: 0 0 12px; color: #c4d1bd; font-size: 1.625rem; line-height: 1.3; letter-spacing: .025em; text-wrap: balance; }
.overline span, .service-credits span { display: block; white-space: nowrap; }
h1 { font-size: min(18.5vw, 22svh, 18rem); font-weight: 400; line-height: .94; letter-spacing: -.015em; margin: 0; text-shadow: 0 0 2px #edffdb99, 0 0 11px #d9f3bd66, 0 0 30px #b6d69766, 0 0 74px #a6ca853b; }
.wordmark { display: inline-flex; align-items: baseline; animation: wordmark-radiance 9s ease-in-out infinite; }
.wordmark > span {
  color: transparent;
  background: #071008;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: .018em 0 .004em #d5e7cd, 0 0 2px #edffdb40, 0 0 11px #d9f3bd66, 0 0 30px #b6d69766, 0 0 74px #a6ca853b;
}
.wordmark-middle { letter-spacing: .05rem; }
.wordmark-cap { transform: translateY(10%); text-transform: uppercase; }
@keyframes wordmark-radiance {
  0%, 100% { filter: brightness(1) saturate(1); }
  45% { filter: brightness(1.055) saturate(1.04); }
  72% { filter: brightness(1.015) saturate(1.02); }
}
.project-link { position: absolute; z-index: 3; left: var(--project-x, 50%); top: var(--project-y, 74%); transform: translate3d(calc(-50% + var(--camera-x)), calc(-50% + var(--camera-y)), 0); will-change: transform; display: inline-flex; min-height: 48px; align-items: center; justify-content: center; appearance: none; font: inherit; color: inherit; text-shadow: inherit; cursor: pointer; font-size: 2rem; letter-spacing: .035em; border: 2px solid #d5e7cda6; border-radius: 999px; padding: 12px 32px; background: rgb(8 14 9 / .3); box-shadow: 0 0 3px #e3f9cf66, 0 0 12px #d0ebb061, 0 0 28px #add38b3b, 0 0 48px #9fca7a1f, inset 0 0 12px #c3e4af10; transition: background .25s, color .25s, border-color .25s, box-shadow .25s; }
.project-link:hover { background: var(--ice); color: var(--ink); border-color: var(--ice); text-shadow: 0 0 6px #ffffb388; box-shadow: 0 0 4px #e3f9cf99, 0 0 18px #d0ebb080, 0 0 38px #add38b55; }
.project-link { white-space: nowrap; }
.credits { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(32px, 4.5svh, 56px); text-align: center; padding: 0 var(--frame-gutter); opacity: .6; }
.service-credits { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; margin: 0; padding: 0; gap: 25px; color: #c0ceb6; font-size: 1.125rem; letter-spacing: .015em; line-height: 1.45; }
.service-credits li { text-align: center; text-wrap: balance; }
@media (max-width: 1100px) { h1 { font-size: min(27vw, 18svh, 14.5rem); } .service-credits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .service-credits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .service-credits li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --frame-gutter: 24px; }
  .masthead { padding-top: clamp(32px, 4svh, 44px); }
  .overline { font-size: 1.375rem; }
  .service-credits { gap: 18px 24px; }
}
@media (max-width: 580px) {
  :root { --frame-gutter: 20px; }
  .masthead { padding-top: clamp(28px, 4svh, 40px); font-size: 1rem; }
  h1 { font-size: min(40vw, 17.5svh, 13rem); line-height: .92; }
  .overline { font-size: 1.375rem; margin-bottom: 12px; }
  .project-link { font-size: clamp(1.375rem, 3.2svh, 1.625rem); padding: 10px 18px; }
  .poster::before { background: linear-gradient(180deg, #050a0626 0%, transparent 36%, transparent 61%, #080e09 80%); }
  .fog-distant { top: 39%; height: 28%; opacity: .10; }
  .fog-near { top: 58%; height: 25%; opacity: .07; }
  .credits { bottom: clamp(32px, 5svh, 44px); }
  .service-credits { gap: 12px 14px; font-size: clamp(.875rem, 4.3vw, 1.0625rem); }
}
@media (max-height: 760px) { .overline { font-size: 1.375rem; } }
@media (max-height: 760px) and (max-width: 580px) {
  .title-block { top: max(10.5svh, 82px); }
  .overline { font-size: 1.25rem; }
  h1 { font-size: min(40vw, 16svh, 13rem); }
  .credits { bottom: clamp(20px, 3svh, 28px); }
}
@media (min-aspect-ratio: 19/10) { h1 { font-size: min(18.5vw, 17svh, 18rem); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, .project-link { transition: none !important; }
  .depth-layer { transform: none !important; will-change: auto; }
  .steam-wisp, .fog, .wordmark, .film-grain { animation: none !important; will-change: auto; }
  .steam-first { opacity: .18; }
  .dust { display: none; }
  .page-loader.is-leaving { transition: none; }
  .loader-shadow { display: none; }
}
