/* ═══════════════════════════════════════════════════════
   RAMSTA LUND HONUNG – style.css  (v3 – visually striking)
   Palette: cream #FDF6ED · amber #D4820A · honey #C87941
            gold #F0B429 · dark #2D1204 · mid #7B4A1E
════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Dancing+Script:wght@700&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --cr:  #FDF6ED;  /* cream */
  --iv:  #FFF9F2;  /* ivory */
  --am:  #D4820A;  /* amber */
  --hn:  #C87941;  /* honey */
  --gd:  #F0B429;  /* gold */
  --dk:  #2D1204;  /* dark */
  --md:  #7B4A1E;  /* mid */
  --lv:  #C4A8E0;  /* lavender */
  --gr:  #6B8F3A;  /* green */
  --sr:  'Cormorant Garamond', Georgia, serif;
  --sc:  'Dancing Script', cursive;
  --ss:  'Inter', system-ui, sans-serif;
}

html { font-size: 16px; }

body {
  background: var(--cr);
  color: var(--dk);
  font-family: var(--ss);
  overflow-x: hidden; /* normal vertical scroll */
}

/* ── STICKY HORIZONTAL ARCHITECTURE ──────────────────
   The page is 5×100vh tall. A sticky #viewport
   stays on screen; JS maps scrollY → translateX
   on #track. No lerp — instant 1:1 mapping.
──────────────────────────────────────────────────── */
#spacer  { height: calc(5 * 100vh); }

#viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  width: 100vw;
}

#track {
  display: flex;
  height: 100vh;
  width: calc(5 * 100vw);
  /* transform set by JS */
}

/* ── PANELS ──────────────────────────────────────── */
.panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#p-hero    { background: #FDF6ED; }
#p-honey   { background: #FEF8EE; }
#p-hive    { background: #F8F1E6; }
#p-about   { background: #FDF4EA; }
#p-contact { background: #FFFAF4; }

/* ═══════════════════════════════════════════════════
   PANEL 1 – HERO
════════════════════════════════════════════════════ */
#hero-canvas,
#pollen-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#hero-canvas  { z-index: 0; }
#pollen-canvas{ z-index: 1; pointer-events: none; }

.hero-center {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  /* Subtle white halo behind the text so it lifts off the canvas */
  filter: drop-shadow(0 0 60px rgba(253,246,237,0.9));
}

.hero-eyebrow {
  font-family: var(--ss);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--md);
  opacity: 0.75;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.ht-script {
  font-family: var(--sc);
  font-size: clamp(2rem, 4.5vw, 4rem);
  color: var(--hn);
  letter-spacing: 0.04em;
}

