/* ============================================================
   ThrillSEO — Components
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: var(--paper);
  --btn-border: var(--ink-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 20px;
  border-radius: var(--r-full);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn--primary { --btn-bg: var(--brand-600); --btn-fg: #fff; --btn-border: var(--brand-600); }
.btn--primary:hover { --btn-bg: var(--brand-700); --btn-border: var(--brand-700); }

.btn--ink { --btn-bg: var(--ink-900); --btn-fg: var(--paper); --btn-border: var(--ink-900); }
.btn--ink:hover { --btn-bg: var(--ink-800); --btn-border: var(--ink-800); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-border: var(--ink-300); }
.btn--ghost:hover { --btn-bg: var(--ink-100); --btn-border: var(--ink-400); }

.btn--accent { --btn-bg: var(--accent-500); --btn-fg: #fff; --btn-border: var(--accent-500); }
.btn--accent:hover { --btn-bg: var(--accent-600); --btn-border: var(--accent-600); }

.btn--ghost-inv { --btn-bg: transparent; --btn-fg: var(--paper); --btn-border: var(--ink-600); }
.btn--ghost-inv:hover { --btn-bg: var(--ink-800); --btn-border: var(--ink-500); }

.btn--link { --btn-bg: transparent; --btn-fg: var(--brand-700); --btn-border: transparent; padding: 8px 0; border-radius: 0; }
.btn--link:hover { --btn-fg: var(--brand-600); transform: none; }
.btn--link .arrow { transition: transform var(--dur-2) var(--ease); }
.btn--link:hover .arrow { transform: translateX(4px); }

.btn--sm { padding: 8px 14px; font-size: var(--fs-xs); }
.btn--lg { padding: 16px 28px; font-size: var(--fs-md); }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-700); letter-spacing: 0.01em; }
.field__hint { font-size: var(--fs-xs); color: var(--fg-subtle); }
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--fg);
  font-size: var(--fs-sm);
  line-height: 1.4;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: var(--ring);
}
.textarea { min-height: 120px; resize: vertical; font-family: inherit; }

/* ---------- Badges & tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: var(--fs-xxs);
  font-weight: 500;
  font-family: var(--ff-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brand-100);
  color: var(--brand-900);
  border: 1px solid var(--brand-200);
}
.badge--ink { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }
.badge--accent { background: var(--accent-100); color: var(--accent-900); border-color: var(--accent-300); }
.badge--outline { background: transparent; color: var(--ink-700); border-color: var(--border-strong); }
.badge--success { background: var(--brand-100); color: var(--brand-900); }
.badge--warning { background: #FBF1D7; color: #6B4C0F; border-color: #ECD99B; }
.badge--danger { background: #FADED8; color: #6B1F13; border-color: #EBB3A6; }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--border-strong); background: var(--white); border-radius: var(--r-sm); font-size: var(--fs-xs); color: var(--fg-muted); }

/* Certification medallion */
.cert {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border-strong);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.cert__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; border: 1px solid var(--brand-200); }
.cert__label { font-size: var(--fs-xxs); color: var(--fg-subtle); font-family: var(--ff-mono); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.cert__name { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-900); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.card--flat { box-shadow: none; }
.card--ink { background: var(--ink-900); color: var(--paper); border-color: var(--ink-800); }
.card--ink h1, .card--ink h2, .card--ink h3, .card--ink h4 { color: var(--paper); }
.card--ink a { color: var(--brand-300); }

/* Service card */
.service-card { display: flex; flex-direction: column; gap: var(--s-3); min-height: 280px; position: relative; overflow: hidden; }
.service-card__num { position: absolute; top: var(--s-4); right: var(--s-5); font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--fg-subtle); }
.service-card__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; border: 1px solid var(--brand-200); margin-bottom: var(--s-2); }
.service-card__title { font-family: var(--ff-serif); font-size: var(--fs-h3); font-weight: 480; letter-spacing: var(--ls-snug); }
.service-card__desc { font-size: var(--fs-sm); color: var(--fg-muted); line-height: var(--lh-normal); }
.service-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--fg-subtle); padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.service-card__link { font-size: var(--fs-sm); color: var(--brand-700); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.service-card__link .arrow { transition: transform var(--dur-2) var(--ease); }
.service-card:hover .service-card__link .arrow { transform: translateX(3px); }

/* Case-study card */
.case-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.case-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.case-card__media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--brand-100), var(--paper-2)); display: grid; place-items: center; position: relative; overflow: hidden; }
.case-card__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(19,122,94,0.14), transparent 60%); }
.case-card__metric { position: relative; z-index: 1; text-align: center; }
.case-card__metric-n { font-family: var(--ff-serif); font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; color: var(--brand-900); font-weight: 500; letter-spacing: -0.03em; }
.case-card__metric-l { font-family: var(--ff-mono); font-size: var(--fs-xxs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--brand-700); margin-top: 6px; }
.case-card__body { padding: var(--s-5); }
.case-card__tag { font-family: var(--ff-mono); font-size: var(--fs-xxs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--fg-subtle); margin-bottom: var(--s-3); }
.case-card__title { font-family: var(--ff-serif); font-size: var(--fs-h3); font-weight: 480; letter-spacing: var(--ls-snug); line-height: var(--lh-snug); color: var(--ink-900); }
.case-card__tag { text-decoration: none; }
.case-card__link { display: inline-block; font-size: var(--fs-sm); font-weight: 500; color: var(--brand-700); text-decoration: none; margin-top: var(--s-3); }
.case-card__link:hover { text-decoration: underline; }

