/*
Theme Name: Caliber Talent (WPConvert)
Theme URI: https://wpconvert.ai
Author: WPConvert.ai
Author URI: https://wpconvert.ai
Description: This theme was automatically generated from your original site design using WPConvert.ai. It preserves your layout, colors, typography, header, footer, and page content, and makes it editable in WordPress.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpconvert
Tags: landing page, responsive, custom header, custom footer
*/

/* External Stylesheets - @import statements MUST come before any CSS rules */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Allura&family=Manrope:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument%20Serif:wght@400;500;700&display=swap');

/* CSS Variables */
:root {
}

/* Inline Styles */

/* Extracted CSS from page */

:root {
  --ink: #0e1a18;
  --ink-soft: #2a3633;
  --muted: #6b7670;
  --line: #e4e0d7;
  --paper: #f6f2ea;
  --paper-deep: #efe9dc;
  --white: #ffffff;
  --brand: #0fb89a;
  --brand-deep: #0fb89a;
  --brand-tint: #d9f1ea;
  --accent-script: var(--brand);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, sans-serif;
  --script: 'Allura', cursive;
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Typography */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--brand);
}
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.h-display .script {
  font-family: var(--script);
  font-style: normal;
  color: var(--brand);
  font-size: 1.15em;
  line-height: 0.85;
  letter-spacing: 0;
  display: inline-block;
  transform: translateY(-0.04em);
  font-weight: 400;
  vertical-align: baseline;
}
.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}
.h-section .script {
  font-family: var(--script);
  color: var(--brand);
  font-size: 1.1em;
  display: inline-block;
  transform: translateY(-0.02em);
  vertical-align: baseline;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.4;
  color: var(--ink-soft);
  font-weight: 400;
}

/* Layout */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* HEADER */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.88);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 92px;
  width: auto;
  display: block;
}
nav.primary {
  display: flex;
  align-items: center;
  gap: 8px;
}
nav.primary a.navlink {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
nav.primary a.navlink:hover {
  background: var(--paper-deep);
}
nav.primary a.navlink.active {
  color: var(--brand-deep);
  background: var(--brand-tint);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-deep);
  color: var(--paper);
  border-color: var(--brand-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn .arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* HERO (home) */
.hero {
  padding: clamp(40px, 5vw, 70px) 0 clamp(80px, 10vw, 130px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.hero h1 {
  max-width: 12ch;
}
.hero .meta {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 12px;
}
.hero .lede {
  max-width: 36ch;
}
.stat-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--brand);
}
.stat-label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Marquee strip */
.marquee-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: scroll 38s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Section base */
section.block {
  padding: clamp(70px, 9vw, 140px) 0;
}
section.block.tight {
  padding: clamp(50px, 6vw, 90px) 0;
}
section.block.dark {
  background: var(--ink);
  color: var(--paper);
}
section.block.dark .h-section {
  color: var(--paper);
}
section.block.dark .lede {
  color: rgba(246, 242, 234, 0.72);
}
section.block.dark .eyebrow {
  color: var(--brand);
}
section.block.dark .eyebrow::before {
  background: var(--brand);
}
section.block.deep {
  background: var(--paper-deep);
}

/* Section header */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .h-section {
  max-width: 14ch;
}
.section-head .lede {
  max-width: 42ch;
}

/* Disciplines grid */
.disciplines {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.disc-card {
  padding: 48px 40px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  align-items: start;
  transition: background 0.2s ease;
  position: relative;
}
.disc-card:nth-child(2n) {
  border-right: none;
}
.disc-card:hover {
  background: var(--white);
}
.disc-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--brand);
  line-height: 1;
  padding-top: 4px;
}
.disc-title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.disc-body {
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 16px;
  max-width: 38ch;
}

/* Why work / value pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(246, 242, 234, 0.12);
  border: 1px solid rgba(246, 242, 234, 0.12);
}
.pillar {
  background: var(--ink);
  padding: 40px 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  transition: background 0.2s ease;
}
.pillar:hover {
  background: #142421;
}
.pillar-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--brand);
  letter-spacing: 0.1em;
}
.pillar-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  color: var(--paper);
  margin: 0 0 14px;
}
.pillar-body {
  color: rgba(246, 242, 234, 0.7);
  font-size: 15px;
  line-height: 1.55;
}

/* Big quote */
.quote-band {
  padding: clamp(70px, 10vw, 130px) 0;
  background: var(--paper);
}
.quote-band .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.18;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
  letter-spacing: -0.01em;
}
.quote-band .quote .script {
  font-family: var(--script);
  color: var(--brand);
  font-style: normal;
  font-size: 1.15em;
  line-height: 0.9;
  display: inline-block;
  transform: translateY(0.08em);
}

