/* =========================================================
   Tejaswini Deshpande - design system
   Brand palette: #272030 aubergine · #efebe2 off-white · #4e2780 purple
                  #ab1d79 magenta · #d0c3f1 lavender · #ef94ca pink
   Purple carries CTAs and links; magenta and pink are used sparingly.
   ========================================================= */

:root {
  /* Brand */
  --brand-aubergine: #272030;
  --brand-offwhite: #efebe2;
  --brand-purple: #4e2780;
  --brand-magenta: #ab1d79;
  --brand-lavender: #d0c3f1;
  --brand-pink: #ef94ca;

  /* Roles */
  --ink: var(--brand-aubergine);
  --ink-2: #2f2739;
  --ink-3: #3a3146;
  --paper: var(--brand-offwhite);
  --paper-2: #e6e0d3;
  --white: #faf8f3;
  --line: #d8d1c3;
  --line-dark: #443a51;
  --text: var(--brand-aubergine);
  --muted: #5e5768;
  --muted-dark: #b6aec2;
  --accent: var(--brand-purple);
  --accent-hover: #3c1d64;
  --accent-soft: #ebe5f8;
  --accent-on-dark: var(--brand-lavender);
  --highlight: var(--brand-magenta);
  --highlight-on-dark: var(--brand-pink);
  --error: #b3261e;

  /* Type */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.25rem, 1.35rem + 3.6vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2vw, 2.875rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Space & shape */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --maxw: 1200px;
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(39, 32, 48, .04), 0 12px 32px -16px rgba(39, 32, 48, .18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-size: .85em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-on-dark); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--ink); color: var(--white); padding: .75rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(820px + var(--gutter) * 2); }
.center { text-align: center; }
.section { padding-block: var(--section); }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #d9dcd7; }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head.narrow { max-width: 820px; padding: 0; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section-label, .eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.section-dark .section-label { color: var(--accent-on-dark); }
.section-head h2 + .section-intro, h2 + .section-intro { margin-top: 1.25rem; }
.section-intro { font-size: var(--fs-lead); color: var(--muted); line-height: 1.6; max-width: 680px; }
.section-dark .section-intro { color: var(--muted-dark); }
.center .section-intro { margin-inline: auto; }
.statement { font-family: var(--font-head); font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem); line-height: 1.35; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; max-width: 820px; }
.fine { font-size: var(--fs-small); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.375rem;
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: .9375rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: .9rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--brand-lavender); color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.06); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row-center { justify-content: center; }

.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link-light { color: var(--accent-on-dark); }
.text-link-light:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(239, 235, 226, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius); background: var(--ink); color: var(--white); font: 700 .8125rem/1 var(--font-head); letter-spacing: .02em; }
.brand-name { font: 700 1rem/1 var(--font-head); letter-spacing: -0.01em; }

