/* =========================================================
   CRTV+ — Creatives Ministry (matches site theme)
   Cleaned & organized — preserves current visuals
   ========================================================= */

/* ---------- Theme tokens & type scale ---------- */
:root{
  --ink: #0f172a;
  --muted: #5b6b7f;
  --surface: #f6f9fc;
  --line: rgba(15, 23, 42, .08);
  --accent: #0a4db6;
  --accent-soft: rgba(10, 77, 182, .10);
  --radius-lg: 20px;

  /* typography scale (site-wide sync) */
  --h1-size: clamp(36px, 5vw, 60px);
  --h2-size: clamp(32px, 4vw, 48px);
}

/* ---------- Page container sizing for this page ---------- */
.creatives-page .min-container{
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(32px, 7.5vw, 80px);
}

/* =========================================================
   HERO (site-consistent: dark film + dot field)
   ========================================================= */
.creatives-page .min-hero{
  position: relative;
  min-height: clamp(62vh, 72vh, 78vh);
  padding: clamp(86px, 14vh, 120px) 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.creatives-page .min-hero .min-hero-bg{
  position: absolute; inset: 0; z-index: -2;
  background: #000 center/cover no-repeat;
  background-image: var(--min-hero-image, url('/images/hero-about.jpg'));
  transform: scale(1.02);
}
.creatives-page .min-hero::before{
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(12,18,28,.92);
}
.creatives-page .min-hero::after{
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0);
  background-size: 20px 20px; opacity: .45;
}

/* Hero inner width (edge-to-edge like other pages) */
.creatives-page .min-hero .min-container{
  width: 100%;
  max-width: 1280px;
  padding-inline: 0; /* hero aligns with site container edges */
}

/* Hero layout */
.creatives-page .min-hero .hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.creatives-page .min-hero .section-tagline{
  display: inline-block;
  margin-bottom: 12px;
  font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  color: #dbeafe; font-weight: 600;
}
.creatives-page .min-hero .hero-content h1{
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  font-size: clamp(44px, 6.5vw, 72px);
  color: #fff;
}
/* Single-line on desktop, wrap on mobile */
@media (min-width: 1000px){
  .creatives-page .min-hero .hero-content h1{ white-space: nowrap; }
  .creatives-page .min-hero .hero-content h1 .accent{ display: inline; }
}
@media (max-width: 999px){
  .creatives-page .min-hero .hero-content h1{ white-space: normal; }
}

/* Hero lead: full column width */
.creatives-page .min-hero .hero-content .lead{
  color: rgba(255,255,255,.9);
  max-width: none;
  width: 100%;
}

/* Right glass card */
.creatives-page .min-hero .hero-aside{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  border-radius: 20px;
  padding: clamp(18px, 2.6vw, 28px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  max-width: 640px;
}
.creatives-page .min-hero .hero-aside p{ margin: 0; line-height: 1.6; }

/* Stack the hero on mobile */
@media (max-width: 900px){
  .creatives-page .min-hero .hero-grid{ grid-template-columns: 1fr; }
  .creatives-page .min-hero .hero-aside{ order: 2; }
}

/* =========================================================
   ROUNDED WHITE SHELL under hero + section spacing
   ========================================================= */
.crtv-shell.section.alt{
  position: relative;
  background: var(--surface);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: -40px; /* tuck under hero curve */
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
}

/* Section spacing */
.crtv-shell .stack-block{
  padding: clamp(56px, 7vw, 84px) 0;
}

/* =========================================================
   OBJECTIVES (3 x 2) — modern cards
   ========================================================= */
.obj-head{ margin-bottom: 16px; }
.obj-head h2{
  margin: 6px 0 2px;
  letter-spacing: -.6px;
  font-size: clamp(28px, 3.2vw, 40px);
}
.obj-head h2 span{ color: var(--accent); }

.obj-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 2.8vw, 28px);
}

