/*
Theme Name: TrainMe4Tech
Theme URI: https://trainme4tech.com
Author: TrainMe4Tech
Author URI: https://trainme4tech.com
Description: Warm-minimal editorial block theme for TrainMe4Tech: enterprise IT consulting, training, and single-file AI apps. Ported from the Claude-designed static site ("International Leader" design system v2). Light default with a runtime dark mode, Bricolage Grotesque/Manrope/JetBrains Mono bundled locally, and full-site-editing templates and patterns for every homepage section.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 0.18.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trainme4tech
Tags: full-site-editing, block-patterns, one-column, custom-colors, editor-style
*/

/* ============================================================
   TrainMe4Tech - Design System v2 · "International Leader"
   TOKENS: theme.json is the source of truth. Everything below
   bridges --wp--preset--* / --wp--custom--* into the short
   custom properties the design system was written against,
   with literal fallbacks (a missing preset fails visible-safe).
   Color mode: LIGHT is the default (theme.json presets are the warm
   off-white set); runtime [data-theme="dark"] on <html> redefines
   the PRESET vars, so every bridge follows automatically.
   WP prints global-styles CSS after this sheet; the dark block
   uses :root[data-theme="dark"] (0,2,0) so it outranks the
   :root preset definitions regardless of print order.
   ============================================================ */

