/* ============================================
   Arktos — Fragrance House
   Editorial luxury. Refined minimalism.
   ============================================ */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture { max-width: 100%; display: block; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* === Tokens === */
:root {
  /* Palette */
  --paper:        #f4efe6;
  --paper-warm:   #ede6d9;
  --paper-cream:  #faf6ee;
  --ink:          #1a1612;
  --ink-soft:     #4a4239;
  --muted:        #8c8275;
  --line:         #d8d0c1;
  --line-soft:    #e6dfd2;
  --gold:         #b8a378;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;

  /* Layout */
  --max-w:  1440px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 78px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  /* Subtle grain overlay for paper-like feel */
  position: relative;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.06;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: multiply;
}

/* === Typography utilities === */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}

.label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }

/* === Header === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  background-color: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.36em;
  font-weight: 400;
  text-indent: 0.36em; /* compensate tracking */
  color: var(--ink);
}

.nav-primary {
  display: flex;
  gap: 2.75rem;
  align-items: center;
}
.nav-primary a {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  font-weight: 400;
}
.nav-primary a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.5s var(--ease);
}
.nav-primary a:hover { color: var(--ink); }
.nav-primary a:hover::after { right: 0; }
.nav-primary a.is-active { color: var(--ink); }
.nav-primary a.is-active::after { right: 0; }

.nav-num {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  margin-right: 0.45em;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
}

/* Mobile menu toggle */
.menu-toggle { display: none; }
.menu-toggle-btn {
  display: none;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}

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