/* Card */
.obj-card{
  position: relative;
  padding: clamp(22px, 2.4vw, 28px);
  background:
    linear-gradient(#fff,#fff) padding-box,
    radial-gradient(140% 160% at 0% 0%, rgba(10,53,91,.12), transparent 60%) border-box;
  border: 1px solid transparent;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
  color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease;
  isolation: isolate;
  overflow: hidden; /* clip decorative glow */
}
.obj-card::after{
  content:""; position:absolute; right:-18px; bottom:-18px; width:80px; height:80px;
  background: radial-gradient(closest-side, rgba(10,77,182,.14), transparent 70%);
  filter: blur(6px);
  z-index:-1;
}
.obj-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0,0,0,.12);
}
.obj-card .num{
  --s: 38px;
  width: var(--s); height: var(--s);
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10,77,182,.16), rgba(10,77,182,.10));
  color: var(--accent); font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 14px rgba(10,77,182,.16);
  margin-bottom: 12px;
}
.obj-card h3{
  margin: 2px 0 10px;
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: -.2px;
}
.obj-card h3::after{
  content:""; display:block; width:44px; height:3px; border-radius:2px;
  background: var(--accent-soft);
  margin-top: 10px;
}
.obj-card p{ margin: 10px 0 0; color: var(--muted); line-height: 1.75; }

/* =========================================================
   TEAM — header (like home) + tall horizontal cards
   ========================================================= */
.team-head{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 12px;
}
.team-head-left h2{
  margin: 6px 0 2px;
  letter-spacing: -.6px;
  font-size: clamp(28px, 3.2vw, 40px);
}
.team-head-left h2 span{ color: var(--accent); }

.team-controls{ display: flex; gap: 10px; }
.round-nav{
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.round-nav:disabled{ opacity: .45; cursor: not-allowed; }

.team-track{
  display: flex; gap: clamp(16px, 2.8vw, 24px);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.team-track::-webkit-scrollbar{ height: 8px; }
.team-track::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.15); border-radius: 8px; }

.member-card{
  flex: 0 0 clamp(210px, 22vw, 260px);
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 10px;
}
.member-card .photo{
  width: 100%; aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: #ddd center/cover no-repeat;
  box-shadow: 0 16px 32px rgba(0,0,0,.14);
}
.member-card .meta{ padding: 2px 2px 0; }
.member-card .name{
  margin: 0 0 4px; font-size: 16px; font-weight: 700;
  letter-spacing: -.2px; color: var(--ink);
}
.member-card .tags{
  margin: 0 0 6px; font-size: 12px; color: #6b7c90; letter-spacing: .02em;
}
.member-card .desc{
  margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px;
}
.scroll-hint{
  display: flex; align-items: center; gap: 8px;
  color: #6b7c90; font-size: 13px; margin-top: 12px;
}

/* =========================================================
   MISSION + VISION band
   ========================================================= */
.mv-head{ margin-bottom: 16px; }
.mv-head h2{
  margin: 6px 0 2px;
  letter-spacing: -.6px;
  font-size: clamp(28px, 3.2vw, 40px);
}
.mv-head h2 span{ color: var(--accent); }

.mv-grid{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 3vw, 32px);
}
.mv-card{
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 22px;
  background:
    linear-gradient(#fff,#fff) padding-box,
    radial-gradient(120% 160% at 0% 0%, rgba(10,53,91,.10), transparent 60%) border-box;
  border: 1px solid transparent;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}
.mv-card .mv-pill{
  display: inline-block;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
  padding: 6px 10px; border-radius: 999px; font-weight: 700;
  margin-bottom: 10px;
}
.mv-card h3{ margin: 2px 0 10px; font-size: clamp(18px, 2vw, 22px); }
.mv-card p{ color: var(--muted); line-height: 1.8; }

/* =========================================================
   DARK CTA (hero-style)
   ========================================================= */
.creatives-page .crtv-cta{
  position: relative; color: #fff;
  padding: clamp(80px,14vh,120px) 0;
  text-align: center;
  background-color: #0b141e; /* ensure solid base under overlays */
  overflow: hidden;
}
.creatives-page .crtv-cta .dark-cta-bg{
  position: absolute; inset: 0; z-index: -2;
  background: #000 center/cover no-repeat;
  background-image: var(--cta-image, url('/images/hero-about.jpg'));
  transform: scale(1.02);
}
.creatives-page .crtv-cta::before{
  content:""; position:absolute; inset:0; z-index:-1; background:rgba(12,18,28,.92);
}
.creatives-page .crtv-cta::after{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0);
  background-size: 20px 20px; background-repeat: repeat;
}
.creatives-page .crtv-cta h2{
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -.6px;
  margin-bottom: 10px;
}
.creatives-page .crtv-cta h2 span{ color: var(--accent); }