/* Blog card */
.blog-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) 0; border-top: 1px solid var(--rule); }
.blog-card__meta { display: flex; gap: var(--s-4); align-items: center; font-family: var(--ff-mono); font-size: var(--fs-xxs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-subtle); }
.blog-card__title { font-family: var(--ff-serif); font-size: var(--fs-h2); font-weight: 480; letter-spacing: var(--ls-snug); line-height: var(--lh-snug); }
.blog-card__title a { text-decoration: none; color: inherit; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size var(--dur-3) var(--ease); }
.blog-card__title a:hover { background-size: 100% 1px; }
.blog-card__excerpt { font-size: var(--fs-md); color: var(--fg-muted); line-height: var(--lh-reading); max-width: 62ch; }

/* ---------- Stat callout ---------- */
.stat { padding: var(--s-5) var(--s-5) var(--s-4); border-left: 2px solid var(--brand-600); }
.stat__num { font-family: var(--ff-serif); font-size: clamp(2.5rem, 4.5vw, 3.75rem); line-height: 1; letter-spacing: -0.03em; font-weight: 500; color: var(--ink-900); font-variation-settings: "SOFT" 20, "opsz" 144; }
.stat__num .unit { font-size: 0.5em; color: var(--brand-600); margin-left: 4px; font-weight: 500; }
.stat__label { font-size: var(--fs-sm); color: var(--fg-muted); margin-top: var(--s-2); max-width: 26ch; line-height: var(--lh-normal); }
.stat__source { font-family: var(--ff-mono); font-size: var(--fs-xxs); color: var(--fg-subtle); margin-top: var(--s-3); letter-spacing: 0.02em; }
.stat--accent { border-left-color: var(--accent-500); }
.stat--accent .stat__num .unit { color: var(--accent-500); }

/* Mini-chart (bar sparkline) */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.bars span { display: block; width: 8px; background: var(--brand-300); border-radius: 2px 2px 0 0; }
.bars span.is-peak { background: var(--brand-600); }

/* ---------- Tables / pricing ---------- */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table th { font-family: var(--ff-mono); font-size: var(--fs-xxs); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--fg-subtle); background: var(--paper-2); border-bottom: 1px solid var(--border-strong); }
.table tr:last-child td { border-bottom: 0; }
.table__num { font-variant-numeric: tabular-nums; text-align: right; font-family: var(--ff-mono); }
.table__row--highlight { background: var(--brand-100); }

/* ---------- Hero / section header ---------- */
.sect { padding: var(--s-9) 0; }
.sect--sm { padding: var(--s-7) 0; }
.sect--ink { background: var(--ink-900); color: var(--paper); }
.sect--ink h1, .sect--ink h2, .sect--ink h3 { color: var(--paper); }
.sect--sunk { background: var(--bg-sunken); }

.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); margin-bottom: var(--s-7); align-items: end; }
.section-head__kicker { font-family: var(--ff-mono); font-size: var(--fs-xxs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--brand-600); margin-bottom: var(--s-3); display: flex; align-items: center; gap: var(--s-2); }
.section-head__kicker::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.section-head__title { font-family: var(--ff-serif); font-size: var(--fs-display-m); font-weight: 480; line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: var(--ink-900); }
.section-head__title em { font-style: italic; color: var(--brand-700); font-variation-settings: "SOFT" 100, "opsz" 144; }
.section-head__meta { font-size: var(--fs-md); color: var(--fg-muted); line-height: var(--lh-reading); max-width: 42ch; margin-left: auto; }

