
:root {
  --bg: #0B1220;
  --bg-soft: #121A2E;
  --bg-card: #151E36;
  --accent: #4F7CFF;
  --accent-soft: #3D63CC;
  --accent-tint: rgba(79,124,255,0.12);        /* re-derived per accent color by cl_design_style() */
  --accent-tint-border: rgba(79,124,255,0.25);
  --paper: #FFFFFF;      /* always-white text, for on-accent surfaces (buttons/badges) — stays white in both themes */
  --heading: #FFFFFF;    /* headline/emphasis text — flips per theme_mode, unlike --paper */
  --text: #E8ECF4;
  --text-muted: #9AA5B8;
  --border: rgba(255,255,255,0.10);
  --success-bg: rgba(79,124,255,0.12); --success-border: rgba(79,124,255,0.3); --success-text: var(--text);
  --error-bg: #3A1B1B; --error-border: #6B2C2C; --error-text: #F3B9B9;

  --font-head: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --radius: 14px;
  --btn-radius: 999px;
  --border-width: 1px;
  --section-pad: 96px;
  --gap: 28px;
  --h1: clamp(2.2rem, 4.5vw, 3.5rem);
  --h2: clamp(1.6rem, 3vw, 2.3rem);
  --body-size: 1rem;
  --line-height: 1.65;
  --heading-weight: 700;
  --heading-spacing: -0.01em;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
}

body.be8f78-theme-light {
  --bg: #F7F4EC;
  --bg-soft: #FFFFFF;
  --bg-card: #FFFFFF;
  --accent-soft: #C77A2E;
  --paper: #FFFFFF;
  --heading: #1F2A44;
  --text: #2B2F3A;
  --text-muted: #6B7280;
  --border: rgba(31,42,68,0.12);
  --shadow: 0 24px 60px -24px rgba(31,42,68,0.18);
  --success-bg: #EAF4EC; --success-border: #BFE0C6; --success-text: #205026;
  --error-bg: #FBEAEA; --error-border: #E3B7B7; --error-text: #7A2323;
}
body.be8f78-theme-light .site-header { background: rgba(247,244,236,0.9); }

body.be8f78-theme-light .band--dark {
  --bg: var(--dark-bg, #15181D);
  --bg-soft: var(--dark-bg, #15181D);
  --bg-card: rgba(255,255,255,0.05);
  --heading: #FFFFFF;
  --text: #E6E8EC;
  --text-muted: rgba(255,255,255,0.62);
  --border: rgba(255,255,255,0.14);
  --shadow: 0 24px 60px -24px rgba(0,0,0,0.45);
  background: var(--dark-bg, #15181D);
  color: var(--text);
}
body.be8f78-theme-light .band--dark .section,
body.be8f78-theme-light .band--dark .section--alt,
body.be8f78-theme-light .band--dark .section--tight { background: transparent; }
body.be8f78-theme-light .band--dark h1,
body.be8f78-theme-light .band--dark h2,
body.be8f78-theme-light .band--dark h3 { color: var(--heading); }

body.be8f78-theme-dark .band--dark {
  --bg: #F4F2EE;
  --bg-soft: #F4F2EE;
  --bg-card: rgba(0,0,0,0.04);
  --heading: #14181F;
  --text: #333A45;
  --text-muted: rgba(20,24,31,0.62);
  --border: rgba(20,24,31,0.14);
  --shadow: 0 24px 60px -24px rgba(20,24,31,0.18);
  background: #F4F2EE;
  color: var(--text);
}
body.be8f78-theme-dark .band--dark .section,
body.be8f78-theme-dark .band--dark .section--alt,
body.be8f78-theme-dark .band--dark .section--tight { background: transparent; }
body.be8f78-theme-dark .band--dark h1,
body.be8f78-theme-dark .band--dark h2,
body.be8f78-theme-dark .band--dark h3 { color: var(--heading); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  font-size: var(--body-size);
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-spacing);
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--bg-soft); }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-tint); color: var(--accent);
  font-size: 0.82rem; font-weight: 600; padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
  border: 1px solid var(--accent-tint-border);
}
.eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 12px;
}

