/* ============================================================
   Danson Theme — assets/css/theme.css
   Editorial / AI-native / light-mode first
   ============================================================ */

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

:root {
  /* Palette — light-mode first for readability.
     Deliberately NOT pure white; warm off-white reads calmer. */
  --bg:        #F7F5F0;        /* page background — warm off-white */
  --bg-alt:    #ECEAE3;        /* sections / cards */
  --bg-deep:   #121110;        /* dark inversion block */
  --ink:       #121110;        /* primary text */
  --ink-soft:  #4A4842;        /* secondary text */
  --ink-mute:  #8A877F;        /* tertiary / labels */
  --rule:      #1A19170F;      /* hairline dividers */
  --rule-2:    #1A191722;
  --accent:    #FF5B2E;        /* signature orange — CTA, highlights */
  --accent-2:  #E94A1D;
  --ok:        #2F7D4F;
  --amber:     #C68A14;

  /* Type */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --step--1: clamp(0.80rem, 0.78rem + 0.1vw, 0.88rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --step-1:  clamp(1.10rem, 1.04rem + 0.3vw, 1.25rem);
  --step-2:  clamp(1.35rem, 1.20rem + 0.7vw, 1.60rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.4vw, 2.30rem);
  --step-4:  clamp(2.40rem, 1.80rem + 2.8vw, 3.80rem);
  --step-5:  clamp(3.20rem, 2.20rem + 4.8vw, 6.00rem);
  --step-6:  clamp(3.80rem, 2.40rem + 6.8vw, 8.00rem);

  /* Layout — wider max so 1920px monitors don't feel empty, with healthy gutters */
  --maxw: 1440px;
  --maxw-prose: 72ch;          /* comfortable reading column */
  --maxw-narrow: 1100px;       /* constrained sections */
  --gutter: clamp(1.25rem, 3.5vw, 3rem);
  --radius: 14px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: .35s;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01","cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ============================================================
   Custom cursor — subtle accent dot, NEVER hides native cursor
   Disabled on touch, coarse pointers, reduced motion, and forms
   ============================================================ */
#cursor, #cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  opacity: 0;
  transition: opacity .3s var(--ease), width .25s var(--ease), height .25s var(--ease), background .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  #cursor, #cursor-dot { opacity: 1; }
}
/* Just a small soft accent dot trailing the pointer — decorative only. */
#cursor {
  width: 28px; height: 28px;
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
}
#cursor-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
body.cursor-hover #cursor {
  width: 48px; height: 48px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
}
/* Never cover form fields / text input with the accent circle. */
body.cursor-text #cursor { opacity: 0; }
body.cursor-text #cursor-dot { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  #cursor, #cursor-dot { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  #cursor, #cursor-dot { display: none !important; }
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark {
  background: var(--bg-deep);
  color: #F2EFE8;
}
.section--dark .eyebrow { color: #8A877F; }

.hr { height: 1px; background: var(--rule-2); border: 0; margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  text-transform: none;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem; height: 1px;
  background: currentColor;
  opacity: .6;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: var(--step-5); font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: var(--step-4); letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
h4 { font-size: var(--step-1); letter-spacing: -0.015em; }
p  { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: italic; color: var(--accent); font-weight: 500; }

.display {
  font-size: var(--step-6);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--step-0);
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); color: #fff; }
.btn--ghost {
  border-color: var(--rule-2);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--primary { background: var(--bg); color: var(--ink); }
.section--dark .btn--primary:hover { background: var(--accent); color: #fff; }
.section--dark .btn--ghost { border-color: #ffffff33; color: #F2EFE8; }
.section--dark .btn--ghost:hover { border-color: #fff; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: .2rem;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.arrow-link:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.brand {
  display: inline-flex; align-items: center;
  color: var(--ink);
}
.brand .logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.brand:hover .logo-img { transform: translateY(-1px); opacity: .88; }
.site-footer .brand .logo-img { height: 44px; }
.primary-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.primary-nav a { font-size: var(--step-0); color: var(--ink-soft); transition: color var(--dur) var(--ease); }
.primary-nav a:hover { color: var(--ink); }
.primary-nav .cta { color: var(--ink); font-weight: 500; }

.menu-toggle { display: none; background: transparent; border: 0; padding: .5rem; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav.open {
    display: block;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--rule-2);
    padding: 1.25rem var(--gutter);
  }
  .primary-nav.open ul { flex-direction: column; gap: 1rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-soft);
  border: 1px solid var(--rule-2);
  padding: .4rem .8rem; border-radius: 999px;
  background: var(--bg);
  margin-bottom: 1.5rem;
}
.hero-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 35%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 0%, transparent); }
}

