/* ─────────────────────────────────────────────
   DOMAINE VALOIS — style
   cold cellar · night soil · glass · frost · jade
───────────────────────────────────────────── */

:root {
  --night: #06090b;
  --cellar: #0c1214;
  --pane: #121a1d;
  --frost: #dde6e4;
  --frost-dim: #93a6a3;
  --faint: #566a6b;
  --jade: #79b697;
  --jade-deep: #3f6c58;
  --hairline: rgba(221, 230, 228, 0.13);
  --ease-cine: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: "Cormorant", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --sans: "IBM Plex Sans", "Avenir Next", sans-serif;
}

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

html { scroll-behavior: auto; }

body {
  background: var(--night);
  color: var(--frost);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--jade); color: var(--night); }

em { font-style: italic; }

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

/* ── film grain ─────────────────────────── */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ── header ─────────────────────────────── */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem clamp(1.5rem, 4vw, 3.5rem);
}
.site-head__mark {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frost);
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(6, 9, 11, 0.8);
}
.site-head__mark em { font-weight: 300; letter-spacing: 0.02em; }
.site-head__link {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--frost);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: rgba(6, 9, 11, 0.35);
  backdrop-filter: blur(6px);
  transition: border-color 0.6s var(--ease-cine), color 0.6s var(--ease-cine);
}
.site-head__link:hover { border-color: var(--jade); color: var(--jade); }

/* ── act rail ───────────────────────────── */
.act-rail {
  position: fixed;
  left: clamp(1.2rem, 2.5vw, 2.4rem);
  bottom: 2.4rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.act-rail__num {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--jade);
  letter-spacing: 0.1em;
}
.act-rail__line {
  width: 1px;
  height: 52px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.act-rail__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--jade);
  transform: scaleY(var(--rail-p, 0));
  transform-origin: top;
}
.act-rail__label {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}
@media (max-width: 767px) { .act-rail { display: none; } }

/* ── shared ─────────────────────────────── */
.act { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--frost-dim);
}
.eyebrow span {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--jade);
}
.eyebrow--center { justify-content: center; }

/* ═══ ACT 1 — HERO ═══════════════════════
   FIRST PAINT: poster frame, brand, headline all
   present with zero JS. Nothing starts hidden. */
.act--hero {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  filter: saturate(0.68) brightness(0.72) hue-rotate(-14deg);
  will-change: transform;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 9, 11, 0.88) 0%, rgba(6, 9, 11, 0.45) 46%, rgba(6, 9, 11, 0.12) 75%),
    linear-gradient(0deg, rgba(6, 9, 11, 0.85) 0%, transparent 34%);
}
.hero__block {
  position: absolute;
  z-index: 2;
  left: clamp(1.5rem, 6vw, 6.5rem);
  bottom: clamp(5rem, 14vh, 9rem);
  max-width: 880px;
}
.hero__kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 1.6rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.6rem, 9.5vw, 10rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--frost);
}
.hero__line { display: block; overflow: hidden; }
.hero__word { display: inline-block; will-change: transform; }
.hero__title em { font-weight: 300; color: #cfe4d8; }
.hero__sub {
  margin-top: 1.8rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--frost-dim);
  max-width: 46ch;
}
.hero__cue {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 4vw, 3.5rem);
  bottom: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}
.hero__cue p {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--faint);
}
.hero__cue span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--jade), transparent);
  animation: cue 2.4s var(--ease-cine) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══ ACT 2 — ORIGIN ═════════════════════ */
.act--origin {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.origin__stage { position: relative; height: 100%; }
.origin__media { position: absolute; inset: 0; overflow: hidden; }
.origin__photo {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(0.68) brightness(0.78) hue-rotate(-8deg);
  will-change: transform;
}
.origin__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 9, 11, 0.3) 0%, rgba(6, 9, 11, 0.62) 55%, rgba(6, 9, 11, 0.92) 100%),
    linear-gradient(0deg, rgba(6, 9, 11, 0.75) 0%, transparent 40%);
}
.origin__copy {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 7vw, 8rem);
  top: 50%;
  transform: translateY(-50%);
  max-width: 600px;
  text-align: right;
}
.origin__h {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 5.8vw, 5.6rem);
  line-height: 1.02;
}
.o-line { display: block; overflow: hidden; }
.o-line em { color: var(--jade); }
.origin__facts {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.2rem;
  justify-items: end;
}
.o-fact {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--frost-dim);
  padding-right: 1.4rem;
  border-right: 1px solid var(--hairline);
  max-width: 44ch;
  text-align: right;
}

