:root {
  --black: #0F0D0C;
  --charcoal: #181312;
  --ivory: #F6EFE7;
  --beige: #C8B8A8;
  --brown: #6D3A2B;
  --milk: #9A6A4D;
  --red: #D92D20;
  --raspberry: #A62C3D;
  --cinnamon: #8B5B3E;
  --line: rgba(246, 239, 231, 0.12);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  --max: 1280px;
  --heading: 'Caveat', cursive;
  --body: 'Libre Baskerville', serif;
  --ui: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 0%, rgba(109, 58, 43, 0.18), transparent 38rem),
    linear-gradient(180deg, #0b0908 0%, var(--black) 44%, #0a0807 100%);
  font-family: var(--body);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
  background-image:
    radial-gradient(circle at center, rgba(246,239,231,0.23) 0 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent, black 14%, black 84%, transparent);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: 0 clamp(20px, 4vw, 56px);
  color: var(--ivory);
  transition: background 350ms ease, border-color 350ms ease, backdrop-filter 350ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(15, 13, 12, 0.76);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.brand-symbol,
.footer-brand img {
  width: 30px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 239, 231, 0.76);
}

.main-nav a,
.nav-cta {
  transition: color 240ms ease, opacity 240ms ease, border-color 240ms ease, background 240ms ease;
}

.main-nav a:hover {
  color: var(--ivory);
}

.nav-cta {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 16px;
  border: 1px solid rgba(246, 239, 231, 0.24);
  border-radius: 999px;
  color: var(--ivory);
}

.nav-cta:hover,
.button-primary:hover {
  border-color: rgba(246, 239, 231, 0.52);
  background: rgba(246, 239, 231, 0.08);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--ivory);
  transition: transform 240ms ease;
}

.site-header.is-open .mobile-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header.is-open .mobile-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.section-shell {
  position: relative;
  z-index: 1;
  padding: clamp(96px, 12vw, 168px) clamp(22px, 5vw, 80px);
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-top: 104px;
  overflow: hidden;
}

.hero-glow,
.chocolate-moment::before,
.closing::before {
  content: "";
  position: absolute;
  inset: auto;
  width: min(72vw, 760px);
  height: min(72vw, 760px);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
  background: radial-gradient(circle, rgba(154, 106, 77, 0.24), rgba(109, 58, 43, 0.12) 34%, transparent 68%);
}

.hero-glow {
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.checker-corner {
  position: absolute;
  top: 96px;
  right: clamp(20px, 5vw, 80px);
  width: clamp(100px, 12vw, 168px);
  aspect-ratio: 1.65;
  opacity: 0.55;
  background-image: url('../assets/patterns/croatian-checker-diagonal-ribbon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(4deg);
}

.hero-inner {
  width: min(100%, 1120px);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  text-align: center;
  position: relative;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 239, 231, 0.62);
}

.hero-visual {
  width: min(44vh, 430px);
  min-width: 250px;
  margin: -14px auto -18px;
  filter: drop-shadow(0 26px 62px rgba(154, 106, 77, 0.22));
  will-change: transform;
}

.hero-copy {
  max-width: 760px;
  margin-inline: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 700;
  line-height: 0.92;
  color: var(--ivory);
}

h1 {
  font-size: clamp(64px, 8vw, 126px);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(54px, 6vw, 104px);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(38px, 4.2vw, 70px);
  letter-spacing: -0.02em;
}

p {
  font-size: clamp(15px, 1.22vw, 18px);
  line-height: 1.85;
  color: var(--beige);
}

.hero-copy p {
  max-width: 690px;
  margin: 26px auto 32px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(246, 239, 231, 0.28);
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
}

.button-primary:hover {
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1px solid rgba(246, 239, 231, 0.28);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  opacity: 0.72;
}

.scroll-cue span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ivory);
  animation: cue 1.8s infinite ease-in-out;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

.two-column {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 8vw, 128px);
  align-items: center;
}

