/* Dramora — pocket cinema. Palette: near-black stage, emerald projector light, gold marquee. */
:root {
  --bg: oklch(0.07 0 0);
  --surface: oklch(0.13 0.006 145);
  --ink: oklch(0.96 0.004 145);
  --muted: oklch(0.76 0.012 145);
  --primary: oklch(0.62 0.17 145);
  --primary-deep: oklch(0.42 0.13 145);
  --glow: oklch(0.78 0.19 148);
  --accent: oklch(0.88 0.12 92);
  --line: oklch(0.24 0.01 145);
  --font-display: "Archivo Black", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-nav: 50;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(14px, 2vw, 22px) clamp(20px, 4vw, 48px);
  mix-blend-mode: normal;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
}
.nav__cta {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--bg);
  background: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.nav__cta:hover { background: var(--glow); transform: translateY(-2px); }
.nav { transition: background 0.4s var(--ease-out); }
.nav--scrolled { background: oklch(0.07 0 0 / 0.85); backdrop-filter: blur(10px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  border-radius: 16px;
  padding: 14px 26px;
  font-weight: 600;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.btn--play {
  background: var(--primary);
  color: oklch(0.99 0 0);
  box-shadow: 0 12px 40px oklch(0.62 0.17 145 / 0.35);
}
.btn--play small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.04em;
}
.btn--play span { display: block; font-size: 1.05rem; line-height: 1.25; }
.btn--play:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 56px oklch(0.62 0.17 145 / 0.5); }
.btn--big { padding: 18px 34px; border-radius: 20px; }
.btn--big span { font-size: 1.25rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(96px, 14vh, 150px) clamp(20px, 5vw, 64px) clamp(48px, 8vh, 96px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  width: 70vmax; height: 70vmax;
  right: -20vmax; top: -25vmax;
  background: radial-gradient(circle, oklch(0.42 0.13 145 / 0.5), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  width: min(1200px, 100%);
  margin-inline: auto;
  position: relative;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1rem + 6.5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; }
.hero__line--green { color: var(--glow); }
.hero__sub {
  max-width: 44ch;
  color: var(--muted);
  margin: 24px 0 36px;
  font-size: clamp(1.02rem, 1rem + 0.25vw, 1.2rem);
}
.hero__actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero__note { color: var(--muted); font-size: 0.85rem; margin: 0; letter-spacing: 0.02em; }

/* Phone mockup */
.hero__phone { display: flex; justify-content: center; }
.phone {
  width: clamp(230px, 24vw, 300px);
  aspect-ratio: 9 / 19;
  border-radius: 40px;
  padding: 10px;
  background: oklch(0.18 0.008 145);
  border: 1px solid oklch(0.3 0.012 145);
  box-shadow:
    0 40px 90px oklch(0 0 0 / 0.6),
    0 0 90px oklch(0.62 0.17 145 / 0.22);
  position: relative;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
}
.phone__screen img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.phone__ui {
  position: absolute; inset: auto 0 0 0;
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(to top, oklch(0 0 0 / 0.78), transparent);
}
.phone__tag {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: oklch(0.2 0.05 92);
  background: var(--accent);
  padding: 4px 9px;
  border-radius: 999px;
}
.phone__drama { font-family: var(--font-display); font-size: 1rem; line-height: 1.2; }
.phone__bar { display: block; height: 3px; border-radius: 2px; background: oklch(1 0 0 / 0.25); overflow: hidden; }
.phone__bar i { display: block; height: 100%; width: 62%; background: var(--glow); border-radius: 2px; }

/* ---------- Marquee (cinema title crawl) ---------- */
.marquee {
  padding: clamp(28px, 5vh, 56px) 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 12px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__row { overflow: hidden; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee__track--reverse { animation-direction: reverse; animation-duration: 58s; }
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 3.2vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.marquee__track i {
  font-style: normal;
  font-size: 0.42em;
  color: var(--accent);
  margin: 0 0.9em;
  -webkit-text-stroke: 0;
  transform: translateY(-0.1em);
}
.marquee__row--outline span {
  color: transparent;
  -webkit-text-stroke: 1.5px oklch(0.55 0.03 145);
}
.marquee__row--fill span { color: var(--glow); opacity: 0.92; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section title ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.6em;
}

/* ---------- Story (pinned phone) ---------- */
.story { padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 64px); }
.story__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  width: min(1100px, 100%);
  margin-inline: auto;
  align-items: start;
}
.story__steps { display: flex; flex-direction: column; gap: clamp(24px, 4vh, 44px); }
.story__step {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  opacity: 0.42;
  transition: opacity 0.5s var(--ease-out), border-color 0.5s var(--ease-out), background 0.5s var(--ease-out);
}
.story__step.is-active {
  opacity: 1;
  border-color: oklch(0.62 0.17 145 / 0.55);
  background: oklch(0.62 0.17 145 / 0.07);
}
.story__step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.story__step p { color: var(--muted); margin: 0; }
.story__phone { display: flex; justify-content: center; }
.phone--story { width: clamp(220px, 22vw, 280px); }
.story__img { opacity: 0; transition: opacity 0.6s var(--ease-out); }
.story__img.is-active { opacity: 1; }

/* ---------- Horizontal gallery ---------- */
.gallery { position: relative; }
.gallery__pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  padding: clamp(60px, 8vh, 90px) 0;
  overflow: hidden;
}
.gallery__title { padding-inline: clamp(20px, 5vw, 64px); margin-bottom: 0; }
.gallery__track {
  display: flex;
  gap: clamp(18px, 2.5vw, 32px);
  padding-inline: clamp(20px, 5vw, 64px);
  width: max-content;
  will-change: transform;
}
.poster {
  margin: 0;
  width: clamp(210px, 22vw, 280px);
  flex: none;
}
.poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  filter: saturate(0.92);
  transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}
