/* ---- Homepage (2026-10-19): the Trunk Tools layout in SubPro colours -------
   Loaded by index.html only, after styles.css. The header and footer markup
   stay canonical (tools/sync-chrome.mjs copies them to every page), so this
   sheet restyles them under body.home-page instead of replacing them.
   Every class this sheet owns is prefixed th- so nothing here collides with
   the design system in styles.css.

   Measurements come from trunktools.com as scraped on 2026-10-19: 86rem
   container, 1.5/2/3rem gutters, 6/7.5/8.5rem section rhythm, Poppins 600
   headings at 60/48/36, IBM Plex Sans body, pill buttons, 16px card radius,
   hairline borders. Jay, 2026-10-19: the site may carry ambient motion; the
   rotating hero line, the logo marquee, the fade up on scroll and the stat
   count up all stay. Every one of them still stops under
   prefers-reduced-motion. Design notes: docs/prototypes/2026-10-19-trunk-style-home/README.md */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.home-page {
  --th-bg: #06111f;
  --th-bg-elevated: #0b1d31;
  --th-bg-deep: #040c17;
  --th-text: #ffffff;
  --th-text-body: #d5dfea;
  --th-text-muted: #b8c7d9;
  --th-accent: #ff6b13;
  --th-accent-2: #f26100;
  --th-border: rgba(213, 223, 234, 0.12);
  --th-border-strong: rgba(213, 223, 234, 0.22);
  --th-font-heading: "Poppins", "Archivo", system-ui, sans-serif;
  --th-font-body: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  --th-container: 86rem;
  --th-gutter: 1.5rem;
  --th-section-y: 6rem;
  --th-radius-card: 1rem;
  --th-pill: 9999px;
  --th-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --th-duration: 0.25s;

  margin: 0;
  background: var(--th-bg);
  color: var(--th-text-body);
  font-family: var(--th-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 640px)  { body.home-page { --th-gutter: 2rem; } }
@media (min-width: 768px)  { body.home-page { --th-section-y: 7.5rem; } }
@media (min-width: 1024px) { body.home-page { --th-gutter: 3rem; --th-section-y: 8.5rem; } }

body.home-page main h1,
body.home-page main h2,
body.home-page main h3 { margin: 0; font-family: var(--th-font-heading); font-weight: 600; letter-spacing: -0.025em; color: var(--th-text); font-stretch: normal; }
body.home-page main p { margin: 0; }
body.home-page main ul { margin: 0; padding: 0; list-style: none; }
body.home-page main a { color: inherit; text-decoration: none; }
body.home-page main img { display: block; max-width: 100%; height: auto; }
body.home-page main button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.th-container { width: 100%; max-width: var(--th-container); margin: 0 auto; padding-left: var(--th-gutter); padding-right: var(--th-gutter); }
.th-section { padding-top: var(--th-section-y); padding-bottom: var(--th-section-y); }
.th-section.th-elevated { background: rgba(11, 29, 49, 0.4); }

/* Type scale (Trunk: text-3xl / sm:text-4xl / lg:text-5xl) */
.th-h2 { font-size: 1.875rem; line-height: 1.2; }
.th-h3 { font-size: 1.5rem; line-height: 1.33; }
.th-lead { font-size: 1rem; line-height: 1.75rem; color: var(--th-text-muted); }
@media (min-width: 640px) {
  .th-h2 { font-size: 2.25rem; line-height: 1.12; }
  .th-h3 { font-size: 1.875rem; line-height: 1.2; }
  .th-lead { font-size: 1.125rem; line-height: 2rem; }
}
@media (min-width: 1024px) { .th-h2 { font-size: 3rem; line-height: 1.12; } }
.th-eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--th-accent); }
.th-accent { color: var(--th-accent); }
.th-center { text-align: center; }

/* Buttons. Filled stays white on brand orange (Jay's rule). */
.th-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--th-pill); padding: 0.75rem 1.25rem;
  font-size: 0.875rem; font-weight: 500; line-height: 1.25rem; white-space: nowrap;
  transition: background-color var(--th-duration) var(--th-ease), color var(--th-duration) var(--th-ease), filter var(--th-duration) var(--th-ease), border-color var(--th-duration) var(--th-ease);
}
.th-btn-primary { background: var(--th-accent); color: #fff; border: 1px solid var(--th-accent-2); }
.th-btn-primary:hover { filter: brightness(1.1); }
.th-btn-secondary { border: 1px solid rgba(213, 223, 234, 0.45); color: var(--th-text); }
.th-btn-secondary:hover { border-color: var(--th-text); }
.th-btn .th-arrow { font-size: 0.9em; }
.th-text-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--th-text); margin-top: 1.75rem; }
.th-text-link:hover { color: var(--th-accent); }
.th-text-link .th-arrow { transition: transform var(--th-duration) var(--th-ease); }
.th-text-link:hover .th-arrow { transform: translateX(3px); }

