/* PXL Mask — shared styles
   Vision Pro-inspired: deep blacks, glassy depth, restrained palette.
*/

:root {
  --bg: #050505;
  --bg-2: #0c0c0d;
  --bg-3: #141416;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-dim: rgba(245, 245, 247, 0.72);
  --text-mute: rgba(245, 245, 247, 0.5);
  --text-faint: rgba(245, 245, 247, 0.32);
  --accent: #f5f5f7;
  --accent-warm: #d9c7b3;
  --r-red: #ff3b50;
  --r-blue: #2f7dff;
  --r-amber: #ffb547;
  --r-violet: #a266ff;
  --r-green: #2fd99a;
  --maxw: 1320px;
  --pad: clamp(20px, 4vw, 64px);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter Tight', 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  letter-spacing: -0.011em;
  -webkit-tap-highlight-color: transparent;
}

@supports (padding: env(safe-area-inset-left)) {
  :root {
    --pad: clamp(20px, 4vw, 64px);
  }
  .container {
    padding-left: max(var(--pad), env(safe-area-inset-left));
    padding-right: max(var(--pad), env(safe-area-inset-right));
  }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* —————————————————————— TYPE SCALE —————————————————————— */
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.display {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--text);
}
.display em {
  font-style: italic;
  color: var(--accent-warm);
}

.h-section {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.h-section em { font-style: italic; color: var(--accent-warm); }

.h-block {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  max-width: 56ch;
}

.body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dim);
  letter-spacing: -0.005em;
}

.small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-mute);
}

.mono {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-feature-settings: 'ss03';
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* —————————————————————— NAV —————————————————————— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(5, 5, 5, 0.62);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: conic-gradient(from 0deg at 50% 50%, var(--r-red), var(--r-amber), var(--r-green), var(--r-blue), var(--r-violet), var(--r-red));
  filter: saturate(0.9);
  box-shadow: 0 0 16px rgba(255, 100, 120, 0.35);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 180ms ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-cta {
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  font-weight: 500;
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-cta:hover { transform: translateY(-1px); }

/* Burger button (replaces Reserve CTA across all sizes) */
.nav-burger {
  display: block;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease, top 220ms ease;
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 24px; }
.nav-burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* Mobile slide-out menu */
.nav-mobile {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 24px var(--pad) 48px;
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 220ms ease;
  overflow-y: auto;
}
.nav-mobile.open { opacity: 1; pointer-events: auto; transform: none; }
.nav-mobile ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.nav-mobile li { border-bottom: 1px solid var(--hairline); }
.nav-mobile li:last-child { border-bottom: 0; }
.nav-mobile a {
  display: block;
  padding: 20px 4px;
  font-size: 22px;
  font-family: 'Instrument Serif', serif;
  letter-spacing: -0.015em;
  color: var(--text-dim);
}
.nav-mobile a.active { color: var(--text); }
.nav-mobile-cta {
  margin-top: 24px;
  border-bottom: 0 !important;
}
.nav-mobile-cta a {
  background: var(--text);
  color: #000 !important;
  text-align: center;
  border-radius: 999px;
  padding: 18px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* Reserve CTA now lives inside the menu, not on the bar */
.nav-cta { display: none; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { gap: 16px; }
}

/* —————————————————————— BUTTONS —————————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, opacity 200ms ease;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--text);
  color: #000;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--hairline-2);
}
.btn-ghost:hover { background: var(--surface-2); }

/* —————————————————————— SECTIONS / LAYOUT —————————————————————— */
section { position: relative; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section-pad {
  padding-top: clamp(64px, 12vh, 160px);
  padding-bottom: clamp(64px, 12vh, 160px);
}
@media (max-width: 720px) {
  .section-pad { padding-top: 56px; padding-bottom: 56px; }
}

/* glass card */
.glass {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* dotted hairline */
.rule {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

/* —————————————————————— FOOTER —————————————————————— */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 32px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .footer { padding: 40px 0 calc(24px + env(safe-area-inset-bottom, 0)); }
  .footer-base { font-size: 11px; flex-direction: column; align-items: flex-start; gap: 6px; }
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { color: var(--text-dim); font-size: 14px; transition: color 180ms ease; }
.footer-col li a:hover { color: var(--text); }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* —————————————————————— UTILS —————————————————————— */
.center { text-align: center; }
.flex { display: flex; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.dim { color: var(--text-dim); }
.mute { color: var(--text-mute); }
.warm { color: var(--accent-warm); }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* —————————————————————— GLOBAL BG GRADIENT FX —————————————————————— */
.bg-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.bg-aurora::before, .bg-aurora::after {
  content: "";
  position: absolute;
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
}
.bg-aurora::before {
  background: radial-gradient(circle, rgba(255,80,90,0.45), transparent 60%);
  top: -20vw; left: -10vw;
}
.bg-aurora::after {
  background: radial-gradient(circle, rgba(60,120,255,0.35), transparent 60%);
  bottom: -25vw; right: -10vw;
}

/* noise */
.noise::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}
