@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond/cormorant-garamond-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond/cormorant-garamond-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("./assets/fonts/karla/karla-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --molasses: #17110C;
  --cask: #24190F;
  --paper: #EFE6D2;
  --paper-ink: #2A1F15;
  --paper-muted: #6A5A48;
  --brass: #C49A52;
  --brass-paper: #7A5A28;
  --cane: #3F5A34;
  --cream: #ECE2CC;
  --muted: #A8987C;
  --line-dark: rgba(196, 154, 82, 0.22);
  --line-paper: rgba(42, 31, 21, 0.16);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--molasses);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

body {
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1240px, calc(100% - clamp(32px, 8vw, 128px)));
  margin-inline: auto;
}

/* Progress line */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--brass);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

/* Subtle 3D Canvas */
#scene-3d {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
  transition: opacity 400ms var(--ease);
}

header, main, footer { position: relative; z-index: 2; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 17, 12, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  font-size: 0.875rem;
  color: var(--muted);
}

.main-nav a:hover { color: var(--cream); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-dark);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.lang-btn:hover { color: var(--cream); }
.lang-btn.is-active { background: var(--brass); color: var(--molasses); font-weight: 600; }

.main-nav .nav-cta {
  color: var(--cream);
  padding: 9px 18px;
  border: 1px solid var(--brass);
  transition: background 220ms var(--ease), color 220ms var(--ease);
}

.main-nav .nav-cta:hover {
  background: var(--brass);
  color: var(--molasses);
}

/* Typography */
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow-paper { color: var(--brass-paper); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--brass); }

.range-section h2 em { color: var(--brass-paper); }

p { text-align: left; }

/* Buttons (padding horizontal > vertical, text ~ half height) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.1;
  border: 1px solid var(--brass);
  cursor: pointer;
  transition: background 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease);
}

.btn-primary {
  background: var(--brass);
  color: var(--molasses);
}

.btn-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--molasses);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
}

.btn-outline:hover {
  background: rgba(196, 154, 82, 0.14);
}

/* HERO */
.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(64px, 10vh, 120px) clamp(56px, 8vh, 96px);
  background: radial-gradient(ellipse 65% 65% at 72% 48%, rgba(196, 154, 82, 0.11), transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.hero-title {
  font-size: clamp(3.4rem, 8.2vw, 7.2rem);
  margin-bottom: 24px;
}

.hero-lede {
  max-width: 54ch;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--cream);
  opacity: 0.9;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-facts {
  border-top: 1px solid var(--line-dark);
  padding-top: 20px;
  display: grid;
  gap: 20px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.fact-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--cream);
  line-height: 1.15;
}

/* Sections */
.section {
  padding-block: clamp(72px, 10vw, 132px);
}

/* Story */
.story-section {
  background: linear-gradient(180deg, rgba(23, 17, 12, 0.86) 0%, var(--molasses) 100%);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.story-figure {
  margin: 0;
}

.story-figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(0.08) contrast(1.03);
}

.story-figure figcaption {
  margin-top: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}

.story-body h2 {
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  margin-bottom: 24px;
}

.story-body p {
  max-width: 56ch;
  color: var(--cream);
  opacity: 0.9;
  margin: 0 0 18px;
}

.dropcap::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.8rem;
  line-height: 0.85;
  padding-right: 10px;
  padding-top: 4px;
  color: var(--brass);
}

.aoc-seal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.aoc-seal strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brass);
  letter-spacing: 0.08em;
}

.aoc-seal span {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Quote */
.quote-section {
  background: var(--cask);
  border-block: 1px solid var(--line-dark);
  padding-block: clamp(56px, 8vw, 96px);
}

.quote-inner blockquote {
  margin: 0;
  max-width: 24ch;
  margin-inline: auto;
  text-align: center;
}

.quote-inner blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.18;
  text-align: center;
  margin: 0 0 20px;
}

.quote-inner footer {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

/* Range (Aged Paper) */
.range-section {
  background: var(--paper);
  color: var(--paper-ink);
}

.range-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.range-head h2 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.range-intro {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--paper-muted);
  max-width: 48ch;
}

.family-block + .family-block {
  margin-top: clamp(56px, 7vw, 88px);
}