.story {
  min-height: 76vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 42%, rgba(109, 58, 43, 0.18), transparent 34rem),
    linear-gradient(180deg, rgba(24, 19, 18, 0.34), transparent);
}

.watermark-symbol {
  position: absolute;
  width: min(38vw, 430px);
  top: 50%;
  left: 50%;
  opacity: 0.035;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.story-copy p {
  max-width: 620px;
  font-size: clamp(17px, 1.45vw, 23px);
  color: rgba(246, 239, 231, 0.82);
}

.section-intro {
  width: min(100%, 850px);
  margin: 0 auto clamp(58px, 8vw, 116px);
  text-align: center;
}

.section-intro.narrow {
  width: min(100%, 820px);
}

.section-intro p:last-child {
  max-width: 730px;
  margin: 24px auto 0;
}

.collection {
  background: linear-gradient(180deg, transparent, rgba(24, 19, 18, 0.64) 18%, transparent 100%);
}

.product-panel {
  width: min(100%, var(--max));
  min-height: 520px;
  margin: 0 auto clamp(28px, 4vw, 54px);
  padding: clamp(26px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(300px, 0.96fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 92px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(246, 239, 231, 0.1);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 18% 50%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 22rem),
    linear-gradient(135deg, rgba(246, 239, 231, 0.035), rgba(246, 239, 231, 0.01));
}

.product-panel.reverse {
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.96fr);
}

.product-panel.reverse .product-image-wrap {
  order: 2;
}

.product-panel::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 116px;
  height: 80px;
  background: url('../assets/patterns/croatian-checker-diagonal-ribbon.svg') center/contain no-repeat;
  opacity: 0;
  transform: translate(18px, -18px) rotate(2deg);
  transition: opacity 320ms ease, transform 320ms ease;
}

.product-panel:hover::after {
  opacity: 0.5;
  transform: translate(0, 0) rotate(2deg);
}

.product-image-wrap {
  display: grid;
  place-items: center;
  will-change: transform;
}

.product-image-wrap img {
  max-height: min(72vh, 510px);
  width: auto;
  filter: drop-shadow(0 42px 70px rgba(0, 0, 0, 0.45));
  transition: transform 440ms cubic-bezier(.2,.7,.18,1), filter 440ms ease;
}

.product-panel:hover .product-image-wrap img {
  transform: translateY(-12px) rotate(-1.2deg) scale(1.02);
  filter: drop-shadow(0 52px 88px rgba(0, 0, 0, 0.55));
}

.product-copy {
  position: relative;
  z-index: 2;
}

.flavour-label {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 80%, rgba(246, 239, 231, 0.18));
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ivory);
  text-transform: uppercase;
}

.product-copy p:last-child {
  max-width: 540px;
}

.chocolate-moment {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(44px, 8vw, 130px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 19, 18, 0.2), rgba(15, 13, 12, 0.98));
}

.chocolate-moment::before {
  right: 7vw;
  top: 50%;
  transform: translateY(-50%);
}

.chocolate-copy {
  max-width: 430px;
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
}

.stack-visual {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(46vw, 610px);
  min-width: 360px;
  filter: drop-shadow(0 42px 100px rgba(85, 40, 24, 0.34));
}

.craft {
  background: linear-gradient(180deg, #0a0807 0%, var(--charcoal) 54%, #0a0807 100%);
}

.ingredient-grid {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.ingredient-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(246, 239, 231, 0.12);
  border-radius: 28px;
  background: rgba(246, 239, 231, 0.025);
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.ingredient-card:hover {
  transform: translateY(-6px);
  border-color: rgba(246, 239, 231, 0.26);
  background: rgba(246, 239, 231, 0.045);
}

.ingredient-card span {
  display: block;
  margin-bottom: 44px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(214, 45, 32, 0.86);
}

.ingredient-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ivory);
}