.hero h1 { margin-top: 0; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ============================================================
   AI demo widget (shared by hero and product page)
   ============================================================ */
.ai-demo {
  background: var(--bg-deep);
  color: #F2EFE8;
  border-radius: var(--radius);
  padding: 1.25rem;
  font-family: var(--mono);
  box-shadow: 0 30px 80px -30px #12111066, 0 4px 14px -6px #12111022;
  position: relative;
  overflow: hidden;
}
.ai-demo::before {
  content: ""; position: absolute; inset: -40% -20% auto auto;
  width: 60%; height: 60%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 30%, transparent), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.ai-demo-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--step--1);
  color: #8A877F;
  margin-bottom: 1rem;
  letter-spacing: .02em;
}
.ai-demo-head .live { color: var(--accent); display: inline-flex; align-items: center; gap: .4rem; }
.ai-demo-head .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 1.5s ease-in-out infinite;
}
.ai-stream { display: flex; flex-direction: column; gap: .7rem; min-height: 260px; }
.ai-msg {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.5;
  padding: .75rem 1rem;
  border-radius: 14px;
  max-width: 86%;
  opacity: 0; transform: translateY(6px);
  animation: fade-up .4s var(--ease) forwards;
}
.ai-msg.user {
  align-self: flex-end;
  background: #F2EFE8;
  color: var(--ink);
  border-bottom-right-radius: 4px;
}
.ai-msg.bot {
  align-self: flex-start;
  background: #1E1D1B;
  color: #F2EFE8;
  border: 1px solid #2A2925;
  border-bottom-left-radius: 4px;
}
.ai-msg.system {
  align-self: center;
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--step--1);
  padding: .25rem 0;
}
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }
.typing {
  display: inline-flex; gap: 4px; align-items: center;
}
.typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: #8A877F;
  animation: bounce 1.1s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .30s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }

.ai-demo-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid #2A2925;
  font-size: var(--step--1);
  color: #8A877F;
}

/* ============================================================
   Trust strip
   ============================================================ */
.trust {
  border-block: 1px solid var(--rule);
  padding-block: 2rem;
}
.trust-row {
  display: flex; align-items: center; gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-label {
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--ink-mute);
}
.trust-logos { display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: center; }
.trust-logos span {
  font-size: var(--step-1);
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: .75;
}

/* ============================================================
   Section heading
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head h2 { margin: 1rem 0 0; max-width: 22ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ============================================================
   Services grid
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-2);
}
.service {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--rule-2);
  border-right: 1px solid var(--rule-2);
  display: flex; flex-direction: column; gap: 1rem;
  transition: background var(--dur) var(--ease);
  position: relative;
}
.service:nth-child(2n) { border-right: 0; }
.service:hover { background: var(--bg-alt); }
.service .n {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-mute);
}
.service h3 { margin: .25rem 0 .25rem; }
.service p { color: var(--ink-soft); margin-bottom: .75rem; }
.service .arrow-link { align-self: flex-start; margin-top: auto; }

@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; }
}

/* ============================================================
   Product feature (dark inversion block)
   ============================================================ */
