@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --accent: oklch(0.82 0.06 240);
  --font-sans: "Instrument Serif", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-heading: var(--font-sans);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root {
  height: 100%;
  width: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  text-transform: uppercase;
  overflow: hidden;
  cursor: none;
}
button { font-family: inherit; cursor: none; background: none; border: none; color: inherit; text-transform: uppercase; }
a { color: inherit; text-decoration: none; }
.italic { font-style: italic; text-transform: none; }
.no-upper { text-transform: none; }
.hidden-svg { position: absolute; width: 0; height: 0; pointer-events: none; }

/* App shell */
.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

/* Background video */
.bg-video {
  position: absolute; inset: 0; z-index: 0;
  will-change: filter;
}
.bg-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.bg-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Ripple layer */
.ripple-layer {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
}
.ripple {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.02);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Custom cursor dot */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #fff;
  mix-blend-mode: difference;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* Hero */
.hero {
  position: absolute;
  inset: 0;
  z-index: 5;
}
.hero-heading {
  position: absolute;
  top: 96px;
  left: 20px;
  font-size: 64px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.6));
}
.hero-heading .row { overflow: hidden; }
.hero-sub {
  position: absolute;
  left: 20px;
  bottom: 120px;
  width: 260px;
  font-size: 10px;
  letter-spacing: 0.2em;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
@media (min-width: 768px) {
  .hero-heading { left: 96px; font-size: clamp(76px, 10.5vw, 140px); }
  .hero-sub { left: 96px; transform: translateX(100px); font-size: 12px; }
}
@media (min-width: 768px) and (max-height: 820px) {
  .hero-sub { bottom: 64px; }
}

.cta-button {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  padding: 18px 28px;
  font-size: 12px;
  letter-spacing: 0.25em;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: #fff;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1), background 0.3s ease;
}
.cta-button:hover { background: rgba(255,255,255,0.12); }
.cta-button.menu-open {
  transform: translateX(calc(-1 * clamp(260px, 38vw, 420px)));
}

/* Top brand bar */
.brand-bar {
  position: absolute;
  top: 32px;
  left: 20px;
  z-index: 60;
  font-size: 12px;
  letter-spacing: 0.35em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 9px;
  letter-spacing: 0;
}
@media (min-width: 768px) {
  .brand-bar { left: 96px; }
}

/* Bottom meta */
.meta-bar {
  position: absolute;
  left: 20px;
  bottom: 32px;
  z-index: 5;
  display: flex;
  gap: 32px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
}
@media (min-width: 768px) {
  .meta-bar { left: 96px; }
}

/* Menu wrapper */
.menu-wrap {
  position: fixed;
  top: 28px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
}
.menu-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  height: 16px;
  overflow: hidden;
  position: relative;
  display: inline-block;
  min-width: 60px;
}
.menu-label .slot {
  display: block;
  will-change: transform;
}
.menu-label .slot > span {
  display: block;
  height: 16px;
  line-height: 16px;
}
.menu-icon {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  display: grid; place-items: center;
  position: relative;
  transition: background 0.4s ease;
}
.menu-icon .bars {
  position: relative;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  transform-origin: 50% 50%;
}
.menu-icon .bars span {
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.menu-icon .bars span:nth-child(1) { width: 18px; height: 1.5px; top: 50%; left: 0; transform: translateY(-50%); }
.menu-icon .bars span:nth-child(2) { width: 1.5px; height: 18px; left: 50%; top: 0; transform: translateX(-50%); }

/* Staggered menu */
.staggered-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.prelayer, .panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: clamp(320px, 38vw, 480px);
  transform: translateX(100%);
  will-change: transform;
}
.prelayer { z-index: 1; }
.panel {
  z-index: 2;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px 48px 48px;
  pointer-events: auto;
}
.panel-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.panel-items li {
  overflow: hidden;
}
.panel-items button {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  text-align: left;
  width: 100%;
  padding: 6px 0;
  display: block;
  will-change: transform;
  font-family: var(--font-sans);
  text-transform: uppercase;
}
.panel-items button .num {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.45);
  margin-right: 14px;
  vertical-align: top;
  display: inline-block;
  transform: translateY(8px);
}
.panel-items button:hover { color: #93c5fd; }
.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.55);
}
.panel-footer .socials { display: flex; gap: 16px; }
.panel-footer .socials a:hover { color: #93c5fd; }

/* Fleet overlay */
.fleet {
  position: fixed; inset: 0; z-index: 80;
  display: flex;
  flex-direction: column;
  background: transparent;
}
@media (min-width: 768px) {
  .fleet { flex-direction: row; }
}
.fleet-col {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  border-right: 2px solid #fff;
  flex: 1 1 0;
}
.fleet-col:last-child { border-right: none; }
@media (min-width: 768px) {
  .fleet-col { height: 100%; }
}
.fleet-col video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.fleet-col:hover video { transform: scale(1.05); }
.fleet-col .veil {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1;
}
.fleet-col .label {
  position: absolute;
  top: 28px; left: 28px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.7);
}
.fleet-col .index {
  position: absolute;
  top: 28px; right: 28px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.7);
}
.fleet-col .content {
  position: absolute;
  left: 28px; right: 28px;
  bottom: 36px;
  z-index: 3;
  color: #fff;
}
.fleet-col .title {
  font-size: 56px;
  line-height: 0.95;
  margin-bottom: 28px;
  white-space: pre-line;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .fleet-col .title { font-size: 84px; }
}
.fleet-col .specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-bottom: 24px;
  max-width: 520px;
}
.fleet-col .spec .k {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.fleet-col .spec .v {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.95);
}
.fleet-col .view-btn {
  padding: 14px 22px;
  font-size: 11px;
  letter-spacing: 0.3em;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(120px);
  -webkit-backdrop-filter: blur(120px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: #fff;
}
.fleet-col .clip { overflow: hidden; display: block; }
.fleet-col .clip > span { display: inline-block; will-change: transform; }

/* Headline italic words */
.hero-heading .it { font-style: italic; text-transform: lowercase; letter-spacing: -0.02em; }

/* Misc helpers */
.row { display: block; }
.inline-block { display: inline-block; }

/* Lockup right side */
.scroll-hint {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 5;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.55);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* When fleet open, dim hero meta */
.fleet-open .meta-bar,
.fleet-open .scroll-hint,
.fleet-open .brand-bar { opacity: 0; transition: opacity 0.4s ease; }
