/* ═══════════════════════════════════════════════════════════
   ALBARIZA · style.css
   Luxury editorial — chalk, brass, restraint.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Color ── */
  --bg-primary:    #0F0E0C;
  --bg-alt:        #F5F1E8;
  --accent:        #B8965A;
  --text-on-dark:  #F5F1E8;
  --text-on-light: #1A1916;
  --border-dark:   rgba(245, 241, 232, 0.12);
  --border-light:  rgba(26, 25, 22, 0.14);
  --muted-dark:    rgba(245, 241, 232, 0.55);
  --muted-light:   rgba(26, 25, 22, 0.55);

  /* ── Type ── */
  --font-display:  'Fraunces', 'Times New Roman', serif;
  --font-body:     'Inter', system-ui, sans-serif;

  /* Type scale 1.333 (perfect fourth) */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.333rem;
  --text-xl:   1.777rem;
  --text-2xl:  2.369rem;
  --text-3xl:  3.157rem;
  --text-4xl:  4.209rem;
  --text-5xl:  5.61rem;
  --text-6xl:  7.478rem;

  /* ── Spacing ── (base 8px) */
  --s-1:  8px;
  --s-2:  16px;
  --s-3:  24px;
  --s-4:  32px;
  --s-5:  48px;
  --s-6:  64px;
  --s-7:  96px;
  --s-8:  120px;
  --s-9:  160px;

  /* ── Layout ── */
  --gutter: clamp(24px, 5vw, 80px);
  --max-w:  1440px;
}

/* ═══════════ RESET ═══════════ */

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--text-on-dark);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--bg-primary); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══════════ NAV ═══════════ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--gutter);
  mix-blend-mode: difference;
  color: var(--text-on-dark);
}

.brand {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: var(--s-5);
}

.nav-links a {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.4s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover { opacity: 1; }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-links a:hover::after { width: 100%; }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ═══════════ HERO ═══════════ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-8) var(--gutter) var(--s-5);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140%;
  background-image: url('https://images.unsplash.com/photo-1518176258769-f227c798150e?w=2400&q=85');
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15,14,12,0.55) 0%,
      rgba(15,14,12,0.35) 40%,
      rgba(15,14,12,0.75) 100%);
  z-index: 1;
}

.hero-content,
.hero-foot {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-5);
}

.eyebrow .rule {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 14ch;
  font-variation-settings: "opsz" 144;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em; /* prevent descender clip */
}

.line {
  display: inline-block;
  clip-path: inset(110% 0 -10% 0); /* hidden, ready to reveal */
  will-change: clip-path, transform;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.scroll-cue span {
  display: inline-block;
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ═══════════ SHARED ═══════════ */

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

/* ═══════════ MANIFESTO ═══════════ */

.manifesto {
  background: var(--bg-primary);
  color: var(--text-on-dark);
  padding: var(--s-9) var(--gutter);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.manifesto-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 6fr 2fr;
  gap: var(--s-7);
  align-items: start;
}

.manifesto-text {
  max-width: 32ch;
  opacity: 0;
  transform: translateY(40px);
}

.manifesto-paragraph {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--text-on-dark);
  font-variation-settings: "opsz" 72;
}

.dropcap {
  float: left;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 5.4em;
  line-height: 0.82;
  padding: 0.05em 0.12em 0 0;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
  font-style: normal;
}

.manifesto-signoff {
  margin-top: var(--s-5);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.manifesto-aside {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dark);
  text-align: right;
  padding-top: 0.8em;
  border-top: 1px solid var(--border-dark);
}

@media (max-width: 900px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .manifesto-aside { text-align: left; }
}

/* ═══════════ PROCESS (HORIZONTAL SCROLL) ═══════════ */

.process {
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
  height: 100vh;
}

.process-track {
  display: flex;
  height: 100%;
  width: 400vw; /* 4 panels */
  will-change: transform;
}

.panel {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: var(--s-8) var(--gutter);
  position: relative;
  gap: var(--s-7);
}

.panel-num {
  position: absolute;
  top: var(--s-5);
  right: var(--gutter);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.22;
  pointer-events: none;
  font-variation-settings: "opsz" 144;
}

.panel-img {
  width: 100%;
  height: 70vh;
  max-height: 640px;
  background-size: cover;
  background-position: center;
  filter: grayscale(60%) brightness(0.78) contrast(1.05);
  position: relative;
}

.panel-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-dark);
  pointer-events: none;
}

.panel-text {
  max-width: 38ch;
  padding-right: var(--s-5);
}

.panel-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
  padding-left: var(--s-3);
  position: relative;
}

.panel-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 16px; height: 1px;
  background: var(--accent);
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin-bottom: var(--s-4);
  font-variation-settings: "opsz" 144;
}

.panel-copy {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--muted-dark);
  max-width: 36ch;
}

/* Process progress indicator */
.process-progress {
  position: absolute;
  bottom: var(--s-4);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
}

.progress-bar {
  width: 100%;
  height: 1px;
  background: var(--border-dark);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transform-origin: left center;
  will-change: width;
}

.progress-marks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--muted-dark);
}

.progress-marks span:first-child { transform: translateX(-2px); }
.progress-marks span:last-child  { transform: translateX(2px); }

/* Mobile: horizontal becomes vertical stack */
@media (max-width: 900px) {
  .process { height: auto; }
  .process-track {
    flex-direction: column;
    width: 100%;
    height: auto;
    transform: none !important;
  }
  .panel {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    gap: var(--s-5);
    padding: var(--s-7) var(--gutter);
    border-bottom: 1px solid var(--border-dark);
  }
  .panel:last-child { border-bottom: none; }
  .panel-img { height: 50vh; max-height: 480px; }
  .process-progress { display: none; }
  .panel-num { top: var(--s-3); right: var(--gutter); }
}