:root {
	/* Brand accents - bridged from theme.json palette */
	--orange: var(--wp--preset--color--accent, #FF6B2C);
	--orange-2: var(--wp--preset--color--accent-2, #FF8A4C);
	--orange-soft: var(--wp--preset--color--accent-soft, #E85A1F);
	--purple: var(--wp--preset--color--purple, #8E3FB8);
	--pink: var(--wp--preset--color--pink, #EC407A);
	--green: var(--wp--preset--color--green, #3BAA5E);
	--yellow: var(--wp--preset--color--yellow, #FFB300);
	--blue: var(--wp--preset--color--blue, #29B6F6);
	--grad: var(--wp--preset--gradient--brand, linear-gradient(120deg, #FF6B2C 0%, #F24175 50%, #8E3FB8 100%));

	/* Surfaces / text */
	--bg: var(--wp--preset--color--base, #FAFAF7);
	--bg-2: var(--wp--preset--color--base-2, #F4F3EE);
	--surface: var(--wp--preset--color--surface, #FFFFFF);
	--surface-2: var(--wp--preset--color--surface-2, #F8F7F2);
	--border: var(--wp--preset--color--border, #E5E3DC);
	--border-strong: var(--wp--preset--color--border-strong, #D1CFC8);
	--text: var(--wp--preset--color--contrast, #1C1C21);
	--text-muted: var(--wp--preset--color--text-muted, #6B6A72);
	--text-faint: var(--wp--preset--color--text-faint, #6E6D75);
	--ink: var(--wp--preset--color--ink, #141417);
	--ink-2: var(--wp--preset--color--ink-2, #1D1A22);

	/* Mode-local tokens (not palette entries) - light default */
	--shadow-sm: 0 1px 2px rgba(28,28,33,.05), 0 2px 6px rgba(28,28,33,.04);
	--shadow: 0 6px 22px rgba(28,28,33,.07), 0 1px 4px rgba(28,28,33,.05);
	--shadow-lg: 0 12px 32px rgba(28,28,33,.08);
	--shadow-orange: 0 12px 32px rgba(255,107,44,.18);
	--shadow-purple: 0 16px 40px rgba(142,63,184,.15);
	--tint-orange: rgba(255,107,44,.08);
	--tint-purple: rgba(142,63,184,.07);
	--hairline: rgba(28,28,33,.08);

	--font-display: var(--wp--preset--font-family--display, Georgia, serif);
	--font-body: var(--wp--preset--font-family--body, system-ui, sans-serif);
	--font-mono: var(--wp--preset--font-family--mono, ui-monospace, monospace);

	--r-sm: var(--wp--custom--radius--sm, 8px);
	--r: var(--wp--custom--radius--md, 12px);
	--r-lg: var(--wp--custom--radius--lg, 18px);
	--r-xl: var(--wp--custom--radius--xl, 26px);
	--ease: var(--wp--custom--ease, cubic-bezier(.2,.7,.2,1));
	--ease2: var(--wp--custom--ease2, cubic-bezier(.4,0,.1,1));
	--wrap: min(1280px, 92vw); /* enterprise marketing width (MS/Adobe tier) */
}

/* Dark mode - redefines the PRESET slugs (skill: same-slug
   redefinition, never a parallel set) plus the mode-local tokens.
   Values are the charcoal set; brand orange (#FF6B2C, 5.97:1 on dark)
   is restored full-vibrancy here. */
:root[data-theme="dark"] {
	--wp--preset--color--accent: #FF6B2C; /* brand orange, 5.97:1 on charcoal */
	--wp--preset--color--accent-2: #FF8854;
	--wp--preset--color--accent-soft: #E85A1F;
	--wp--preset--color--purple: #A95FD6;
	--wp--preset--color--pink: #F25C92;
	--wp--preset--color--green: #4FC07A;
	--wp--preset--color--yellow: #FFC23D;
	--wp--preset--color--blue: #4FC3F7;
	--wp--preset--color--base: #1C1C21;
	--wp--preset--color--base-2: #242429;
	--wp--preset--color--surface: #2A2A30;
	--wp--preset--color--surface-2: #323239;
	--wp--preset--color--border: #3A3A42;
	--wp--preset--color--border-strong: #484851;
	--wp--preset--color--contrast: #F5F3EF;
	--wp--preset--color--text-muted: #9B9AA3;
	--wp--preset--color--text-faint: #8A8994; /* AA 4.92:1 on charcoal */
	--wp--preset--color--ink: #141417;
	--wp--preset--color--ink-2: #1D1A22;

	--shadow-sm: 0 1px 2px rgba(0,0,0,.35);
	--shadow: 0 10px 28px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
	--shadow-lg: 0 16px 40px rgba(0,0,0,.4);
	--shadow-orange: 0 12px 32px rgba(255,107,44,.15);
	--shadow-purple: 0 16px 40px rgba(142,63,184,.18);
	--tint-orange: rgba(255,107,44,.10);
	--tint-purple: rgba(142,63,184,.12);
	--hairline: rgba(245,243,239,.08);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg); color: var(--text); font-family: var(--font-body);
	font-size: 16.5px; line-height: 1.6; overflow-x: hidden;
	transition: background .5s var(--ease), color .5s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--orange); color: #fff; }
[id] { scroll-margin-top: 100px; }

/* faint ambient radial wash - orange/purple, per the 1.1.0 identity */
body::before {
	content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background-image:
		radial-gradient(ellipse 900px 640px at 84% -14%, rgba(255,107,44,.06) 0%, transparent 58%),
		radial-gradient(ellipse 760px 540px at 6% 112%, rgba(142,63,184,.07) 0%, transparent 58%);
}
:root[data-theme="dark"] body::before {
	background-image:
		radial-gradient(ellipse 900px 640px at 84% -14%, rgba(255,107,44,.08) 0%, transparent 58%),
		radial-gradient(ellipse 760px 540px at 6% 112%, rgba(142,63,184,.10) 0%, transparent 58%);
}
/* subtle film grain */
body::after {
	content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .4;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
	mix-blend-mode: soft-light;
}
:root[data-theme="dark"] body::after { opacity: .55; mix-blend-mode: overlay; }

/* Root layout: keep block content above the fixed washes */
.wp-site-blocks { position: relative; z-index: 1; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 3.2vw, 52px); position: relative; z-index: 1; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

/* ============ SKIP LINK ============ */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 500; background: var(--ink); color: #F5F3EF; padding: 12px 22px; border-radius: 0 0 var(--r) 0; font-weight: 700; font-size: 14px; }
.skip-link:focus { left: 0; }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: transparent; }
.scroll-progress-bar { height: 100%; width: 0; background: var(--orange); transition: width .1s linear; }

/* ============ TOP BAR / NAV ============ */
.topbar {
	position: sticky; top: 0; z-index: 100; padding: 18px 0;
	border-bottom: 1px solid var(--hairline);
	background: color-mix(in srgb, var(--bg) 84%, transparent);
	backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
	transition: background .5s var(--ease), border-color .5s var(--ease);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.brand .wp-block-site-title { margin: 0; font-size: inherit; font-family: inherit; font-weight: inherit; }
.brand .wp-block-site-title a { color: inherit; }
.brand-mark { display: grid; grid-template-columns: repeat(3,6px); grid-template-rows: repeat(3,6px); gap: 2.5px; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-mark span { display: block; border-radius: 1px; }
.brand-mark span:nth-child(1){background:#E53935}.brand-mark span:nth-child(2){background:#FFB300}.brand-mark span:nth-child(3){background:#9CCC3A}
.brand-mark span:nth-child(4){background:#FF6B2C}.brand-mark span:nth-child(5){background:#29B6F6}.brand-mark span:nth-child(6){background:#8E3FB8}
.brand-mark span:nth-child(7){grid-column:1/4; height:3.5px; border-radius:1px; background:var(--text); transform:translateY(2px);}

/* Custom topnav (ported 1:1) + Apps & Tools mega dropdown */
.topnav { display: flex; gap: 32px; align-items: center; }
.topnav a { position: relative; color: var(--text-muted); font-size: 14px; font-weight: 600; transition: color .25s; }
.topnav a::after { content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 1.5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.topnav a:hover, .topnav a.active { color: var(--text); }
.topnav a:hover::after, .topnav a.active::after { transform: scaleX(1); }
.topbar-actions { display: flex; gap: 10px; align-items: center; }

.nav-item { position: relative; display: inline-flex; }
.nav-item .mega { position: absolute; top: calc(100% + 16px); left: 50%; transform: translate(-50%, 8px); width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 12px; opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s; z-index: 120; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-item .mega::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.topnav .mega a::after { display: none; }
.mega .mega-item { display: flex; gap: 13px; align-items: center; padding: 10px; border-radius: var(--r); transition: background .2s; }
.mega .mega-item:hover { background: var(--surface-2); }
.mega .mi-thumb { width: 62px; height: 44px; border-radius: 8px; flex: 0 0 auto; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.mega .mi-name { display: block; font-weight: 700; font-size: 14px; color: var(--text); }
.mega .mi-desc { display: block; font-size: 12.5px; color: var(--text-faint); margin-top: 1px; }
.mega .mi-price { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--orange); }
.mega .mega-foot { display: block; text-align: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--orange); padding: 12px 10px 5px; border-top: 1px solid var(--hairline); margin-top: 8px; }
@media (max-width: 920px) { .nav-item .mega { display: none; } }

/* Hamburger: hidden by default; becomes the mobile control only once
   theme.js has booted (no-JS mobile keeps the plain topnav links). */
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; background: transparent; border: 1px solid var(--border-strong); cursor: pointer; color: var(--text); align-items: center; justify-content: center; padding: 0; }
.nav-toggle svg { width: 20px; height: 20px; }

/* Full-screen mobile panel (theme.js toggles .open) */
.mobile-panel { position: fixed; inset: 0; z-index: 300; background: var(--bg); transform: translateY(-100%); display: flex; flex-direction: column; padding: 26px 36px; overflow-y: auto; }
@media (prefers-reduced-motion: no-preference) { .mobile-panel { transition: transform .5s var(--ease); } }
.mobile-panel.open { transform: none; }
.mobile-panel .mp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.mobile-panel a { font-family: var(--font-display); font-weight: 500; font-size: 32px; letter-spacing: -.01em; padding: 16px 0; border-bottom: 1px solid var(--hairline); color: var(--text); }
.mobile-panel a:hover, .mobile-panel a.active { color: var(--orange); font-style: italic; }

.theme-toggle { width: 40px; height: 40px; border-radius: 50%; background: transparent; border: 1px solid var(--border-strong); cursor: pointer; display: grid; place-items: center; color: var(--text-muted); transition: all .25s; padding: 0; }
.theme-toggle:hover { color: var(--text); border-color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-dark { display: none; } .theme-toggle .icon-light { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-light { display: none; }
/* Toggle is inert without JS - only show it once JS has booted. */
.theme-toggle { visibility: hidden; }
html.t4t-js .theme-toggle { visibility: visible; }

/* ============ BUTTONS ============ */
.btn, .wp-block-button__link { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body); font-weight: 600; font-size: 14.5px; letter-spacing: .01em; cursor: pointer; border: none; border-radius: 100px; padding: 14px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, border-color .25s, color .25s; will-change: transform; }
.btn svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn-primary, .wp-block-button__link { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(210,89,42,.22); }
.btn-primary:hover, .wp-block-button__link:hover { transform: translateY(-2px); background: var(--orange-soft); box-shadow: 0 12px 28px rgba(210,89,42,.30); color: #fff; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-dark:hover svg { transform: translateX(4px); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 11px 19px; font-size: 13.5px; }
.btn-on-dark { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(6px); }
.btn-on-dark:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }

/* ============ SECTION PRIMITIVES ============ */
.section { padding: 84px 0; border-top: 1px solid var(--hairline); position: relative; }
.section.flush { border-top: none; padding-top: 24px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--orange); margin: 0 0 22px; }
.eyebrow.pill { padding: 8px 16px; border-radius: 100px; background: var(--tint-orange); border: 1px solid color-mix(in srgb, var(--orange) 26%, transparent); letter-spacing: .18em; }
.eyebrow.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.section-title { font-family: var(--font-display); font-size: clamp(28px,2.6vw,38px); font-weight: 500; line-height: 1.06; letter-spacing: -.02em; margin: 0 0 18px; }
.section-title em { font-style: italic; font-weight: 500; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { font-size: 18px; color: var(--text-muted); line-height: 1.62; max-width: 62ch; margin: 0; }

/* ============ HERO - refined espresso ink ============ */
/* Home hero pins its accents to the espresso palette even though
   the rest of the site uses the vibrant brand colors. */
.hero { padding: 28px 0 0; --orange: #D2592A; --orange-2: #E0733E; --orange-soft: #B94E22; }
.hero-block { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 76px 60px 68px; color: #F3ECE1;
	background: linear-gradient(155deg, var(--ink) 0%, var(--ink-2) 70%, #262030 100%); box-shadow: var(--shadow-lg); }
.hero-block::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(20px); pointer-events: none; }
.hero-orb.o1 { width: 460px; height: 460px; background: radial-gradient(circle,rgba(210,89,42,.42),transparent 66%); top: -160px; right: -120px; }
.hero-orb.o2 { width: 300px; height: 300px; background: radial-gradient(circle,rgba(110,75,134,.30),transparent 68%); bottom: -150px; left: 18%; }
.hero-badge { position: absolute; top: 40px; right: 48px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(243,236,225,.7); border: 1px solid rgba(255,255,255,.16); padding: 8px 15px; border-radius: 100px; z-index: 3; }
.hero-eyebrow { position: relative; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(243,236,225,.78); margin: 0 0 34px; }
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--orange); }
.hero h1 { position: relative; font-family: var(--font-display); font-weight: 600; font-size: clamp(38px,4vw,52px); line-height: 1.06; letter-spacing: -.02em; max-width: 18ch; margin: 0; }
.hero h1 .grad, .hero h1 em { font-style: italic; font-weight: 500; background: none; -webkit-text-fill-color: #E0733E; color: #E0733E; }
.hero-sub { position: relative; font-size: clamp(16px,1.1vw,18.5px); line-height: 1.62; color: rgba(243,236,225,.78); max-width: 60ch; margin: 30px 0 0; }
.hero-actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 44px; }
.hero-meta { position: relative; display: flex; gap: 10px 28px; flex-wrap: wrap; margin-top: 42px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: rgba(243,236,225,.62); }
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta svg { width: 13px; height: 13px; color: var(--orange-2); }

/* ============ STAT BANDS ============ */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.stat-cell { padding: 34px 32px; border-left: 1px solid var(--hairline); transition: background .3s; }
.stat-cell:first-child { border-left: none; }
.stat-cell:hover { background: var(--surface-2); }
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px,2.2vw,36px); letter-spacing: -.02em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-top: 10px; }

/* ============ CARDS ============ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; position: relative; overflow: hidden; --mx: 50%; --my: 0%; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card > * { position: relative; z-index: 1; }
.card::after {
	content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	opacity: 0; transition: opacity .45s var(--ease); z-index: 0;
	background: radial-gradient(340px circle at var(--mx) var(--my),
		color-mix(in srgb, var(--accent, var(--orange)) 20%, transparent), transparent 62%);
}
@media (pointer:fine){ .card:hover::after { opacity: 1; } }
.card-accent::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent,var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: 2; }
.card-accent:hover::before { transform: scaleX(1); }
.card-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--tint-orange); color: var(--accent,var(--orange)); margin-bottom: 20px; transition: transform .35s var(--ease); }
.card:hover .card-icon { transform: scale(1.06) rotate(-3deg); }
.card-icon svg { width: 21px; height: 21px; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; margin: 0 0 10px; }
.card-desc { font-size: 14.5px; line-height: 1.62; color: var(--text-muted); margin: 0; }
.card-link { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--orange); margin-top: 20px; display: inline-flex; gap: 7px; align-items: center; }
.card-link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* chips / tags */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 100px; background: transparent; border: 1px solid var(--border-strong); color: var(--text-muted); transition: all .25s; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip .pip { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.tag-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

/* ============ TRUST MARQUEE ============ */
.trust-strip { overflow: hidden; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 20px 0; background: transparent; }
.trust-marquee { display: flex; gap: 48px; white-space: nowrap; width: max-content; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
	.trust-marquee { animation: marquee 46s linear infinite; }
	.trust-strip:hover .trust-marquee { animation-play-state: paused; }
}
.trust-item { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--text-muted); }
.trust-item .pip { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ============ HOMEPAGE SECTIONS ============ */
.dualpath { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 40px; border: 1px solid var(--border); background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.path:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.path .glow { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none; }
.path:hover .glow { opacity: 1; }
.path.indiv .glow { background: radial-gradient(420px 240px at 80% 0%, var(--tint-orange), transparent 70%); }
.path.comp .glow { background: radial-gradient(420px 240px at 80% 0%, var(--tint-purple), transparent 70%); }
.path .ptag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.path h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(23px,1.9vw,28px); letter-spacing: -.03em; margin: 14px 0 12px; line-height: 1.05; }
.path h3 em { font-style: italic; color: var(--orange); }
.path.comp h3 em { color: var(--purple); }
.path p { color: var(--text-muted); font-size: 15.5px; line-height: 1.6; max-width: 42ch; margin: 0; }
.path ul { list-style: none; margin: 22px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.path li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--text-muted); }
.path li svg { width: 16px; height: 16px; color: var(--green); flex: 0 0 auto; margin-top: 2px; }

.pillars-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.creds-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.cred-num { font-family: var(--font-display); font-weight: 500; font-size: 34px; letter-spacing: -.03em; color: var(--accent,var(--orange)); margin-bottom: 4px; }
.cred-proof { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }

/* featured apps */
.feat-app { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(155deg,#141417 0%,#1D1A22 70%,#262030 100%); color: #F3ECE1; box-shadow: var(--shadow-lg); margin-bottom: 20px; transition: transform .35s var(--ease), box-shadow .35s; }
.feat-app:hover { transform: translateY(-4px); }
.feat-left { padding: 52px 48px 48px; display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 2; }
.feat-new { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(243,236,225,.85); border: 1px solid rgba(255,255,255,.2); padding: 8px 15px; border-radius: 100px; }
.feat-new .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.feat-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px,2.6vw,40px); letter-spacing: -.03em; line-height: 1; margin: 20px 0 8px; }
.feat-title em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.feat-tagline { font-family: var(--font-display); font-size: clamp(17px,1.3vw,20px); color: rgba(243,236,225,.9); margin-bottom: 16px; }
.feat-tagline em { font-style: italic; color: var(--orange-2); }
.feat-desc { color: rgba(243,236,225,.75); font-size: 15px; line-height: 1.62; max-width: 50ch; margin: 0; }
.feat-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 20px; font-family: var(--font-mono); font-size: 11.5px; color: rgba(243,236,225,.6); }
.feat-meta .dot { color: rgba(255,255,255,.25); }
.feat-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); width: 100%; }
.feat-price { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -.02em; }
.feat-price span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: rgba(243,236,225,.55); margin-left: 6px; }
.feat-cover { position: relative; min-height: 380px; overflow: hidden; }
.feat-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.feat-app:hover .feat-cover img { transform: scale(1.05); }
.feat-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #1B1410 0%, transparent 22%); pointer-events: none; }
.apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.app-card { display: flex; flex-direction: column; }
.app-cover { border-radius: var(--r); overflow: hidden; position: relative; margin-bottom: 20px; }
.app-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.app-card:hover .app-cover img { transform: scale(1.05); }
.app-cover-grad { display: flex; align-items: flex-end; padding: 22px; color: #fff; }
.app-mini .app-cover { height: 170px; }
.cover-vol { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .92; margin-bottom: 6px; }
.cover-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px,2vw,28px); letter-spacing: -.02em; }
.cover-title em { font-style: normal; }
.app-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.app-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
.app-meta .dot { color: var(--border-strong); }
.app-price { margin-left: auto; font-family: var(--font-display); font-weight: 500; color: var(--text); }

/* about */
.about-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 48px; align-items: start; }
.about-photo { position: relative; }
.about-photo .frame { max-width: 222px; border-radius: 50%; overflow: hidden; aspect-ratio: 1/1; border: 1px solid var(--border); background: radial-gradient(125% 125% at 50% 4%, color-mix(in srgb, var(--purple) 16%, var(--bg-2)) 0%, var(--bg-2) 72%); box-shadow: var(--shadow-sm); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.94); transition: filter .4s var(--ease), transform .5s var(--ease); }
.about-photo .frame:hover img { filter: saturate(1.05); transform: scale(1.03); }
.about-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 20px; }
.about-content p { color: var(--text-muted); font-size: 16.5px; line-height: 1.68; margin: 0 0 18px; }
.about-content em { color: var(--text); font-style: normal; font-weight: 700; }
.pullquote { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px,2.6vw,28px); line-height: 1.25; letter-spacing: -.02em; color: var(--text); border-left: 3px solid var(--orange); padding-left: 22px; margin: 26px 0; }
.pullquote em { font-style: italic; color: var(--orange); font-weight: 700; }
@media (min-width:861px){ .about-sticky { position: sticky; top: 108px; } }

/* testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.testi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; transition: transform .3s var(--ease), box-shadow .3s; }
.testi:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testi .stars { color: var(--yellow); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.testi p { font-size: 15px; line-height: 1.6; color: var(--text); margin: 0 0 18px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.testi .nm { font-weight: 700; font-size: 14px; } .testi .rl { font-size: 12.5px; color: var(--text-faint); }

/* youtube band */
.yt-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 56px; color: #fff; background: linear-gradient(140deg,#2A1410,#7A2A1C 55%,#C2552B); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.yt-card h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px,3.4vw,40px); letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.yt-card p { color: rgba(255,255,255,.85); margin: 14px 0 24px; font-size: 16px; }
.yt-mock { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r); aspect-ratio: 16/9; display: grid; place-items: center; }
a.yt-mock { cursor: pointer; position: relative; transition: border-color .3s; }
a.yt-mock:hover { border-color: rgba(255,255,255,.4); }
a.yt-mock .yt-badge { position: absolute; bottom: 12px; right: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.45); padding: 6px 11px; border-radius: 100px; }
.yt-play { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .3s; }
.yt-card:hover .yt-play { transform: scale(1.1); }
.yt-play svg { width: 24px; height: 24px; color: #C2261C; margin-left: 3px; }

/* contact CTA */
.contact-cta { text-align: center; padding: 96px 0; }
.contact-cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px,3vw,44px); letter-spacing: -.035em; line-height: 1; margin: 0 0 18px; }
.contact-cta h2 em { font-style: italic; color: var(--orange); }
.contact-cta p { color: var(--text-muted); font-size: 17px; max-width: 54ch; margin: 0 auto 32px; }

/* ============ PAGE HEAD (interior pages, blog) ============ */
.page-head { padding: 60px 0 24px; }
.ph-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px,3.2vw,44px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 18px; }
.ph-title em { font-style: italic; color: var(--orange); }

/* ============ BLOG / POSTS GRID (Query Loop) ============ */
/* wp:post-template renders <ul><li> - grid children must be the li
   (skill bug class: "QUERY LOOP DOM"). */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
.posts > li { display: flex; flex-direction: column; }
.posts .card { height: 100%; display: flex; flex-direction: column; }
.posts .card-body { display: flex; flex-direction: column; flex: 1; }
.posts .card-body .post-meta { margin-top: auto; }
.post-cover { height: 120px; border-radius: var(--r); margin-bottom: 18px; display: flex; align-items: flex-end; padding: 14px; background: var(--wp--preset--gradient--espresso); overflow: hidden; position: relative; }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.25); padding: 5px 10px; border-radius: 100px; position: relative; z-index: 1; }
.posts h3, .posts .wp-block-post-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; line-height: 1.16; margin: 0 0 10px; }
.posts .wp-block-post-title a:hover { color: var(--orange); }
.posts .wp-block-post-excerpt { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.posts .wp-block-post-excerpt__more-link { color: var(--orange); font-weight: 600; }
.post-meta { margin-top: auto; padding-top: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); display: flex; gap: 10px; }
.post-meta .wp-block-post-date, .post-meta .wp-block-post-terms { font-size: 11px; }
.wp-block-query-pagination { margin-top: 44px; font-family: var(--font-mono); font-size: 13px; }
.wp-block-query-pagination a:hover { color: var(--orange); }

/* ============ SINGLE POST / PAGE PROSE ============ */
.prose-head { padding: 72px 0 16px; max-width: 820px; margin: 0 auto; }
.prose-head .wp-block-post-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px,4.6vw,54px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; }
.prose-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); display: flex; gap: 14px; flex-wrap: wrap; }
.prose { max-width: 820px; margin: 0 auto; padding-bottom: 72px; }
.prose > * + * { margin-top: 1.15em; }
.prose p { color: var(--text-muted); font-size: 17px; line-height: 1.72; }
.prose h2 { font-size: clamp(26px,3vw,34px); margin-top: 1.8em; }
.prose h3 { font-size: 22px; margin-top: 1.6em; font-family: var(--font-display); }
.prose ul, .prose ol { color: var(--text-muted); padding-left: 1.3em; }
.prose li { margin: .45em 0; }
.prose a:not(.btn) { color: var(--orange); font-weight: 600; }
/* Buttons rendered inside post content keep their own colours. '.prose a'
   (0,1,1) outranks '.btn-primary' (0,1,0), so without the :not() the primary
   button's white label was repainted orange on an orange pill and vanished.
   Excluding .btn covers every button variant, now and in future. */
.prose a:hover { text-decoration: underline; }
.prose blockquote { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px,2.4vw,26px); line-height: 1.3; letter-spacing: -.015em; color: var(--text); border-left: 3px solid var(--orange); padding-left: 22px; margin: 1.6em 0; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }
.prose pre { background: var(--ink); color: #E8E2D6; border-radius: var(--r); padding: 22px 24px; overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; }
.prose pre code { background: none; border: none; padding: 0; color: inherit; }
.prose img, .prose figure { border-radius: var(--r); }
.prose figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 10px; text-align: center; }
.prose hr { border: none; border-top: 1px solid var(--hairline); margin: 2.4em 0; }

/* ============ FAQ ============ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); margin-bottom: 12px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--orange); transition: transform .3s var(--ease); line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 20px; color: var(--text-muted); font-size: 14.5px; line-height: 1.64; max-width: 60ch; }
.faq .faq-body a { color: var(--orange); font-weight: 600; }
.faq .faq-body a:hover { text-decoration: underline; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--hairline); padding: 80px 0 44px; background: transparent; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr .9fr; gap: 40px; padding-bottom: 52px; border-bottom: 1px solid var(--hairline); }
.footer-brand-desc { font-size: 14.5px; color: var(--text-muted); line-height: 1.64; max-width: 36ch; margin: 18px 0 0; }
.footer-col h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 18px; font-weight: 500; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); padding: 7px 0; transition: color .25s, transform .25s; }
.footer-col a:hover { color: var(--orange); transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 30px; font-size: 13px; color: var(--text-faint); flex-wrap: wrap; }

/* footer newsletter */
.footer-news { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; padding: 36px 40px; margin-bottom: 52px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); }
.footer-news h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px,2.6vw,30px); letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.footer-news h3 em { font-style: italic; color: var(--orange); }
.footer-news p { font-size: 14px; color: var(--text-muted); margin: 8px 0 0; max-width: 44ch; }
.footer-news .news-form { display: flex; gap: 10px; }
.footer-news .news-form input { flex: 1; padding: 12px 18px; border-radius: 100px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 14.5px; min-width: 0; }
.footer-news .news-form input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--tint-orange); }
.footer-news .news-note { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 12px; }
/* Honeypot: used by the contact form and every newsletter signup. Global so a
   form outside the contact pattern cannot render the trap field visibly.
   Absolutely positioned, so it never becomes a flex item in .news-form. */
