/* ============================================================
   Dzapig — Vibrant Armenian Kids Design System
   ============================================================ */

:root {
  /* Vibrant Armenian Palette */
  --bg:           #FFFDF8;
  --bg-alt:       #FFF6E5;
  --red:          #E32619;
  --blue:         #0055A4;
  --orange:       #FF9E1B;
  --green:        #00B159;
  --yellow:       #FFD600;
  
  --ink:          #2A2422;
  --ink-soft:     #685E5A;
  
  --yt:           #FF0000;
  --yt-deep:      #CC0000;

  --border-width: 4px;
  --shadow-solid: 6px 6px 0 var(--ink);
  --shadow-solid-sm: 4px 4px 0 var(--ink);
  --shadow-solid-hover: 2px 2px 0 var(--ink);
  
  --radius:       24px;
  --radius-lg:    36px;
  --radius-pill:  999px;

  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body:    "Nunito", system-ui, sans-serif;

  --maxw: 1140px;
}

* { box-sizing: border-box; }
.nowrap { white-space: nowrap; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -.02em;
}

p { margin: 0 0 1em; font-weight: 700; }
a { color: inherit; }

.wrap {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: .5rem 1.2rem;
  border-radius: var(--radius-pill);
  border: var(--border-width) solid var(--ink);
  box-shadow: var(--shadow-solid-sm);
  margin-bottom: 1.2rem;
}

/* ---------- buttons ---------- */
.btn {
  --pad-y: .8rem;
  --pad-x: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-pill);
  border: var(--border-width) solid var(--ink);
  box-shadow: var(--shadow-solid);
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(4px, 4px); box-shadow: var(--shadow-solid-hover); }
.btn-sm { --pad-y: .55rem; --pad-x: 1.2rem; font-size: 1rem; }
.btn-lg { --pad-y: .95rem; --pad-x: 2rem; font-size: 1.2rem; }

.btn-yt { background: var(--yt); color: #fff; }
.btn-yt .yt-ico { color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); }

/* ---------- header ---------- */
.header-accent-bar {
  height: 10px;
  width: 100%;
  background: linear-gradient(90deg, 
    var(--red) 0%, 
    var(--blue) 25%, 
    var(--orange) 50%, 
    var(--green) 75%, 
    var(--yellow) 100%
  );
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-width) solid var(--ink);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.header--hidden {
  transform: translateY(-100%);
}

.site-header.header--scrolled {
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 0 var(--ink);
}

.header-inner { display: flex; align-items: center; gap: 1.2rem; padding: .6rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); font-weight: 800; }
.brand-mark img { transition: transform 0.3s ease; }
.brand:hover .brand-mark img { transform: scale(1.1) rotate(-4deg); }
.brand-name { font-size: 1.8rem; color: var(--ink); letter-spacing: -.02em; }

.site-nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; }
.site-nav .nav-link {
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
}

.site-nav .nav-link:hover {
  transform: translateY(-2px);
}

.site-nav .nav-about {
  background: #FFF0E6;
  color: var(--orange);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.site-nav .nav-about:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.site-nav .nav-explore {
  background: #E6F8EF;
  color: var(--green);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.site-nav .nav-explore:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.site-nav .nav-cast {
  background: #E8F1FC;
  color: var(--blue);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.site-nav .nav-cast:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: calc(75px + clamp(2rem, 4vw, 4rem)) 0 0;
  background: var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.eyebrow { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.2rem; margin-bottom: .6rem; }
.hero-title { font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 800; color: var(--blue); text-shadow: 4px 4px 0 var(--ink); line-height: 1.18; margin-bottom: 1rem; }
.hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--ink-soft); margin: 0 0 2rem; font-weight: 700; line-height: 1.5; }
.hero-sub strong { color: var(--ink); font-weight: 800; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; }
.hero-note { font-weight: 800; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Seamless Hero Video Container ---------- */
.hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-ambient-glow {
  position: absolute;
  inset: -18px;
  border-radius: 40px;
  background: linear-gradient(135deg, 
    rgba(255, 158, 27, 0.3), 
    rgba(0, 85, 164, 0.2), 
    rgba(0, 177, 89, 0.25),
    rgba(255, 214, 0, 0.2)
  );
  filter: blur(28px);
  z-index: 0;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.5; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1.04); }
}

