/*
Theme Name: Castain Momentum
Theme URI: https://www.davidcastain.com/
Author: OpenAI for Dr. David Castain
Description: A cinematic, conversion-focused personal-brand WordPress theme built around Dr. David Castain's brand architecture. Original implementation inspired by premium transformation and event websites; does not include third-party proprietary code or media.
Version: 1.3.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: castain-momentum
*/

:root {
  --dc-bg: #070707;
  --dc-bg-soft: #111111;
  --dc-paper: #f2efe8;
  --dc-ink: #0b0b0b;
  --dc-text: #f8f7f2;
  --dc-muted: #b6b6b0;
  --dc-line: rgba(255,255,255,.18);
  --dc-accent: #d7b56d;
  --dc-accent-2: #f0d8a2;
  --dc-max: 1440px;
  --dc-radius: 20px;
  --dc-shadow: 0 24px 80px rgba(0,0,0,.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dc-bg);
  color: var(--dc-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.admin-bar .dc-site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.dc-container { width: min(calc(100% - 40px), var(--dc-max)); margin-inline: auto; }
.dc-section { position: relative; padding: clamp(72px, 9vw, 150px) 0; overflow: clip; }
.dc-section--paper { background: var(--dc-paper); color: var(--dc-ink); }
.dc-section--soft { background: var(--dc-bg-soft); }
.dc-kicker { margin: 0 0 18px; font-size: 12px; line-height: 1; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; }
.dc-display { margin: 0; font-size: clamp(54px, 8vw, 128px); line-height: .86; letter-spacing: -.065em; font-weight: 850; text-transform: uppercase; }
.dc-h2 { margin: 0; font-size: clamp(46px, 6vw, 92px); line-height: .94; letter-spacing: -.055em; font-weight: 850; text-transform: uppercase; }
.dc-h3 { margin: 0; font-size: clamp(30px, 3.4vw, 58px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.dc-lede { max-width: 790px; margin: 28px 0 0; font-size: clamp(19px, 2vw, 31px); line-height: 1.34; letter-spacing: -.025em; }
.dc-body { font-size: 18px; line-height: 1.65; color: var(--dc-muted); }
.dc-section--paper .dc-body { color: #4c4c48; }
.dc-rule { border: 0; border-top: 1px solid var(--dc-line); margin: 44px 0; }

.dc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: .25s ease;
}
.dc-btn:hover { transform: translateY(-2px); background: #fff; color: #000; border-color: #fff; }
.dc-btn--gold { background: var(--dc-accent); border-color: var(--dc-accent); color: #0b0b0b; }
.dc-btn--dark { background: #0b0b0b; border-color: #0b0b0b; color: #fff; }
.dc-btn--outline-dark { border-color: rgba(0,0,0,.3); color: #0b0b0b; }
.dc-btn--outline-dark:hover { background: #0b0b0b; color: #fff; }
.dc-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }

/* Header */
.dc-site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 82px;
  z-index: 1000;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.dc-site-header.is-scrolled { background: rgba(5,5,5,.84); backdrop-filter: blur(18px); border-color: rgba(255,255,255,.1); }
.dc-header-inner { height:100%; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:26px; }
.dc-brand { font-size: 18px; font-weight: 900; letter-spacing: -.04em; white-space: nowrap; }
.dc-brand span { color: var(--dc-accent); }
.dc-nav { display:flex; justify-content:center; gap:28px; align-items:center; font-size:12px; letter-spacing:.09em; text-transform:uppercase; font-weight:800; }
.dc-nav a { opacity:.88; transition:opacity .2s ease; }
.dc-nav a:hover { opacity:1; }
.dc-nav .menu { list-style:none; margin:0; padding:0; display:flex; gap:28px; }
.dc-header-cta { display:flex; align-items:center; gap:12px; }
.dc-mobile-toggle { display:none; background:none; color:#fff; border:0; font-size:28px; }

/* Hero */
.dc-hero { min-height: 100svh; position:relative; display:flex; align-items:flex-end; overflow:hidden; background:#0a0a0a; }
.dc-hero-media { position:absolute; inset:0; }
.dc-hero-media video, .dc-hero-media img { width:100%; height:100%; object-fit:cover; }
.dc-hero-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.18) 40%, rgba(0,0,0,.86) 100%), linear-gradient(90deg, rgba(0,0,0,.46), transparent 62%); }
.dc-hero-fallback { position:absolute; inset:0; background: radial-gradient(circle at 68% 26%, rgba(215,181,109,.22), transparent 22%), linear-gradient(135deg,#090909,#1c1c1c 52%,#050505); }
.dc-hero-content { position:relative; z-index:2; width:100%; padding: 170px 0 clamp(72px, 8vw, 118px); }
.dc-hero .dc-display { max-width: 1100px; }
.dc-hero-sub { max-width:650px; font-size:clamp(18px,2vw,27px); line-height:1.34; margin-top:25px; }
.dc-hero-id { margin-top:30px; display:flex; gap:12px 22px; flex-wrap:wrap; color:#d7d7d2; font-size:12px; text-transform:uppercase; letter-spacing:.12em; font-weight:800; }
.dc-scroll-cue { position:absolute; right:28px; bottom:28px; z-index:3; writing-mode:vertical-rl; text-transform:uppercase; letter-spacing:.15em; font-size:10px; opacity:.7; }

/* Featured */
.dc-featured-wrap { margin-top:-42px; position:relative; z-index:6; }
.dc-featured { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr); border:1px solid rgba(255,255,255,.12); background:#101010; border-radius:18px; overflow:hidden; box-shadow:var(--dc-shadow); }
.dc-featured-main { padding:34px; }
.dc-featured-side { min-height:260px; background: linear-gradient(135deg,#292929,#0b0b0b); position:relative; overflow:hidden; }
.dc-featured-side img { width:100%; height:100%; object-fit:cover; opacity:.78; }
.dc-featured-meta { display:flex; flex-wrap:wrap; gap:12px 26px; color:#aaa; font-size:13px; margin-top:20px; }

/* Horizontal cards */
.dc-rail-header { display:flex; justify-content:space-between; gap:30px; align-items:flex-end; margin-bottom:38px; }
.dc-rail-controls { display:flex; gap:8px; }
.dc-circle-btn { width:50px; height:50px; border-radius:50%; border:1px solid rgba(255,255,255,.2); color:#fff; background:transparent; font-size:22px; }
.dc-section--paper .dc-circle-btn { border-color:rgba(0,0,0,.2); color:#000; }
.dc-card-rail { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(320px, 40vw); gap:18px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:12px; scrollbar-width:none; }
.dc-card-rail::-webkit-scrollbar { display:none; }
.dc-exp-card { position:relative; min-height:560px; border-radius:var(--dc-radius); overflow:hidden; scroll-snap-align:start; background:#191919; border:1px solid rgba(255,255,255,.1); }
.dc-exp-card-bg { position:absolute; inset:0; background: linear-gradient(160deg,#292929,#070707); }
.dc-exp-card-bg img { width:100%; height:100%; object-fit:cover; transition:transform .8s cubic-bezier(.2,.8,.2,1); }
.dc-exp-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.83)); }
.dc-exp-card:hover .dc-exp-card-bg img { transform:scale(1.04); }
.dc-exp-card-content { position:absolute; inset:auto 0 0 0; z-index:2; padding:30px; }
.dc-exp-card .dc-kicker { opacity:.85; }
.dc-exp-card h3 { margin:0; font-size:clamp(32px,3.2vw,54px); line-height:.98; letter-spacing:-.045em; text-transform:uppercase; }
.dc-exp-card p { color:#d0d0ca; max-width:430px; line-height:1.5; }
.dc-text-link { display:inline-flex; gap:10px; align-items:center; margin-top:15px; font-size:12px; letter-spacing:.1em; text-transform:uppercase; font-weight:800; }
.dc-text-link::after { content:"→"; transition:transform .2s ease; }
.dc-text-link:hover::after { transform:translateX(4px); }

/* Thesis */
.dc-thesis { min-height:75vh; display:grid; align-items:center; }
.dc-thesis .dc-h2 { max-width:1100px; }

/* Pillars */
.dc-pillars { display:grid; grid-template-columns:minmax(240px,.42fr) minmax(0,1fr); gap:44px; margin-top:54px; }
.dc-pillar-tabs { display:flex; flex-direction:column; border-top:1px solid rgba(0,0,0,.16); }
.dc-pillar-tab { border:0; border-bottom:1px solid rgba(0,0,0,.16); background:none; text-align:left; padding:19px 0; font-size:18px; font-weight:800; display:flex; justify-content:space-between; }
.dc-pillar-tab::after { content:"+"; }
.dc-pillar-tab.is-active::after { content:"—"; }
.dc-pillar-stage { position:relative; min-height:650px; border-radius:var(--dc-radius); overflow:hidden; background:#191919; color:#fff; }
.dc-pillar-panel { position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity .35s ease; }
.dc-pillar-panel.is-active { opacity:1; visibility:visible; }
.dc-pillar-panel img { width:100%; height:100%; object-fit:cover; }
.dc-pillar-panel::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.78)); }
.dc-pillar-copy { position:absolute; left:34px; right:34px; bottom:34px; z-index:2; max-width:700px; }
.dc-pillar-copy h3 { font-size:clamp(38px,4vw,68px); text-transform:uppercase; margin:0; line-height:.95; letter-spacing:-.05em; }

/* Testimonials */
.dc-quote-card { min-height:600px; display:grid; grid-template-rows:1fr auto; background:#141414; border-radius:var(--dc-radius); overflow:hidden; scroll-snap-align:start; border:1px solid rgba(255,255,255,.1); }
.dc-quote-img { min-height:330px; background:linear-gradient(135deg,#303030,#080808); }
.dc-quote-img img { width:100%; height:100%; object-fit:cover; }
.dc-quote-copy { padding:28px; }
.dc-quote { font-size:20px; line-height:1.45; margin:0 0 24px; }
.dc-quote-name { font-weight:900; }
.dc-quote-role { color:#aaa; font-size:13px; margin-top:5px; }

/* Story */
.dc-story { min-height:920px; background:#050505; }
.dc-story-grid { display:grid; grid-template-columns:1fr 1fr; gap:1px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.12); }
.dc-story-half { min-height:680px; background:#0c0c0c; position:relative; padding:34px; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; }
.dc-story-half::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent,rgba(0,0,0,.82)); }
.dc-story-half > * { position:relative; z-index:2; }
.dc-story-list { list-style:none; padding:0; margin:20px 0 0; color:#c8c8c0; line-height:1.8; }
.dc-access-reveal { padding:90px 0 0; text-align:center; }
.dc-access-reveal .dc-display { font-size:clamp(78px,13vw,190px); color:var(--dc-accent); }

/* Logos */
.dc-logo-marquee { display:flex; gap:60px; align-items:center; overflow:hidden; padding:28px 0; border-top:1px solid rgba(255,255,255,.14); border-bottom:1px solid rgba(255,255,255,.14); }
.dc-logo-track { display:flex; gap:60px; min-width:max-content; animation:dcMarquee 24s linear infinite; }
.dc-logo-word { font-size:clamp(24px,3vw,46px); font-weight:900; letter-spacing:-.04em; opacity:.82; white-space:nowrap; }
@keyframes dcMarquee { to { transform:translateX(-50%); } }

/* Metrics */
.dc-metrics { display:grid; grid-template-columns:repeat(5,1fr); gap:1px; background:rgba(255,255,255,.13); margin-top:50px; border:1px solid rgba(255,255,255,.13); }
.dc-metric { background:#0c0c0c; padding:34px 24px; min-height:210px; display:flex; flex-direction:column; justify-content:space-between; }
.dc-metric-value { font-size:clamp(48px,5vw,82px); line-height:.9; letter-spacing:-.065em; font-weight:900; }
.dc-metric-label { font-size:12px; text-transform:uppercase; letter-spacing:.13em; color:#aaa; }

/* Video/testimonial wall */
.dc-video-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:44px; }
.dc-video-card { aspect-ratio:4/5; background:#171717; border-radius:18px; position:relative; overflow:hidden; border:1px solid rgba(255,255,255,.1); }
.dc-video-card img { width:100%; height:100%; object-fit:cover; }
.dc-video-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 40%,rgba(0,0,0,.9)); }
.dc-video-overlay { position:absolute; z-index:2; inset:auto 24px 24px; }
.dc-play { width:52px; height:52px; border-radius:50%; display:grid; place-items:center; background:#fff; color:#000; font-size:17px; margin-bottom:18px; }

/* Events */
.dc-event-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:44px; }
.dc-event-card { border-radius:20px; overflow:hidden; background:#111; border:1px solid rgba(255,255,255,.1); }
.dc-event-media { aspect-ratio:16/10; background:linear-gradient(135deg,#282828,#090909); }
.dc-event-media img { width:100%; height:100%; object-fit:cover; }
.dc-event-body { padding:28px; }
.dc-event-meta { display:flex; flex-wrap:wrap; gap:10px 20px; color:#aaa; font-size:12px; margin-top:24px; }

/* Coaching */
.dc-split { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:42px; }
.dc-split-card { min-height:560px; border-radius:20px; position:relative; padding:34px; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; background:#161616; border:1px solid rgba(255,255,255,.1); }
.dc-split-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent,rgba(0,0,0,.86)); }
.dc-split-card > * { position:relative; z-index:2; }
.dc-split-card ul { padding-left:20px; color:#d2d2cc; line-height:1.8; }

/* Programs */
.dc-filter-row { display:flex; gap:8px; overflow:auto; padding-bottom:10px; margin:34px 0; }
.dc-filter { border:1px solid rgba(0,0,0,.2); background:transparent; border-radius:999px; padding:12px 18px; font-size:12px; text-transform:uppercase; letter-spacing:.1em; font-weight:800; white-space:nowrap; }
.dc-filter.is-active { background:#0b0b0b; color:#fff; border-color:#0b0b0b; }
.dc-program-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.dc-program { min-height:440px; border:1px solid rgba(0,0,0,.12); border-radius:18px; padding:26px; display:flex; flex-direction:column; justify-content:space-between; background:#fff; }
.dc-program-tag { font-size:11px; letter-spacing:.1em; text-transform:uppercase; font-weight:800; color:#666; }
.dc-program h3 { font-size:35px; line-height:1; letter-spacing:-.045em; margin:0; text-transform:uppercase; }

/* World archive preview */
.dc-world-grid { display:grid; grid-template-columns:2fr 1fr 1fr; grid-auto-rows:260px; gap:12px; margin-top:42px; }
.dc-world-card { background:#181818; border-radius:16px; overflow:hidden; position:relative; border:1px solid rgba(255,255,255,.1); }
.dc-world-card:nth-child(1) { grid-row:span 2; }
.dc-world-card:nth-child(4) { grid-column:span 2; }
.dc-world-card img { width:100%; height:100%; object-fit:cover; }
.dc-world-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 50%,rgba(0,0,0,.85)); }
.dc-world-label { position:absolute; z-index:2; left:18px; right:18px; bottom:18px; }
.dc-world-label strong { display:block; font-size:22px; }
.dc-world-label span { font-size:11px; text-transform:uppercase; letter-spacing:.12em; color:#c9c9c4; }

/* Final CTA */
.dc-final { min-height:88vh; display:flex; align-items:flex-end; background:radial-gradient(circle at 70% 20%,rgba(215,181,109,.2),transparent 25%),#070707; position:relative; }
.dc-final::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.84)); }
.dc-final-inner { position:relative; z-index:2; padding:110px 0; }
.dc-final .dc-h2 { max-width:1150px; }

/* Footer */
.dc-footer { background:#050505; padding:80px 0 32px; border-top:1px solid rgba(255,255,255,.12); }
.dc-footer-grid { display:grid; grid-template-columns:1.4fr repeat(5,1fr); gap:34px; }
.dc-footer h4 { font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#8e8e88; margin:0 0 18px; }
.dc-footer ul { list-style:none; margin:0; padding:0; display:grid; gap:11px; font-size:14px; }
.dc-footer-brand { font-size:32px; font-weight:900; letter-spacing:-.05em; }
.dc-footer-bottom { margin-top:70px; padding-top:24px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; color:#777; font-size:12px; }

/* Inner pages */
.dc-page-hero { min-height:72vh; display:flex; align-items:flex-end; padding:160px 0 78px; background:radial-gradient(circle at 72% 24%,rgba(215,181,109,.18),transparent 26%),#080808; }
.dc-page-copy { max-width:860px; }
.dc-content-wrap { width:min(calc(100% - 40px), 980px); margin:0 auto; padding:90px 0; }
.dc-content-wrap > *:first-child { margin-top:0; }
.dc-content-wrap h2 { font-size:45px; letter-spacing:-.04em; }
.dc-content-wrap p { font-size:18px; line-height:1.7; color:#c7c7c2; }

/* Responsive */
@media (max-width: 1100px) {
  .dc-nav { display:none; }
  .dc-mobile-toggle { display:block; }
  .dc-header-inner { grid-template-columns:1fr auto; }
  .dc-header-cta .dc-btn { display:none; }
  .dc-nav.is-open { display:flex; position:fixed; inset:82px 0 auto 0; background:rgba(6,6,6,.98); padding:28px 20px 36px; justify-content:flex-start; }
  .dc-nav.is-open .menu { flex-direction:column; }
  .dc-metrics { grid-template-columns:repeat(3,1fr); }
  .dc-footer-grid { grid-template-columns:repeat(3,1fr); }
  .dc-footer-grid > :first-child { grid-column:1/-1; }
}

@media (max-width: 820px) {
  body.admin-bar .dc-site-header { top:46px; }
  .dc-container { width:min(calc(100% - 28px), var(--dc-max)); }
  .dc-featured { grid-template-columns:1fr; }
  .dc-featured-side { min-height:220px; }
  .dc-card-rail { grid-auto-columns:84vw; }
  .dc-pillars { grid-template-columns:1fr; }
  .dc-pillar-stage { min-height:560px; }
  .dc-story-grid { grid-template-columns:1fr; }
  .dc-story-half { min-height:540px; }
  .dc-metrics { grid-template-columns:1fr 1fr; }
  .dc-video-grid, .dc-program-grid { grid-template-columns:1fr 1fr; }
  .dc-event-grid, .dc-split { grid-template-columns:1fr; }
  .dc-world-grid { grid-template-columns:1fr 1fr; grid-auto-rows:220px; }
  .dc-world-card:nth-child(1), .dc-world-card:nth-child(4) { grid-row:auto; grid-column:auto; }
  .dc-footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 540px) {
  .dc-site-header { height:72px; }
  .dc-nav.is-open { inset:72px 0 auto 0; }
  .dc-hero-content { padding-top:145px; }
  .dc-display { font-size:clamp(52px,16vw,78px); }
  .dc-h2 { font-size:clamp(43px,13vw,66px); }
  .dc-card-rail { grid-auto-columns:90vw; }
  .dc-exp-card { min-height:520px; }
  .dc-metrics, .dc-video-grid, .dc-program-grid, .dc-world-grid, .dc-footer-grid { grid-template-columns:1fr; }
  .dc-pillar-stage { min-height:500px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* v1.1 media-rich enhancements */
.dc-hero-youtube {
  position:absolute;
  top:50%;
  left:50%;
  width:100vw;
  height:56.25vw;
  min-width:177.78vh;
  min-height:100vh;
  transform:translate(-50%,-50%);
  border:0;
  pointer-events:none;
}
.dc-exp-card-bg,
.dc-pillar-panel,
.dc-event-media,
.dc-quote-img,
.dc-world-card,
.dc-split-card,
.dc-story-half {
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.dc-exp-card-bg { transition:transform .8s cubic-bezier(.2,.8,.2,1); }
.dc-exp-card:hover .dc-exp-card-bg { transform:scale(1.045); }
.dc-quote-card { color:inherit; }
.dc-quote-card:hover .dc-quote-img { transform:scale(1.015); }
.dc-quote-img { transition:transform .5s ease; }
.dc-video-card { background-size:cover; background-position:center; background-repeat:no-repeat; cursor:pointer; }
.dc-video-card:hover { transform:translateY(-3px); transition:transform .25s ease; }
.dc-video-modal {
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,.92);
  display:none;
  place-items:center;
  padding:clamp(20px,4vw,60px);
}
.dc-video-modal.is-open { display:grid; }
.dc-video-modal-frame { width:min(1200px,94vw); aspect-ratio:16/9; background:#000; box-shadow:0 30px 100px rgba(0,0,0,.5); }
.dc-video-modal-frame iframe { width:100%; height:100%; border:0; display:block; }
.dc-video-close {
  position:absolute;
  top:18px;
  right:22px;
  width:48px;
  height:48px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:#0b0b0b;
  color:#fff;
  font-size:30px;
  line-height:1;
  cursor:pointer;
}
.dc-thesis { background-attachment:fixed; }
@media (max-width: 782px) {
  .dc-hero-youtube { min-width:220vh; }
  .dc-thesis { background-attachment:scroll; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-hero-youtube { display:none; }
  .dc-exp-card-bg, .dc-video-card { transition:none; }
}


/* v1.2 Elementor integration */
.dc-elementor-content { margin:0; padding:0; width:100%; overflow:hidden; }
.dc-elementor-content .elementor { width:100%; }
.elementor-page .dc-site-header { z-index:9998; }
.elementor-widget-castain-hero,
.elementor-widget-castain-featured,
.elementor-widget-castain-pathways,
.elementor-widget-castain-thesis,
.elementor-widget-castain-pillars,
.elementor-widget-castain-story,
.elementor-widget-castain-metrics,
.elementor-widget-castain-videos,
.elementor-widget-castain-guidance,
.elementor-widget-castain-programs,
.elementor-widget-castain-world,
.elementor-widget-castain-final-cta { margin:0 !important; }
.elementor-widget-castain-hero > .elementor-widget-container,
.elementor-widget-castain-featured > .elementor-widget-container,
.elementor-widget-castain-pathways > .elementor-widget-container,
.elementor-widget-castain-thesis > .elementor-widget-container,
.elementor-widget-castain-pillars > .elementor-widget-container,
.elementor-widget-castain-story > .elementor-widget-container,
.elementor-widget-castain-metrics > .elementor-widget-container,
.elementor-widget-castain-videos > .elementor-widget-container,
.elementor-widget-castain-guidance > .elementor-widget-container,
.elementor-widget-castain-programs > .elementor-widget-container,
.elementor-widget-castain-world > .elementor-widget-container,
.elementor-widget-castain-final-cta > .elementor-widget-container { margin:0 !important; padding:0 !important; }
.dc-elementor-canvas .dc-hero { min-height:100vh; }

/* ==========================================================
   v1.3 Precision pass — closer premium event-site proportions
   ========================================================== */

/* Type: reserve all-caps for small labels, not every headline. */
.dc-display,
.dc-h2,
.dc-exp-card h3,
.dc-program h3 { text-transform:none; }
.dc-display { font-size:clamp(58px,6.3vw,104px); line-height:.92; letter-spacing:-.055em; }
.dc-h2 { font-size:clamp(44px,5.3vw,82px); line-height:.98; letter-spacing:-.05em; }
.dc-btn { text-transform:none; letter-spacing:.015em; font-size:14px; font-weight:750; min-height:50px; padding-inline:24px; }
.dc-text-link { text-transform:none; letter-spacing:.015em; font-size:13px; }
.dc-nav { text-transform:none; letter-spacing:.015em; font-size:14px; font-weight:650; }
.dc-brand { letter-spacing:-.035em; }

/* Announcement + clean header above the hero. */
.dc-announcement { background:var(--dc-accent); color:#0a0a0a; text-align:center; min-height:34px; display:grid; place-items:center; font-size:13px; font-weight:750; }
.dc-announcement a { padding:7px 18px; }
.dc-site-header { position:sticky; top:0; height:78px; background:#050505; border-bottom:1px solid rgba(255,255,255,.08); }
body.admin-bar .dc-site-header { top:32px; }
.dc-site-header.is-scrolled { background:rgba(5,5,5,.96); backdrop-filter:blur(18px); }
.dc-header-inner { gap:34px; }
.dc-nav .menu { gap:34px; }
.dc-header-cta { gap:16px; }
.dc-btn--light { background:#fff; color:#090909; border-color:#fff; }
.dc-btn--light:hover { background:var(--dc-paper); border-color:var(--dc-paper); color:#090909; }
.dc-search-toggle { width:40px; height:40px; display:grid; place-items:center; border:0; background:transparent; color:#fff; font-size:26px; line-height:1; }
.dc-search-panel { position:absolute; inset:78px 0 auto; background:#090909; border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.10); padding:22px 20px; }
.dc-search-panel[hidden] { display:none; }
.dc-search-form { width:min(calc(100% - 40px),900px); margin:auto; display:grid; grid-template-columns:1fr auto; gap:10px; }
.dc-search-form input { min-height:54px; border-radius:999px; border:1px solid rgba(255,255,255,.22); background:#111; color:#fff; padding:0 22px; font-size:17px; }
.dc-search-form button { border:0; border-radius:999px; padding:0 24px; background:#fff; color:#000; font-weight:750; }

/* Framed hero: image/video behaves as a clean visual canvas, not a YouTube embed. */
.dc-hero-shell { background:#050505; padding:24px 0 clamp(72px,7vw,108px); }
.dc-hero-shell .dc-container { width:min(calc(100% - 56px),1450px); }
.dc-hero { min-height:min(78svh,820px); border-radius:24px; align-items:flex-end; box-shadow:0 28px 90px rgba(0,0,0,.35); }
.dc-hero-media::after { background:linear-gradient(180deg,rgba(0,0,0,.10) 0%,rgba(0,0,0,.06) 36%,rgba(0,0,0,.74) 100%),linear-gradient(90deg,rgba(0,0,0,.48),rgba(0,0,0,.05) 65%); }
.dc-hero-content { width:auto; max-width:58%; padding:0; position:absolute; z-index:3; left:clamp(30px,4vw,62px); bottom:clamp(34px,4.5vw,68px); }
.dc-hero .dc-display { max-width:820px; }
.dc-hero-sub { font-size:clamp(19px,1.6vw,27px); margin-top:20px; }
.dc-hero-id { margin-top:24px; text-transform:none; letter-spacing:.015em; font-size:13px; }
.dc-scroll-cue { display:none; }
.dc-hero-youtube { display:none !important; }
.dc-hero-featured { position:absolute; right:clamp(22px,3vw,44px); bottom:clamp(22px,3vw,44px); z-index:4; width:min(340px,31vw); border-radius:18px; overflow:hidden; background:rgba(12,12,12,.94); border:1px solid rgba(255,255,255,.14); box-shadow:0 18px 60px rgba(0,0,0,.36); }
.dc-hero-featured-label { position:absolute; z-index:4; left:14px; top:12px; font-size:11px; text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.dc-live-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#9ee57d; margin-right:6px; }
.dc-hero-featured-image { aspect-ratio:16/8.6; background-size:cover; background-position:center; }
.dc-hero-featured-copy { padding:15px 16px 16px; display:grid; gap:5px; }
.dc-hero-featured-copy strong { font-size:18px; line-height:1.08; letter-spacing:-.025em; }
.dc-hero-featured-copy span { color:#bdbdb8; font-size:12px; line-height:1.35; }
.dc-hero-featured-copy em { font-style:normal; font-size:12px; font-weight:800; margin-top:5px; }

/* Retire old separate-featured presentation if an imported Elementor page still contains it. */
.dc-featured-wrap { margin-top:0; padding-top:28px; }

/* More editorial section rhythm. */
.dc-section { padding:clamp(80px,8vw,132px) 0; }
.dc-thesis { min-height:66vh; }
.dc-exp-card { min-height:530px; }
.dc-exp-card h3 { font-size:clamp(30px,3vw,50px); }
.dc-pillars { gap:54px; }
.dc-pillar-stage { min-height:610px; }
.dc-pillar-copy h3 { text-transform:none; }

/* Story: strong visuals, less list-like, and a visitor-facing bridge. */
.dc-story-half { min-height:620px; }
.dc-story-list { max-width:390px; }
.dc-story-bridge { max-width:830px; margin:28px auto 0; color:#c8c8c2; font-size:clamp(17px,1.5vw,22px); line-height:1.55; }
.dc-access-reveal .dc-display { text-transform:none; }

/* Press logo rail becomes one clean authority punctuation mark. */
.dc-logo-word { text-transform:none; font-size:clamp(21px,2.5vw,39px); }

/* Results: breathe more; less boxed dashboard. */
.dc-metrics { background:transparent; border-top:1px solid rgba(255,255,255,.18); border-bottom:1px solid rgba(255,255,255,.18); gap:0; }
.dc-metric { background:transparent; min-height:180px; border-right:1px solid rgba(255,255,255,.16); padding:34px 28px; }
.dc-metric:last-child { border-right:0; }

/* Research layer. */
.dc-research-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(320px,.7fr); gap:clamp(42px,8vw,120px); align-items:end; }
.dc-research-grid .dc-lede { margin-top:0; font-size:clamp(20px,1.8vw,27px); color:#353531; }
.dc-research-grid .dc-btn { margin-top:28px; }

/* Media hierarchy: one hero video + selectable supporting items. */
.dc-video-feature { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(300px,.65fr); gap:18px; margin-top:44px; }
.dc-video-feature-main { min-height:620px; border-radius:22px; position:relative; overflow:hidden; background-size:cover; background-position:center; border:1px solid rgba(255,255,255,.10); }
.dc-video-feature-main::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.04) 34%,rgba(0,0,0,.88)); }
.dc-video-feature-main .dc-video-overlay { z-index:2; }
.dc-video-feature-main strong { display:block; font-size:clamp(32px,3.4vw,56px); line-height:.98; letter-spacing:-.045em; max-width:760px; }
.dc-video-supporting { display:grid; gap:10px; align-content:start; }
.dc-video-mini { min-height:104px; display:grid; grid-template-columns:132px 1fr; gap:14px; align-items:center; padding:9px; border-radius:14px; background:#181818; border:1px solid rgba(255,255,255,.09); }
.dc-video-mini-thumb { height:86px; border-radius:10px; background-size:cover; background-position:center; }
.dc-video-mini strong { display:block; font-size:15px; line-height:1.2; }
.dc-video-mini small { display:block; color:#92928d; margin-top:6px; font-size:11px; }

/* Speaking/keynotes. */
.dc-event-card { background:#0e0e0e; }
.dc-event-actions { display:flex; flex-wrap:wrap; gap:6px 22px; margin-top:18px; }
.dc-event-actions .dc-text-link { margin-top:0; }

/* Coaching/business still split, but image-first. */
.dc-split-card { min-height:600px; }
.dc-split-card .dc-h3, .dc-split-card h3 { font-size:clamp(36px,3.4vw,58px); }

/* Ideas are ideas/frameworks until they become actual products. */
.dc-program-grid { align-items:stretch; }
.dc-program { padding:0; overflow:hidden; min-height:500px; background:#fff; }
.dc-program--visual { display:grid; grid-template-rows:205px 1fr; }
.dc-program-media { background-size:cover; background-position:center; }
.dc-program-copy { padding:24px; display:flex; flex-direction:column; flex:1; }
.dc-program-copy p { color:#4d4d48; line-height:1.5; }
.dc-program-copy .dc-text-link { margin-top:auto; padding-top:18px; }
.dc-program h3 { font-size:31px; }

/* World is a true visual mosaic, not six equal cards. */
.dc-world-grid { grid-template-columns:repeat(12,1fr); grid-auto-rows:120px; gap:12px; }
.dc-world-card:nth-child(1) { grid-column:span 6; grid-row:span 4; }
.dc-world-card:nth-child(2) { grid-column:span 3; grid-row:span 2; }
.dc-world-card:nth-child(3) { grid-column:span 3; grid-row:span 2; }
.dc-world-card:nth-child(4) { grid-column:span 6; grid-row:span 2; }
.dc-world-card:nth-child(5) { grid-column:span 3; grid-row:span 2; }
.dc-world-card:nth-child(6) { grid-column:span 3; grid-row:span 2; }
.dc-world-card { min-height:0; }
.dc-world-tools { display:flex; gap:8px; margin-top:22px; }
.dc-world-tools a { border:1px solid rgba(255,255,255,.22); border-radius:999px; padding:9px 15px; font-size:12px; }

/* Framed, photographic final moment. */
.dc-final { width:min(calc(100% - 56px),1450px); min-height:min(76vh,760px); margin:clamp(72px,8vw,120px) auto; border-radius:24px; overflow:hidden; }
.dc-final-inner { padding:clamp(58px,7vw,100px); }
.dc-final .dc-h2 { max-width:930px; }

/* Footer utility links. */
.dc-footer-grid { grid-template-columns:1.35fr repeat(5,1fr); }
.dc-footer-social { display:flex; flex-wrap:wrap; gap:8px 16px; }

/* Elementor versions share the same proportions. */
.dc-final-cta { width:min(calc(100% - 56px),1450px); min-height:min(76vh,760px); margin:clamp(72px,8vw,120px) auto; border-radius:24px; overflow:hidden; display:flex; align-items:flex-end; padding:clamp(58px,7vw,100px) 0; }
.dc-final-cta .dc-container { width:calc(100% - clamp(50px,8vw,120px)); margin:0; }

@media (max-width:1100px) {
  .dc-search-toggle { display:none; }
  .dc-header-inner { grid-template-columns:1fr auto; }
  .dc-hero-content { max-width:62%; }
  .dc-hero-featured { width:300px; }
  .dc-video-feature { grid-template-columns:1fr; }
  .dc-video-supporting { grid-template-columns:1fr 1fr; }
  .dc-research-grid { grid-template-columns:1fr; }
}

@media (max-width:820px) {
  body.admin-bar .dc-site-header { top:46px; }
  .dc-announcement { font-size:12px; }
  .dc-site-header { height:70px; }
  .dc-nav.is-open { inset:70px 0 auto 0; }
  .dc-hero-shell { padding-top:14px; }
  .dc-hero-shell .dc-container { width:min(calc(100% - 24px),1450px); }
  .dc-hero { min-height:780px; border-radius:18px; display:block; }
  .dc-hero-content { max-width:none; left:24px; right:24px; bottom:250px; }
  .dc-hero-featured { left:20px; right:20px; bottom:20px; width:auto; display:grid; grid-template-columns:140px 1fr; }
  .dc-hero-featured-label { left:153px; }
  .dc-hero-featured-image { aspect-ratio:auto; min-height:145px; }
  .dc-hero-featured-copy { padding:38px 14px 12px; }
  .dc-display { font-size:clamp(52px,12vw,76px); }
  .dc-h2 { font-size:clamp(42px,10vw,65px); }
  .dc-metrics { grid-template-columns:1fr 1fr; border:0; }
  .dc-metric { border:1px solid rgba(255,255,255,.14); }
  .dc-video-supporting { grid-template-columns:1fr; }
  .dc-video-feature-main { min-height:480px; }
  .dc-world-grid { grid-template-columns:1fr 1fr; grid-auto-rows:220px; }
  .dc-world-card:nth-child(n) { grid-column:auto; grid-row:auto; }
  .dc-world-card:first-child { grid-column:1/-1; min-height:460px; }
  .dc-final, .dc-final-cta { width:min(calc(100% - 24px),1450px); border-radius:18px; }
  .dc-footer-grid { grid-template-columns:1fr 1fr; }
  .dc-footer-grid > :first-child { grid-column:1/-1; }
}

@media (max-width:540px) {
  .dc-brand { font-size:16px; }
  .dc-header-cta .dc-btn { display:none; }
  .dc-hero { min-height:720px; }
  .dc-hero-content { bottom:235px; }
  .dc-hero-id { display:none; }
  .dc-hero .dc-actions { margin-top:22px; }
  .dc-hero .dc-btn { min-height:46px; padding-inline:18px; }
  .dc-hero-featured { grid-template-columns:112px 1fr; }
  .dc-hero-featured-label { left:125px; }
  .dc-hero-featured-image { min-height:130px; }
  .dc-hero-featured-copy strong { font-size:15px; }
  .dc-card-rail { grid-auto-columns:86vw; }
  .dc-research-grid { gap:24px; }
  .dc-video-mini { grid-template-columns:105px 1fr; }
  .dc-world-grid { grid-template-columns:1fr; }
  .dc-world-card:first-child { grid-column:auto; min-height:400px; }
  .dc-final { min-height:650px; }
  .dc-footer-grid { grid-template-columns:1fr; }
}
