/* ============================================================
 * John Isaacson: Tech Minimal (23 Nov 2026)
 * Kit: creative-bank/clients/john-isaacson/tech-minimal/ (BRAND-KIT s10, MOTION-KIT s5)
 * Layer over base.css + components.css + v10.css, scoped to html[data-theme="tm"].
 * Off-white ground, ink type, hairlines and space. One red word per headline (.sig), never
 * buttons, fills, backgrounds, glows or small text. Cards are rare: the CTA is the only lift.
 * ============================================================ */

html[data-theme="tm"] {
  --ground: #F7F7F5; --card: #FFFFFF; --ink: #111111; --ink-2: #222222; --body: #4A4A4A;
  --muted: #6B6B6B; --quiet: #C8C8C3; --quiet-2: #D9D9D4; --accent: #FF3B1F;
  --rule: rgba(17,17,17,0.10); --rule-2: rgba(17,17,17,0.16); --outline: rgba(17,17,17,0.34);
  --shadow-soft: 0 30px 60px -36px rgba(17,17,17,0.16);
  --ease-tm: cubic-bezier(.2,.7,.2,1);
  --f-sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* map the v7 tokens onto the kit so every older rule follows */
  --bg: var(--ground); --surface: var(--ground); --surface-2: #EFEFEC;
  --ink-2: #222222; --line: var(--rule); --line-2: var(--rule-2);
  --red: #111111; --red-2: #000000; --dark: #111111;
  --font-display: var(--f-sans); --font-body: var(--f-sans); --font-mono: var(--f-mono);
  --max-width: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-pad-y: clamp(88px, 10vw, 136px);
  --section-pad-y-tight: clamp(72px, 8vw, 112px);
  --nav-h: 72px;
  --radius-lg: 20px; --radius-md: 16px; --radius-xl: 20px;
  --shadow: none; --shadow-sm: none;
  background: var(--ground);
}
html[data-theme="tm"] body {
  background: var(--ground); color: var(--ink);
  font-family: var(--f-sans); font-size: 18px; line-height: 1.6;
  font-feature-settings: "cv11" 1, "ss01" 1;
}
html[data-theme="tm"] ::selection { background: var(--ink); color: #fff; }
html[data-theme="tm"] :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── Type ── */
html[data-theme="tm"] h1, html[data-theme="tm"] h2, html[data-theme="tm"] h3,
html[data-theme="tm"] h4, html[data-theme="tm"] h5, html[data-theme="tm"] h6 {
  font-family: var(--f-sans); font-weight: 500; color: var(--ink);
}
html[data-theme="tm"] h1 { font-size: clamp(44px, 7vw, 104px); line-height: 1.0; letter-spacing: -0.05em; }
html[data-theme="tm"] h2 { font-size: clamp(32px, 4.5vw, 64px); line-height: 1.05; letter-spacing: -0.045em; }
html[data-theme="tm"] h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
html[data-theme="tm"] h4 { font-weight: 500; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; }
html[data-theme="tm"] p { color: var(--body); line-height: 1.6; }
html[data-theme="tm"] strong { font-weight: 600; color: var(--ink); }
html[data-theme="tm"] .lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--body); line-height: 1.55; }
html[data-theme="tm"] .sig { color: var(--accent); font-style: normal; }
/* labels: lowercase mono, muted */
html[data-theme="tm"] .kicker, html[data-theme="tm"] .badge, html[data-theme="tm"] .meta,
html[data-theme="tm"] .mono, html[data-theme="tm"] .label-tag, html[data-theme="tm"] .section-number {
  font-family: var(--f-mono); font-weight: 400; font-size: 14px; letter-spacing: 0;
  text-transform: lowercase; color: var(--muted);
}

/* ── Links + buttons ── */
html[data-theme="tm"] .link, html[data-theme="tm"] .arrow, html[data-theme="tm"] .blog-card__link {
  font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--outline); padding-bottom: 2px;
  transition: color .18s, border-color .18s;
}
html[data-theme="tm"] .link:hover, html[data-theme="tm"] .arrow:hover, html[data-theme="tm"] .blog-card__link:hover { color: var(--accent); border-color: var(--accent); }