.primary-nav ul { display: flex; gap: clamp(.9rem, .4rem + 1vw, 1.75rem); }
.primary-nav a { color: var(--text); text-decoration: none; font-size: .9375rem; font-weight: 500; padding-block: .5rem; position: relative; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
.primary-nav a.is-active { color: var(--accent); }
.primary-nav .nav-cta-mobile { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; margin-right: -10px; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(4rem, 2.5rem + 6vw, 8rem); }
@media (min-width: 861px) and (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .system-card { margin-top: 2.5rem; }
  .system-layers li { padding-block: .85rem; }
}
/* Short laptop screens (incl. Windows 125–150% scaling): size the hero by height so it fits the first screen */
@media (min-width: 861px) and (max-height: 820px) {
  .hero { padding-block: clamp(1.5rem, 5vh, 3.5rem) clamp(3rem, 8vh, 4.5rem); }
  .hero h1 { font-size: clamp(2.25rem, 7.4vh, 4.25rem); margin-bottom: 1rem; }
  .hero-who { margin-bottom: 1.1rem; }
  .hero .lead { font-size: 1.0625rem; line-height: 1.55; }
  .hero .btn-row, .trust-line { margin-top: 1.5rem; }
  .hero-grid { align-items: start; }
  .system-card { padding: 1.25rem 1.5rem; margin-top: 1rem; }
  .system-card-head { padding-bottom: .9rem; }
  .system-layers li { padding-block: .75rem; }
  .system-layers li::before { top: 2.2rem; bottom: -.75rem; }
  .system-card-foot { padding-top: .9rem; }
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center; }
.hero h1 { max-width: 14ch; margin-bottom: 1.5rem; }
.hero-who { font-size: var(--fs-small); color: var(--muted); margin-bottom: 1.75rem; padding-left: .875rem; border-left: 2px solid var(--accent); }
.hero-who strong { color: var(--ink); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 600px; line-height: 1.6; }
.lead-strong { color: var(--ink); font-weight: 500; margin-top: -.25rem; }
.hero .btn-row { margin-top: 2.25rem; }
.trust-line { margin-top: 2.25rem; font-size: .8125rem; letter-spacing: .04em; color: var(--muted); }
.trust-line span { margin-inline: .35rem; color: var(--line); }

.system-card { margin: 0; background: var(--ink); color: #d9dcd7; border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); box-shadow: var(--shadow); }
.system-card-head { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); padding-bottom: 1.25rem; border-bottom: 1px solid var(--line-dark); }
.system-card-tag { color: var(--highlight-on-dark); }
.system-layers li { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: .5rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line-dark); position: relative; }
.system-layers li::before { content: ""; position: absolute; left: .55rem; top: 2.6rem; bottom: -1.1rem; width: 1px; background: linear-gradient(var(--accent-on-dark), transparent); opacity: .45; }
.system-layers li:last-child::before { display: none; }
.layer-no { font: 600 .8125rem/1.6 var(--font-head); color: var(--accent-on-dark); grid-row: span 2; }
.layer-name { font: 600 1.0625rem/1.4 var(--font-head); color: var(--white); }
.layer-detail { font-size: .8125rem; color: var(--muted-dark); }
.system-card-foot { font-size: .8125rem; color: var(--muted-dark); padding-top: 1.25rem; margin: 0; }

/* ---------- Problem ---------- */
.flow { margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.flow-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; counter-reset: step; }
.flow-steps li { counter-increment: step; position: relative; text-align: center; padding-top: 2.25rem; font: 600 .9375rem/1.3 var(--font-head); color: var(--ink); }
.flow-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; display: grid; place-items: center; font-size: .6875rem; border: 1px solid var(--ink); border-radius: 50%; background: var(--white); z-index: 1; }
.flow-steps li::after { content: ""; position: absolute; top: 14px; left: calc(50% + 18px); width: calc(100% - 36px + .5rem); height: 1px; background: var(--ink); }
.flow-steps li:last-child::after { display: none; }
.flow-steps .flow-leak::before { border-color: var(--highlight); color: var(--highlight); border-style: dashed; }
.flow-steps .flow-leak span { color: var(--highlight); }
.flow-steps li:has(+ .flow-leak)::after, .flow-steps .flow-leak::after { background: repeating-linear-gradient(90deg, var(--highlight) 0 4px, transparent 4px 8px); }
.flow-note { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.flow-note em { color: var(--ink); font-style: normal; font-weight: 600; }

.problem-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); }
.problem-item { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.problem-item h3 { margin-bottom: .6rem; }
.problem-item p { color: var(--muted); font-size: .9375rem; }
.section-problem .statement { border-left: 2px solid var(--accent); padding-left: 1.25rem; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.pillar { padding: 2rem 1.75rem 2.25rem 0; border-right: 1px solid var(--line); transition: background-color .3s var(--ease); }
.pillar + .pillar { padding-left: 1.75rem; }
.pillar:last-child { border-right: 0; }
.pillar-no { display: block; font: 600 .8125rem/1 var(--font-head); color: var(--accent); margin-bottom: 2.75rem; }
.pillar h3 { margin-bottom: 1.25rem; font-size: 1.25rem; }
.pillar li { padding-block: .55rem; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.pillar li:last-child { border-bottom: 0; }
.pillars-note { margin-top: 2.5rem; max-width: 720px; color: var(--muted); }

/* ---------- Offer (dark) ---------- */
.offer-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: end; margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); }
.offer-facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.offer-facts div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line-dark); }
.offer-facts dt { color: var(--muted-dark); font-size: var(--fs-small); }
.offer-facts dd { margin: 0; color: var(--white); font: 600 1rem/1.4 var(--font-head); text-align: right; }
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.phase { background: var(--ink-2); padding: 2rem 1.75rem 2.25rem; transition: background-color .3s var(--ease); }
.phase:hover { background: var(--ink-3); }
.phase-no { display: block; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: 2.5rem; }
.phase h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.phase p { color: var(--muted-dark); font-size: .9375rem; }
.offer-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 3rem; }