.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--btn-radius); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--accent-btn, var(--accent)); color: var(--accent-btn-text, var(--paper)); }
.btn-primary:hover { filter: brightness(0.92); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: rgba(255,255,255,0.06); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 2000;
  background: var(--accent-btn, var(--accent)); color: var(--accent-btn-text, var(--paper)); padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(11,18,32,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.brand > span { min-width: 0; }
.header-cta { flex: none; }
.brand img { height: 34px; width: auto; }
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--heading); letter-spacing: 0.01em; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a { color: var(--text-muted); font-size: 0.88rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { color: var(--heading); }
.header-cta { display: flex; align-items: center; gap: 14px; min-width: 0; }
@media (max-width: 900px) {
  .header-cta .btn { display: none; }
}
@media (max-width: 560px) {
  .header-inner { padding: 12px 16px; gap: 10px; }
  .brand-word { font-size: 1rem; }
}
html, body { overflow-x: hidden; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.btn:focus-visible, .cookie-banner button:focus-visible {
  outline-offset: 3px;
}
h1, h2, h3, h4, p, li, td, th, dd, dt, .entry-content {
  overflow-wrap: break-word;
  hyphens: auto;
  hyphenate-limit-chars: 14 5 5;
  -webkit-hyphenate-limit-before: 5;
  -webkit-hyphenate-limit-after: 5;
}
h1, h2, h3 { text-wrap: balance; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--heading); display: block; }

.hero {
  position: relative; padding: 100px 0 80px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px;
}
.hero > *, .grid > * { min-width: 0; }
select, input, textarea { max-width: 100%; }
.hero h1 { color: var(--heading); }
.hero h1 .accent { color: var(--accent); }
.hero .lead { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.hero-media-placeholder {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 24px;
}

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card); border: var(--border-width) solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.icon-badge {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; margin-bottom: 16px;
}
.feature-item { text-align: left; padding-top: 18px; border-top: 2px solid var(--accent); }
.feature-item .icon-badge { margin-bottom: 14px; }
.feature-item h3 { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.35; }
.feature-item p { margin: 0; font-size: 0.96rem; }

.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { padding-left: 30px; position: relative; color: var(--text); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent-tint);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
}
.grid.check-list { display: grid; }

.step-card { position: relative; }
.step-number {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--paper);
  font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.blog-card { display: block; text-decoration: none; color: inherit; }
.blog-card:hover { text-decoration: none; }
.blog-card h3 { color: var(--heading); }
.blog-card-meta { display: flex; gap: 10px; font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; }

.topic-card-media { position: relative; margin: -32px -32px 20px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16/10; }
.topic-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.instructor-media { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow); }
.instructor-media img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }

.stat-row { display: flex; gap: 32px; }
.stat-value { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

.testimonial-card { background: var(--bg-card); }
.testimonial-quote { font-style: italic; color: var(--text); }
.testimonial-name { font-weight: 700; color: var(--heading); margin-top: 16px; }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

.logo-strip { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.logo-strip-label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.logo-strip-item { color: var(--text-muted); font-family: var(--font-head); font-weight: 700; font-size: 1rem; opacity: 0.7; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-family: var(--font-head); font-size: 1.02rem; color: var(--heading); font-weight: 700;
}
.faq-q .icon { transition: transform 0.2s ease; color: var(--accent); font-size: 1.3rem; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 800px; }
.faq-a p { padding-bottom: 20px; color: var(--text-muted); }

.form-card { background: var(--bg-card); border: var(--border-width) solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem; background: var(--bg); color: var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; margin-bottom: 18px; color: var(--text-muted); }
.form-checkbox input { margin-top: 4px; }
.form-success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success-text); padding: 14px 18px; border-radius: 8px; margin-top: 16px; font-size: 0.9rem; }
.form-success.visible { display: block; }
.form-error { background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error-text); padding: 14px 18px; border-radius: 8px; margin-top: 16px; font-size: 0.9rem; }
.form-error.visible { display: block; }