@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: var(--s-4); }
  .section-head__meta { margin-left: 0; }
}

/* ---------- Testimonial / quote ---------- */
.quote { position: relative; padding: var(--s-6) var(--s-7); border-left: 2px solid var(--brand-600); background: var(--white); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.quote__mark { position: absolute; top: 0; left: var(--s-5); transform: translateY(-55%); font-family: var(--ff-serif); font-size: 4.5rem; line-height: 1; color: var(--brand-500); font-style: italic; }
.quote__body { font-family: var(--ff-serif); font-size: var(--fs-h3); line-height: 1.4; color: var(--ink-900); font-weight: 400; letter-spacing: -0.005em; text-wrap: pretty; }
.quote__cite { margin-top: var(--s-4); display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); }
.quote__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-weight: 600; font-family: var(--ff-sans); border: 1px solid var(--brand-200); }
.quote__name { font-weight: 600; color: var(--ink-900); }
.quote__role { color: var(--fg-muted); }

/* ---------- FAQ / accordion ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); padding: var(--s-5) 0; background: transparent; border: 0; cursor: pointer; text-align: left; font-family: var(--ff-serif); font-size: var(--fs-h3); font-weight: 480; color: var(--ink-900); line-height: var(--lh-snug); letter-spacing: var(--ls-snug); }
.faq__q:hover { color: var(--brand-700); }
.faq__icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease); color: var(--ink-700); margin-top: 4px; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }
.faq__a { display: none; padding: 0 var(--s-7) var(--s-5) 0; font-size: var(--fs-md); color: var(--fg-muted); line-height: var(--lh-reading); max-width: 68ch; }
.faq__item.is-open .faq__a { display: block; }

/* ---------- CTA block ---------- */
.cta {
  background: var(--ink-900);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-7);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 110% 30%, rgba(27,152,116,0.35), transparent 60%),
    radial-gradient(500px 240px at -10% 120%, rgba(212,102,46,0.20), transparent 60%);
}
.cta__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); align-items: center; }
.cta__title { font-family: var(--ff-serif); font-size: var(--fs-display-m); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: var(--paper); font-weight: 480; text-wrap: balance; }
.cta__title em { font-style: italic; color: var(--brand-300); font-variation-settings: "SOFT" 100, "opsz" 144; }
.cta__body { color: var(--ink-300); font-size: var(--fs-md); line-height: var(--lh-reading); margin-top: var(--s-4); }
.cta__actions { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }

@media (max-width: 860px) {
  .cta { padding: var(--s-6) var(--s-5); }
  .cta__grid { grid-template-columns: 1fr; }
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,244,238,0.86);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-nav__inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--s-5);
  height: var(--header-h);
}
.site-nav__logo { display: flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--ink-900); font-family: var(--ff-serif); font-size: 1.25rem; font-weight: 520; letter-spacing: -0.01em; }
.site-nav__logo:hover { color: var(--ink-900); text-decoration: none; }
.site-nav__logo-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--ink-900); color: var(--brand-300); display: grid; place-items: center; font-family: var(--ff-mono); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.site-nav__links { display: flex; align-items: center; gap: var(--s-5); }
.site-nav__link { font-size: var(--fs-sm); color: var(--ink-800); text-decoration: none; font-weight: 500; padding: 6px 0; }
.site-nav__link:hover { color: var(--brand-700); text-decoration: none; }

/* Dropdown */
.site-nav__dropdown-wrap { position: relative; }
.site-nav__dropdown-wrap:hover .site-nav__dropdown,
.site-nav__dropdown-wrap:focus-within .site-nav__dropdown,
.site-nav__dropdown.is-open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.site-nav__link--parent { display: inline-flex; align-items: center; gap: 4px; }
.site-nav__chevron { display: inline-flex; align-items: center; color: var(--ink-400); transition: transform var(--dur-2) var(--ease); }
.site-nav__dropdown-wrap:focus-within .site-nav__chevron,
.site-nav__dropdown.is-open ~ * .site-nav__chevron,
.site-nav__dropdown-wrap:has(.site-nav__dropdown.is-open) .site-nav__chevron { transform: rotate(180deg); }
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: calc(var(--s-2) + 8px) var(--s-2) var(--s-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
  z-index: 50;
}
.site-nav__dropdown::before {
  content: "";
  position: absolute;
  top: 2px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 6px;
  background: var(--white);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  filter: drop-shadow(0 -1px 0 var(--border));
}
.site-nav__dropdown-link {
  display: block;
  padding: 9px var(--s-3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-800);
  text-decoration: none;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  white-space: nowrap;
}
.site-nav__dropdown-link:hover { background: var(--brand-100); color: var(--brand-700); text-decoration: none; }
.site-nav__dropdown-link--active { color: var(--brand-700); }

