/* Theme art, heroes and the home page sections. */

/* ---------- theme art cross-fade ---------- */
.art { transition: opacity 1s var(--ease); }
.art-day { opacity: 0; }
[data-theme="firstlight"] .art-night { opacity: 0; }
[data-theme="firstlight"] .art-day { opacity: 1; }

/* ---------- home hero ---------- */
.hero {
  --ink: #fff4e7; --ink-soft: rgba(255, 244, 231, .88); --accent: #61ceaa; --accent-ink: #062018; --accent-deep: #2a8f6f; --accent-rgb: 97, 206, 170;
  --line: rgba(255, 244, 231, .3);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(700px, min(100svh, 1020px));
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(120px, 13vw, 190px);
  background: #080a0f; color: var(--ink-soft);
}
.hero-art { position: absolute; inset: 0; z-index: -3; }
.hero-art .art { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 28% 50%; transform: translate3d(0, var(--py, 0px), 0) scale(1.03); will-change: transform; }
.page-home .art-day { object-position: 100% 50%; }
.sky { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 75% at 86% 92%, rgba(5, 8, 12, .78), transparent 72%),
    linear-gradient(90deg, rgba(5, 8, 12, 0) 38%, rgba(5, 8, 12, .5) 100%),
    linear-gradient(180deg, rgba(5, 8, 12, .55) 0, rgba(5, 8, 12, 0) 20%, rgba(5, 8, 12, 0) 60%, rgba(5, 8, 12, .7) 100%);
}
[data-theme="firstlight"] .hero-shade {
  background:
    radial-gradient(70% 75% at 86% 92%, rgba(22, 18, 14, .72), transparent 72%),
    linear-gradient(90deg, rgba(20, 16, 12, 0) 40%, rgba(20, 16, 12, .45) 100%),
    linear-gradient(180deg, rgba(20, 16, 12, .38) 0, rgba(20, 16, 12, 0) 18%, rgba(20, 16, 12, 0) 62%, rgba(20, 16, 12, .5) 100%);
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: end; gap: clamp(24px, 4vw, 60px); min-height: calc(max(700px, min(100svh, 1020px)) - var(--header-h) - 40px - clamp(120px, 13vw, 190px)); }
.hero-copy { grid-column: 2; grid-row: 1; }
.hero-title { display: grid; font-size: clamp(3.6rem, 7.6vw, 7.4rem); line-height: .84; letter-spacing: .02em; margin: 6px 0 26px; text-shadow: .045em .05em 0 rgba(4, 18, 13, .85); }
.hero-line { display: block; }
.hero-line.accent { color: #61ceaa; }
.js .hero-line { opacity: 0; transform: translateY(.45em) rotate(-2deg); animation: rise .95s var(--ease-out) forwards; animation-delay: calc(.15s + var(--i) * .13s); }
@keyframes rise { to { opacity: 1; transform: none; } }
[data-motion="calm"] .hero-line { opacity: 1; transform: none; animation: none; }
.hero-lead { max-width: 54ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }

.hero-tin { position: relative; grid-column: 1; grid-row: 1; align-self: start; justify-self: end; width: min(60%, 310px); margin: -2% 2% 0 0; }
.tin-glow { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--moon-rgb), .42), rgba(var(--moon-rgb), .1) 42%, transparent 66%); filter: blur(6px); }
[data-theme="firstlight"] .tin-glow { background: radial-gradient(circle, rgba(255, 196, 120, .55), rgba(255, 160, 80, .12) 44%, transparent 68%); }
.tin-wrap { position: relative; animation: bob 7s ease-in-out infinite; }
.tin-img { width: 100%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .6)); transform: rotate(-6deg); }
.tin-sheen {
  position: absolute; inset: 0; transform: rotate(-6deg); pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .5) 48%, rgba(255, 255, 255, 0) 58%) -200% 0 / 250% 100% no-repeat;
  mix-blend-mode: overlay; animation: sheen 6.5s var(--ease) infinite 1.2s;
}
@keyframes sheen { 0%, 30% { background-position: 200% 0; } 70%, 100% { background-position: -100% 0; } }
.hero-seal { position: absolute; right: -24%; bottom: -10%; width: clamp(112px, 10vw, 150px); }
[data-motion="calm"] .tin-wrap, [data-motion="calm"] .tin-sheen { animation: none; }
.js .hero-tin { opacity: 0; transform: translateY(40px) scale(.96); animation: rise 1.2s var(--ease-out) .35s forwards; }
[data-motion="calm"] .hero-tin { opacity: 1; transform: none; animation: none; }

.scroll-cue { position: absolute; left: 50%; bottom: clamp(70px, 8vw, 120px); display: grid; justify-items: center; gap: 6px; margin-left: -10px; width: 20px; color: rgba(255, 244, 231, .75); z-index: 3; }
.cue-fp { width: 11px; height: 16px; opacity: .2; animation: step 2.4s infinite; }
.cue-fp.is-right { transform: translateX(6px) scaleX(-1); animation-delay: .3s; }
.cue-fp:nth-child(3) { animation-delay: .6s; }
@keyframes step { 30% { opacity: 1; } 60%, 100% { opacity: .2; } }
[data-motion="calm"] .cue-fp { animation: none; opacity: .6; }

/* ---------- ingredient label band ---------- */
.label-band { padding-block: 26px 30px; }
.label-band .marquee-group { gap: 0; }
.label-item { padding: 0 26px; font: 400 clamp(1.6rem, 2.6vw, 2.3rem)/1 var(--font-display); letter-spacing: .05em; color: var(--ink); white-space: nowrap; }
.label-fp { width: 14px; height: 20px; color: var(--accent); transform: rotate(90deg); flex: none; }