/* ---- The canonical header, restyled: a sticky dark bar across the top ---- */
body.home-page .rail.marketing-nav {
  position: sticky;
  top: 0;
  margin: 0;
  height: 4.5rem;
  padding: 0 var(--th-gutter);
  gap: var(--space-6);
  background: rgba(6, 17, 31, 0.92);
  border: 0;
  border-bottom: 1px solid var(--th-border);
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (min-width: 768px) { body.home-page .rail.marketing-nav { height: 6.25rem; } }
/* The compact wordmark is navy on white. The white cut sits behind it as a
   background so the markup stays canonical for the chrome check. */
body.home-page .brand { position: relative; width: 132px; height: 40px; background: url("logos/subpro-wordmark-white-transparent.png") no-repeat left center / contain; }
body.home-page .brand-wordmark { opacity: 0; }
body.home-page .rail nav a { color: var(--th-text-muted); font-family: var(--th-font-body); font-size: 0.875rem; font-weight: 400; border-radius: 0.375rem; }
body.home-page .rail nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
body.home-page .rail nav a.nav-contact { color: var(--th-text-muted); }
body.home-page .rail nav a.nav-docs { color: var(--th-accent); }
body.home-page .rail-cta {
  display: inline-flex; align-items: center; min-height: 0;
  border-radius: var(--th-pill); padding: 0.75rem 1.25rem;
  background: var(--th-accent); border: 1px solid var(--th-accent-2); color: #fff;
  font-family: var(--th-font-body); font-size: 0.875rem; font-weight: 500; line-height: 1.25rem; white-space: nowrap;
}
body.home-page .rail-cta:hover { filter: brightness(1.1); }
@media (max-width: 1100px) {
  body.home-page .rail.marketing-nav { gap: var(--space-3); }
  body.home-page .nav-toggle { background: transparent; color: #fff; border-color: var(--th-border-strong); font-family: var(--th-font-body); font-weight: 500; }
  body.home-page .nav-toggle::before { background: linear-gradient(#fff 0 2px, transparent 2px 5px, #fff 5px 7px, transparent 7px 10px, #fff 10px 12px); }
  body.home-page .nav-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.08); }
  body.home-page .nav-links { left: 0; right: 0; top: 100%; background: var(--th-bg-elevated); border: 1px solid var(--th-border-strong); border-radius: 0 0 0.75rem 0.75rem; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
  body.home-page .rail nav a { border-bottom-color: var(--th-border); }
  body.home-page .rail-cta { padding: 0.5rem 0.9rem; }
}
/* A phone: the brand, the Menu button and the fit call pill must fit 390px
   with no sideways scroll (shot.mjs exits 3 on overflow). */
@media (max-width: 560px) {
  body.home-page .rail.marketing-nav { padding: 0 1rem; gap: var(--space-2); }
  body.home-page .brand { width: 104px; height: 32px; }
  body.home-page .nav-toggle { padding: 6px 9px; font-size: 0.8125rem; }
  body.home-page .rail-cta { padding: 0.45rem 0.7rem; font-size: 0.8125rem; }
}

/* ---- The Link banner: a thin strip under the header (Jay, 2026-10-19 15:43) ---- */
.th-link-banner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem 0.75rem;
  padding: 0.625rem var(--th-gutter);
  background: var(--th-bg-elevated); box-shadow: inset 0 -1px 0 var(--th-border);
  color: var(--th-text-muted); font-family: var(--th-font-body); font-size: 0.8125rem; line-height: 1.25rem;
  text-align: center; text-decoration: none; transition: background var(--th-duration) var(--th-ease);
}
.th-link-banner:hover { background: #0e2440; color: #fff; }
.th-link-banner-tag {
  display: inline-block; box-sizing: border-box; height: 1.25rem; padding: 0 0.55rem; border-radius: var(--th-pill);
  background: rgba(255, 107, 19, 0.16); border: 1px solid rgba(255, 107, 19, 0.45);
  color: var(--th-accent); font-size: 0.6875rem; line-height: calc(1.25rem - 2px); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.th-link-banner-cta { color: #fff; font-weight: 500; white-space: nowrap; }
.th-link-banner-cta .th-arrow { display: inline-block; transition: transform var(--th-duration) var(--th-ease); }
.th-link-banner:hover .th-arrow { transform: translateX(3px); }
@media (max-width: 560px) {
  .th-link-banner { padding: 0.5rem 1rem; gap: 0.35rem 0.5rem; font-size: 0.75rem; }
  .th-link-banner-text { display: none; }
}

/* ---- Hero ---- */
.th-hero { position: relative; overflow: hidden; padding-top: calc(var(--th-section-y) + 1rem); padding-bottom: 0; }
@media (min-width: 768px) { .th-hero { padding-top: calc(var(--th-section-y) + 2rem); } }
.th-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.th-hero-glow {
  pointer-events: none; position: absolute; top: 0; left: 50%; height: 22rem; width: min(92vw, 44rem);
  transform: translate(-50%, -35%);
  background: radial-gradient(ellipse at center, rgba(255, 107, 19, 0.18) 0%, rgba(255, 107, 19, 0.08) 38%, transparent 70%);
}
@media (min-width: 640px) { .th-hero-glow { height: 26rem; width: min(90vw, 52rem); } }
.th-hero-badge {
  position: relative; text-align: center; margin-bottom: 1.5rem; display: inline-flex; align-items: center;
  border-radius: var(--th-pill); border: 1px solid rgba(255, 107, 19, 0.4); background: rgba(255, 107, 19, 0.10);
  padding: 0.375rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--th-accent);
}
.th-hero-badge:hover { background: rgba(255, 107, 19, 0.15); }
.th-hero-title { position: relative; max-width: 64rem; font-size: 2.25rem; line-height: 1.12; }
@media (min-width: 640px)  { .th-hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .th-hero-title { font-size: 3.75rem; } }
.th-hero-title .th-line { display: block; }
.th-hero-title .th-rotator { display: block; min-height: 1.15em; margin-top: 0.5rem; color: var(--th-accent); }
@media (min-width: 640px) { .th-hero-title .th-rotator { margin-top: 0.75rem; } }
.th-rotator .th-word { display: inline-block; transition: opacity 0.3s var(--th-ease), transform 0.3s var(--th-ease); }
.th-rotator .th-word.is-out { opacity: 0; transform: translateY(0.35em); }
.th-hero-lead { margin-top: 1.5rem; max-width: 42rem; }
.th-hero-cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* The app frame under the hero: a still of the product, not a photograph. */
.th-app-wrap { position: relative; margin: 3.5rem auto 0; width: 100%; max-width: min(100%, var(--th-container)); padding: 0 var(--th-gutter); }
@media (min-width: 640px) { .th-app-wrap { margin-top: 4rem; } }
.th-app-frame {
  position: relative; overflow: hidden;
  border-radius: var(--th-radius-card) var(--th-radius-card) 0 0;
  border: 1px solid var(--th-border-strong); border-bottom: 0;
  background: var(--th-bg-elevated);
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.45);
}
.th-app-screen { position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 22rem; overflow: hidden; background: var(--th-bg); }
@media (min-width: 640px)  { .th-app-screen { aspect-ratio: 16 / 9; min-height: 24rem; } }
@media (min-width: 1024px) { .th-app-screen { min-height: 32rem; } }
.th-app-body { position: absolute; inset: 0; display: flex; min-height: 0; }
.th-app-side {
  display: none; height: 100%; width: 11.5rem; flex-shrink: 0; flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08); background: var(--th-bg-deep); padding: 0.75rem 0.625rem;
}
@media (min-width: 640px)  { .th-app-side { display: flex; } }
@media (min-width: 1024px) { .th-app-side { width: 13.5rem; padding-left: 0.75rem; padding-right: 0.75rem; } }
.th-app-side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 0.25rem; }
.th-app-side-top img { height: 1rem; width: auto; }
@media (min-width: 1024px) { .th-app-side-top img { height: 1.15rem; } }
.th-app-side-top span { font-size: 10px; color: rgba(255, 255, 255, 0.35); }
.th-app-project {
  margin-top: 0.75rem; display: flex; align-items: center; gap: 0.5rem;
  border-radius: 0.5rem; border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.04);
  padding: 0.375rem 0.5rem; font-size: 11px; font-weight: 500; color: #fff;
}
.th-app-project .th-ic { color: rgba(255, 255, 255, 0.7); }
.th-app-project .th-chev { margin-left: auto; color: rgba(255, 255, 255, 0.4); }
.th-app-project p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-app-nav { margin-top: 0.75rem; display: grid; gap: 0.125rem; }
.th-app-nav div { display: flex; align-items: center; gap: 0.5rem; border-radius: 0.375rem; padding: 0.375rem 0.5rem; font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.th-app-nav div.is-active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.th-app-nav .th-ic { width: 12px; height: 12px; border-radius: 3px; border: 1px solid currentColor; opacity: 0.8; flex-shrink: 0; }
.th-app-kicker { margin-top: 1rem; padding: 0 0.5rem; font-size: 9px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); }
.th-app-list { margin-top: 0.25rem; }
.th-app-list div { display: flex; align-items: center; justify-content: space-between; border-radius: 0.375rem; padding: 0.375rem 0.5rem; font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.th-app-list div span.th-chev { color: rgba(255, 255, 255, 0.3); }
.th-app-faint { margin-top: 0.25rem; padding: 0 0.5rem; font-size: 10px; color: rgba(255, 255, 255, 0.35); }
.th-app-support { margin-top: auto; padding: 0.75rem 0.5rem 0; font-size: 11px; color: rgba(255, 255, 255, 0.45); }
.th-app-main { position: relative; min-height: 0; min-width: 0; flex: 1; overflow: hidden; background: var(--th-bg-elevated); }
.th-app-photo { position: absolute; left: 0; right: 0; top: 0; height: 68%; overflow: hidden; }
.th-app-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.th-app-photo::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }
.th-app-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2), var(--th-bg-elevated)); }
.th-app-topbar { position: relative; z-index: 10; display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; }
@media (min-width: 640px) { .th-app-topbar { padding: 1rem 1.25rem; } }
.th-app-topbar .th-ic { display: flex; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center; border-radius: 0.375rem; background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.8); font-size: 11px; }
@media (min-width: 640px) { .th-app-topbar .th-ic { width: 1.75rem; height: 1.75rem; } }
.th-app-topbar p { font-family: var(--th-font-heading); font-size: 13px; font-weight: 600; letter-spacing: -0.025em; color: #fff; }
@media (min-width: 640px) { .th-app-topbar p { font-size: 15px; } }
.th-app-ask {
  position: absolute; z-index: 10; left: 1rem; right: 1rem; top: 46%;
  margin: 0 auto; max-width: 42rem;
  border-radius: 0.875rem; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(6, 17, 31, 0.88);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 0.875rem 1rem;
}
@media (min-width: 640px)  { .th-app-ask { left: 2rem; right: 2rem; top: 44%; padding: 1rem 1.125rem; } }
@media (min-width: 1024px) { .th-app-ask { left: 3rem; right: 3rem; } }
.th-app-ask-prompt { font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.th-app-ask-file { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.5rem; font-size: 12px; color: #fff; }
.th-app-ask-file .th-pdf { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 0.375rem; background: rgba(255, 107, 19, 0.2); color: var(--th-accent); font-size: 9px; font-weight: 600; }
.th-app-ask-file .th-meta { color: rgba(255, 255, 255, 0.45); }
.th-app-ask-row { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.th-app-chip { display: inline-flex; align-items: center; gap: 0.375rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.14); padding: 0.3rem 0.65rem; font-size: 11px; color: rgba(255, 255, 255, 0.8); }
.th-app-ask-icons { display: flex; align-items: center; gap: 0.75rem; color: rgba(255, 255, 255, 0.4); font-size: 12px; }
.th-app-go { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; background: var(--th-accent); color: #fff; font-size: 12px; }
.th-app-shot { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.th-app-shot img { width: 86%; border-radius: 0.5rem 0.5rem 0 0; border: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 0; opacity: 0.9; }

/* ---- Manufacturer logo strip ---- */
/* The library's real logos on white chips, grayscale, light ink inverted: the
   recipe Jay approved on /product-data/manufacturers (2026-09-21). White
   silhouettes were tried first and broke every coloured and boxed logo
   (Jay, 2026-10-19 16:13: "some aren't even showing"). */
.th-logo-strip { overflow-x: hidden; border-top: 1px solid var(--th-border); border-bottom: 1px solid var(--th-border); background: rgba(11, 29, 49, 0.5); padding: 2rem 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
@media (min-width: 640px) { .th-logo-strip { padding: 2.5rem 0; } }
.th-marquee { display: flex; align-items: center; gap: 1rem; width: max-content; padding: 0 0.5rem; animation: th-marquee 70s linear infinite; }
.th-chip { flex: none; display: grid; place-items: center; width: 150px; height: 54px; padding: 0 14px; border-radius: 10px; background: #fff; border: 1px solid rgba(255, 255, 255, 0.6); }
body.home-page main .th-chip img { display: block; height: 30px; width: 120px; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: 0.85; }
body.home-page main .th-chip.th-light img { filter: invert(1) grayscale(1); }
@keyframes th-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .th-marquee { animation: none; } }

/* ---- Two column intro ---- */
.th-intro-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .th-intro-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.th-intro-grid .th-h2 { max-width: 36rem; }
.th-intro-lead { max-width: 36rem; margin-top: 1.5rem; font-size: 1.125rem; line-height: 2rem; color: var(--th-text-muted); }
@media (min-width: 640px) { .th-intro-lead { font-size: 1.25rem; line-height: 2.25rem; } }
.th-intro-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.th-intro-list li { padding-left: 1.25rem; border-left: 2px solid var(--th-accent); font-size: 1rem; line-height: 1.7; color: var(--th-text-muted); }
.th-intro-list strong { display: block; color: #fff; font-weight: 600; margin-bottom: 0.25rem; }

/* ---- The library ---- */
.th-platform-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .th-platform-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.th-platform-grid .th-h2 { margin-top: 1rem; }
@media (min-width: 1024px) { .th-platform-grid .th-h2 { font-size: 2.7rem; } }
.th-platform-grid .th-lead { margin-top: 1.25rem; max-width: 40rem; }
.th-platform-visual { position: relative; overflow: hidden; border-radius: var(--th-radius-card); border: 1px solid var(--th-border-strong); background: var(--th-bg-deep); aspect-ratio: 1.26; }
.th-platform-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 20% 20%; }
.th-platform-visual img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: cover; object-position: top left; border-radius: 0.5rem; border: 1px solid var(--th-border-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }

/* ---- What SubPro does: eight cards, each a screen in the app ---- */
.th-tools-head .th-lead { margin: 1.25rem auto 0; max-width: 36rem; }
.th-tools-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 640px) { .th-tools-grid { margin-top: 4rem; } }
@media (min-width: 1024px) { .th-tools-grid { grid-template-columns: 1fr 1fr; } }
.th-tool-card {
  display: flex; height: 100%; flex-direction: column; overflow: hidden;
  border-radius: var(--th-radius-card); border: 1px solid var(--th-border-strong); background: var(--th-bg-elevated);
  transition: border-color var(--th-duration) var(--th-ease), transform var(--th-duration) var(--th-ease);
}
.th-tool-card:hover { border-color: rgba(255, 107, 19, 0.5); transform: translateY(-2px); }
.th-tool-shot { position: relative; padding: 2.5rem 3rem 0; min-height: 22rem; display: flex; align-items: flex-end; background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.03), transparent 60%); }
@media (max-width: 639px) { .th-tool-shot { padding: 1.5rem 1.5rem 0; min-height: 14rem; } }
.th-tool-shot img { width: 100%; border-radius: 0.5rem 0.5rem 0 0; border: 1px solid var(--th-border-strong); border-bottom: 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4); }
.th-tool-foot { border-top: 1px solid var(--th-border-strong); padding: 1.75rem 2rem 2rem; background: linear-gradient(180deg, rgba(255, 107, 19, 0.12), rgba(255, 107, 19, 0.03)); }
.th-tool-name { display: flex; align-items: center; gap: 0.75rem; }
.th-tool-name .th-ic { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 0.375rem; border: 1.5px solid var(--th-accent); color: var(--th-accent); font-family: var(--th-font-heading); font-size: 0.75rem; font-weight: 600; }
.th-tool-name h3 { font-size: 1.625rem; color: var(--th-accent); letter-spacing: -0.02em; }
.th-tool-foot p { margin-top: 0.75rem; font-size: 1rem; line-height: 1.75rem; color: var(--th-text-body); }

/* ---- Link cards ---- */
.th-support-head { margin: 0 auto; max-width: 48rem; }
.th-support-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 640px) { .th-support-grid { margin-top: 4rem; } }
@media (min-width: 1024px) { .th-support-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.th-support-card { overflow: hidden; border-radius: var(--th-radius-card); border: 1px solid var(--th-border-strong); background: var(--th-bg-elevated); }
.th-support-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.th-support-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25); transition: transform 0.7s var(--th-ease); }
.th-support-card:hover .th-support-photo img { transform: scale(1.03); }
.th-support-body { padding: 2rem 2.5rem 2.75rem; }
@media (max-width: 639px) { .th-support-body { padding: 1.5rem; } }
.th-support-body p { margin-top: 1rem; color: var(--th-text-muted); }
.th-support-cta { margin-top: 3rem; display: flex; justify-content: center; }

