*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f4f2ee;
  --white: #ffffff;
  --ink: #0c0f14;
  --muted: #6b7280;
  --border: #ddd9d0;
  --rwdi-bg: #dce8f2;
  --rwdi-border: #b0c8de;
  --rwdi-text: #1a4a72;
  --rwdi-strong: #0c3358;
  --consult-bg: #ddf0e8;
  --consult-border: #a8dbc3;
  --consult-text: #0d5c38;
  --consult-body: #1a6b45;
  --accent: #1a4a72;
  --radius-card: 20px;
  --radius-btn: 10px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* .page / .page.active removed — WP handles routing via real URLs */


/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(244, 242, 238, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  cursor: pointer;
  display: flex;
  align-items: center;
}


.nav-logo img {
  height: 56px;
  width: auto;
  filter: invert(1) brightness(0);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  /* font-weight: 500; */
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--white) !important;
  background: var(--ink);
  padding: 9px 20px;
  border-radius: var(--radius-btn);
}

.nav-toggle {
  display: none;
}

.nav-overlay {
  display: none;
}

.nav-menu-wrapper {
  display: contents;
}

.sidebar-logo {
  display: none;
}

.nav-mobile-cta {
  display: none;
}

/* ── HOME HERO ── */
.home-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.home-hero .hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1485871981521-5b1fd3805eee?w=1800&q=85&auto=format&fit=crop') center/cover no-repeat;
  filter: grayscale(100%) contrast(1.3) brightness(0.8);
  z-index: 0;
}

.home-hero .hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(4, 6, 14, 0.9) 0%,
      rgba(4, 6, 14, 0.65) 50%,
      rgba(4, 6, 14, 0.2) 100%);
  z-index: 1;
}

.home-hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 300;
  line-height: 0.97;
  letter-spacing: -2px;
  color: #f0ede8;
  max-width: 760px;
  margin-bottom: 32px;
}

.home-hero h1 em {
  font-style: italic;
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin-bottom: 44px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-p {
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--ink);
  display: inline-block;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.btn-hero-s {
  font-size: 14px;
  font-weight: 400;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
  display: inline-block;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

/* Paired button hover states */
.btn-hero-p.btn-dimmed {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-weight: 400 !important;
}

.btn-hero-s.btn-lit {
  background: var(--white) !important;
  color: var(--ink) !important;
  border-color: var(--white) !important;
  font-weight: 600 !important;
}

.btn-pp.btn-dimmed {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.btn-ps.btn-lit {
  background: var(--white) !important;
  color: var(--ink) !important;
  border-color: var(--white) !important;
  font-weight: 500 !important;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero.contact-hero {
  min-height: 320px;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.3) brightness(0.8);
  z-index: 0;
}

.page-hero .hero-grad {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 48px;
  width: 100%;
}

.ph-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #f0ede8;
  max-width: 760px;
  margin-bottom: 22px;
}

.page-hero p {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.68);
  max-width: 580px;
  line-height: 1.82;
  margin-bottom: 32px;
}

.page-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-pp {
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--ink);
  display: inline-block;
}

.btn-ps {
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  font-size: 13px;
  font-weight: 400;
  padding: 11px 24px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.88);
  display: inline-block;
}

/* ── RWDI BAR ── */
.rwdi-bar {
  background: var(--rwdi-bg);
  border-top: 1px solid var(--rwdi-border);
  border-bottom: 1px solid var(--rwdi-border);
  padding: 36px 48px;
}

.rwdi-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.rwdi-logo-img {
  height: 56px;
  width: auto;
}

.rwdi-bar p {
  font-size: 17px;
  font-weight: 300;
  color: var(--rwdi-text);
  line-height: 1.7;
}

.rwdi-bar p strong {
  font-weight: 600;
  color: var(--rwdi-strong);
}

/* ── SPLIT ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.split-col {
  padding: 72px 56px;
}

.split-col+.split-col {
  border-left: 1px solid var(--border);
}

.split-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}

.split-col h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 18px;
}

.split-col p {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.82;
  margin-bottom: 24px;
}

.text-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.text-link::after {
  content: '\2192';
}

/* ── SECTIONS ── */
.section-wrap {
  /* border-bottom: 1px solid var(--border); */
  background: var(--bg);
}

.section-wrap.white {
  background: var(--white);
}