/* ---------- Why ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); }
.compare-col { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.compare-col p { color: var(--muted); font-size: .9375rem; margin-top: 1.5rem; }
.compare-col-accent { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.compare-title { font-size: var(--fs-label); font-family: var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.compare-col-accent .compare-title { color: var(--accent); }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.4rem; }
.chain li { position: relative; font: 600 .875rem/1 var(--font-head); padding: .6rem .7rem; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.chain li:not(:last-child)::after { content: "→"; position: absolute; right: -1.1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 400; }
.chain-muted li { border-color: var(--line); color: var(--muted); }
.chain:not(.chain-muted) li:last-child { background: var(--accent); color: var(--white); border-color: var(--accent); }
.why-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.why-points li { padding-block: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.why-points li:last-child { border-bottom: 1px solid var(--line); }
.why-points strong { color: var(--ink); display: block; font-family: var(--font-head); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: #d9d4c9; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: var(--fs-small); border: 1px dashed #b8b1a3; border-radius: var(--radius-lg); }
.about-copy h2 { margin-bottom: 1.75rem; }
.about-copy > p { color: var(--muted); font-size: 1.0625rem; }
.about-copy strong { color: var(--ink); }
.pull { margin: 2.25rem 0; padding: 1.5rem 0 1.5rem 1.5rem; border-left: 2px solid var(--highlight); }
.pull p { font: 600 clamp(1.2rem, 1.05rem + .6vw, 1.5rem)/1.4 var(--font-head); color: var(--ink); letter-spacing: -0.015em; }
.skill-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-list li { font-size: .8125rem; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 2rem; }
.industries li { padding: 1.75rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 600 1.0625rem/1.35 var(--font-head); color: var(--ink); min-height: 120px; display: flex; align-items: flex-end; transition: background-color .25s var(--ease); }
.industries li:hover { background: var(--white); }
.industries + .fine { margin-bottom: .5rem; }

/* ---------- Case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.case-tag { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.case h3 { margin-bottom: 1.5rem; }
.case dl { margin: 0; }
.case dl div { padding-block: .85rem; border-top: 1px solid var(--line); }
.case dt { font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .25rem; font-weight: 600; }
.case dd { margin: 0; font-size: .9375rem; color: var(--muted); }
.ph { color: #8a6d1c; background: #f6eed6; padding: 0 .3em; border-radius: 2px; font-style: normal; }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; margin-bottom: 1.75rem; }
.tier { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.5rem 1.5rem; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.tier:hover { border-color: var(--ink); }
.tier-featured { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent), var(--shadow); }
.tier-featured:hover { border-color: var(--accent); }
.tier-badge { position: absolute; top: -.8rem; left: 1.5rem; background: var(--highlight); color: var(--white); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .7rem; border-radius: var(--radius); margin: 0; }
.tier-name { font-size: 1.0625rem; margin-bottom: 1.25rem; }
.tier-price { font: 700 2.5rem/1 var(--font-head); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.tier-price .cur { font-size: 1.25rem; vertical-align: .9em; margin-right: 2px; font-weight: 600; }
.tier-for { font-size: .9375rem; color: var(--muted); min-height: 4.5em; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.tier ul { margin: 1.25rem 0 1.75rem; flex: 1; }
.tier li { font-size: .875rem; padding: .4rem 0 .4rem 1.4rem; position: relative; color: var(--text); }
.tier li::before { content: ""; position: absolute; left: 0; top: .9em; width: .7rem; height: 2px; background: var(--accent); }

.support { margin-top: 3rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.support summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem clamp(1.25rem, 1rem + 1vw, 2rem); cursor: pointer; list-style: none; }
.support summary::-webkit-details-marker { display: none; }
.support-title { display: block; font: 600 1.125rem/1.3 var(--font-head); color: var(--ink); }
.support-sub { display: block; font-size: var(--fs-small); color: var(--muted); margin-top: .25rem; }
.support-icon { flex: none; width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 50%; position: relative; }
.support-icon::before, .support-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.support-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.support[open] .support-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.support-item { padding: 1.75rem clamp(1.25rem, 1rem + 1vw, 2rem); }
.support-item + .support-item { border-left: 1px solid var(--line); }
.support-item h3 { font-size: 1rem; margin-bottom: .75rem; }
.support-price { font: 700 1.75rem/1 var(--font-head); color: var(--ink); margin-bottom: .9rem; letter-spacing: -0.02em; }
.support-price span { font-size: .875rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.support-item p:last-child { font-size: .9rem; color: var(--muted); }

/* ---------- Insights ---------- */
.insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.insight { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; min-height: 220px; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.insight:hover { border-color: var(--ink); transform: translateY(-2px); }
.insight-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.insight-meta span:first-child { color: var(--accent); font-weight: 600; }
.insight h3 { flex: 1; font-size: 1.1875rem; }
.insight-status { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--muted); }