/* ---- Founder card ---- */
.th-founder { overflow: hidden; border-radius: var(--th-radius-card); border: 1px solid var(--th-border-strong); background: var(--th-bg-elevated); display: grid; }
@media (min-width: 1024px) { .th-founder { grid-template-columns: 1fr 1fr; } }
.th-founder-text { display: flex; flex-direction: column; justify-content: center; padding: 3rem; }
@media (max-width: 639px) { .th-founder-text { padding: 1.75rem 1.5rem; } }
.th-founder-text .th-h2 { margin-top: 1.25rem; max-width: 32rem; }
@media (min-width: 1024px) { .th-founder-text .th-h2 { font-size: 2.5rem; } }
.th-founder-text .th-lead { margin-top: 1.25rem; max-width: 36rem; }
.th-founder-photo { border-left: 1px solid var(--th-border); display: flex; flex-direction: column; }
@media (max-width: 1023px) { .th-founder-photo { border-left: 0; border-top: 1px solid var(--th-border); } }
.th-founder-photo .th-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--th-bg-deep); }
.th-founder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transform: scale(0.78); transform-origin: center; }
.th-founder-caption { border-top: 1px solid var(--th-border); padding: 1.25rem 2rem; }
.th-founder-caption .th-name { font-family: var(--th-font-heading); font-size: 1rem; font-weight: 500; color: var(--th-text); }
.th-founder-caption .th-sub { margin-top: 0.25rem; font-size: 0.875rem; color: var(--th-text-muted); }

