/* ---------- Hero ---------- */
.hero {
  background: var(--color-ink);
  color: var(--color-cream-ink);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) 0 var(--space-5);
  min-height: 78vh;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: var(--space-5) 0 var(--space-4);
    min-height: auto;
  }
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: var(--space-2);
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  color: var(--color-paper);
}

.hero h1 em {
  font-style: normal;
  font-weight: 800;
  color: var(--color-brass);
}

.hero p.lede {
  margin-top: var(--space-3);
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--color-brass-soft);
}

.hero__actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero__figure {
  position: relative;
  aspect-ratio: 4 / 5;
}

.hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__scene canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero__pour {
  width: 100%;
  height: 100%;
  animation: pour-drift 9s ease-in-out infinite;
}

.hero__pour[hidden] {
  display: none;
}

@keyframes pour-drift {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__pour {
    animation: none;
  }
}

/* ---------- Generic sections ---------- */
.section {
  padding: var(--space-5) 0;
}

.section--ink {
  background: var(--color-ink);
  color: var(--color-cream-ink);
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-4);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin-top: var(--space-1);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

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

.step {
  border-top: 1px solid var(--color-brass);
  padding-top: var(--space-2);
}

.step__index {
  font-family: var(--font-mono);
  color: var(--color-garnet);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.step h3 {
  font-size: 1.25rem;
  margin: 0.5rem 0 0.5rem;
}

.step p {
  color: var(--color-stone);
}

/* ---------- What's inside / sommelier ---------- */
.inside-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
  align-items: start;
}

@media (max-width: 900px) {
  .inside-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

.inside-grid p + p {
  margin-top: var(--space-2);
}

.inside-grid p {
  color: var(--color-brass-soft);
}

.sommelier {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.sommelier__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-brass);
  box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.18);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.sommelier__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sommelier:hover .sommelier__avatar {
  transform: scale(1.05);
  box-shadow: 0 0 0 6px rgba(122, 31, 43, 0.22);
}

.sommelier__name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-cream-ink);
}

.sommelier__role {
  font-size: 0.85rem;
  color: var(--color-brass-soft);
}

/* ---------- Step icon ---------- */
.step__icon {
  width: 30px;
  height: 30px;
  color: var(--color-garnet);
  margin-bottom: var(--space-1);
}

/* ---------- Varietals marquee ---------- */
.varietals {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.varietals__track {
  display: flex;
  gap: var(--space-3);
  width: max-content;
  animation: varietals-scroll 32s linear infinite;
}

.varietals:hover .varietals__track {
  animation-play-state: paused;
}

@keyframes varietals-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .varietals__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
}

.varietal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--color-brass-soft);
  border-radius: 999px;
  background: var(--color-mist);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* The icons are <img src="*.svg">, not inline <svg>, so they must be selected
   as images — an `svg` selector silently never matches and they render at
   their intrinsic 40px size. */
.varietal-chip img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Parallax media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-ink-soft);
}

/* The inner media is taller than its frame so it can travel vertically
   without ever exposing an edge. */
.media-frame > img,
.media-frame > video {
  width: 100%;
  height: 130%;
  position: absolute;
  top: -15%;
  left: 0;
  object-fit: cover;
  display: block;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

/* ---------- Story section (photos + copy interleaved) ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}

.story + .story {
  margin-top: var(--space-5);
}

.story--reverse .story__media {
  order: 2;
}

/* Grid children default to min-width:auto, which lets wide content push the
   track past the viewport on narrow screens. */
.story__media,
.story__copy {
  min-width: 0;
}

@media (max-width: 860px) {
  .story {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .story--reverse .story__media {
    order: 0;
  }
}

.story__copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: var(--space-2);
}

.story__copy p {
  color: var(--color-stone);
  font-size: 1.02rem;
}

.section--ink .story__copy p {
  color: var(--color-brass-soft);
}

/* ---------- Full-bleed video band ---------- */
.video-band {
  position: relative;
  height: 82vh;
  min-height: 460px;
  overflow: hidden;
  background: var(--color-ink);
}

.video-band video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 118%;
  top: -9%;
  object-fit: cover;
}

/* Two layers: a vertical gradient for edge blending into the neighbouring
   sections, plus a centred radial scrim so bright label highlights in the
   footage never fight the copy sitting on top of them. */
.video-band__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 55% at 50% 45%, rgba(20, 17, 15, 0.82), transparent 78%),
    linear-gradient(
      to bottom,
      rgba(20, 17, 15, 0.88),
      rgba(20, 17, 15, 0.6) 45%,
      rgba(20, 17, 15, 0.92)
    );
}

.video-band__copy {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-paper);
  padding: var(--space-3);
}

.video-band__copy h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 18ch;
  margin-bottom: var(--space-2);
}

.video-band__copy p {
  color: var(--color-brass-soft);
  max-width: 46ch;
  font-size: 1.05rem;
}

/* ---------- Pricing section ---------- */
.pricing-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  max-width: 100%;
  margin-bottom: var(--space-4);
}

/* ---------- For whom / audience ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

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

.audience__item {
  background: var(--color-mist);
  border: 1px solid var(--color-brass-soft);
  padding: var(--space-3);
}

.audience__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.audience__item p {
  color: var(--color-stone);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-brass-soft);
  padding: var(--space-4) 0;
  font-size: 0.85rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.site-footer__tagline {
  color: var(--color-stone);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.site-footer__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-garnet-bright);
  margin-bottom: var(--space-2);
}

.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.social-row {
  display: flex;
  gap: 0.65rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(176, 141, 87, 0.4);
  border-radius: 50%;
  color: var(--color-brass);
  text-decoration: none;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
    background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.social-btn:hover {
  color: var(--color-paper);
  border-color: var(--color-garnet-bright);
  background: var(--color-garnet);
  transform: translateY(-2px);
}

/* Explicit box size: these are inline SVGs, and without it they fall back to
   their intrinsic size and blow the footer apart. */
.social-btn svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

.contact-phone {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-brass-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.contact-phone:hover {
  color: var(--color-paper);
  text-decoration: underline;
}

.site-footer__legal {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-stone);
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(176, 141, 87, 0.2);
}

@media (max-width: 640px) {
  .site-footer__inner {
    flex-direction: column;
    gap: var(--space-3);
  }
}