.product-feat {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 960px) { .product-feat { grid-template-columns: 1fr; } }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #ffffff1a;
  margin-block: 2rem;
}
.section:not(.section--dark) .metrics { border-color: var(--rule-2); }
.metric {
  padding: 1.5rem 1rem 1.5rem 0;
  border-right: 1px solid #ffffff1a;
}
.section:not(.section--dark) .metric { border-color: var(--rule-2); }
.metric:last-child { border-right: 0; }
.metric-num {
  font-size: var(--step-4);
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 500;
}
.metric-label {
  margin-top: .5rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  color: #8A877F;
}
.section:not(.section--dark) .metric-label { color: var(--ink-mute); }

@media (max-width: 760px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
}

/* Live feed panel (product section) */
.feed {
  background: #1A1917;
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid #2A2925;
}
.feed-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: var(--step--1); color: #8A877F;
  margin-bottom: 1rem;
}
.feed-head .connected { display: inline-flex; align-items: center; gap: .4rem; color: var(--ok); }
.feed-head .connected::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.feed-row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 1rem;
  padding: .9rem 0;
  border-top: 1px solid #2A2925;
  align-items: center;
}
.feed-row:first-of-type { border-top: 0; }
.feed-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: #2A2925; color: #F2EFE8;
  display: grid; place-items: center;
  font-weight: 600; font-size: .85rem;
}
.feed-body { color: #F2EFE8; font-size: var(--step-0); }
.feed-meta { font-family: var(--mono); font-size: .75rem; color: #8A877F; margin-top: .15rem; }
.feed-time { font-family: var(--mono); font-size: .75rem; color: #8A877F; }

/* ============================================================
   Verticals
   ============================================================ */
.verticals {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 960px) { .verticals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .verticals { grid-template-columns: 1fr; } }

.vertical {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: .5rem;
  position: relative;
  min-height: 220px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.vertical:hover { transform: translateY(-2px); background: #E5E3DC; }
.vertical .n { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-mute); }
.vertical h3 { margin: .25rem 0 .25rem; font-size: var(--step-2); }
.vertical.featured {
  grid-row: span 2;
  background: var(--ink);
  color: #F2EFE8;
}
.vertical.featured h3 { color: #fff; }
.vertical.featured .n { color: var(--accent); }
.vertical.featured .kpis {
  display: flex; gap: 2rem; margin-top: auto;
}
.vertical.featured .kpi-num { font-size: var(--step-3); line-height: 1; letter-spacing: -0.02em; }
.vertical.featured .kpi-label {
  font-family: var(--mono); font-size: var(--step--1);
  color: #8A877F; margin-top: .35rem;
}

/* ============================================================
   Company stats
   ============================================================ */
.company-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}
.company-stats .stat {
  padding: 2rem 1.5rem 2rem 0;
  border-right: 1px solid var(--rule-2);
}
.company-stats .stat:last-child { border-right: 0; }
.stat-num {
  font-size: var(--step-4);
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 500;
}
.stat-label {
  margin-top: .75rem;
  color: var(--ink-soft);
  max-width: 20ch;
}
@media (max-width: 760px) {
  .company-stats { grid-template-columns: repeat(2, 1fr); }
  .company-stats .stat:nth-child(2) { border-right: 0; }
}

/* ============================================================
   Testimonials
   ============================================================ */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }

.quote {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.quote .mark {
  font-family: var(--mono);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
}
.quote p { font-size: var(--step-1); color: var(--ink); margin: 0; }
.quote-by { display: flex; align-items: center; gap: .85rem; margin-top: auto; }
.quote-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-weight: 500; font-size: .9rem;
}
.quote-name { font-weight: 500; }
.quote-role { font-size: var(--step--1); color: var(--ink-mute); }

/* ============================================================
   CTA block
   ============================================================ */
.cta-block {
  padding-block: clamp(5rem, 10vw, 9rem);
  text-align: left;
}
.cta-block h2 { font-size: var(--step-5); max-width: 16ch; }

/* ============================================================
   ROI Calculator
   ============================================================ */
.roi {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 860px) { .roi { grid-template-columns: 1fr; } }

.roi-controls { display: flex; flex-direction: column; gap: 1.5rem; }
.roi-row { display: flex; flex-direction: column; gap: .5rem; }
.roi-row label {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--ink-soft);
}
.roi-row label b { color: var(--ink); font-weight: 500; }
.roi-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--rule-2);
  border-radius: 999px;
  outline: none;
}
.roi-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}
.roi-row input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}