.section {
  padding: 80px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  line-height: 1.07;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  max-width: 660px;
  margin-bottom: 18px;
}

/* ── CARDS ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
}

.card-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 14px;
  display: block;
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.card p {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.72;
}

/* ── STATS ── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}

/* ── IMAGES ── */
.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.heritage-img {
  border-radius: var(--radius-card);
  height: 500px;
  background: url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?w=900&q=80&auto=format&fit=crop') center/cover;
  filter: grayscale(100%) contrast(1.08);
}

.story-img {
  border-radius: var(--radius-card);
  height: 460px;
  background: url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=900&q=80&auto=format&fit=crop') center/cover;
  filter: grayscale(100%) contrast(1.1);
}

/* ── CONSULTANT ── */
.consult-wrap {
  background: var(--consult-bg);
  border-top: 1px solid var(--consult-border);
  border-bottom: 1px solid var(--consult-border);
}

.consult-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 48px;
}

.consult-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--consult-text);
  margin-bottom: 14px;
  display: block;
}

.consult-inner h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--consult-text);
  margin-bottom: 14px;
}

.consult-inner p {
  font-size: 15px;
  font-weight: 300;
  color: var(--consult-body);
  line-height: 1.82;
  max-width: 680px;
}

/* ── FOOTER CTA ── */
.footer-cta-wrap {
  background: var(--ink);
}

.footer-cta--form {
  flex-direction: column;
  align-items: flex-start;
}

.footer-cta-wrap .form-field {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-cta-wrap .form-field label {
  color: rgba(240, 237, 232, 0.7);
}

.footer-cta-wrap .form-field .opt {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
}

.footer-cta-wrap .btn-submit {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

.footer-cta-wrap .form-field input,
.footer-cta-wrap .form-field select,
.footer-cta-wrap .form-field textarea {
  color: #f0ede8;
}

.footer-cta--form>p {
  margin-bottom: 8px;
}

.footer-cta-sub {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 300 !important;
  color: rgba(240, 237, 232, 0.65) !important;
  letter-spacing: 0 !important;
  margin-bottom: 28px !important;
  max-width: 520px;
}

.footer-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 760px;
}

.footer-form-grid .form-field--wide {
  grid-column: 1 / -1;
}

.footer-form-grid .form-field label {
  color: rgba(240, 237, 232, 0.7);
  font-size: 12px;
}

.footer-form-grid .form-field input,
.footer-form-grid .form-field select,
.footer-form-grid .form-field textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f0ede8;
}

.footer-form-grid .form-field input::placeholder,
.footer-form-grid .form-field textarea::placeholder {
  color: rgba(240, 237, 232, 0.35);
}

.footer-form-grid .form-field select option {
  background: #1a1e2e;
  color: #f0ede8;
}

.footer-form-grid .form-field input:focus,
.footer-form-grid .form-field select:focus,
.footer-form-grid .form-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.footer-form-grid .req {
  color: var(--accent);
  font-size: 11px;
}

.footer-cta {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-cta p {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  color: #f0ede8;
  letter-spacing: -0.4px;
}

.footer-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-fp {
  font-size: 13px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--ink);
  display: inline-block;
}

.btn-fs {
  font-size: 13px;
  font-weight: 400;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.88);
  display: inline-block;
}

/* ── PLATFORM ── */
.platform-product {
  padding: 72px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.platform-product h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 14px;
}

.platform-product p {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  max-width: 680px;
}

.platform-divider {
  height: 1px;
  background: var(--border);
}

.ibex-flow {
  padding: 72px 48px;
}

.ibex-flow-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.ibex-layer {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.ibex-layer-label {
  padding: 40px 32px;
  display: flex;
  align-items: flex-start;
  border-right: 1px solid var(--border);
}

.ibex-layer--sensing .ibex-layer-label {
  background: #f7f9f8;
}

.ibex-layer--algorithm .ibex-layer-label {
  background: #f5f6fb;
}

.ibex-layer--dashboard .ibex-layer-label {
  background: #f6f8fc;
}

.ibex-layer-content {
  padding: 40px 48px;
}

.ibex-layer-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}

.ibex-layer-content p {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  max-width: 580px;
}

.ibex-flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 90px;
  margin: 0;
  position: relative;
}

.ibex-flow-arrow-line {
  width: 1px;
  height: 56px;
  background: var(--border);
}