/* Mobile nav toggle */
.site-nav__toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; padding: 6px; }
.site-nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink-900); border-radius: 2px; transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease); }

.site-nav__mobile { display: none; flex-direction: column; gap: 0; background: var(--paper); border-top: 1px solid var(--rule); padding: var(--s-4) var(--s-5); }
.site-nav__mobile a { display: block; padding: var(--s-3) 0; font-size: var(--fs-md); color: var(--ink-800); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--rule); }
.site-nav__mobile a:last-child { border-bottom: 0; }
.site-nav__mobile.is-open { display: flex; }
/* Mobile dropdown: unwrap and indent children */
.site-nav__mobile .site-nav__dropdown-wrap { display: contents; }
.site-nav__mobile .site-nav__dropdown { position: static; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0; background: transparent; min-width: 0; gap: 0; }
.site-nav__mobile .site-nav__dropdown::before { display: none; }
.site-nav__mobile .site-nav__dropdown-link { padding: var(--s-3) 0 var(--s-3) var(--s-5); font-size: var(--fs-sm); color: var(--fg-muted); border-bottom: 1px solid var(--rule); border-radius: 0; }
.site-nav__mobile .site-nav__dropdown-link:hover { background: transparent; color: var(--brand-700); }
.site-nav__mobile .site-nav__chevron { display: none; }

@media (max-width: 900px) {
  .site-nav__links { display: none; }
  .site-nav__toggle { display: flex; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding: var(--s-9) 0 var(--s-5); }
.site-footer h4 { color: var(--paper); margin-bottom: var(--s-4); font-family: var(--ff-sans); font-size: var(--fs-sm); letter-spacing: 0.02em; text-transform: uppercase; font-weight: 500; }
.site-footer a { color: var(--ink-300); text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--brand-300); text-decoration: none; }
.site-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-7); }
.site-footer__lede { font-family: var(--ff-serif); font-size: var(--fs-h3); color: var(--paper); line-height: var(--lh-snug); max-width: 32ch; font-weight: 400; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer__rule { border: 0; border-top: 1px solid var(--ink-800); margin: var(--s-7) 0 var(--s-4); }
.site-footer__legal { display: flex; justify-content: space-between; gap: var(--s-5); font-family: var(--ff-mono); font-size: var(--fs-xxs); letter-spacing: 0.04em; color: var(--ink-400); text-transform: uppercase; }
.site-footer__logo-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--brand-600); color: var(--paper); display: grid; place-items: center; font-family: var(--ff-mono); font-size: 12px; font-weight: 600; flex-shrink: 0; }

@media (max-width: 860px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .site-footer__cols { grid-template-columns: 1fr; }
  .site-footer__legal { flex-direction: column; }
}

/* ---------- Utility ---------- */
.stack > * + * { margin-top: var(--s-4); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--ff-mono); }
.serif { font-family: var(--ff-serif); }
.muted { color: var(--fg-muted); }
.rule { height: 1px; background: var(--rule); border: 0; margin: var(--s-5) 0; }

/* ---------- Service page content ---------- */
.svc-content { display: flex; flex-direction: column; gap: var(--s-9); }
.svc-section h2 { font-family: var(--ff-serif); font-size: var(--fs-h2); font-weight: 480; letter-spacing: var(--ls-snug); margin-bottom: var(--s-5); }
.svc-section > p { font-size: var(--fs-md); color: var(--fg-muted); line-height: var(--lh-reading); max-width: 68ch; margin-bottom: var(--s-6); }

/* Deliverables list */
.svc-deliverables { display: flex; flex-direction: column; gap: var(--s-4); }
.svc-deliverable { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: start; padding: var(--s-5); background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); }
.svc-deliverable__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; border: 1px solid var(--brand-200); flex-shrink: 0; }
.svc-deliverable strong { display: block; font-family: var(--ff-serif); font-size: var(--fs-h3); font-weight: 480; letter-spacing: var(--ls-snug); color: var(--ink-900); margin-bottom: var(--s-2); }
.svc-deliverable p { font-size: var(--fs-sm); color: var(--fg-muted); line-height: var(--lh-normal); margin: 0; }