.seamless-video-card {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 60% 40% 50% 50% / 50% 50% 60% 40%;
  overflow: hidden;
  background: #FFF;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  animation: morphBlob 8s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes morphBlob {
  0% { border-radius: 60% 40% 50% 50% / 50% 50% 60% 40%; }
  33% { border-radius: 40% 60% 40% 60% / 60% 40% 50% 50%; }
  66% { border-radius: 50% 50% 60% 40% / 40% 60% 40% 60%; }
  100% { border-radius: 60% 40% 50% 50% / 50% 50% 60% 40%; }
}

.seamless-video-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blob-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(227, 38, 25, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.blob-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.blob-play-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
}

.video-badge {
  position: absolute;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  user-select: none;
  pointer-events: none;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.badge-top-left {
  top: -14px;
  left: -8px;
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(-6deg);
}

.badge-bottom-right {
  bottom: -14px;
  right: -8px;
  background: var(--green);
  color: #fff;
  transform: rotate(5deg);
  animation-delay: -2s;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.wave-sep { position: relative; z-index: 1; line-height: 0; margin-top: 4rem; }
.wave-sep svg { width: 100%; height: 90px; display: block; }

/* ---------- about ---------- */
.about { background: var(--blue); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; border-bottom: var(--border-width) solid var(--ink); }
.about h2, .about p { color: #fff; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-art { position: relative; display: flex; justify-content: center; }
.about-art img { height: clamp(320px, 34vw, 460px); position: relative; z-index: 1; filter: drop-shadow(4px 4px 0 var(--ink)); }
.about-halo { position: absolute; inset: 0; margin: auto; width: 78%; aspect-ratio: 1; background: var(--orange); border-radius: 50%; z-index: 0; top: -6%; border: var(--border-width) solid var(--ink); box-shadow: var(--shadow-solid); }
.about-copy h2 { font-size: clamp(2rem, 4vw, 3rem); text-shadow: 4px 4px 0 var(--ink); }
.about-copy p { font-size: 1.15rem; font-weight: 700; opacity: .9; }
.about-tags { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.about-tags span { background: #fff; color: var(--ink); padding: .6rem 1.2rem; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 800; font-size: 1rem; border: var(--border-width) solid var(--ink); box-shadow: var(--shadow-solid-sm); }

/* ---------- section heads ---------- */
.section-head { text-align: center; max-width: 40ch; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--blue); text-shadow: 4px 4px 0 var(--ink); }
.section-lead { color: var(--ink-soft); font-size: 1.2rem; font-weight: 700; }

/* ---------- explore / features ---------- */
.explore { padding: clamp(3rem, 6vw, 6rem) 0; background: var(--bg-alt); border-bottom: var(--border-width) solid var(--ink); }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; border: var(--border-width) solid var(--ink); box-shadow: var(--shadow-solid); transition: transform .2s ease; }
.feature-card:hover { transform: translate(4px, 4px); box-shadow: var(--shadow-solid-hover); }
.feature-ico { display: inline-grid; place-items: center; width: 68px; height: 68px; font-size: 2rem; background: var(--c, var(--green)); border-radius: 20px; margin-bottom: 1.2rem; border: var(--border-width) solid var(--ink); box-shadow: var(--shadow-solid-sm); }
.feature-card h3 { font-size: 1.35rem; }
.feature-card p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; font-weight: 700; }

/* ---------- cast ---------- */
.cast { padding: clamp(3rem, 6vw, 6rem) 0; background: var(--bg); }
.cast .section-head h2 { color: var(--orange); }
.cast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.cast-card { margin: 0; background: #fff; border-radius: var(--radius-lg); padding: 0 0 1.5rem; border: var(--border-width) solid var(--ink); box-shadow: var(--shadow-solid); overflow: hidden; transition: transform .2s ease; }
.cast-card:hover { transform: translate(4px, 4px); box-shadow: var(--shadow-solid-hover); }
.cast-photo { position: relative; height: 280px; display: flex; align-items: flex-end; justify-content: center; background: var(--tint, var(--green)); border-bottom: var(--border-width) solid var(--ink); }
.cast-photo img { height: 260px; position: relative; z-index: 1; transition: transform .3s ease; }
.cast-card:hover .cast-photo img { transform: translateY(-8px) scale(1.05); }
.cast-card figcaption { text-align: center; padding: 1.2rem 1rem 0.8rem; display: flex; flex-direction: column; gap: .3rem; }
.cast-name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.cast-desc { font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); line-height: 1.35; }

/* ---------- Clap Button ---------- */
.clap-wrapper { position: relative; margin: 1rem 0 0.5rem; display: inline-block; }
.btn-clap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  border: var(--border-width) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  user-select: none;
}
.btn-clap:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: #FFF083;
}
.btn-clap:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.clap-icon { font-size: 1.3rem; line-height: 1; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-clap:hover .clap-icon { transform: scale(1.3) rotate(-10deg); }
.clap-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--ink);
}
.clap-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  z-index: 10;
}
.clap-particle {
  position: absolute;
  font-size: 1.4rem;
  pointer-events: none;
  animation: floatUpFade 0.9s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
@keyframes floatUpFade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5) rotate(0deg); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% - 60px)) scale(1.4) rotate(var(--dr, 20deg)); }
}