.croatia {
  min-height: 80vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.croatia-content {
  width: min(100%, 760px);
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
  position: relative;
  z-index: 2;
}

.croatia-content p:last-child {
  max-width: 660px;
}

.checker-ribbon {
  position: absolute;
  right: -12vw;
  top: 15%;
  width: min(56vw, 720px);
  height: 62%;
  opacity: 0.18;
  background: url('../assets/patterns/croatian-checker-diagonal-ribbon.svg') center/cover no-repeat;
  transform: rotate(-18deg);
  filter: saturate(1.08);
}

.packaging {
  background: linear-gradient(180deg, transparent, rgba(24, 19, 18, 0.58));
}

.detail-grid {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.detail-tile {
  min-height: 320px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(246, 239, 231, 0.12);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(246, 239, 231, 0.05), rgba(246, 239, 231, 0.012));
  overflow: hidden;
}

.detail-tile img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 30px;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.3));
  transition: transform 340ms ease;
}

.detail-tile:hover img {
  transform: scale(1.03);
}

.detail-tile h3 {
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.detail-tile p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.closing {
  min-height: 90svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.closing::before {
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
}

.closing-visual {
  width: min(78vw, 960px);
  margin-bottom: clamp(28px, 5vw, 70px);
  filter: drop-shadow(0 44px 90px rgba(0, 0, 0, 0.56));
}

.closing-copy {
  max-width: 760px;
}

.closing-copy p {
  max-width: 620px;
  margin: 24px auto 0;
}

.site-footer {
  position: relative;
  z-index: 2;
  min-height: 112px;
  padding: 34px clamp(22px, 5vw, 80px);
  border-top: 1px solid rgba(246, 239, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(246, 239, 231, 0.58);
}

.site-footer p {
  margin: 0;
  font-family: var(--ui);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(246, 239, 231, 0.48);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(.18,.76,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .main-nav,
  .nav-cta {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .mobile-toggle {
    display: block;
    grid-column: 3;
  }

  .main-nav {
    display: flex;
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 13, 12, 0.95);
    backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .site-header.is-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .two-column,
  .product-panel,
  .product-panel.reverse,
  .chocolate-moment {
    grid-template-columns: 1fr;
  }

  .product-panel.reverse .product-image-wrap {
    order: 0;
  }

  .product-panel {
    min-height: auto;
  }

  .chocolate-copy,
  .croatia-content {
    margin-left: 0;
  }

  .stack-visual {
    width: min(78vw, 520px);
  }

  .ingredient-grid,
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .section-shell {
    padding: 88px 18px;
  }

  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .main-nav {
    top: 68px;
  }

  .brand span {
    font-size: 24px;
  }

  .hero {
    padding-top: 86px;
  }

  .hero-visual {
    width: min(58vh, 330px);
    min-width: 210px;
    margin-bottom: 0;
  }

  h1 {
    font-size: clamp(54px, 16vw, 76px);
  }

  h2 {
    font-size: clamp(46px, 14vw, 68px);
  }

  h3 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .checker-corner {
    width: 104px;
    top: 78px;
    right: 18px;
    opacity: 0.32;
  }

  .story,
  .croatia,
  .closing,
  .chocolate-moment {
    min-height: auto;
  }

  .product-panel {
    padding: 22px;
    border-radius: 28px;
  }

  .product-image-wrap img {
    max-height: 430px;
  }

  .stack-visual {
    min-width: 0;
    width: min(88vw, 420px);
  }

  .ingredient-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .ingredient-card {
    min-height: 130px;
  }

  .ingredient-card span {
    margin-bottom: 24px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==============================
   V2 DESIGN POLISH
   stronger transitions, checker system, tactile hovers
   ============================== */

:root {
  --section-border: rgba(246, 239, 231, 0.105);
  --warm-line: rgba(154, 106, 77, 0.28);
  --checker-opacity: 0.22;
  --cursor-x: 50%;
  --cursor-y: 50%;
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(246, 239, 231, 0.045), transparent 26rem),
    radial-gradient(circle at 74% 16%, rgba(154, 106, 77, 0.12), transparent 32rem),
    linear-gradient(180deg, #080606 0%, var(--black) 36%, #0b0807 100%);
}

.section-shell {
  isolation: isolate;
}

/* Premium section seams, not hard breaks */
main > section:not(.hero)::after {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(22px, 5vw, 80px);
  right: clamp(22px, 5vw, 80px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--section-border), rgba(214, 45, 32, 0.28), var(--section-border), transparent);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.site-header {
  box-shadow: none;
}

.site-header.is-scrolled,
.site-header.is-open {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--ivory), transparent);
  opacity: 0.85;
  transition: transform 260ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-cta,
.button-primary {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(154, 106, 77, 0.12);
}

.nav-cta::before,
.button-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, rgba(214,45,32,0.18), rgba(154,106,77,0.2), rgba(246,239,231,0.08));
  opacity: 0;
  transform: translateX(-30%);
  transition: opacity 320ms ease, transform 420ms ease;
}

.nav-cta:hover::before,
.button-primary:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.button-primary:hover,
.nav-cta:hover {
  box-shadow: 0 18px 46px rgba(109, 58, 43, 0.22), inset 0 0 0 1px rgba(246,239,231,0.16);
}

/* HERO */
.hero {
  background:
    radial-gradient(circle at 50% 42%, rgba(246, 239, 231, 0.065), transparent 22rem),
    radial-gradient(circle at 50% 50%, rgba(154, 106, 77, 0.14), transparent 34rem),
    linear-gradient(180deg, #090706 0%, var(--black) 54%, #100c0b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(86vw, 920px);
  height: min(86vw, 920px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 1px solid rgba(246, 239, 231, 0.045);
  border-radius: 50%;
  mask-image: radial-gradient(circle, transparent 0 48%, black 49%, transparent 72%);
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  left: -10vw;
  right: -10vw;
  bottom: -11vw;
  height: 20vw;
  transform: rotate(-3deg);
  background: linear-gradient(180deg, transparent, rgba(24, 19, 18, 0.82) 46%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.checker-corner {
  width: clamp(160px, 22vw, 320px);
  height: clamp(86px, 12vw, 172px);
  top: 86px;
  right: clamp(-70px, -4vw, -20px);
  opacity: 0.36;
  transform: rotate(-14deg) translate3d(0, var(--checker-y, 0px), 0);
  mask-image: linear-gradient(110deg, black 0 42%, transparent 88%);
  filter: saturate(0.95) brightness(0.95);
}

.hero-visual {
  width: min(50vh, 500px);
  filter:
    drop-shadow(0 36px 80px rgba(246, 239, 231, 0.06))
    drop-shadow(0 20px 66px rgba(154, 106, 77, 0.28));
  transform-style: preserve-3d;
}

.hero-visual img {
  transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0) rotateX(var(--hero-rx, 0deg)) rotateY(var(--hero-ry, 0deg));
  transition: transform 650ms cubic-bezier(.18,.76,.2,1), filter 420ms ease;
  will-change: transform;
}

.hero:hover .hero-visual img {
  filter: drop-shadow(0 0 34px rgba(246, 239, 231, 0.085));
}

.scroll-cue {
  box-shadow: 0 0 38px rgba(154, 106, 77, 0.18);
}

/* Story section: warmer, more atmospheric */
.story {
  background:
    radial-gradient(circle at 82% 35%, rgba(109, 58, 43, 0.28), transparent 30rem),
    radial-gradient(circle at 22% 86%, rgba(154, 106, 77, 0.12), transparent 25rem),
    linear-gradient(180deg, rgba(24, 19, 18, 0.88) 0%, #0d0a09 82%);
}

.story::before {
  content: "";
  position: absolute;
  top: -5%;
  right: -18%;
  width: min(62vw, 780px);
  height: 30vh;
  background: url('../assets/patterns/croatian-checker-diagonal-ribbon.svg') center/cover no-repeat;
  opacity: 0.075;
  transform: rotate(-16deg) translate3d(0, var(--story-ribbon-y, 0px), 0);
  mask-image: linear-gradient(90deg, transparent 0%, black 30%, transparent 100%);
  pointer-events: none;
}

.story-grid {
  position: relative;
}

.story-copy {
  position: relative;
  padding: clamp(24px, 3vw, 44px) 0 clamp(24px, 3vw, 44px) clamp(24px, 5vw, 70px);
}

.story-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(246,239,231,0.16), rgba(154,106,77,0.36), transparent);
}

/* Collection transition and larger checker system */
.collection {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(214, 45, 32, 0.07), transparent 30rem),
    radial-gradient(circle at 82% 58%, rgba(109, 58, 43, 0.24), transparent 35rem),
    linear-gradient(180deg, #0b0807 0%, var(--black) 18%, rgba(24, 19, 18, 0.78) 54%, #0b0807 100%);
}

.collection::before {
  content: "";
  position: absolute;
  top: -112px;
  left: 50%;
  width: min(1120px, 120vw);
  height: 168px;
  transform: translateX(-50%) rotate(-8deg) translate3d(0, var(--collection-ribbon-y, 0px), 0);
  background: url('../assets/patterns/croatian-checker-diagonal-ribbon.svg') center/cover no-repeat;
  opacity: 0.22;
  mask-image: linear-gradient(90deg, transparent, black 14%, black 72%, transparent);
  pointer-events: none;
  z-index: -1;
}

.collection .section-intro {
  position: relative;
}

.collection .section-intro::after {
  content: "";
  display: block;
  width: min(170px, 36vw);
  height: 1px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, transparent, rgba(214,45,32,0.72), rgba(246,239,231,0.25), transparent);
}

.product-panel {
  transform: translateY(0);
  transition: transform 420ms cubic-bezier(.18,.76,.2,1), border-color 420ms ease, box-shadow 420ms ease, background 420ms ease;
  box-shadow: inset 0 0 0 1px rgba(154,106,77,0.035), 0 0 0 rgba(0,0,0,0);
}

.product-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 50%), color-mix(in srgb, var(--accent) 26%, transparent), transparent 17rem),
    linear-gradient(115deg, transparent 0 40%, rgba(246,239,231,0.045) 48%, transparent 56%);
  opacity: 0;
  transition: opacity 360ms ease;
}

.product-panel::after {
  width: 190px;
  height: 132px;
  top: 28px;
  right: 28px;
  opacity: 0.12;
  transform: translate(34px, -34px) rotate(-9deg);
  mask-image: linear-gradient(135deg, black, transparent 84%);
}

.product-panel:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent) 56%, rgba(246,239,231,0.18));
  box-shadow: 0 32px 100px rgba(0,0,0,0.38), inset 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent);
}

