/* ============================================================================
   POLLEN CO. — TEMPLATE 07 · BLOOM (REBUILD ZD1 — real assets)
   Macro top-down meadow. Real bee GLB cursor. Real PBR ground. Real HDR sky.
   Premium consumer brand · "From hive to home"
   ============================================================================ */

:root {
  --moss:        #2d3a23;
  --leaf:        #4f6b3a;
  --grass:       #8aa86a;
  --sun:         #f4c95d;
  --sun-deep:    #c9892a;
  --petal:       #e85aa7;
  --petal-soft:  #f4a8d0;
  --cream:       #f7f1e1;
  --cream-deep:  #e9dcb9;
  --ink:         #2a2113;
  --ink-mute:    #5a4a32;
  --ink-faint:   #97866a;
  --line:        rgba(42, 33, 19, 0.18);
  --line-soft:   rgba(42, 33, 19, 0.08);

  --serif: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --sans:  'Inter', -apple-system, system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; min-height: 100svh; }
html { scroll-behavior: smooth; }
body {
  background: #2d3a23;
  color: var(--ink);
  font-family: var(--sans);
  font-size: calc(16px * var(--res-scale-text, 1));
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: crosshair;    /* tiny crosshair so user sees aim point; bee follows it */
}
@media (hover: none), (pointer: coarse) { body { cursor: auto; } }
a { color: inherit; }
em { font-style: italic; font-family: var(--serif); }
strong { font-weight: 600; }

/* ============ Three.js canvas — full macro meadow ============ */
#bloom-canvas {
  position: fixed; inset: 0; width: 100%; height: 100svh;
  z-index: 0; display: block; pointer-events: none;
  background: #2d3a23;
}

/* ============ Soft sunbeam wash (subtle — HDR does most of it) ============ */
.bloom-sun {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 28% 14%,
      rgba(255, 218, 120, 0.32) 0%,
      rgba(255, 218, 120, 0.10) 38%,
      transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.85;
}

.bloom-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse 100% 80% at 50% 50%,
    transparent 55%, rgba(20, 28, 12, 0.42) 100%);
}

.bloom-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='1.05' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.85'/></svg>");
  mix-blend-mode: overlay;
}

/* ============ FIXED CHROME ============ */
.bloom-chrome {
  position: fixed; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 3vw, 56px);
  font-family: var(--mono);
  font-size: clamp(10px, 0.8vw, 12.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(20, 28, 12, 0.5);
}
.bloom-chrome > * { pointer-events: auto; }
.bloom-chrome--top { top: 0; }
.bloom-chrome--bot { bottom: 0; }

.bloom-brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--cream);
  font-family: var(--serif); font-size: 17px; font-weight: 400; letter-spacing: 0.02em;
  text-transform: none;
  text-shadow: 0 2px 6px rgba(20, 28, 12, 0.55);
}
.bloom-brand__hex {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sun) 0%, var(--sun-deep) 100%);
  color: var(--moss); font-size: 16px; line-height: 1;
  box-shadow: 0 3px 10px rgba(201, 137, 42, 0.5);
}
.bloom-brand__label em { font-style: italic; color: var(--sun); }

.bloom-nav {
  display: inline-flex; gap: clamp(14px, 1.6vw, 28px);
  align-items: center;
}
.bloom-nav a {
  text-decoration: none; color: var(--cream); padding: 6px 0;
  position: relative; transition: color 0.3s var(--ease-out);
}
.bloom-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--sun); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.bloom-nav a:hover::after { transform: scaleX(1); }
.bloom-nav a:hover { color: var(--sun); }
.bloom-nav__cta {
  background: var(--sun); color: var(--ink) !important;
  padding: 8px 14px !important; border-radius: 999px;
  letter-spacing: 0.18em;
  text-shadow: none;
}
.bloom-nav__cta::after { display: none; }
.bloom-nav__cta:hover { background: var(--sun-deep); color: var(--cream) !important; }

.bloom-cypher { opacity: 0.82; color: var(--cream); }
.bloom-temp strong { font-family: var(--serif); font-style: italic; font-weight: 400; margin-left: 6px; color: var(--sun); }