.hero--with-form .hero-media { align-items: flex-start; }
.hero-form { width: 100%; }
.hero-form-title { font-size: 1.25rem; margin: 0 0 14px; }
.hero-form .form-card { margin: 0; }
.hero--with-form .hero-cards { display: none; }
@media (max-width: 900px) {
  .hero-form-title { font-size: 1.1rem; }
  .hero--with-form .hero-actions { display: none; }
  .hero--with-form .hero-inner .lead {
    font-size: 0.95rem; margin-bottom: 20px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  }
  .hero--with-form { padding-top: 24px; }
}

.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 640px; margin: 0 auto;
  background: var(--bg-card); color: var(--text); padding: 20px 24px; border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow); z-index: 1000; display: none; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { color: var(--text-muted); font-size: 0.85rem; margin: 0; flex: 1 1 260px; }
.cookie-actions { display: flex; gap: 10px; }

.cookie-banner.is-expanded {
  align-items: stretch;
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.cookie-prefs { flex: 1 1 100%; display: grid; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
.cookie-pref { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 0.82rem; }
.cookie-pref input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.cookie-pref input:disabled { opacity: 0.55; cursor: not-allowed; }
.cookie-pref strong { display: block; color: var(--heading); font-weight: 600; }
.cookie-pref em { display: block; color: var(--text-muted); font-style: normal; line-height: 1.45; }
.cookie-actions { flex-wrap: wrap; }
.cookie-banner [hidden] { display: none !important; }
.cookie-banner.is-expanded .cookie-actions { flex: 1 1 100%; justify-content: flex-end; }
.cookie-banner.is-expanded [data-cookie-action="rejected"] { order: 1; }
.cookie-banner.is-expanded [data-cookie-action="save"]     { order: 2; }
.cookie-banner.is-expanded [data-cookie-action="accepted"] { order: 3; }
.btn-ghost { background: none; border: 1px solid transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--heading); border-color: var(--border); }


.split-rows { display: grid; gap: calc(var(--section-pad) * 0.6); }
.split-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: calc(var(--gap) * 1.6); align-items: center; }
.split-rows > *, .split-row > * { min-width: 0; }
.split-row--flip .split-row-media { order: 2; }
.split-row-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; aspect-ratio: 4/3; }
.split-row-index { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: var(--accent-readable, var(--accent)); display: block; margin-bottom: 10px; }
.split-row-body h3 { font-size: 1.6rem; margin-bottom: 12px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px; background: var(--border); }
.timeline-step { display: grid; grid-template-columns: 40px 1fr; gap: 24px; padding-bottom: 32px; position: relative; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: var(--paper); font-family: var(--font-head);
  font-weight: 700; font-size: 0.95rem; position: relative; z-index: 1;
}
.timeline-step h3 { margin: 6px 0 6px; font-size: 1.15rem; }
.timeline-step p { margin: 0; }

.feature-card { position: relative; }
.feature-card-index { font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; color: var(--accent-readable, var(--accent)); display: block; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.05rem; margin: 0 0 8px; }
.feature-card p { margin: 0; font-size: 0.96rem; }

.pricing-table-wrap { overflow-x: auto; }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.pricing-table th, .pricing-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.pricing-table thead th { border-bottom: var(--border-width) solid var(--border); }
.pricing-table td { text-align: center; }
.pricing-table tbody th { font-weight: 500; color: var(--text); font-family: var(--font-body); font-size: 0.94rem; }
.pricing-table .is-featured { background: var(--accent-tint); }
.pricing-table-name { display: block; font-family: var(--font-head); font-weight: 700; color: var(--heading); }
.pricing-table-price { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--accent); margin-top: 6px; }
.pricing-table-unit { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.tick { color: var(--accent); font-weight: 700; }
.tick--off { color: var(--text-muted); opacity: 0.5; }

.numbered-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.numbered-lead { margin: 0; font-size: 1.05rem; }
.numbered-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; counter-reset: none; }
.numbered-item { border-top: var(--border-width) solid var(--border); padding-top: 20px; }
.numbered-index {
  display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1;
  font-weight: 700; color: var(--accent-readable, var(--accent)); opacity: 0.6; margin-bottom: 14px;
}
.numbered-item h3 { font-size: 1.08rem; margin: 0 0 8px; }
.numbered-item p { margin: 0; font-size: 0.96rem; }
@media (max-width: 900px) {
  .numbered-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .numbered-list { grid-template-columns: 1fr; gap: 28px; }
}