/* ═══ ACT 3 — CRAFT ══════════════════════ */
.act--craft {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--cellar);
}
.craft__stage {
  position: relative;
  height: 100%;
}
/* full-bleed photography behind, text floated over */
.craft__text {
  position: absolute;
  z-index: 2;
  left: clamp(1.5rem, 6vw, 6.5rem);
  top: 50%;
  transform: translateY(-50%);
  max-width: 640px;
}
.craft__truths {
  position: relative;
  height: min(52vh, 480px);
  margin-top: 2.4rem;
}
.truth {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  opacity: 0;
  will-change: transform, opacity;
}
.truth__num {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--jade);
  letter-spacing: 0.3em;
}
.truth__h {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
}
.truth__h em { color: var(--jade); }
.truth__p {
  max-width: 50ch;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--frost-dim);
}
.craft__progress {
  width: 160px;
  height: 1px;
  background: var(--hairline);
  overflow: hidden;
  margin-top: 1.5rem;
}
.craft__progress span {
  display: block;
  height: 100%;
  background: var(--jade);
  transform: scaleX(0);
  transform-origin: left;
}
.craft__media {
  position: absolute;
  inset: 0;
}
.craft__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  will-change: transform, opacity;
}
.craft__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.62) hue-rotate(-8deg);
}
.craft__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 9, 11, 0.9) 0%, rgba(6, 9, 11, 0.55) 48%, rgba(6, 9, 11, 0.2) 80%),
    linear-gradient(0deg, rgba(6, 9, 11, 0.7) 0%, transparent 35%);
}

/* ═══ ACT 4 — CUVÉES ═════════════════════ */
.act--cuvees {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--night);
}
/* full-bleed photograph per wine, type floated over */
.cuvees__stage {
  position: relative;
  height: 100%;
}
.cuvees__stage > .eyebrow {
  position: absolute;
  z-index: 3;
  top: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.cuvees__seq {
  position: absolute;
  inset: 0;
}
.cuvee {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: transform, opacity;
}
.cuvee__inner { height: 100%; }
.cuvee__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cuvee__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.66) brightness(0.68) hue-rotate(-6deg);
}
.cuvee__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 9, 11, 0.88) 0%, rgba(6, 9, 11, 0.45) 50%, rgba(6, 9, 11, 0.15) 80%),
    linear-gradient(0deg, rgba(6, 9, 11, 0.8) 0%, transparent 45%);
}
.cuvee__body {
  position: absolute;
  z-index: 2;
  left: clamp(1.5rem, 6vw, 6.5rem);
  bottom: clamp(4rem, 12vh, 8rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 720px;
}
.cuvee__meta {
  display: flex;
  gap: 2.2rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}
.cuvee__idx { color: var(--jade); }
.cuvee__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 1;
}
.cuvee__name em { color: var(--jade); }
.cuvee__desc {
  max-width: 52ch;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--frost-dim);
}
.cuvee__specs {
  display: flex;
  gap: clamp(1.4rem, 4vw, 3rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--hairline);
}
.cuvee__specs div { display: flex; flex-direction: column; gap: 0.35rem; }
.cuvee__specs dt {
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}
.cuvee__specs dd {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--frost);
}

/* ═══ ACT 5 — ALLOCATION ═════════════════ */
.act--allocation {
  padding: clamp(7rem, 16vh, 12rem) clamp(1.5rem, 7vw, 8rem);
  background: var(--cellar);
}
.alloc__wrap { max-width: 1080px; margin: 0 auto; }
.alloc__h {
  margin-top: 1.8rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 1.04;
}
.alloc__h em { color: var(--jade); }
.alloc__grid {
  margin-top: clamp(3.5rem, 8vh, 5.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
}
.alloc__cell {
  background: var(--pane);
  padding: clamp(2rem, 5vh, 3.4rem) clamp(1.2rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.alloc__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1;
  color: var(--jade);
  font-variant-numeric: tabular-nums;
}
.alloc__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--faint);
  max-width: 26ch;
}
.alloc__note {
  margin-top: clamp(3rem, 7vh, 4.5rem);
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--frost-dim);
}

