/* ═══════════════════════════════════════
   MEDIA VISIONARY — SHARED STYLES
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@300;400;500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg:        #FAFAF8;
  --bg-off:    #F2F1EE;
  --bg-warm:   #EDE9E3;
  --navy:      #0C1E3E;
  --navy-2:    #162847;
  --navy-3:    #1E3560;
  --red:       #C8172A;
  --red-dk:    #A8101F;
  --red-lt:    rgba(200,23,42,.07);
  --ink:       #0C1E3E;
  --ink-2:     #3D4A5C;
  --ink-3:     #687080;
  --ink-4:     #9BA5B4;
  --rule:      rgba(12,30,62,.09);
  --rule-dk:   rgba(255,255,255,.07);
  --sans:      'Manrope', system-ui, sans-serif;
  --serif:     'DM Serif Display', Georgia, serif;
  --mono:      'IBM Plex Mono', monospace;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html, body { max-width: 100vw; overflow-x: hidden; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); font-weight: 400; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; background: none; border: none; }
::selection { background: rgba(12,30,62,.1); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* LAYOUT */
.pg { width: 100%; padding: 0 1.25rem; box-sizing: border-box; }
@media (min-width: 640px) { .pg { padding: 0 2rem; } }
@media (min-width: 1024px) { .pg { max-width: 1240px; margin: 0 auto; padding: 0 clamp(2rem, 5vw, 4.5rem); } }
.section { padding: clamp(5rem, 9vw, 8rem) 0; }
.section-alt { background: var(--bg-off); }
.section-dark { background: #0C1B33; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.on { opacity: 1; transform: none; }
.d1{transition-delay:.08s} .d2{transition-delay:.18s} .d3{transition-delay:.28s}
.d4{transition-delay:.38s} .d5{transition-delay:.48s} .d6{transition-delay:.58s}

/* PAGE HERO (subpages) */
.page-hero {
  padding-top: 68px; background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 55%, var(--red) 100%);
}
.page-hero-inner {
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem);
  max-width: 760px;
}
.page-breadcrumb {
  display: flex; align-items: center; gap: .5rem; margin-bottom: 1.8rem;
  font-family: var(--mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4);
}
.page-breadcrumb a { transition: color .2s; }
.page-breadcrumb a:hover { color: var(--navy); }
.page-breadcrumb-sep { color: var(--ink-4); opacity: .4; }
.page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 4.8rem);
  font-weight: 400; line-height: 1.04; letter-spacing: -.015em; color: var(--navy);
  margin-bottom: 1.4rem;
}
.page-title em { font-style: italic; color: var(--red); }
.page-title-lt { color: #fff; }
.page-sub {
  font-size: 1.05rem; color: var(--ink-2); line-height: 1.85; max-width: 620px;
}

/* EYEBROW */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: .75rem;
}
.eyebrow-rule { display: block; width: 20px; height: 1px; background: currentColor; flex-shrink: 0; }
.eyebrow-red { color: var(--red); }
.eyebrow-red .eyebrow-rule { background: var(--red); }
.eyebrow-lt { color: rgba(255,255,255,.35); }
.eyebrow-lt .eyebrow-rule { background: rgba(255,255,255,.25); }

