/* MERIDIAN — Type-01 Orion · Obsidian horology */

:root {
  --void: #060608;
  --obsidian: #0c0c10;
  --graphite: #141418;
  --slate: #1e1e24;
  --steel: #717880;
  --silver: #a8adb5;
  --mist: rgba(232, 234, 238, 0.72);
  --white: #eceef2;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.14);
  --gold-glow: rgba(212, 175, 55, 0.35);
  --copper: #b87333;
  --font-display: "Bodoni Moda", "Didot", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --container: 1160px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold-soft); color: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
fieldset { border: none; }

.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, rgba(0,0,0,0.55) 100%);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.body {
  color: var(--mist);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  max-width: 480px;
}
.body em { font-style: italic; color: var(--silver); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background 0.4s;
}
.btn-sm { padding: 11px 22px; }
.btn-lg { padding: 16px 32px; }
.btn-full { width: 100%; }
.btn-gold {
  background: linear-gradient(135deg, #e8c547 0%, var(--gold) 45%, #a8892a 100%);
  color: var(--void);
  box-shadow: 0 4px 24px var(--gold-glow);
  position: relative;
  z-index: 1;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 40px var(--gold-glow); }

/* 21st: magicui/shimmer-button — rotating gold perimeter */
.shimmer-btn {
  isolation: isolate;
}
.shimmer-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--shimmer-angle, 0deg), transparent 0%, var(--gold) 25%, #fff8dc 50%, var(--gold) 75%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shimmer-spin 4s linear infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes shimmer-spin {
  to { --shimmer-angle: 360deg; }
}
@property --shimmer-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.magnetic { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: linear-gradient(180deg, rgba(6,6,8,0.92) 0%, transparent 100%);
  transition: background 0.6s var(--ease);
}
.nav.scrolled { background: rgba(6,6,8,0.88); backdrop-filter: blur(16px); }

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 20px; letter-spacing: 0.06em;
}
.logo-glyph { width: 22px; height: 22px; color: var(--gold); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel); transition: color 0.4s;
}
.nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 20px; height: 1px; background: var(--white); }

.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: rgba(12,12,16,0.96); backdrop-filter: blur(20px);
  padding: 28px 32px; display: flex; flex-direction: column; gap: 18px;
  border-bottom: 1px solid var(--slate);
  transform: translateY(-8px); opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
}
.nav-drawer.open { opacity: 1; transform: translateY(0); }
.nav-drawer a { color: var(--mist); font-size: 16px; }

/* ========== PINNED 3D STAGE ========== */
.stage-wrap { height: 320vh; position: relative; }
.stage-pin {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  overflow: hidden;
}
.stage-inner {
  position: relative; width: 100%; height: 100%;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, #18181f 0%, var(--void) 70%);
}

#watchCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1;
}

.stage-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 50% 50%, transparent 0%, rgba(6,6,8,0.35) 100%);
}

.stage-copy {
  position: absolute; z-index: 3; pointer-events: none;
  left: clamp(24px, 6vw, 80px); top: 50%; transform: translateY(-50%);
  max-width: 420px;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.stage-copy-a { opacity: 1; }
.stage-copy.hidden { opacity: 0; transform: translateY(-50%) translateX(-24px); }

.stage-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.95; font-weight: 400;
  margin: 16px 0 24px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
}
.stage-title em { font-style: italic; color: var(--gold); font-weight: 400; }

.stage-lead {
  font-size: 15px; font-weight: 300; color: var(--mist); line-height: 1.7;
  text-shadow: 0 1px 20px rgba(0,0,0,0.9);
}

/* callouts */
.callout {
  position: absolute; z-index: 4; pointer-events: none;
  display: flex; align-items: flex-start; gap: 12px;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.callout.visible { opacity: 1; transform: translateY(0); }

.callout-line {
  width: 48px; height: 1px; background: var(--gold);
  margin-top: 8px; flex-shrink: 0;
  transform-origin: left; transform: scaleX(0);
  transition: transform 0.6s var(--ease);
}
.callout.visible .callout-line { transform: scaleX(1); }

.callout-text {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(12,12,16,0.75); backdrop-filter: blur(12px);
  padding: 12px 16px; border: 1px solid rgba(212,175,55,0.15);
  border-radius: 4px;
}
.callout-text strong { font-size: 14px; font-weight: 500; }
.callout-text span:last-child { font-size: 11px; color: var(--steel); }

.callout-bezel { right: 18%; top: 28%; }
.callout-crown { right: 12%; top: 52%; }
.callout-dial { left: 52%; top: 38%; flex-direction: row-reverse; }
.callout-dial .callout-line { transform-origin: right; }

.stage-specs {
  position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  opacity: 0; transition: opacity 0.8s var(--ease);
}
.stage-specs.visible { opacity: 1; }

.spec-chip {
  padding: 8px 16px;
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 100px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--silver);
  background: rgba(12,12,16,0.6); backdrop-filter: blur(8px);
}

