@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial");
  ascent-override: 102.23%;
  descent-override: 24.29%;
  line-gap-override: 10.12%;
  size-adjust: 98.8%;
}

@font-face {
  font-family: "Arrow";
  src: local("Arial");
  ascent-override: 89.79%;
  descent-override: 22.36%;
  line-gap-override: 0%;
  size-adjust: 107.89%;
}

:root {
  color-scheme: light;
  --bg: #fff;
  --text: #121212;
  --border: rgba(0, 0, 0, 0.2);
  --accent: #00ab91;
  --accent-hover: #ed702e;
  --sun: block;
  --moon: none;
  --gutter: 45px;
  --gap: 32px;
  --ease-out: cubic-bezier(0, 0, 0.19, 0.99);
  --spring-snappy: linear(0, 0.198, 0.446, 0.627, 0.75, 0.833, 0.888, 0.925, 0.95, 0.967, 0.978, 0.985, 0.99, 0.993, 0.996, 0.997, 1);
  --spring-soft: linear(0, 0.061, 0.201, 0.368, 0.533, 0.677, 0.794, 0.883, 0.946, 0.987, 1.011, 1.024, 1.028, 1.027, 1.024, 1.019, 1.015, 1.01, 1.007, 1.004, 1);
  --spring-bouncy: linear(0, 0.071, 0.236, 0.437, 0.634, 0.802, 0.931, 1.018, 1.07, 1.092, 1.093, 1.082, 1.064, 1.045, 1.028, 1.013, 1.003, 0.996, 0.992, 0.991, 0.991, 0.993, 0.995, 0.996, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121212;
  --text: #fff;
  --border: rgba(255, 255, 255, 0.2);
  --sun: none;
  --moon: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #121212;
    --text: #fff;
    --border: rgba(255, 255, 255, 0.2);
    --sun: none;
    --moon: block;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Satoshi", "Satoshi Fallback", sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

h1,
h2,
p,
ul {
  margin: 0;
  padding: 0;
}

picture {
  display: contents;
}

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

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 40px;
  overflow: hidden;
}

main {
  display: contents;
}

.link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--link-color, #fff);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.64s var(--spring-snappy), gap 0.64s var(--spring-snappy);
}

.link:hover {
  color: var(--accent);
}

.link:active {
  gap: 10px;
}

.link-arrow {
  font-family: "Arrow", sans-serif;
  transition: transform 0.64s var(--spring-snappy);
}

.link:hover .link-arrow,
.link:active .link-arrow {
  transform: rotate(-45deg);
}

.bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 0 40px;
  color: #fff;
  mix-blend-mode: difference;
}

.bar--top {
  top: 0;
}

.bar--bottom {
  bottom: 0;
}

.bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 25px 40px;
}

.bar--bottom p {
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.theme-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.4s var(--spring-soft);
}

.theme-toggle:hover svg {
  transform: scale(1.1);
}

.icon-sun {
  display: var(--sun);
}

.icon-moon {
  display: var(--moon);
}

.hero,
.section {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  padding: 0 var(--gutter);
}

.hero::after,
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  border: solid var(--border);
  border-width: 0 1px;
  pointer-events: none;
}

.hero {
  --border: rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  height: 100vh;
  color: #fff;
  mix-blend-mode: difference;
  animation: fade-in 0.8s cubic-bezier(0.12, 0.23, 0.5, 1) 0.2s both;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 5px;
  white-space: nowrap;
}

h1 {
  font-size: 50px;
  font-weight: 700;
}

h2 {
  font-size: 30px;
  font-weight: 500;
}

h2 a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.44, 0, 0.56, 1);
}

h2 a:hover {
  color: var(--accent-hover);
}

.socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 120px;
}

.section-title {
  font-size: 18px;
  line-height: 2;
  text-align: center;
}