.poster:hover img { transform: scale(1.03); filter: saturate(1.1); }
.poster figcaption {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.poster__genre {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.gallery__hint {
  padding-inline: clamp(20px, 5vw, 64px);
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Why ---------- */
.why {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 10vh, 120px);
  padding: clamp(80px, 12vh, 150px) clamp(20px, 5vw, 64px);
  width: min(1100px, 100%);
  margin-inline: auto;
}
.why__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.why__row--flip .why__media { order: 2; }
.why__media img {
  border-radius: 22px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
}
.why__copy p { color: var(--muted); max-width: 46ch; }

/* ---------- Quotes ---------- */
.quotes {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 64px);
}
.quotes__title { width: min(1100px, 100%); margin-inline: auto; }
.quotes__list {
  width: min(1100px, 100%);
  margin: clamp(28px, 5vh, 48px) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.quote {
  margin: 0;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}
.quote--offset { transform: translateY(clamp(0px, 3vh, 28px)); }
.quote p {
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0 0 16px;
}
.quote footer { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq {
  width: min(760px, 100%);
  margin-inline: auto;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 32px);
}
.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 18px 36px 18px 0;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  translate: 0 -50%;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--glow);
  transition: rotate 0.35s var(--ease-out);
}
.faq__item[open] summary::after { rotate: 45deg; }
.faq__item p { color: var(--muted); margin: 0 0 18px; max-width: 62ch; }
.faq__item summary:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ---------- Final CTA (drenched) ---------- */
.cta {
  background: var(--primary-deep);
  color: oklch(0.98 0.01 145);
  text-align: center;
  padding: clamp(90px, 16vh, 170px) clamp(20px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vh, 40px);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at 50% 120%, oklch(0.78 0.19 148 / 0.35), transparent 60%);
  pointer-events: none;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1rem + 5vw, 4.4rem);
  line-height: 1.02;
  position: relative;
}
.cta .btn--play {
  background: oklch(0.99 0 0);
  color: oklch(0.25 0.09 145);
  box-shadow: 0 18px 60px oklch(0 0 0 / 0.35);
  position: relative;
}
.cta__note { color: oklch(0.9 0.03 145); font-size: 0.9rem; margin: 0; position: relative; }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 64px);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer nav { display: flex; gap: 22px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__phone { order: -1; }
  .phone { width: clamp(190px, 46vw, 240px); }
  .hero { padding-top: 110px; }
  .story__inner { grid-template-columns: 1fr; }
  .story__phone { display: none; }
  .story__step { opacity: 1; }
  .why__row, .why__row--flip { grid-template-columns: 1fr; }
  .why__row--flip .why__media { order: 0; }
  .quote--offset { transform: none; }
}

/* ---------- IO reveal (JS-enhanced, default visible) ---------- */
[data-reveal].reveal-init { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
[data-reveal].reveal-init.in { opacity: 1; transform: none; }
[data-reveal].reveal-init[data-reveal="left"] { transform: translateX(-56px); }
[data-reveal].reveal-init[data-reveal="right"] { transform: translateX(56px); }
[data-reveal].reveal-init[data-reveal="left"].in,
[data-reveal].reveal-init[data-reveal="right"].in { transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
