@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Barlow+Condensed:wght@700;800;900&display=swap');

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

:root {
  --black: #0a0a0a;
  --white: #f0ede8;
  --accent: #c8a96e;
  --gray: #888;
  --light-gray: #1a1a1a;
}

html { scroll-behavior: auto; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  mix-blend-mode: normal;
}

nav::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(10,10,10,1) 10%, rgba(10,10,10,0.8) 50%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.9;
}

.nav-right {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-right a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.nav-right a:hover { opacity: 1; }
.nav-right a.nav-active {
  opacity: 1;
  color: var(--accent);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  nav { padding: 20px 24px; }

  .hamburger { display: flex; }

  /* HERO MOBILE */
  #section-hero {
    padding: 0 24px 60px;
    align-items: flex-start;
    min-height: 100svh;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero-headline {
    font-size: clamp(100px, 34vw, 160px);
    text-align: left;
  }

  .hero-sub {
    display: none !important;
  }

  .nav-right {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 260px;
    background: rgba(10,10,10,0.97);
    border-left: 1px solid rgba(240,237,232,0.08);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 40px 40px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    z-index: 150;
    pointer-events: none;
  }

  .nav-right.mobile-open {
    transform: translateX(0);
    pointer-events: all;
  }

  .nav-right a {
    font-size: 13px;
    letter-spacing: 0.18em;
    opacity: 0.7;
  }

  .nav-cta {
    margin-top: 12px;
    padding: 10px 24px;
  }
}

.nav-cta {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(240,237,232,0.3);
  padding: 8px 20px;
  color: var(--white) !important;
  opacity: 1 !important;
  transition: background 0.3s, border-color 0.3s !important;
}
.nav-cta.nav-active {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.nav-cta:hover {
  background: var(--white);
  color: var(--black) !important;
}

/* CANVAS STICKY */
#canvas-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 1;
  pointer-events: none;
}

#vignette-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 75% 65% at 50% 60%,
    transparent 40%,
    rgba(10,10,10,0.35) 62%,
    rgba(10,10,10,0.75) 82%,
    #0a0a0a 100%
  );
}

#three-canvas {
  width: 100%; height: 100%;
  display: block;
}

/* SCROLL CONTAINER */
#scroll-container {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

/* SECTIONS */
.section {
  min-height: 110vh;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 80px;
  pointer-events: none;
  position: relative;
}

/* HERO */
#section-hero {
  align-items: flex-end;
  min-height: 100vh;
}

#section-cta {
  min-height: 100vh;
}

.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(64px, 13vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  mix-blend-mode: normal;
  user-select: none;
}

.hero-headline .line { display: block; }
.hero-headline .stroke {
  -webkit-text-stroke: 1px var(--white);
  color: transparent;
}

.hero-sub {
  position: absolute;
  right: 48px;
  bottom: 80px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.hero-sub p {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 2;
}

.hero-sub .year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.scroll-indicator {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  margin-top: 20px;
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(to left, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.2); }
}

/* LOAD-IN ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes revealLine {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

/* NAV */
nav .nav-logo {
  animation: fadeDown 0.7s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}

@media (min-width: 769px) {
  nav .nav-right {
    animation: fadeDown 0.7s cubic-bezier(0.16,1,0.3,1) 0.35s both;
  }
}

/* HERO TEXT */
.hero-headline .line:nth-child(1) {
  display: block;
  animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.55s both;
}

.hero-headline .line:nth-child(2) {
  display: block;
  animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.72s both;
}

.hero-sub {
  animation: slideInRight 0.8s cubic-bezier(0.16,1,0.3,1) 0.95s both;
}

.scroll-indicator {
  animation: fadeIn 0.8s ease 1.3s both;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  nav .nav-logo,
  nav .nav-right,
  .hero-headline .line,
  .hero-sub,
  .scroll-indicator {
    animation: none;
  }
}

/* OVERVIEW SECTION */
#section-overview {
  align-items: center;
}

.section-tag {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.overview-content { max-width: 480px; }

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.section-body {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(240,237,232,0.55);
  max-width: 380px;
  margin-bottom: 40px;
}

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(240,237,232,0.08);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

/* SPECS SECTION */
#section-specs {
  align-items: center;
  justify-content: flex-end;
}