.t4t-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============ 404 / SEARCH ============ */
.big-404 { font-family: var(--font-display); font-weight: 600; font-size: clamp(72px,10vw,104px); line-height: 1; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin: 0; }
.wp-block-search__input { padding: 13px 18px; border-radius: 100px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 15px; }
.wp-block-search__input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--tint-orange); }
.wp-block-search__button { border-radius: 100px; background: var(--orange); color: #fff; border: none; font-weight: 600; padding: 12px 22px; cursor: pointer; }
.wp-block-search__button:hover { background: var(--orange-soft); }

/* ============ REVEAL ANIMATIONS ============ */
/* Hidden state only exists once JS has booted (html.t4t-js) -
   no-JS renders the complete page instantly (skill: motion rule). */
@media (prefers-reduced-motion: no-preference) {
	html.t4t-js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
	html.t4t-js .reveal.in { opacity: 1; transform: none; }
	html.t4t-js .reveal-left { opacity: 0; transform: translateX(-26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
	html.t4t-js .reveal-left.in { opacity: 1; transform: none; }
	.stagger-1{transition-delay:.07s}.stagger-2{transition-delay:.16s}.stagger-3{transition-delay:.25s}.stagger-4{transition-delay:.34s}.stagger-5{transition-delay:.43s}
}

/* ============ v3 INTERACTIONS - kinetic type, clip reveal, curtain, lightbox ============ */
/* All hidden states below are created BY theme.js (split spans, added
   classes, injected curtain), so a no-JS page never contains them. */
@media (prefers-reduced-motion: no-preference) {
	.kin-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
	.kin-word > span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); }
	.kin-on .kin-word > span { transform: none; }

	.clip-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.05s var(--ease); will-change: clip-path; }
	.clip-reveal.in { clip-path: inset(0 0 0 0); }

	.page-curtain { position: fixed; inset: 0; z-index: 400; background: var(--bg); pointer-events: none; opacity: 1; transition: opacity .45s var(--ease); }
	.page-curtain.gone { opacity: 0; }
}


