/* ============================================================
   Interon — Swiss-inspired design system
   Single-accent, strict grid, generous negative space.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap');

:root {
    /* Swiss rule: all text is the same colour. Hierarchy comes from size,
       weight, position, and whitespace — never from tonal variation.
       --ink-soft / --ink-mute are kept as aliases so existing rules don't
       need to be touched, but they all resolve to --ink. */
    --ink: #0a0a0a;
    --ink-soft: #0a0a0a;
    --ink-mute: #0a0a0a;
    --paper: #f5f3ee;
    --paper-pure: #ffffff;
    --rule: #1a1a1a;
    --hairline: #d9d6cd;
    --accent: #e16c04;
    --accent-ink: #ffffff;
    --grid-gutter: 32px;
    --grid-max: 1440px;
    --grid-pad: clamp(20px, 4vw, 64px);
    --t-step--2: 0.75rem;
    --t-step--1: 0.875rem;
    --t-step-0: 1rem;
    --t-step-1: 1.125rem;
    --t-step-2: 1.5rem;
    --t-step-3: clamp(1.75rem, 2.5vw, 2.25rem);
    --t-step-4: clamp(2.25rem, 4vw, 3.5rem);
    --t-step-5: clamp(3rem, 8vw, 6.5rem);
    --t-step-6: clamp(4rem, 12vw, 10rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--t-step-0);
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

::selection { background: var(--ink); color: var(--paper); }

/* ----- Layout primitives ----- */

.shell {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding-left: var(--grid-pad);
  padding-right: var(--grid-pad);
}

.rule        { height: 1px; background: var(--ink); width: 100%; }
.rule-thin   { height: 1px; background: var(--hairline); width: 100%; }

.eyebrow {
  font-size: var(--t-step--2);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--ink);
}

.display-1   { font-size: var(--t-step-6); font-weight: 500; letter-spacing: -0.035em; }
.display-2   { font-size: var(--t-step-5); font-weight: 500; letter-spacing: -0.03em; }
.h2          { font-size: var(--t-step-4); font-weight: 500; letter-spacing: -0.025em; }
.h3          { font-size: var(--t-step-3); font-weight: 500; }
.lead {
  font-size: var(--t-step-2);
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 36ch;
}

.muted   { color: var(--ink-mute); }
.editorial {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  font-family: inherit;
  font-size: var(--t-step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn .arrow { transition: transform 120ms ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Buttons on dark backgrounds (proposal CTA, home CTA band).
   The default ink-on-paper button styles are invisible on a --ink panel —
   transparent .btn-outline, navy .btn-accent both disappear. Invert the
   palette here so they read clearly against the dark band. */
.proposal-block--cta .btn,
.home-cta .btn {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.proposal-block--cta .btn:hover,
.home-cta .btn:hover {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.proposal-block--cta .btn-outline,
.home-cta .btn-outline {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.proposal-block--cta .btn-outline:hover,
.home-cta .btn-outline:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
  min-height: 72px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 50px;
}
.site-logo__img {
  height: 50px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  gap: 32px;
  justify-content: center;
}
.site-nav a {
  font-size: var(--t-step--1);
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}
.site-nav a:hover { border-bottom-color: var(--ink); }
.site-header__cta { justify-self: end; }

/* Hamburger button — hidden on desktop, shown on mobile */
.site-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background 120ms ease;
}
.site-burger:hover { background: rgba(10, 10, 10, 0.04); }
.site-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1), opacity 150ms ease;
  transform-origin: center;
}
body.site-nav-open .site-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.site-nav-open .site-burger span:nth-child(2) { opacity: 0; }
body.site-nav-open .site-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
  }
  .site-burger { display: inline-flex; }
  .site-header__cta .btn {
    padding: 10px 14px;
    font-size: var(--t-step--2);
  }

  /* Slide-down overlay menu */
  .site-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    border-top: 1px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: clamp(32px, 6vw, 56px) var(--grid-pad) 48px;
    gap: 0;
    transform: translateY(-100%);
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    overflow-y: auto;
    visibility: hidden;
  }
  body.site-nav-open .site-nav {
    transform: translateY(0);
    visibility: visible;
  }
  .site-nav a {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--ink);
    padding: 18px 0;
    width: 100%;
    border-bottom: 1px solid var(--hairline);
  }
  .site-nav a:first-child { border-top: 1px solid var(--hairline); }
  body.site-nav-open { overflow: hidden; }
}

@media (max-width: 480px) {
  .site-header__cta .btn span.arrow { display: none; }
}

/* ----- Styled error page (404 etc.) ----- */
/* Big numeral, generous whitespace, Swiss-style jump-back navigation. */