.ibex-flow-arrow-head {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--border);
  margin-left: -5px;
}

.ibex-flow-arrow-label {
  position: absolute;
  left: 100px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ibex-flow {
    padding: 40px 24px;
  }

  .ibex-layer {
    grid-template-columns: 1fr;
  }

  .ibex-layer-label {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px;
  }

  .ibex-layer-content {
    padding: 24px;
  }

  .ibex-flow-arrow {
    padding-left: 32px;
  }

  .ibex-flow-arrow-label {
    display: none;
  }
}

/* ── FORM ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
  max-width: 760px;
}

.form-field,
.hs-form-field {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}

.form-field label,
.hs-form-field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.form-field input,
.form-field select,
.form-field textarea,
.hs-form-field .hs-input {
  width: 100%;
  background: transparent;
  border: none !important;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
}

.form-field textarea,
.hs-form-field textarea.hs-input {
  resize: vertical;
  min-height: 96px;
}

.form-full {
  grid-column: 1/-1;
}

.btn-submit,
.hs-submit input.hs-button,
.hs-button {
  font-size: 14px;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: opacity 0.15s;
}

.btn-submit:hover,
.hs-submit input.hs-button:hover,
.hs-button:hover {
  opacity: 0.9;
}

/* HubSpot Form Layout & Spacing */
.hs-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.hs-form-row,
.hs-submit,
.hs-error-msgs {
  grid-column: 1 / -1;
}

.hs-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hs-form-row>.hs-form-field:only-child {
  grid-column: 1 / -1;
}

.hs-form .hs-field-desc,
.hs-form .hs-error-msg {
  font-size: 11px;
  margin-top: 4px;
}

.hs-form .hs-error-msg {
  color: #d93838;
}