/* =========================================================
   SEAM & OVERFLOW FIX (keep last)
   ========================================================= */
html, body{ overflow-x: hidden; }
.creatives-page .min-hero,
.creatives-page .crtv-cta{ overflow: hidden; }

/* White rounded section above CTA; CTA tucks under curve */
.creatives-page .crtv-shell.section.alt{
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  box-shadow: none; /* avoid faint hairline at seam */
}
.creatives-page .crtv-cta{
  position: relative;
  z-index: 1;                     /* behind the white pane */
  margin-top: -88px;              /* overlap under the curve */
  padding-top: calc(clamp(80px,14vh,120px) + 88px);
}
/* Extend CTA overlays slightly past top edge to avoid rounding gaps */
.creatives-page .crtv-cta::before,
.creatives-page .crtv-cta::after{
  top: -2px; left: 0; right: 0; bottom: 0;
}

/* =========================================================
   CORNER BLOBS ONLY (center stays clean/white)
   ========================================================= */
.crtv-shell.section.alt{
  background: var(--surface);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.crtv-shell .stack-block{
  position: relative;
  z-index: 1; /* content above decorations */
}

/* Top-left soft glow */
.crtv-shell.section.alt::before{
  content: "";
  position: absolute;
  left: -140px; top: -140px;
  width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(10,77,182,.16), transparent 68%);
  filter: blur(3px);
  pointer-events: none;
  z-index: 0;
}

/* Bottom-right soft glow (ensured visible) */
.crtv-shell.section.alt::after{
  content: "";
  position: absolute;
  right: -140px; bottom: -140px;
  width: 700px; height: 700px;
  background: radial-gradient(closest-side, rgba(10,77,182,.18), transparent 70%);
  filter: blur(3px);
  pointer-events: none;
  z-index: 0;
}

/* Mobile/tablet tuning */
@media (max-width: 900px){
  .crtv-shell.section.alt::before{
    left: -120px; top: -120px;
    width: 480px; height: 480px;
    background: radial-gradient(closest-side, rgba(10,77,182,.14), transparent 70%);
    filter: blur(2.5px);
  }
  .crtv-shell.section.alt::after{
    right: -120px; bottom: -120px;
    width: 540px; height: 540px;
    background: radial-gradient(closest-side, rgba(10,77,182,.16), transparent 68%);
    filter: blur(2.5px);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px){
  .obj-grid{ grid-template-columns: repeat(2, 1fr); }
  .mv-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 900px){
  /* comfy gutters on small screens (page + hero) */
  .creatives-page .min-container,
  .creatives-page .min-hero .min-container{
    padding-inline: clamp(22px, 7.5vw, 34px) !important;
  }
}
@media (max-width: 720px){
  .crtv-shell.section.alt{
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: -40px;
  }
  .obj-grid{ grid-template-columns: 1fr; }
  .member-card{ flex-basis: clamp(200px, 64vw, 260px); }
  .team-track{ padding-inline: 8px; } /* keep scroller off edges */
}

/* =========================================================
   MOTION REDUCTION
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  .obj-card, .mv-card, .member-card, .round-nav{ transition: none !important; }
}

/* =========================================================
   (Legacy) Alternative hero selector kept for safety
   ========================================================= */
.creatives-hero{ /* unused by current markup, preserved intentionally */
  position: relative;
  min-height: clamp(62vh, 72vh, 78vh);
  display: flex; align-items: center;
  padding: clamp(88px, 14vh, 120px) 0 120px;
  overflow: hidden;
}
.creatives-hero .min-hero-bg{
  position:absolute; inset:0; z-index:-2;
  background:#000 center/cover no-repeat;
  background-image: var(--min-hero-image, url('/images/hero-about.jpg'));
  transform: scale(1.02);
}
.creatives-hero::before{ content:""; position:absolute; inset:0; z-index:-1; background:rgba(12,18,28,.92); }
.creatives-hero::after{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.075) 1px, transparent 0),
    radial-gradient(120% 120% at 15% 40%, rgba(0,0,0,.24), transparent 60%),
    radial-gradient(120% 120% at 85% 60%, rgba(0,0,0,.28), transparent 65%);
  background-size: 20px 20px, 100% 100%, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat;
}