.case-list { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--section-pad) * 0.7); }
.case { display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: start; }
.case-index {
  font-family: var(--font-head); font-size: 2.4rem; line-height: 1; font-weight: 700;
  color: var(--accent-readable, var(--accent)); opacity: 0.5;
}
.case-body h2 { font-size: 1.5rem; margin: 0 0 6px; }
.case-format { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 20px; }
.case-steps { margin: 0; display: grid; gap: 14px; }
.case-steps dt {
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-readable, var(--accent)); margin: 0;
}
.case-steps dd { margin: 4px 0 0; color: var(--text); }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: 8px; }
  .case-index { font-size: 1.6rem; }
}

.price-rows { display: grid; gap: 0; border-top: var(--border-width) solid var(--border); }
.price-row {
  display: grid; grid-template-columns: 260px 1fr 200px; gap: 32px;
  padding: 28px 0; border-bottom: var(--border-width) solid var(--border); align-items: start;
}
.price-row.is-featured { background: var(--accent-tint); padding-left: 20px; padding-right: 20px; }
.price-row-head h3 { margin: 0 0 8px; font-size: 1.12rem; }
.price-row-price { font-family: var(--font-head); font-size: 1.5rem; color: var(--accent); font-weight: 700; }
.price-row-unit { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.price-row-body p { margin: 0 0 12px; font-size: 0.94rem; }
.check-list--inline { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.check-list--inline li { margin: 0; font-size: 0.88rem; }
.price-row-cta { display: flex; justify-content: flex-end; }
@media (max-width: 900px) {
  .price-row { grid-template-columns: 1fr; gap: 14px; }
  .price-row-cta { justify-content: flex-start; }
}

.hero-feed {
  grid-column: 1 / -1;            /* spans both hero columns */
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 10px; margin-top: 44px;
}
.hero-feed-tile {
  position: relative; margin: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-soft);
}

.hero-feed-tile img,
.hero-feed-tile video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  aspect-ratio: 16 / 10;
}

.hero-feed-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--accent); mix-blend-mode: color; opacity: 0.38;
}
.hero-feed-tile img,
.hero-feed-tile video { filter: saturate(0.85) contrast(1.06); }
.hero-feed-tile figcaption { z-index: 2; }
@keyframes be8f78-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.07) translate3d(-1.5%, -1%, 0); }
}
.hero-feed-tile img {
  will-change: transform;
  animation: be8f78-drift 20s ease-in-out infinite alternate;
}
.hero-feed-tile--2 img { animation-duration: 26s; animation-delay: -6s; }
.hero-feed-tile--3 img { animation-duration: 23s; animation-delay: -13s; }

@media (prefers-reduced-motion: reduce) {
  .hero-feed-video { animation: none; }
  .hero-feed-tile img { animation: none; transform: none; }
}
.hero-feed-tile figcaption {
  position: absolute; left: 10px; top: 10px;
  font-family: var(--font-head); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,0.62);
  padding: 5px 9px; border-radius: 3px; backdrop-filter: blur(4px);
}
@media (max-width: 900px) {
  .hero-feed { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
  .hero-feed-tile--3 { display: none; }   /* two tiles read better than three squeezed */
  .hero-feed-tile figcaption { font-size: 0.6rem; padding: 4px 7px; }
}

.hero h1, .hero--feed h1 {
  hyphens: auto;
  hyphenate-limit-chars: 14 5 5;
  overflow-wrap: break-word;
  text-wrap: balance;
  overflow: visible;
}

.hero--centered { text-align: center; }
.hero--centered .hero-inner { grid-column: 1 / -1; max-width: 820px; margin: 0 auto; }
.hero--centered.hero--with-form .hero-media {
  grid-column: 1 / -1; width: 100%; max-width: 620px; justify-self: center;
}
.hero--centered .hero-actions { justify-content: center; }
.hero--centered .hero-media { grid-column: 1 / -1; margin-top: 48px; }
.hero--centered .hero-media img { width: 100%; height: auto; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius); }

