/* =====================================================================
   SARANYA - bold comic theme, DARK mode
   ===================================================================== */
:root {
  --canvas:   #15121d;   /* near-black ink-purple */
  --canvas-2: #211c2e;   /* raised panel */
  --canvas-3: #2c2640;   /* card hover / inputs */
  --ink:      #f6f1e6;   /* light primary text */
  --ink-soft: #b4abc6;   /* muted light */
  --line:     #ffffff;   /* bold light outlines */
  --line-dim: #4a4360;   /* subtle dividers */
  --accent:   #ff5a4d;   /* pow red */
  --accent-d: #e8463b;
  --yellow:   #ffd23f;
  --blue:     #36c5f0;
  --green:    #5bd66e;
  --max:      1240px;
  --gutter:   clamp(20px, 5vw, 60px);
  --comic:    "Bangers", "Impact", sans-serif;
  --round:    "Baloo 2", "Comic Sans MS", system-ui, cursive;
  --body:     "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow:   6px 6px 0 #000;
  --shadow-lg:10px 10px 0 #000;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body); color: var(--ink); background: var(--canvas);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.dots { background-image: radial-gradient(rgba(255,255,255,.05) 1.4px, transparent 1.5px); background-size: 14px 14px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--round); font-weight: 800; line-height: 1.08; }
.display, .section-title, .brand, .phase-num {
  font-family: var(--comic); font-weight: 400; letter-spacing: .03em; line-height: .98;
}
.display { font-size: clamp(2.8rem, 7vw, 5.4rem); }
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.eyebrow {
  display: inline-block; font-family: var(--round); font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; font-size: .8rem;
  background: var(--yellow); color: #161018;
  border: 2.5px solid var(--line); border-radius: 999px;
  padding: .35em .9em; box-shadow: 3px 3px 0 #000; transform: rotate(-2deg);
}
.lead { font-size: clamp(1.05rem, 2.1vw, 1.28rem); color: var(--ink-soft); max-width: 62ch; font-weight: 600; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(44px, 7vw, 92px); }
.muted-panel { background: var(--canvas-2); border-block: 4px solid var(--line); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: blur(10px); border-bottom: 4px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-size: 2rem; letter-spacing: .04em; color: var(--ink); display: inline-flex; align-items: baseline; }
.brand .b-my { color: var(--yellow); }
.brand .b-comic { color: var(--accent); }
.brand .b-dot { color: var(--blue); }
.brand-by { font-family: var(--round); font-size: .44em; font-weight: 700; color: var(--ink-soft); letter-spacing: .02em; margin-left: .55em; text-transform: none; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 30px); align-items: center; }
.nav a { font-family: var(--round); font-weight: 700; font-size: .98rem; color: var(--ink); transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--yellow); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--accent); color: #fff;
  font-family: var(--round); font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  font-size: .92rem; padding: .62em 1.4em;
  border: 3px solid var(--line); border-radius: 999px; box-shadow: 5px 5px 0 #000;
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
}
.btn:hover { background: var(--accent-d); }
.btn:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 #000; }
.btn-ghost { background: var(--yellow); color: #161018; }
.btn-ghost:hover { background: #fff; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(30px, 4vw, 56px); text-align: center; }
.hero .eyebrow { margin-bottom: 20px; }
.hero-banner {
  max-width: 980px; margin: 0 auto 24px;
  border: 5px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--canvas-2);
}
.hero-banner img { width: 100%; display: block; }
.hero .lead { margin: 0 auto 22px; font-weight: 700; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- section heads ---------- */
.section-head { max-width: 62ch; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }

/* ---------- browse / filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; justify-content: center; }
.filter {
  font-family: var(--round); font-weight: 700; font-size: .9rem;
  padding: .45em 1.1em; border-radius: 999px;
  border: 2.5px solid var(--line); background: var(--canvas-2); color: var(--ink);
  cursor: pointer; transition: transform .08s, box-shadow .08s, background .15s, color .15s;
  box-shadow: 2px 2px 0 #000;
}
.filter:hover { background: var(--canvas-3); }
.filter.active { background: var(--yellow); color: #161018; box-shadow: 3px 3px 0 #000; }

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: clamp(20px, 2.6vw, 32px); }
.card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--canvas-2); border: 3.5px solid var(--line); box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 3/4; overflow: hidden; border-bottom: 3.5px solid var(--line); background: var(--canvas-3); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 14px 16px 18px; }
.card-cat { font-family: var(--round); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); font-weight: 800; }
.card h3 { font-size: 1.4rem; margin: .12em 0 .14em; font-weight: 800; color: var(--ink); }
.card-style { font-size: .86rem; color: var(--ink-soft); font-weight: 600; }
.card-link { position: absolute; inset: 0; z-index: 2; }
.card .star { position: absolute; top: 10px; right: 10px; z-index: 3; background: #161018; color: var(--yellow);
  border: 2px solid var(--line); border-radius: 999px; font-family: var(--round); font-weight: 800; font-size: .76rem; padding: .15em .6em; }

.ph {
  width: 100%; height: 100%;
  background: radial-gradient(circle at 30% 25%, var(--accent), transparent 55%),
              radial-gradient(circle at 78% 80%, var(--blue), transparent 52%),
              linear-gradient(135deg, #3a2350, #1c2b4a);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--comic); font-size: 2.6rem; color: var(--ink);
}

/* ---------- process ---------- */
.phase { display: grid; grid-template-columns: 230px 1fr; gap: clamp(24px,5vw,64px); align-items: start; }
.phase + .phase { margin-top: clamp(44px,6vw,80px); padding-top: clamp(44px,6vw,80px); border-top: 4px dashed var(--line-dim); }
.phase-num { font-size: clamp(3.4rem,8vw,6rem); color: var(--accent); }
.phase-label { font-family: var(--round); font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); margin-top: .4em; }
.step { padding: 18px 0; border-bottom: 2px solid var(--line-dim); }
.step:last-child { border-bottom: 0; }
.step h4 { font-family: var(--round); font-size: 1.4rem; font-weight: 800; margin-bottom: .25em; color: var(--ink); }
.step p { color: var(--ink-soft); max-width: 65ch; font-weight: 600; }

/* ---------- detail page ---------- */
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,60px); align-items: start; }
.detail-cover { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 3.5px solid var(--line); aspect-ratio: 3/4; background: var(--canvas-3); }
.detail-cover img, .detail-cover .ph { width: 100%; height: 100%; object-fit: cover; }
.meta-row { display: flex; gap: 26px; flex-wrap: wrap; margin: 22px 0; }
.meta-row .k { font-family: var(--round); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; }
.meta-row .v { font-family: var(--round); font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.facts { margin-top: 26px; }
.fact { padding: 16px 0; border-top: 2px solid var(--line-dim); }
.fact .k { font-family: var(--round); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); font-weight: 800; margin-bottom: .3em; }
.fact p { color: var(--ink-soft); font-weight: 600; }
.gallery-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery-strip figure { border-radius: 14px; overflow: hidden; border: 3px solid var(--line); background: var(--canvas-2); box-shadow: var(--shadow); }
.gallery-strip img, .gallery-strip .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-bottom: 3px solid var(--line); }
.gallery-strip figcaption { padding: 10px 14px; font-size: .84rem; color: var(--ink-soft); font-weight: 600; }
.quote { font-family: var(--round); font-weight: 800; font-size: clamp(1.4rem,3vw,2.1rem); line-height: 1.3; max-width: 26ch; color: var(--ink); }
.quote cite { display: block; font-family: var(--body); font-size: .9rem; font-style: normal; color: var(--ink-soft); margin-top: 1em; font-weight: 700; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba figure { position: relative; border-radius: 14px; overflow: hidden; border: 3px solid var(--line); box-shadow: var(--shadow); }
.ba .tag { position: absolute; top: 12px; left: 12px; background: #161018; color: #fff; font-family: var(--round); font-weight: 800; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; }

/* ---------- bands / cta ---------- */
.cta-band { background: #0e0b15; color: var(--ink-soft); text-align: center; border-block: 4px solid var(--line); }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #ffe7c0; margin-inline: auto; }

.prose { max-width: 64ch; }
.prose p { margin-bottom: 1.1em; color: var(--ink-soft); font-weight: 600; }
.prose p.big { font-family: var(--round); font-weight: 800; font-size: clamp(1.3rem,2.6vw,1.8rem); color: var(--ink); line-height: 1.3; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,6vw,64px); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.contact-or { font-family: var(--round); font-weight: 700; color: var(--ink-soft); font-size: .85rem; margin: 16px 0 8px; text-align: center; }
/* contact wizard - elevated "popup-style" panel with two option tiles */
.contact-wizard { max-width: 620px; margin: 8px auto 0; background: var(--canvas-2); border: 4px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: clamp(22px,4vw,34px); }
.wizard-title { font-family: var(--round); font-weight: 800; text-align: center; font-size: 1.45rem; margin-bottom: 18px; color: var(--ink); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 16px; background: var(--canvas-3); border: 3px solid var(--line); border-radius: 16px; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s, background .15s; }
.choice-tile:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-lg); background: var(--canvas-2); }
.choice-ic { font-size: 2rem; line-height: 1; }
.choice-t { font-family: var(--round); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.choice-d { font-size: .85rem; color: var(--ink-soft); font-weight: 600; line-height: 1.35; }
.wizard-actions { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
.wizard-actions .btn { justify-content: center; width: 100%; font-size: 1rem; padding: .85em 1.4em; }
.contact-form { max-width: 620px; margin: 8px auto 0; background: var(--canvas-2); border: 4px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: clamp(22px,4vw,34px); }
.form-buttons { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.contact-promise { font-family: var(--round); font-weight: 700; color: var(--yellow); font-size: .9rem; text-align: center; margin: 16px auto 4px; max-width: 44ch; line-height: 1.4; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.linkish { background: none; border: 0; color: var(--ink-soft); font-family: var(--round); font-weight: 700; font-size: .9rem; cursor: pointer; padding: 4px 8px; }
.linkish:hover { color: var(--yellow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--round); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: .45em; }
.field input, .field textarea {
  width: 100%; padding: .75em 1em; border: 3px solid var(--line); border-radius: 12px;
  background: var(--canvas-2); font-family: var(--body); font-weight: 600; font-size: .98rem; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--accent); }
.contact-line { display: flex; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 2px solid var(--line-dim); }
.contact-line .k { font-family: var(--round); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); min-width: 90px; }
.contact-line .v { font-family: var(--round); font-size: 1.25rem; font-weight: 800; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 4px solid var(--line); padding-block: 44px; background: var(--canvas-2); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.site-footer .brand { font-size: 1.7rem; }
.site-footer .small { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { font-family: var(--round); font-weight: 700; font-size: .92rem; color: var(--ink); }
.footer-nav a:hover { color: var(--yellow); }

/* ---------- utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.hide { display: none !important; }
.count-note { font-family: var(--round); font-weight: 700; color: var(--ink-soft); font-size: .9rem; margin-bottom: 18px; text-align: center; }

/* ---------- two filter boxes (Style | Format) + genre chip ---------- */
.filter-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.filter-box { background: var(--canvas-2); border: 3px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.filter-box-title { display: block; font-family: var(--comic); letter-spacing: .04em; font-size: 1.25rem; color: var(--yellow); margin-bottom: 12px; }
.filter-box .filters { justify-content: flex-start; margin-bottom: 0; gap: 9px; }
.filter-ic { margin-right: .4em; font-size: 1.02em; }
.card-genre { display: inline-block; margin: 8px 6px 0 0; font-family: var(--round); font-weight: 700; font-size: .68rem; color: var(--ink-soft); border: 2px solid var(--line-dim); border-radius: 999px; padding: .12em .7em; }
@media (max-width: 720px) { .filter-boxes { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- lightbox popup ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: flex; background: rgba(8,6,12,.94); backdrop-filter: blur(6px); }
.lb.hide { display: none; }
.lb-x { position: absolute; top: 14px; right: 18px; z-index: 5; background: #161018; color: #fff; border: 3px solid var(--line); width: 46px; height: 46px; border-radius: 999px; font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 #000; }
.lb-x:hover { background: var(--accent); }
.lb-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px clamp(48px,7vw,84px); min-width: 0; }
.lb-imgwrap { display: flex; align-items: center; justify-content: center; max-height: 92vh; max-width: 100%; overflow: auto; border-radius: 12px; }
.lb-img { max-height: 86vh; max-width: 100%; object-fit: contain; border: 4px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); cursor: zoom-in; background: var(--canvas-2); }
.lb-imgwrap.zoom { align-items: flex-start; }
.lb-imgwrap.zoom .lb-img { max-height: none; max-width: none; width: min(1000px, 92vw); height: auto; cursor: zoom-out; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; background: #161018; color: #fff; border: 3px solid var(--line); width: 52px; height: 52px; border-radius: 999px; font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 #000; transition: background .12s; }
.lb-nav:hover { background: var(--accent); }
.lb-nav:active { transform: translateY(-50%) translate(2px,2px); box-shadow: 1px 1px 0 #000; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-info { width: 360px; flex-shrink: 0; background: var(--canvas-2); border-left: 4px solid var(--line); padding: 64px 28px 28px; overflow-y: auto; }
.lb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lb-chip { font-family: var(--round); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; background: var(--canvas-3); color: var(--ink); border: 2px solid var(--line); border-radius: 999px; padding: .25em .7em; }
.lb-chip.star { background: var(--yellow); color: #161018; }
.lb-title { font-family: var(--round); font-weight: 800; font-size: 1.7rem; color: var(--ink); margin-bottom: .35em; }
.lb-blurb { color: var(--ink-soft); font-weight: 600; font-size: .95rem; margin-bottom: 16px; }
.lb-quote { font-family: var(--round); font-weight: 800; color: var(--ink); font-size: 1.05rem; line-height: 1.35; border-left: 4px solid var(--accent); padding-left: 12px; margin-bottom: 16px; }
.lb-quote.hide { display: none; }
.lb-quote cite { display: block; font-family: var(--body); font-weight: 700; font-size: .8rem; color: var(--ink-soft); font-style: normal; margin-top: .5em; }
.lb-counter { font-family: var(--round); font-weight: 700; color: var(--ink-soft); font-size: .85rem; margin-bottom: 12px; }
.lb-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.lb-thumb { width: 52px; height: 52px; padding: 0; border: 2.5px solid var(--line-dim); border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--canvas-3); }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb.active { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.lb-hint { font-family: var(--round); font-weight: 700; color: var(--ink-soft); font-size: .78rem; }

@media (max-width: 820px) {
  .lb { flex-direction: column; }
  .lb-stage { padding: 56px 52px 12px; max-height: 62vh; }
  .lb-img { max-height: 54vh; }
  .lb-info { width: auto; border-left: 0; border-top: 4px solid var(--line); padding: 18px 22px 28px; max-height: 38vh; }
  .lb-imgwrap.zoom .lb-img { width: 94vw; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .detail-hero, .contact-grid, .ba { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 14px; }
  .phase-num { font-size: 3.4rem; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: var(--canvas); flex-direction: column;
         padding: 22px var(--gutter); border-bottom: 4px solid var(--line); transform: translateY(-160%);
         transition: transform .25s; gap: 18px; }
  .nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}
