@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 900;
  font-display: optional;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("assets/fonts/instrument-serif-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --bg: #050308;
  --text: #f4f1ff;
  --muted: #a49caf;
  --purple: #7b2cff;
  --purple-soft: #c7a6ff;
  --font-sans: "Montserrat", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --header-height: 78px;
  --max: 1320px;
}

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

html {
  min-width: 320px;
  scrollbar-gutter: stable;
  color-scheme: dark;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #08050c;
  background: var(--text);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress,
.brand-thread,
.cursor-glow,
.cursor-dot {
  position: fixed;
  z-index: 600;
  top: 0;
  left: 0;
}

.brand-thread {
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cursor-glow,
.cursor-dot {
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.schedule-modal,
.video-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.schedule-modal.is-open,
.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.splash-screen {
  position: fixed;
  z-index: 9000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(123, 44, 255, 0.3), transparent 35%),
    #050308;
  opacity: 1;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.splash-screen.is-leaving {
  visibility: hidden;
  opacity: 0;
}

.splash-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(92vw, 860px);
}

.splash-kicker,
.splash-bottom {
  color: rgba(244, 241, 255, 0.56);
  font: 500 10px/1.4 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.splash-logo {
  display: flex;
  gap: 0.18em;
  margin: 26px 0 42px;
  font: italic 400 clamp(72px, 12vw, 170px)/0.85 var(--font-serif);
}

.splash-bottom {
  display: flex;
  gap: 34px;
}

.splash-loader {
  width: min(380px, 66vw);
  height: 1px;
  margin-top: 42px;
  overflow: hidden;
  background: rgba(244, 241, 255, 0.16);
}

.splash-loader span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--text);
  transform-origin: left;
  animation: critical-loader 1s ease both;
}

@keyframes critical-loader {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.site-header {
  position: fixed;
  z-index: 500;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 20px;
}

.nav-shell {
  display: flex;
  align-items: center;
  width: min(100%, 820px);
  min-height: 52px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid rgba(244, 241, 255, 0.13);
  background: rgba(8, 5, 12, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(199, 166, 255, 0.3);
  background: rgba(123, 44, 255, 0.12);
}

.brand-v::before,
.brand-v::after {
  position: absolute;
  top: 10px;
  width: 2px;
  height: 20px;
  content: "";
  background: var(--purple-soft);
  transform-origin: bottom;
}

.brand-v::before { transform: translateX(-4px) rotate(-21deg); }
.brand-v::after { transform: translateX(4px) rotate(21deg); }

.brand-copy {
  display: grid;
  gap: 1px;
  font: 700 11px/1.1 var(--font-mono);
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 7px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a,
.header-cta {
  padding: 12px 13px;
  color: var(--muted);
  font: 500 10px/1 var(--font-mono);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  border: 1px solid rgba(244, 241, 255, 0.14);
  color: var(--text);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  width: 100%;
  padding: calc(var(--header-height) + 58px) clamp(20px, 5vw, 70px) 58px;
  overflow: hidden;
}

.hero-media-stage {
  position: absolute;
  z-index: -3;
  inset: -3%;
  overflow: hidden;
  background: #050308;
}

.hero-media-stage picture,
.hero-media-stage .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media-stage picture {
  transform: scale(1.055);
}

.hero-media-stage .hero-media {
  object-fit: cover;
  object-position: center right;
  filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 3, 8, 0.98), rgba(5, 3, 8, 0.82) 38%, rgba(5, 3, 8, 0.34) 78%),
    linear-gradient(0deg, rgba(5, 3, 8, 0.9), transparent 32%);
}

.hero-light-layer {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 72% 38%, rgba(199, 166, 255, 0.2), transparent 18%);
  mix-blend-mode: screen;
  opacity: 0.4;
}

.hero-content {
  align-self: end;
  max-width: 900px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: var(--muted);
  font: 700 12px/1.2 var(--font-mono);
  text-transform: uppercase;
}

.eyebrow span {
  display: block;
  width: 52px;
  height: 1px;
  background: var(--text);
}

.hero-title {
  max-width: 820px;
  margin: 28px 0 24px;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  text-transform: uppercase;
}

.kinetic-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero-title em {
  color: var(--purple-soft);
  font: italic 400 1.08em/1 var(--font-serif);
  text-transform: none;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: #d8d1e4;
  font-size: clamp(14px, 1.18vw, 17px);
  line-height: 1.5;
}

.hero-actions,
.hero-tags,
.hero-work-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  border: 1px solid rgba(244, 241, 255, 0.18);
  font: 700 10px/1 var(--font-mono);
  text-transform: uppercase;
}

.button.primary {
  border-color: var(--purple);
  background: linear-gradient(135deg, #7b2cff, #4e129f);
}

.hero-tags {
  margin: 30px 0 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.hero-tags li {
  padding: 9px 13px;
  border: 1px solid rgba(244, 241, 255, 0.13);
  color: var(--muted);
  font: 500 11px/1 var(--font-mono);
  text-transform: uppercase;
}

.hero-work-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-work-card {
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(199, 166, 255, 0.18);
  background: rgba(8, 5, 12, 0.54);
}

.hero-work-card > span,
.hero-work-card strong {
  display: block;
}

.hero-work-card > span {
  color: var(--purple-soft);
  font: 500 9px/1 var(--font-mono);
  text-transform: uppercase;
}

.hero-work-card strong {
  margin-top: 34px;
  font-size: 13px;
  line-height: 1.3;
}

@media (max-width: 920px) {
  .nav-shell {
    width: min(100%, 640px);
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(199, 166, 255, 0.22);
    color: var(--text);
    background: rgba(123, 44, 255, 0.1);
  }

  .nav-toggle span {
    position: absolute;
    width: 16px;
    height: 1px;
    background: currentColor;
  }

  .nav-toggle span:first-child { transform: translateY(-3px); }
  .nav-toggle span:last-child { transform: translateY(3px); }
}

@media (max-width: 640px) {
  :root { --header-height: 68px; }

  .site-header { padding: 10px; }

  .nav-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    width: min(100%, calc(100vw - 20px));
  }

  .brand-copy small,
  .splash-screen {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .section { width: min(100% - 28px, var(--max)); }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 76px) 14px 44px;
  }

  .hero-content { align-self: start; }

  .hero-media-stage { inset: 0; }

  .hero-media-stage picture { transform: none; }

  .hero-media-stage .hero-media { object-position: 62% center; }

  .hero-title {
    font-size: clamp(30px, 9.8vw, 44px);
    overflow-wrap: normal;
  }

  .hero-copy { font-size: 16px; }

  .button { width: 100%; }

  .hero-work-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-work-card { padding: 14px; }

  .hero-work-card { min-height: 128px; }

  .hero-tags { gap: 8px; }

  .hero-tags li {
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