/* SECTION TITLES */
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5.5vw, 3.6rem);
  font-weight: 400; line-height: 1.08; letter-spacing: -.01em; color: var(--ink);
  margin-top: .9rem;
}
.section-title em { font-style: italic; color: var(--red); }
.section-title-lt { color: #fff; }
.section-title-lt em { color: rgba(220,60,75,.9); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.section-head-sub { font-size: 1rem; color: var(--ink-2); line-height: 1.85; }
.section-head-sub-lt { color: rgba(156,163,175,.72); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  min-height: 48px; padding: 0 1.6rem;
  border: 1.5px solid transparent; border-radius: 2px;
  transition: all .22s var(--ease); white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-block { width: 100%; }
.btn-stack { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 480px) { .btn-stack { flex-direction: row; flex-wrap: wrap; } }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(12,30,62,.22); }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,23,42,.28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(12,30,62,.2); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: rgba(12,30,62,.04); }
.btn-ghost-lt { background: transparent; color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.18); }
.btn-ghost-lt:hover { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-lg { padding: 1.1rem 2.6rem; font-size: .78rem; }
.btn-nav { padding: 0 1rem; min-height: 40px; font-size: .72rem; border-radius: 2px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.btn-arrow::after { content: ' →'; font-weight: 300; letter-spacing: 0; }
.btn-inline { margin-top: 1.6rem; display: inline-flex; }
.btn-row { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 2.4rem; }

/* NAV */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 68px; display: flex; align-items: center;
  background: rgba(250,250,248,.96); backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
#nav.scrolled { border-color: var(--rule); }
.nav-inner {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4.5rem);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--sans); font-size: .88rem; font-weight: 700;
  letter-spacing: .02em; color: var(--navy);
}
.nav-mark { width: 34px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-logo-vis { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 2.6rem; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); transition: color .18s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1.5px; background: var(--red);
}
.nav-cta { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.ham { display: none; flex-direction: column; gap: 5px; padding: 10px; margin-right: -10px; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.ham span { width: 22px; height: 1.5px; background: var(--ink); display: block; transition: .25s; }

/* MOBILE NAV */
#mob-menu {
  display: none; position: fixed; inset: 0; z-index: 850;
  background: rgba(250,250,248,.99); backdrop-filter: blur(20px);
  flex-direction: column; padding: 88px clamp(1.5rem, 5vw, 4.5rem) 3rem;
}
#mob-menu.open { display: flex; }
#mob-menu nav { flex: 1; }
#mob-menu ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
#mob-menu a {
  font-family: var(--serif); font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 400; letter-spacing: -.01em; color: var(--navy); display: block; padding: .4rem 0;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
#mob-menu a:hover { border-color: var(--rule); }
#mob-menu .btn { margin-top: 2rem; }

/* CONTENT PROSE */
.prose { font-size: .95rem; color: var(--ink-2); line-height: 1.9; }
.prose + .prose { margin-top: 1rem; }
.prose strong { color: var(--ink); font-weight: 700; }
.pull-quote {
  border-left: 3px solid var(--red); padding: 1.5rem 2rem;
  margin: 2.2rem 0; background: var(--red-lt);
}
.pull-quote blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--ink); line-height: 1.8;
}
.pull-quote cite {
  display: flex; align-items: center; gap: .5rem; margin-top: .85rem; font-style: normal;
  font-family: var(--mono); font-size: .6rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red);
}
.pull-quote cite::before { content: ''; display: block; width: 12px; height: 1.5px; background: var(--red); }

/* SHARED CARD STYLES */
.card {
  background: var(--bg); border: 1px solid var(--rule); border-radius: 3px; overflow: hidden;
}
.card-dk {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09); border-radius: 3px;
}
.card-top-red { border-top: 3px solid var(--red); }
.card-top-navy { border-top: 3px solid var(--navy); }

/* STEP LIST */
.step-list { border-top: 1px solid var(--rule); }
.step-row {
  display: grid; grid-template-columns: 80px 1fr 1fr;
  border-bottom: 1px solid var(--rule); transition: background .2s; position: relative;
}
.step-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--red) 100%);
  transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease);
}
.step-row:hover { background: var(--bg-off); }
.step-row:hover::before { transform: scaleY(1); }
.step-n-cell { padding: 3rem 0; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--rule); }
.step-n { font-family: var(--serif); font-size: 2.8rem; color: rgba(12,30,62,.07); letter-spacing: -.04em; line-height: 1; }
.step-col { padding: 3rem; border-right: 1px solid var(--rule); }
.step-col:last-child { border-right: none; }
.step-label { font-family: var(--mono); font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: .65rem; }
.step-title { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); letter-spacing: -.02em; line-height: 1; margin-top: .25rem; }
.step-body { font-size: .88rem; color: var(--ink-2); line-height: 1.9; }

/* OUTCOME LIST */
.outcome-list { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.outcome-list li { font-size: .88rem; color: var(--ink-2); display: flex; align-items: flex-start; gap: .65rem; }
.outcome-list li::before { content: '✓'; color: var(--red); font-size: .75rem; flex-shrink: 0; margin-top: .1em; opacity: .8; }

/* CTA STRIP */
.cta-strip {
  background: var(--navy); padding: clamp(5rem, 9vw, 7rem) 0;
  border-top: 3px solid var(--red); position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; right: -5%; top: -10%; bottom: -10%; width: 45%; pointer-events: none;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,23,42,.08) 0%, transparent 60%);
}
.cta-strip-inner { max-width: 720px; position: relative; z-index: 1; }
.cta-strip-title {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem);
  color: #fff; line-height: 1.06; letter-spacing: -.015em; margin: 1rem 0 1.2rem;
}
.cta-strip-title em { font-style: italic; color: rgba(220,60,75,.88); }
.cta-strip-sub { font-size: .95rem; color: rgba(156,163,175,.6); line-height: 1.85; max-width: 480px; margin-bottom: 2rem; }
.cta-strip-note { font-family: var(--mono); font-size: .65rem; color: rgba(107,114,128,.4); letter-spacing: .06em; margin-top: 1rem; }