.roi-result {
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.roi-result .label {
  font-family: var(--mono); font-size: var(--step--1);
  color: #8A877F;
}
.roi-big {
  font-size: var(--step-5);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--accent);
}
.roi-sub {
  font-size: var(--step-0);
  color: #F2EFE8;
  padding-top: 1rem;
  border-top: 1px solid #2A2925;
}
.roi-sub strong { color: #fff; }

/* ============================================================
   Case studies
   ============================================================ */
.case-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }

.case-card {
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform var(--dur) var(--ease);
}
.case-card:hover { transform: translateY(-3px); }
.case-thumb {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.case-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.case-card:hover .case-thumb img { transform: scale(1.04); }
.case-meta {
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--ink-mute);
  display: flex; gap: 1rem;
}
.case-card h3 {
  font-size: var(--step-2);
  margin: 0;
}

/* Case study placeholder (no image) */
.case-thumb.ph-1 { background: linear-gradient(135deg, #F2EFE8, #D9D5CB); }
.case-thumb.ph-2 { background: linear-gradient(135deg, #2A2925, #121110); }
.case-thumb.ph-3 { background: linear-gradient(135deg, #FFD9CC, #FF8A66); }
.case-thumb.ph-4 { background: linear-gradient(135deg, #E5E3DC, #8A877F); }
.case-thumb .ph-label {
  position: absolute; inset: auto 1rem 1rem auto;
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--ink-mute);
}
.case-thumb.ph-2 .ph-label, .case-thumb.ph-3 .ph-label { color: #fff; }

/* ============================================================
   Blog
   ============================================================ */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 960px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-list { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--bg);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.post-card:hover { background: var(--bg-alt); transform: translateY(-2px); }
.post-card .meta {
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--ink-mute);
  display: flex; gap: 1rem;
}
.post-card h3 { font-size: var(--step-1); margin: 0; line-height: 1.2; }
.post-card p { color: var(--ink-soft); font-size: var(--step-0); margin: 0; }

.featured-post {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  margin-bottom: 3rem;
  align-items: center;
}
@media (max-width: 860px) { .featured-post { grid-template-columns: 1fr; padding: 1.5rem; } }
.featured-post h2 { font-size: var(--step-3); margin: 0 0 .75rem; }
.featured-post .meta {
  font-family: var(--mono); font-size: var(--step--1); color: var(--ink-mute);
  margin-bottom: 1rem;
}
.featured-post .thumb {
  aspect-ratio: 4/3; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #FF8A66, #E94A1D);
}

/* ============================================================
   Single post — article prose
   ============================================================ */
.single-post {
  max-width: 760px;
  margin: 0 auto;
}
.single-post-thumb,
.post-featured-thumb {
  border-radius: var(--radius);
  overflow: hidden;
}
.single-post-thumb img,
.post-featured-thumb img { width: 100%; height: auto; display: block; }

/* Article hero — same width feel as front-page hero */
.post-hero { padding-bottom: clamp(1rem, 3vw, 2rem); }
.post-hero h1 {
  font-size: var(--step-5);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: .75rem 0 0;
  max-width: 22ch;
}
.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-mute);
  margin-bottom: 1rem;
}
.post-hero-meta span {
  position: relative;
}
.post-hero-meta span + span::before {
  content: "·";
  position: absolute;
  left: -.85rem;
  color: var(--ink-mute);
}
.post-hero .lede { margin-top: 1.25rem; max-width: 60ch; }
.single-post header { margin-bottom: 2rem; }
.single-post .meta {
  font-family: var(--mono); font-size: var(--step--1); color: var(--ink-mute);
  display: flex; gap: 1rem;
  margin-bottom: 1.5rem;
}
.single-post h1 { font-size: var(--step-4); }
.single-post .content p { font-size: var(--step-1); line-height: 1.6; color: var(--ink); }
.single-post .content h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.single-post .content h3 { font-size: var(--step-1); margin-top: 2rem; }
.single-post .content blockquote {
  margin: 2rem 0; padding: 1rem 1.5rem;
  border-left: 3px solid var(--accent);
  font-size: var(--step-1);
  color: var(--ink-soft);
}

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule-2);
  margin-top: 3rem;
}
.post-nav a { display: flex; flex-direction: column; gap: .25rem; }
.post-nav span { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-mute); }
.post-nav-next { text-align: right; }

/* ============================================================
   About
   ============================================================ */
.about-hero h1 { max-width: 18ch; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

.team-card { display: flex; flex-direction: column; gap: .5rem; }
.team-photo {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
}
.team-photo.ph-1 { background: linear-gradient(135deg, #FFD9CC, #FF5B2E); }
.team-photo.ph-2 { background: linear-gradient(135deg, #E5E3DC, #8A877F); }
.team-photo.ph-3 { background: linear-gradient(135deg, #2A2925, #121110); }
.team-name { font-weight: 500; margin-top: .5rem; }
.team-role { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-mute); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form .field { display: flex; flex-direction: column; gap: .4rem; }
.contact-form label {
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--ink-mute);
}
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--ink);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  align-self: flex-start;
}
.contact-info h3 { margin-top: 0; }
.contact-info .info-row {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule-2);
}
.contact-info .info-row:last-of-type { border-bottom: 1px solid var(--rule-2); }
.contact-info .label {
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--ink-mute); margin-bottom: .25rem;
}

/* ============================================================
   404
   ============================================================ */
.error-404 {
  min-height: 70vh;
  display: grid; place-items: center;
  text-align: center;
  padding-block: 6rem;
}
.error-404 .code {
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-deep);
  color: #F2EFE8;
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #2A2925;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .tagline {
  color: #8A877F;
  max-width: 30ch;
  margin-top: 1rem;
  font-size: var(--step-0);
}
.footer-col h4 {
  font-family: var(--mono); font-size: var(--step--1);
  color: #8A877F; text-transform: uppercase; letter-spacing: .05em;
  margin: 0 0 1rem; font-weight: 400;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { color: #F2EFE8; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: var(--step--1);
  color: #8A877F; flex-wrap: wrap;
}

/* ============================================================
   Pricing (Customizer-driven)
   ============================================================ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pricing-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.pricing-card.featured {
  background: var(--ink); color: #F2EFE8;
  border-color: var(--ink);
}
.pricing-flag {
  position: absolute; top: -12px; left: 2rem;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: .75rem;
  padding: .25rem .6rem; border-radius: 999px;
}
.pricing-name {
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--ink-mute); text-transform: uppercase; letter-spacing: .05em;
}
.pricing-card.featured .pricing-name { color: #8A877F; }
.pricing-price {
  font-size: var(--step-4); letter-spacing: -0.03em; line-height: 1;
  font-weight: 500; display: flex; align-items: baseline; gap: .35rem;
}
.pricing-price span {
  font-size: var(--step-0); color: var(--ink-mute); letter-spacing: 0;
}
.pricing-card.featured .pricing-price span { color: #8A877F; }
.pricing-desc { color: var(--ink-soft); margin: 0; }
.pricing-card.featured .pricing-desc { color: #BAB7AE; }
.pricing-features {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .5rem;
  border-top: 1px solid var(--rule-2); padding-top: 1rem;
}
.pricing-card.featured .pricing-features { border-color: #2A2925; }
.pricing-features li {
  font-size: var(--step-0);
  padding-left: 1.25rem; position: relative;
}
.pricing-features li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent);
}
.pricing-card .btn { align-self: flex-start; margin-top: auto; }
.pricing-card.featured .btn--primary { background: var(--accent); color: #fff; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   Utilities
   ============================================================ */
.stack > * + * { margin-top: var(--stack, 1rem); }
.screen-reader-text {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}
.align-wide { max-width: 1100px; margin-inline: auto; }
.align-full { margin-inline: calc(50% - 50vw); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   v1.3.0 — GLOBAL RESPONSIVE OVERHAUL
   Explicit breakpoints: 540 (small phone) / 720 (phone-tablet)
                         960 (tablet) / 1200 (laptop) / 1440 (desktop)
   Fixes: squeezed inner pages, blog grids, hero proportions,
          container padding on wide monitors, typography jumps.
   ============================================================ */

/* Make sure every container+grid gracefully scales */
.container { box-sizing: border-box; }

/* Narrow content sections (legal pages, generic pages) */
.container--narrow {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--prose {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Generic page.php body — stop it feeling squeezed on desktop */
.page-body {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding-block: clamp(2rem, 5vw, 4rem);
  padding-inline: var(--gutter);
}
.page-body h2 { margin-top: 2.5rem; font-size: var(--step-2); }
.page-body h3 { margin-top: 2rem; font-size: var(--step-1); }
.page-body p, .page-body li { font-size: var(--step-1); line-height: 1.65; color: var(--ink); }
.page-body ul, .page-body ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
.page-body li + li { margin-top: .4rem; }
.page-body a { color: var(--accent); border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.page-body a:hover { border-color: var(--accent); }

/* Hero grid — fix awkward tablet/laptop squeeze (780–1100) */
@media (min-width: 961px) and (max-width: 1199px) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 2.5rem; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-top: clamp(1.5rem, 5vw, 3rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
}
@media (max-width: 540px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* Services grid — fix mid-width column sizing */
@media (min-width: 761px) and (max-width: 1100px) {
  .services .service { padding: 2rem 1.5rem; }
}
@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .services .service { padding: 1.75rem 1.25rem; }
}

/* Metrics row — 4 cols -> 2 cols on mid, stack on small */
@media (max-width: 960px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
}
@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0 !important; border-bottom: 1px solid currentColor; padding: 1.25rem 0; }
  .section:not(.section--dark) .metric { border-bottom-color: var(--rule-2); }
  .section--dark .metric { border-bottom-color: #ffffff1a; }
  .metric:last-child { border-bottom: 0; }
}

/* Verticals grid — was fragile */
.verticals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.verticals .vertical {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex; flex-direction: column; gap: .5rem;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.verticals .vertical:hover { border-color: var(--ink); transform: translateY(-2px); }
.verticals .vertical .n {
  font-family: var(--mono); font-size: var(--step--1); color: var(--ink-mute);
}
.verticals .vertical h3 { margin: .25rem 0 .25rem; font-size: var(--step-1); }
.verticals .vertical p { color: var(--ink-soft); margin: 0; }
@media (max-width: 960px) { .verticals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .verticals { grid-template-columns: 1fr; } }

/* Live feed (front-page product block) */
.feed {
  background: #1A1917;
  border: 1px solid #2A2925;
  border-radius: var(--radius);
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: var(--step--1);
}
.feed-head {
  display: flex; justify-content: space-between; align-items: center;
  color: #8A877F; margin-bottom: 1rem;
}
.feed-head .connected { color: var(--accent); display: inline-flex; align-items: center; gap: .4rem; }
.feed-head .connected::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 1.5s ease-in-out infinite;
}
.feed-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .75rem 0;
  border-top: 1px solid #2A2925;
  color: #F2EFE8;
}
.feed-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-weight: 500; font-size: 12px;
}
.feed-body { font-family: var(--sans); line-height: 1.3; }
.feed-meta { color: #8A877F; font-family: var(--mono); font-size: 11px; margin-top: 2px; }
.feed-time { color: #8A877F; font-size: 11px; }

/* Company stats — prevent cramped 4-col layout on mid screens */
@media (min-width: 761px) and (max-width: 1100px) {
  .company-stats { grid-template-columns: repeat(2, 1fr); }
  .company-stats .stat { border-bottom: 1px solid var(--rule-2); }
  .company-stats .stat:nth-child(2) { border-right: 0; }
  .company-stats .stat:nth-child(3), .company-stats .stat:nth-child(4) { border-bottom: 0; }
}

/* Blog grid — was too tight on mid-screens */
@media (min-width: 641px) and (max-width: 960px) {
  .post-list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
.post-card {
  min-height: 220px;
  justify-content: space-between;
}
.post-card h3 { font-size: var(--step-2); line-height: 1.2; }

/* Featured post on blog — better proportions at all widths */
.featured-post .thumb {
  min-height: 280px;
  aspect-ratio: auto;
}
.featured-post h2 { font-size: var(--step-3); line-height: 1.1; }
.featured-post .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Single post / prose polish */
.single-post .content img {
  width: 100%; height: auto;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.single-post .content ul, .single-post .content ol { padding-left: 1.4rem; margin: 0 0 1.5rem; }
.single-post .content li { font-size: var(--step-1); line-height: 1.65; margin-bottom: .35rem; }
.single-post .content a { color: var(--accent); border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.single-post .content a:hover { border-bottom-color: var(--accent); }
.single-post .content strong { color: var(--ink); font-weight: 600; }

/* Case study archive & single polish */
.case-grid {
  grid-auto-rows: 1fr;
}
@media (max-width: 540px) {
  .case-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
.single-case-body {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Contact form + info — fix mid-width crunch */
@media (min-width: 761px) and (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.contact-info .info-row a { color: var(--ink); border-bottom: 1px solid var(--rule-2); }
.contact-info .info-row a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-info address { font-style: normal; line-height: 1.6; }

/* Footer — larger tap targets on mobile, better mid-width */
@media (min-width: 541px) and (max-width: 860px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: 1 / -1; }
}
.site-footer address {
  font-style: normal;
  color: #8A877F;
  line-height: 1.6;
  margin-top: 1rem;
  font-size: var(--step--1);
}
.site-footer address a { color: #F2EFE8; }
.site-footer address a:hover { color: var(--accent); }

/* Pricing cards — even at widest break cleanly */
@media (min-width: 861px) and (max-width: 1100px) {
  .pricing-card { padding: 1.75rem 1.5rem; }
}

/* Mobile nav — full overlay-friendly */
@media (max-width: 860px) {
  .site-header .inner { padding-block: .85rem; }
  .brand .logo-img, .site-header .brand .logo-img { height: 34px; }
}

/* Images never overflow their container */
.content img, .page-body img, .single-post img, .case-thumb img, .featured-post .thumb img {
  max-width: 100%; height: auto;
}

/* Tables readable on small screens */
.content table, .page-body table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
}
.content table th, .content table td,
.page-body table th, .page-body table td {
  text-align: left; padding: .65rem .75rem;
  border-bottom: 1px solid var(--rule-2);
}
.content table th, .page-body table th {
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--ink-mute); font-weight: 400; text-transform: uppercase; letter-spacing: .04em;
}
@media (max-width: 640px) {
  .content table, .page-body table {
    display: block; overflow-x: auto; white-space: nowrap;
  }
}

/* WordPress alignments */
.aligncenter { text-align: center; margin-inline: auto; }
.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
@media (max-width: 640px) {
  .alignleft, .alignright { float: none; margin: 1rem 0; display: block; }
}

/* ============================================================
   SERVICE PAGE TEMPLATE — shared styles
   ============================================================ */
.service-page .hero { padding-bottom: clamp(2rem, 5vw, 4rem); }
.service-page .hero h1 { max-width: 20ch; }

.svc-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) { .svc-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .svc-benefits { grid-template-columns: 1fr; } }
.svc-benefit {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex; flex-direction: column; gap: .5rem;
}
.svc-benefit .n {
  font-family: var(--mono); font-size: var(--step--1); color: var(--ink-mute);
}
.svc-benefit h3 { margin: .25rem 0 .25rem; font-size: var(--step-1); }
.svc-benefit p { color: var(--ink-soft); margin: 0; }

.svc-workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}
@media (max-width: 960px) { .svc-workflow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .svc-workflow { grid-template-columns: 1fr; } }
.svc-step {
  padding: 1.5rem 1.25rem;
  border-top: 2px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 0 var(--radius) var(--radius);
}
.svc-step .n {
  counter-increment: step;
  font-family: var(--mono); font-size: var(--step--1); color: var(--accent);
}
.svc-step .n::before { content: "Step " counter(step, decimal-leading-zero) " · "; }
.svc-step h3 { font-size: var(--step-1); margin: .25rem 0 .5rem; }
.svc-step p { color: var(--ink-soft); margin: 0; font-size: var(--step-0); }

.svc-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2.5rem;
}
@media (max-width: 720px) { .svc-features { grid-template-columns: 1fr; } }
.svc-feature {
  padding-left: 2rem;
  position: relative;
}
.svc-feature::before {
  content: "→"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 500;
}
.svc-feature h4 { font-size: var(--step-1); margin: 0 0 .35rem; }
.svc-feature p { color: var(--ink-soft); margin: 0; }

/* FAQ — accordion */
.faq { display: grid; gap: .5rem; max-width: var(--maxw-narrow); margin: 0 auto; }
.faq details {
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.faq details[open] { border-color: var(--ink); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-weight: 500;
  font-size: var(--step-1);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--ink-soft);
  font-size: var(--step-0);
  line-height: 1.65;
}
.faq-body p { margin: 0 0 .75rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* 404 fixes */
.error-404 { padding-inline: var(--gutter); }

/* Ensure sticky header never loses its logo on tiny screens */
.site-header .brand { min-width: 0; flex: 0 1 auto; }


/* ============================================================
   v1.3.1 — single post page width fix
   ============================================================ */
/* Make sure post body breathes on every screen */
.single-post .content {
  margin: 0 auto;
}
.single-post header { margin-bottom: 2rem; }
.single-post .meta { margin-bottom: 1rem; }

/* The post-nav under articles — let it span the article width */
.single-post .post-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.single-post .post-nav-prev,
.single-post .post-nav-next {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  text-decoration: none;
}
.single-post .post-nav-prev span,
.single-post .post-nav-next span {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-mute);
}
.single-post .post-nav-next {
  text-align: right;
}
.single-post .post-nav strong { color: var(--ink); font-size: var(--step-1); line-height: 1.3; }
.single-post .post-nav a:hover strong { color: var(--accent); }
@media (max-width: 540px) {
  .single-post .post-nav { grid-template-columns: 1fr; }
  .single-post .post-nav-next { text-align: left; }
}

/* Comments block (if enabled) */
.single-post .comments-area {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-2);
}


/* ============================================================
   v1.3.3 — DEFINITIVE single post layout reset
   Forces the page to behave like every other page on the site,
   regardless of cached HTML or older CSS layered on top.
   ============================================================ */

/* SAFETY: ensure body and main never collapse to article width */
body.single-post,
body.single,
body.postid-301,
body.single-post main,
body.single main,
.site-header,
.site-header .container,
.site-header .container.inner,
.site-footer,
.site-footer .container {
  max-width: none !important;
  width: auto !important;
}

/* Header inner stays at 1440 like everywhere else */
.site-header .container.inner {
  max-width: var(--maxw) !important;
  margin-inline: auto !important;
  width: 100% !important;
}

/* Footer container stays at 1440 like everywhere else */
.site-footer .container {
  max-width: var(--maxw) !important;
  margin-inline: auto !important;
  width: 100% !important;
}

/* On a single post, the OUTER hero/section wrappers behave normally */
body.single .hero,
body.single .section,
body.single .section--tight {
  width: 100%;
  max-width: none;
}
body.single .hero > .container,
body.single .section > .container,
body.single .section--tight > .container {
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
}

/* Article body itself is narrow (reading column) — that's fine */
body.single .single-post {
  max-width: 760px;
  margin: 0 auto;
}

/* Featured thumb fills the container */
.post-featured-thumb,
.single-post-thumb {
  max-width: 100%;
}
.post-featured-thumb img,
.single-post-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Kill any massive empty space after featured image */
body.single .section--tight + .section { padding-top: clamp(2rem, 4vw, 3rem); }

