/* Metric-matched fallback @font-face rules (the "... fallback" families
   below) generated with fontaine (github.com/unjs/fontaine) against a
   local Arial reference, then committed as static CSS — this project's
   Vite build runs on Rolldown, and fontaine's build-time transform
   plugin (built on `unplugin`) doesn't currently hook into Rolldown's
   pipeline, so its output has to be generated once and pasted in rather
   than computed on every build. Regenerate by running FontaineTransform's
   transform handler directly against this file's real @font-face rules
   if the fonts ever change.

   Why this exists: "Humane" is a very tall/narrow display face, wildly
   different from any system font's proportions (size-adjust as low as
   28% below). Rendering the studio.html hero at font-size: 40vw with the
   default browser fallback, then swapping to Humane once it loads,
   produced a CLS of 0.509 — these fallback faces are sized/positioned to
   match Humane and Neue Montreal's real metrics, so the swap from
   fallback -> webfont doesn't reflow the page. Reference them by adding
   "<Family> fallback" into the relevant font stack, e.g.
   var(--f-h): "Humane", "Humane fallback", system-ui, sans-serif
   (see css/globals.css). */

@font-face {
  font-family: "Humane fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Arimo"),
    local("Helvetica"),
    local("Helvetica Neue"),
    local("Nimbus Sans");
  size-adjust: 28.2637%;
  ascent-override: 258.2814%;
  descent-override: 56.6096%;
  line-gap-override: 35.381%;
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "Humane";
  src: url("/fonts/humane/humane-thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Humane fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Arimo"),
    local("Helvetica"),
    local("Helvetica Neue"),
    local("Nimbus Sans");
  size-adjust: 30.2826%;
  ascent-override: 241.0626%;
  descent-override: 52.8356%;
  line-gap-override: 33.0223%;
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: "Humane";
  src: url("/fonts/humane/humane-extralight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Humane fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Arimo"),
    local("Helvetica"),
    local("Helvetica Neue"),
    local("Nimbus Sans");
  size-adjust: 32.0771%;
  ascent-override: 227.5766%;
  descent-override: 49.8798%;
  line-gap-override: 31.1749%;
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Humane";
  src: url("/fonts/humane/humane-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Humane fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Arimo"),
    local("Helvetica"),
    local("Helvetica Neue"),
    local("Nimbus Sans");
  size-adjust: 33.8716%;
  ascent-override: 215.5196%;
  descent-override: 47.2372%;
  line-gap-override: 29.5232%;
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Humane";
  src: url("/fonts/humane/humane-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Humane fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Arimo"),
    local("Helvetica"),
    local("Helvetica Neue"),
    local("Nimbus Sans");
  size-adjust: 37.2364%;
  ascent-override: 196.0449%;
  descent-override: 42.9688%;
  line-gap-override: 26.8555%;
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Humane";
  src: url("/fonts/humane/humane-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Humane fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Arimo"),
    local("Helvetica"),
    local("Helvetica Neue"),
    local("Nimbus Sans");
  size-adjust: 40.6011%;
  ascent-override: 179.7981%;
  descent-override: 39.4078%;
  line-gap-override: 24.6299%;
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Humane";
  src: url("/fonts/humane/humane-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Humane fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Arimo"),
    local("Helvetica"),
    local("Helvetica Neue"),
    local("Nimbus Sans");
  size-adjust: 43.9658%;
  ascent-override: 166.038%;
  descent-override: 36.3919%;
  line-gap-override: 22.7449%;
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Humane";
  src: url("/fonts/humane/humane-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Arimo"),
    local("Helvetica"),
    local("Helvetica Neue"),
    local("Nimbus Sans");
  size-adjust: 90.6234%;
  ascent-override: 105.7122%;
  descent-override: 26.7039%;
  line-gap-override: 0%;
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("/fonts/neue-montreal/neue-montreal-thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Arimo"),
    local("Helvetica"),
    local("Helvetica Neue"),
    local("Nimbus Sans");
  size-adjust: 92.418%;
  ascent-override: 103.6595%;
  descent-override: 26.1854%;
  line-gap-override: 0%;
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("/fonts/neue-montreal/neue-montreal-light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Arimo"),
    local("Helvetica"),
    local("Helvetica Neue"),
    local("Nimbus Sans");
  size-adjust: 93.9882%;
  ascent-override: 101.9277%;
  descent-override: 25.7479%;
  line-gap-override: 0%;
  font-weight: 350;
  font-style: normal;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("/fonts/neue-montreal/neue-montreal-book.ttf") format("truetype");
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Arimo"),
    local("Helvetica"),
    local("Helvetica Neue"),
    local("Nimbus Sans");
  size-adjust: 95.3341%;
  ascent-override: 100.4887%;
  descent-override: 25.3844%;
  line-gap-override: 0%;
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("/fonts/neue-montreal/neue-montreal-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Arimo"),
    local("Helvetica"),
    local("Helvetica Neue"),
    local("Nimbus Sans");
  size-adjust: 97.1286%;
  ascent-override: 98.6321%;
  descent-override: 24.9154%;
  line-gap-override: 0%;
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("/fonts/neue-montreal/neue-montreal-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal fallback";
  src:
    local("Arial"),
    local("Liberation Sans"),
    local("Arimo"),
    local("Helvetica"),
    local("Helvetica Neue"),
    local("Nimbus Sans");
  size-adjust: 103.1851%;
  ascent-override: 92.8429%;
  descent-override: 23.453%;
  line-gap-override: 0%;
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("/fonts/neue-montreal/neue-montreal-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --l: #ffd601;
  --d: #0f0f0f;
  --f-h: "Humane", "Humane fallback", system-ui, sans-serif;
  --f-nm: "Neue Montreal", "Neue Montreal fallback", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--f-nm);
  background-color: var(--l);
  color: var(--d);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--f-h);
  line-height: 0.85;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(5rem, 20vw, 20rem);
}
h2 {
  font-size: clamp(4.5rem, 15vw, 15rem);
}
h3 {
  font-size: clamp(4rem, 12vw, 12rem);
}
h4 {
  font-size: clamp(3.5rem, 10vw, 10rem);
}
h5 {
  font-size: clamp(3rem, 8vw, 8rem);
}
h6 {
  font-size: clamp(2.5rem, 6vw, 6rem);
}