html[data-theme="tm"] .btn {
  height: 52px; padding: 0 26px; gap: 10px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-family: var(--f-sans); font-weight: 500; font-size: 16px; letter-spacing: -0.01em;
  box-shadow: none; transition: background .18s, border-color .18s, transform .18s, color .18s;
}
html[data-theme="tm"] .btn:hover { background: #000; border-color: #000; color: #fff; transform: translateY(-1px); }
html[data-theme="tm"] .btn--primary, html[data-theme="tm"] .btn--red { background: var(--ink); border-color: var(--ink); color: #fff; }
html[data-theme="tm"] .btn--ghost, html[data-theme="tm"] .btn--outline, html[data-theme="tm"] .btn--white,
html[data-theme="tm"] .vids__cta .btn {
  background: var(--card); color: var(--ink); border-color: var(--rule-2);
}
html[data-theme="tm"] .btn--ghost:hover, html[data-theme="tm"] .btn--outline:hover, html[data-theme="tm"] .btn--white:hover,
html[data-theme="tm"] .vids__cta .btn:hover { background: var(--card); color: var(--ink); border-color: var(--ink); }
html[data-theme="tm"] .btn svg { width: 14px; height: 14px; }

/* ── Motion: rise 20px + fade once, 0.6s. Blog reading stays still (John, 5 Nov). ── */
@keyframes tm-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html[data-theme="tm"].v10-js .reveal.visible { animation: tm-up .6s var(--ease-tm) backwards; }
  html[data-theme="tm"].v10-js .reveal-d1.visible { animation-delay: .1s; }
  html[data-theme="tm"].v10-js .reveal-d2.visible { animation-delay: .2s; }
  html[data-theme="tm"].v10-js .reveal-d3.visible { animation-delay: .3s; }
  html[data-theme="tm"].v10-js .reveal-d4.visible { animation-delay: .4s; }
  html[data-theme="tm"] .hero--v10 .hero__title,
  html[data-theme="tm"] .hero--v10 .lede,
  html[data-theme="tm"] .hero--v10 .hero__ctas { animation: tm-up .6s var(--ease-tm) backwards; }
  html[data-theme="tm"] .hero--v10 .lede { animation-delay: .1s; }
  html[data-theme="tm"] .hero--v10 .hero__ctas { animation-delay: .2s; }
}
html[data-theme="tm"] .single-post .reveal, html[data-theme="tm"] .blog .reveal, html[data-theme="tm"] .archive .reveal,
html[data-theme="tm"] body.single-post .reveal, html[data-theme="tm"] body.blog .reveal, html[data-theme="tm"] body.archive .reveal {
  opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
}

/* ── Retired v10 ornament: dot-matrix canvas, glows, tilt, floating chip, frame parallax ── */
html[data-theme="tm"] .dotgrid, html[data-theme="tm"] .hero__chip, html[data-theme="tm"] .cta__dots,
html[data-theme="tm"] .cta__photo, html[data-theme="tm"] .cta__glow, html[data-theme="tm"] .sp-hero__glow,
html[data-theme="tm"] .about__inset, html[data-theme="tm"] .accent-thumb,
html[data-theme="tm"] .badge__dot { display: none !important; }
html[data-theme="tm"] .sec--dots::before, html[data-theme="tm"] .sp-features::before,
html[data-theme="tm"] .blog__hero::before, html[data-theme="tm"] .cta__panel::after,
html[data-theme="tm"] .hero__frame::after { content: none !important; display: none !important; }
html[data-theme="tm"].v10-js .card[data-tilt], html[data-theme="tm"] .card[data-tilt] { transform: none !important; box-shadow: none !important; }
html[data-theme="tm"] .hero__frame { transform: none !important; }

/* ── Nav ── */
html[data-theme="tm"] .nav {
  height: var(--nav-h); background: rgba(247,247,245,.86);
  backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
html[data-theme="tm"] .nav.is-scrolled { box-shadow: none; border-bottom-color: var(--rule); }
html[data-theme="tm"] .nav__inner { max-width: var(--max-width); }
html[data-theme="tm"] .nav__right { justify-self: end; display: flex; align-items: center; gap: 12px; }
html[data-theme="tm"] .nav__logo, html[data-theme="tm"] .footer__brand-name {
  font-family: var(--f-sans); font-weight: 600; font-size: 18px; letter-spacing: -0.035em; color: var(--ink); gap: 10px;
}
/* the mark: a small ink tile with a white play notch (red stays for signals) */
html[data-theme="tm"] .play-mark { width: 22px; height: 16px; border-radius: 5px; background: var(--accent); }
html[data-theme="tm"] .play-mark::after { border-width: 3.5px 0 3.5px 6px; margin-left: 1.5px; }
html[data-theme="tm"] .nav__links { gap: 32px; }
html[data-theme="tm"] .nav__links a { font-weight: 400; font-size: 15px; color: var(--body); transition: color .18s; }
html[data-theme="tm"] .nav__links a:hover { color: var(--ink); }
html[data-theme="tm"] .nav__cta.btn { height: 42px; padding: 0 18px; font-size: 14.5px; }
html[data-theme="tm"] .nav__mobile { background: var(--ground); border-bottom: 1px solid var(--rule); }
html[data-theme="tm"] .nav__mobile a { font-weight: 500; font-size: 20px; letter-spacing: -0.02em; border-bottom: 1px solid var(--rule); }
html[data-theme="tm"] .nav__mobile .nav__mobile-cta { background: var(--ink); color: #fff; font-size: 16px; height: 52px; display: flex; align-items: center; justify-content: center; padding: 0; }

/* ── Layout rhythm: no colour bands, hairlines between sections ── */
html[data-theme="tm"] .sec { padding: var(--section-pad-y) 0; background: transparent; }
html[data-theme="tm"] .sec--grey { background: transparent; }
html[data-theme="tm"] main > .sec, html[data-theme="tm"] main > section.cta { border-top: 1px solid var(--rule); }
html[data-theme="tm"] .sec__head { text-align: left; margin: 0 0 clamp(48px, 6vw, 80px); max-width: 820px; }
html[data-theme="tm"] .sec__head p { margin: 20px 0 0; font-size: clamp(17px, 1.4vw, 19px); max-width: 56ch; color: var(--body); }
html[data-theme="tm"] .sec__head--accent { align-items: flex-start; }

/* ================================================================
   HOME
   ================================================================ */
/* Hero: the display line owns the width, the studio image sits below it on plain ground */
html[data-theme="tm"] .hero--v10 {
  text-align: left; overflow: visible; padding: clamp(72px, 10vw, 144px) 0 clamp(72px, 8vw, 112px);
  background-image: radial-gradient(circle, rgba(17,17,17,.10) 1px, transparent 1.4px);
  background-size: 32px 32px; background-position: 16px 16px;
}
html[data-theme="tm"] .hero--v10::after { /* the dot field dissolves before the image */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(247,247,245,0) 0%, rgba(247,247,245,.4) 40%, var(--ground) 62%);
}
/* Hero lock-up (John, 23 Nov): copy left on a wide column, a smaller square studio image right.
   Desktop: headline top lines up with the image top, buttons sit on the image's bottom edge. */
html[data-theme="tm"] .hero__grid { grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 388px); gap: clamp(40px, 5.5vw, 88px); align-items: center; }
html[data-theme="tm"] .hero--v10 .hero__title {
  max-width: none; text-wrap: balance; margin: 0 0 24px; font-size: clamp(40px, 4vw, 58px); line-height: 1.03; letter-spacing: -0.045em;
}
html[data-theme="tm"] .hero--v10 .lede { max-width: 62ch; margin: 0 0 32px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; }
html[data-theme="tm"] .hero--v10 .hero__ctas { justify-content: flex-start; gap: 12px; }
html[data-theme="tm"] .hero--v10 { padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 6vw, 88px); }
@media (min-width: 901px) {
  html[data-theme="tm"] .hero__grid { align-items: stretch; }
  html[data-theme="tm"] .hero__copy { display: flex; flex-direction: column; }
  html[data-theme="tm"] .hero--v10 .hero__title { margin-top: -0.08em; } /* cap height meets the image edge */
  html[data-theme="tm"] .hero--v10 .hero__ctas { margin-top: auto; }
  html[data-theme="tm"] .hero--v10 .lede { margin-bottom: 40px; }
  html[data-theme="tm"] .hero__visual { position: relative; }
  html[data-theme="tm"] .hero__cap { position: absolute; top: 100%; left: 0; right: 0; margin-top: 12px; font-size: 12px; white-space: nowrap; }
  html[data-theme="tm"] .hero__frame img { display: block; }
}
@media (min-width: 901px) and (max-width: 1280px) {
  html[data-theme="tm"] .hero__cap { display: none; } /* image too narrow for a one-line caption */
}
html[data-theme="tm"] .hero__visual { perspective: none; max-width: none; margin: 0; }
html[data-theme="tm"] .hero__frame { border-radius: 14px; background: #EFEFEC; box-shadow: none; }
html[data-theme="tm"] .hero__frame img { aspect-ratio: 1 / 1; object-position: 62% 55%; transform: none !important; }
html[data-theme="tm"] .photo__cap, html[data-theme="tm"] .hero__cap {
  font-family: var(--f-mono); font-size: 13.5px; text-transform: lowercase; color: var(--muted); text-align: left; margin: 16px 0 0;
}

/* Worked with: a slow carousel of real brand logos on plain ground. Each img carries its display height in --h. */
html[data-theme="tm"] .logos { padding: 0 0 clamp(64px, 7vw, 96px); }
html[data-theme="tm"] .logos .container { display: block; }
html[data-theme="tm"] .logos__view {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
html[data-theme="tm"] .logos__track { display: flex; align-items: center; width: max-content; margin: 0; padding: 0; list-style: none; }
html[data-theme="tm"] .logo { flex: none; display: flex; align-items: center; padding-right: clamp(40px, 4.5vw, 64px); }
html[data-theme="tm"] .logo img { display: block; width: auto; height: calc(var(--h, 40) * 1px); }
@keyframes tm-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  html[data-theme="tm"] .logos__track { animation: tm-marquee 70s linear infinite; }
  html[data-theme="tm"] .logos__view:hover .logos__track { animation-play-state: paused; }
}

/* Services: four rows, each led by a signal-red icon tile */
html[data-theme="tm"] .cards { display: block; counter-reset: svc; border-bottom: 1px solid var(--rule); }
html[data-theme="tm"] .card {
  counter-increment: svc; position: relative;
  display: grid; grid-template-columns: 72px minmax(0, 1.05fr) minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; gap: 6px 36px; align-items: start;
  background: transparent; border: 0; border-top: 1px solid var(--rule); border-radius: 0;
  padding: 40px 0; overflow: visible;
}
html[data-theme="tm"] .card:hover { background: transparent; transform: none; box-shadow: none; }
html[data-theme="tm"] .card__visual {
  grid-column: 1; grid-row: 1 / span 3; position: relative; display: grid; place-items: center;
  width: 72px; height: 72px; aspect-ratio: auto; margin: 0; border-radius: 18px; overflow: hidden;
  background: rgba(255, 59, 31, .09); color: var(--accent); transition: background .22s var(--ease-tm), color .22s var(--ease-tm), transform .22s var(--ease-tm);
}
html[data-theme="tm"] .card__visual::before, html[data-theme="tm"] .card__visual::after { content: none; }
html[data-theme="tm"] .card__visual img, html[data-theme="tm"] .card__num { display: none; }
html[data-theme="tm"] .card__icon { position: static; width: 30px; height: 30px; color: inherit; opacity: 1; stroke-width: 1.6; }
html[data-theme="tm"] .card:hover .card__visual { background: var(--accent); color: #fff; transform: translateY(-2px); }
html[data-theme="tm"] .card .n {
  grid-column: 2; grid-row: 1; display: block; padding: 0;
  font-family: var(--f-mono); font-weight: 400; font-size: 14px; color: var(--muted); text-transform: lowercase;
}
html[data-theme="tm"] .card .n::before { content: "0" counter(svc); display: inline; width: auto; height: auto; background: none; border-radius: 0; margin: 0 10px 0 0; color: var(--accent); }
html[data-theme="tm"] .card h3 { grid-column: 2; grid-row: 2; margin: 0; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.035em; line-height: 1.1; transition: color .18s; }
html[data-theme="tm"] .card .hook { grid-column: 2; grid-row: 3; margin-top: 6px; font-size: 17px; color: var(--body); }
html[data-theme="tm"] .card ul { grid-column: 3; grid-row: 1 / span 3; gap: 10px; padding-top: 6px; font-size: 16px; color: var(--body); }
html[data-theme="tm"] .card ul li::before { width: 5px; height: 5px; background: var(--accent); transform: translateY(-3px); }
html[data-theme="tm"] .card .link {
  grid-column: 4; grid-row: 1 / span 2; justify-self: end; margin: 8px 0 0; border: 0; padding: 0;
  font-family: var(--f-mono); font-weight: 400; font-size: 14px; text-transform: lowercase; color: var(--muted); white-space: nowrap;
}
html[data-theme="tm"] .card .link::after { content: "\2192"; display: inline-block; margin-left: 8px; transition: transform .18s; }
html[data-theme="tm"] .card:hover h3, html[data-theme="tm"] .card:hover .link { color: var(--accent); }
html[data-theme="tm"] .card:hover .link::after { transform: translateX(3px); }

/* Videos */
html[data-theme="tm"] .chanrow { flex-direction: row; align-items: center; text-align: left; gap: 16px; margin-bottom: clamp(36px, 4vw, 56px); }
html[data-theme="tm"] .chanrow__mark { width: 48px; height: 48px; background: var(--accent); box-shadow: none; }
html[data-theme="tm"] .chanrow__mark .play-mark { width: 22px; height: 16px; background: transparent; }
html[data-theme="tm"] .chanrow .who { font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.035em; line-height: 1.1; }
html[data-theme="tm"] .chanrow .who span { font-family: var(--f-mono); font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: lowercase; color: var(--muted); margin-top: 6px; }
html[data-theme="tm"] .vids--feature { gap: 24px 40px; }
html[data-theme="tm"] .vid .th, html[data-theme="tm"] .post-card .th { border-radius: 16px; box-shadow: none; background: #EFEFEC; }
html[data-theme="tm"] .vid:hover .th, html[data-theme="tm"] .post-card:hover .th { transform: none; }
html[data-theme="tm"] .vid h4, html[data-theme="tm"] .post-card h4 { font-weight: 500; transition: color .18s; }
html[data-theme="tm"] .vids--feature .vid--lead h4 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; line-height: 1.15; }
html[data-theme="tm"] .vid:hover h4, html[data-theme="tm"] .post-card:hover h4 { color: var(--accent); }
html[data-theme="tm"] .vid .meta, html[data-theme="tm"] .post-card .meta { font-family: var(--f-mono); font-size: 13.5px; text-transform: lowercase; }
html[data-theme="tm"] .th__play { background: #fff; color: var(--ink); box-shadow: 0 8px 24px -12px rgba(17,17,17,.35); }
html[data-theme="tm"] .dur { font-family: var(--f-mono); font-weight: 400; font-size: 12px; background: rgba(17,17,17,.82); border-radius: 999px; padding: 3px 9px; }
html[data-theme="tm"] .vids__cta { text-align: left; margin-top: clamp(40px, 5vw, 56px); }

/* About */
html[data-theme="tm"] .about__grid { gap: clamp(40px, 7vw, 112px); align-items: start; }
html[data-theme="tm"] .about__img img { border-radius: 20px; box-shadow: none; }
html[data-theme="tm"] .about .kicker { display: block; margin-bottom: 20px; }
html[data-theme="tm"] .about .kicker::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; }
html[data-theme="tm"] .about h2 { margin-bottom: 28px; }
html[data-theme="tm"] .about p + p { margin-top: 18px; }
html[data-theme="tm"] .stats { gap: 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule); }
html[data-theme="tm"] .stat b { font-weight: 500; font-size: clamp(36px, 3.6vw, 52px); letter-spacing: -0.045em; color: var(--accent); }
html[data-theme="tm"] .stat span { font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; text-transform: lowercase; color: var(--muted); margin-top: 10px; }

/* Process: four columns under one hairline, mono step numbers */
html[data-theme="tm"] .steps, html[data-theme="tm"] .process__grid { gap: 40px; border-top: 1px solid var(--rule); }
html[data-theme="tm"] .steps::before { content: none; }
html[data-theme="tm"] .step { text-align: left; padding: 32px 0 0; position: relative; }
html[data-theme="tm"] .step .n, html[data-theme="tm"] .step__num {
  width: 44px; height: 44px; margin: 0 0 32px; background: rgba(255, 59, 31, .09); color: var(--accent); box-shadow: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-weight: 500; font-size: 14px; border-radius: 50%; transform: none !important;
  transition: background .22s var(--ease-tm), color .22s var(--ease-tm);
}
html[data-theme="tm"] .step:hover .n { background: var(--accent); color: #fff; }
html[data-theme="tm"] .step .n::before { content: "0"; }
html[data-theme="tm"] .step::before { /* a red tick on the rule above each step */
  content: ''; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--accent);
}
html[data-theme="tm"] .step h3, html[data-theme="tm"] .step__title { margin-bottom: 12px; }
html[data-theme="tm"] .step p, html[data-theme="tm"] .step__desc { font-size: 16px; margin: 0; color: var(--body); }

/* Results */
html[data-theme="tm"] .results { max-width: none; border-top: 1px solid var(--rule); }
html[data-theme="tm"] .res { padding: 28px 0; border-bottom: 1px solid var(--rule); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); }
html[data-theme="tm"] .res:hover { background: transparent; }
html[data-theme="tm"] .res .c { font-weight: 500; font-size: 18px; color: var(--ink); }
html[data-theme="tm"] .res .s { font-family: var(--f-mono); font-size: 13.5px; text-transform: lowercase; color: var(--muted); }
html[data-theme="tm"] .res .r { font-weight: 500; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; color: var(--ink); }
html[data-theme="tm"] .res .r::before { content: "\2197"; color: var(--accent); margin-right: 12px; font-weight: 400; }
html[data-theme="tm"] .res:hover .r { color: var(--accent); }