/* Pinned editorial about photo */
@media (min-width: 861px) { .about-sticky { position: sticky; top: 108px; } }

/* ============ COMMENTS (single posts) ============ */
.t4t-comments { max-width: 720px; margin: 56px auto 0; padding-top: 40px; border-top: 1px solid var(--hairline); }
.t4t-comments .wp-block-comments-title { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; margin-bottom: 26px; }
.t4t-comment { padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.t4t-comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.t4t-comment-meta img { border-radius: 50%; }
.t4t-comment-meta .wp-block-comment-author-name { font-weight: 700; font-size: 14.5px; }
.t4t-comment-meta .wp-block-comment-date { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--text-faint); }
.wp-block-comment-content { font-size: 15.5px; line-height: 1.65; color: var(--text-muted); }
.t4t-comment-actions { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; }
.t4t-comment-actions a { color: var(--orange); font-weight: 600; }
.wp-block-comments-pagination { margin: 22px 0; font-size: 14px; }
.wp-block-post-comments-form { margin-top: 34px; }
.wp-block-post-comments-form .comment-reply-title { font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.wp-block-post-comments-form input[type="text"], .wp-block-post-comments-form input[type="email"], .wp-block-post-comments-form input[type="url"], .wp-block-post-comments-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 15px; }
.wp-block-post-comments-form input:focus, .wp-block-post-comments-form textarea:focus { outline: none; border-color: var(--orange); }
.wp-block-post-comments-form .form-submit .submit { display: inline-flex; align-items: center; padding: 12px 26px; border-radius: 100px; border: 0; background: var(--orange); color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; font-family: var(--font-body); }
.wp-block-post-comments-form .comment-notes, .wp-block-post-comments-form label { font-size: 13px; color: var(--text-faint); }