.product-panel:hover::before {
  opacity: 1;
}

.product-panel:hover::after {
  opacity: 0.58;
  transform: translate(0, 0) rotate(-9deg);
}

.product-copy {
  transition: transform 420ms cubic-bezier(.18,.76,.2,1);
}

.product-panel:hover .product-copy {
  transform: translateY(-8px);
}

.product-copy h3 {
  position: relative;
  padding-bottom: 18px;
}

.product-copy h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0.72);
  transform-origin: left;
  transition: transform 360ms ease, width 360ms ease;
}

.product-panel:hover .product-copy h3::after {
  width: 140px;
  transform: scaleX(1);
}

.flavour-label {
  transition: transform 320ms ease, background 320ms ease, border-color 320ms ease, color 320ms ease;
}

.product-panel:hover .flavour-label {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 70%, rgba(246,239,231,0.18));
}

.product-panel:hover .product-image-wrap img {
  transform: translateY(-18px) rotate(-1.6deg) scale(1.035);
  filter:
    drop-shadow(0 56px 96px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 38px color-mix(in srgb, var(--accent) 32%, transparent));
}

.product-panel.reverse:hover .product-image-wrap img {
  transform: translateY(-18px) rotate(1.6deg) scale(1.035);
}

/* Chocolate stack cinematic section */
.chocolate-moment {
  background:
    radial-gradient(circle at 70% 48%, rgba(154, 106, 77, 0.32), transparent 32rem),
    radial-gradient(circle at 22% 70%, rgba(109, 58, 43, 0.16), transparent 26rem),
    linear-gradient(180deg, #0a0807 0%, #17110f 48%, #080606 100%);
}

.chocolate-moment::after {
  content: "";
  position: absolute;
  right: -24vw;
  bottom: -7vw;
  width: min(980px, 90vw);
  height: 150px;
  transform: rotate(8deg);
  background: url('../assets/patterns/croatian-checker-diagonal-ribbon.svg') center/cover no-repeat;
  opacity: 0.105;
  mask-image: linear-gradient(90deg, transparent 0%, black 28%, transparent 100%);
  pointer-events: none;
}

.stack-visual {
  width: min(54vw, 720px);
  filter:
    drop-shadow(0 58px 122px rgba(0, 0, 0, 0.54))
    drop-shadow(0 0 54px rgba(154, 106, 77, 0.24));
  transition: filter 420ms ease;
}

.stack-visual:hover {
  filter:
    drop-shadow(0 68px 138px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 70px rgba(154, 106, 77, 0.32));
}

/* Craft cards */
.craft {
  background:
    radial-gradient(circle at 18% 16%, rgba(246,239,231,0.035), transparent 22rem),
    radial-gradient(circle at 85% 74%, rgba(109, 58, 43, 0.18), transparent 25rem),
    linear-gradient(180deg, #080606 0%, var(--charcoal) 50%, #090706 100%);
}

.ingredient-card {
  position: relative;
  overflow: hidden;
}

.ingredient-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(246, 239, 231, 0.0);
  background: linear-gradient(145deg, rgba(154,106,77,0.14), transparent 50%, rgba(214,45,32,0.08));
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.ingredient-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 1px;
  transform: scaleX(0.25);
  transform-origin: left;
  background: linear-gradient(90deg, var(--red), rgba(246,239,231,0.24), transparent);
  opacity: 0.6;
  transition: transform 320ms ease, opacity 320ms ease;
}

.ingredient-card:hover::before {
  opacity: 1;
}

.ingredient-card:hover::after {
  transform: scaleX(1);
  opacity: 0.95;
}

.ingredient-card span,
.ingredient-card p {
  position: relative;
  z-index: 1;
  transition: transform 320ms ease, color 320ms ease;
}

.ingredient-card:hover span {
  transform: translateY(-3px);
  color: var(--ivory);
}

.ingredient-card:hover p {
  color: var(--ivory);
}

/* Croatia: strongest checker moment */
.croatia {
  background:
    radial-gradient(circle at 18% 40%, rgba(109,58,43,0.2), transparent 30rem),
    linear-gradient(180deg, #0b0807 0%, #100c0b 52%, #080606 100%);
}

.croatia::before {
  content: "";
  position: absolute;
  inset: 12% 0 12% auto;
  width: min(62vw, 860px);
  background: linear-gradient(90deg, transparent, rgba(214,45,32,0.12), transparent);
  transform: skewX(-12deg);
  opacity: 0.72;
  pointer-events: none;
}

.checker-ribbon {
  right: -10vw;
  top: 3%;
  width: min(70vw, 920px);
  height: 88%;
  opacity: 0.34;
  transform: translate3d(0, var(--ribbon-y, 0px), 0) rotate(-16deg);
  mask-image:
    linear-gradient(90deg, transparent 0%, black 18%, black 60%, transparent 92%),
    linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
  filter: saturate(0.92) brightness(0.9);
}

.croatia-content {
  padding: clamp(28px, 5vw, 72px) 0;
}

.croatia-content::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(214,45,32,0.66), rgba(246,239,231,0.12), transparent);
}