.hs-form ul.hs-error-msgs {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Style overrides for HubSpot forms on dark backgrounds (inside footer CTA) */
.footer-cta-wrap .hs-form-field {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-cta-wrap .hs-form-field label {
  color: rgba(240, 237, 232, 0.7);
}

.footer-cta-wrap .hs-form-field .hs-input {
  color: #f0ede8;
}

.footer-cta-wrap .hs-submit input.hs-button,
.footer-cta-wrap .hs-button {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

/* ── HubSpot hs-form-frame embed — dark (footer) context ── */
.footer-cta-wrap .hs-form-frame {
  width: 100%;
  max-width: 760px;
  min-height: 220px;
  border: none;
  display: block;
  margin-top: 8px;
}

/* ── CONTACT FORM BLOCK ── */
.contact-form-wrap {
  max-width: 760px;
  margin-left: 0;
  margin-right: auto;
}

.contact-form-header {
  margin-bottom: 32px;
}

.contact-form-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 300;
  letter-spacing: -1.5px;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 16px;
}

.contact-form-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.82;
  max-width: 580px;
}

.contact-form-embed {
  width: 100%;
}

/* ── HubSpot hs-form-frame embed — light (contact page) context ── */
.contact-form-embed .hs-form-frame {
  width: 100%;
  min-height: 480px;
  border: none;
  display: block;
}

/* HubSpot iframe itself — remove default border/bg */
.hs-form-frame iframe {
  border: none !important;
  width: 100% !important;
}

/* ── HubSpot Forms CSS variables for Iframe / Shadow DOM styling ── */
:root {
  /* Global form styles */
  --hsf-global__font-family: var(--font-body) !important;
  --hsf-global__font-size: 14px !important;
  --hsf-global__color: var(--ink) !important;
  --hsf-row__horizontal-spacing: 14px !important;
  --hsf-row__vertical-spacing: 14px !important;

  /* Form background */
  --hsf-background__background-color: transparent !important;
  --hsf-background__padding: 0 !important;

  /* Text field inputs default styling */
  --hsf-field-input__background-color: var(--white) !important;
  --hsf-field-input__border-style: solid !important;
  --hsf-field-input__border-width: 1px !important;
  --hsf-field-input__border-color: var(--border) !important;
  --hsf-field-input__border-radius: 12px !important;
  --hsf-field-input__padding: 14px 18px !important;
  --hsf-field-input__color: var(--ink) !important;
  --hsf-field-input__font-size: 14px !important;
  --hsf-field-input__font-weight: 300 !important;

  /* Field Labels (placed above/outside the inputs) */
  --hsf-field-label__color: var(--muted) !important;
  --hsf-field-label__font-size: 10px !important;
  --hsf-field-label__font-weight: 700 !important;
  --hsf-field-label__letter-spacing: 1.5px !important;
  --hsf-field-label__text-transform: uppercase !important;
  --hsf-field-label__margin-bottom: 6px !important;
  --hsf-field-label-requiredindicator__color: var(--accent) !important;

  /* Submit Buttons default styling */
  --hsf-button__background-color: var(--ink) !important;
  --hsf-button__color: var(--white) !important;
  --hsf-button__border-radius: var(--radius-btn) !important;
  --hsf-button__padding: 13px 30px !important;
  --hsf-button__font-weight: 600 !important;
  --hsf-button__border-style: none !important;
  --hsf-button__width: auto !important;

  /* Hover states */
  --hsf-button--hover__background-color: var(--ink) !important;
  --hsf-button--hover__color: var(--white) !important;
  --hsf-button--hover__opacity: 0.9 !important;
}

/* ── Light theme context variable overrides (Contact Page Form) ── */
.contact-form-wrap {
  --hsf-global__color: var(--ink) !important;
  --hsf-field-input__background-color: var(--white) !important;
  --hsf-field-input__border-color: var(--border) !important;
  --hsf-field-input__color: var(--ink) !important;
  --hsf-field-label__color: var(--muted) !important;
  --hsf-button__background-color: var(--ink) !important;
  --hsf-button__color: var(--white) !important;
}

/* ── Dark theme context variable overrides (Footer CTA Form) ── */
.footer-cta-wrap {
  --hsf-global__color: #f0ede8 !important;
  --hsf-field-input__background-color: rgba(255, 255, 255, 0.08) !important;
  --hsf-field-input__border-color: rgba(255, 255, 255, 0.15) !important;
  --hsf-field-input__color: #f0ede8 !important;
  --hsf-field-label__color: rgba(255, 255, 255, 0.9) !important;
  --hsf-button__background-color: var(--accent) !important;
  --hsf-button__color: var(--white) !important;
  --hsf-button__border-radius: 8px !important;
  --hsf-button__padding: 14px 32px !important;
  --hsf-button__width: 100% !important;

  --hsf-button--hover__background-color: var(--accent) !important;
  --hsf-button--hover__color: var(--white) !important;
}

/* ── Direct Class Overrides for Raw/DOM Form Rendering ── */

/* 1. Form Containers & Grid Layout */
.hsfc-Form,
.hs-form {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.hsfc-Step,
.hsfc-Step__Content {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.hsfc-Row,
.hs-form-row {
  display: flex !important;
  gap: 14px !important;
  width: 100% !important;
}

.hsfc-Row>div,
.hs-form-row>div,
.hs-form-field {
  flex: 1 !important;
  min-width: 0 !important;
}

@media (max-width: 600px) {

  .hsfc-Row,
  .hs-form-row {
    flex-direction: column !important;
    gap: 14px !important;
  }
}

/* 2. Outer wrapper reset (Keep wrappers clean, no background or border) */
.hsfc-TextField,
.hsfc-EmailField,
.hsfc-DropdownField,
.hsfc-NumberField,
.hs-form-field {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 3. Inputs (This is where backgrounds and borders are applied, keeping labels outside) */



.hsfc-TextInput,
.hsfc-TextInput--button,
.hs-input,
.hs-form-field select,
.hs-form-field textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  margin: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  color: var(--ink) !important;
  line-height: 1.4 !important;
  height: 52px !important;
  /* Fixed height for consistent alignment */
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.hsfc-TextInput:focus,
.hsfc-TextInput--button:focus,
.hs-input:focus {
  border-color: rgba(6, 10, 20, 0.4) !important;
}

/* 4. Labels */
.hsfc-FieldLabel,
.hs-form-field label {
  display: block !important;
  font-family: var(--font-body) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  margin-bottom: 6px !important;
  padding: 0 !important;
  order: -1 !important;
  /* Ensures label sits at the top */
}

.hsfc-FieldLabel__RequiredIndicator,
.hs-form-field label .hs-form-required {
  color: var(--accent) !important;
  margin-left: 2px !important;
}

/* 5. Dropdowns styling */
.hsfc-DropdownInput {
  position: relative !important;
  width: 100% !important;
}

.hsfc-DropdownOptions {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  z-index: 100 !important;
}

/* 6. Legal Consent & Privacy Checkboxes */
.hsfc-CheckboxField,
.hs-dependent-field {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.hsfc-CheckboxField label,
.hs-dependent-field label {
  text-transform: none !important;
  font-weight: 300 !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  color: var(--muted) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  margin-bottom: 0 !important;
}

.hsfc-CheckboxInput,
input[type="checkbox"] {
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  cursor: pointer !important;
}

.hsfc-DataPrivacyField {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  font-size: 13px !important;
  color: var(--muted) !important;
  margin-top: 10px !important;
}

.hsfc-DataPrivacyField .hsfc-RichText {
  font-size: 13px !important;
  color: var(--muted) !important;
  line-height: 1.6 !important;
}

/* 7. Buttons */
.hsfc-NavigationRow,
.hs-submit {
  display: flex !important;
  justify-content: flex-start !important;
  margin-top: 10px !important;
}

.hsfc-Button,
.hs-button,
.hs-submit input.hs-button {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 13px 30px !important;
  border-radius: var(--radius-btn) !important;
  background: var(--ink) !important;
  color: var(--white) !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-block !important;
  transition: opacity 0.15s !important;
  width: auto !important;
  height: auto !important;
}

.hsfc-Button:hover,
.hs-button:hover,
.hs-submit input.hs-button:hover {
  opacity: 0.9 !important;
}

/* ── Dark Theme Overrides (Inside footer CTA) ── */
.footer-cta-wrap .hsfc-TextInput,
.footer-cta-wrap .hsfc-TextInput--button,
.footer-cta-wrap .hs-input,
.footer-cta-wrap select,
.footer-cta-wrap textarea {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f0ede8 !important;
}

.footer-cta-wrap .hsfc-TextInput:focus,
.footer-cta-wrap .hsfc-TextInput--button:focus,
.footer-cta-wrap .hs-input:focus {
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.footer-cta-wrap .hsfc-FieldLabel,
.footer-cta-wrap .hs-form-field label {
  color: rgba(255, 255, 255, 0.9) !important;
}

.footer-cta-wrap .hsfc-Button,
.footer-cta-wrap .hs-button,
.footer-cta-wrap .hs-submit input.hs-button {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  padding: 14px 32px !important;
  width: 100% !important;
}

.footer-cta-wrap .hsfc-CheckboxField label,
.footer-cta-wrap .hs-dependent-field label,
.footer-cta-wrap .hsfc-DataPrivacyField,
.footer-cta-wrap .hsfc-DataPrivacyField .hsfc-RichText {
  color: rgba(240, 237, 232, 0.5) !important;
}

/* ── Responsive: contact form stacks on mobile ── */
@media (max-width: 900px) {
  .contact-form-wrap {
    max-width: 100%;
  }

  .contact-form-heading {
    font-size: clamp(28px, 7vw, 40px);
  }

  .contact-form-sub {
    max-width: 100%;
  }
}


/* ── SITE FOOTER (WordPress) ── */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 48px;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer-logo img {
  height: 40px;
  width: auto;
}

.site-footer-copy {
  font-size: 12px;
  color: rgba(240, 237, 232, 0.45);
  font-weight: 400;
}

.site-footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer-nav a {
  font-size: 12px;
  color: rgba(240, 237, 232, 0.5);
  font-weight: 400;
  transition: color 0.15s;
}

.site-footer-nav a:hover {
  color: rgba(240, 237, 232, 0.9);
}

/* ── PRODUCT STEPS (How It Works block) ── */
.product-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.product-step:last-child {
  border-bottom: none;
}

.product-step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  padding-top: 4px;
}

.product-step-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.product-step-body p {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.82;
}

.product-step-img {
  margin-top: 24px;
  border-radius: var(--radius-card);
  max-width: 100%;
  height: auto;
}

.product-step-img--wide {
  width: 100%;
}

/* ── IBEX GATED BLOCK ── */
.ibex-gated-block {
  transition: box-shadow 0.2s;
}

.ibex-gated-block:hover {
  box-shadow: 0 4px 24px rgba(12, 15, 20, 0.08);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 24px;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .navbar {
    padding: 0 24px;
    height: 68px;
  }

  .nav-logo img {
    height: 52px;
  }

  /* Hamburger Menu Toggle */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 210;
  }

  .nav-toggle .hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--ink);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, width 0.3s ease;
  }

  .navbar.nav-open .nav-toggle .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.nav-open .nav-toggle .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 0;
  }

  .navbar.nav-open .nav-toggle .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Overlay Background */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(12, 15, 20, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 190;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Sidebar Menu Wrapper */
  .nav-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background: var(--white);
    box-shadow: 4px 0 24px rgba(12, 15, 20, 0.15);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    overflow-y: auto;
    padding: 40px 22px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .navbar.nav-open .nav-menu-wrapper {
    transform: translateX(0);
  }

  /* Sidebar Logo */
  .sidebar-logo {
    display: block;
  }

  .sidebar-logo img {
    height: 77px;
    display: block;
  }

  /* Navbar Mobile CTA (Get in Touch) */
  .nav-mobile-cta {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--white) !important;
    background: var(--ink);
    padding: 8px 16px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    margin-left: auto;
    margin-right: 16px;
    white-space: nowrap;
  }

  /* Sidebar Links List */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    display: block !important;
  }

  .nav-links li a {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    color: var(--ink);
  }

  /* Dropdown Menu on Mobile */
  .nav-links .nav-dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .nav-links .nav-dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-left: 8px;
  }

  .nav-links li.active-dropdown .nav-dropdown-toggle::after {
    transform: rotate(-135deg);
  }

  .nav-links .nav-dropdown-menu {
    position: static;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 16px;
    min-width: 0;
    margin-top: 0;
    pointer-events: none;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.3s ease;
  }

  .nav-links li.active-dropdown .nav-dropdown-menu {
    max-height: 200px;
    opacity: 1;
    margin-top: 8px;
    pointer-events: auto;
  }

  .nav-links .nav-dropdown-menu li a {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    padding: 6px 0;
    white-space: normal;
  }

  /* Hide the desktop nav-cta in the mobile sidebar links */
  .nav-links .nav-cta {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .home-hero .hero-inner {
    padding: 56px 24px;
  }

  .page-hero .hero-content {
    padding: 48px 24px;
  }

  .rwdi-bar {
    padding: 28px 24px;
  }

  .rwdi-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split-col {
    padding: 44px 24px;
  }

  .split-col+.split-col {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .section {
    padding: 56px 24px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .heritage-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .consult-inner {
    padding: 44px 24px;
  }

  .footer-cta {
    padding: 40px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-form-grid,
  .hs-form,
  .hs-form-row {
    grid-template-columns: 1fr !important;
  }

  .platform-product {
    padding: 52px 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact page &mdash; centered form */
#page-contact .page-hero {
  min-height: 200px;
}

#page-platform .page-hero {
  min-height: 75vh;
}

.contact-centered {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: var(--bg);
}

.contact-inner {
  width: 100%;
  max-width: 720px;
}

.contact-h {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 14px;
  margin-top: 10px;
}

.contact-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

/* Gate Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(12, 15, 20, 0.55);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 44px;
  position: relative;
}

.modal-box h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}

.modal-box p.modal-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.modal-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-fields {
  grid-template-columns: 1fr;
}

.modal-field {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}

.modal-field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.modal-field input,
.modal-field select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
}

.modal-submit {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  padding: 14px;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  margin-top: 4px;
}

.modal-submit:hover {
  opacity: 0.88;
}

/* ── News cards ── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s;
  min-width: 0;
}

.news-card:hover {
  box-shadow: 0 4px 24px rgba(12, 15, 20, 0.07);
}

.news-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.news-type--blog {
  background: #eef2ff;
  color: #4356a0;
}

.news-type--press {
  background: #f0faf4;
  color: #2a7a4b;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.3px;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.news-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  flex: 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.news-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.news-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.news-link:hover {
  text-decoration: underline;
}

/* ── Resource cards ── */
/* .resource-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
} */

.resource-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  margin-top: 32px;
  min-width: 0;
}

.resource-card-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--ink);
  color: #f0ede8;
  padding: 40px 24px;
}

