/* ═══════════════════════════════════════════════════════════════
   Success Story Detail – Shared Styles
   Each view sets :root { --brand-accent, --brand-accent-10,
   --brand-accent-20, --brand-accent-50 } via inline <style>.
   ═══════════════════════════════════════════════════════════════ */

::selection { background: var(--brand-accent); color: #000; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { background: var(--brand-accent); border-radius: 10px; }

.section-padding { padding: 120px 0; }

.accent-gradient {
  background: linear-gradient(135deg, var(--brand-accent) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.4s, border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  border-radius: 12px;
}
.glass-card:hover {
  border-color: var(--brand-accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -20px var(--brand-accent-20);
}

.icon-circle {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  background: var(--brand-accent-10);
  color: var(--brand-accent);
  border: 1px solid var(--brand-accent-20);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; justify-content: center;
  position: relative; padding: 148px 24px 48px;
}
.hero__inner { max-width: 1280px; margin: 0 auto; width: 100%; position: relative; z-index: 10; }
.hero__label { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.hero__label-line { display: block; height: 1px; width: 48px; background: var(--brand-accent); flex-shrink: 0; }
.hero__label-text { font-size: 11px; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; color: var(--brand-accent); }
.hero__title { font-size: clamp(3rem,8vw,7rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; color: #fff; margin-bottom: 48px; }
.hero__desc { font-size: 20px; color: #94a3b8; line-height: 1.7; font-weight: 300; margin-bottom: 32px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 16px; }
.badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
  color: #fff; border: 1px solid rgba(255,255,255,0.1); padding: 8px 16px;
  border-radius: 9999px; transition: border-color 0.2s; cursor: default;
}
.badge:hover { border-color: var(--brand-accent-50); }
.hero__image-wrap {
  aspect-ratio: 16/9; background: #200520; border-radius: 2px; overflow: hidden;
  position: relative; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.05);
}
.hero__image-wrap img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.6;
  transform: scale(1); transition: opacity 1s ease, transform 1s ease; display: block;
}
.hero__image-wrap:hover img { opacity: 1; transform: scale(1.05); }
.hero__image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,rgba(32,5,32,0.82),transparent);
  pointer-events: none;
}
.hero__scroll { position: absolute; bottom: 40px; right: 48px; display: none; }
@media (min-width:768px) { .hero__scroll { display: block; } .hero__grid { grid-template-columns: 5fr 7fr; } }
.hero__scroll-text {
  font-size: 10px; letter-spacing: 0.5em; text-transform: uppercase; font-weight: 700;
  color: #475569; writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg);
  padding: 40px 12px 40px 0; border-right: 1px solid rgba(255,255,255,0.1);
}
.hero__grid { display: grid; gap: 48px; align-items: end; }

/* ── Overview ─────────────────────────────────────────────────── */
.bg-dark-custom { background-color: #200520; }
.overview-section { color: #ffffff; }
.text-secondary { color: #94a3b8 !important; line-height: 1.6; }
.img-wrapper img { width: 100%; object-fit: cover; }
.landscape-img img { aspect-ratio: 4/3; margin-top: 20%; }
.portrait-img img { aspect-ratio: 3/4; }
@media (max-width:768px) { .landscape-img { margin-top: 0; } }
.divider { height: 1px; background: rgba(255,255,255,0.05); }

/* ── Role ─────────────────────────────────────────────────────── */
.role { background: #200520; }
.role__header { display: flex; flex-direction: column; gap: 32px; margin-bottom: 80px; }
@media (min-width:768px) { .role__header { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.role__label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; color: var(--brand-accent); margin-bottom: 16px; }
.role__heading { font-size: clamp(2rem,4vw,3rem); font-weight: 700; color: #fff; }
.role__sub { margin-top: 24px; max-width: 480px; font-size: 15px; line-height: 1.7; }
.role__platforms { display: flex; gap: 32px; margin-bottom: 16px; flex-shrink: 0; }
.role__platform { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.role__platform i { font-size: 30px; color: #334155; transition: color 0.2s; }
.role__platform:hover i { color: var(--brand-accent); }
.role__platform-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; font-weight: 700; color: #64748b; }
.role__grid { display: grid; gap: 16px; }
@media (min-width:768px) { .role__grid { grid-template-columns: 1fr 1fr; } }
.role__card { padding: 40px; }
.role__card-bar { display: block; width: 32px; height: 2px; background: var(--brand-accent); margin-bottom: 24px; }
.role__card-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.role__card-text { color: #94a3b8; line-height: 1.75; font-size: 15px; }

/* ── Impact ───────────────────────────────────────────────────── */
.impact__header { text-align: center; margin-bottom: 96px; }
.impact__label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; color: var(--brand-accent); margin-bottom: 16px; }
.impact__heading { font-size: clamp(2.5rem,5vw,4rem); font-weight: 700; color: #fff; }
.impact__grid { display: grid; gap: 24px; }
@media (min-width:640px) { .impact__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width:1024px) { .impact__grid { grid-template-columns: repeat(4,1fr); } }
.impact__card { padding: 32px; text-align: left; border-top: 2px solid var(--brand-accent-20); }
.impact__card-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.impact__card-text { font-size: 12px; line-height: 1.75; color: #94a3b8; }

/* ── Tech badges ──────────────────────────────────────────────── */
.tech-badge { background: transparent; color: #ffffff; font-size: 0.7rem; letter-spacing: 1px; border-color: #334155 !important; }

/* ── Image stack (Curly-Tales style) ──────────────────────────── */
.image-stack-container { padding-bottom: 50px; }
.main-img { width: 100%; display: block; }
.overlap-img-wrapper { position: absolute; width: 35%; bottom: -10%; left: -5%; z-index: 2; }
@media (max-width:991px) { .overlap-img-wrapper { width: 40%; bottom: -5%; left: 0; } .image-stack-container { margin-bottom: 40px; } }

/* ── CTA Section ──────────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg,#200520 0%,#050505 100%); padding: 80px 24px; }
.cta-form input, .cta-form textarea, .cta-form select {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; border-radius: 8px; padding: 12px 16px; width: 100%;
  margin-bottom: 16px; outline: none; font-family: var(--font-main);
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: #64748b; }
.cta-form input:focus, .cta-form textarea:focus, .cta-form select:focus { border-color: var(--brand-accent); }
.cta-form select option { background: #050505; color: #fff; }
.btn-accent {
  background: var(--brand-accent); color: #000; font-weight: 700;
  border: none; padding: 14px 36px; border-radius: 8px; cursor: pointer;
  transition: opacity 0.2s; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.85rem;
}
.btn-accent:hover { opacity: 0.85; }

/* ── Curly-Tales-specific extras ──────────────────────────────── */
.label-accent { color: var(--accent-yellow); font-size: 0.8rem; letter-spacing: 2px; font-weight: bold; }
.line { display: inline-block; width: 30px; height: 2px; background: var(--accent-yellow); vertical-align: middle; margin-right: 10px; }
.text-secondary-muted { color: var(--text-muted); }
.icon-box {
  width: 45px; height: 45px; border: 1px solid rgba(251,176,52,0.3); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-yellow); background: rgba(251,176,52,0.05);
}
.email-link { color: #9cdada; text-decoration: none; font-size: 1.2rem; }
@keyframes pulse-glow { from { transform: scale(1); opacity: 0.1; } to { transform: scale(1.2); opacity: 0.2; } }
