/* ==========================================================================
   Uncle George Bottling Company — Home: the first sip
   Built by Aniwene Solutions International · © 2026
   ========================================================================== */

/* --- 1 · Hero: the living surface ------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background: var(--abyss);
  color: var(--glacier);
}
.hero__water { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(4,19,27,0.2), var(--abyss) 85%);
}
.hero__inner { position: relative; z-index: 2; pointer-events: none; padding-top: var(--nav-h); }
.hero__copy { max-width: 720px; }
.hero__copy a, .hero__copy button { pointer-events: auto; }
.hero .label { display: block; margin-bottom: 28px; }
.hero h1 { margin-bottom: 30px; }
.hero .lead { color: rgba(238,245,246,0.86); margin-bottom: 40px; max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__ripple-text { filter: url(#ripple-filter); }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 32px; z-index: 2;
  display: flex; justify-content: center; align-items: flex-end;
  pointer-events: none;
}
.hero__foot .hero__hint { position: absolute; right: var(--gutter); bottom: 0; }
.hero__hint { font-size: var(--fs-small); color: var(--mineral); display: inline-flex; align-items: center; gap: 10px; }
.hero__hint::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--mineral); animation: hint 2.4s var(--ease) infinite; }
@keyframes hint { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
@media (max-width: 767px) {
  .hero { justify-content: flex-start; }
  .hero__inner { padding-top: calc(74px + 36svh + 28px); padding-bottom: 96px; }
  .hero .label { margin-bottom: 18px; }
  .hero__foot { bottom: 20px; }
  .hero h1 { margin-bottom: 20px; }
  .hero .lead { margin-bottom: 28px; }
  .hero__hint { display: none; }
}
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  .hero { justify-content: flex-start; }
  .hero__inner { padding-top: calc(110px + 42svh + 32px); padding-bottom: 120px; }
}

/* --- 2 · Three promises (bubbles) -------------------------------------- */
.promises__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px);
}
.promise { position: relative; }
.promise__card { position: relative; padding: clamp(28px, 3vw, 44px); height: 100%; }
.promise__orb {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 28px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95) 0 8%, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 50% 60%, rgba(var(--aqua-rgb), 0.55), var(--spring) 85%);
  box-shadow: inset 0 -6px 14px rgba(4,19,27,0.35), 0 14px 30px -12px rgba(18,59,77,0.6);
}
.promise h3 { margin-bottom: 14px; color: var(--spring); }
.promise p { color: var(--muted-ink); margin: 0; }
.promise__bubble {
  position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,0.9) 0 4%, rgba(255,255,255,0) 14%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 58%, rgba(var(--aqua-rgb),0.25) 70%, rgba(255,255,255,0.7) 74%, rgba(255,255,255,0) 76%);
  box-shadow: inset 0 0 40px rgba(var(--aqua-rgb), 0.25);
}
.promise__burst { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; border: 1px solid var(--aqua); opacity: 0; pointer-events: none; }
@media (max-width: 899px) { .promises__grid { grid-template-columns: 1fr; } }

/* --- 3 · The source journey -------------------------------------------- */
.journey { position: relative; }
.journey__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.frame {
  position: relative; overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--abyss); color: var(--glacier);
  min-height: 460px;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.frame__art { position: absolute; inset: 0 -12%; z-index: -1; }
.frame__art svg { width: 100%; height: 100%; }
.frame__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,19,27,0) 35%, rgba(4,19,27,0.88)); }
.frame__text { padding: 28px; }
.frame__num { display: block; font-family: var(--serif); font-size: clamp(3rem, 4vw, 4.5rem); line-height: 1; color: rgba(238,245,246,0.9); margin-bottom: 10px; }
.frame h3 { margin-bottom: 8px; }
.frame p { color: var(--mineral); font-size: var(--fs-small); margin: 0; max-width: 28em; }
.journey__line { position: absolute; left: 0; right: 0; top: 50%; height: 60px; margin-top: -30px; z-index: 3; pointer-events: none; width: 100%; overflow: visible; display: none; }
.journey__line path { fill: none; stroke: var(--aqua); stroke-width: 1.5; stroke-opacity: 0.8; }
.journey__progress { display: none; }