.resource-card-visual svg {
  width: 48px;
  height: 48px;
  opacity: 0.7;
}

.resource-card-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
}

.resource-card-visual--ebook {
  background: linear-gradient(145deg, #0e1628 0%, #1e2d4a 100%);
}

.resource-card-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.resource-card-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.resource-card-body p {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.resource-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0 !important;
}

/* ── Shared section label ── */
.resource-section-wrap {
  margin-bottom: 64px;
}

.resource-section-wrap:last-child {
  margin-bottom: 0;
}

.resource-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.resources-intro {
  margin-bottom: 0;
}

.resources-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.resources-intro p {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    grid-template-columns: 1fr;
  }

  .resource-card-visual {
    padding: 32px;
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* ── Nav dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 5px;
  vertical-align: middle;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(-135deg) translateY(-2px);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(12, 15, 20, 0.1);
  padding: 8px 8px 8px;
  padding-top: 20px;
  margin-top: 0;
  min-width: 200px;
  list-style: none;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown-menu li a {
  display: block;
  font-size: 13px;
  color: var(--ink);
  font-weight: 400;
  padding: 10px 16px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s;
}

.nav-dropdown-menu li a:hover {
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
}

/* ── Press article page ── */
.press-article {
  max-width: 740px;
  margin: 0 auto;
}

.press-for-release {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: -20px 0 32px;
}

.press-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.press-article-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  background: #f0faf4;
  color: #2a7a4b;
  padding: 4px 10px;
  border-radius: 4px;
}

.press-article-date {
  font-size: 12px;
  color: var(--muted);
}

.press-article-image {
  margin-bottom: 40px;
}

.press-article-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}