/* Blog teaser */
html[data-theme="tm"] .posts { gap: 48px 32px; }
html[data-theme="tm"] .post-card { gap: 16px; }
html[data-theme="tm"] .post-card h4 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
html[data-theme="tm"] .post-card p { font-size: 16px; color: var(--body); }
html[data-theme="tm"] .posts__cta { text-align: left; margin-top: 48px; }

/* CTA: the page's one lifted card */
html[data-theme="tm"] .cta { padding: var(--section-pad-y) 0; }
html[data-theme="tm"] .cta__inner { max-width: var(--max-width); }
html[data-theme="tm"] .cta__panel,
html[data-theme="tm"] .sp .cta__inner {
  background: var(--card); color: var(--ink); text-align: left;
  border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow-soft);
  padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px);
}
html[data-theme="tm"] .sp .cta__inner { max-width: calc(var(--max-width) - 2 * var(--gutter)); }
html[data-theme="tm"] .cta__title { color: var(--ink); max-width: 14ch; margin: 0 0 24px; font-size: clamp(36px, 5.4vw, 80px); letter-spacing: -0.05em; line-height: 1.0; }
html[data-theme="tm"] .cta__desc { color: var(--body); max-width: 44ch; margin: 0 0 40px; font-size: clamp(17px, 1.4vw, 19px); }
html[data-theme="tm"] .cta .btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
html[data-theme="tm"] .cta .btn--primary:hover { background: #000; color: #fff; }
html[data-theme="tm"] .cta__sub { font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; text-transform: lowercase; color: var(--muted); margin-top: 20px; }
html[data-theme="tm"] .sp .cta { padding-top: var(--section-pad-y-tight); }

/* ================================================================
   FOOTER
   ================================================================ */
html[data-theme="tm"] .footer { padding: 72px 0 40px; border-top: 1px solid var(--rule); background: transparent; }
html[data-theme="tm"] .footer__inner { gap: 40px; }
html[data-theme="tm"] .footer__brand-desc { font-size: 15.5px; color: var(--body); }
html[data-theme="tm"] .footer__social-link {
  font-family: var(--f-mono); font-weight: 400; font-size: 13px; text-transform: lowercase;
  background: var(--card); border: 1px solid var(--rule-2); color: var(--ink); padding: 7px 14px; transition: border-color .18s, color .18s;
}
html[data-theme="tm"] .footer__social-link:hover { background: var(--card); border-color: var(--ink); }
html[data-theme="tm"] .footer__col-title { font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; text-transform: lowercase; color: var(--muted); margin-bottom: 16px; }
html[data-theme="tm"] .footer__col-links { gap: 10px; }
html[data-theme="tm"] .footer__col-links a { font-size: 15.5px; color: var(--ink-2); transition: color .18s; }
html[data-theme="tm"] .footer__col-links a:hover { color: var(--accent); }
html[data-theme="tm"] .footer__bottom { justify-content: space-between; margin-top: 64px; padding-top: 24px; }
html[data-theme="tm"] .footer__copy { font-family: var(--f-mono); font-size: 13px; text-transform: lowercase; color: var(--muted); }
html[data-theme="tm"] .footer__powered a:hover { color: var(--accent); border-color: var(--accent); }

/* ================================================================
   SERVICE PAGES (page-service.php): left-set, hairline ledgers
   ================================================================ */
html[data-theme="tm"] .sp-hero { text-align: left; padding: clamp(72px, 10vw, 144px) 0 clamp(72px, 8vw, 112px); background: transparent; }
html[data-theme="tm"] .sp-hero__inner { max-width: var(--max-width); }
html[data-theme="tm"] .sp-hero__badge { margin-bottom: 28px; }
html[data-theme="tm"] .sp-hero__title { max-width: 14ch; margin: 0 0 32px; font-size: clamp(44px, 7vw, 104px); line-height: 1.0; letter-spacing: -0.05em; }
html[data-theme="tm"] .sp-hero__subtitle { max-width: 50ch; margin: 0 0 40px; font-size: clamp(18px, 1.5vw, 20px); color: var(--body); }
html[data-theme="tm"] .sp-hero__ctas { justify-content: flex-start; margin-bottom: clamp(64px, 8vw, 96px); }
html[data-theme="tm"] .sp-hero__metrics { justify-content: flex-start; max-width: none; margin: 0; gap: 32px 72px; padding-top: 32px; border-top: 1px solid var(--rule); }
html[data-theme="tm"] .sp-metric__val { font-weight: 500; font-size: clamp(36px, 3.6vw, 52px); letter-spacing: -0.045em; color: var(--ink); }
html[data-theme="tm"] .sp-metric__label { font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; text-transform: lowercase; color: var(--muted); margin-top: 10px; }

html[data-theme="tm"] .sp-problem, html[data-theme="tm"] .sp-features, html[data-theme="tm"] .sp-process,
html[data-theme="tm"] .sp-included, html[data-theme="tm"] .sp-faq {
  background: transparent; padding: var(--section-pad-y) 0; border-top: 1px solid var(--rule);
}
html[data-theme="tm"] .sp-problem .badge, html[data-theme="tm"] .sp-features .badge, html[data-theme="tm"] .sp-process .badge,
html[data-theme="tm"] .sp-included .badge, html[data-theme="tm"] .sp-faq .badge { display: block; margin-bottom: 20px !important; }
html[data-theme="tm"] .sp-problem__header, html[data-theme="tm"] .sp-features__header, html[data-theme="tm"] .sp-included__header,
html[data-theme="tm"] .sp-faq__header, html[data-theme="tm"] .sp .process__header {
  text-align: left; max-width: 820px; margin: 0 0 clamp(48px, 6vw, 80px);
}
html[data-theme="tm"] .sp-problem__subtitle, html[data-theme="tm"] .sp-included__subtitle, html[data-theme="tm"] .process__subtitle {
  margin: 20px 0 0; max-width: 56ch; color: var(--body);
}
html[data-theme="tm"] .sp-pain-grid, html[data-theme="tm"] .detail__grid { gap: 0 40px; }
html[data-theme="tm"] .sp-pain, html[data-theme="tm"] .detail-feat {
  background: transparent; border: 0; border-top: 1px solid var(--rule); border-radius: 0; box-shadow: none;
  padding: 28px 0 40px; transform: none !important;
}
html[data-theme="tm"] .sp-pain:hover, html[data-theme="tm"] .detail-feat:hover { box-shadow: none; }
html[data-theme="tm"] .sp-pain__title, html[data-theme="tm"] .detail-feat__title { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
html[data-theme="tm"] .sp-pain__desc, html[data-theme="tm"] .detail-feat__desc { font-size: 16px; color: var(--body); }
html[data-theme="tm"] .detail-feat { grid-template-columns: 56px 1fr; gap: 6px 16px; }
html[data-theme="tm"] .detail-feat__num { font-family: var(--f-mono); font-weight: 400; font-size: 14px; color: var(--muted); padding-top: 5px; }
html[data-theme="tm"] .sp .step { text-align: left; }
html[data-theme="tm"] .sp .step__num::before { content: none; }
html[data-theme="tm"] .sp-included__grid { max-width: none; margin: 0; gap: 0 56px; border-top: 1px solid var(--rule); }
html[data-theme="tm"] .sp-included__item { border-bottom: 1px solid var(--rule); padding: 18px 0; font-weight: 400; font-size: 17px; color: var(--ink-2); }
html[data-theme="tm"] .sp-included__check { font-family: var(--f-mono); font-weight: 400; color: var(--muted); }
html[data-theme="tm"] .sp-included__cta { text-align: left; margin-top: 48px; }
html[data-theme="tm"] .sp-faq__list { max-width: 880px; margin: 0; border-top: 1px solid var(--rule); }
html[data-theme="tm"] .sp-faq__item { border-bottom: 1px solid var(--rule); }
html[data-theme="tm"] .sp-faq__question { font-weight: 500; font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -0.015em; padding: 26px 0; transition: color .18s; }
html[data-theme="tm"] .sp-faq__question:hover { color: var(--accent); }
html[data-theme="tm"] .sp-faq__icon { font-family: var(--f-mono); font-weight: 400; color: var(--muted); }
html[data-theme="tm"] .sp-faq__answer p { color: var(--body); }

/* ================================================================
   BLOG ARCHIVE + SINGLE POST
   ================================================================ */
html[data-theme="tm"] .blog__hero { text-align: left; padding: clamp(72px, 10vw, 144px) 0 clamp(56px, 6vw, 80px); background: transparent; }
html[data-theme="tm"] .blog__hero-inner { max-width: var(--max-width); }
html[data-theme="tm"] .blog__hero .badge { display: block; margin-bottom: 24px; }
html[data-theme="tm"] .blog__title { margin-bottom: 24px; max-width: 14ch; }
html[data-theme="tm"] .blog__subtitle { margin: 0; max-width: 52ch; color: var(--body); }
html[data-theme="tm"] .blog__archive { border-top: 1px solid var(--rule); padding-top: clamp(48px, 6vw, 80px); }
html[data-theme="tm"] .blog__grid { gap: 56px 32px; }
html[data-theme="tm"] .blog-card { gap: 16px; }
html[data-theme="tm"] .blog-card__img { border-radius: 16px; box-shadow: none; background: #EFEFEC; }
html[data-theme="tm"] .blog-card:hover .blog-card__img { transform: none; }
html[data-theme="tm"] .blog-card__date { font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; text-transform: lowercase; color: var(--muted); }
html[data-theme="tm"] .blog-card__title { font-weight: 500; font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; transition: color .18s; }
html[data-theme="tm"] .blog-card:hover .blog-card__title { color: var(--accent); }
html[data-theme="tm"] .blog-card__excerpt { color: var(--body); }
html[data-theme="tm"] .blog__pagination { justify-content: flex-start; }
html[data-theme="tm"] .blog__pagination a, html[data-theme="tm"] .blog__pagination span {
  font-family: var(--f-mono); font-weight: 400; font-size: 14px; background: var(--card); border: 1px solid var(--rule-2); color: var(--ink);
}
html[data-theme="tm"] .blog__pagination a:hover { border-color: var(--ink); background: var(--card); }
html[data-theme="tm"] .blog__pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }

html[data-theme="tm"] .post__container { max-width: 760px; }
html[data-theme="tm"] .post__header { text-align: left; }
html[data-theme="tm"] .post__cats { justify-content: flex-start; }
html[data-theme="tm"] .post__cats a, html[data-theme="tm"] .post__cats span { font-family: var(--f-mono); font-size: 13.5px; text-transform: lowercase; color: var(--muted); }
html[data-theme="tm"] .post__title { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.045em; margin-bottom: 24px; }
html[data-theme="tm"] .post__meta { justify-content: flex-start; font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; text-transform: lowercase; color: var(--muted); margin-bottom: 48px; }
html[data-theme="tm"] .post__hero-img { border-radius: 20px; box-shadow: none; margin-bottom: 56px; }
html[data-theme="tm"] .post__content { font-size: 19px; line-height: 1.7; color: var(--body); }
html[data-theme="tm"] .post__content h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.04em; margin: 64px 0 18px; }
html[data-theme="tm"] .post__content h3 { font-size: clamp(22px, 2.2vw, 26px); margin: 44px 0 12px; }
html[data-theme="tm"] .post__content a { color: var(--ink); text-decoration-color: var(--outline); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .18s, text-decoration-color .18s; }
html[data-theme="tm"] .post__content a:hover { color: var(--accent); text-decoration-color: var(--accent); }
html[data-theme="tm"] .post__content blockquote { background: transparent; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-radius: 0; padding: 24px 0; font-size: 22px; letter-spacing: -0.015em; color: var(--ink); }
html[data-theme="tm"] .post__content img { border-radius: 16px; }
html[data-theme="tm"] .post__content pre, html[data-theme="tm"] .post__content code { font-family: var(--f-mono); }
html[data-theme="tm"] .post__content pre { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; }
html[data-theme="tm"] .post__content code { background: #EFEFEC; }
html[data-theme="tm"] .post__content pre code { background: none; }
html[data-theme="tm"] .post__content th, html[data-theme="tm"] .post__content td { border-bottom-color: var(--rule); }
html[data-theme="tm"] .post__content th { font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; text-transform: lowercase; color: var(--muted); }
html[data-theme="tm"] .post__cta-inner {
  background: var(--card); color: var(--ink); text-align: left; justify-items: start;
  border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow-soft); padding: clamp(28px, 4vw, 48px);
}
html[data-theme="tm"] .post__cta-inner h3 { color: var(--ink); font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; }
html[data-theme="tm"] .post__cta-inner p { color: var(--body); }
html[data-theme="tm"] .post__cta-inner .btn--primary { background: var(--ink); color: #fff; }
html[data-theme="tm"] .post__author { border-top-color: var(--rule); }
html[data-theme="tm"] .post__author-name { font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; text-transform: lowercase; }
html[data-theme="tm"] .post__author-bio a { border-bottom: 1px solid var(--outline); }
html[data-theme="tm"] .post__author-bio a:hover { color: var(--accent); border-color: var(--accent); }
html[data-theme="tm"] .post__related { border-top: 1px solid var(--rule); padding-top: var(--section-pad-y-tight); }
html[data-theme="tm"] .post__related-title { text-align: left; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.04em; margin-bottom: 40px; }

/* Generic page */
html[data-theme="tm"] .site-main .page-content a { color: var(--ink); text-decoration-color: var(--outline); text-decoration-thickness: 1px; }
html[data-theme="tm"] .site-main .page-content a:hover { color: var(--accent); }

/* ================================================================
   OVERWATCH BOOK-A-CALL POPUP
   ================================================================ */
html[data-theme="tm"] .ow-popup { --ow-popup-theme-bg: #FFFFFF; --ow-popup-overlay: rgba(17,17,17,.45); --ow-popup-radius: 20px; }
/* Booking popup: form-sized heading (the global h2 scale is for page sections), left aligned, dialog never taller than the screen */
html[data-theme="tm"] .ow-popup__dialog { max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
html[data-theme="tm"] .ow-popup__header { padding: 28px 56px 0 24px; text-align: left; }
html[data-theme="tm"] .ow-popup__header h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 500; margin: 0 0 8px; max-width: none; text-wrap: balance; }
html[data-theme="tm"] .ow-popup__header p { font-size: 15px; line-height: 1.5; color: var(--body); margin: 0; max-width: 40ch; }
html[data-theme="tm"] .ow-popup__body { padding-top: 20px; }
@media (max-width: 640px) { html[data-theme="tm"] .ow-popup__header h2 { font-size: 24px; } html[data-theme="tm"] .ow-popup__header { padding-left: 16px; } }
html[data-theme="tm"] .ow-form {
  --ow-font: Inter, "Helvetica Neue", Arial, sans-serif;
  --ow-text: #111111; --ow-text-light: #4A4A4A; --ow-label-color: #111111;
  --ow-border: rgba(17,17,17,.16); --ow-border-focus: #111111; --ow-focus-shadow: rgba(17,17,17,.08);
  --ow-bg-input: #FFFFFF; --ow-radius: 12px; --ow-btn-bg: #111111; --ow-btn-radius: 999px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1000px) {
  html[data-theme="tm"] .card { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 6px 28px; }
  html[data-theme="tm"] .card .link { grid-column: 3; }
  html[data-theme="tm"] .card ul { grid-column: 2 / -1; grid-row: 4; padding-top: 16px; }
}
@media (max-width: 900px) {
  html[data-theme="tm"] .hero--v10 { text-align: left; padding-top: clamp(48px, 10vw, 80px); }
  html[data-theme="tm"] .hero--v10 .hero__title, html[data-theme="tm"] .hero--v10 .lede { margin-left: 0; margin-right: 0; }
  html[data-theme="tm"] .hero--v10 .hero__ctas { justify-content: flex-start; }
  html[data-theme="tm"] .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  html[data-theme="tm"] .hero--v10 .hero__title { max-width: 17ch; }
  html[data-theme="tm"] .hero__visual { max-width: none; width: 100%; }
  html[data-theme="tm"] .hero__frame img { aspect-ratio: 4 / 3; }
  html[data-theme="tm"] .hero__cap { text-align: left; }
  html[data-theme="tm"] .steps, html[data-theme="tm"] .process__grid { gap: 0 32px; }
}
@media (max-width: 640px) {
  html[data-theme="tm"] .card { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }
  html[data-theme="tm"] .card__visual, html[data-theme="tm"] .card .n, html[data-theme="tm"] .card h3, html[data-theme="tm"] .card .hook,
  html[data-theme="tm"] .card ul, html[data-theme="tm"] .card .link { grid-column: 1; grid-row: auto; }
  html[data-theme="tm"] .card__visual { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 10px; }
  html[data-theme="tm"] .logo img { height: calc(var(--h, 40) * .8px); }
  html[data-theme="tm"] .card .link { justify-self: start; margin-top: 8px; }
  html[data-theme="tm"] .res { grid-template-columns: 1fr; gap: 6px; }
  html[data-theme="tm"] .res .r { text-align: left; }
  html[data-theme="tm"] .footer__bottom { justify-content: flex-start; }
  html[data-theme="tm"] .sp-hero__ctas { flex-direction: row; align-items: flex-start; }
  html[data-theme="tm"] .btn { height: 50px; padding: 0 22px; }
}
/* Phone first fold: headline, lede, buttons, image and logo carousel all visible without scrolling.
   The image takes whatever height is left (svh), so it holds on short and tall phones alike. */
@media (max-width: 640px) {
  html[data-theme="tm"] .hero--v10 { padding: 20px 0 20px; }
  html[data-theme="tm"] .hero__grid { gap: 20px; }
  html[data-theme="tm"] .hero--v10 .hero__title { max-width: none; margin: 0 0 12px; font-size: clamp(28px, 8.4vw, 36px); line-height: 1.06; }
  html[data-theme="tm"] .hero--v10 .lede { max-width: none; margin: 0 0 18px; font-size: 15.5px; line-height: 1.45; }
  html[data-theme="tm"] .hero--v10 .hero__ctas { flex-wrap: nowrap; gap: 10px; }
  html[data-theme="tm"] .hero--v10 .hero__ctas .btn { flex: 1 1 0; min-width: 0; height: 46px; padding: 0 10px; font-size: 15px; white-space: nowrap; justify-content: center; }
  html[data-theme="tm"] .hero__frame img { aspect-ratio: auto; width: 100%; height: clamp(132px, calc(100svh - 502px), 300px); object-fit: cover; }
  html[data-theme="tm"] .hero__cap { display: none; }
  html[data-theme="tm"] .logos { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="tm"] * { animation: none !important; transition: none !important; }
}