/* ---- Library figures ---- */
.th-stats-card { margin-top: 3rem; overflow: hidden; border-radius: var(--th-radius-card); border: 1px solid var(--th-border-strong); background: var(--th-bg); }
@media (min-width: 640px) { .th-stats-card { margin-top: 4rem; } }
.th-stats { display: grid; margin: 0; }
@media (min-width: 640px)  { .th-stats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .th-stats { grid-template-columns: repeat(4, 1fr); } }
.th-stat { display: flex; flex-direction: column; align-items: flex-start; padding: 1.75rem 1.25rem; border-top: 1px solid var(--th-border); }
.th-stat:first-child { border-top: 0; }
@media (min-width: 640px) {
  .th-stat { padding: 2.25rem 1.5rem; }
  .th-stat:nth-child(2) { border-top: 0; border-left: 1px solid var(--th-border); }
  .th-stat:nth-child(4) { border-left: 1px solid var(--th-border); }
}
@media (min-width: 1024px) { .th-stat { border-top: 0; } .th-stat + .th-stat { border-left: 1px solid var(--th-border); } }
.th-stat dd { margin: 0; font-family: var(--th-font-heading); font-size: 2.25rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; color: var(--th-accent); }
@media (min-width: 640px) { .th-stat dd { font-size: 3rem; } }
.th-stat dt { margin-top: 0.75rem; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--th-text-muted); }
.th-stat p { margin-top: 0.75rem; font-size: 0.75rem; line-height: 1.25rem; color: var(--th-text-muted); }
@media (min-width: 640px) { .th-stat p { font-size: 0.875rem; line-height: 1.5rem; } }