.press-article-body p {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.85;
  margin-bottom: 22px;
}

.press-article-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.3px;
  margin: 40px 0 16px;
}

.press-quote {
  border-left: 3px solid var(--accent);
  margin: 36px 0;
  padding: 4px 0 4px 28px;
}

.press-quote p,
.press-quote {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}

.press-quote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
  margin-top: 12px;
}

.press-email {
  color: var(--accent);
  text-decoration: none;
}

.press-email:hover {
  text-decoration: underline;
}

.press-boilerplate {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.press-boilerplate-item h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.press-boilerplate-item p {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.press-article-back {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ── Product step images ── */
.product-step-img {
  display: block;
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  margin-top: 24px;
  box-shadow: 0 4px 24px rgba(12, 15, 20, 0.1);
}

.product-step-img--wide {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(12, 15, 20, 0.15);
}

/* ── Product steps ── */
.product-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.product-step:last-child {
  border-bottom: none;
}

.product-step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  padding-top: 4px;
}

.product-step-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.product-step-body p {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  max-width: 580px;
}

/* ── Site footer ── */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 48px;
  /* display: flex; */
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer-copy {
  font-size: 12px;
  color: rgba(240, 237, 232, 0.4);
  font-weight: 300;
}

.site-footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer-nav a {
  font-size: 12px;
  color: rgba(240, 237, 232, 0.4);
  font-weight: 300;
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer-nav a:hover {
  color: rgba(240, 237, 232, 0.8);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ── News & Resources ── */
.resource-section-wrap {
  margin-bottom: 64px;
}

.resource-section-wrap:last-child {
  margin-bottom: 0;
}

.resource-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.resources-intro {
  margin-bottom: 0;
}

.resources-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.resources-intro p {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ── Press article page ── */
.press-article {
  max-width: 740px;
  margin: 0 auto;
}

.press-for-release {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: -20px 0 32px;
}

.press-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.press-article-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  background: #f0faf4;
  color: #2a7a4b;
  padding: 4px 10px;
  border-radius: 4px;
}

.press-article-date {
  font-size: 12px;
  color: var(--muted);
}

.press-article-image {
  margin-bottom: 40px;
}

.press-article-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}

.press-article-body p {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.85;
  margin-bottom: 22px;
}

.press-article-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.3px;
  margin: 40px 0 16px;
}

.press-quote {
  border-left: 3px solid var(--accent);
  margin: 36px 0;
  padding: 4px 0 4px 28px;
}

.press-quote p,
.press-quote {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}

.press-quote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
  margin-top: 12px;
}

.press-email {
  color: var(--accent);
  text-decoration: none;
}

.press-email:hover {
  text-decoration: underline;
}

.press-boilerplate {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.press-boilerplate-item h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.press-boilerplate-item p {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.press-article-back {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Spacing adjustment for consecutive white sections (e.g. News Grid & Resource Cards) */
.section-wrap.white+.section-wrap.white {
  border-top: none;
}

.section-wrap.white+.section-wrap.white .section {
  padding-top: 0;
}