/* CTA band */
.cta-band {
  background: var(--brand);
  color: var(--ink);
  padding: clamp(80px, 10vw, 130px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band .h-section {
  color: var(--ink);
}
.cta-band .h-section .script {
  color: var(--ink);
}
.cta-band .lede {
  color: rgba(14, 26, 24, 0.75);
  max-width: 50ch;
  margin: 22px auto 36px;
}
.cta-band .btn {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cta-band .btn:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
/* keep CTA heading + script word readable regardless of tweak overrides */
.cta-band .h-section {
  color: var(--ink) !important;
}
.cta-band .h-section .script {
  color: #ffffff !important;
}
html.script-off .script {
  color: inherit;
  font-style: italic;
}

/* About hero */
.about-hero {
  padding: clamp(40px, 5vw, 70px) 0 clamp(40px, 5vw, 70px);
}
.about-hero .eyebrow {
  margin-bottom: 28px;
}
.about-hero h1 {
  max-width: 22ch;
  margin: 0;
  text-wrap: balance;
}
.about-hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.about-hero-stat {
  text-align: right;
  font-family: var(--serif);
}
.about-hero-stat .num {
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.9;
  color: var(--brand);
  display: block;
  margin-bottom: 6px;
}
.about-hero-stat .lbl {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.about-hero-bottom {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-hero-bottom .lede {
  max-width: 50ch;
  margin: 0;
}
.about-hero-bottom .meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
}
.about-hero-bottom .meta-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
}
.about-hero-bottom .meta-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* Profile card (About) — bio across the top, portrait + meta below */
.profile-section {
  padding: 20px 0 clamp(70px, 9vw, 130px);
}
.profile-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(14, 26, 24, 0.04),
    0 24px 60px -30px rgba(14, 26, 24, 0.15);
}
.profile-top {
  padding: 48px clamp(32px, 5vw, 64px) 40px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.profile-top .name-block .role-tag {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-deep);
  font-weight: 600;
  margin: 0 0 14px;
}
.profile-top .profile-name {
  font-family: var(--serif);
  font-size: clamp(48px, 5.5vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.profile-top .profile-title {
  font-family: var(--script);
  color: var(--brand);
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 0.9;
  display: block;
  margin-top: 4px;
}
.profile-top .profile-bio {
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.profile-top .profile-bio p {
  margin: 0 0 14px;
}
.profile-top .profile-bio p:last-child {
  margin-bottom: 0;
}
.profile-bottom {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  align-items: stretch;
}
.profile-portrait {
  background: linear-gradient(160deg, #e8d9c2 0%, #d8c5a8 50%, #bfa683 100%);
  position: relative;
  min-height: 460px;
  overflow: hidden;
}
.profile-portrait .pp-frame {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.profile-portrait .pp-photo {
  position: absolute;
  inset: 0;
  background-image: url('../images/sandy.jpg');
  background-size: cover;
  background-position: center 18%;
}
.profile-portrait .pp-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.profile-portrait .pp-overlay .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.profile-side {
  padding: 44px clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  background: var(--paper);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ps-num {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.ps-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
  max-width: 14ch;
}
.profile-pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--brand);
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.linkedin-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px 16px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
}
.linkedin-pill:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}
.linkedin-pill svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.linkedin-pill .lnk-label {
  display: inline;
  line-height: 1;
}
.linkedin-pill .lnk-label .sub {
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  margin-right: 8px;
}
.secondary-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.secondary-link:hover {
  color: var(--brand-deep);
  border-color: var(--brand-deep);
}

/* About narrative */
.narrative {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  padding: 0 0 clamp(70px, 9vw, 120px);
  align-items: start;
}
.narrative .label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.narrative .body p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 22px;
  color: var(--ink);
}
.narrative .body p:last-child {
  margin-bottom: 0;
}
.narrative .body em {
  color: var(--brand-deep);
  font-style: italic;
}

/* Industry marquee band */
.industry-band {
  background: var(--ink);
  color: var(--paper);
  padding: 36px 0 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.industry-band .ib-intro {
  padding: 0 var(--gutter) 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.industry-band .ib-intro .eyebrow {
  margin: 0;
  color: var(--brand);
}
.industry-band .ib-intro .eyebrow::before {
  background: var(--brand);
}
.industry-band .ib-intro p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.1vw, 17px);
  color: rgba(246, 242, 234, 0.65);
  margin: 0;
  max-width: 48ch;
}
.industry-band .ib-track-wrap {
  padding: 22px 0 26px;
  border-top: 1px solid rgba(246, 242, 234, 0.12);
}
.industry-band .marquee-track span {
  color: var(--paper);
}

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
  padding: clamp(60px, 8vw, 100px) 0;
}
.contact-side h1 {
  max-width: 10ch;
}
.contact-side .lede {
  max-width: 36ch;
  margin: 28px 0 40px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
}
.contact-list li {
  border-bottom: 1px solid var(--line);
}
.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-family: var(--serif);
  font-size: 22px;
  transition:
    color 0.15s ease,
    padding 0.2s ease;
}
.contact-list a:hover {
  color: var(--brand-deep);
  padding-left: 10px;
}
.contact-list .lbl {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

/* Contact form */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px clamp(28px, 3.6vw, 48px);
}
.form-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.form-card p.intro {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  outline: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand);
  background: var(--white);
}
.form-field textarea {
  min-height: 130px;
  resize: vertical;
}
.form-card .submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

/* Testimonials */
.testimonials {
  background: var(--paper-deep);
  padding: clamp(80px, 10vw, 130px) 0;
}
.test-head {
  margin-bottom: 60px;
  max-width: 24ch;
}
.test-grid {
  columns: 3;
  column-gap: 28px;
}
@media (max-width: 1024px) {
  .test-grid {
    columns: 2;
  }
}
@media (max-width: 640px) {
  .test-grid {
    columns: 1;
  }
}
.test-card {
  break-inside: avoid;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  margin: 0 0 28px;
  display: inline-block;
  width: 100%;
}
.test-card .quote-mark {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.5;
  color: var(--brand);
  display: block;
  margin-bottom: 12px;
}
.test-card .body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 22px;
}
.test-card .who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.test-card .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
}
.test-card .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.test-card .role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Footer */
footer.site {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(70px, 8vw, 100px) 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 60px;
}
.foot-logo img {
  width: 240px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px;
}
.foot-logo p.line {
  margin: 28px 0 0;
  color: rgba(246, 242, 234, 0.6);
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.5;
}
.foot-col h5 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.5);
  margin: 0 0 18px;
  font-weight: 600;
}
.foot-col a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: rgba(246, 242, 234, 0.88);
  transition: color 0.15s ease;
}
.foot-col a:hover {
  color: var(--brand);
}
.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 1px solid rgba(246, 242, 234, 0.2);
  background: transparent;
  color: var(--paper);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.social-icon svg {
  width: 18px;
  height: 18px;
}
.social-icon:hover {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--brand);
  transform: translateY(-2px);
}
.foot-bottom {
  border-top: 1px solid rgba(246, 242, 234, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(246, 242, 234, 0.5);
}
.foot-bottom a {
  color: rgba(246, 242, 234, 0.85);
}

/* Page transitions */
.page {
  display: none;
}
.page.active {
  display: block;
  animation: fadein 0.35s ease both;
}

/* ===== BLOG ===== */
.blog-hero {
  padding: clamp(40px, 5vw, 70px) 0 clamp(40px, 5vw, 70px);
}
.blog-hero h1 {
  max-width: 18ch;
  text-wrap: balance;
  margin: 0 0 36px;
}
.blog-hero .lede {
  max-width: 56ch;
}

.blog-list {
  padding: clamp(20px, 4vw, 60px) 0 clamp(70px, 9vw, 130px);
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.post-card {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(36px, 4vw, 56px) 0;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: padding 0.2s ease;
}
.post-card:last-child {
  border-bottom: 1px solid var(--line);
}
.post-card:hover {
  padding-left: 8px;
  padding-right: 8px;
}
.post-card .cover {
  aspect-ratio: 16/9;
  background: var(--paper-deep);
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  transition: transform 0.4s ease;
}
.post-card:hover .cover {
  transform: scale(1.015);
}
.post-card .meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.post-card .meta-row .pill {
  background: var(--brand-tint);
  color: var(--brand-deep);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.14em;
}
.post-card h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  max-width: 20ch;
  text-wrap: balance;
}
.post-card h3 a {
  color: var(--ink);
  transition: color 0.15s ease;
}
.post-card:hover h3 a {
  color: var(--brand-deep);
}
.post-card p.excerpt {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 42ch;
}
.post-card .read-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    gap 0.2s ease;
}
.post-card .read-link:hover {
  color: var(--brand-deep);
  border-color: var(--brand-deep);
  gap: 14px;
}

/* Article (single post) */
.article-hero {
  padding: clamp(50px, 7vw, 100px) 0 clamp(40px, 5vw, 70px);
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 32px;
  transition:
    color 0.15s ease,
    gap 0.2s ease;
}
.article-back:hover {
  color: var(--brand-deep);
  gap: 12px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.article-meta .pill {
  background: var(--brand-tint);
  color: var(--brand-deep);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.14em;
}
.article-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  max-width: 22ch;
  text-wrap: balance;
}
.article-deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 48ch;
}
.article-cover {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  margin: 36px 0 0;
  background-color: var(--paper-deep);
}
.article-body {
  max-width: 64ch;
  margin: clamp(50px, 6vw, 90px) auto clamp(70px, 9vw, 110px);
  padding: 0 var(--gutter);
}
.article-body p,
.article-body ul,
.article-body ol {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 24px;
}
.article-body p strong {
  color: var(--ink);
  font-weight: 700;
}
.article-body p em,
.article-body em {
  font-style: italic;
}
.article-body ul,
.article-body ol {
  padding-left: 22px;
}
.article-body li {
  margin-bottom: 10px;
}
.article-body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 48px 0 18px;
  color: var(--ink);
  max-width: 28ch;
  text-wrap: balance;
}
.article-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  color: var(--ink);
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.article-body p.signoff {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  margin-top: 40px;
}
.article-cta {
  background: var(--paper-deep);
  padding: clamp(50px, 7vw, 90px) 0;
  text-align: center;
}
.article-cta h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 8px;
  line-height: 1.1;
  font-weight: 400;
}
.article-cta p {
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* Related posts */
.related {
  padding: clamp(60px, 7vw, 100px) 0;
  border-top: 1px solid var(--line);
}
.related .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}
.related h4 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 36px);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.rel-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.rel-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.rel-card .rc-cover {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  background-color: var(--paper-deep);
}
.rel-card .rc-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.rel-card h5 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