.error-page {
  padding-top: clamp(80px, 12vw, 200px);
  padding-bottom: clamp(80px, 12vw, 200px);
}
.error-page__code {
  display: block;
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.error-page__heading {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 24px 0;
}
.error-page__lead {
  font-size: var(--t-step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 clamp(40px, 5vw, 64px) 0;
}
.error-page__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(64px, 8vw, 120px);
}
.error-page__nav {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.error-page__nav-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 16px 0;
}
.error-page__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.error-page__nav a {
  font-size: var(--t-step-0);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: padding 0.2s ease;
}
.error-page__nav a:hover {
  padding-bottom: 6px;
}

/* ----- Quote wizard - proposal output ----- */

.proposal {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(64px, 8vw, 120px);
}
.proposal-block {
  border-top: 1px solid var(--ink);
  padding: clamp(32px, 4vw, 48px) 0;
}
.proposal-block:first-child { border-top: none; padding-top: 0; }
.proposal-block__head {
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
.proposal-block__title {
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 8px 0 0 0;
}
.proposal-block__intro {
  margin: clamp(16px, 2vw, 24px) 0 0;
  max-width: 70ch;
  line-height: 1.55;
  font-size: var(--t-step-0);
}
.proposal-score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.proposal-score__cell {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proposal-score__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.proposal-score__value {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.proposal-score__value small {
  font-size: var(--t-step-0);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-left: 4px;
}
.proposal-score__value--text {
  font-size: var(--t-step-2);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
@media (max-width: 700px) {
  .proposal-score { grid-template-columns: 1fr; }
}

.proposal-risks {
  margin: 0;
  padding: 0 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proposal-risks li {
  line-height: 1.6;
}

.proposal-lines {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-step-0);
}
.proposal-lines thead th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--ink);
}
.proposal-lines th.num,
.proposal-lines td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-right: 0;
}
.proposal-lines tbody td {
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  line-height: 1.4;
}
.proposal-lines tbody td span.muted {
  display: block;
  font-size: var(--t-step--1);
  margin-top: 4px;
}
.proposal-lines tfoot td {
  padding: 12px 12px 12px 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.proposal-lines tfoot tr:last-child td {
  border-top: 1px solid var(--ink);
  font-size: var(--t-step-1);
}
.proposal-note {
  margin-top: 16px;
  font-size: var(--t-step--1);
  line-height: 1.55;
}

.proposal-answers {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px 24px;
  margin: 0;
}
.proposal-answers dt {
  font-weight: 500;
  font-size: var(--t-step--1);
  letter-spacing: 0.02em;
}
.proposal-answers dd {
  margin: 0;
  font-size: var(--t-step-0);
  line-height: 1.5;
}
@media (max-width: 600px) {
  .proposal-answers { grid-template-columns: 1fr; gap: 4px 0; }
  .proposal-answers dd { margin-bottom: 12px; }
}

.proposal-block--cta {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(40px, 5vw, 64px);
  margin-top: clamp(40px, 5vw, 64px);
}
.proposal-block--cta .proposal-block__title { color: var(--paper); margin-bottom: 16px; }
.proposal-block--cta p { color: var(--paper); opacity: 0.85; max-width: 60ch; line-height: 1.55; }
.proposal-block--cta code { background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 0; font-size: var(--t-step--1); }
.proposal-cta-row {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ----- Quote wizard ----- */

.wizard {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(64px, 8vw, 120px);
}
.wizard-steps {
  list-style: none;
  margin: 0 0 clamp(40px, 5vw, 64px) 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  font-size: var(--t-step--1);
}
.wizard-steps li {
  padding: 12px 0 8px;
  border-top: 2px solid var(--hairline);
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.3;
  transition: border-color 0.2s ease;
}
.wizard-steps li.is-active { border-top-color: var(--ink); }
.wizard-steps li span {
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 11px;
  margin-bottom: 4px;
}
.wizard-panel {
  display: none;
}
.wizard-panel.is-active {
  display: block;
}
.wizard-panel__head {
  margin-bottom: clamp(24px, 3vw, 40px);
}
.wizard-panel__index {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}
.wizard-panel__title {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}
.wizard-field {
  display: block;
  margin-bottom: 24px;
}
.wizard-field__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.wizard-field input,
.wizard-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-step-0);
  border-radius: 0;
  transition: border-width 0.15s, padding 0.15s;
}
.wizard-field input:focus,
.wizard-field textarea:focus {
  outline: none;
  border-width: 2px;
  padding: 13px 15px;
}
.wizard-field input.is-invalid,
.wizard-field textarea.is-invalid {
  border-color: var(--accent);
  border-width: 2px;
  padding: 13px 15px;
}
.wizard-field textarea { resize: vertical; min-height: 96px; }
.wizard-field fieldset,
fieldset.wizard-field {
  border: none;
  margin: 0 0 24px 0;
  padding: 0;
}
.wizard-field legend.wizard-field__label {
  margin-bottom: 12px;
}
.wizard-panel__help {
  font-size: var(--t-step-0);
  line-height: 1.55;
  margin: 8px 0 0 0;
}

/* ---- Tile grid (option chooser for wizard steps) ---- */
.wizard-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.wizard-tiles--small {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.wizard-tile {
  position: relative;
  border: 1px solid var(--ink);
  padding: 14px 16px;
  background: var(--paper-pure);
  cursor: pointer;
  transition: border-width 0.15s, padding 0.15s;
  display: block;
}
.wizard-tile:hover {
  border-width: 2px;
  padding: 13px 15px;
}
.wizard-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wizard-tile:has(input:checked) {
  background: var(--ink);
  color: var(--paper);
  border-width: 2px;
  padding: 13px 15px;
}
.wizard-tile__title {
  display: block;
  font-size: var(--t-step-0);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 4px;
}
.wizard-tile__desc {
  display: block;
  font-size: var(--t-step--1);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .wizard-tiles,
  .wizard-tiles--small { grid-template-columns: 1fr; }
}
.wizard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .wizard-grid { grid-template-columns: 1fr; }
  .wizard-steps { grid-template-columns: repeat(4, 1fr); }
  .wizard-steps li { font-size: 10px; }
}
.wizard-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.wizard-nav__progress {
  flex: 1;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.wizard-success {
  padding: clamp(48px, 6vw, 80px) 0;
  text-align: left;
}
.wizard-success__heading {
  font-size: var(--t-step-4);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 16px 0 16px 0;
}
.wizard-success__lead {
  font-size: var(--t-step-1);
  line-height: 1.55;
  margin: 0 0 32px 0;
  max-width: 60ch;
}
.wizard-success code {
  font-family: 'Inter', monospace;
  background: var(--paper-pure);
  border: 1px solid var(--ink);
  padding: 2px 8px;
  font-size: var(--t-step--1);
  letter-spacing: 0.02em;
}

/* ----- Subscribe card on blog posts ----- */

.post-subscribe {
  border-top: 1px solid var(--ink);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(24px, 3vw, 40px);
}
.post-subscribe__head { margin-bottom: 24px; }
.post-subscribe__heading {
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 8px 0 12px 0;
}
.post-subscribe__lead {
  font-size: var(--t-step-0);
  line-height: 1.55;
  margin: 0;
  max-width: 50ch;
}
.post-subscribe__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
.post-subscribe__field { display: block; }
.post-subscribe__field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
  font: inherit;
  font-size: var(--t-step-0);
  color: var(--ink);
  border-radius: 0;
}
.post-subscribe__field input:focus {
  outline: none;
  border-width: 2px;
  padding: 13px 15px;
}
.post-subscribe__success,
.post-subscribe__already,
.post-subscribe__error {
  margin: 16px 0 0 0;
  font-size: var(--t-step-0);
}
.post-subscribe__error { color: var(--accent); }
@media (max-width: 600px) {
  .post-subscribe__form { grid-template-columns: 1fr; }
  .post-subscribe__form .btn { width: 100%; }
}

/* ----- Post share row (bottom of blog posts) ----- */

.post-share {
  border-top: 1px solid var(--ink);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.post-share__title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0;
}
.post-share__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.post-share__list a {
  font-size: var(--t-step-0);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: padding 0.15s ease;
}
.post-share__list a:hover {
  padding-bottom: 5px;
}
.post-share__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ----- Breadcrumbs (interior pages only) ----- */
/* Distinctive Swiss treatment: level counter on the left, right-aligned trail
   with vertical-bar separators, current page set in serif italic to echo the
   hero italic accent. Thin hairline rules tie the strip to the page rhythm
   without competing with the hero below. Stacks on small screens. */

.crumbs {
  border-top: 1px solid rgba(10, 31, 51, 0.08);
  border-bottom: 1px solid rgba(10, 31, 51, 0.08);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.crumbs__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.crumbs__level {
  color: var(--ink-mute);
  font-weight: 500;
  flex-shrink: 0;
}
.crumbs__trail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  text-align: right;
}
.crumbs__item {
  display: inline-flex;
  align-items: baseline;
}
.crumbs__sep {
  color: var(--ink-mute);
  padding: 0 12px;
}
.crumbs__link {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.crumbs__link:hover { color: var(--ink); text-decoration: underline; }
.crumbs__current {
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 14px;
}
@media (max-width: 700px) {
  .crumbs__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .crumbs__trail { justify-content: flex-start; text-align: left; }
  .crumbs__sep:first-child { padding-left: 0; }
}

/* ----- Hero ----- */

.hero {
  border-bottom: 1px solid var(--ink);
  padding-top: clamp(48px, 8vw, 120px);
  padding-bottom: clamp(48px, 8vw, 120px);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gutter);
  align-items: end;
}
.hero__eyebrow {
  grid-column: 1 / -1;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.hero__heading {
  grid-column: 1 / span 10;
  font-size: var(--t-step-5);
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-weight: 500;
}
.hero__heading em {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero__meta {
  grid-column: 1 / span 5;
  margin-top: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero__lead {
  font-size: var(--t-step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__index {
  grid-column: 9 / span 4;
  margin-top: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: var(--t-step--1);
  color: var(--ink-mute);
  align-self: end;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}
.hero__index dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  row-gap: 6px;
}
.hero__index dt { color: var(--ink-mute); }
.hero__index dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .hero__heading,
  .hero__meta,
  .hero__index { grid-column: 1 / -1; }
  .hero__heading { font-size: var(--t-step-4); }
}

/* ----- Hero with object image (side-by-side) ----- */
/* Photo cream background should match --paper so the object reads as floating
   on the page; the photo is essentially a transparent object on shared cream.
   Padding is lighter than the text-only hero — the image visually anchors the
   section, so the big top breathing room is no longer needed. */

.hero--with-image {
  padding-top: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(24px, 3vw, 48px);
}
.hero--with-image .hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero--with-image .hero__text {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
}
.hero--with-image .hero__heading {
  font-size: var(--t-step-4);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}
.hero--with-image .hero__meta {
  grid-column: auto;
  margin-top: 0;
  gap: 24px;
}
.hero--with-image .hero__image {
  margin: 0;
  height: 70vh;
  max-height: 640px;
  min-height: 360px;
  overflow: hidden;
  background: var(--paper);
}
.hero--with-image .hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero--with-image .hero__split { grid-template-columns: 1fr; }
  .hero--with-image .hero__image {
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: none;
    min-height: 0;
  }
}

/* ----- Home section: intro pillar ----- */

.home-pillar {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--ink);
}
.home-pillar__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gutter);
}
.home-pillar__eyebrow {
  grid-column: 1 / -1;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.home-pillar__heading {
  grid-column: 1 / span 9;
  font-size: var(--t-step-3);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 500;
  margin: 0 0 28px 0;
}
.home-pillar__lead {
  grid-column: 2 / span 8;
  font-size: var(--t-step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}
@media (max-width: 900px) {
  .home-pillar__heading,
  .home-pillar__lead { grid-column: 1 / -1; }
}

/* ----- Home section: three service pillars ----- */

.home-services {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-pure);
}
.home-services__head {
  max-width: 60ch;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.home-services__heading {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 16px 0 16px 0;
}
.home-services__lead {
  font-size: var(--t-step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.home-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.home-service {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.home-service__index {
  font-size: var(--t-step--1);
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.home-service__title {
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.home-service__body {
  font-size: var(--t-step-0);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}
.home-service__link {
  font-size: var(--t-step--1);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 3px;
  transition: gap 0.2s ease;
}
.home-service__link:hover { gap: 12px; }
@media (max-width: 900px) {
  .home-services__list { grid-template-columns: 1fr; }
}

/* ----- Home section: Enterprise Umbraco (4 feature cards) ----- */

.home-umbraco {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
  border-bottom: 1px solid var(--ink);
}
.home-umbraco__head {
  max-width: 70ch;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.home-umbraco__heading {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 16px 0;
}
.home-umbraco__lead {
  font-size: var(--t-step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.home-umbraco__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.home-umfeat {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-umfeat__title {
  font-size: var(--t-step-1);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
}
.home-umfeat__body {
  font-size: var(--t-step--1);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.home-umbraco__foot {
  margin-top: clamp(48px, 6vw, 80px);
}
@media (max-width: 1100px) {
  .home-umbraco__features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .home-umbraco__features { grid-template-columns: 1fr; }
}

/* ----- Home section: Founders (2 cards) ----- */

.home-founders {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-pure);
}
.home-founders__head {
  max-width: 60ch;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.home-founders__heading {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 16px 0;
}
.home-founders__lead {
  font-size: var(--t-step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.home-founders__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 64px);
}
.home-founder {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-founder__name {
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.home-founder__role {
  font-size: var(--t-step--1);
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.home-founder__bio {
  font-size: var(--t-step-0);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 8px 0 0 0;
}
.home-founder__link {
  font-size: var(--t-step--1);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 3px;
  margin-top: 8px;
  transition: gap 0.2s ease;
}
.home-founder__link:hover { gap: 12px; }
@media (max-width: 700px) {
  .home-founders__list { grid-template-columns: 1fr; }
}

/* ----- Home section: Insights carousel (3 most recent blog posts) ----- */

.home-blog {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
  border-bottom: 1px solid var(--ink);
}
.home-blog__head {
  max-width: 60ch;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.home-blog__heading {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 16px 0;
}
.home-blog__lead {
  font-size: var(--t-step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.home-blog__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}
.home-blog__list--count-1 { grid-template-columns: minmax(0, 520px); }
.home-blog__list--count-2 { grid-template-columns: repeat(2, 1fr); }
.home-blog__list--count-3 { grid-template-columns: repeat(3, 1fr); }
.home-post__link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  transition: padding 0.2s ease;
}
.home-post__link:hover { padding-top: 14px; border-top-width: 4px; }
.home-post__thumb {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper);
  margin-bottom: 6px;
}
.home-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-post__meta {
  font-size: var(--t-step--1);
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.home-post__title {
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.home-post__excerpt {
  font-size: var(--t-step-0);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}
.home-post__cta {
  font-size: var(--t-step--1);
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.home-blog__foot {
  margin-top: clamp(48px, 6vw, 80px);
}
@media (max-width: 900px) {
  .home-blog__list { grid-template-columns: 1fr; }
}

/* ----- Home section: How it works (3 steps) ----- */

.home-howit {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
  border-bottom: 1px solid var(--ink);
}
.home-howit__head {
  max-width: 60ch;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.home-howit__heading {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 16px 0;
}
.home-howit__lead {
  font-size: var(--t-step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.home-howit__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
}
.home-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-step__num {
  font-size: var(--t-step-5);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.home-step__title {
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.home-step__body {
  font-size: var(--t-step-0);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.home-howit__foot {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.home-howit__footnote {
  font-size: var(--t-step-0);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}
@media (max-width: 900px) {
  .home-howit__steps { grid-template-columns: 1fr; }
}

/* ----- Home section: Measurable Results (3 offers) ----- */

.home-results {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-pure);
}
.home-results__head {
  max-width: 60ch;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.home-results__heading {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 16px 0;
}
.home-results__lead {
  font-size: var(--t-step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.home-results__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.home-offer {
  border: 1px solid var(--ink);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper);
}
.home-offer__title {
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.home-offer__body {
  font-size: var(--t-step-0);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}
.home-offer__link {
  font-size: var(--t-step--1);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 3px;
  transition: gap 0.2s ease;
}
.home-offer__link:hover { gap: 12px; }
@media (max-width: 900px) {
  .home-results__list { grid-template-columns: 1fr; }
}

/* ----- Home section: CTA band ----- */

.home-cta {
  padding-top: clamp(56px, 7vw, 104px);
  padding-bottom: clamp(56px, 7vw, 104px);
  background: var(--ink);
  color: var(--paper);
}
.home-cta__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.home-cta__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.home-cta__heading {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--paper);
  margin: 0;
}
.home-cta__lead {
  font-size: var(--t-step-1);
  line-height: 1.55;
  color: var(--paper);
  opacity: 0.78;
  max-width: 50ch;
  margin: 0;
}
.home-cta__button {
  justify-self: end;
}
@media (max-width: 900px) {
  .home-cta__inner { grid-template-columns: 1fr; }
  .home-cta__button { justify-self: start; }
}

/* ----- Page hero (interior pages) ----- */

.page-hero {
  border-bottom: 1px solid var(--ink);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(32px, 5vw, 64px);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gutter);
  align-items: end;
}
.page-hero__eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 32px;
}
.page-hero__heading {
  grid-column: 1 / span 9;
  font-size: var(--t-step-4);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.page-hero__lead {
  grid-column: 1 / span 7;
  margin-top: 24px;
  font-size: var(--t-step-1);
  line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .page-hero__heading,
  .page-hero__lead { grid-column: 1 / -1; }
  .page-hero__heading { font-size: var(--t-step-3); }
}

/* ----- Page hero with object image (side-by-side, blog + interior pages) ----- */

.page-hero--with-image .page-hero__split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.page-hero--with-image .page-hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-hero--with-image .page-hero__heading {
  margin: 0;
  font-size: var(--t-step-3);
}
.page-hero--with-image .page-hero__lead {
  margin: 0;
  max-width: none;
}
.page-hero--with-image .page-hero__image {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
}
.page-hero--with-image .page-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .page-hero--with-image .page-hero__split { grid-template-columns: 1fr; }
  .page-hero--with-image .page-hero__image { aspect-ratio: 16 / 10; }
}

/* ----- Page body (prose) ----- */

.page-body {
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(64px, 8vw, 128px);
}
.page-body__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gutter);
}
.page-body__content {
  grid-column: 2 / span 8;
}
@media (max-width: 1000px) {
  .page-body__content { grid-column: 1 / -1; }
}

.prose {
  font-size: var(--t-step-1);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 68ch;
}
.prose strong { color: var(--ink); font-weight: 500; }
.prose a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  transition: background 120ms ease;
}
.prose a:hover { background: rgba(200, 32, 10, 0.08); }
.prose section + section { margin-top: clamp(48px, 5vw, 80px); }
.prose h2 {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.prose h3 {
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 40px 0 12px;
}
.prose h2 + h3 { margin-top: 16px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--ink-mute); }

/* ----- Learn hub: guide list ----- */

.learn-guides {
  padding: clamp(48px, 6vw, 96px) 0;
  border-bottom: 1px solid var(--ink);
}
.learn-guides__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.learn-guides__title {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.learn-guides__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.learn-guides__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--hairline);
  transition: background 120ms ease;
}
.learn-guides__item:first-child { border-top-color: var(--ink); }
.learn-guides__item:last-child { border-bottom: 1px solid var(--hairline); }
.learn-guides__item:hover { background: rgba(10, 10, 10, 0.02); }
.learn-guides__index {
  font-family: 'Newsreader', Georgia, serif;
  font-size: var(--t-step-4);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}
.learn-guides__heading {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.learn-guides__heading a { color: var(--ink); border-bottom: 1px solid transparent; }
.learn-guides__heading a:hover { border-bottom-color: var(--ink); }
.learn-guides__lead {
  color: var(--ink-soft);
  font-size: var(--t-step-1);
  line-height: 1.55;
  margin: 0 0 16px;
  max-width: 56ch;
}
.learn-guides__link {
  color: var(--ink);
  font-size: var(--t-step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.learn-guides__link:hover { background: rgba(200, 32, 10, 0.08); }

@media (max-width: 640px) {
  .learn-guides__item { grid-template-columns: 1fr; gap: 8px; }
  .learn-guides__index { font-size: var(--t-step-3); }
  .learn-guides__heading { font-size: var(--t-step-2); }
}

/* ----- Learn guide: related/next ----- */

.learn-related {
  border-top: 1px solid var(--ink);
  padding: clamp(48px, 6vw, 96px) 0;
}
.learn-related__title {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.learn-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.learn-related__list a {
  display: block;
  padding: 24px;
  border: 1px solid var(--hairline);
  transition: border-color 120ms ease, background 120ms ease;
}
.learn-related__list a:hover {
  border-color: var(--ink);
  background: var(--paper-pure);
}
.learn-related__name {
  display: block;
  font-size: var(--t-step-1);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.learn-related__lead {
  display: block;
  font-size: var(--t-step--1);
  color: var(--ink-mute);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .learn-related__list { grid-template-columns: 1fr; }
}

/* ----- Insights: post listing ----- */

.posts {
  padding: clamp(48px, 6vw, 96px) 0;
  border-bottom: 1px solid var(--ink);
}
.posts:last-of-type { border-bottom: none; }
.posts__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.posts__title {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.posts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.posts__list--featured { grid-template-columns: 1fr; }

.post-card__thumb {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper);
  margin-bottom: 16px;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card--featured .post-card__link:has(.post-card__thumb) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 5vw, 64px) 0;
}
.post-card--featured .post-card__body {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  min-width: 0;
}
.post-card--featured .post-card__thumb {
  aspect-ratio: 4 / 5;
  max-height: 520px;
  margin: 0;
}
.post-card--featured .post-card__excerpt,
.post-card--featured .post-card__title {
  margin: 0;
}

@media (max-width: 900px) {
  .post-card--featured .post-card__link {
    grid-template-columns: 1fr;
    padding: clamp(24px, 4vw, 40px) 0;
  }
  .post-card--featured .post-card__thumb {
    aspect-ratio: 16 / 10;
    max-height: none;
  }
}
.post-card {
  border-top: 1px solid var(--hairline);
}
.post-card:first-child { border-top-color: var(--ink); }
.posts__list > .post-card:nth-child(3n+1) { border-left: none; }
.post-card__link {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 32px);
  height: 100%;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background 120ms ease;
}
.post-card__link:hover { background: rgba(10, 10, 10, 0.02); }
.post-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--t-step--2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.post-card__category { color: var(--accent); }
.post-card__title {
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.post-card--featured .post-card__title {
  font-size: var(--t-step-4);
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 22ch;
}
.post-card__excerpt {
  color: var(--ink-soft);
  font-size: var(--t-step-0);
  line-height: 1.55;
  margin: 0 0 24px;
  flex: 1;
}
.post-card--featured .post-card__excerpt {
  font-size: var(--t-step-1);
  max-width: 56ch;
}
.post-card__link-cta {
  font-size: var(--t-step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .posts__list { grid-template-columns: 1fr; }
}

/* ----- Post detail ----- */

.post-hero__byline {
  grid-column: 1 / -1;
  margin-top: 24px;
  font-size: var(--t-step--1);
  color: var(--ink-mute);
}
.post-tags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: var(--t-step--1);
}
.post-tag {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  font-size: var(--t-step--2);
  letter-spacing: 0.02em;
}

/* ----- Contact page ----- */

.contact {
  padding: clamp(48px, 6vw, 96px) 0;
  border-bottom: 1px solid var(--ink);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}
.contact__forms { min-width: 0; }
.contact-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 32px;
}
.contact-tab {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--hairline);
  font-family: inherit;
  font-size: var(--t-step-1);
  color: var(--ink-mute);
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.01em;
  transition: background 120ms ease, color 120ms ease;
}
.contact-tab:last-child { border-right: none; }
.contact-tab__index {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-step-2);
  color: var(--accent);
}
.contact-tab:hover { color: var(--ink); }
.contact-tab.is-active {
  background: var(--ink);
  color: var(--paper);
}
.contact-tab.is-active .contact-tab__index { color: var(--paper); }

.contact-panel { display: none; }
.contact-panel.is-active { display: block; }
.contact-panel__lead {
  font-size: var(--t-step-0);
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 56ch;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 560px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form__label {
  font-size: var(--t-step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  font: inherit;
  font-size: var(--t-step-0);
  padding: 14px 16px;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
  color: var(--ink);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.contact-form__field textarea {
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
}
.contact-form__field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%230a0a0a' stroke-width='1.5' fill='none' stroke-linecap='square'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.contact-form button[type=submit] {
  justify-self: start;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

.contact-success {
  border: 1px solid var(--ink);
  padding: 32px;
}
.contact-success h3 {
  font-size: var(--t-step-3);
  font-weight: 500;
  margin: 12px 0 12px;
  letter-spacing: -0.02em;
}
.contact-success p { color: var(--ink-soft); margin-bottom: 24px; }

.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 1px solid var(--hairline);
  padding-left: clamp(24px, 3vw, 48px);
}
.contact-card h3 {
  font-size: var(--t-step--2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 12px;
}
.contact-card p { margin: 0 0 6px; line-height: 1.5; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.contact-card--note ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-card--note li {
  font-size: var(--t-step--1);
  line-height: 1.5;
  color: var(--ink-soft);
}
.contact-card--note strong { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__aside { border-left: none; border-top: 1px solid var(--hairline); padding-left: 0; padding-top: 40px; }
}

/* ----- Insight modal ----- */

.contact-modal[hidden] { display: none; }
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
}
.contact-modal__dialog {
  position: relative;
  max-width: 640px;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: clamp(32px, 4vw, 48px);
  max-height: 90vh;
  overflow-y: auto;
}
.contact-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--ink-soft);
  cursor: pointer;
  width: 40px;
  height: 40px;
  line-height: 1;
}
.contact-modal__close:hover { color: var(--accent); }
.contact-modal__title {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 16px 0 32px;
  line-height: 1.15;
}
.insight {
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.insight dt {
  font-size: var(--t-step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.insight dd {
  margin: 0 0 24px;
  font-size: var(--t-step-1);
  line-height: 1.55;
  color: var(--ink);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.insight dd:last-child { border-bottom: none; }

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--accent); }

/* ----- Videos ----- */

.videos {
  padding: clamp(48px, 6vw, 96px) 0;
  border-bottom: 1px solid var(--ink);
}
.videos__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.video-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  background: var(--paper-pure);
  transition: border-color 120ms ease;
}
.video-card:hover { border-color: var(--ink); }
.video-card__embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--ink);
  overflow: hidden;
}
.video-card__embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-card__body { padding: clamp(20px, 2.5vw, 32px); }
.video-card__category {
  display: inline-block;
  font-size: var(--t-step--2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}
.video-card__title {
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.video-card__title a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.video-card__title a:hover { border-bottom-color: var(--ink); }
.video-card__excerpt {
  color: var(--ink-soft);
  font-size: var(--t-step-0);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .videos__grid { grid-template-columns: 1fr; }
}

/* ----- Video detail ----- */

.video-detail {
  padding: clamp(48px, 6vw, 96px) 0;
}
.video-detail__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gutter);
}
.video-detail__embed {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--ink);
  margin-bottom: 32px;
}
.video-detail__embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-detail__body {
  grid-column: 2 / span 8;
  font-size: var(--t-step-1);
}
@media (max-width: 1000px) {
  .video-detail__body { grid-column: 1 / -1; }
}

/* ----- Quote landing splitter ----- */

.quote-splitter { padding: clamp(48px, 6vw, 96px) 0; border-bottom: 1px solid var(--ink); }
.quote-splitter__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 4vw, 64px);
}
.quote-card {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid var(--hairline);
  background: var(--paper-pure);
  gap: 20px;
  position: relative;
}
.quote-card--featured { border-color: var(--ink); }
.quote-card__title {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}
.quote-card__lead { color: var(--ink-soft); font-size: var(--t-step-1); line-height: 1.55; max-width: 50ch; margin: 0; }
.quote-card__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quote-card__features li {
  padding-left: 18px;
  position: relative;
  font-size: var(--t-step--1);
  color: var(--ink-soft);
}
.quote-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.quote-card__badge {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  font-size: var(--t-step--2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.quote-card .btn { align-self: flex-start; margin-top: 4px; }

@media (max-width: 900px) {
  .quote-splitter__grid { grid-template-columns: 1fr; }
}

/* ----- Rough quote calculator ----- */

.rough { padding: clamp(40px, 5vw, 80px) 0; }
.rough__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.rough__form { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.rough__toolbar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}
.rough__toolbar p { font-size: var(--t-step--1); margin: 0; }
.rough__currency { display: flex; flex-direction: column; gap: 6px; }
.rough__currency select {
  font: inherit;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
  color: var(--ink);
  border-radius: 0;
}

.rough__section { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rough__section legend {
  font-size: var(--t-step--2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 8px;
  width: 100%;
}
.rough__option {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
}
.rough__option--quantity { grid-template-columns: 1fr 100px; gap: 16px; }
.rough__option:last-child { border-bottom: none; }
.rough__option input[type=checkbox],
.rough__option input[type=radio] { margin-top: 4px; }
.rough__option-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rough__option-label { font-weight: 500; color: var(--ink); }
.rough__option-desc { font-size: var(--t-step--1); color: var(--ink-mute); }
.rough__option-price {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  color: var(--ink-soft);
  font-size: var(--t-step--1);
  white-space: nowrap;
}
.rough__qty {
  font: inherit;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
  text-align: right;
  width: 100%;
}
.rough__section--client { gap: 16px; }
.rough__section--client .contact-form__row { gap: 16px; }
.rough__submit { align-self: flex-start; margin-top: 16px; }

.rough__summary { min-width: 0; }
.rough__summary-sticky {
  position: sticky;
  top: 96px;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rough__summary-title {
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}
.rough__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rough__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--t-step--1);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.rough__line:last-child { border-bottom: none; }
.rough__line-label { color: var(--ink); }
.rough__line-amount { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.rough__totals { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rough__totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-step-0); }
.rough__totals dt { color: var(--ink-mute); margin: 0; }
.rough__totals dd { color: var(--ink); margin: 0; font-variant-numeric: tabular-nums; }
.rough__totals-grand {
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  margin-top: 8px;
}
.rough__totals-grand dt,
.rough__totals-grand dd {
  font-size: var(--t-step-2);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.rough__monthly {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rough__monthly h3 {
  font-size: var(--t-step--2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0;
}

@media (max-width: 1100px) {
  .rough__grid { grid-template-columns: 1fr; }
  .rough__summary-sticky { position: static; }
  .rough__toolbar { grid-template-columns: 1fr; }
}

/* ----- Quote view (rendered by controller) ----- */

.quote-view { padding: clamp(48px, 6vw, 96px) 0; }
.quote-view__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 80px);
  max-width: 920px;
  margin: 0 auto;
}
.quote-view__client h2 {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.quote-view__section-title {
  font-size: var(--t-step-3);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  margin: 0 0 24px;
}
.quote-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.quote-table th, .quote-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.quote-table thead th {
  font-size: var(--t-step--2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  font-weight: 500;
}
.quote-table .num { text-align: right; }
.quote-table tfoot th,
.quote-table tfoot td { border-bottom: none; padding-top: 12px; padding-bottom: 12px; color: var(--ink); }
.quote-table tfoot tr.quote-table__grand th,
.quote-table tfoot tr.quote-table__grand td {
  border-top: 1px solid var(--ink);
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.015em;
  padding-top: 16px;
}
.quote-view__about {
  border-top: 1px solid var(--ink);
  padding-top: 32px;
  font-size: var(--t-step--1);
  color: var(--ink-soft);
}
.quote-view__about h3 {
  font-size: var(--t-step--2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: 12px;
}

/* ----- Audit page (3-step wizard + results) ----- */

.audit { padding: clamp(48px, 6vw, 96px) 0; }
.audit-steps {
  list-style: none;
  margin: 0 0 clamp(32px, 4vw, 64px);
  padding: 0 0 16px;
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
}
.audit-steps li {
  font-size: var(--t-step--1);
  color: var(--ink-mute);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.audit-steps li span {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: var(--t-step-2);
  color: var(--accent);
}
.audit-steps li.is-active { color: var(--ink); font-weight: 500; }

.audit-panel { display: none; }
.audit-panel.is-active { display: block; }
.audit-panel__title { font-size: var(--t-step-3); font-weight: 500; letter-spacing: -0.02em; margin: 0 0 12px; }
.audit-panel__lead { margin-bottom: 32px; max-width: 56ch; }

.audit-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.audit-type {
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 120ms ease, background 120ms ease;
}
.audit-type:hover { border-color: var(--ink); }
.audit-type.is-active { border-color: var(--accent); background: rgba(245, 127, 32, 0.06); }
.audit-type__label { font-weight: 500; color: var(--ink); }
.audit-type__desc { font-size: var(--t-step--1); color: var(--ink-mute); }
@media (max-width: 900px) { .audit-types { grid-template-columns: repeat(2, 1fr); } }

.audit-questions { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.audit-toggle {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--hairline);
  cursor: pointer;
  align-items: start;
}
.audit-toggle:hover { border-color: var(--ink); }
.audit-toggle input { margin-top: 3px; }
.audit-toggle strong { display: block; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.audit-toggle em { font-style: normal; font-size: var(--t-step--1); }

.audit-url { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.audit-url input {
  font: inherit;
  font-size: var(--t-step-1);
  padding: 16px 18px;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
}
.audit-url input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.audit-rate-note { font-size: var(--t-step--2); margin-top: 12px; }

.audit-nav { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.audit-results__head { margin-bottom: 32px; }
.audit-results__title { font-size: var(--t-step-2); font-weight: 500; margin: 8px 0 4px; word-break: break-all; }

.audit-overall {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding: clamp(32px, 4vw, 56px) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 48px;
}
.audit-ring {
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.audit-ring.is-strong { background: #1e7a3e; }
.audit-ring.is-medium { background: var(--accent); }
.audit-ring.is-weak   { background: #b00020; }
.audit-ring__score { font-size: 4.5rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.audit-ring__label { font-size: var(--t-step--1); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.audit-overall__interp { font-size: var(--t-step-1); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

.audit-dims { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px; }
.audit-dim {
  border: 1px solid var(--hairline);
  padding: clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.audit-dim header { display: flex; flex-direction: column; gap: 4px; }
.audit-dim__weight { font-size: var(--t-step--2); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.audit-dim h3 { font-size: var(--t-step-2); font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.audit-dim__score { font-size: 3rem; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.audit-dim__interp { font-size: var(--t-step--1); line-height: 1.55; margin: 0; }
.audit-dim__breakdown { margin: 0; padding-left: 1.2em; font-size: var(--t-step--1); color: var(--ink-soft); }
.audit-dim__breakdown li { margin-bottom: 4px; }
@media (max-width: 900px) {
  .audit-overall { grid-template-columns: 1fr; text-align: left; }
  .audit-dims { grid-template-columns: 1fr; }
}

.audit-schema { border-top: 1px solid var(--ink); padding-top: 32px; margin-bottom: 48px; }
.audit-schema h3 { font-size: var(--t-step-2); font-weight: 500; margin-bottom: 24px; }
.audit-schema__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.audit-schema__list { list-style: none; margin: 8px 0 0; padding: 0; }
.audit-schema__list li { padding: 6px 0; border-bottom: 1px solid var(--hairline); font-size: var(--t-step--1); }
.audit-schema__list--missing li { color: var(--accent); }
@media (max-width: 700px) { .audit-schema__grid { grid-template-columns: 1fr; } }

.audit-recs { border-top: 1px solid var(--ink); padding-top: 32px; margin-bottom: 48px; }
.audit-recs h3 { font-size: var(--t-step-2); font-weight: 500; margin-bottom: 24px; }
.audit-recs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.audit-rec { border: 1px solid var(--hairline); border-left-width: 4px; padding: 20px 24px; }
.audit-rec--high   { border-left-color: #b00020; }
.audit-rec--medium { border-left-color: var(--accent); }
.audit-rec--low    { border-left-color: var(--ink-mute); }
.audit-rec__priority { display: inline-block; font-size: var(--t-step--2); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.audit-rec h4 { font-size: var(--t-step-1); font-weight: 500; margin: 0 0 8px; color: var(--ink); }
.audit-rec p  { margin: 0; color: var(--ink-soft); font-size: var(--t-step--1); line-height: 1.55; }

.audit-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; }
.audit-insight { border: 1px solid var(--hairline); padding: 24px; }
.audit-insight h4 { font-size: var(--t-step-1); font-weight: 500; margin: 0 0 8px; }
.audit-insight p  { margin: 0; color: var(--ink-soft); font-size: var(--t-step--1); line-height: 1.55; }
@media (max-width: 900px) { .audit-insights { grid-template-columns: 1fr; } }

.audit-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--ink); }
.audit-save-link { color: var(--ink); border-bottom: 1px solid var(--accent); word-break: break-all; }

/* ----- Staff dashboard ----- */

.staff { padding: clamp(40px, 5vw, 80px) 0; }

.staff-grid {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.staff-grid a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--hairline);
  color: var(--ink);
  transition: border-color 120ms ease, background 120ms ease;
}
.staff-grid a:hover { border-color: var(--ink); background: var(--paper-pure); }
.staff-card__count {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.staff-card__title { font-weight: 500; font-size: var(--t-step-1); }
.staff-card__desc { font-size: var(--t-step--1); color: var(--ink-mute); }
@media (max-width: 900px) { .staff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .staff-grid { grid-template-columns: 1fr; } }

.staff-note {
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
  font-size: var(--t-step--1);
  color: var(--ink-soft);
}
.staff-note h2 {
  font-size: var(--t-step--2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.staff-note ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.staff-note strong { color: var(--ink); font-weight: 500; }

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-step--1);
  font-variant-numeric: tabular-nums;
}
.staff-table th, .staff-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.staff-table thead th {
  font-size: var(--t-step--2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  font-weight: 500;
  border-bottom-color: var(--ink);
}
.staff-table tbody tr:hover { background: rgba(10, 10, 10, 0.02); }
.staff-table__date { color: var(--ink-mute); white-space: nowrap; }
.staff-table__num  { text-align: right; }
.staff-table__url  { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-table code  { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--t-step--1); }
.staff-table a { color: var(--ink); border-bottom: 1px solid var(--accent); }

.staff-pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: var(--t-step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
}
.staff-pill--ok    { border-color: #1e7a3e; color: #1e7a3e; }
.staff-pill--warn  { border-color: var(--accent); color: var(--accent); }
.staff-pill--muted { color: var(--ink-mute); }

/* ----- Footer ----- */

.site-footer {
  border-top: 1px solid var(--ink);
  padding: 48px 0 32px;
  font-size: var(--t-step--1);
  color: var(--ink-soft);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.site-footer__brand {
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.site-footer h4 {
  font-size: var(--t-step--2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--t-step--2);
  color: var(--ink-mute);
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Header search icon ---------- */
.site-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  margin-right: 8px;
}
.site-search-link:hover { color: var(--accent); }

/* ---------- /search/ page ---------- */
.search-hero {
  padding: clamp(48px, 6vw, 96px) 0;
  border-bottom: 1px solid var(--ink);
}
.search-hero .eyebrow { display: block; margin-bottom: 16px; }
.search-hero__heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
}
.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
  max-width: 720px;
}
.search-form__field {
  display: block;
}
.search-form__field input {
  font: inherit;
  font-size: var(--t-step-0);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
  padding: 14px 16px;
  width: 100%;
  box-sizing: border-box;
  height: 100%;
}
.search-form__field input::placeholder {
  color: var(--ink);
  opacity: 0.5;
}
.search-form__field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.search-results {
  padding: clamp(48px, 6vw, 96px) 0;
}
.search-results__count {
  margin-bottom: clamp(24px, 3vw, 40px);
  font-size: var(--t-step--1);
}
.search-group + .search-group {
  margin-top: clamp(40px, 5vw, 64px);
}
.search-group__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.search-group__title {
  font-size: var(--t-step-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.search-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.search-hit {
  border-top: 1px solid var(--ink);
}
.search-hit:last-child { border-bottom: 1px solid var(--ink); }
.search-hit__link {
  display: block;
  padding: 20px 0;
  color: var(--ink);
  text-decoration: none;
}
.search-hit__link:hover .search-hit__title {
  border-bottom-color: var(--accent);
}
.search-hit__title {
  display: inline-block;
  font-size: var(--t-step-1);
  font-weight: 500;
  margin: 0 0 8px;
  border-bottom: 1px solid transparent;
}
.search-hit__excerpt {
  margin: 0 0 8px;
  font-size: var(--t-step-0);
}
.search-hit__url {
  display: block;
  font-size: var(--t-step--2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
  opacity: 0.6;
}

@media (max-width: 540px) {
  .search-form { grid-template-columns: 1fr; }
}

/* =============================================================
   MOBILE COLUMN RULE - everything below 768px is a single column.
   Final-word block: comes after every section-specific @media query
   so source order wins for equal specificity at <=767px. Above 768px
   the earlier section rules continue to define the layout. Adjust
   the breakpoint here (one place) if the mobile boundary moves.
   ============================================================= */
@media (max-width: 767px) {
  /* Heroes + page splits */
  .hero__split,
  .hero--with-image .hero__split,
  .page-hero__split,
  .page-hero__grid,

  /* Home page sections */
  .home-cta,
  .home-pillars,
  .home-howit__steps,
  .home-results__list,
  .home-services__list,
  .home-umbraco__features,
  .home-founders__list,
  .home-blog__list,
  .home-blog__list--count-1,
  .home-blog__list--count-2,
  .home-blog__list--count-3,

  /* Insights / blog */
  .posts__list,
  .post-card--featured .post-card__link,
  .post-card--featured .post-card__link:has(.post-card__thumb),
  .learn-related__list,

  /* Search */
  .search-form,
  .search-group__list,

  /* Quote wizard + rough */
  .wizard-grid,
  .wizard-steps,
  .rough__grid,
  .rough__option--quantity,
  .proposal-score,
  .proposal-answers,

  /* Contact + footer + forms */
  .contact-tabs,
  .contact-form__row,
  .site-footer__grid,

  /* Audit */
  .audit-types,
  .audit-dims,
  .audit-schema__grid,
  .audit-insights,

  /* Staff dashboard cards (public-side) + videos */
  .staff-grid,
  .videos__grid {
    grid-template-columns: 1fr;
  }

  /* Reasonable gap when collapsed - some grids set bigger gaps for desktop. */
  .hero__split,
  .hero--with-image .hero__split,
  .page-hero__split,
  .post-card--featured .post-card__link:has(.post-card__thumb) {
    gap: clamp(24px, 5vw, 40px);
  }
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--ink);
  font-size: var(--t-step--1);
}
.pagination__pages {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.pagination__link {
  display: inline-block;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid transparent;
}
.pagination__link:hover { border-bottom-color: var(--accent); }
.pagination__link--current {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.pagination__link--current:hover { border-bottom-color: var(--ink); }
.pagination__link--nav { font-weight: 500; }
.pagination__link--disabled { opacity: 0.35; cursor: default; }
.pagination__link--disabled:hover { border-bottom-color: transparent; }

@media (max-width: 540px) {
  .pagination { flex-wrap: wrap; gap: 12px; }
}