.hero--banner, .hero--backdrop { position: relative; color: #fff; }
.hero--banner::before, .hero--backdrop::before,
.hero--banner::after, .hero--backdrop::after {
  content: ""; position: absolute; z-index: 0;
  top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
}
.hero--banner::before, .hero--backdrop::before {
  background-image: var(--hero-bg); background-size: cover; background-position: center;
}
.hero--banner::after {
  background: linear-gradient(105deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.62) 52%, rgba(0,0,0,0.35) 100%);
}
.hero--backdrop::after {
  background: linear-gradient(180deg, rgba(12,12,14,0.72) 0%, rgba(12,12,14,0.80) 45%, rgba(12,12,14,0.94) 100%);
}
.hero-banner-video {
  position: absolute; z-index: 1; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%);
  height: 100%; object-fit: cover; display: block;
}
.hero--banner::before, .hero--backdrop::before { z-index: 0; }
.hero--banner::after, .hero--backdrop::after { z-index: 2; }
.hero--banner > *:not(.hero-banner-video),
.hero--backdrop > *:not(.hero-banner-video) { position: relative; z-index: 3; }
.hero--banner .hero-inner { max-width: 720px; }
.hero--banner h1, .hero--banner .lead { color: #fff; }
.hero--banner .hero-media { display: none; }
.hero--banner.hero--with-form .hero-media { display: block; }

@media (max-width: 900px) {
  .split-row, .split-row--flip .split-row-media { grid-template-columns: 1fr; order: 0; }
  .split-row { gap: 20px; }
  .timeline-step { grid-template-columns: 32px 1fr; gap: 16px; }
  .timeline::before { left: 15px; }
  .timeline-dot { width: 32px; height: 32px; font-size: 0.85rem; }
}

.site-footer { border-top: 1px solid var(--border); padding: 48px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-tagline { color: var(--text-muted); font-size: 0.88rem; margin: 6px 0 0; }
.main-nav li { position: relative; }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  display: none; flex-direction: column; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; margin: 6px 0 0; list-style: none; z-index: 200;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu li { margin: 0; }
.main-nav .sub-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 0.9rem; white-space: nowrap;
}
.main-nav .sub-menu a:hover { background: var(--accent-tint); color: var(--heading); }
.main-nav .menu-item-has-children > a::after { content: " ⌄"; opacity: 0.6; }

@media (max-width: 900px) {
  .main-nav .sub-menu {
    position: static; display: flex; background: none; border: 0;
    box-shadow: none; padding: 0 0 0 18px; margin: 4px 0 0; min-width: 0;
  }
  .main-nav .sub-menu a { padding: 6px 0; font-size: 0.95rem; }
  .main-nav .menu-item-has-children > a::after { content: ""; }
}

.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav ul { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0; }
.footer-nav a { color: var(--text-muted); font-size: 0.85rem; }
.footer-nav a:hover { color: var(--heading); }
.footer-bottom { color: var(--text-muted); font-size: 0.8rem; display: flex; flex-direction: column; gap: 4px; }
.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 4px; color: var(--text-muted); font-size: 0.85rem; }
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--heading); }

.entry-content ul { padding-left: 20px; }
.entry-content ul + p, .entry-content ol + p { margin-top: 18px; }
.entry-content ul.check-list { padding-left: 0; margin-bottom: 4px; }
.entry-content li { margin-bottom: 8px; }

.page-header { background: var(--bg-soft); padding: 80px 0 56px; border-bottom: 1px solid var(--border); }
.page-header .lead { color: var(--text-muted); max-width: 640px; margin: 12px auto 0; }

.tag-badge {
  display: inline-block; background: var(--accent-tint); color: var(--accent);
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}

.service-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px 0; border-bottom: 1px solid var(--border);
}
.service-row > * { min-width: 0; }
.service-row:last-child { border-bottom: none; }
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.service-row-media img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.service-row .price-row { margin: 18px 0; display: flex; align-items: baseline; gap: 10px; }
.service-row .price-old { color: var(--text-muted); text-decoration: line-through; font-size: 0.95rem; }
.service-row .price-new { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--heading); }
.service-row .price-unit { color: var(--text-muted); font-size: 0.85rem; }
.service-row .check-list { margin: 16px 0; }