@media (max-width: 960px) {
  .post-card,
  .related-grid,
  .rel-card {
    grid-template-columns: 1fr;
  }
  .post-card {
    gap: 24px;
    padding: 32px 0;
  }
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .section-head,
  .narrative,
  .contact-grid,
  .profile-top,
  .profile-bottom,
  .about-hero-top,
  .about-hero-bottom {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-hero-stat {
    text-align: left;
  }
  .disciplines {
    grid-template-columns: 1fr;
  }
  .disc-card {
    border-right: none;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  nav.primary {
    display: none;
  }
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .profile-portrait {
    min-height: 380px;
  }
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

:root {
  --ink: #0e1a18;
  --ink-soft: #2a3633;
  --muted: #6b7670;
  --line: #e4e0d7;
  --paper: #f6f2ea;
  --paper-deep: #efe9dc;
  --white: #ffffff;
  --brand: #0fb89a;
  --brand-deep: #0fb89a;
  --brand-tint: #d9f1ea;
  --accent-script: var(--brand);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, sans-serif;
  --script: 'Allura', cursive;
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0px;
  padding: 0px;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0px 0px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--brand);
}
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0px;
  color: var(--ink);
}
.h-display .script {
  font-family: var(--script);
  font-style: normal;
  color: var(--brand);
  font-size: 1.15em;
  line-height: 0.85;
  letter-spacing: 0px;
  display: inline-block;
  transform: translateY(-0.04em);
  font-weight: 400;
  vertical-align: baseline;
}
.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0px;
}
.h-section .script {
  font-family: var(--script);
  color: var(--brand);
  font-size: 1.1em;
  display: inline-block;
  transform: translateY(-0.02em);
  vertical-align: baseline;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.4;
  color: var(--ink-soft);
  font-weight: 400;
}
.wrap {
  max-width: var(--maxw);
  margin: 0px auto;
  padding: 0 var(--gutter);
}
header.site {
  position: sticky;
  top: 0px;
  z-index: 50;
  background: rgba(246, 242, 234, 0.88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 92px;
  width: auto;
  display: block;
}
nav.primary {
  display: flex;
  align-items: center;
  gap: 8px;
}
nav.primary a.navlink {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition:
    background 0.15s,
    color 0.15s;
}
nav.primary a.navlink:hover {
  background: var(--paper-deep);
}
nav.primary a.navlink.active {
  color: var(--brand-deep);
  background: var(--brand-tint);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s,
    color 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-deep);
  color: var(--paper);
  border-color: var(--brand-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn .arrow {
  transition: transform 0.2s;
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.hero {
  padding: clamp(40px, 5vw, 70px) 0px clamp(80px, 10vw, 130px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.hero h1 {
  max-width: 12ch;
}
.hero .meta {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 12px;
}
.hero .lede {
  max-width: 36ch;
}
.stat-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--brand);
}
.stat-label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.marquee-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 22px 0px;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: 38s linear 0s infinite normal none running scroll;
  white-space: nowrap;
  width: max-content;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
}
@keyframes scroll {
  0% {
    transform: translateX(0px);
  }
  100% {
    transform: translateX(-50%);
  }
}
section.block {
  padding: clamp(70px, 9vw, 140px) 0px;
}
section.block.tight {
  padding: clamp(50px, 6vw, 90px) 0px;
}
section.block.dark {
  background: var(--ink);
  color: var(--paper);
}
section.block.dark .h-section {
  color: var(--paper);
}
section.block.dark .lede {
  color: rgba(246, 242, 234, 0.72);
}
section.block.dark .eyebrow {
  color: var(--brand);
}
section.block.dark .eyebrow::before {
  background: var(--brand);
}
section.block.deep {
  background: var(--paper-deep);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .h-section {
  max-width: 14ch;
}
.section-head .lede {
  max-width: 42ch;
}
.disciplines {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px;
  border-top: 1px solid var(--line);
}
.disc-card {
  padding: 48px 40px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  align-items: start;
  transition: background 0.2s;
  position: relative;
}
.disc-card:nth-child(2n) {
  border-right-width: medium;
  border-right-style: none;
  border-right-color: currentcolor;
}
.disc-card:hover {
  background: var(--white);
}
.disc-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--brand);
  line-height: 1;
  padding-top: 4px;
}
.disc-title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  margin: 0px 0px 12px;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.disc-body {
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 16px;
  max-width: 38ch;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(246, 242, 234, 0.12);
  border: 1px solid rgba(246, 242, 234, 0.12);
}
.pillar {
  background: var(--ink);
  padding: 40px 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  transition: background 0.2s;
}
.pillar:hover {
  background: rgb(20, 36, 33);
}
.pillar-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--brand);
  letter-spacing: 0.1em;
}
.pillar-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  color: var(--paper);
  margin: 0px 0px 14px;
}
.pillar-body {
  color: rgba(246, 242, 234, 0.7);
  font-size: 15px;
  line-height: 1.55;
}
.quote-band {
  padding: clamp(70px, 10vw, 130px) 0px;
  background: var(--paper);
}
.quote-band .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.18;
  color: var(--ink);
  max-width: 22ch;
  margin: 0px auto;
  text-align: center;
  letter-spacing: -0.01em;
}
.quote-band .quote .script {
  font-family: var(--script);
  color: var(--brand);
  font-style: normal;
  font-size: 1.15em;
  line-height: 0.9;
  display: inline-block;
  transform: translateY(0.08em);
}
.cta-band {
  background: var(--brand);
  color: var(--ink);
  padding: clamp(80px, 10vw, 130px) 0px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band .h-section {
  color: var(--ink);
}
.cta-band .h-section .script {
  color: var(--ink);
}
.cta-band .lede {
  color: rgba(14, 26, 24, 0.75);
  max-width: 50ch;
  margin: 22px auto 36px;
}
.cta-band .btn {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cta-band .btn:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cta-band .h-section {
  color: var(--ink) !important;
}
.cta-band .h-section .script {
  color: rgb(255, 255, 255) !important;
}
html.script-off .script {
  color: inherit;
  font-style: italic;
}
.about-hero {
  padding: clamp(40px, 5vw, 70px) 0px;
}
.about-hero .eyebrow {
  margin-bottom: 28px;
}
.about-hero h1 {
  max-width: 22ch;
  margin: 0px;
  text-wrap: balance;
}
.about-hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.about-hero-stat {
  text-align: right;
  font-family: var(--serif);
}
.about-hero-stat .num {
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.9;
  color: var(--brand);
  display: block;
  margin-bottom: 6px;
}
.about-hero-stat .lbl {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.about-hero-bottom {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-hero-bottom .lede {
  max-width: 50ch;
  margin: 0px;
}
.about-hero-bottom .meta-list {
  list-style: none;
  padding: 0px;
  margin: 0px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
}
.about-hero-bottom .meta-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
}
.about-hero-bottom .meta-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  transform: translateY(-2px);
}
.profile-section {
  padding: 20px 0px clamp(70px, 9vw, 130px);
}
.profile-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    rgba(14, 26, 24, 0.04) 0px 1px 0px,
    rgba(14, 26, 24, 0.15) 0px 24px 60px -30px;
}
.profile-top {
  padding: 48px clamp(32px, 5vw, 64px) 40px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.profile-top .name-block .role-tag {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-deep);
  font-weight: 600;
  margin: 0px 0px 14px;
}
.profile-top .profile-name {
  font-family: var(--serif);
  font-size: clamp(48px, 5.5vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0px;
  color: var(--ink);
}
.profile-top .profile-title {
  font-family: var(--script);
  color: var(--brand);
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 0.9;
  display: block;
  margin-top: 4px;
}
.profile-top .profile-bio {
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0px;
}
.profile-top .profile-bio p {
  margin: 0px 0px 14px;
}
.profile-top .profile-bio p:last-child {
  margin-bottom: 0px;
}
.profile-bottom {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0px;
  align-items: stretch;
}
.profile-portrait {
  background: linear-gradient(
    160deg,
    rgb(232, 217, 194) 0%,
    rgb(216, 197, 168) 50%,
    rgb(191, 166, 131) 100%
  );
  position: relative;
  min-height: 460px;
  overflow: hidden;
}
.profile-portrait .pp-frame {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.profile-portrait .pp-photo {
  position: absolute;
  inset: 0px;
  background-image: url('../images/sandy.jpg');
  background-size: cover;
  background-position: center 18%;
}
.profile-portrait .pp-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.profile-portrait .pp-overlay .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.profile-side {
  padding: 44px clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  background: var(--paper);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ps-num {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.ps-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
  max-width: 14ch;
}
.profile-pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0px;
  padding-left: 16px;
  border-left: 2px solid var(--brand);
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.linkedin-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px 16px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    background 0.15s,
    transform 0.15s;
  white-space: nowrap;
}
.linkedin-pill:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}
.linkedin-pill svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.linkedin-pill .lnk-label {
  display: inline;
  line-height: 1;
}
.linkedin-pill .lnk-label .sub {
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  margin-right: 8px;
}
.secondary-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.secondary-link:hover {
  color: var(--brand-deep);
  border-color: var(--brand-deep);
}
.narrative {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  padding: 0px 0px clamp(70px, 9vw, 120px);
  align-items: start;
}
.narrative .label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.narrative .body p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  margin: 0px 0px 22px;
  color: var(--ink);
}
.narrative .body p:last-child {
  margin-bottom: 0px;
}
.narrative .body em {
  color: var(--brand-deep);
  font-style: italic;
}
.industry-band {
  background: var(--ink);
  color: var(--paper);
  padding: 36px 0px 0px;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.industry-band .ib-intro {
  padding: 0 var(--gutter) 28px;
  max-width: var(--maxw);
  margin: 0px auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.industry-band .ib-intro .eyebrow {
  margin: 0px;
  color: var(--brand);
}
.industry-band .ib-intro .eyebrow::before {
  background: var(--brand);
}
.industry-band .ib-intro p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.1vw, 17px);
  color: rgba(246, 242, 234, 0.65);
  margin: 0px;
  max-width: 48ch;
}
.industry-band .ib-track-wrap {
  padding: 22px 0px 26px;
  border-top: 1px solid rgba(246, 242, 234, 0.12);
}
.industry-band .marquee-track span {
  color: var(--paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
  padding: clamp(60px, 8vw, 100px) 0px;
}
.contact-side h1 {
  max-width: 10ch;
}
.contact-side .lede {
  max-width: 36ch;
  margin: 28px 0px 40px;
}
.contact-list {
  list-style: none;
  padding: 0px;
  margin: 0px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
}
.contact-list li {
  border-bottom: 1px solid var(--line);
}
.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-family: var(--serif);
  font-size: 22px;
  transition:
    color 0.15s,
    padding 0.2s;
}
.contact-list a:hover {
  color: var(--brand-deep);
  padding-left: 10px;
}
.contact-list .lbl {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px clamp(28px, 3.6vw, 48px);
}
.form-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0px 0px 8px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.form-card p.intro {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0px 0px 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  outline: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand);
  background: var(--white);
}
.form-field textarea {
  min-height: 130px;
  resize: vertical;
}
.form-card .submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}
.testimonials {
  background: var(--paper-deep);
  padding: clamp(80px, 10vw, 130px) 0px;
}
.test-head {
  margin-bottom: 60px;
  max-width: 24ch;
}
.test-grid {
  columns: 3;
  column-gap: 28px;
}
@media (max-width: 1024px) {
  .test-grid {
    columns: 2;
  }
}
@media (max-width: 640px) {
  .test-grid {
    columns: 1;
  }
}
.test-card {
  break-inside: avoid;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  margin: 0px 0px 28px;
  display: inline-block;
  width: 100%;
}
.test-card .quote-mark {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.5;
  color: var(--brand);
  display: block;
  margin-bottom: 12px;
}
.test-card .body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0px 0px 22px;
}
.test-card .who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.test-card .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
}
.test-card .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.test-card .role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
footer.site {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(70px, 8vw, 100px) 0px 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 60px;
}
.foot-logo img {
  width: 240px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px;
}
.foot-logo p.line {
  margin: 28px 0px 0px;
  color: rgba(246, 242, 234, 0.6);
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.5;
}
.foot-col h5 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.5);
  margin: 0px 0px 18px;
  font-weight: 600;
}
.foot-col a {
  display: block;
  padding: 6px 0px;
  font-size: 15px;
  color: rgba(246, 242, 234, 0.88);
  transition: color 0.15s;
}
.foot-col a:hover {
  color: var(--brand);
}
.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 242, 234, 0.2);
  background: transparent;
  color: var(--paper);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.15s;
  display: inline-flex !important;
  padding: 0px !important;
}
.social-icon svg {
  width: 18px;
  height: 18px;
}
.social-icon:hover {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--brand);
  transform: translateY(-2px);
}
.foot-bottom {
  border-top: 1px solid rgba(246, 242, 234, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(246, 242, 234, 0.5);
}
.foot-bottom a {
  color: rgba(246, 242, 234, 0.85);
}
.page {
  display: none;
}
.page.active {
  display: block;
  animation: 0.35s ease 0s 1 normal both running fadein;
}
.blog-hero {
  padding: clamp(40px, 5vw, 70px) 0px;
}
.blog-hero h1 {
  max-width: 18ch;
  text-wrap: balance;
  margin: 0px 0px 36px;
}
.blog-hero .lede {
  max-width: 56ch;
}
.blog-list {
  padding: clamp(20px, 4vw, 60px) 0px clamp(70px, 9vw, 130px);
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0px;
}
.post-card {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(36px, 4vw, 56px) 0px;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: padding 0.2s;
}
.post-card:last-child {
  border-bottom: 1px solid var(--line);
}
.post-card:hover {
  padding-left: 8px;
  padding-right: 8px;
}
.post-card .cover {
  aspect-ratio: 16 / 9;
  background-image:;
  background-repeat:;
  background-attachment:;
  background-origin:;
  background-clip:;
  background-color:;
  background-size: cover;
  background-position: center center;
  border-radius: 4px;
  transition: transform 0.4s;
}
.post-card:hover .cover {
  transform: scale(1.015);
}
.post-card .meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.post-card .meta-row .pill {
  background: var(--brand-tint);
  color: var(--brand-deep);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.14em;
}
.post-card h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0px 0px 18px;
  max-width: 20ch;
  text-wrap: balance;
}
.post-card h3 a {
  color: var(--ink);
  transition: color 0.15s;
}
.post-card:hover h3 a {
  color: var(--brand-deep);
}
.post-card p.excerpt {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  margin: 0px 0px 24px;
  max-width: 42ch;
}
.post-card .read-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition:
    color 0.15s,
    border-color 0.15s,
    gap 0.2s;
}
.post-card .read-link:hover {
  color: var(--brand-deep);
  border-color: var(--brand-deep);
  gap: 14px;
}
.article-hero {
  padding: clamp(50px, 7vw, 100px) 0px clamp(40px, 5vw, 70px);
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 32px;
  transition:
    color 0.15s,
    gap 0.2s;
}
.article-back:hover {
  color: var(--brand-deep);
  gap: 12px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.article-meta .pill {
  background: var(--brand-tint);
  color: var(--brand-deep);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.14em;
}
.article-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0px 0px 36px;
  max-width: 22ch;
  text-wrap: balance;
}
.article-deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0px 0px 12px;
  max-width: 48ch;
}
.article-cover {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center center;
  border-radius: 4px;
  margin: 36px 0px 0px;
  background-color: var(--paper-deep);
}
.article-body {
  max-width: 64ch;
  margin: clamp(50px, 6vw, 90px) auto clamp(70px, 9vw, 110px);
  padding: 0 var(--gutter);
}
.article-body p,
.article-body ul,
.article-body ol {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.65;
  color: var(--ink);
  margin: 0px 0px 24px;
}
.article-body p strong {
  color: var(--ink);
  font-weight: 700;
}
.article-body p em,
.article-body em {
  font-style: italic;
}
.article-body ul,
.article-body ol {
  padding-left: 22px;
}
.article-body li {
  margin-bottom: 10px;
}
.article-body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 48px 0px 18px;
  color: var(--ink);
  max-width: 28ch;
  text-wrap: balance;
}
.article-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  border-left: 3px solid var(--brand);
  padding: 4px 0px 4px 24px;
  margin: 32px 0px;
  color: var(--ink);
}
.article-body hr {
  border-right-width: medium;
  border-bottom-width: medium;
  border-left-width: medium;
  border-right-style: none;
  border-bottom-style: none;
  border-left-style: none;
  border-right-color: currentcolor;
  border-bottom-color: currentcolor;
  border-left-color: currentcolor;
  border-image: initial;
  border-top: 1px solid var(--line);
  margin: 40px 0px;
}
.article-body p.signoff {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  margin-top: 40px;
}
.article-cta {
  background: var(--paper-deep);
  padding: clamp(50px, 7vw, 90px) 0px;
  text-align: center;
}
.article-cta h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  margin: 0px 0px 8px;
  line-height: 1.1;
  font-weight: 400;
}
.article-cta p {
  color: var(--ink-soft);
  margin: 0px 0px 24px;
}
.related {
  padding: clamp(60px, 7vw, 100px) 0px;
  border-top: 1px solid var(--line);
}
.related .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}
.related h4 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 36px);
  margin: 0px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.rel-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.rel-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.rel-card .rc-cover {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center center;
  border-radius: 2px;
  background-color: var(--paper-deep);
}
.rel-card .rc-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.rel-card h5 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  margin: 0px;
  color: var(--ink);
}
@media (max-width: 960px) {
  .post-card,
  .related-grid,
  .rel-card {
    grid-template-columns: 1fr;
  }
  .post-card {
    gap: 24px;
    padding: 32px 0px;
  }
}
@keyframes fadein {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}
@media (max-width: 960px) {
  .hero-grid,
  .section-head,
  .narrative,
  .contact-grid,
  .profile-top,
  .profile-bottom,
  .about-hero-top,
  .about-hero-bottom {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-hero-stat {
    text-align: left;
  }
  .disciplines {
    grid-template-columns: 1fr;
  }
  .disc-card {
    border-right-width: medium;
    border-right-style: none;
    border-right-color: currentcolor;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  nav.primary {
    display: none;
  }
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .profile-portrait {
    min-height: 380px;
  }
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

/* WordPress-specific styles */
.wp-block-group {
  margin-bottom: 1rem;
}

.wp-block-image {
  margin-bottom: 1rem;
}

.wp-block-button {
  margin-bottom: 1rem;
}

/* CRITICAL: Reset WordPress default constraints that break layouts */
/* WordPress adds default max-width to containers which breaks original layouts */
.entry-content,
.site-content,
.content-area {
  max-width: none !important;
  width: 100% !important;
}

/* EC-CONTAIN-001: Only override .container / section max-width when the site's
   own CSS does NOT define them. Tailwind and Bootstrap sites intentionally set
   .container { max-width: … } — blasting it with !important breaks every section. */
.container {
  max-width: none !important;
}

/* EC-ANIM-008 / EC-ANIM-009: Scroll-reveal utilities (.scroll-fade-up etc.) start at opacity:0
   and transition to visible when an IntersectionObserver adds .visible (injected in functions.php).
   Carousels inside scroll-reveal wrappers must be forced visible immediately so Embla can measure. */
.scroll-fade-up:has([aria-roledescription='carousel']),
.scroll-fade-up:has([data-wpconvert-blog-filter-bar]),
.scroll-fade-left:has([aria-roledescription='carousel']),
.scroll-fade-right:has([aria-roledescription='carousel']),
.scroll-scale-in:has([aria-roledescription='carousel']) {
  opacity: 1 !important;
  transform: none !important;
}

/* EC-SCROLL-001: Auto-scroll marquee CSS (always included - lightweight, no-op if no marquee elements) */

/* EC-SCROLL-001: Auto-scroll gallery marquee animation */
/* Replaces React requestAnimationFrame/scrollLeft with pure CSS animation */
.wpconvert-marquee-container {
  overflow: hidden !important;
}
.wpconvert-marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: wpconvert-marquee 30s linear infinite;
}
@keyframes wpconvert-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* Pause on hover for accessibility */
.wpconvert-marquee-container:hover .wpconvert-marquee-track {
  animation-play-state: paused;
}
/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .wpconvert-marquee-track {
    animation: none;
    overflow-x: auto;
  }
}

/* EC-ANIM-011: Frozen Framer Motion infinite float/pulse animations replaced with CSS keyframes.
   4 float variants with staggered durations and amplitudes, plus a pulse variant. */
@keyframes wpconvert-float-1 {
  0%,
  100% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(8px);
  }
}
@keyframes wpconvert-float-2 {
  0%,
  100% {
    transform: translateY(6px);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes wpconvert-float-3 {
  0%,
  100% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(12px);
  }
}
@keyframes wpconvert-float-4 {
  0%,
  100% {
    transform: translateY(10px);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes wpconvert-pulse {
  0%,
  100% {
    scale: 1;
  }
  50% {
    scale: 1.05;
  }
}
@keyframes wpconvert-float-tilt {
  0%,
  100% {
    transform: translateY(0%) rotate(0deg);
  }
  50% {
    transform: translateY(4%) rotate(-2deg);
  }
}
.wpconvert-float-1 {
  animation: wpconvert-float-1 5s ease-in-out infinite;
}
.wpconvert-float-2 {
  animation: wpconvert-float-2 6s ease-in-out infinite 0.5s;
}
.wpconvert-float-3 {
  animation: wpconvert-float-3 5.5s ease-in-out infinite 1s;
}
.wpconvert-float-4 {
  animation: wpconvert-float-4 6.5s ease-in-out infinite 1.5s;
}
.wpconvert-pulse {
  animation: wpconvert-pulse 4s ease-in-out infinite;
}
.wpconvert-float-tilt {
  animation: wpconvert-float-tilt 6s ease-in-out infinite;
}
/* EC-ANIM-011c: z-0 override for centered pulse cards whose z-10 was demoted */
.wpconvert-pulse.z-0 {
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .wpconvert-float-1,
  .wpconvert-float-2,
  .wpconvert-float-3,
  .wpconvert-float-4,
  .wpconvert-pulse,
  .wpconvert-float-tilt {
    animation: none;
  }
}

/* WPConvert Tabs Component CSS */

/* WPConvert Tabs Component */
.wpconvert-tabs {
  max-width: 64rem;
  margin: 0 auto;
}

.wpconvert-tab-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .wpconvert-tab-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .wpconvert-tab-nav {
    grid-template-columns: repeat(6, 1fr);
  }
}

.wpconvert-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpconvert-tab-btn:hover {
  border-color: hsl(var(--primary) / 0.5);
  color: hsl(var(--foreground));
}

.wpconvert-tab-btn.active {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.wpconvert-tab-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.5rem;
}

.wpconvert-tab-icon svg {
  width: 100%;
  height: 100%;
}

.wpconvert-tab-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.wpconvert-tab-viewport {
  position: relative;
  display: flex;
  align-items: center;
}

.wpconvert-tab-content {
  flex: 1;
  position: relative;
}

.wpconvert-tab-panel {
  display: none;
  padding: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(
    135deg,
    hsl(var(--card)) 0%,
    hsl(var(--muted) / 0.3) 100%
  );
  border: 1px solid hsl(var(--border));
  text-align: center;
  animation: wpconvert-tab-fade-in 0.3s ease;
}

.wpconvert-tab-panel.active {
  display: block;
}

@keyframes wpconvert-tab-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wpconvert-tab-icon-large {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
  padding: 1rem;
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpconvert-tab-icon-large svg {
  width: 100%;
  height: 100%;
  color: hsl(var(--primary));
}

.wpconvert-tab-title {
  font-family: var(--font-display, inherit);
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .wpconvert-tab-title {
    font-size: 1.875rem;
  }
}

.wpconvert-tab-description {
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.wpconvert-tab-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.wpconvert-tab-arrow:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.wpconvert-tab-prev {
  left: -1rem;
}

@media (min-width: 640px) {
  .wpconvert-tab-prev {
    left: -1.5rem;
  }
}

.wpconvert-tab-next {
  right: -1rem;
}

@media (min-width: 640px) {
  .wpconvert-tab-next {
    right: -1.5rem;
  }
}

.wpconvert-tab-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.wpconvert-tab-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: hsl(var(--muted-foreground) / 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpconvert-tab-dot:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}

.wpconvert-tab-dot.active {
  background: hsl(var(--primary));
  width: 2rem;
  border-radius: 0.375rem;
}

/* EC-MSTEP-001: Multi-step form wizard CSS */

/* EC-MSTEP-001: Multi-step form wizard */
.wpconvert-multistep-form {
  width: 100%;
}
.wpconvert-step-panel {
  display: none;
}
.wpconvert-step-panel.active {
  display: block;
  animation: wpconvert-step-fade-in 0.25s ease;
}
@keyframes wpconvert-step-fade-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.wpconvert-step-progress-fill {
  transition: width 0.4s ease-out;
}
/* Signature canvas */
canvas[data-wpc-sig-init] {
  width: 100%;
  min-height: 150px;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 1rem;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

/* EC-CALC-001: Interactive calculator CSS */

/* EC-CALC-001: Interactive calculator */
[data-wpc-calc] input[type='range'] {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
[data-wpc-calc] input[type='range']:focus {
  outline: none;
}
[data-wpc-calc] [data-wpc-calc-toggle].wpc-calc-toggle-active {
  opacity: 1;
}
[data-wpc-calc] [data-wpc-calc-toggle]:not(.wpc-calc-toggle-active) {
  opacity: 0.6;
}

/* CRITICAL FIX: Ensure gradient overlays respect their default hidden state */
/* NOTE: The main fix is in cleanHtmlContent() which corrects captured hover states */
/* These CSS rules are a FALLBACK to ensure overlays stay hidden if any slip through */

/* Keep gradient overlays hidden - they're decorative hover effects */
.group [class*='absolute'][class*='inset-0'][class*='bg-gradient'].opacity-0 {
  opacity: 0 !important;
}

/* Keep bottom accent bars hidden by default */
.group [class*='absolute'][class*='bottom-0'][class*='bg-gradient'].scale-x-0 {
  transform: scaleX(0) !important;
}

/* Reset WordPress default margins that break spacing */
.entry-content > *:first-child,
.site-content > *:first-child {
  margin-top: 0 !important;
}

/* EC-DARK-001: In dark-themed sites (html.dark), containers with explicit bg-white
   backgrounds need dark text. The .dark scope sets --foreground to a light color,
   making text invisible on white cards. Reset to :root-scope (light) variable values. */
.dark .bg-white,
.dark [class*='bg-white'] {
  --foreground: 222.2 84% 4.9%;
  --muted-foreground: 215.4 16.3% 46.9%;
  color: hsl(222.2 84% 4.9%);
}
.dark .bg-white .text-foreground,
.dark [class*='bg-white'] .text-foreground,
.dark .bg-white [class*='text-foreground'],
.dark [class*='bg-white'] [class*='text-foreground'] {
  color: hsl(222.2 84% 4.9%);
}

/* Navigation Menu Styling - Universal for all dropdown patterns */
/* Reset ALL menu items */
.menu-item,
li.menu-item,
li.menu-item-type-post_type,
li.menu-item-type-custom,
li.menu-item-object-page,
li.menu-item-has-children {
  position: relative;
  list-style: none !important;
  margin: 0;
}

/* CRITICAL: Top-level menu MUST be horizontal - Maximum specificity */
/* NOTE: nav ul#wpconvert-primary-ul is NOT included here to avoid conflicting with .main-nav styling */
/* EC-NAV-095: Do NOT set gap here. A fixed gap with !important (previously 0.25rem, briefly 2rem) overrides
   menus.json ulClasses / Tailwind (e.g. gap-8) and breaks diverse nav densities. Spacing comes from ulClasses. */
header ul#wpconvert-primary-ul,
#wpconvert-primary-ul,
#wpconvert-primary-ul.menu,
ul#wpconvert-primary-ul.menu,
ul.menu:not(.submenu):not(.sub-menu) {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

/* CRITICAL: Preserve original .main-nav styling for static sites - MUST come AFTER generic rules */
/* MAXIMUM specificity with header prefix ensures this overrides ALL other rules */
header nav.main-nav ul#wpconvert-primary-ul,
header .main-nav ul#wpconvert-primary-ul,
nav.main-nav ul#wpconvert-primary-ul,
.main-nav #wpconvert-primary-ul,
.main-nav ul#wpconvert-primary-ul {
  /* Inherit the original .main-nav ul styles */
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

/* Preserve original .main-nav link styling */
header nav.main-nav ul#wpconvert-primary-ul a,
header .main-nav ul#wpconvert-primary-ul a,
nav.main-nav ul#wpconvert-primary-ul a,
.main-nav #wpconvert-primary-ul a,
.main-nav ul#wpconvert-primary-ul a {
  text-decoration: none;
  font-weight: 500;
}

/* CRITICAL: Top-level items MUST be inline - Maximum specificity for ALL WordPress classes */
/* NOTE: nav ul#wpconvert-primary-ul > li is NOT included to avoid conflicting with .main-nav */
header ul#wpconvert-primary-ul > li,
#wpconvert-primary-ul > li,
#wpconvert-primary-ul > li.menu-item,
#wpconvert-primary-ul > li.menu-item-type-post_type,
#wpconvert-primary-ul > li.menu-item-type-custom,
#wpconvert-primary-ul > li.menu-item-object-page,
#wpconvert-primary-ul > li.menu-item-object-custom,
#wpconvert-primary-ul > li.menu-item-has-children,
#wpconvert-primary-ul > li.current-menu-item,
#wpconvert-primary-ul > li.current_page_item,
#wpconvert-primary-ul > li.current-menu-ancestor,
#wpconvert-primary-ul.menu > li,
ul.menu:not(.submenu):not(.sub-menu) > li,
body #wpconvert-primary-ul > li {
  display: inline-block !important;
  position: relative !important;
  flex-shrink: 0 !important;
  list-style: none !important;
  margin: 0 !important;
  vertical-align: middle !important;
  float: none !important;
  width: auto !important;
  clear: none !important;
}

/* Top-level links maintain their button appearance */
#wpconvert-primary-ul > .menu-item > a {
  /* Keep original classes for styling */
}

/* Hide submenus by default with high z-index - CRITICAL for all sites */
/* EC-NAV-220: Layout & visibility properties stay !important so the
   hover-to-show behaviour overrides Tailwind's display:none / opacity:0
   defaults on sites without their own dropdown CSS. */
.menu-item.menu-item-has-children > .submenu,
.menu-item.menu-item-has-children > .sub-menu,
.menu-item-has-children > ul,
li.menu-item-has-children > ul {
  display: none !important; /* Important to override inline-flex and other display classes */
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 9999 !important; /* Higher than content */
  list-style: none !important;
  margin: 0 !important;
}
/* EC-NAV-220: Visual surface properties (background / border / shadow /
   padding / sizing) are emitted via :where(...) so the selector collapses
   to specificity (0,0,0). Any captured custom-submenu CSS rule with
   non-zero specificity (e.g. aura-lace .dropdown-menu with background
   var(--emerald)) automatically wins via the cascade so the author's
   luxury / dark-themed dropdown panel renders correctly.
   For sites WITHOUT captured dropdown CSS, these white-card defaults
   still apply because nothing else competes. */
:where(.menu-item.menu-item-has-children) > :where(.submenu),
:where(.menu-item.menu-item-has-children) > :where(.sub-menu),
:where(.menu-item-has-children) > :where(ul),
:where(li.menu-item-has-children) > :where(ul) {
  background: white;
  min-width: 200px;
  max-width: 500px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
}

/* Show on hover/focus - Maximum specificity to override everything */
.menu-item.menu-item-has-children:hover > .submenu,
.menu-item.menu-item-has-children:hover > .sub-menu,
.menu-item.menu-item-has-children:hover > ul,
.menu-item.menu-item-has-children:focus-within > .submenu,
.menu-item.menu-item-has-children:focus-within > .sub-menu,
.menu-item.menu-item-has-children:focus-within > ul,
li.menu-item-has-children:hover > ul,
li.menu-item-has-children:focus-within > ul {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Force submenu items to display as block - Override ALL WordPress and utility classes */
.submenu li,
.submenu .menu-item,
.submenu .menu-item-type-post_type,
.submenu .menu-item-type-custom,
.submenu .menu-item-object-page,
.submenu .menu-item-object-custom,
.submenu .current-menu-item,
.submenu .current_page_item,
ul.sub-menu li,
ul.sub-menu .menu-item,
body .submenu li {
  display: block !important;
  width: 100% !important;
  position: relative !important;
  flex-direction: column !important;
  list-style: none !important;
  float: none !important;
  clear: both !important;
}

.submenu .menu-item a,
.submenu a,
ul.sub-menu a {
  display: block !important;
  width: 100% !important;
  padding: 0.5rem 1rem !important;
  white-space: nowrap !important;
  text-align: left !important;
}

/* Override ANY utility classes that could break submenu layout */
.submenu .menu-item.inline-flex,
.submenu .menu-item.flex,
.submenu .menu-item.grid,
.submenu li.inline-flex,
.submenu li.flex,
.submenu li.grid,
.submenu .inline-flex,
.submenu .flex,
.submenu .grid {
  display: block !important;
  flex-direction: column !important;
}

.submenu .menu-item a.inline-flex,
.submenu .menu-item a.flex,
.submenu .menu-item a.grid,
.submenu a.inline-flex,
.submenu a.flex,
.submenu a.grid {
  display: block !important;
}

/* Ensure submenu container is vertical */
.submenu,
ul.sub-menu {
  flex-direction: column !important;
  display: block !important;
}

/* FLAT NAV ACTIVE STATE - For React/Vite sites converted to wp_nav_menu() */
/* EC-NAV-010: Dynamic current page highlighting */
/* The .wpconvert-active-link class is added by WPConvert_Flat_Menu_Walker to current page links */
.wpconvert-active-link {
  /* Default active styling - will be enhanced by extracted classes if available */
  font-weight: 600;
}

/* EC-NAV-010: When active link has text-primary class, override any text-foreground from base */
/* This ensures the active item shows the highlighted color (text-primary = green/brand color) */
a.wpconvert-active-link.text-primary,
.current-menu-item > a.text-primary,
.current_page_item > a.text-primary {
  color: hsl(var(--primary)) !important;
}

/* EC-NAV-010: Ensure inactive items don't get active color */
/* Links WITHOUT wpconvert-active-link should use text-foreground */
nav a.text-foreground:not(.wpconvert-active-link):not(.text-primary) {
  color: hsl(var(--foreground)) !important;
}

/* Also style current-menu-item for flat navs */
.current-menu-item > a,
.current_page_item > a,
a.current-menu-item,
a.wpconvert-active-link {
  /* The actual active styling comes from extracted activeLinkClasses */
  /* These are fallback styles if extraction doesn't provide specific classes */
}

/* Flat nav submenu styling */
.wpconvert-flat-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
  padding: 0.5rem 0;
  display: none;
  z-index: 9999;
}

.wpconvert-flat-submenu a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

/* EC-NAV-140: Large flat dropdowns flow into two columns (mega-style) without extra walker markup */
.wpconvert-flat-submenu--mega-cols-2 {
  min-width: min(640px, 92vw);
  column-count: 2;
  column-gap: 2.5rem;
  padding: 0.75rem 1.25rem !important;
}
.wpconvert-flat-submenu--mega-cols-2 > a {
  white-space: normal !important;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
/* Show flat submenu when parent <li> hovers (wp_nav_menu wraps items in li.menu-item-has-children) */
li.menu-item-has-children:hover > .wpconvert-flat-submenu,
li.menu-item-has-children:focus-within > .wpconvert-flat-submenu {
  display: block !important;
}

/* Hide Radix UI viewport containers and similar dropdown containers - Universal */
[data-radix-navigation-menu-viewport],
[class*='viewport'][data-state='open'],
[class*='popover'][data-state='open'],
.radix-navigation-menu-viewport,
nav > div[class*='absolute'][class*='top-full'] {
  display: none !important;
  visibility: hidden !important;
}

/* EC-DIALOG-001: Hide Radix Sheet/Dialog overlays and panels that survive into converted themes */
/* These are interactive React components captured in open state during snapshot */
[role='dialog'][class*='fixed'],
[data-radix-dialog-content][class*='fixed'],
div[data-state='open'][class*='fixed'][class*='inset-0'][class*='bg-black'],
div[data-state='open'][class*='fixed'][class*='inset-0'][class*='backdrop'] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .menu-item.menu-item-has-children > .submenu {
    position: static;
    box-shadow: none;
  }
}

/* CRITICAL: Ensure header and navigation are above hero/content sections */
/* Only apply relative positioning if nav is NOT sticky/fixed/absolute */
/* Exclude #wpconvert-mobile-nav — it must stay position:fixed as an overlay */
/* EC-NAV-190: Also exclude position:absolute overlay headers (Tailwind
   "absolute" utility class) — common in hero-overlay navbars (e.g.
   svg-to-site-magic-main: <header class="absolute inset-x-0 top-6 z-30 ...">).
   Without this exclusion, the !important rule below forces the absolute
   overlay header into normal flow, taking up its full height and pushing
   the hero section down by ~80px (visible as a white band above the navbar). */
header:not([class*='sticky']):not([class*='fixed']):not([class*='absolute']),
.site-header:not([class*='sticky']):not([class*='fixed']):not(
    [class*='absolute']
  ),
nav:not([class*='sticky']):not([class*='fixed']):not([class*='absolute']):not(
    #wpconvert-mobile-nav
  ),
[role='banner']:not([class*='sticky']):not([class*='fixed']):not(
    [class*='absolute']
  ),
[role='navigation']:not([class*='sticky']):not([class*='fixed']):not(
    [class*='absolute']
  ):not(#wpconvert-mobile-nav) {
  position: relative !important;
  z-index: 1000 !important;
}

/* Preserve sticky/fixed positioning for navs that have it */
/* CRITICAL: Ensure sticky/fixed actually works - add explicit CSS for common patterns */
nav[class*='sticky'],
nav[class*='fixed'],
header nav[class*='sticky'],
header nav[class*='fixed'],
header[class*='sticky'],
header[class*='fixed'],
.site-header[class*='sticky'],
.site-header[class*='fixed'] {
  z-index: 1000 !important; /* Keep z-index for visibility */
}

/* Explicit sticky positioning support - ensures it works even without Tailwind CSS loaded */
/* Only apply if sticky class is present and no explicit position override */
nav.sticky,
nav[class*='sticky']:not([style*='position']),
header nav.sticky,
header nav[class*='sticky']:not([style*='position']),
header.sticky,
header[class*='sticky']:not([style*='position']) {
  position: sticky !important;
}

/* Explicit fixed positioning support - ensures it works even without Tailwind CSS loaded */
nav.fixed,
nav[class*='fixed']:not([style*='position']),
header nav.fixed,
header nav[class*='fixed']:not([style*='position']),
header.fixed,
header[class*='fixed']:not([style*='position']) {
  position: fixed !important;
}

/* Common Tailwind patterns: sticky top-0, fixed top-0 */
nav[class*='sticky'][class*='top-0'],
nav[class*='fixed'][class*='top-0'],
header nav[class*='sticky'][class*='top-0'],
header nav[class*='fixed'][class*='top-0'],
header[class*='sticky'][class*='top-0'],
header[class*='fixed'][class*='top-0'] {
  top: 0 !important;
}

/* Fixed navs typically need full width */
nav[class*='fixed'][class*='w-full'],
nav[class*='fixed'][class*='top-0'],
header nav[class*='fixed'][class*='w-full'],
header nav[class*='fixed'][class*='top-0'],
header[class*='fixed'][class*='w-full'],
header[class*='fixed'][class*='top-0'] {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* Ensure hero and main content respect header z-index */
section[class*='hero'],
.hero,
main,
.site-main {
  position: relative;
  z-index: 1;
}

/* Theme-specific overrides */
/* Only apply relative if not sticky/fixed */
.site-header:not([class*='sticky']):not([class*='fixed']) {
  position: relative;
}

.site-main {
  margin-top: 0;
  padding-top: 0;
  min-height: 60vh;
}

/* Remove gap between fixed navbar and first content (white band under header).
 * Use :first-of-type (not :first-child): WP templates often have a whitespace text node
 * between <div id="primary"> and <section>, so section is never :first-child and rules
 * would silently fail (EC-NAV-086 follow-up). */
.site-main > section:first-of-type,
.site-main > div:first-of-type > section:first-of-type {
  margin-top: 0;
}

/* EC-NAV-086: Fixed nav + full-viewport hero (Tailwind min-h-screen) — React/Vite SPAs
 * stack the hero at document top with fixed nav overlaid; body/main background shows through
 * any empty band under the bar. Pull the first min-h-screen hero up by the header bar height
 * (--wpconvert-header-bar-height from header.php EC-NAV-100; fallback 4rem) so background layers
 * align with the original SPA.
 * Only on front-page template (body.front-page); skip sections with explicit pt-* / mt-* utilities.
 * :first-of-type required: newline/whitespace between #primary and hero <section> breaks :first-child. */
body.front-page
  .site-main
  #primary
  > section.min-h-screen:first-of-type:not([class*='pt-']):not([class*='mt-']),
body.front-page
  .site-main
  > div:first-of-type
  > section.min-h-screen:first-of-type:not([class*='pt-']):not([class*='mt-']) {
  /* Logged out: --wp-admin--admin-bar--height is unset → 0px. Logged in: WP sets 32px / 46px (782px). */
  margin-top: calc(
    -1 * var(--wpconvert-header-bar-height, 4rem) -
      var(--wp-admin--admin-bar--height, 0px)
  );
}

/* EC-NAV-089: Admin bar is fixed at top:0; in-flow content gets html { margin-top } but fixed nav does not,
 * so the site navbar sits under #wpadminbar. Offset primary fixed nav; exclude full-screen mobile drawer. */
body.admin-bar nav.fixed.top-0:not(#wpconvert-mobile-nav),
body.admin-bar nav.fixed[class*='top-0']:not(#wpconvert-mobile-nav) {
  top: var(--wp-admin--admin-bar--height, 32px) !important;
}

/* EC-NAV-087: Merged / blog / legacy CSS often sets body { padding-top: 5rem+ } as “clearance”
 * for fixed headers. With a fixed overlay nav, that padding does NOT move the bar — it only
 * pushes <main> down while body background shows through → white/cream band (~nav height) under
 * the bar. Stay Boost ships this in bundled style.css; EC-NAV-086 margin alone cannot cancel it. */
body.front-page {
  padding-top: 0 !important;
}

.site-footer {
  margin-top: auto;
}

/* EC-TW4-001: WordPress default style overrides */

body {
  line-height: 1.6;
}
body.wp-admin {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
}
/* EC-BTN-104: :where() = 0 specificity so Tailwind text-* utilities always win over these resets.
   Plain "a:hover { color: inherit }" can outrank .text-white on links (0,2,0 vs 0,1,0) and wash out hero CTAs. */
:where(a) {
  color: inherit;
  text-decoration: none;
}
:where(a:hover) {
  color: inherit;
}
/* EC-CSS-001: Long-hand padding-left/right (NOT shorthand 'padding: 0 20px') so
 * compound selectors like .container.hero-grid (which sets padding-top: 74px)
 * keep their vertical padding. The shorthand resets ALL four sides at the same
 * specificity, which on Dabster Labs caused the hero badge to slide under the
 * fixed 74px nav. Horizontal gutter (20px each side) unchanged; vertical
 * defaults to the browser's 0 — same effective behavior for sites that do not
 * set padding-top via another selector. */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
:where(button, .btn) {
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
/* EC-BTN-107: Disclosure/accordion toggle buttons (aria-expanded) must not be
   text-selectable. Otherwise a double-click or click-drag on a FAQ question
   label paints the browser's default blue text-selection highlight, which the
   user sees as a stray "bluish background" that appears on one click and clears
   on the next. Native <button>s are non-selectable and the source React FAQ is
   too. Scoped to button[aria-expanded] so ordinary buttons and selectable
   content elsewhere are untouched. */
button[aria-expanded] {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input,
textarea,
select {
  font-family: inherit;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}

/* Grid Layout & Sidebar Preservation - Ensures Bootstrap and other grid systems work properly */
.grid-layout-container {
  width: 100%;
  max-width: 100%;
}

/* Preserve Bootstrap row structure */
.grid-layout-container .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

/* Ensure Bootstrap columns work */
.grid-layout-container [class*='col-'] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Bootstrap column widths - responsive */
@media (min-width: 768px) {
  .grid-layout-container .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .grid-layout-container .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .grid-layout-container .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .grid-layout-container .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .grid-layout-container .col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  .grid-layout-container .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Mobile stacking for sidebars */
@media (max-width: 767px) {
  .grid-layout-container [class*='col-'] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Sidebar styling */
.grid-layout-container aside,
.grid-layout-container [class*='sidebar'] {
  padding: 20px;
}

/* CRITICAL: Disable popups marked by WPConvert - Universal for ALL popup libraries */
/* This targets ONLY popups we've marked, regardless of the library used */
/* Users can re-enable by overriding this CSS in Customizer → Additional CSS */
[data-wpconvert-popup-disabled='true'] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
  position: absolute !important;
  left: -99999px !important;
  transform: scale(0) !important;
}

/* Also hide child elements of disabled popups (for nested structures) */
[data-wpconvert-popup-disabled='true'] * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Disable popup overlay backgrounds (universal) */
[data-wpconvert-popup-disabled='true'].overlay,
[data-wpconvert-popup-disabled='true'][class*='overlay'],
[data-wpconvert-popup-disabled='true'][class*='backdrop'],
[data-wpconvert-popup-disabled='true'][class*='bg'] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* EC-FORM-004: Native <select> option list styling.
 *
 * Why: EC-FORMS-004 / EC-MSTEP-001C converts Radix shadcn comboboxes to
 * native <select> elements so the form submits as a real HTML form. Native
 * select-popups inherit the trigger element background, so on shadcn forms
 * with translucent inputs (e.g. bg-white slash 10), the option list paints
 * as a translucent panel that bleeds the parent form background and makes
 * options nearly unreadable.
 *
 * The rule below paints each option on a solid surface using the same
 * shadcn --card design tokens the rest of the theme already uses, so
 * dropdowns visually match the original SelectContent / bg-popover render.
 *
 * Safety:
 *   - Scoped strictly to select option / select optgroup — never leaks
 *     to custom popover divs.
 *   - hsl(var(--card, ...)) with fallbacks degrades cleanly on themes
 *     that do not define the variable.
 *   - Safari ignores option styling entirely (no DOM hook into the native
 *     popup) so this is a no-op there. Chrome/Edge/Firefox/Brave honour it.
 */
/* EC-FORM-004 / EC-FORM-004b: solid option surfaces — card tokens by default,
   popover tokens on dark booking sections (bg-secondary / needs-wiring forms). */
select option,
select optgroup,
.bg-secondary select option,
.bg-secondary select optgroup,
form[data-wpconvert-form] select option,
form[data-wpconvert-form] select optgroup {
  background-color: hsl(var(--popover, var(--card, 0 0% 100%)));
  color: hsl(var(--popover-foreground, var(--card-foreground, 222.2 84% 4.9%)));
}

/* CRITICAL: Tailwind Font Override - ensure custom fonts take precedence over Tailwind CDN */
/* Tailwind CDN generates CSS dynamically that can override static CSS, so we use !important */
/* No custom font classes detected */

/* EC-NAV-162b: Site CSS sets position:sticky on header — override WPConvert base relative reset.
   Non-Tailwind sites define fixed positioning in their stylesheet, not as a utility class.
   EC-NAV-197: selector includes :not([class*='absolute']) so specificity (0,4,0) ties the
   EC-NAV-190 safety-net; source-order then makes this override win the !important cascade. */
header:not([class*='sticky']):not([class*='fixed']):not([class*='absolute']) {
  position: sticky !important;
  z-index: 1000 !important;
}

/* EC-SPA-026: WordPress body_class() adds bare semantic tokens (page) to <body>.
   This converted site's own CSS hides those same class names (e.g. .page{display:none} for
   class-toggle SPA route containers / utility classes), so the rule also matches <body> and
   hides the ENTIRE document — a blank white screen in WordPress. The standalone site and the
   Puppeteer screenshot have no body_class(), so they render fine. <body> is never one of the
   site's route/utility containers, so re-assert its visibility. The compound body.<token>
   selector (0,1,1) beats the bare .<token> rule (0,1,0) regardless of stylesheet order. */
body.page {
  display: block !important;
}

/* EC-ANIM-008b / EC-ANIM-009: carousel-only override — scroll-reveal elements animate via IO in functions.php */
.scroll-fade-up:has([aria-roledescription='carousel']),
.scroll-fade-up:has([data-wpconvert-blog-filter-bar]),
.scroll-fade-left:has([aria-roledescription='carousel']),
.scroll-fade-right:has([aria-roledescription='carousel']),
.scroll-scale-in:has([aria-roledescription='carousel']) {
  opacity: 1 !important;
  transform: none !important;
}