/* Packaging detail as design breakdown */
.packaging {
  background:
    radial-gradient(circle at 50% 8%, rgba(154,106,77,0.10), transparent 28rem),
    linear-gradient(180deg, #080606 0%, rgba(24, 19, 18, 0.75) 100%);
}

.detail-tile {
  position: relative;
  transition: transform 360ms cubic-bezier(.18,.76,.2,1), border-color 360ms ease, box-shadow 360ms ease, background 360ms ease;
}

.detail-tile::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -52px;
  top: -52px;
  border: 1px solid rgba(246,239,231,0.08);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 360ms ease, transform 420ms cubic-bezier(.18,.76,.2,1);
}

.detail-tile::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -18px;
  width: 144px;
  height: 86px;
  background: url('../assets/patterns/croatian-checker-diagonal-ribbon.svg') center/cover no-repeat;
  opacity: 0;
  transform: translate(26px, 20px) rotate(-10deg);
  transition: opacity 360ms ease, transform 420ms ease;
}

.detail-tile:hover {
  transform: translateY(-8px);
  border-color: rgba(246, 239, 231, 0.23);
  background: linear-gradient(145deg, rgba(246,239,231,0.065), rgba(109,58,43,0.075));
  box-shadow: 0 28px 88px rgba(0,0,0,0.36);
}