/* Phases */
.svc-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); counter-reset: phase; }
.svc-phase { padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--white); position: relative; }
.svc-phase__label { font-family: var(--ff-mono); font-size: var(--fs-xxs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--brand-600); margin-bottom: var(--s-3); }
.svc-phase__title { font-family: var(--ff-serif); font-size: var(--fs-h3); font-weight: 480; letter-spacing: var(--ls-snug); margin-bottom: var(--s-3); }
.svc-phase__desc { font-size: var(--fs-sm); color: var(--fg-muted); line-height: var(--lh-normal); margin: 0; }
@media (max-width: 860px) { .svc-phases { grid-template-columns: 1fr; } }

/* Fit grid */
.svc-fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.svc-fit { padding: var(--s-5); border-radius: var(--r-lg); border: 1px solid var(--border); }
.svc-fit--yes { background: var(--brand-100); border-color: var(--brand-200); }
.svc-fit--no  { background: var(--paper-2); }
.svc-fit__head { font-family: var(--ff-mono); font-size: var(--fs-xxs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; font-weight: 600; margin-bottom: var(--s-4); }
.svc-fit--yes .svc-fit__head { color: var(--brand-700); }
.svc-fit--no  .svc-fit__head { color: var(--fg-subtle); }
.svc-fit__list { margin: 0; padding: 0 0 0 var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.svc-fit__list li { font-size: var(--fs-sm); color: var(--fg-muted); line-height: var(--lh-normal); }
@media (max-width: 700px) { .svc-fit-grid { grid-template-columns: 1fr; } }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding: var(--s-4) 0 0; font-family: var(--ff-mono); font-size: var(--fs-xxs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-subtle); }
.crumbs a { color: var(--fg-subtle); text-decoration: none; }
.crumbs a:hover { color: var(--ink-900); }

/* ---------- WP alignment helpers ---------- */
.wp-block-image img { border-radius: var(--r-md); }
.alignwide { max-width: var(--maxw-wide); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; top: -100%; left: var(--s-4); padding: var(--s-2) var(--s-4); background: var(--ink-900); color: var(--paper); border-radius: var(--r-sm); font-size: var(--fs-sm); text-decoration: none; z-index: 100; }

/* ---------- Contact page ---------- */
.contact-hero {
  padding: var(--s-8) 0 var(--s-7);
  border-bottom: 1px solid var(--rule);
}
.contact-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 4vw + 0.5rem, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 420;
  max-width: 16ch;
  margin-top: var(--s-4);
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.contact-hero__title em { font-style: italic; color: var(--brand-700); font-variation-settings: "SOFT" 100, "opsz" 144; }
.contact-hero__lede { font-size: var(--fs-lg); color: var(--fg-muted); line-height: var(--lh-reading); max-width: 52ch; margin-top: var(--s-5); margin-bottom: 0; }

.contact-body { padding: var(--s-8) 0 var(--s-10); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s-9);
  align-items: start;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s-7); } }

.contact-col__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-h2);
  font-weight: 480;
  letter-spacing: var(--ls-snug);
  margin: 0 0 var(--s-5);
  font-variation-settings: "SOFT" 30, "opsz" 144;
}

/* ── Form shell ── */
.contact-cf7-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
}

/* ── CF7 structural reset ── */
.contact-cf7 .wpcf7-form { margin: 0; }
.contact-cf7 .wpcf7-form br { display: none; }
.contact-cf7 .wpcf7-form > p,
.contact-cf7 .wpcf7-form > div { margin: 0; }

/* ── Field layout helpers (our custom wrappers in CF7 body) ── */
.ts-fields { display: flex; flex-direction: column; gap: var(--s-4); }
.ts-field { display: flex; flex-direction: column; gap: var(--s-2); }
.ts-field-group--2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 600px) { .ts-field-group--2col { grid-template-columns: 1fr; } }

/* ── Labels ── */
.ts-field__label {
  display: block;
  font-family: var(--ff-mono);
  font-size: var(--fs-xxs);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--ink-700);
}
.ts-required { text-decoration: none; color: var(--brand-600); font-style: normal; }