/* ============ FLOATING PRODUCT CARD ============ */
.bloom-card {
  position: fixed; right: clamp(16px, 2.4vw, 40px); top: 50%;
  transform: translateY(-50%) translateX(20px);
  z-index: 60;
  width: clamp(260px, 24vw, 340px);
  padding: 22px 24px 22px;
  background: rgba(247, 241, 225, 0.92);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border: 1px solid rgba(42, 33, 19, 0.14);
  border-radius: 18px;
  box-shadow: 0 28px 60px -18px rgba(20, 28, 12, 0.55),
              0 4px 14px -2px rgba(201, 137, 42, 0.25);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.bloom-card.is-active { opacity: 1; transform: translateY(-50%) translateX(0); pointer-events: auto; }
.bloom-card__no {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--ink-faint); text-transform: uppercase;
}
.bloom-card__name {
  font-family: var(--serif); font-size: clamp(22px, 2vw, 28px);
  font-weight: 400; line-height: 1.1; margin-top: 4px; color: var(--ink);
}
.bloom-card__price {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--sun-deep); margin-top: 6px;
}
.bloom-card__rule { width: 32px; height: 1px; background: var(--ink); margin: 14px 0 12px; opacity: 0.4; }
.bloom-card__desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); }
.bloom-card__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
}
.bloom-card__meta em { font-style: normal; display: block; opacity: 0.7; }
.bloom-card__meta strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 13.5px; color: var(--ink); display: block; margin-top: 4px; letter-spacing: 0; text-transform: none; }
.bloom-card__btn {
  margin-top: 16px; width: 100%; padding: 12px 16px;
  background: var(--ink); color: var(--cream);
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.3s var(--ease-out), transform 0.2s var(--ease-out);
}
.bloom-card__btn:hover { background: var(--sun-deep); transform: translateY(-1px); }
@media (max-width: 720px) {
  .bloom-card { right: 12px; left: 12px; width: auto; top: auto; bottom: 100px; transform: translateY(20px); }
  .bloom-card.is-active { transform: translateY(0); }
}

/* ============ DECK ============ */
.bloom-deck {
  position: relative; z-index: 10;
  padding-top: 100svh;
  pointer-events: none;
}
.bloom-deck > * { pointer-events: auto; }

/* ============ HERO (overlays the meadow) ============ */
.bloom-hero {
  position: absolute; top: 0; left: 0; right: 0;
  min-height: 100svh;
  padding: clamp(120px, 14vh, 160px) clamp(24px, 5vw, 96px) 120px;
  display: flex; flex-direction: column; justify-content: center;
  pointer-events: none;
}
.bloom-hero > * { pointer-events: auto; }
.bloom-hero__label,
.bloom-field__label,
.bloom-practices__label,
.bloom-journal__label,
.bloom-shop__label {
  font-family: var(--mono); font-size: clamp(10px, 0.78vw, 12px);
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cream); opacity: 0.78;
  margin-bottom: clamp(20px, 2.4vw, 36px);
  text-shadow: 0 1px 3px rgba(20, 28, 12, 0.5);
}
.bloom-hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(58px, 9vw, 132px);
  line-height: 0.94; letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 14ch;
  text-shadow: 0 4px 24px rgba(20, 28, 12, 0.6);
}
.bloom-hero__title .line { display: block; }
.bloom-hero__title em { color: var(--sun); font-weight: 300; }
.bloom-hero__lede {
  margin-top: clamp(20px, 2.5vw, 36px);
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55; max-width: 56ch; color: var(--cream);
  text-shadow: 0 2px 10px rgba(20, 28, 12, 0.55);
}
.bloom-hero__lede em { color: var(--sun); }
.bloom-hero__lede strong { color: var(--sun-deep); }
.bloom-hero__meta {
  margin-top: clamp(28px, 3vw, 44px);
  display: flex; gap: clamp(20px, 3vw, 48px); flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 3px rgba(20, 28, 12, 0.5);
}
.bloom-hero__meta em { display: block; opacity: 0.6; font-style: normal; margin-bottom: 4px; }
.bloom-hero__meta strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 17px; color: var(--sun); letter-spacing: 0; text-transform: none; }
.bloom-hero__cue {
  position: absolute; bottom: 36px; left: clamp(24px, 5vw, 96px);
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream); opacity: 0.7;
  animation: cue-bob 3.4s ease-in-out infinite;
  text-shadow: 0 1px 3px rgba(20, 28, 12, 0.5);
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ============ FIELD / PRODUCT TOUR ============ */
.bloom-field,
.bloom-practices,
.bloom-journal,
.bloom-shop {
  position: relative;
  padding: clamp(80px, 10vh, 140px) clamp(24px, 5vw, 96px);
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
}
.bloom-field {
  background: linear-gradient(180deg, rgba(247, 241, 225, 0) 0%, var(--cream) 22%);
  padding-top: 32vh;
}
.bloom-field .bloom-field__label,
.bloom-practices .bloom-practices__label,
.bloom-journal .bloom-journal__label {
  color: var(--moss); opacity: 0.7; text-shadow: none;
}
.bloom-field__title,
.bloom-practices__grid h3,
.bloom-shop__copy h2 {
  font-family: var(--serif); font-weight: 400;
  letter-spacing: -0.01em; line-height: 1.05; color: var(--ink);
}
.bloom-field__title {
  font-size: clamp(36px, 5vw, 72px);
  max-width: 22ch; margin-bottom: clamp(40px, 5vw, 72px);
}
.bloom-field__title em { color: var(--petal); }