.addon-card { text-align: center; }
.addon-price { font-family: var(--font-head); font-weight: 700; color: var(--accent); margin: 6px 0 10px; }

@media (max-width: 860px) {
  .service-row, .service-row:nth-child(even) .service-row-media { grid-template-columns: 1fr; order: 0; }
}

.team-card { text-align: center; }
.team-photo {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden;
  background: var(--accent-tint);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-role { color: var(--accent); font-weight: 600; font-size: 0.85rem; margin-bottom: 10px; }

.newsletter-box {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); min-width: 240px;
}

.blog-index-card { display: block; text-decoration: none; }
.blog-index-card-media { margin: -32px -32px 20px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.blog-index-card-media img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }

.contact-info-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.contact-info-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--bg-card); border: var(--border-width) solid var(--border); border-radius: var(--radius);
}
.contact-info-card .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.contact-info-card strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 2px; }

.timeline { max-width: 700px; margin: 0 auto; }
.timeline-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.timeline-text { color: var(--text); }
@media (max-width: 600px) {
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
}

.be8f78-hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }


.footer-social { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-social a { color: var(--text-muted); font-size: 0.85rem; }
.footer-social a:hover { color: var(--accent); }

.team-photo.is-initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent);
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.02em;
}

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }

.pricing-grid { align-items: stretch; }
.pricing-card {
  position: relative; display: flex; flex-direction: column; text-align: left;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 20px 50px -20px var(--accent-tint-border);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--paper);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.pricing-blurb { font-size: 0.9rem; min-height: 3em; }
.pricing-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.pricing-price .price-old { color: var(--text-muted); text-decoration: line-through; font-size: 1rem; }
.pricing-price .price-new { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--heading); line-height: 1; }
.pricing-price .price-unit { color: var(--text-muted); font-size: 0.85rem; }
.pricing-features { margin: 0 0 24px; flex: 1; }
.pricing-features li { font-size: 0.92rem; }
.pricing-note { margin-top: 28px; font-size: 0.85rem; }

.social-proof-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px 40px;
  padding: 28px 32px; border-radius: var(--radius);
  background: var(--accent-tint); border: var(--border-width) solid var(--accent-tint-border);
}
.social-proof-item { text-align: center; min-width: 0; }
@media (max-width: 640px) {
  .social-proof-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .social-proof-band { grid-template-columns: 1fr; }
}
.social-proof-value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.social-proof-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }

.hero-cards { position: absolute; inset: 0; pointer-events: none; }
.hero-card {
  position: absolute; width: 128px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 10px; box-shadow: var(--shadow);
}
.hero-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.hero-card .hero-card-name { font-size: 0.82rem; font-weight: 700; color: var(--heading); line-height: 1.2; }
.hero-card .hero-card-role { font-size: 0.72rem; color: var(--text-muted); }
.hero-card.left  { left: -18px; top: 22%; transform: rotate(-4deg); }
.hero-card.right { right: -18px; bottom: 14%; transform: rotate(4deg); }
@media (max-width: 1100px) { .hero-cards { display: none; } }

.breadcrumbs { margin-bottom: 16px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 0.82rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--text); }
.entry-content ~ .breadcrumbs ol, .container > .breadcrumbs ol { justify-content: flex-start; }

.error-code { font-family: var(--font-head); font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }

.pagination, .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pagination .page-numbers, .nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text); font-size: 0.9rem; text-decoration: none;
}
.pagination .page-numbers:hover, .nav-links .page-numbers:hover { background: var(--accent-tint); border-color: var(--accent-tint-border); text-decoration: none; }
.pagination .page-numbers.current, .nav-links .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--paper); font-weight: 600; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.be8f78-reveal { opacity: 0; transform: translateY(24px); }
.be8f78-revealed {
  opacity: 1; transform: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .be8f78-reveal, .be8f78-revealed { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: rgba(11,18,32,0.92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: none; gap: 12px; align-items: center;
  transform: translateY(100%); transition: transform 0.25s ease;
}
body.be8f78-theme-light .sticky-cta { background: rgba(247,244,236,0.94); }
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .sticky-cta-label { flex: 1 1 auto; min-width: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.3; }
.sticky-cta .btn { white-space: normal; min-width: 0; flex: 0 1 auto; }

@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; position: relative; z-index: 1001; }
  .sticky-cta { display: flex; }
  .site-footer { padding-bottom: 96px; }

  .site-header.nav-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-bottom-color: transparent; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1000;
    background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .site-header.nav-open .main-nav { opacity: 1; visibility: visible; display: flex; }
  .main-nav a, .main-nav li a {
    font-size: 1.3rem; font-family: var(--font-head); font-weight: 600; color: var(--heading);
    display: block; padding: 9px 20px;
  }
  .main-nav ul { display: flex; flex-direction: column; align-items: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-row { flex-wrap: wrap; }
  .section { padding: 56px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

.service-audience { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.service-audience p { margin: 6px 0 0; font-size: 0.9rem; }

.studio-video {
  width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

.interlude {
  position: relative; overflow: hidden;
  min-height: 46vh; display: flex; align-items: center;
  padding: calc(var(--section-pad) * 0.9) 0;
}
.interlude::before,
.interlude::after { content: ""; position: absolute; inset: 0; }
.interlude::before {
  background-image: var(--interlude-bg);
  background-size: cover; background-position: center; z-index: 0;
}
.interlude::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.78) 100%);
  z-index: 2;
}
.interlude-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 1;
}
.interlude-inner { position: relative; z-index: 3; text-align: center; max-width: 780px; }
.interlude-text {
  font-family: var(--font-head); color: #fff;
  font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.35;
  margin: 0 0 24px; text-wrap: balance;
}
.interlude .btn-outline { color: #fff; border-color: rgba(255,255,255,0.45); }
.interlude .btn-outline:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 720px) {
  .interlude { min-height: 34vh; }
}

@media (max-width: 380px) {
  .sticky-cta { padding-left: 12px; padding-right: 12px; }
  .sticky-cta .sticky-cta-label { display: none; }
  .sticky-cta .btn { width: 100%; white-space: normal; }
}

.contact-info-card { min-width: 0; }
.contact-info-card > div { min-width: 0; overflow-wrap: anywhere; }

.page-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.page-gallery-item { margin: 0; }
.page-gallery-item img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: var(--border-width) solid var(--border);
}
.page-gallery-item figcaption { color: var(--text-muted); font-size: 0.78rem; margin-top: 8px; }
@media (max-width: 560px) { .page-gallery { grid-template-columns: 1fr 1fr; } }

.case--with-media { grid-template-columns: auto 220px 1fr; }
.case-media img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: var(--border-width) solid var(--border);
}
@media (max-width: 860px) {
  .case--with-media { grid-template-columns: auto 1fr; }
  .case-media { grid-column: 2; }
}

.site-footer--image { position: relative; overflow: hidden; }
.site-footer--image::before,
.site-footer--image::after { content: ""; position: absolute; inset: 0; }
.site-footer--image::before {
  background-image: var(--footer-bg); background-size: cover; background-position: center;
  opacity: 0.5; z-index: 0;
}
.site-footer--image::after { background: rgba(0,0,0,0.78); z-index: 1; }
.site-footer--image > * { position: relative; z-index: 2; }

@media (max-width: 400px) {
  .btn { white-space: normal; }
}

.hero--overhead { display: block; padding-top: 0; }
.hero-band {
  margin: 0 0 clamp(40px, 6vw, 72px); position: relative; left: 50%;
  width: 100vw; transform: translateX(-50%); overflow: hidden;
  border-bottom: var(--border-width) solid var(--border);
}
.hero-band img, .hero-band-video {
  width: 100%; height: clamp(240px, 44vh, 460px); object-fit: cover; display: block;
}
.hero--overhead .hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero--overhead .hero-actions { justify-content: center; }
.hero--overhead .lead,
.hero--centered .lead { margin-left: auto; margin-right: auto; }
.hero--overhead .hero-media { max-width: 600px; margin: 44px auto 0; }
@media (max-width: 720px) {
  .hero-band img, .hero-band-video { height: clamp(180px, 32vh, 260px); }
}