/* ═══════════ BOTANICALS ═══════════ */

.botanicals {
  background: var(--bg-alt);
  color: var(--text-on-light);
  padding: var(--s-9) var(--gutter);
}

.botanicals-head {
  max-width: var(--max-w);
  margin: 0 auto var(--s-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: end;
}

.botanicals-head .section-title { color: var(--text-on-light); }
.botanicals-head .section-title em { color: var(--accent); }

.botanicals-intro {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--muted-light);
  max-width: 38ch;
  padding-bottom: 0.6em;
}

.botanical-list {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5) var(--s-8);
  border-top: 1px solid var(--border-light);
}

.botanical {
  display: grid;
  grid-template-columns: 28px 80px 1fr;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border-light);
  opacity: 0;
  transform: translateY(20px);
}

.botanical-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  color: var(--accent);
}

.botanical-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.1) brightness(0.92);
  border: 1px solid var(--border-light);
}

.latin {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-on-light);
  font-variation-settings: "opsz" 36;
  margin-bottom: 2px;
}

.latin em { font-style: italic; font-weight: 300; }

.common {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 6px;
}

.note {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted-light);
  max-width: 36ch;
}

@media (max-width: 900px) {
  .botanicals-head { grid-template-columns: 1fr; gap: var(--s-4); }
  .botanical-list { grid-template-columns: 1fr; gap: 0; }
}

/* ═══════════ BOTTLE / OBJECT ═══════════ */

.bottle {
  background: var(--bg-alt);
  color: var(--text-on-light);
  padding: var(--s-9) var(--gutter);
  border-top: 1px solid var(--border-light);
}

.bottle-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: start;
  position: relative;
}

.bottle-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
}

.bottle-img {
  height: 60vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: contrast(1.04) saturate(0.85);
}

.bottle-caption {
  margin-top: var(--s-3);
  font-size: var(--text-xs);
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--muted-light);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14;
}

.bottle-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  padding: 14vh 0;
  will-change: transform;
}

.bottle-info .section-label {
  margin-bottom: var(--s-3);
}

.bottle-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text-on-light);
  margin-bottom: var(--s-4);
  font-variation-settings: "opsz" 144;
}

.bottle-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.bottle-block {
  border-top: 1px solid var(--border-light);
  padding-top: var(--s-3);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--s-3);
  align-items: start;
}

.block-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.2em;
}

.block-body {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-on-light);
  max-width: 38ch;
}

@media (max-width: 900px) {
  .bottle-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .bottle-stage {
    position: relative;
    top: auto;
    height: auto;
  }
  .bottle-img { height: 56vh; }
  .bottle-info { padding: 0; gap: var(--s-5); }
  .bottle-block { grid-template-columns: 1fr; gap: 6px; }
}

/* ═══════════ QUOTE ═══════════ */

.quote-section {
  background: var(--bg-primary);
  color: var(--text-on-dark);
  padding: var(--s-9) var(--gutter);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.quote {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  opacity: 0;
}

.quote-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(8rem, 18vw, 16rem);
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.25;
  margin-bottom: var(--s-3);
  font-variation-settings: "opsz" 144;
}

.quote-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--text-on-dark);
  max-width: 22ch;
  margin: 0 auto var(--s-5);
  font-variation-settings: "opsz" 144;
}

.quote-attr {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.quote-rule {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--muted-dark);
}

/* ═══════════ STOCKISTS ═══════════ */

.stockists {
  background: var(--bg-primary);
  color: var(--text-on-dark);
  padding: var(--s-9) var(--gutter);
}

.stockists-head {
  max-width: var(--max-w);
  margin: 0 auto var(--s-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: end;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--border-dark);
}

.stockists-intro {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--muted-dark);
  max-width: 42ch;
}

.stockists-intro a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity 0.3s ease;
}

.stockists-intro a:hover { opacity: 0.75; }

.stockists-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7) var(--s-6);
}

.city-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--text-on-dark);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--border-dark);
  font-variation-settings: "opsz" 72;
}

.city ul li {
  padding: 10px 0;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--border-dark);
}

.city ul li:last-child { border-bottom: none; }

.city ul li span {
  font-size: var(--text-xs);
  color: var(--muted-dark);
  letter-spacing: 0.02em;
}

@media (max-width: 1000px) {
  .stockists-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .stockists-head { grid-template-columns: 1fr; gap: var(--s-3); }
  .stockists-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ═══════════ FOOTER ═══════════ */

.site-footer {
  background: var(--bg-primary);
  color: var(--text-on-dark);
  padding: var(--s-6) var(--gutter);
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: var(--s-5);
  align-items: start;
}

.footer-brand {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.footer-tag {
  margin-top: 6px;
  font-size: var(--text-xs);
  color: var(--muted-dark);
  letter-spacing: 0.1em;
}

.footer-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-1);
}

.footer-block p,
.footer-block a {
  font-size: var(--text-sm);
  color: var(--text-on-dark);
}

.footer-block a {
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 1px;
  transition: border-color 0.3s ease;
}

.footer-block a:hover { border-color: var(--accent); }

.footer-fineprint {
  font-size: var(--text-xs);
  color: var(--muted-dark);
  text-align: right;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .footer-fineprint { text-align: left; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════ MOTION PREFERENCES ═══════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .line { clip-path: none !important; }
  .manifesto-text, .botanical, .quote { opacity: 1 !important; transform: none !important; }
  .scroll-cue span { animation: none !important; }
}