/* ═══ ACT 6 — CTA ════════════════════════ */
.act--cta {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(55% 42% at 50% 100%, rgba(63, 108, 88, 0.22), transparent 72%),
    var(--night);
}
.cta__wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(7rem, 14vh, 10rem) clamp(1.5rem, 5vw, 4rem) 4rem;
  gap: 2.2rem;
}
.cta__h {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 1;
}
.cta__h em { color: var(--jade); }
.cta__sub {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--frost-dim);
  max-width: 44ch;
}
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  margin-top: 1rem;
}

/* magnetic button */
.btn-mag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.55rem 0.55rem 0.55rem 2.1rem;
  border: 1px solid rgba(221, 230, 228, 0.3);
  border-radius: 2px;
  text-decoration: none;
  color: var(--frost);
  overflow: hidden;
  will-change: transform;
  transition: border-color 0.7s var(--ease-cine);
}
.btn-mag:hover { border-color: var(--jade); }
.btn-mag:active { transform: scale(0.98); }
.btn-mag__fill {
  position: absolute;
  inset: 0;
  background: var(--jade);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease-cine);
}
.btn-mag:hover .btn-mag__fill { transform: scaleY(1); }
.btn-mag__text {
  position: relative;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 0.7rem 0;
  transition: color 0.7s var(--ease-cine);
}
.btn-mag:hover .btn-mag__text { color: var(--night); }
.btn-mag__orb {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 2px;
  background: rgba(221, 230, 228, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  transition: background 0.7s var(--ease-cine), color 0.7s var(--ease-cine), transform 0.7s var(--ease-cine);
}
.btn-mag:hover .btn-mag__orb {
  background: var(--night);
  color: var(--jade);
  transform: translate(2px, -1px);
}
.cta__alt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.3rem;
  transition: color 0.6s var(--ease-cine), border-color 0.6s var(--ease-cine);
}
.cta__alt:hover { color: var(--jade); border-color: var(--jade); }

/* footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.2rem clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--hairline);
}
.foot__mark {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.foot__addr, .foot__legal {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ── reveal defaults (Acts V–VI only, below the fold) ── */
[data-reveal] { opacity: 0; transform: translateY(60px); will-change: transform, opacity; }

/* ═══ MOBILE ═════════════════════════════ */
@media (max-width: 900px) {
  .craft__text { left: 1.5rem; right: 1.5rem; }
  .craft__truths { height: min(56vh, 480px); }
  .cuvee__body { left: 1.5rem; right: 1.5rem; bottom: 4.5rem; gap: 0.9rem; }
  .cuvee__desc { font-size: 0.84rem; }
}
@media (max-width: 767px) {
  .hero__block { left: 1.5rem; right: 1.5rem; bottom: 6rem; }
  .hero__video { object-position: 24% 55%; }
  .origin__copy { left: 1.5rem; right: 1.5rem; }
  .alloc__grid { grid-template-columns: 1fr; }
  .cuvee__specs { flex-wrap: wrap; gap: 1.2rem; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (max-height: 600px) {
  .hero__sub { display: none; }
}

/* ═══ REDUCED MOTION ═════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__cue span { animation: none; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  /* hero freezes on the poster frame — JS never scrubs */
  .act--craft, .act--cuvees { height: auto; overflow: visible; }
  .craft__stage, .cuvees__stage { height: auto; }
  .craft__text { position: relative; inset: auto; transform: none; padding: 5rem clamp(1.5rem, 6vw, 6.5rem); max-width: 720px; }
  .craft__truths { height: auto; margin-top: 0; }
  .truth { position: relative; opacity: 1; inset: auto; margin: 0 0 3rem; }
  .craft__media { position: relative; inset: auto; }
  .craft__frame { position: relative; opacity: 1; inset: auto; height: 44vh; }
  .cuvees__stage > .eyebrow { position: relative; inset: auto; transform: none; display: inline-flex; margin: 4rem auto 0; left: auto; }
  .cuvees__seq { position: relative; inset: auto; }
  .cuvee { position: relative; opacity: 1; inset: auto; min-height: 100svh; }
  * { transition-duration: 0.01ms !important; }
}