/* ============ INTERACTION POLISH (design-feel audit) ============ */
/* Newsletter + waitlist inputs: the source's orange focus glow (site.css:350) was never ported. */
.news-form input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--tint-orange); }

/* Hamburger: mirrors the theme-toggle's hover so the two topbar controls feel like siblings. */
.nav-toggle { transition: color .25s, border-color .25s; color: var(--text-muted); }
.nav-toggle:hover { color: var(--text); border-color: var(--text); }


/* Mega footer link: quiet underline slide on hover. */
.mega .mega-foot { transition: color .2s; }
.mega .mega-foot:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* Query pagination: design-system pills (the static site had no pagination to port). */
.wp-block-query-pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 40px 0 10px; font-size: 14px; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers, .wp-block-query-pagination-next, .wp-block-query-pagination-previous { padding: 9px 16px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-muted); font-weight: 600; transition: border-color .2s, color .2s, background .2s; }
.wp-block-query-pagination a:hover { border-color: var(--orange); color: var(--orange); background: var(--tint-orange); }
.wp-block-query-pagination .current { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Comments: action links + form fields join the same focus/hover language. */
.t4t-comment-actions a { transition: color .2s; }
.t4t-comment-actions a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.wp-block-post-comments-form input[type="text"]:focus, .wp-block-post-comments-form input[type="email"]:focus, .wp-block-post-comments-form input[type="url"]:focus, .wp-block-post-comments-form textarea:focus { box-shadow: 0 0 0 3px var(--tint-orange); }
.wp-block-post-comments-form .form-submit .submit { transition: transform .2s var(--ease), box-shadow .2s; }
.wp-block-post-comments-form .form-submit .submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,107,44,.28); }