.family-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-paper);
  margin-bottom: 36px;
}

.family-header h3 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.family-header span {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-paper);
}

.bottles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4.5vw, 64px);
}

.bottle-item {
  display: grid;
  grid-template-columns: minmax(140px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
}

.bottle-media {
  background: #E6DAC0;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottle-media img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 380ms var(--ease);
}

.bottle-item:hover .bottle-media img {
  transform: scale(1.04);
}

.bottle-tag {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cane);
  font-weight: 600;
}

.bottle-copy h4 {
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  margin-bottom: 10px;
}

.bottle-copy p {
  margin: 0 0 16px;
  color: var(--paper-muted);
  font-size: 0.96875rem;
}

.text-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brass-paper);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.text-link:hover {
  border-color: var(--brass-paper);
  color: var(--paper-ink);
}

/* Medals */
.medals-section {
  background: var(--molasses);
  padding-block: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line-dark);
}

.medals-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
  gap: 32px;
  align-items: center;
}

.medals-grid h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
}

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

.medals-row img {
  height: 84px;
  width: auto;
  object-fit: contain;
}

/* Timeline */
.timeline-section {
  background: var(--molasses);
}

.timeline-head {
  margin-bottom: 52px;
}

.timeline-head h2 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
}

.timeline-track {
  position: relative;
  padding-top: 28px;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--brass);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 900ms var(--ease);
}

.timeline-track.is-drawn .timeline-line {
  transform: scaleX(1);
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.tl-year {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brass);
  margin-bottom: 10px;
}

.tl-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Archives */
.archives-section {
  background: var(--cask);
  border-top: 1px solid var(--line-dark);
}

.archives-head {
  margin-bottom: 44px;
}

.archives-head h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
}

.archives-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.archive-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.archive-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #1C140D;
  padding: 12px;
  border: 1px solid var(--line-dark);
  filter: sepia(0.04);
}

.archive-card figcaption {
  margin-top: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
}

.docs-bar {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
}

.docs-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.docs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.docs-links a {
  font-size: 0.9375rem;
  color: var(--brass);
  border-bottom: 1px solid rgba(196, 154, 82, 0.35);
  padding-bottom: 2px;
}

.docs-links a:hover { color: var(--cream); border-color: var(--cream); }

/* Contact */
.contact-section {
  background: var(--molasses);
  border-top: 1px solid var(--line-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  margin-bottom: 18px;
}

.contact-copy p {
  max-width: 44ch;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.875rem;
  color: var(--cream);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--cask);
  border: 1px solid var(--line-dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.96875rem;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 1px solid var(--brass);
  border-color: var(--brass);
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--brass);
  min-height: 1.4em;
}

/* Footer */
.site-footer {
  background: var(--cask);
  border-top: 1px solid var(--line-dark);
  padding-top: 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover { color: var(--cream); }

.evin-notice {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--line-dark);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Modal */
.cuvee-modal {
  padding: 0;
  border: 1px solid var(--line-paper);
  background: var(--paper);
  color: var(--paper-ink);
  width: min(760px, calc(100% - 32px));
}

.cuvee-modal::backdrop {
  background: rgba(15, 10, 7, 0.76);
  backdrop-filter: blur(4px);
}

.modal-inner {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1px solid var(--line-paper);
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--paper-ink);
  font-size: 1rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
}

.modal-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.modal-copy h3 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.modal-specs {
  margin: 20px 0 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  font-size: 0.9rem;
  border-top: 1px solid var(--line-paper);
  padding-top: 16px;
}

.modal-specs dt { color: var(--paper-muted); }
.modal-specs dd { margin: 0; font-weight: 600; }

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms var(--ease), transform 550ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #scene-3d { display: none; }
  .timeline-line { transform: scaleX(1); }
}

@media (max-width: 960px) {
  .hero-grid, .story-grid, .range-head, .bottles-grid, .medals-grid, .contact-grid, .archives-grid {
    grid-template-columns: 1fr;
  }
  .timeline-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a:not(.nav-cta) { display: none; }
  .modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .bottle-item { grid-template-columns: 1fr; }
  .timeline-list { grid-template-columns: 1fr; }
}