.muted {
  opacity: 0.5;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.work {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-meta {
  --link-color: var(--text);
  justify-content: space-between;
}

.card {
  display: block;
  aspect-ratio: 2504 / 1304;
  border-radius: 2.4% / 4.6%;
  overflow: hidden;
}

.card img {
  object-fit: cover;
}

.card--contain {
  border: 1px solid var(--border);
  background: #fff;
}

.card--contain img {
  object-fit: contain;
}

.card--right img {
  object-position: right;
}

a.card img {
  transition: transform 0.4s var(--spring-soft);
}

@media (hover: hover) {
  a.card:hover img {
    transform: scale(1.1) rotate(1deg);
  }
}

.edge-blur {
  position: fixed;
  left: 0;
  z-index: 8;
  width: 100%;
  pointer-events: none;
}

.edge-blur--top {
  top: 0;
  bottom: 680px;
  --toward-edge: to top;
}

.edge-blur--bottom {
  bottom: 0;
  height: 121px;
  --toward-edge: to bottom;
}

.edge-blur span {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  --band: linear-gradient(
    var(--toward-edge),
    transparent calc((var(--layer) - 1) * 12.5%),
    #000 calc(var(--layer) * 12.5%),
    #000 calc((var(--layer) + 1) * 12.5%),
    transparent calc((var(--layer) + 2) * 12.5%)
  );
  -webkit-mask-image: var(--band);
  mask-image: var(--band);
}

.edge-blur span:nth-child(1) { --layer: 1; --blur: 0.15625px; }
.edge-blur span:nth-child(2) { --layer: 2; --blur: 0.3125px; }
.edge-blur span:nth-child(3) { --layer: 3; --blur: 0.625px; }
.edge-blur span:nth-child(4) { --layer: 4; --blur: 1.25px; }
.edge-blur span:nth-child(5) { --layer: 5; --blur: 2.5px; }
.edge-blur span:nth-child(6) { --layer: 6; --blur: 5px; }
.edge-blur span:nth-child(7) { --layer: 7; --blur: 10px; }
.edge-blur span:nth-child(8) { --layer: 8; --blur: 20px; }

.grain {
  position: absolute;
  inset: 0;
  background: url("../images/grain.png") left top / 162.5px auto repeat;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.booking {
  width: min(100% - 32px, 560px);
  height: min(100% - 32px, 780px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.3s var(--ease-out), transform 0.5s var(--spring-soft), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}

.booking[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: none;
}

.booking::backdrop {
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: background 0.3s var(--ease-out), backdrop-filter 0.3s var(--ease-out), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}

.booking[open]::backdrop {
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@starting-style {
  .booking[open] {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  .booking[open]::backdrop {
    background: rgba(0, 0, 0, 0);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
}

html:has(.booking[open]) {
  overflow: hidden;
}

.booking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 20px;
  border-bottom: 1px solid var(--border);
}

.booking-close {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.64s var(--spring-snappy);
}

.booking-close:hover {
  color: var(--accent);
}

.booking-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.4s var(--spring-soft);
}

.booking-close:hover svg {
  transform: rotate(90deg);
}

.booking-body {
  position: relative;
  flex: 1;
  background: #fff;
}

.booking-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #121212;
  font-size: 14px;
  opacity: 0.5;
}

.booking-body iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.booking-body iframe.is-loaded {
  opacity: 1;
}

.ticker {
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  height: 834px;
  padding: 10px;
  overflow: hidden;
  transform: translateX(-50%);
  animation: fade-in 3s cubic-bezier(0.44, 0, 0.56, 1) 0.5s both;
}

.ticker-track {
  --item-width: 1030px;
  --item-gap: 10px;
  display: flex;
  flex: none;
  gap: var(--item-gap);
  list-style: none;
  animation: ticker 41.6s linear infinite;
  will-change: transform;
}

.ticker-track li {
  flex: none;
  width: var(--item-width);
  aspect-ratio: 2504 / 1304;
}

@keyframes ticker {
  to {
    transform: translateX(calc((var(--item-width) + var(--item-gap)) * -4));
  }
}

@keyframes fade-in {
  from {
    opacity: 0.001;
  }
}

@keyframes rise {
  from {
    opacity: 0.001;
    transform: translateY(20px);
  }
}

.reveal {
  animation: rise 1s var(--ease-out) var(--delay, 0s) both;
}

.js .tilt {
  opacity: 0.5;
  transform: perspective(1200px) translateY(5px) scale(0.97) rotateX(4deg);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.js .tilt.is-visible {
  opacity: 1;
  transform: none;
}

.js .pop {
  opacity: 0;
  transform: translateY(87px) rotate(12deg);
}

.js .pop.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.86s var(--spring-bouncy) 0.2s, transform 0.86s var(--spring-bouncy) 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero,
  .ticker,
  .ticker-track {
    animation: none;
  }

  .js .tilt,
  .js .pop.is-visible,
  .booking,
  .booking::backdrop {
    transition: none;
  }
}

@media (max-width: 1199.98px) {
  :root {
    --gutter: 0px;
    --gap: 24px;
  }

  .page {
    padding: 0 25px;
  }

  .bar {
    padding: 0;
  }

  .bar-inner {
    padding: 25px 20px;
  }

  .hero::after,
  .section::after {
    content: none;
  }

  .section {
    padding-bottom: 96px;
  }

  .section-title {
    text-align: left;
  }

  .work {
    gap: 10px;
  }

  .work-meta {
    font-size: 12px;
  }

  .ticker {
    top: 0;
    height: 844px;
  }
}

@media (max-width: 499px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 20px;
  }

  .section-title {
    font-size: 14px;
  }
}