/* ---------- uses ---------- */
.uses { padding-bottom: clamp(110px, 12vw, 180px); }

/* ---------- multipurpose split ---------- */
.multi { overflow-x: clip; padding-bottom: clamp(120px, 13vw, 190px); }
.multi-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.multi-media { position: relative; padding-bottom: 12%; }
.multi-photo { aspect-ratio: 16 / 11.5; }
.multi-stack { position: absolute; right: -9%; bottom: -4%; width: 54%; }
.multi-copy .title { margin-bottom: 26px; }
.peek-squatch { position: absolute; right: 0; bottom: 0; width: clamp(130px, 13vw, 220px); transform: translateX(46%) rotate(4deg); opacity: .96; pointer-events: none; filter: drop-shadow(-12px 10px 30px rgba(0, 0, 0, .35)); }
.js .peek-squatch[data-reveal] { translate: 70% 0; transition: translate 1.4s var(--ease-out) .3s, opacity .6s .3s; }
.js .peek-squatch[data-reveal].is-in { opacity: .96; translate: none; }

/* ---------- origin band ---------- */
.origin { overflow-x: clip; padding-block: clamp(110px, 12vw, 180px); }
.origin::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 70% at 22% 85%, rgba(255, 138, 61, .2), transparent 70%), radial-gradient(40% 50% at 85% 10%, rgba(196, 222, 255, .08), transparent 70%); }
.origin-year { position: absolute; right: -2vw; top: 50%; transform: translateY(-50%); font: 400 clamp(12rem, 34vw, 30rem)/.8 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 244, 231, .07); pointer-events: none; user-select: none; }
.origin-in { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.postcard { position: relative; justify-self: center; width: min(100%, 420px); padding: 12px 12px 46px; background: #f4ecdf; border-radius: 6px; transform: rotate(-4deg); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.postcard img { border-radius: 2px; aspect-ratio: 946 / 1200; object-fit: cover; object-position: 50% 40%; }
.postcard::before { content: ''; position: absolute; left: 50%; top: -16px; width: 110px; height: 32px; margin-left: -55px; background: rgba(97, 206, 170, .72); transform: rotate(3deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.origin-copy .title { margin-bottom: 30px; }
.origin-quote { position: relative; margin: 0 0 24px; padding: 4px 0 0 30px; border-left: 3px solid var(--ember); }
.origin-quote p { font: 500 italic clamp(1.25rem, 1.05rem + .9vw, 1.75rem)/1.45 var(--font-body); color: var(--ink); margin-bottom: 12px; }
.origin-quote footer { font: 400 1.5rem/1 var(--font-display); letter-spacing: .06em; color: var(--ember); }
.origin-note { max-width: 56ch; }

/* ---------- out in the wild ---------- */
.wild { padding-bottom: clamp(120px, 13vw, 190px); }
.wild .section-head { margin-bottom: 40px; }
.wild-rows { display: grid; gap: 18px; }
.wild-card { flex: none; height: clamp(220px, 24vw, 320px); margin-right: 18px; border-radius: 16px; overflow: hidden; background: #111; box-shadow: 0 0 0 1px var(--line-soft), 0 16px 34px rgba(0, 0, 0, .25); transform: rotate(-1deg); transition: transform .5s var(--ease-out); }
.wild-card:nth-child(even) { transform: rotate(1.2deg); }
.wild-card:hover { transform: rotate(0) scale(1.03); }
.wild-card img { height: 100%; width: auto; max-width: none; }
.wild-b .wild-card { height: clamp(180px, 19vw, 260px); }
.wild-a { --speed: 90s; }
.wild-b { --speed: 110s; }
.wild-rows .marquee { padding-block: 10px; }

/* ---------- shop band ---------- */
.shop { overflow-x: clip; }
.shop-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.shop-video { position: relative; justify-self: center; width: min(100%, 380px); }
.phone { position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 0 0 8px #10141b, 0 0 0 9px rgba(255, 244, 231, .14), 0 40px 90px rgba(0, 0, 0, .55), 0 0 120px rgba(255, 138, 61, .18); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.shop-seal { position: absolute; right: -22%; top: -10%; width: clamp(120px, 11vw, 160px); }
.shop-copy .mega { font-size: clamp(3rem, 7vw, 6.4rem); margin-bottom: 24px; }
.shop-copy .accent { color: var(--shop); text-shadow: .045em .05em 0 rgba(0, 0, 0, .5); }
.shop-badges { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.shop-usamb { width: 72px; }
.shop-usa { width: 140px; }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 24px); }
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { grid-column: 1; grid-row: 2; }
  .hero-tin { justify-self: center; width: min(62%, 300px); margin: 0 0 12px; }
  .hero-seal { right: -22%; bottom: -8%; width: 100px; }
  .scroll-cue { display: none; }
  .multi-in, .origin-in, .shop-in { grid-template-columns: 1fr; }
  .multi-media { order: 2; }
  .peek-squatch { display: none; }
  .postcard { width: min(80%, 360px); }
  .shop-seal { right: -12%; }
}
@media (max-width: 520px) {
  .hero-title { font-size: clamp(3.3rem, 17vw, 4.6rem); }
  .shop-video { width: min(78%, 320px); }
  .shop-seal { width: 104px; right: -18%; }
}