/* ---- Who uses it: three slides ---- */
.th-roles-head { margin: 0 auto; max-width: 48rem; }
.th-carousel { margin-top: 3rem; overflow: hidden; border-radius: var(--th-radius-card); border: 1px solid var(--th-border-strong); background: var(--th-bg-elevated); }
@media (min-width: 640px) { .th-carousel { margin-top: 4rem; } }
.th-slide { display: none; }
.th-slide.is-active { display: grid; }
@media (min-width: 1024px) { .th-slide.is-active { grid-template-columns: 1fr 1fr; height: 40rem; } }
.th-slide-photo { position: relative; aspect-ratio: 16 / 10; width: 100%; background: var(--th-bg); }
@media (min-width: 1024px) { .th-slide-photo { aspect-ratio: auto; height: 100%; } }
.th-slide-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.th-slide-photo::after { content: ""; position: absolute; inset: 0; background: rgba(6, 17, 31, 0.45); }
.th-slide-photo .th-label { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; font-family: var(--th-font-heading); font-size: 2.5rem; font-weight: 600; letter-spacing: -0.025em; text-align: center; color: #fff; line-height: 1.1; }
@media (min-width: 640px) { .th-slide-photo .th-label { font-size: 3rem; } }
.th-slide-text { display: flex; flex-direction: column; padding: 2.5rem 2rem; }
@media (min-width: 640px) { .th-slide-text { padding: 3.5rem 3rem; } }
.th-slide-quote { font-family: var(--th-font-heading); font-size: 1.375rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; color: var(--th-text); }
@media (min-width: 640px) { .th-slide-quote { font-size: 1.75rem; } }
.th-slide-who { margin-top: auto; padding-top: 2.5rem; }
.th-slide-who .th-mark { width: 4.5rem; height: 4.5rem; border-radius: 9999px; border: 1px solid var(--th-border-strong); background: var(--th-bg); display: flex; align-items: center; justify-content: center; }
.th-slide-who .th-mark img { height: 1.25rem; width: auto; }
.th-slide-who .th-name { margin-top: 1.25rem; font-family: var(--th-font-heading); font-size: 1rem; font-weight: 500; color: var(--th-text); }
.th-slide-who .th-sub { margin-top: 0.25rem; font-size: 0.875rem; color: var(--th-text-muted); }
.th-slide-who .th-btn { margin-top: 1.5rem; align-self: flex-start; }
.th-carousel-controls { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.th-carousel-bars { display: flex; flex: 1; gap: 0.75rem; }
.th-carousel-bars button { height: 4px; flex: 1; border-radius: 9999px; background: var(--th-border-strong); transition: background-color var(--th-duration) var(--th-ease); }
.th-carousel-bars button:hover { background: var(--th-text-muted); }
.th-carousel-bars button.is-active { background: var(--th-text); }
.th-carousel-arrows { display: flex; gap: 0.75rem; }
.th-carousel-arrows button { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 9999px; border: 1px solid var(--th-border-strong); color: var(--th-text); }
.th-carousel-arrows button:hover { border-color: var(--th-text); }

/* ---- Closing ---- */
.th-cta-section { padding-top: 2rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .th-cta-section { padding-top: 2.5rem; padding-bottom: 5rem; } }
@media (min-width: 1024px) { .th-cta-section { padding-top: 3rem; padding-bottom: 6rem; } }
.th-cta-card {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--th-radius-card); border: 1px solid var(--th-border-strong);
  background: radial-gradient(ellipse at 30% 0%, rgba(255, 107, 19, 0.16), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(213, 223, 234, 0.06), transparent 50%), var(--th-bg-elevated);
  padding: 4rem 1.5rem;
}
@media (min-width: 768px) { .th-cta-card { padding: 4.5rem 2rem; } }
.th-cta-card .th-h2 { margin: 0 auto; max-width: 44rem; }
.th-cta-card .th-cta-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.th-cta-micro { margin-top: 1.5rem; font-size: 0.8125rem; color: var(--th-text-muted); }

/* ---- The canonical footer, on the raised surface in the page's face ---- */
body.home-page .site-footer { border-top: 1px solid var(--th-border); background: var(--th-bg-elevated); font-family: var(--th-font-body); }
body.home-page .footer-heading { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--th-text-muted); }
body.home-page .footer-col a { font-size: 0.875rem; color: var(--th-text-body); }
body.home-page .footer-col a:hover { color: #fff; }

/* ---- Fade up on scroll. Only when the script has confirmed it can reveal. ---- */
html.th-js-reveal .th-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--th-ease), transform 0.6s var(--th-ease); }
html.th-js-reveal .th-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.th-js-reveal .th-reveal { opacity: 1; transform: none; transition: none; }
  .th-rotator .th-word { transition: none; }
}