/* ============ BLOG UPGRADES (top-blog feature audit) ============ */
/* Featured first post: the lead card goes full-width and editorial. */
@media (min-width: 761px) {
	.posts > li:first-child { grid-column: 1 / -1; }
	.posts > li:first-child .card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
	.posts > li:first-child .post-cover { height: 100%; min-height: 340px; margin-bottom: 0; }
	.posts > li:first-child .card-body { justify-content: center; flex: none; }
	.posts > li:first-child .wp-block-post-title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
	.posts > li:first-child .wp-block-post-excerpt { font-size: 15.5px; line-height: 1.6; }
	.posts > li:first-child .post-meta { margin-top: 24px; }
}

/* Category chips (topic navigation) */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 30px; }
.cat-chips .chip { padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border-strong); font-size: 13.5px; font-weight: 600; color: var(--text-muted); transition: border-color .2s, color .2s, background .2s; }
.cat-chips .chip:hover { border-color: var(--orange); color: var(--orange); background: var(--tint-orange); }
.cat-chips .chip.active { background: var(--ink); border-color: var(--ink); color: #F5F3EF; }
.cat-chips .chip-count { font-family: var(--font-mono); font-size: 10.5px; opacity: .65; margin-left: 3px; }

/* Byline */
.post-eyebrow a { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.byline-avatar { border-radius: 50%; }
.byline-name { display: block; font-weight: 700; font-size: 14.5px; }
.byline-sub { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em; color: var(--text-faint); margin-top: 2px; }

/* Sticky table of contents (built by theme.js from h2/h3; sticky rail on wide screens) */
.t4t-toc { display: none; }
html.t4t-js .t4t-toc { display: block; }
.t4t-toc { position: fixed; top: 120px; right: max(18px, calc((100vw - 1200px) / 2 - 240px)); width: 210px; font-size: 13px; z-index: 40; }
.t4t-toc .toc-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.t4t-toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--hairline); color: var(--text-faint); line-height: 1.4; transition: color .2s, border-color .2s; }
.t4t-toc a.h3 { padding-left: 24px; font-size: 12.5px; }
.t4t-toc a:hover { color: var(--text); }
.t4t-toc a.current { color: var(--orange); border-left-color: var(--orange); font-weight: 600; }
@media (max-width: 1439px) { .t4t-toc { display: none !important; } }