/* ---------- Scorecard & forms ---------- */
.score-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
.score-preview { margin-top: 2.5rem; padding: 1.75rem; background: var(--ink); border-radius: var(--radius-lg); color: #d9dcd7; }
.score-preview-title { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 1rem; }
.score-preview li { display: grid; grid-template-columns: minmax(0, 1fr) 40%; align-items: center; gap: 1rem; padding-block: .75rem; border-top: 1px solid var(--line-dark); font-size: .9375rem; color: var(--white); }
.score-preview .bar { height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--line-dark) 0 calc(20% - 3px), transparent calc(20% - 3px) 20%); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .intent legend { font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1rem; /* 16px prevents iOS zoom */
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23272030' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9b3a6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: #8b8f89; }
.field [aria-invalid="true"] { border-color: var(--error) !important; background: #fdf6f5 !important; }
.field-error { color: var(--error); font-size: .8125rem; margin: .35rem 0 0; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { font-size: .75rem; color: var(--muted); margin: .3rem 0 0; text-align: right; }
.check { display: flex !important; gap: .75rem; align-items: flex-start; font-weight: 400 !important; font-size: .875rem !important; color: var(--muted) !important; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8125rem; color: var(--muted); margin-top: 1rem; text-align: center; }
.form-status { font-size: .875rem; margin-top: 1rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-success h2, .form-success h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.875rem); margin-bottom: 1rem; }
.form-success p { color: var(--muted); }
.form-success .btn-row, .form-success > .btn { margin-top: 1.5rem; }
.form-success:focus { outline: none; }

/* Intent radio cards */
.intent { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.intent legend { padding: 0; margin-bottom: .75rem; }
.intent-options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.intent-option { position: relative; cursor: pointer; }
.intent-option input { position: absolute; opacity: 0; inset: 0; }
.intent-option > span { display: block; height: 100%; padding: 1rem 1rem 1rem 2.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .2s var(--ease), background-color .2s var(--ease); position: relative; }
.intent-option > span::before { content: ""; position: absolute; left: 1rem; top: 1.15rem; width: 16px; height: 16px; border: 1.5px solid #8b8f89; border-radius: 50%; background: var(--white); transition: border .2s var(--ease); }
.intent-option strong { display: block; font: 600 .9375rem/1.3 var(--font-head); color: var(--ink); }
.intent-option small { display: block; font-size: .8125rem; color: var(--muted); margin-top: .2rem; line-height: 1.4; }
.intent-option:hover > span { border-color: #b9b3a6; }
.intent-option input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.intent-option input:checked + span::before { border: 5px solid var(--accent); }
.intent-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Final CTA ---------- */
.final-cta h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); margin-bottom: 1.5rem; }
.final-cta .btn-row { margin-top: 2.5rem; }

/* ---------- Contact page ---------- */
.contact-hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2vw, 4rem); border-bottom: 1px solid var(--line); }
.contact-hero h1 { max-width: 16ch; margin-bottom: 1.5rem; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.next-steps li { display: flex; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); font-size: .9375rem; color: var(--muted); }
.next-steps strong { color: var(--ink); display: block; font-family: var(--font-head); }
.step-no { font: 600 .8125rem/1.7 var(--font-head); color: var(--accent); flex: none; }
.section-contact { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.form-card-lg { scroll-margin-top: calc(var(--header-h) + 16px); }
.contact-aside { display: grid; gap: 1.25rem; }
/* Sticky only on screens tall enough to show the whole column; otherwise its lower part would be unreachable */
@media (min-width: 1025px) and (min-height: 900px) {
  .portrait { position: sticky; top: calc(var(--header-h) + 2rem); }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.aside-block { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.aside-block p { color: var(--muted); font-size: .9375rem; }
.aside-block > .btn { margin-top: 1rem; }
.aside-block-quiet { background: transparent; }
.aside-title { font-size: 1rem; margin-bottom: .6rem; }
.contact-list li { display: flex; flex-direction: column; padding-block: .7rem; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; padding-top: .25rem; }
.contact-list span { font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 600; word-break: break-word; }
.contact-list + .fine { margin-top: 1rem; }
.fit-list li { position: relative; padding: .45rem 0 .45rem 1.5rem; font-size: .9rem; color: var(--text); }
.fit-list li::before { content: ""; position: absolute; left: 0; top: .9rem; width: 10px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.faq { margin-top: 2rem; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font: 600 1.0625rem/1.4 var(--font-head); color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1.1rem; font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; max-width: 680px; }

/* ---------- Legal page ---------- */
.legal { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.375rem; margin: 2.5rem 0 .75rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal-note { padding: 1rem 1.25rem; background: #f6eed6; border-radius: var(--radius); color: #6b5413 !important; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding-top: 4rem; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.footer-name { font: 700 1.25rem/1.2 var(--font-head); color: var(--white); margin-bottom: .5rem; }
.footer-cred { margin-top: 1.25rem; font-size: var(--fs-small); }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem 1.5rem; }
.footer-links a { color: #d9dcd7; text-decoration: none; display: inline-block; padding-block: .45rem; }
.footer-links a:hover { color: var(--accent-on-dark); }
.footer-base { padding-block: 1.5rem; font-size: var(--fs-small); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .header-inner { gap: 1.25rem; }
  .primary-nav ul { gap: .9rem; }
  .primary-nav a { font-size: .875rem; }
  .header-cta { padding-inline: .85rem; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .brand-name { display: inline; }
  /* backdrop-filter would become the containing block for the fixed menu panel */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
    padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding-block: 1rem; font: 600 1.375rem/1.2 var(--font-head); }
  .primary-nav a::after { display: none; }
  .primary-nav .nav-cta-mobile { display: block; border: 0; padding-top: 1.5rem; }
  .primary-nav .nav-cta-mobile .btn { display: flex; width: 100%; font: 600 1rem/1.2 var(--font-body); color: var(--white); padding-block: .9rem; }
  body.nav-open { overflow: hidden; }

  .problem-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(3) { padding-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .offer-head { grid-template-columns: 1fr; gap: 2rem; }
  .phases { grid-template-columns: 1fr 1fr; }
  .why-copy { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries li { min-height: 88px; }
  .cases { grid-template-columns: 1fr; max-width: 640px; }
  .tiers { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .insights { grid-template-columns: 1fr 1fr; }
  .score-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .system-card { max-width: 560px; }
  .flow-steps { grid-template-columns: 1fr; gap: 0; text-align: left; }
  .flow-steps li { text-align: left; padding: .7rem 0 .7rem 2.75rem; }
  .flow-steps li::before { top: .55rem; left: 0; transform: none; }
  .flow-steps li::after { top: calc(.55rem + 28px); left: 14px; width: 1px; height: calc(100% - 28px); }
  .flow-steps li:has(+ .flow-leak)::after, .flow-steps .flow-leak::after { background: repeating-linear-gradient(180deg, var(--highlight) 0 4px, transparent 4px 8px); }
  .flow-note { text-align: left; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; max-width: 420px; }
  .compare { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .support-item + .support-item { border-left: 0; border-top: 1px solid var(--line); }
  .next-steps { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 767px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(239, 235, 226, .96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  body:has(.mobile-cta) .site-footer { padding-bottom: 5.5rem; }

  .problem-grid, .pillars, .phases, .tiers, .insights { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 1.75rem 0; border-right: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
  .pillar-no { margin-bottom: 1.25rem; }
  .phase-no { margin-bottom: 1.25rem; }
  .tier-for { min-height: 0; }
  .tiers { gap: 1.75rem; }
  .industries { grid-template-columns: 1fr 1fr; }
  .industries li { padding: 1.25rem 1rem; font-size: .9375rem; min-height: 80px; }
  .form-grid { grid-template-columns: 1fr; }
  .intent-options { grid-template-columns: 1fr; }
  .contact-aside { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .btn-row .btn-lg { width: 100%; }
  .hero .btn-row .btn, .final-cta .btn-row .btn { width: 100%; }
  .offer-cta .btn { width: 100%; }
  .offer-facts dd { max-width: 60%; }
  .section-head-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 380px) {
  .brand-name { font-size: .9375rem; }
  .industries { grid-template-columns: 1fr; }
  .industries li { min-height: 0; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-cta, .nav-toggle { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   WordPress additions
   ========================================================= */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Logged-in admin bar sits above the sticky header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 1024px) { .admin-bar .primary-nav { inset: calc(var(--header-h) + 32px) 0 0 0; } }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .primary-nav { inset: calc(var(--header-h) + 46px) 0 0 0; }
}
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.primary-nav .current-menu-item > a:not([href*="#"]) { color: var(--accent); }

/* Long-form content: pages and Insights posts */
.prose-page { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.prose-page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 1rem; }
.entry-meta { font-size: var(--fs-small); color: var(--muted); margin-bottom: 2.5rem; }
.entry-content { font-size: 1.0625rem; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content p, .entry-content li { color: var(--text); }
.entry-content h2 { font-size: 1.625rem; margin-top: 2.25em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.75em; }
.entry-content ul { list-style: disc; padding-left: 1.25rem; }
.entry-content ol { list-style: decimal; padding-left: 1.25rem; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { margin: 2em 0; padding: .25rem 0 .25rem 1.5rem; border-left: 2px solid var(--highlight); font: 600 1.25rem/1.45 var(--font-head); color: var(--ink); }
.entry-content img { border-radius: var(--radius-lg); }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: .5rem; }
.entry-content .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-lg); }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.post-thumb { margin: 0 0 2.5rem; border-radius: var(--radius-lg); overflow: hidden; }
.post-cta { margin-top: 4rem; padding: 2rem; background: var(--ink); border-radius: var(--radius-lg); }
.post-cta h2 { color: var(--white); font-size: 1.5rem; margin-bottom: .75rem; }
.post-cta p { color: var(--muted-dark); }
.post-cta .btn { margin-top: 1.25rem; }

/* Insights archive + linked insight cards */
.archive-head { padding-block: clamp(3rem, 2rem + 4vw, 6rem) 2.5rem; }
a.insight { text-decoration: none; color: inherit; }
a.insight .insight-status { color: var(--accent); font-weight: 600; }
.pagination .nav-links { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 .75rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.empty-state { color: var(--muted); }

/* ---------- Header logo (Customize → Site Identity) ---------- */
.brand-logo { display: block; height: var(--logo-h, 40px); width: auto; max-width: min(240px, 45vw); object-fit: contain; }
@media (max-width: 1024px) { .brand-logo { height: min(var(--logo-h, 40px), 36px); } }
@media (max-width: 380px) { .brand-logo { max-width: 52vw; } }

/* ---------- Footer widgets: 3 columns ---------- */
.footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: 3rem; border-bottom: 1px solid var(--line-dark); }
.footer-widget + .footer-widget { margin-top: 2rem; }
.footer-widget, .footer-widget p, .footer-widget li { color: var(--muted-dark); font-size: .9375rem; line-height: 1.6; }
.footer-widget .widget-title,
.footer-widget h2, .footer-widget h3, .footer-widget h4 { font: 600 .75rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin: 0 0 1rem; }
.footer-widget a { color: #e6e1ec; text-decoration: none; }
.footer-widget a:hover { color: var(--accent-on-dark); text-decoration: underline; }
.footer-widget ul, .footer-widget ol { list-style: none; padding: 0; margin: 0; }
.footer-widget li { padding-block: .3rem; }
.footer-widget p + p { margin-top: .75rem; }
.footer-widget img { max-width: 100%; height: auto; border-radius: var(--radius); }
.footer-widget .wp-block-social-links { gap: .5rem; }
.footer-widget .wp-block-social-links .wp-social-link { background: var(--ink-3); color: var(--white); }
.footer-widget input[type="search"], .footer-widget input[type="email"], .footer-widget input[type="text"] { width: 100%; min-height: 44px; padding: .6rem .8rem; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--white); }
.footer-widget button, .footer-widget .wp-block-search__button { min-height: 44px; padding: .6rem 1rem; background: var(--accent); color: var(--white); border: 0; border-radius: var(--radius); font-weight: 600; cursor: pointer; }
@media (max-width: 860px) { .footer-widgets { grid-template-columns: 1fr 1fr; } .footer-widget-col:empty { display: none; } }
@media (max-width: 600px) { .footer-widgets { grid-template-columns: 1fr; gap: 2rem; } }

/* =========================================================
   Right sidebar layout (max 300px)
   ========================================================= */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(2.5rem, 1rem + 4vw, 5rem); align-items: start; }
.with-sidebar .content-area { min-width: 0; max-width: 760px; }
.archive-body { padding-top: 3rem; }
.insights-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.insight-title { font-size: 1.1875rem; flex: 1; }
@media (max-width: 960px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .with-sidebar .content-area { max-width: none; }
  .sidebar { max-width: 640px; }
}
@media (max-width: 600px) { .insights-2 { grid-template-columns: 1fr; } }

.sidebar { display: grid; gap: 1.25rem; font-size: .9375rem; }
.sidebar .widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; min-width: 0; }
.sidebar .widget-title,
.sidebar .widget h2.wp-block-heading, .sidebar .widget h3.wp-block-heading { font: 600 .75rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.sidebar .widget p { color: var(--muted); }
.sidebar .widget p + p { margin-top: .75rem; }
.sidebar .widget ul:not([class*="td-"]):not(.wp-block-social-links) li { padding-block: .45rem; border-top: 1px solid var(--line); }
.sidebar .widget ul:not([class*="td-"]):not(.wp-block-social-links) li:first-child { border-top: 0; padding-top: 0; }
.sidebar .widget a:not(.btn) { color: var(--ink); text-decoration: none; }
.sidebar .widget a:not(.btn):hover { color: var(--accent); text-decoration: underline; }
.sidebar .wp-block-search__inside-wrapper { display: flex; gap: .5rem; }
.sidebar .wp-block-search__input { flex: 1; min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 1rem; }
.sidebar .wp-block-search__button { min-height: 44px; padding: .55rem .9rem; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--white); font-weight: 600; cursor: pointer; }
.sidebar .wp-block-search__label { font-weight: 600; font-size: .875rem; display: block; margin-bottom: .4rem; }
/* The CTA widget is its own card: drop the outer card */
.sidebar .widget.td_cta { background: none; border: 0; padding: 0; }

/* =========================================================
   TD widgets
   ========================================================= */
.td-w-link { font-weight: 600; }
.sidebar .td-w-link { color: var(--accent) !important; }
.td-w-note { font-size: .8125rem; color: var(--muted); margin-top: 1rem; }

/* Quick enquiry */
.td-quick .field { margin-bottom: .85rem; }
.td-quick .field label:not(.check) { font-size: .8125rem; }
.td-quick .field input:not([type="checkbox"]) { min-height: 44px; padding: .55rem .75rem; }
.td-quick .check { font-size: .8125rem !important; }
.td-quick-form > p:first-child { margin-bottom: 1rem; }
.td-quick .form-status { font-size: .8125rem; }

/* About */
.td-about-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.td-about-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.td-about-mark { display: grid; place-items: center; background: var(--ink); color: var(--white); font: 700 1rem/1 var(--font-head); }
.td-about-name { font: 700 1rem/1.3 var(--font-head); color: var(--ink) !important; margin: 0 !important; }
.td-about-role { font-size: .8125rem; line-height: 1.4; margin: .2rem 0 0 !important; }
.td-about-bio { margin-bottom: .75rem; }

/* Key numbers */
.td-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
.td-stats li { display: flex; flex-direction: column; gap: .3rem; padding: 0 !important; border: 0 !important; }
.td-stat-num { font: 700 clamp(1.75rem, 1.5rem + 1vw, 2.25rem)/1 var(--font-head); color: var(--accent); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.td-stat-label { font-size: .8125rem; line-height: 1.35; color: var(--muted); }

/* CTA card */
.td-cta-card { background: var(--ink); color: #d9dcd7; border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; }
.td-cta-label { font-size: var(--fs-label) !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--highlight-on-dark) !important; margin-bottom: .75rem !important; }
.td-cta-heading { font: 700 1.3125rem/1.25 var(--font-head) !important; color: var(--white) !important; margin-bottom: .75rem !important; letter-spacing: -0.02em; }
.td-cta-card p { color: var(--muted-dark) !important; font-size: .9375rem; }
.td-cta-card .btn { margin-top: 1.25rem; white-space: normal; }

/* 90-Day System */
.td-phases { margin-bottom: 1rem; }
.td-phases li { display: flex; gap: .75rem; padding-block: .6rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.td-phases li:first-child { border-top: 0; padding-top: 0; }
.td-phases strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .9375rem; }
.td-phase-no { font: 600 .75rem/1.9 var(--font-head); color: var(--accent); flex: none; }

/* Connect */
.td-connect li { padding-block: .5rem; border-top: 1px solid var(--line); }
.td-connect li:first-child { border-top: 0; padding-top: 0; }
.td-connect a { font-weight: 600; word-break: break-word; }
.td-connect a[target="_blank"]::after { content: " \2197"; font-weight: 400; color: var(--muted); }

/* Client quote */
.td-quote { margin: 0; }
.td-quote blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 2px solid var(--highlight); }
.td-quote blockquote p { font: 600 1.0625rem/1.5 var(--font-head) !important; color: var(--ink) !important; }
.td-quote figcaption { font-size: .8125rem; color: var(--muted); }
.td-quote figcaption strong { display: block; color: var(--ink); font-size: .875rem; }
.td-quote-label { color: var(--accent) !important; }

/* Latest insights */
.td-insights-list li { border-top: 1px solid var(--line); }
.td-insights-list li:first-child { border-top: 0; }
.td-insights-list a { display: block; padding-block: .7rem; text-decoration: none !important; }
.td-insights-list li:first-child a { padding-top: 0; }
.td-ins-meta { display: block; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.td-ins-title { display: block; font: 600 .9375rem/1.4 var(--font-head); color: var(--ink); }
.td-insights-list a:hover .td-ins-title { color: var(--accent); }

/* ---------- TD widgets inside the dark footer ---------- */
.site-footer .td-cta-card { background: var(--ink-2); border: 1px solid var(--line-dark); }
.site-footer .td-stat-num { color: var(--accent-on-dark); }
.site-footer .td-stat-label, .site-footer .td-about-role, .site-footer .td-phases li, .site-footer .td-quote figcaption, .site-footer .td-ins-meta { color: var(--muted-dark); }
.site-footer .td-about-name, .site-footer .td-phases strong, .site-footer .td-quote blockquote p, .site-footer .td-quote figcaption strong, .site-footer .td-ins-title { color: var(--white) !important; }
.site-footer .td-phases li, .site-footer .td-connect li, .site-footer .td-insights-list li { border-color: var(--line-dark); }
.site-footer .td-phase-no, .site-footer .td-w-link { color: var(--accent-on-dark); }
.site-footer .td-about-mark { background: var(--ink-3); }
.site-footer .td-quick label, .site-footer .td-quick .check { color: var(--muted-dark) !important; }
.site-footer .td-quick .field input:not([type="checkbox"]) { background: var(--ink-2); border-color: var(--line-dark); color: var(--white); }
.site-footer .td-quick .form-success p { color: var(--white); }

/* =========================================================
   Case studies (cards link through when a write-up exists)
   ========================================================= */
.case { display: flex; flex-direction: column; }
.case h3 a { color: inherit; text-decoration: none; }
.case h3 a:hover { color: var(--accent); }
.case dl { flex: 1; }
.case-more { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.case-more a { font-weight: 600; text-decoration: none; }
.case-more a:hover { text-decoration: underline; }
.archive-head .section-intro { margin-top: 1rem; }

.case-summary { margin: 2rem 0 2.5rem; padding: 1.5rem 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.case-summary div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding-block: .75rem; border-top: 1px solid var(--line); }
.case-summary div:first-child { border-top: 0; padding-top: 0; }
.case-summary div:last-child { padding-bottom: 0; }
.case-summary dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding-top: .2rem; }
.case-summary dd { margin: 0; color: var(--text); }
.prose-page .section-label a { color: inherit; text-decoration: none; }
@media (max-width: 600px) { .case-summary div { grid-template-columns: 1fr; gap: .25rem; } }

/* Problem section on the tinted background: keep the journey box and statement crisp */
.section-problem.section-tint .flow { background: var(--white); }

/* Insights cards: short excerpt under the title (max 3 lines) */
.insight.has-excerpt h3 { flex: none; margin-bottom: .65rem; }
.insight-excerpt { flex: 1; margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