.scroll-meter {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  width: 2px; height: 120px; background: var(--slate); z-index: 4;
}
.scroll-meter-fill {
  width: 100%; height: 0%; background: var(--gold);
  transition: height 0.1s linear;
}

/* sections */
.section { padding: 120px 32px; max-width: calc(var(--container) + 64px); margin: 0 auto; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* movement */
.movement-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
.macro-frame {
  position: relative; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--slate);
}
.macro-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: saturate(0.85) contrast(1.05); }
.macro-overlay {
  position: absolute; bottom: 16px; left: 16px;
  padding: 8px 14px; background: rgba(6,6,8,0.8);
  border: 1px solid var(--gold-soft); border-radius: 4px;
}
.macro-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--gold); }

.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--slate); border-top: none;
}
.spec-cell {
  padding: 16px; text-align: center;
  border-right: 1px solid var(--slate);
}
.spec-cell:last-child { border-right: none; }
.spec-key { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.spec-val { font-family: var(--font-display); font-size: 18px; }

.feature-list { list-style: none; margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feat-num { font-family: var(--font-mono); font-size: 10px; color: var(--gold); margin-top: 4px; }
.feature-list strong { display: block; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.feature-list span { font-size: 13px; color: var(--steel); }

/* heritage — scroll-pinned horizontal (21st: horizontal-scroll-carousel) */
.heritage-pin { height: 380vh; position: relative; }
.heritage-sticky {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 32px; overflow: hidden;
}
.heritage { padding: 0; overflow: visible; }
.heritage-head { max-width: var(--container); margin: 0 auto 40px; width: 100%; }
.heritage-hint { margin-top: 12px; color: var(--steel); font-size: 9px; }

.timeline-viewport {
  position: relative; overflow: hidden; width: 100%;
  padding-left: max(32px, calc((100vw - var(--container)) / 2));
}
.timeline-beam {
  position: absolute; left: max(32px, calc((100vw - var(--container)) / 2));
  top: 0; width: 2px; height: 0%;
  background: linear-gradient(180deg, var(--gold), transparent);
  z-index: 2; pointer-events: none;
  transition: height 0.15s linear;
}
.timeline-track {
  display: flex; gap: 24px;
  padding-bottom: 24px;
  will-change: transform;
  transition: transform 0.05s linear;
}

.timeline-card {
  flex: 0 0 min(340px, 78vw);
  padding: 36px 32px;
  background: var(--graphite);
  border: 1px solid var(--slate);
  border-radius: 8px;
  transition: border-color 0.5s, transform 0.5s var(--ease), box-shadow 0.5s;
  opacity: 0.55;
  transform: scale(0.96);
}
.timeline-card.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(212,175,55,0.45);
  box-shadow: 0 0 48px rgba(212,175,55,0.08);
}
.timeline-year {
  font-family: var(--font-display); font-size: 48px; color: var(--gold);
  display: block; margin-bottom: 16px; line-height: 1;
}
.timeline-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin-bottom: 12px; }
.timeline-card p { font-size: 14px; color: var(--mist); line-height: 1.7; font-weight: 300; }

.timeline-progress {
  height: 2px; background: var(--slate);
  max-width: var(--container); margin: 24px auto 0; width: calc(100% - 64px);
}
.timeline-progress-fill { height: 100%; width: 0%; background: var(--gold); transition: width 0.2s; }

/* materials bento */
.materials-head { text-align: center; margin-bottom: 56px; }
.materials-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  max-width: var(--container); margin: 0 auto;
}
.mat-card {
  background: var(--graphite); border: 1px solid var(--slate);
  border-radius: 8px; overflow: hidden;
  position: relative;
}

/* 21st: berkcangumusisik/spotlight-card */
.spotlight-card {
  --spot-x: 50%;
  --spot-y: 50%;
  --spot-opacity: 0;
}
.spotlight-card::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(500px circle at var(--spot-x) var(--spot-y), rgba(212,175,55,0.14), transparent 42%);
  opacity: var(--spot-opacity);
  transition: opacity 0.4s;
}
.mat-card-hero { grid-row: span 2; }
.mat-card-hero img { width: 100%; height: 280px; object-fit: cover; filter: saturate(0.8); }
.mat-card-body { padding: 24px; }
.mat-card-body h3 { font-family: var(--font-display); font-size: 22px; margin: 8px 0 10px; }
.mat-card-body p { font-size: 13px; color: var(--mist); font-weight: 300; line-height: 1.65; }