.detail-tile:hover::before {
  opacity: 1;
  transform: scale(1);
}

.detail-tile:hover::after {
  opacity: 0.26;
  transform: translate(0,0) rotate(-10deg);
}

.detail-tile:hover img {
  transform: scale(1.055);
  filter: drop-shadow(0 22px 44px rgba(0,0,0,0.38));
}

/* Closing brand signature */
.closing {
  background:
    radial-gradient(circle at 50% 48%, rgba(154,106,77,0.24), transparent 36rem),
    linear-gradient(180deg, #080606 0%, #0f0d0c 100%);
}

.closing::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: min(480px, 72vw);
  height: 10px;
  transform: translateX(-50%);
  background: url('../assets/patterns/croatian-checker.svg') center/auto 100% repeat-x;
  opacity: 0.32;
  mask-image: linear-gradient(90deg, transparent, black 22%, black 78%, transparent);
}

.closing-visual img {
  transition: transform 560ms cubic-bezier(.18,.76,.2,1), filter 520ms ease;
}

.closing-visual:hover img {
  transform: translateY(-8px) scale(1.015);
  filter: drop-shadow(0 0 52px rgba(154,106,77,0.22));
}

.site-footer {
  background: linear-gradient(180deg, #0f0d0c, #080606);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: url('../assets/patterns/croatian-checker.svg') center/auto 100% repeat-x;
  opacity: 0.18;
}

/* More cinematic reveals */
.reveal {
  transform: translateY(38px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 1000ms ease,
    transform 1050ms cubic-bezier(.18,.76,.2,1),
    filter 1050ms ease;
}

.reveal.is-visible {
  filter: blur(0);
}

.product-panel.reveal {
  transform: translateY(54px) scale(0.975);
}

.product-panel.reveal.is-visible {
  transform: translateY(0) scale(1);
}

.product-panel.reveal.is-visible:hover {
  transform: translateY(-8px) scale(1);
}

/* Responsive V2 tuning */
@media (max-width: 1120px) {
  .collection::before {
    top: -78px;
    height: 126px;
  }

  .product-panel::after {
    width: 136px;
    height: 94px;
  }

  .checker-ribbon {
    opacity: 0.2;
    width: 88vw;
  }

  .croatia-content::before {
    left: 0;
  }

  .story-copy {
    padding-left: 28px;
  }
}

@media (max-width: 720px) {
  main > section:not(.hero)::after {
    left: 18px;
    right: 18px;
  }

  .hero-visual {
    width: min(60vh, 350px);
  }

  .checker-corner {
    width: 150px;
    right: -56px;
    opacity: 0.24;
  }

  .story::before,
  .collection::before,
  .chocolate-moment::after {
    opacity: 0.08;
  }

  .product-panel:hover,
  .product-panel.reveal.is-visible:hover,
  .detail-tile:hover,
  .ingredient-card:hover {
    transform: none;
  }

  .product-panel:hover .product-image-wrap img,
  .product-panel.reverse:hover .product-image-wrap img {
    transform: translateY(-8px) scale(1.01);
  }

  .croatia::before {
    width: 100vw;
    opacity: 0.26;
  }

  .checker-ribbon {
    right: -44vw;
    width: 126vw;
    height: 58%;
    top: auto;
    bottom: 4%;
    opacity: 0.18;
  }

  .detail-tile::after {
    opacity: 0.12;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual img,
  .checker-corner,
  .checker-ribbon,
  .story::before,
  .collection::before {
    transform: none !important;
  }
}


/* Nautilus YouTube video section */
.promo-video {
  position: relative;
  padding-top: clamp(72px, 9vw, 132px);
  padding-bottom: clamp(96px, 12vw, 160px);
  background:
    radial-gradient(circle at 50% 18%, rgba(154, 106, 77, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(15, 13, 12, 0) 0%, rgba(24, 19, 18, 0.76) 44%, rgba(15, 13, 12, 0) 100%);
}

.promo-video::before {
  content: "";
  position: absolute;
  inset: 9% auto auto -12%;
  width: 46vw;
  height: 20vw;
  min-width: 360px;
  min-height: 160px;
  background-image: url('../assets/patterns/croatian-checker.svg');
  background-size: 74px 74px;
  opacity: 0.08;
  transform: rotate(-12deg);
  mask-image: linear-gradient(90deg, transparent, #000 26%, #000 64%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%, #000 64%, transparent);
  pointer-events: none;
}

.video-shell {
  position: relative;
  width: min(1080px, calc(100% - 40px));
  margin: clamp(28px, 4vw, 58px) auto 0;
  border: 1px solid rgba(246, 239, 231, 0.16);
  border-radius: 30px;
  padding: clamp(10px, 1.8vw, 18px);
  background:
    linear-gradient(145deg, rgba(246, 239, 231, 0.08), transparent 42%),
    rgba(15, 13, 12, 0.66);
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.46),
    0 0 90px rgba(109, 58, 43, 0.18);
  overflow: hidden;
}

.video-shell::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 23px;
  border: 1px solid rgba(214, 40, 40, 0.12);
  pointer-events: none;
}

.youtube-placeholder,
.video-shell iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #0f0d0c;
}

.youtube-placeholder {
  position: relative;
  cursor: pointer;
  padding: 0;
  color: inherit;
  isolation: isolate;
}

.youtube-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.72);
  transform: scale(1.01);
  transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.youtube-placeholder:hover img,
.youtube-placeholder:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.08) brightness(0.82);
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.36) 68%),
    linear-gradient(135deg, rgba(15, 13, 12, 0.16), rgba(109, 58, 43, 0.24));
  pointer-events: none;
}

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: clamp(72px, 8vw, 108px);
  height: clamp(72px, 8vw, 108px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(246, 239, 231, 0.62);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, rgba(246, 239, 231, 0.32), transparent 32%),
    rgba(15, 13, 12, 0.72);
  box-shadow:
    0 0 44px rgba(246, 239, 231, 0.16),
    0 0 80px rgba(214, 40, 40, 0.16);
  transition: transform 420ms ease, border-color 420ms ease, background 420ms ease;
  pointer-events: none;
}

.youtube-placeholder:hover .play-button,
.youtube-placeholder:focus-visible .play-button {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: rgba(246, 239, 231, 0.9);
  background: rgba(24, 19, 18, 0.86);
}

.play-button span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-38%, -50%);
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid var(--ivory);
}

.video-fallback {
  margin: 14px 0 0;
  text-align: center;
  color: rgba(200, 184, 168, 0.7);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.video-fallback a {
  color: var(--ivory);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  .promo-video {
    padding-top: 72px;
    padding-bottom: 96px;
  }

  .video-shell {
    width: calc(100% - 28px);
    border-radius: 22px;
  }

  .youtube-placeholder,
  .video-shell iframe {
    border-radius: 16px;
  }

  .video-shell::after {
    border-radius: 17px;
  }
}