/* FOOTER */
footer { background: #080F1E; border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--navy) 0%, var(--red) 100%) 1; padding: 4rem 0; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4.5rem); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 3rem; padding-bottom: 1.8rem; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: .65rem; font-family: var(--sans); font-size: .84rem; font-weight: 700; letter-spacing: .02em; color: rgba(255,255,255,.45); }
.footer-mark { width: 26px; height: 22px; display: flex; align-items: center; justify-content: center; }
.footer-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-family: var(--mono); font-size: .65rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.22); transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.55); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.footer-copy { font-family: var(--mono); font-size: .65rem; color: rgba(255,255,255,.14); letter-spacing: .04em; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .section-head { grid-template-columns: 1fr; gap: 1.2rem; }
  .step-row { grid-template-columns: 1fr; }
  .step-n-cell { display: none; }
  .step-col { border-right: none; }
}
@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-cta .btn:not(.btn-nav) { display: none; }
  .ham { display: flex; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: .5rem; }
}


/* ═══════════════════════════════════════
   MOBILE OVERFLOW FIXES — shared
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box !important; }
html { width: 100%; max-width: 100%; overflow-x: hidden; }
body { width: 100%; max-width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body > * { max-width: 100vw; }

.pg, .nav-inner, .footer-inner {
  width: 100%; max-width: 100%;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .pg, .nav-inner, .footer-inner { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .pg, .footer-inner { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: clamp(2rem, 5vw, 4.5rem); padding-right: clamp(2rem, 5vw, 4.5rem); }
  .nav-inner { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: clamp(2rem, 5vw, 4.5rem); padding-right: clamp(2rem, 5vw, 4.5rem); }
}

#nav { width: 100%; box-sizing: border-box; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { flex-shrink: 0; min-width: 0; }
.nav-links { display: none !important; }
@media (min-width: 900px) { .nav-links { display: flex !important; } }

.nav-cta { flex-shrink: 0; display: flex; align-items: center; gap: .4rem; min-width: 0; }
.btn-nav-text, .btn-nav-ghost { display: none !important; }
@media (min-width: 430px) { .btn-nav-text { display: inline-flex !important; } }
@media (min-width: 900px) { .btn-nav-ghost { display: inline-flex !important; } }
.btn-nav { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; flex-shrink: 0; }
.ham { display: flex !important; flex-shrink: 0; }
@media (min-width: 900px) { .ham { display: none !important; } }

.btn { white-space: normal; word-break: break-word; max-width: 100%; box-sizing: border-box; }
.btn-stack { display: flex; flex-direction: column; gap: .75rem; width: 100%; }
.btn-stack .btn { width: 100%; justify-content: center; }
@media (min-width: 480px) {
  .btn-stack { flex-direction: row; flex-wrap: wrap; width: auto; }
  .btn-stack .btn { width: auto; }
}
.btn-block { width: 100% !important; display: flex; justify-content: center; }

section { width: 100%; max-width: 100%; overflow-x: hidden; box-sizing: border-box; }

.page-hero-inner { width: 100%; min-width: 0; box-sizing: border-box; }
.page-title { font-size: clamp(1.9rem, 6vw, 4.8rem) !important; overflow-wrap: break-word; word-break: break-word; max-width: 100%; }
.section-title { max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
.cta-strip-title { max-width: 100%; overflow-wrap: break-word; font-size: clamp(1.8rem, 5.5vw, 4rem) !important; }

.eyebrow { letter-spacing: .1em; max-width: 100%; }
@media (min-width: 480px) { .eyebrow { letter-spacing: .18em; } }

.field input, .field select, .field textarea {
  width: 100%; max-width: 100%; box-sizing: border-box;
  font-size: 16px; min-height: 48px;
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

footer { width: 100%; box-sizing: border-box; overflow-x: hidden; }
.footer-top { flex-direction: column; }
@media (min-width: 768px) { .footer-top { flex-direction: row; } }

#mob-menu {
  padding: 80px max(1.5rem, env(safe-area-inset-left)) max(2.5rem, env(safe-area-inset-bottom));
  width: 100%; box-sizing: border-box;
}