.ht-main {
  font-family: var(--sr);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 0.85;
  /* Gradient text – honey gold */
  background: linear-gradient(160deg, #2D1204 0%, #7B4A1E 40%, #D4820A 70%, #F0B429 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-family: var(--sr);
  font-style: italic;
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  color: var(--md);
  opacity: 0.65;
  letter-spacing: 0.06em;
}

/* Hero honey drip */
.hero-drip {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-drip svg { width: 100%; height: 140px; }

.drip {
  animation: dripBounce 2.8s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes dripBounce {
  0%,100% { ry: 20; transform: translateY(0); }
  50%      { ry: 26; transform: translateY(6px); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 38px; right: 52px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ss);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--md);
  opacity: 0.55;
}
.scroll-cue svg { width: 16px; color: var(--am); }
.cue-bar {
  width: 36px; height: 2px;
  background: rgba(123,74,30,0.2);
  border-radius: 2px;
  overflow: hidden;
}
.cue-fill {
  height: 100%;
  width: 12px;
  background: var(--am);
  border-radius: 2px;
  animation: cueSlide 1.8s ease-in-out infinite;
}
@keyframes cueSlide {
  0%  { transform: translateX(-12px); opacity:0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100%{ transform: translateX(36px);  opacity:0; }
}

/* ═══════════════════════════════════════════════════
   PANEL 2 – HONUNG
════════════════════════════════════════════════════ */
.honey-bg-hex {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='115'%3E%3Cpolygon points='50,3 97,27 97,88 50,112 3,88 3,27' fill='none' stroke='rgba(212,130,10,0.1)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 72px 83px;
  pointer-events: none;
  z-index: 0;
}

.giant-word {
  position: absolute;
  font-family: var(--sr);
  font-weight: 600;
  font-size: clamp(12vw, 18vw, 22vw);
  letter-spacing: -0.02em;
  line-height: 0.85;
  color: rgba(212,130,10,0.06);
  pointer-events: none;
  z-index: 0;
  user-select: none;
  white-space: nowrap;
}

.honey-layout {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  padding: 0 7vw;
  width: 100%;
  max-width: 1300px;
}

.honey-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
  max-width: 360px;
}

/* Honey hex product cluster */
.honey-hexes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  max-width: 520px;
}

.prod-hex {
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  width: 130px; height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, filter 0.22s ease;
  cursor: default;
}
.prod-hex.big { width: 180px; height: 208px; }
.prod-hex:hover {
  transform: scale(1.1) translateY(-4px);
  filter: brightness(1.07) drop-shadow(0 12px 28px rgba(200,121,65,0.4));
}

.ph-a { background: linear-gradient(150deg, #F5C842 0%, #E8A855 100%); }
.ph-b { background: linear-gradient(150deg, #C87941 0%, #7B3A1A 100%); }
.ph-c { background: linear-gradient(150deg, #E8A855 0%, #C87941 100%); }
.ph-d { background: linear-gradient(150deg, #D4C0E8 0%, #C4A8E0 100%); }

.ph-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ph-icon { font-size: 2rem; }
.ph-inner strong {
  font-family: var(--sr);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
}
.ph-inner small {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
}
.ph-badge {
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.45);
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════
   PANEL 3 – KUPAN
════════════════════════════════════════════════════ */
#p-hive { background: linear-gradient(135deg, #FBF0E0 0%, #F6E8D0 100%); }

.hive-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='115'%3E%3Cpolygon points='50,3 97,27 97,88 50,112 3,88 3,27' fill='rgba(200,121,65,0.05)' stroke='rgba(200,121,65,0.1)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 72px 83px;
  pointer-events: none;
  z-index: 0;
}

.hive-layout {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 80px);
  padding: 0 6vw;
  width: 100%;
}

.mega-comb {
  position: relative;
  flex-shrink: 0;
  /* size determined by JS */
}

.mc-hex {
  position: absolute;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  font-size: 1.6rem;
  transition: transform 0.22s ease, filter 0.22s ease, z-index 0s;
  cursor: default;
}
.mc-hex:hover {
  transform: scale(1.18) !important;
  filter: brightness(1.12) drop-shadow(0 8px 20px rgba(200,121,65,0.55));
  z-index: 20;
}
.mc-label {
  font-family: var(--sr);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  line-height: 1;
}

.hive-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 340px;
}

/* ═══════════════════════════════════════════════════
   PANEL 4 – OM OSS
════════════════════════════════════════════════════ */
.about-bg-hex {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='115'%3E%3Cpolygon points='50,3 97,27 97,88 50,112 3,88 3,27' fill='none' stroke='rgba(196,168,224,0.12)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 72px 83px;
  pointer-events: none;
  z-index: 0;
}

.bg-number {
  position: absolute;
  font-family: var(--sr);
  font-weight: 600;
  font-size: clamp(20vw, 28vw, 34vw);
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(212,130,10,0.05);
  pointer-events: none;
  z-index: 0;
  user-select: none;
  right: -2vw;
  bottom: -5vh;
}

.about-layout {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  padding: 0 7vw;
  width: 100%;
  max-width: 1300px;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 380px;
}

.stats-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  max-width: 480px;
}

.stat-hex {
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  width: 130px; height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.22s ease, filter 0.22s ease;
}
.stat-hex.big { width: 170px; height: 196px; }
.stat-hex:hover {
  transform: scale(1.08);
  filter: brightness(1.06) drop-shadow(0 10px 22px rgba(200,121,65,0.35));
}

.sh-a { background: linear-gradient(150deg, #F0B429, #D4820A); }
.sh-b { background: linear-gradient(150deg, #C87941, #7B3A1A); }
.sh-c { background: linear-gradient(150deg, #E8A855, #C87941); }
.sh-d { background: linear-gradient(150deg, #6B8F3A, #3d5520); }

.stat-hex strong {
  font-family: var(--sr);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.05em;
  line-height: 1;
}
.stat-hex span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* ═══════════════════════════════════════════════════
   PANEL 5 – KONTAKT
════════════════════════════════════════════════════ */
.contact-hex-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='115'%3E%3Cpolygon points='50,3 97,27 97,88 50,112 3,88 3,27' fill='none' stroke='rgba(212,130,10,0.09)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 72px 83px;
  pointer-events: none;
  z-index: 0;
}

.contact-word {
  font-size: clamp(14vw, 20vw, 26vw);
  left: -2vw;
  color: rgba(212,130,10,0.05);
  line-height: 0.8;
}

.contact-layout {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  padding: 0 8vw;
  width: 100%;
  max-width: 1300px;
}

.contact-title-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  max-width: 300px;
}

.contact-hexes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.c-hex {
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  width: 140px; height: 161px;
  background: linear-gradient(150deg, #F0B429, #C87941);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.22s ease, filter 0.22s ease;
  cursor: pointer;
}
.c-hex.big {
  width: 180px; height: 208px;
  background: linear-gradient(150deg, #C87941, #7B3A1A);
}
.c-hex:hover {
  transform: scale(1.1) translateY(-4px);
  filter: brightness(1.07) drop-shadow(0 14px 30px rgba(200,121,65,0.45));
}
.c-icon { font-size: 1.8rem; }
.c-val {
  font-family: var(--sr);
  font-size: 0.75rem;
  font-weight: 400;
  color: white;
  text-align: center;
  line-height: 1.5;
}

.sig {
  font-family: var(--sr);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--md);
  opacity: 0.45;
  margin-top: 12px;
  align-self: flex-end;
}

/* ═══════════════════════════════════════════════════
   SHARED COMPONENTS
════════════════════════════════════════════════════ */
.eyebrow {
  display: inline-block;
  font-family: var(--ss);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--am);
  padding: 5px 16px;
  border: 1px solid rgba(212,130,10,0.25);
  border-radius: 100px;
  background: rgba(212,130,10,0.06);
}

.panel-h {
  font-family: var(--sr);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--dk);
}
.panel-h em { font-style: italic; color: var(--am); }

.panel-p {
  font-family: var(--ss);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--md);
  max-width: 320px;
  line-height: 1.85;
}

/* ── PROGRESS BAR ────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(212,130,10,0.1);
  z-index: 200;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gd), var(--am));
  transition: width 0.05s linear;
  width: 0%;
}

/* ── DOT NAV ─────────────────────────── */
.dot-nav {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  background: rgba(253,246,237,0.8);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  border: 1px solid rgba(212,130,10,0.15);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(123,74,30,0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}
.dot.active { background: var(--am); width: 22px; border-radius: 4px; }
.dot:hover:not(.active) { background: var(--hn); }

/* ── CORNER LOGO ─────────────────────── */
.corner-logo {
  position: fixed;
  top: 24px; left: 36px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
  text-decoration: none;
  pointer-events: all;
}
.cl-script { font-family: var(--sc); font-size: 0.85rem; color: var(--hn); }
.cl-word   { font-family: var(--sr); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.2em; color: var(--dk); }

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 800px) {
  .honey-layout, .hive-layout, .about-layout, .contact-layout {
    flex-direction: column;
    gap: 24px;
    padding: 0 5vw;
    overflow: auto;
    justify-content: center;
  }
  .honey-left, .hive-text, .about-left, .contact-title-block {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }
  .mega-comb { display: none; }
  .giant-word { display: none; }
  .bg-number { display: none; }
  .prod-hex { width: 100px; height: 115px; }
  .prod-hex.big { width: 130px; height: 150px; }
}