.specs-content { max-width: 500px; text-align: right; }

.specs-list { list-style: none; margin-top: 32px; }

.specs-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(240,237,232,0.06);
  gap: 40px;
}

.spec-name {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.spec-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* FEATURES SECTION */
#section-features {
  align-items: flex-end;
  min-height: 100vh;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: 520px;
  margin-top: 40px;
}

.feature-item {
  background: rgba(6,6,6,0.72);
  border: 1px solid rgba(240,237,232,0.06);
  padding: 28px 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.feature-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(240,237,232,0.45);
}

/* TESTIMONIAL SECTION */
#section-quote {
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.quote-mark {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 120px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 16px;
}

.quote-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 800px;
  margin: 0 auto 32px;
}

.quote-attr {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.quote-attr strong {
  color: var(--accent);
  font-weight: 500;
}

/* CTA SECTION */
#section-cta {
  align-items: flex-end;
}

.cta-content { width: 100%; }

.cta-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.cta-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(60px, 12vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.cta-headline .stroke {
  -webkit-text-stroke: 1px var(--white);
  color: transparent;
}

.cta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(240,237,232,0.1);
  padding-top: 32px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--accent);
  color: var(--black);
  text-decoration: none;
  padding: 18px 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: transform 0.3s, background 0.3s;
  pointer-events: all;
}

.cta-btn:hover { background: var(--white); transform: translateY(-2px); }

.cta-btn svg { transition: transform 0.3s; }
.cta-btn:hover svg { transform: translateX(4px); }

.footer-copy {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.3);
  text-align: right;
  line-height: 2;
}

/* DRAG TO ROTATE */
#drag-hint {
  position: fixed;
  bottom: 32px;
  right: 48px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

#drag-hint.visible { opacity: 1; }

#drag-hint svg { opacity: 0.5; }

#drag-hint span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

/* SIDE TOGGLES */
#side-toggles {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: all;
}

#side-toggles.open { right: 340px; }

.side-btn {
  background: rgba(10,10,10,0.9);
  border: 1px solid rgba(240,237,232,0.12);
  border-right: none;
  color: var(--accent);
  cursor: pointer;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  pointer-events: all;
  border-bottom: none;
}

.side-btn:last-child { border-bottom: 1px solid rgba(240,237,232,0.12); }
.side-btn:hover { background: rgba(200,169,110,0.12); }
.side-btn.active-panel { background: rgba(200,169,110,0.18); border-left-color: var(--accent); }

.side-btn svg { display: block; }

.side-btn span {
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* SETTINGS PANEL */
#settings-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 340px;
  background: rgba(10,10,10,0.96);
  border-left: 1px solid rgba(240,237,232,0.08);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  pointer-events: all;
}

#settings-panel.open { transform: translateX(0); }

.settings-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(240,237,232,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.settings-header h3 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
}

.settings-header p {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-top: 4px;
}

.settings-section-tabs {
  display: flex;
  padding: 12px 16px;
  gap: 4px;
  border-bottom: 1px solid rgba(240,237,232,0.07);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.tab-btn {
  padding: 5px 10px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(240,237,232,0.1);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,169,110,0.3) transparent;
}

.settings-body::-webkit-scrollbar { width: 4px; }
.settings-body::-webkit-scrollbar-thumb { background: rgba(200,169,110,0.3); border-radius: 2px; }

.ctrl-group { margin-bottom: 20px; }

.ctrl-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ctrl-label span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0;
}

.ctrl-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(240,237,232,0.1);
  outline: none;
  cursor: pointer;
  border-radius: 1px;
}

.ctrl-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.2s;
}

.ctrl-slider::-webkit-slider-thumb:hover { transform: scale(1.4); }
.ctrl-slider::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

.settings-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(240,237,232,0.07);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.settings-btn {
  flex: 1;
  padding: 10px;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.settings-btn-reset {
  background: transparent;
  border: 1px solid rgba(240,237,232,0.15);
  color: var(--gray);
}

.settings-btn-reset:hover { border-color: var(--white); color: var(--white); }

.settings-btn-apply {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--black);
  font-weight: 600;
}

.settings-btn-apply:hover { background: var(--white); border-color: var(--white); }

.section-name-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200,169,110,0.2);
}

/* PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
  width: 0%;
}