.mat-swatch { height: 120px; }
.mat-swatch-gold { background: linear-gradient(135deg, #a8892a, #e8c547, #d4af37); }
.mat-swatch-ceramic { background: linear-gradient(180deg, #2a2a30, #0a0a0c); }
.mat-swatch-sapphire { background: linear-gradient(135deg, rgba(200,220,255,0.15), rgba(100,140,200,0.05)); backdrop-filter: blur(4px); border-bottom: 1px solid var(--slate); }

/* configure */
.configure { background: var(--obsidian); border-block: 1px solid var(--slate); }
.configure-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; max-width: var(--container); margin: 0 auto; }

.config-price { margin-top: 32px; }
.price-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); display: block; margin-bottom: 4px; }
.price-value { font-family: var(--font-display); font-size: 42px; color: var(--gold); display: block; }
.price-note { font-size: 12px; color: var(--steel); margin-top: 4px; display: block; }

.configurator { display: flex; flex-direction: column; gap: 28px; }
.config-group legend { margin-bottom: 12px; display: block; }
.config-options { display: flex; flex-wrap: wrap; gap: 10px; }

.config-opt {
  padding: 10px 16px;
  background: var(--graphite); border: 1px solid var(--slate);
  border-radius: 6px; cursor: pointer;
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--mist); display: flex; align-items: center; gap: 8px;
  transition: border-color 0.4s, background 0.4s;
}
.config-opt:hover { border-color: rgba(212,175,55,0.3); }
.config-opt.pulse { animation: opt-pulse 0.45s var(--ease); }
@keyframes opt-pulse {
  0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.4); }
  100% { box-shadow: 0 0 0 12px rgba(212,175,55,0); }
}

.opt-swatch {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c, #333); border: 1px solid rgba(255,255,255,0.15);
}

/* reserve */
.reserve-panel {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 56px; background: var(--graphite);
  border: 1px solid var(--slate); border-radius: 12px;
}

.reserve-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reserve-form label { display: flex; flex-direction: column; gap: 6px; }
.reserve-form label span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.reserve-form input, .reserve-form select {
  padding: 12px 14px; background: var(--obsidian); border: 1px solid var(--slate);
  border-radius: 6px; transition: border-color 0.4s;
}
.reserve-form input:focus, .reserve-form select:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: 11px; color: var(--steel); text-align: center; }

/* footer */
.footer {
  padding: 40px 32px; border-top: 1px solid var(--slate);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  max-width: var(--container); margin: 0 auto;
}
.footer p { font-size: 12px; color: var(--steel); }
.footer nav { display: flex; gap: 24px; }
.footer nav a { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.logo-glyph-sm { font-family: var(--font-display); color: var(--gold); font-size: 18px; }

.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--graphite); border: 1px solid var(--gold);
  color: var(--white); padding: 14px 28px; border-radius: 6px;
  font-size: 13px; z-index: 200; opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.7s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* responsive */
.config-opt.active { border-color: var(--gold); background: var(--gold-soft); color: var(--white); }

@media (max-width: 1024px) {
  .heritage-pin { height: auto; }
  .heritage-sticky { position: relative; height: auto; padding: 80px 24px; }
  .timeline-track { flex-direction: column; transform: none !important; padding-left: 0; }
  .timeline-viewport { padding-left: 0; overflow: visible; }
  .timeline-beam { display: none; }
  .timeline-card { opacity: 1; transform: none; flex: none; width: 100%; }
  .heritage-hint { display: none; }
  .movement-grid, .configure-layout, .reserve-panel { grid-template-columns: 1fr; gap: 40px; }
  .materials-bento { grid-template-columns: 1fr; }
  .mat-card-hero { grid-row: span 1; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-cell:nth-child(2) { border-right: none; }
  .callout { display: none; }
  .stage-copy { max-width: 90%; text-align: center; left: 50%; transform: translate(-50%, -50%); }
}

@media (max-width: 768px) {
  .nav-links, .nav > .btn { display: none; }
  .nav-toggle { display: flex; }
  .stage-wrap { height: 260vh; }
  .form-row { grid-template-columns: 1fr; }
  .reserve-panel { padding: 32px 24px; }
  .section { padding: 80px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .stage-wrap { height: 100vh; }
}
