/* ---------- Tokens ---------- */
:root{
  --lime: #dee236;
  --lime-dark: #c7cb27;
  --brown: #4e3d17;
  --brown-soft: #6b5726;
  --cream: #fdfae4;
  --offwhite: #f6f2e0;

  --font-display: 'azo-sans-web', 'DM Sans', Arial, sans-serif;
  --font-black: 'azo-sans-web', 'DM Sans', Arial, sans-serif;
  --font-body: 'DM Sans', Arial, sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(.22,.9,.32,1);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--brown);
  color: var(--offwhite);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
em{ font-style: italic; }

/* subtle paper grain, purely decorative */
.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Top bar ---------- */
.topbar{
  background: var(--lime);
  color: var(--brown);
}
.topbar__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar__msg{
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
  font-size: clamp(14px, 1.6vw, 18px);
}
.topbar__msg .dash{ opacity: .55; margin: 0 .15em; }
.topbar__badge{
  background: var(--brown);
  color: var(--lime);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-black);
  font-weight: 800;
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: badge-pop .6s var(--ease) .15s both;
}
@keyframes badge-pop{
  from{ transform: scale(.85); opacity: 0; }
  to{ transform: scale(1); opacity: 1; }
}

/* ---------- Main dark panel ---------- */
.panel{
  background: var(--brown);
  padding: 56px 24px 64px;
  position: relative;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
}
.panel__inner{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 42%) 1fr;
  gap: 56px;
  align-items: center;
}

/* --- media column --- */
.panel__media{
  position: relative;
  display: flex;
  justify-content: center;
}
.book3d-frame{
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 130 / 190;
  opacity: 0;
  transform: translateY(26px) scale(.97);
  animation: rise-in .9s var(--ease) .1s both;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.35));
}
.book3d{
  position: relative;
  width: 100%;
  height: 100%;
}
.book3d__canvas{
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.book3d__fallback{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
}
.book3d__hint{
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  background: rgba(78,61,23,.55);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .03em;
  padding: 6px 14px;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(2px);
  opacity: 0;
  animation: hint-in .5s var(--ease) 1.5s both, hint-bob 2.2s ease-in-out 1.8s infinite;
  transition: opacity .4s var(--ease);
}
.book3d__hint--hidden{
  opacity: 0 !important;
  animation: none;
}
@keyframes hint-in{
  to{ opacity: 1; }
}
@keyframes hint-bob{
  0%,100%{ transform: translateX(-50%) translateY(0); }
  50%{ transform: translateX(-50%) translateY(-4px); }
}
@keyframes rise-in{
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.sticker{
  position: absolute;
  right: -6%;
  bottom: 6%;
  width: 34%;
  min-width: 118px;
  max-width: 190px;
  /* Rest state lives here (not just in the animation's "to" keyframe), so
     once the entrance animation finishes and the hover animation later
     replaces it, the sticker falls back to this instead of disappearing. */
  opacity: 1;
  transform: scale(1) rotate(-8deg);
  animation: sticker-in .7s var(--ease) .75s backwards;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}
.sticker:hover{ animation: sticker-wiggle .6s var(--ease); }
@keyframes sticker-in{
  to{ opacity: 1; transform: scale(1) rotate(-8deg); }
}
@keyframes sticker-wiggle{
  0%,100%{ transform: scale(1) rotate(-8deg); }
  30%{ transform: scale(1.06) rotate(-2deg); }
  60%{ transform: scale(1.04) rotate(-12deg); }
}
.sticker__svg{
  width: 100%;
  height: auto;
  fill: var(--cream);
}
.sticker__text{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14% 16%;
  color: var(--brown);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  transform: rotate(-8deg);
}
.sticker__text span{
  display: block;
  font-size: clamp(8px, 1.1vw, 10.5px);
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .85;
}
.sticker__text strong{
  display: block;
  font-size: clamp(10px, 1.5vw, 13px);
  letter-spacing: .02em;
  margin-top: 2px;
}

/* --- copy column --- */
.panel__copy{ min-width: 0; }

.reveal-line{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: line-in .75s var(--ease) both;
  animation-delay: calc(var(--d) * 110ms + 150ms);
}
@keyframes line-in{
  to{ opacity: 1; transform: translateY(0); filter: blur(0); }
}

.headline{
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.3vw, 46px);
  line-height: 1.08;
  color: var(--offwhite);
}
.headline span{ display: block; }
.headline em{ font-weight: 700; font-style: italic; }

.highlight{
  margin: 14px 0 20px;
  display: inline-block;
}
.highlight span{
  background: var(--lime);
  color: var(--brown);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.9vw, 28px);
  padding: .18em .45em .22em;
  display: inline-block;
  border-radius: 2px;
  box-shadow: 0 4px 0 rgba(0,0,0,.08);
}

.subhead{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.4;
  margin: 0 0 18px;
  color: var(--offwhite);
  max-width: 34ch;
}

.body{ margin-bottom: 30px; }
.body p{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.65;
  color: var(--offwhite);
  opacity: .92;
  margin: 0 0 14px;
  max-width: 46ch;
}

/* --- CTA --- */
.cta{
  border-top: 1px solid rgba(253,250,228,.18);
  padding-top: 26px;
}
.cta__label{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--lime);
  margin: 0 0 14px;
}
.cta__row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn__icon{ width: 18px; height: 18px; flex-shrink: 0; }
.btn--phone{
  background: var(--lime);
  color: var(--brown);
}
.btn--email{
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--cream);
}
.btn:hover{
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
}
.btn--phone:hover{ background: var(--lime-dark); }
.btn--email:hover{ background: rgba(253,250,228,.12); }
.btn:active{ transform: translateY(-1px) scale(.99); }

/* ---------- Bottom spec bar ---------- */
.specbar{
  background: var(--cream);
  color: var(--brown);
  padding: 16px 24px;
}
.specbar p{
  max-width: var(--container);
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(11px, 1.6vw, 13px);
  letter-spacing: .01em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
}
.specbar .dot{ opacity: .4; font-weight: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .panel__inner{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .panel__media{ order: -1; }
  .book3d-frame{ max-width: 280px; margin: 0 auto; }
  .headline, .subhead, .body p{ max-width: 100%; }
  .cta__row{ flex-direction: column; }
  .btn{ justify-content: center; }
}

@media (max-width: 480px){
  .topbar__inner{ padding: 12px 18px; }
  .panel{ padding: 40px 18px 48px; }
  .sticker{ right: -2%; width: 38%; }
  .specbar p{ font-size: 11px; gap: 6px 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .book3d-frame, .sticker, .reveal-line, .topbar__badge{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .book3d-frame{ filter: drop-shadow(0 20px 28px rgba(0,0,0,.3)) !important; }
  .book3d__hint{ animation: none !important; opacity: 1 !important; }
  .sticker:hover{ animation: none !important; }
  .btn:hover{ transform: none; }
}