/* ---------- Words of Love Bar ---------- */
.words-bar {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 2px dashed rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.words-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.words-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.word-pill {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: default;
}
.word-pill:hover {
  transform: translateY(-2px);
  background: var(--yellow-soft, #FFF8DC);
}
.word-pill em {
  font-style: normal;
  color: var(--ink-soft);
  font-weight: 700;
}

/* ---------- Parent & Grandparent Note Card ---------- */
.parent-note-card {
  position: relative;
  background: linear-gradient(135deg, #FFF8F1 0%, #FFF3E4 100%);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-solid);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink);
}
.parent-note-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 1.2rem;
}
.about .parent-note-quote {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink) !important;
  line-height: 1.6;
  max-width: 48ch;
  margin: 0 auto 1.2rem;
  font-style: italic;
}
.parent-note-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 1rem;
  color: var(--ink-soft);
}
.parent-note-sign strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

/* ---------- final CTA ---------- */
.cta { padding: clamp(3rem, 6vw, 6rem) 0; background: var(--green); border-top: var(--border-width) solid var(--ink); }
.cta-inner { display: flex; align-items: center; gap: 2rem; justify-content: center; text-align: center; background: #fff; border: var(--border-width) solid var(--ink); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); box-shadow: 12px 12px 0 var(--ink); }
.cta-char { height: 180px; filter: drop-shadow(4px 4px 0 var(--ink)); }
.cta-copy h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--red); text-shadow: 4px 4px 0 var(--ink); }
.cta-copy p { color: var(--ink-soft); font-size: 1.2rem; font-weight: 700; max-width: 42ch; margin-inline: auto; margin-bottom: 1.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 3rem 0; }
.site-footer .brand-name { color: #fff; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; }
.footer-nav { display: flex; gap: 1.5rem; margin-left: auto; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: rgba(255,255,255,.9); font-weight: 800; font-family: var(--font-display); }
.footer-nav a:hover { color: var(--yellow); }
.footer-note { width: 100%; margin: 1rem 0 0; color: rgba(255,255,255,.6); font-size: 1rem; font-weight: 700; }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-title { text-shadow: 3px 3px 0 var(--ink); }
  .about-copy h2, .section-head h2, .cta-copy h2 { text-shadow: 3px 3px 0 var(--ink); }
  .hero-video-wrapper { margin-top: 2rem; max-width: 300px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-art { order: 1; }
  .about-tags { justify-content: center; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cast-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-nav { display: none; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.25; text-shadow: 2px 2px 0 var(--ink); }
  .about-copy h2, .section-head h2, .cta-copy h2 { text-shadow: 2px 2px 0 var(--ink); }
  .hero-sub { font-size: 1.05rem; }
  .card-grid { grid-template-columns: 1fr; }
  .cast-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .cta-inner { flex-direction: column; }
  .footer-nav { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .star { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .001ms !important; }
}