/* Share row */
.post-share { display: flex; align-items: center; gap: 10px; max-width: 720px; margin: 40px auto 0; padding-top: 26px; border-top: 1px solid var(--hairline); }
.share-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-right: 4px; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; transition: color .2s, border-color .2s, transform .2s var(--ease); padding: 0; }
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { color: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.share-copied { font-size: 12.5px; color: var(--green); }

/* Author box */
.author-box { display: flex; gap: 18px; align-items: flex-start; max-width: 720px; margin: 30px auto 0; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.author-box-avatar { border-radius: 50%; flex: 0 0 auto; }
.author-box-eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.author-box-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 3px 0 6px; }
.author-box-bio { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* Related posts */
.related { max-width: 1040px; margin: 48px auto 0; }
.related-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.related-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; margin: 0; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
.carousel-btn:hover { border-color: var(--orange); color: var(--orange); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
/* The track carries both .posts and .related-carousel. '.posts' sets
   grid-template-columns (base plus tablet/mobile media queries that appear
   later in this file), and the carousel never reset it, so the track ended up
   with explicit 3-column tracks AND grid-auto-flow:column creating implicit
   ones. That hybrid overflowed its container and overlapped the sidebar.
   Compounding the selector to .posts.related-carousel (0,2,0) outranks every
   plain .posts rule regardless of source order, and 'none' clears the
   explicit tracks so only the auto-flow columns apply. */
.posts.related-carousel { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; list-style: none; padding: 4px; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
/* Fewer cards per view as the viewport narrows, matching the two-tier standard. */
@media (max-width: 920px) { .posts.related-carousel { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .posts.related-carousel { grid-auto-columns: 86%; } }
.related-carousel::-webkit-scrollbar { display: none; }
.related-slide { scroll-snap-align: start; }
.related-carousel .post-card { display: block; text-decoration: none; color: inherit; }
.related-carousel .post-cover { aspect-ratio: 16 / 10; height: auto; border-radius: var(--r); overflow: hidden; margin-bottom: 12px; display: flex; align-items: flex-end; padding: 12px; position: relative; background: var(--wp--preset--gradient--espresso); }
.related-carousel .post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.related-carousel .post-cover-fallback { position: absolute; inset: 0; background: var(--wp--preset--gradient--espresso); }
.related-carousel .post-card:hover .post-cover img { transform: scale(1.05); }
.related-carousel .post-cat { position: relative; z-index: 1; }
.related-carousel .post-card-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.3; transition: color .2s; display: block; }
.related-carousel .post-card:hover .post-card-title { color: var(--orange); }
.related-carousel .post-card-date { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 6px; }
@media (max-width: 900px) { .related-carousel { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .related-carousel { grid-auto-columns: 85%; } .posts > li:first-child .card { display: block; } .posts > li:first-child .post-cover { min-height: 200px; margin-bottom: 18px; } }

/* Prev / next navigation */
.post-nav { max-width: 720px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 20px; font-size: 14.5px; }
.post-nav a { color: var(--text-muted); font-weight: 600; transition: color .2s; max-width: 46%; }
.post-nav a:hover { color: var(--orange); }

/* Back to top */
.t4t-top { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted); display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease), color .2s, border-color .2s; box-shadow: var(--shadow-sm); }
.t4t-top.show { opacity: 1; pointer-events: auto; transform: none; }
.t4t-top:hover { color: var(--orange); border-color: var(--orange); }
.t4t-top svg { width: 18px; height: 18px; }

/* Mobile / tablet table of contents (collapsible, above the article) */
.t4t-toc-mobile { display: none; max-width: 720px; margin: 22px auto 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
@media (max-width: 1439px) { html.t4t-js .t4t-toc-mobile { display: block; } }
.t4t-toc-mobile summary { cursor: pointer; padding: 14px 18px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); list-style: none; position: relative; transition: color .2s; }
.t4t-toc-mobile summary::-webkit-details-marker { display: none; }
.t4t-toc-mobile summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--orange); transition: transform .25s var(--ease); }
.t4t-toc-mobile[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.t4t-toc-mobile summary:hover { color: var(--text); }
.t4t-toc-mobile a { display: block; padding: 9px 18px; font-size: 14px; color: var(--text-muted); border-top: 1px solid var(--hairline); transition: color .2s, background .2s; }
.t4t-toc-mobile a.h3 { padding-left: 32px; font-size: 13px; }
.t4t-toc-mobile a:hover { color: var(--orange); background: var(--tint-orange); }

/* Author archive hero */
.author-hero { display: flex; gap: 24px; align-items: center; padding: 40px 0 26px; }
.author-hero-avatar { border-radius: 50%; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.author-hero-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.author-hero-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin: 4px 0 8px; }
.author-hero-bio { font-size: 16px; line-height: 1.6; color: var(--text-muted); max-width: 560px; margin: 0 0 8px; }
.author-hero-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--text-faint); }
.byline-name { transition: color .2s; }
a.byline-name:hover, .author-box-name a:hover { color: var(--orange); }
@media (max-width: 560px) { .author-hero { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* Custom logo (Brand screen) sits like the default mark */
.topbar .custom-logo-link { display: inline-flex; align-items: center; }
.topbar .custom-logo { max-height: 40px; width: auto; }

/* ============ RESPONSIVE ============ */
@media (max-width:920px){
	html.t4t-js .topnav { display: none; }
	html.t4t-js .nav-toggle { display: flex; }
	.topnav { flex-wrap: wrap; gap: 14px 18px; }
	.footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
	.stat-band { grid-template-columns: 1fr 1fr; }
	.stat-band .stat-cell:nth-child(3){ border-left: none; }
	.stat-band .stat-cell:nth-child(n+3){ border-top: 1px solid var(--hairline); }
	.pillars-grid { grid-template-columns: 1fr 1fr; }
	.creds-grid { grid-template-columns: 1fr; }
	.apps-grid { grid-template-columns: 1fr; }
	.feat-app { grid-template-columns: 1fr; }
	.feat-cover { min-height: 240px; order: -1; }
	.feat-cover::after { background: linear-gradient(0deg,#1B1410 0%,transparent 30%); }
	.feat-left { padding: 32px 26px; }
	.about-grid { grid-template-columns: 1fr; gap: 36px; }
	.testi-grid { grid-template-columns: 1fr; }
	.dualpath { grid-template-columns: 1fr; }
	.yt-card { grid-template-columns: 1fr; padding: 36px; }
	.posts { grid-template-columns: 1fr 1fr; }
	.footer-news { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
}
@media (max-width:760px){
	.hero-block { padding: 56px 30px 52px; border-radius: var(--r-lg); }
	.hero-badge { display: none; }
	.section { padding: 60px 0; }
	.wrap { padding: 0 24px; }
}
@media (max-width:560px){
	.stat-band { grid-template-columns: 1fr; }
	.stat-band .stat-cell { border-left: none; border-top: 1px solid var(--hairline); }
	.stat-band .stat-cell:first-child { border-top: none; }
	.footer-top { grid-template-columns: 1fr; }
	.pillars-grid { grid-template-columns: 1fr; }
	.posts { grid-template-columns: 1fr; }
	.footer-news .news-form { flex-direction: column; }
	.footer-news .news-form input, .footer-news .news-form .btn { width: 100%; }
}


/* ============ WIDESCREEN (>=1400px): grids use the room ============ */
@media (min-width: 1400px) {
	.creds-grid { grid-template-columns: repeat(4, 1fr); }
	.dualpath { gap: 32px; }
	.testi-grid, .posts { gap: 24px; }
}

/* ============ WIDESCREEN (>=1800px): let it breathe ============ */
@media (min-width: 1800px) {
	:root { --wrap: min(1320px, 90vw); }
	.section-head { max-width: 860px; }
	.hero h1 { font-size: clamp(44px, 3.4vw, 56px); }
	.stat-band .wrap { gap: 64px; }
}

/* ============ CONTEXTUAL POST OFFER (category → offering) ============ */
.post-offer { margin: 44px 0 8px; }
.post-offer-link {
	display: flex; align-items: center; gap: 20px;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--r-lg); padding: 22px 26px;
	box-shadow: var(--shadow-sm);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s;
}
.post-offer-link:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: var(--shadow-orange); }
.post-offer-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.post-offer-thumb {
	flex: 0 0 auto; width: 64px; height: 64px; border-radius: var(--r);
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-family: var(--font-display); font-weight: 700;
	font-size: 20px; letter-spacing: .02em; box-shadow: var(--shadow-purple);
}
.post-offer-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.post-offer-eyebrow { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }
.post-offer-name { font-family: var(--font-display); font-weight: 650; font-size: 18.5px; letter-spacing: -.01em; color: var(--text); }
.post-offer-desc { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.post-offer-price { margin-left: auto; flex: 0 0 auto; font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--orange); background: var(--tint-orange); border-radius: 100px; padding: 8px 16px; }
@media (max-width: 640px) {
	.post-offer-link { flex-wrap: wrap; }
	.post-offer-price { margin-left: 84px; }
}


/* Apps gallery: branded gradient tiles (no phantom screenshot files) */

/* About: founder caption under the team-lead photo */
.about-photo-caption { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); text-align: center; margin: 14px 0 12px; }

/* ============ BRAND PHOTOGRAPHY ============ */
.t4t-photo { margin: 0; position: relative; overflow: hidden; line-height: 0; }
.t4t-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t4t-photo-scrim { position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(20,20,23,0) 30%, rgba(20,20,23,.72) 100%); }
.t4t-photo[data-scrim="1"] { border-radius: inherit; }
.t4t-photo-fallback { background: var(--wp--preset--gradient--espresso, linear-gradient(135deg,#7A3210,#C2541C)); }
/* Photo-backed section header band */
.photo-band { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; }
.photo-band .t4t-photo { position: absolute; inset: 0; z-index: 0; }
.photo-band .photo-band-inner { position: relative; z-index: 1; padding: 40px 44px; color: #F5F3EF; }
.photo-band .photo-band-inner h2, .photo-band .photo-band-inner h3 { color: #fff; margin: 0 0 6px; }
.photo-band .photo-band-inner p { color: rgba(245,243,239,.86); margin: 0; max-width: 54ch; }
/* Product/app card photo top */
.app-photo { aspect-ratio: 16/10; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }

/* ============ BLOG: TOC, READING PROGRESS, DROP-CAP ============ */
/* Reading progress bar (top of viewport on posts) */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: transparent; pointer-events: none; }
.reading-progress-bar { display: block; height: 100%; width: 0; background: var(--grad); transition: width .1s linear; }
/* Drop-cap on the first paragraph of prose */
.prose > p:first-of-type::first-letter {
	float: left; font-family: var(--font-display); font-weight: 600; font-size: 3.4em;
	line-height: .82; padding: 4px 12px 0 0; color: var(--orange);
}
@media (max-width: 640px) { .prose > p:first-of-type::first-letter { font-size: 2.8em; } }

/* ============ SEARCH PALETTE ============ */
.t4t-search-trigger svg { width: 18px; height: 18px; }
.t4t-search { position: fixed; inset: 0; z-index: 300; background: rgba(20,20,23,.55); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; }
.t4t-search[hidden] { display: none; }
.t4t-search-box { width: min(600px, 100%); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; }
.t4t-search-field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.t4t-search-input { flex: 1; border: none; background: none; font-size: 17px; color: var(--text); font-family: var(--font-body); outline: none; }
.t4t-search-esc { font-family: var(--font-mono); font-size: 10.5px; padding: 3px 7px; border: 1px solid var(--border-strong); border-radius: 5px; color: var(--text-faint); }
.t4t-search-results { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.t4t-search-results li a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; text-decoration: none; color: var(--text); }
.t4t-search-results li.is-active a, .t4t-search-results li a:hover { background: var(--tint-orange); }
.t4t-search-kind { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent); border-radius: 100px; padding: 3px 9px; flex: 0 0 auto; }
.t4t-search-title { font-size: 14.5px; font-weight: 500; }
.t4t-search-empty { padding: 24px; text-align: center; color: var(--text-faint); font-size: 14px; }

/* ============ 404 EXTRAS ============ */
.notfound-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 8px 0 28px; }
.notfound-links { display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: center; }
.notfound-links a { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--text-muted); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.notfound-links a:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* ============ VIEW TRANSITIONS (progressive enhancement) ============ */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	::view-transition-old(root) { animation: t4t-fade-out .18s ease both; }
	::view-transition-new(root) { animation: t4t-fade-in .26s ease both; }
	@keyframes t4t-fade-out { to { opacity: 0; } }
	@keyframes t4t-fade-in { from { opacity: 0; } }
}

/* ============ LEARNING PATHWAYS ============ */
.pathways-intro { max-width: 60ch; margin-bottom: 32px; }
.all-articles-h { margin: 72px 0 8px; }
.pathways { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.pathway { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); padding: 26px 24px; display: flex; flex-direction: column; border-top: 3px solid var(--track-accent, var(--orange)); }
.pathway-meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.pathway-progress-label { color: var(--track-accent, var(--orange)); }
.pathway-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; }
.pathway-blurb { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin: 0 0 18px; }
.pathway-bar { height: 5px; border-radius: 100px; background: var(--border); overflow: hidden; margin-bottom: 20px; }
.pathway-bar-fill { display: block; height: 100%; width: 0; background: var(--track-accent, var(--orange)); transition: width .4s var(--ease); }
.pathway-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pathway-step { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.pathway-check { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border-strong); background: none; color: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; padding: 0; }
.pathway-check:hover { border-color: var(--track-accent, var(--orange)); }
.pathway-step.is-done .pathway-check { background: var(--track-accent, var(--orange)); border-color: var(--track-accent, var(--orange)); color: #fff; }
.pathway-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.pathway-step-num { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); flex: 0 0 auto; }
.pathway-step-title { font-size: 14.5px; line-height: 1.35; }
.pathway-step.is-done .pathway-step-title { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.pathway-link:hover .pathway-step-title { color: var(--orange); }