.bloom-field__list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0; border-top: 1px solid var(--line);
}
.bloom-field__list li {
  padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 10px;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  transition: background 0.3s var(--ease-out);
  cursor: pointer;
}
.bloom-field__list li:hover { background: var(--cream-deep); }
.bloom-field__list li .ord {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--sun-deep);
}
.bloom-field__list li strong {
  font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.15;
}
.bloom-field__list li em {
  font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-mute);
}

/* ============ PRACTICES ============ */
.bloom-practices__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 4vw, 60px);
}
.bloom-practices__grid h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  max-width: 18ch; margin-bottom: 16px;
}
.bloom-practices__grid h3 em { color: var(--leaf); }
.bloom-practices__grid p {
  font-family: var(--serif); font-weight: 300; font-size: 16px;
  line-height: 1.6; color: var(--ink-mute); max-width: 48ch;
}

/* ============ JOURNAL ============ */
.bloom-journal {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.bloom-journal__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 3vw, 44px);
}
.bloom-post {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 26px 30px;
  background: rgba(247, 241, 225, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.4s var(--ease-out), background 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.bloom-post:hover {
  transform: translateY(-4px);
  background: rgba(247, 241, 225, 1);
  box-shadow: 0 14px 30px -12px rgba(45, 58, 35, 0.25);
}
.bloom-post__date {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--sun-deep);
  text-transform: uppercase;
}
.bloom-post h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.2; max-width: 22ch;
}
.bloom-post p {
  font-family: var(--serif); font-weight: 300; font-size: 14.5px; line-height: 1.55; color: var(--ink-mute);
}
.bloom-post__more {
  margin-top: auto; padding-top: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); opacity: 0.8;
}

/* ============ SHOP / CONTACT ============ */
.bloom-shop {
  background: var(--ink);
  color: var(--cream);
}
.bloom-shop__label { color: var(--sun); opacity: 0.85; text-shadow: none; }
.bloom-shop__grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 5vw, 80px);
}
@media (max-width: 880px) { .bloom-shop__grid { grid-template-columns: 1fr; } }
.bloom-shop__copy h2 {
  color: var(--cream); font-size: clamp(36px, 4.8vw, 64px); max-width: 18ch;
}
.bloom-shop__copy h2 em { color: var(--sun); }
.bloom-shop__copy p {
  margin-top: 22px; max-width: 52ch;
  font-family: var(--serif); font-weight: 300; font-size: 17px; line-height: 1.6;
  color: rgba(247, 241, 225, 0.78);
}
.bloom-shop__btns {
  margin-top: 32px; display: inline-flex; gap: 14px; flex-wrap: wrap;
}
.bloom-shop__btn {
  display: inline-flex; align-items: center; padding: 14px 22px;
  border: 1px solid rgba(247, 241, 225, 0.32);
  border-radius: 999px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: var(--cream);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.bloom-shop__btn:hover { background: rgba(247, 241, 225, 0.08); border-color: rgba(247, 241, 225, 0.6); }
.bloom-shop__btn--primary {
  background: var(--sun); color: var(--ink); border-color: var(--sun);
}
.bloom-shop__btn--primary:hover { background: var(--sun-deep); border-color: var(--sun-deep); color: var(--cream); }

.bloom-shop__contact {
  border-left: 1px solid rgba(247, 241, 225, 0.16);
  padding-left: clamp(20px, 3vw, 44px);
}
@media (max-width: 880px) { .bloom-shop__contact { border-left: 0; padding-left: 0; padding-top: 32px; border-top: 1px solid rgba(247, 241, 225, 0.16); } }
.bloom-shop__addr {
  font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--cream);
}
.bloom-shop__addr strong { font-weight: 500; }
.bloom-shop__line {
  margin-top: 22px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9;
  letter-spacing: 0.06em; color: rgba(247, 241, 225, 0.78);
}
.bloom-shop__line em { display: inline-block; width: 56px; opacity: 0.55; font-style: normal; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.2em; }
.bloom-shop__line a {
  color: var(--sun); text-decoration: none; font-family: var(--serif); font-style: italic; letter-spacing: 0;
}
.bloom-shop__line a:hover { color: var(--petal-soft); }
.bloom-shop__credit {
  margin-top: 36px; padding-top: 20px; border-top: 1px dashed rgba(247, 241, 225, 0.18);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(247, 241, 225, 0.5);
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============ MOBILE ============ */
@media (max-width: 720px) {
  .bloom-chrome { padding: 14px 16px; font-size: 9.5px; }
  .bloom-nav { gap: 10px; }
  .bloom-nav a:not(.bloom-nav__cta) { display: none; }
  .bloom-cypher { display: none; }
  .bloom-hero__title { font-size: clamp(48px, 13vw, 72px); max-width: 12ch; }
  .bloom-field__list li { border-right: 0; }
  .bloom-shop__line em { display: block; margin-bottom: 2px; }
}