/* ── Inputs ── */
.contact-cf7 input[type="text"],
.contact-cf7 input[type="email"],
.contact-cf7 input[type="url"],
.contact-cf7 select,
.contact-cf7 textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--fg);
  font-size: var(--fs-sm);
  font-family: var(--ff-sans);
  line-height: 1.4;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
  -webkit-appearance: none;
  appearance: none;
  box-shadow: var(--shadow-inset);
}
.contact-cf7 input[type="text"]:hover,
.contact-cf7 input[type="email"]:hover,
.contact-cf7 input[type="url"]:hover,
.contact-cf7 select:hover,
.contact-cf7 textarea:hover { border-color: var(--ink-400); }
.contact-cf7 input[type="text"]:focus,
.contact-cf7 input[type="email"]:focus,
.contact-cf7 input[type="url"]:focus,
.contact-cf7 select:focus,
.contact-cf7 textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  background: var(--white);
  box-shadow: var(--ring);
}
.contact-cf7 input::placeholder,
.contact-cf7 textarea::placeholder { color: var(--ink-400); }

.contact-cf7 textarea { min-height: 120px; resize: vertical; }

.contact-cf7 select {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23889E97' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
  cursor: pointer;
}

/* ── Validation ── */
.contact-cf7 .wpcf7-not-valid { border-color: var(--danger) !important; }
.contact-cf7 .wpcf7-not-valid-tip {
  font-family: var(--ff-mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.04em;
  color: var(--danger);
  margin-top: var(--s-1);
}

/* ── Submit button ── */
.contact-cf7 .wpcf7-submit {
  display: block;
  width: 100%;
  padding: 14px var(--s-6);
  background: var(--ink-900);
  color: var(--paper);
  border: 1px solid var(--ink-900);
  border-radius: var(--r-full);
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  margin-top: var(--s-2);
}
.contact-cf7 .wpcf7-submit:hover { background: var(--ink-800); border-color: var(--ink-800); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.contact-cf7 .wpcf7-submit:active { transform: translateY(0); box-shadow: none; }
.contact-cf7 .wpcf7-submit:focus-visible { outline: none; box-shadow: var(--ring); }
.contact-cf7 .wpcf7-spinner { margin-left: var(--s-3); vertical-align: middle; }

/* ── Response messages ── */
.contact-cf7 .wpcf7-response-output {
  margin: var(--s-4) 0 0 !important;
  padding: var(--s-3) var(--s-4) !important;
  border-radius: var(--r-md) !important;
  font-size: var(--fs-sm) !important;
  font-family: var(--ff-sans) !important;
  border-width: 1px !important;
  border-style: solid !important;
}
.contact-cf7 .wpcf7-mail-sent-ok {
  background: var(--brand-100) !important;
  border-color: var(--brand-300) !important;
  color: var(--brand-900) !important;
}
.contact-cf7 .wpcf7-mail-sent-ng,
.contact-cf7 .wpcf7-spam-blocked,
.contact-cf7 .wpcf7-acceptance-missing {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #991b1b !important;
}

/* ── Form note & trust signals ── */
.contact-form-note {
  font-family: var(--ff-mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.contact-form-note::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  flex-shrink: 0;
}

.contact-trust { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.contact-trust__item { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--fg-muted); }
.contact-trust__item svg { color: var(--brand-600); flex-shrink: 0; }

/* ── Right column ── */
.contact-calendly-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.contact-details {
  margin-top: var(--s-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.contact-details__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.contact-details__row:last-child { border-bottom: 0; }
.contact-details__label { font-family: var(--ff-mono); font-size: var(--fs-xxs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-subtle); }
.contact-details__value { font-size: var(--fs-sm); color: var(--ink-900); font-weight: 500; text-align: right; }

.skip-link:focus { top: var(--s-4); }

/* ---------- Reviews scroll strip ---------- */
.reviews-strip { width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; cursor: grab; padding: 0 var(--s-5) var(--s-4); }
.reviews-strip::-webkit-scrollbar { height: 4px; }
.reviews-strip::-webkit-scrollbar-track { background: var(--rule); }
.reviews-strip::-webkit-scrollbar-thumb { background: var(--ink-400); border-radius: 2px; }
.reviews-strip:active { cursor: grabbing; }
.reviews-strip__track { display: flex; gap: var(--s-4); width: max-content; padding: var(--s-2) 0; }
.reviews-strip__card { scroll-snap-align: start; flex-shrink: 0; width: 340px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); margin: 0; }
.reviews-strip__text { font-size: var(--fs-sm); line-height: var(--lh-reading); color: var(--ink-800); margin: 0; flex: 1; }
.reviews-strip__cite { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.reviews-strip__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink-900); color: var(--brand-300); font-family: var(--ff-mono); font-size: 10px; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; }
.reviews-strip__name { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-900); }
.reviews-strip__meta { font-size: var(--fs-xs); color: var(--fg-muted); margin-top: 1px; }