@media (min-width: 1200px) {
  .journey.is-pinned { height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .journey.is-pinned .journey__track { display: flex; gap: 32px; width: max-content; }
  .journey.is-pinned .frame { width: min(46vw, 640px); min-height: min(62vh, 560px); }
  .journey.is-pinned .journey__line { display: block; }
  .journey.is-pinned .journey__progress { display: flex; gap: 12px; align-items: center; margin-top: 40px; color: var(--muted-ink); font-size: var(--fs-small); }
  .journey__progress i { display: block; width: 180px; height: 1px; background: var(--hairline-light); position: relative; }
  .journey__progress i b { position: absolute; inset: 0; background: var(--spring); transform-origin: left; transform: scaleX(0); }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .journey__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frame { min-height: 380px; }
}
@media (max-width: 767px) {
  .journey__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .journey__track::-webkit-scrollbar { display: none; }
  .frame { flex: 0 0 82%; min-height: 440px; scroll-snap-align: center; }
  .journey__dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
  .journey__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--hairline-light); background: rgba(18,59,77,0.2); transition: width 500ms var(--ease), background 500ms; }
  .journey__dots span.is-on { width: 22px; border-radius: 3px; background: var(--spring); }
}
@media (min-width: 768px) { .journey__dots { display: none; } }

/* --- 4 · The collection (3D bottles) ----------------------------------- */
.collection { --caustic-opacity: 0.08; }
.collection__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.product { text-align: center; }
.product__stage {
  position: relative;
  display: grid; place-items: end center;
  padding: 36px 0 22px;
  perspective: 900px;
  border-radius: var(--radius-l);
  background: radial-gradient(60% 50% at 50% 70%, rgba(var(--aqua-rgb), 0.12), transparent 70%);
}
.product__spin { position: relative; width: clamp(78px, 8vw, 122px); aspect-ratio: 1 / 3; transform-style: preserve-3d; transition: transform 1.2s var(--ease); }
.product__spin .bottle { width: 100%; height: 100%; animation: bob 6s ease-in-out infinite; overflow: visible; }
.product:nth-child(2) .bottle { animation-delay: -1.5s; }
.product:nth-child(3) .bottle { animation-delay: -3s; }
.product:nth-child(4) .bottle { animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.bottle .b-label.is-spinning { animation: label-spin 10s linear infinite; }
@keyframes label-spin { from { transform: translateX(0); } to { transform: translateX(-66px); } }
.bottle .bub { animation: bub-rise 3s linear infinite; }
@keyframes bub-rise { from { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } to { transform: translateY(-200px); opacity: 0; } }
.bottle .b-liquid { transition: transform 1.4s var(--ease); }
.bottle .b-cap { transform-box: fill-box; transform-origin: center; transition: transform 1s var(--ease); }
.product__drips { position: absolute; inset: 0; pointer-events: none; }
.drip {
  position: absolute; width: 4px; height: 6px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(var(--aqua-rgb),0.6) 60%, rgba(255,255,255,0.2));
  animation: drip-run var(--dur, 2.4s) cubic-bezier(0.5, 0, 0.75, 0) forwards;
}
.drip::after { content: ""; position: absolute; left: 1.5px; bottom: 100%; width: 1px; height: var(--trail, 30px); background: linear-gradient(transparent, rgba(255,255,255,0.4)); }
@keyframes drip-run { 0% { transform: translateY(0) scale(0.4); opacity: 0; } 15% { transform: translateY(4px) scale(1); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(var(--fall, 140px)) scaleY(1.2); opacity: 0; } }
.product h3 { margin-top: 26px; }
.product p { color: var(--mineral); font-size: var(--fs-small); margin: 6px 0 0; }
@media (max-width: 1023px) { .collection__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }

/* --- 5 · Moments -------------------------------------------------------- */
.moments__grid {
  display: grid; gap: clamp(14px, 1.6vw, 24px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 13vw, 200px);
}
.moment { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--abyss); color: var(--glacier); isolation: isolate; }
.moment svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; transition: transform 1.6s var(--ease); }
.moment:hover svg { transform: scale(1.04); }
.moment::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(4,19,27,0.82)); }
.moment figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2vw, 28px); }
.moment .label { color: var(--copper-soft); display: block; margin-bottom: 8px; }
.moment p { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 0.9vw, 1.875rem); line-height: 1.15; margin: 0; font-style: normal; }
.m-suite { grid-column: 1 / span 7; grid-row: span 3; }
.m-wedding { grid-column: 8 / span 5; grid-row: span 2; }
.m-board { grid-column: 8 / span 5; grid-row: span 3; }
.m-gym { grid-column: 1 / span 7; grid-row: span 2; }
@media (max-width: 1023px) {
  .moments__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .m-suite { grid-column: 1 / -1; grid-row: span 2; }
  .m-wedding, .m-board, .m-gym { grid-column: auto; grid-row: span 1; }
  .m-gym { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .moments__grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .m-suite, .m-wedding, .m-board, .m-gym { grid-column: 1 / -1; grid-row: span 1; }
}

/* --- 6 · Trusted by: logos drift like floating leaves ------------------ */
.trusted { overflow: hidden; }
.trusted__row { display: flex; gap: clamp(48px, 6vw, 96px); width: max-content; animation: float-row 46s linear infinite; padding-block: 18px; }
.trusted__row:hover { animation-play-state: paused; }
@keyframes float-row { to { transform: translateX(-50%); } }
.logo-chip {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  color: var(--mineral); filter: grayscale(1); opacity: 0.85;
  transition: color 600ms var(--ease), filter 600ms var(--ease), opacity 600ms;
  animation: leaf 7s ease-in-out infinite alternate;
}
.logo-chip:nth-child(2n) { animation-delay: -2.5s; }
.logo-chip:nth-child(3n) { animation-delay: -4.2s; animation-duration: 8.5s; }
.logo-chip:hover { color: var(--spring); filter: none; opacity: 1; }
.logo-chip svg { width: 26px; height: 26px; }
.logo-chip .lc-serif { font-family: var(--serif); font-size: 1.75rem; letter-spacing: 0.01em; }
.logo-chip .lc-caps { font-weight: 600; letter-spacing: 0.3em; font-size: 0.9375rem; }
.logo-chip .lc-italic { font-family: var(--serif); font-style: normal; font-size: 1.875rem; }
@keyframes leaf { 0% { transform: translateY(-5px) rotate(-1.2deg); } 100% { transform: translateY(6px) rotate(1.2deg); } }
.trusted__mask { -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.trusted .label { text-align: center; display: block; margin-bottom: 36px; }

/* --- 3b · Heat: the problem before the relief ---------------------------- */
.heat { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: center; color: #2b1407; background: #f2a256; }
.heat__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.heat__rays { transform-origin: 1080px 170px; animation: sun-turn 60s linear infinite; }
@keyframes sun-turn { to { transform: rotate(360deg); } }
.heat__sun circle:last-child { filter: drop-shadow(0 0 40px #fff3c4); }
.heat__flare { animation: flare 6s ease-in-out infinite alternate; }
@keyframes flare { from { opacity: 0.04; } to { opacity: 0.16; } }
.haze-line { animation: haze 3.4s ease-in-out infinite alternate; }
.haze-line:nth-child(2) { animation-delay: -1.2s; }
.haze-line:nth-child(3) { animation-delay: -2.1s; }
@keyframes haze { from { transform: translateY(0); opacity: 0.15; } to { transform: translateY(-14px); opacity: 0.5; } }
.heat__dust { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,240,210,0.7) 0 1.2px, transparent 1.6px), radial-gradient(circle, rgba(255,240,210,0.5) 0 1px, transparent 1.4px);
  background-size: 180px 140px, 260px 210px; background-position: 0 0, 60px 90px;
  animation: dust 22s linear infinite; opacity: 0.6; }
@keyframes dust { to { background-position: 180px -140px, 320px -120px; } }
.heat__copy { position: relative; z-index: 2; padding-top: 6vh; padding-bottom: 22vh; }
.heat .label { color: #7a3410; }
.heat .h1 { color: #2b1407; max-width: 12em; }
.heat .h1 em { color: #a3360c; }
.heat .lead { color: #4a2410; max-width: 28em; margin-top: 22px; }
.heat__temp { font-family: var(--serif); font-weight: 800; font-size: clamp(4.5rem, 3rem + 7vw, 10rem); line-height: 0.9; letter-spacing: -0.05em; color: #fff7e8; margin: 16px 0 10px; text-shadow: 0 6px 40px rgba(170,60,10,0.45); }
.heat__temp sup { font-size: 0.32em; vertical-align: top; position: relative; top: 0.35em; margin-left: 6px; letter-spacing: 0; }
.heat__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 28vh; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(2,13,26,0), rgba(2,13,26,0.55) 60%, var(--abyss)); }

/* --- 3c · Relief: the slow-motion pour ------------------------------------ */
.relief { --caustic-opacity: 0; padding-top: calc(var(--section) * 0.5); }
.relief__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.relief__copy .h1 { margin: 16px 0 22px; }
.relief__copy .lead { margin-bottom: 32px; }
.relief__stage { position: relative; height: min(78vh, 720px); }
.relief__stage canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 899px) {
  .relief__grid { grid-template-columns: 1fr; }
  .relief__stage { height: 48vh; min-height: 340px; order: -1; }
  .heat__copy { padding-bottom: 26vh; }
}

/* --- Condensation layer on the hero bottle ------------------------------- */
.hero__cold { position: absolute; z-index: 1; pointer-events: none; }
.hero__cold .drip { width: 5px; height: 7px; }
.hero__mist {
  position: absolute; z-index: 1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(220,244,255,0.35), rgba(220,244,255,0));
  filter: blur(8px); animation: mist 7s ease-in-out infinite alternate;
}
@keyframes mist { from { transform: translateY(0) scaleX(1); opacity: 0.45; } to { transform: translateY(-14px) scaleX(1.15); opacity: 0.85; } }