p {
  font-family: var(--f-nm);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.125;
  text-transform: uppercase;
}

p.md {
  font-size: 1.125rem;
}
p.lg {
  font-size: 1.25rem;
}

.container {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  padding: 2.5rem;
}

.line,
.word {
  position: relative;
  will-change: transform;
}

.line {
  display: block;
}
.word {
  display: inline-block;
}

.line-mask,
.word-mask {
  display: block;
  overflow: hidden;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

@media (pointer: fine) {
  #custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20001;
    width: 28px;
    height: 28px;
    opacity: 0;
    background-color: var(--l);
    -webkit-mask: url("/icons/cursor.png") center / contain no-repeat;
    mask: url("/icons/cursor.png") center / contain no-repeat;
    mix-blend-mode: difference;
    pointer-events: none;
    user-select: none;
    transform: translate3d(var(--x, -100px), var(--y, -100px), 0)
      translate(-50%, -50%);
    transition: opacity 120ms ease;
    will-change: transform, opacity;
  }

  #custom-cursor.is-visible {
    opacity: 1;
  }

  .container {
    padding: 2.25rem;
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-group(root) {
  animation: none;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform, clip-path, filter;
}

::view-transition-old(root) {
  animation: 1.5s cubic-bezier(0.87, 0, 0.13, 1) both move-out;
}

::view-transition-new(root) {
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  animation: 1.5s cubic-bezier(0.87, 0, 0.13, 1) both move-in;
}

@keyframes move-out {
  from {
    opacity: 1;
    filter: none;
    transform: translateY(0);
  }
  to {
    opacity: 1;
    filter: brightness(0.25);
    transform: translateY(-35%);
  }
}

@keyframes move-in {
  from {
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  }
  to {
    clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 0% 0%);
  }
}
nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  padding: 2rem;
  mix-blend-mode: difference;
}

.nav-logo,
.nav-icon,
.nav-toggler {
  flex: 1;
}

.nav-logo a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  padding: 0.5rem;
  text-decoration: none;
}

.nav-logo a img {
  width: auto;
  height: 1.65rem;
  object-fit: contain;
}

.nav-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
}

.nav-icon img {
  width: auto;
  height: 1.75rem;
  object-fit: contain;
}

.nav-toggler {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 0.5rem;
  cursor: pointer;
}

.nav-toggle-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 1.4rem;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  cursor: pointer;
}

.open-label,
.close-label {
  position: relative;
  margin: 0;
  padding: 0.1rem;
  font-family: var(--f-nm);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.125;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--l);
  user-select: none;
  cursor: pointer;
  transform: translateY(0);
  will-change: transform;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background-color: var(--d);
  color: var(--l);
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  will-change: clip-path;
}

.menu-overlay .menu-content {
  position: absolute;
  top: 35%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding: 0 2.5rem;
  transform: translateY(-50%);
  will-change: transform, opacity;
}

.menu-overlay .menu-content p,
.menu-overlay .menu-content a {
  display: inline-block;
  font-family: var(--f-nm);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.125;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--l);
}

.menu-overlay .menu-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-overlay .menu-col:nth-child(2) {
  text-align: right;
}

.menu-overlay .menu-col a,
.menu-overlay .menu-col p {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.menu-overlay .split-line {
  position: relative;
  display: block;
  overflow: hidden;
  will-change: transform;
}

.menu-overlay .split-line-mask {
  display: block;
  overflow: hidden;
}

.menu-overlay .menu-img {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 150px;
  aspect-ratio: 5/7;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.menu-overlay .menu-img img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  transform: translateY(0);
  will-change: transform;
}

.menu-overlay .menu-links-wrapper {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: max-content;
  padding: 2rem;
  will-change: transform;
}

.menu-overlay .menu-link {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  will-change: transform;
}

.menu-overlay .menu-link a {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-family: var(--f-h);
  font-size: 20rem;
  font-weight: 900;
  line-height: 0.85;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--l);
}

.menu-overlay .menu-link a span:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
}

.menu-overlay .link-highlighter {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 0.75rem;
  background-color: var(--l);
  will-change: transform, width;
}

.menu-overlay .char {
  position: relative;
  display: inline-block;
  will-change: transform;
}

@media (max-width: 1000px) {
  nav {
    padding: 1.5rem;
  }

  .nav-logo a img {
    height: 1.5rem;
  }

  .nav-icon {
    display: none;
  }

  .nav-toggler {
    transform: translateY(0.1rem);
  }

  .menu-overlay .menu-content {
    display: none;
  }

  .menu-overlay .menu-img,
  .menu-overlay .link-highlighter {
    display: none;
  }

  .menu-overlay .menu-links-wrapper {
    flex-direction: column;
    gap: 0;
    padding: 2rem;
  }

  .menu-overlay .menu-link a {
    font-size: 7rem;
  }
}