/* === Home Hero — editorial split === */
.hero {
  min-height: 100vh;
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.hero-text {
  padding: clamp(3rem, 8vh, 7rem) clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-headline {
  font-size: clamp(3rem, 7vw, 6.25rem);
  margin-top: 2rem;
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-foot p {
  max-width: 32ch;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-image {
  position: relative;
  overflow: hidden;
  background-color: var(--paper-warm);
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.hero-image:hover img { transform: scale(1.04); }
.hero-image-caption {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  color: var(--paper-cream);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 300;
}

/* CTA link */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap 0.4s var(--ease), letter-spacing 0.4s var(--ease);
}
.cta-link:hover { gap: 1.1em; letter-spacing: 0.3em; }
.cta-link .arr { font-family: var(--font-display); font-size: 1rem; }

/* === Section frames === */
.section {
  padding: clamp(5rem, 12vh, 9rem) 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 8vh, 5rem);
  margin-top: clamp(3rem, 8vh, 5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.section-head .label { padding-bottom: 0.6rem; white-space: nowrap; }
.section-head em { font-style: italic; color: var(--ink-soft); }

/* === Collection grid === */
.collection {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.fragrance-card {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.fragrance-card-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-warm);
  margin-bottom: 1.75rem;
}
.fragrance-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.95);
}
.fragrance-card:hover .fragrance-card-image img {
  transform: scale(1.05);
  filter: saturate(1.05);
}
.fragrance-card-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.fragrance-card-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: 0.005em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.fragrance-card-tag {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}
.fragrance-card-link {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  gap: 0.6em;
  align-items: center;
}
.fragrance-card-link::after {
  content: '→';
  font-family: var(--font-display);
  font-size: 0.95rem;
  transition: transform 0.4s var(--ease);
}
.fragrance-card:hover .fragrance-card-link::after { transform: translateX(6px); }

/* === Manifesto block === */
.manifesto {
  background: var(--paper-cream);
  padding: clamp(5rem, 12vh, 9rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto-inner {
  max-width: 64rem;
  text-align: center;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.manifesto-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 2rem 0 2.5rem;
}
.manifesto-quote::before,
.manifesto-quote::after {
  content: '—';
  display: block;
  color: var(--gold);
  font-style: normal;
  margin: 1rem auto;
  font-size: 1rem;
  letter-spacing: 0;
}
.manifesto-byline {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* === Fragrance page hero === */
.frag-hero {
  min-height: 100vh;
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: 5fr 7fr;
  position: relative;
}
.frag-hero-text {
  padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.frag-hero-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.frag-hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 6.5vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.frag-hero-edp {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.frag-hero-tag {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 38ch;
}
.frag-hero-image {
  position: relative;
  overflow: hidden;
  background-color: var(--paper-warm);
}
.frag-hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* === Story block === */
.story {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.story-label { padding-top: 0.5rem; }
.story-body { font-size: 1.05rem; line-height: 1.85; color: var(--ink-soft); }
.story-body p + p { margin-top: 1.4em; }
.story-body strong { color: var(--ink); font-weight: 400; }

/* === Notes pyramid === */
.notes-section { background: var(--paper-cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
}
.note-col { position: relative; padding: 0 0 0 1.75rem; }
.note-col::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 1px; height: 92%;
  background: var(--gold);
}
.note-stage {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.note-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
  letter-spacing: 0.01em;
}
.note-list { list-style: none; }
.note-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.note-list li::before {
  content: '·';
  color: var(--gold);
  margin-right: 0.6em;
}
.note-list li:last-child { border-bottom: none; }

/* === Detail / macro block === */
.macro-block {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: 0;
}
.macro-image { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-warm); }
.macro-image img { width: 100%; height: 100%; object-fit: cover; }
.macro-text { padding: clamp(2rem, 5vw, 4.5rem); }
.macro-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.3;
  margin-bottom: 1.75rem;
}
.macro-cap {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* === Specs === */
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec {
  padding: 2.5rem 1.5rem;
  background: var(--paper);
  text-align: center;
}
.spec dt {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.spec dd {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
}

/* === Product information === */
.product-info-section {
  padding: 0;
}

.product-info {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-info summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  cursor: pointer;
}

.product-info summary::-webkit-details-marker { display: none; }
.product-info summary::marker { display: none; }

.product-info-toggle {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
  user-select: none;
  flex-shrink: 0;
  margin-left: 1rem;
}

.product-info summary:hover .product-info-toggle { color: var(--ink); }

.product-info-toggle::before { content: '+'; }
.product-info[open] .product-info-toggle::before { content: '−'; }

.product-info-body {
  padding-bottom: 3rem;
  max-width: 58ch;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

@starting-style {
  .product-info[open] .product-info-body {
    opacity: 0;
    transform: translateY(8px);
  }
}

.product-info-body p { color: var(--ink-soft); }
.product-info-body p + p { margin-top: 1.5rem; }

.product-info-inci {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .product-info-body { padding-bottom: 2rem; }
}

/* === Other compositions === */
.other {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.other-card {
  background: var(--paper);
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  display: block;
  transition: background 0.4s var(--ease);
}
.other-card:hover { background: var(--paper-cream); }
.other-card .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  display: block;
}
.other-card .nm {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  line-height: 1.05;
  margin-bottom: 0.45rem;
}
.other-card .tg {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.other-card .ar {
  font-family: var(--font-display);
  font-size: 1.6rem;
  position: absolute;
  bottom: clamp(2.5rem, 5vw, 4rem);
  right: clamp(2.5rem, 5vw, 4rem);
  transition: transform 0.5s var(--ease);
}
.other-card:hover .ar { transform: translateX(10px); }

/* === Footer === */
.site-footer {
  background: var(--ink);
  color: var(--paper-cream);
  padding: clamp(4rem, 8vh, 6rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(216, 208, 193, 0.18);
  margin-bottom: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  margin-bottom: 1rem;
}
.footer-mission {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(244, 239, 230, 0.7);
  max-width: 28ch;
  font-size: 1.05rem;
  line-height: 1.5;
}
.footer-col h4 {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(244, 239, 230, 0.85);
  font-size: 0.92rem;
  position: relative;
}
.footer-col a:hover { color: var(--paper-cream); }
.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(244, 239, 230, 0.45);
  letter-spacing: 0.05em;
}

/* === Page reveal animation === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Initial page load — staggered hero entry */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.entry > * { animation: fadeUp 1.1s var(--ease) both; }
.entry > *:nth-child(1) { animation-delay: 0.15s; }
.entry > *:nth-child(2) { animation-delay: 0.30s; }
.entry > *:nth-child(3) { animation-delay: 0.45s; }
.entry > *:nth-child(4) { animation-delay: 0.60s; }

/* === Responsive === */
@media (max-width: 980px) {
  .hero, .frag-hero { grid-template-columns: 1fr; }
  .hero-image, .frag-hero-image { aspect-ratio: 4/3; min-height: 50vh; }
  .hero { min-height: auto; }
  .frag-hero { min-height: auto; }

  .collection { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .story { grid-template-columns: 1fr; gap: 1.25rem; }
  .macro-block { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .other { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-primary { display: none; }
  .nav-primary.open {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    width: 100%;
    min-height: calc(100vh - var(--header-h));
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem var(--gutter);
    gap: 2rem;
    z-index: 40;
  }
  .nav-primary.open a { font-size: 1rem; letter-spacing: 0.18em; }
  .menu-toggle-btn { display: inline-block; }

  .collection { grid-template-columns: 1fr; gap: 3rem; }
  .hero-image, .frag-hero-image { aspect-ratio: unset; height: 70vw; min-height: 0; }

  .notes { grid-template-columns: 1fr; gap: 2rem; }
  .note-col + .note-col { padding-top: 1rem; }
  .note-list li { justify-content: flex-start; }
  .specs { grid-template-columns: 1fr 1fr; }
  .spec { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bot { flex-direction: column; gap: 1rem; text-align: center; }

  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .section-head .label { padding-bottom: 0; }

  .brand-mark { font-size: 1.15rem; letter-spacing: 0.28em; }
}

/* === Print / a11y === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
