/* ============================================
   NOTA — Perfume Landing Page (Apple Aesthetic)
   ============================================ */

/* --- Tokens --- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-dark: #0a0a0c;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-on-dark: #f5f5f7;
  --text-muted-dark: #86868b;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);
  --accent-blue: #0071e3;
  
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, sans-serif;
  
  --header-h: 48px;
  --max-width: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Focus --- */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* --- Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Buttons (Apple Capsule) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-stack);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  padding: 12px 28px;
  border-radius: 980px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--text-primary);
  color: #ffffff;
  border: 1px solid transparent;
}

.btn--primary:hover {
  background-color: #333336;
  transform: scale(1.02);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--header {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 980px;
  background-color: var(--text-primary);
  color: #ffffff;
}

.btn--header:hover {
  background-color: #333336;
}

/* ============================================
   Header (Apple Glass Navigation)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: inherit;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.site-header__action {
  display: flex;
  align-items: center;
}

/* Dark Mode State for Header over Dark Sections */
.site-header.site-header--dark {
  background-color: rgba(10, 10, 12, 0.82);
  border-bottom-color: var(--border-dark);
  color: var(--text-on-dark);
}

.site-header.site-header--dark .nav-link {
  color: var(--text-muted-dark);
}

.site-header.site-header--dark .nav-link:hover {
  color: var(--text-on-dark);
}

.site-header.site-header--dark .btn--header {
  background-color: var(--text-on-dark);
  color: var(--bg-dark);
}

.site-header.site-header--dark .btn--header:hover {
  background-color: #ffffff;
}

/* ============================================
   Hero (100svh Apple Showcase)
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  height: 100svh;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--header-h) var(--gutter) clamp(12px, 2vh, 24px);
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  width: 100%;
  max-width: 900px;
  height: 100%;
}

.hero__image-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

.hero__image {
  height: 72svh;
  max-height: 74svh;
  width: auto;
  max-width: min(90vw, 680px);
  object-fit: contain;
}

.hero__text {
  padding-bottom: clamp(8px, 1.5vh, 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 6px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: clamp(12px, 2vh, 20px);
}

/* Hero Orchestrated Entrance Animation */
.has-js .hero__image {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.has-js .hero__title,
.has-js .hero__subtitle {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.has-js .hero__cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.has-js .hero--loaded .hero__image {
  opacity: 1;
  transform: scale(1);
}

.has-js .hero--loaded .hero__title,
.has-js .hero--loaded .hero__subtitle {
  opacity: 1;
  transform: translateY(0);
}

.has-js .hero--loaded .hero__cta {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Fragrances — Apple Sticky Scene
   ============================================ */
.fragrances-track {
  position: relative;
  height: 300vh;
  background-color: var(--bg-secondary);
}

.fragrances-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.fragrances-stage__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  width: 100%;
}

/* Media Column (Stack of Crossfading Bottles) */
.fragrances-stage__media {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 600 / 768;
  margin: 0 auto;
}

.fragrance-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.fragrance-visual.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.fragrance-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Info Column (Stack of Synced Text Panels) */
.fragrances-stage__info {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fragrance-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.fragrance-panel.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fragrance-panel__name {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.fragrance-panel__character {
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 28px;
  max-width: 32ch;
  line-height: 1.4;
}

.fragrance-panel__notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.fragrance-panel__note-item dt {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.fragrance-panel__note-item dd {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
}

.fragrance-panel__price {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Indicators */
.fragrance-indicators {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 980px;
  background-color: rgba(0, 0, 0, 0.2);
  transition: width 0.3s ease, background-color 0.3s ease;
  padding: 0;
}

.indicator-dot.is-active {
  width: 24px;
  background-color: var(--text-primary);
}

/* ============================================
   Pyramid (Dark Section)
   ============================================ */
.pyramid {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: clamp(96px, 12vh, 160px) 0;
}

.pyramid__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: clamp(48px, 8vh, 80px);
}

.pyramid__layers {
  display: grid;
  gap: clamp(32px, 5vh, 56px);
  max-width: 840px;
}

.pyramid-layer {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: baseline;
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
}

.pyramid-layer__time {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted-dark);
  letter-spacing: 0.02em;
}

.pyramid-layer__name {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.pyramid-layer__desc {
  font-size: 1.0625rem;
  color: var(--text-muted-dark);
  line-height: 1.55;
  max-width: 52ch;
}

/* Pyramid Scroll Animation */
@supports (animation-timeline: view()) {
  .pyramid-layer {
    opacity: 0;
    transform: translateY(24px);
    animation: reveal-layer linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}

@keyframes reveal-layer {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pyramid-layer.will-animate {
  opacity: 0;
  transform: translateY(24px);
}

.pyramid-layer.will-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pyramid-layer.will-animate:nth-child(2) {
  transition-delay: 0.15s;
}

.pyramid-layer.will-animate:nth-child(3) {
  transition-delay: 0.3s;
}

/* ============================================
   Ingredients
   ============================================ */
.ingredients {
  background-color: var(--bg-primary);
  padding: clamp(96px, 12vh, 160px) 0;
}

.ingredients__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.ingredients__image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.ingredients__title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.ingredients__text {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 44ch;
}

/* ============================================
   Sampler
   ============================================ */
.sampler {
  background-color: var(--bg-secondary);
  padding: clamp(80px, 10vh, 120px) var(--gutter);
  margin: 0 var(--gutter) clamp(80px, 10vh, 120px);
  border-radius: 28px;
  text-align: center;
}

.sampler__inner {
  max-width: 640px;
}

.sampler__title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.sampler__desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.sampler__price {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.sampler__note {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 48px 0;
  border-top: 1px solid var(--border-dark);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__link {
  font-size: 0.8125rem;
  color: var(--text-muted-dark);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text-on-dark);
}

.footer__contact {
  font-size: 0.8125rem;
  color: var(--text-muted-dark);
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__contact-link {
  color: inherit;
  transition: color 0.2s ease;
}

.footer__contact-link:hover {
  color: var(--text-on-dark);
}

.footer__contact-sep {
  opacity: 0.5;
}

/* ============================================
   Responsive Adaptations
   ============================================ */
@media (max-width: 860px) {
  .site-header__nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 100svh;
    min-height: 100svh;
    padding: var(--header-h) var(--gutter) 16px;
  }

  .hero__container {
    justify-content: space-between;
  }

  .hero__image-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .hero__image {
    height: 56svh;
    max-height: 58svh;
    min-height: 55svh;
    max-width: 85vw;
  }

  .hero__text {
    padding-bottom: 8px;
    flex-shrink: 0;
  }

  .hero__title {
    font-size: 2.125rem;
    margin-bottom: 4px;
  }

  .hero__subtitle {
    font-size: 0.9375rem;
    margin-bottom: 14px;
  }

  .hero__cta .btn {
    padding: 10px 24px;
    font-size: 0.875rem;
  }

  /* Fragrances Stage on Tablet/Mobile */
  .fragrances-stage__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .fragrances-stage__media {
    max-width: 220px;
    max-height: 38svh;
  }

  .fragrance-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .fragrance-panel__notes {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .fragrance-panel__note-item dd {
    font-size: 0.8125rem;
  }

  .fragrance-indicators {
    justify-content: center;
    margin-top: 16px;
  }

  /* Ingredients */
  .ingredients__inner {
    grid-template-columns: 1fr;
  }

  .ingredients__image {
    order: -1;
  }

  /* Pyramid */
  .pyramid-layer {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }

  /* Footer */
  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }

  .footer__contact {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .sampler {
    margin: 0 12px 64px;
    padding: 60px 16px;
    border-radius: 20px;
  }

  .fragrance-panel__notes {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .btn {
    padding: 12px 24px;
  }
}

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

  .has-js .hero__image,
  .has-js .hero__title,
  .has-js .hero__subtitle,
  .has-js .hero__cta,
  .pyramid-layer,
  .pyramid-layer.will-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}
