/* ═══════════════════════════════════════════════════════════
   TML Site Enhancements — v1.4.1
   Covers: logo · responsive · newsletter · TOC · tags · related posts
           duplicate header fix · HR hide · about · coming soon
           login modal · hero text · footer tags · social login btns
   ═══════════════════════════════════════════════════════════ */

/* ── Logo: hide brand text, fix logo size ────────────────── */
.tml-mn-brand-text { display: none !important; }
.tml-mn-logo-img {
  height: 36px !important;
  max-height: 44px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* ── Nav hamburger: visible in light + dark mode ─────────── */
.tml-mn-hamburger {
  background: transparent !important;
  border: 1.5px solid rgba(0,151,167,0.4) !important;
  color: #1a2235 !important;
}
[data-theme="dark"] .tml-mn-hamburger {
  border-color: rgba(255,255,255,0.28) !important;
  color: #e0e8f0 !important;
}

/* ── Theme toggle: visible in light mode ────────────────── */
.tml-mn-theme-btn {
  border: 1.5px solid rgba(0,151,167,0.35) !important;
  background: rgba(255,255,255,0.5) !important;
  color: #1a2235 !important;
}
[data-theme="dark"] .tml-mn-theme-btn {
  border-color: rgba(255,255,255,0.25) !important;
  background: rgba(255,255,255,0.08) !important;
  color: #e0e8f0 !important;
}

/* ── Show articles/recent writing section (override tml-customizer hide) ── */
#articles {
  display: block !important;
}

/* ── Fix dotlottie icon jumping in lab section ──────────── */
.tml-lab-icon {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  min-height: 68px !important;
  overflow: hidden !important;
}
.tml-lab-icon dotlottie-player,
.tml-lab-icon video {
  width: 68px !important;
  height: 68px !important;
  display: block !important;
}

/* ── Article page: fix .single-content grid crushing 3-col layout ── */
/* Theme inline CSS sets .single-post .single-content { display:grid!important }
   so we must match that specificity or use grid-column to span full width */
.single-post .single-content:has(.tml-3col-wrap) {
  display: block !important;
}
.single-content .tml-3col-wrap {
  width: 100% !important;
  grid-column: 1 / -1 !important;   /* fallback: span all columns if parent stays grid */
}

/* ── Back-to-top: fully invisible when hidden ────────────── */
.tml-back-top[hidden] {
  display: flex !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.tml-back-top:not([hidden]) {
  visibility: visible !important;
}

:root {
    --tml-bg: #07111f;
    --tml-surface: rgba(58,200,212,.06);
    --tml-text: #e8e8e8;
    --tml-muted: rgba(220,220,220,.68);
    --tml-accent: #3AC8D4;
    --tml-border: rgba(58,200,212,.22);
}

/* ── ABOUT PAGE V3 ───────────────────────────────────────────── */
.tml-about-v3 {
    position: relative;
    overflow: clip;
    color: #0b1530;
    background:
        radial-gradient(1200px 700px at 12% 0%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 36%, rgba(255,255,255,0) 72%),
        radial-gradient(900px 600px at 88% 7%, rgba(212,241,249,.90) 0%, rgba(212,241,249,.50) 28%, rgba(212,241,249,0) 68%),
        linear-gradient(180deg, #fbfdff 0%, #eff8fd 100%);
}

.tml-about-v3::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(7, 28, 58, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 28, 58, 0.05) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,0));
    opacity: .35;
}

.tml-about-v3 .tml-about-container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.tml-about-v3 .tml-about-art {
    display: block;
    max-width: 100%;
    height: auto;
}

.tml-about-v3 .tml-about-section {
    padding: 34px 0 72px;
}

.tml-about-v3 .tml-about-shell {
    padding-top: 26px;
}

.tml-about-v3 .tml-about-card {
    background: rgba(255,255,255,.80);
    border: 1px solid rgba(0, 151, 167, .14);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(14, 67, 100, .09);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.tml-about-v3 .tml-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #0b8ba2;
}

.tml-about-v3 .tml-about-title {
    margin: 14px 0 14px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(3.25rem, 6vw, 5.6rem);
    font-weight: 300;
    letter-spacing: -.03em;
    line-height: .93;
    color: #11172d;
}

.tml-about-v3 .tml-about-subtitle {
    margin: 0 0 18px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-style: italic;
    color: #0d93a8;
    line-height: 1.45;
}

.tml-about-v3 .tml-about-desc {
    max-width: 560px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.78;
    color: rgba(27, 40, 74, .74);
}

.tml-about-v3 .tml-about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 28px;
}

.tml-about-v3 .tml-about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}

.tml-about-v3 .tml-about-btn:hover {
    transform: translateY(-2px);
}

.tml-about-v3 .tml-about-btn-primary {
    background: linear-gradient(135deg, #0e8ea6 0%, #0da5bb 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(12, 143, 164, .24);
}

.tml-about-v3 .tml-about-btn-primary:hover {
    box-shadow: 0 16px 34px rgba(12, 143, 164, .30);
}

.tml-about-v3 .tml-about-btn-secondary {
    background: rgba(255,255,255,.84);
    color: #0b8ea2;
    border-color: rgba(11, 142, 162, .22);
}

.tml-about-v3 .tml-about-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tml-about-v3 .tml-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 14px 16px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(10, 144, 164, .14);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(14, 67, 100, .06);
}

.tml-about-v3 .tml-stat-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #11172d;
}

.tml-about-v3 .tml-stat-card span {
    display: block;
    font-size: .82rem;
    line-height: 1.35;
    color: rgba(27, 40, 74, .74);
}

.tml-about-v3 .tml-stat-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: rgba(10, 151, 167, .10);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.tml-about-v3 .tml-about-hero-grid,
.tml-about-v3 .tml-mission-grid,
.tml-about-v3 .tml-research-card,
.tml-about-v3 .tml-impact-card,
.tml-about-v3 .tml-team-grid,
.tml-about-v3 .tml-philosophy-band,
.tml-about-v3 .tml-about-cta-strip {
    position: relative;
}

.tml-about-v3 .tml-about-hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 34px;
    align-items: center;
}

.tml-about-v3 .tml-about-hero-visual {
    position: relative;
    min-height: 560px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 52% 58%, rgba(0, 188, 212, .20) 0, rgba(0, 188, 212, .08) 18%, rgba(0, 188, 212, 0) 54%),
        linear-gradient(180deg, rgba(244, 251, 254, .96), rgba(233, 247, 251, .84));
    border: 1px solid rgba(10, 144, 164, .14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 20px 56px rgba(10, 93, 132, .08);
}

.tml-about-v3 .tml-about-art-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px 16px;
}

.tml-about-v3 .tml-hero-gridlines {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent 49px, rgba(13, 138, 162, .07) 50px),
        linear-gradient(90deg, transparent 49px, rgba(13, 138, 162, .07) 50px);
    background-size: 50px 50px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.95), rgba(0,0,0,.18));
    opacity: .55;
}

.tml-about-v3 .tml-hero-visual::before,
.tml-about-v3 .tml-hero-visual::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.tml-about-v3 .tml-hero-visual::before {
    inset: auto auto 18px 50%;
    width: 340px;
    height: 340px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 188, 212, .24) 0, rgba(0, 151, 167, .15) 34%, rgba(0, 151, 167, 0) 70%);
    filter: blur(6px);
}

.tml-about-v3 .tml-hero-visual::after {
    inset: 0;
    background:
        radial-gradient(circle at 50% 58%, rgba(255,255,255,.86) 0, rgba(255,255,255,0) 38%),
        radial-gradient(circle at 50% 58%, rgba(0, 188, 212, .12) 0, rgba(0, 188, 212, 0) 28%);
    opacity: .85;
}

.tml-about-v3 .tml-hero-chip,
.tml-about-v3 .tml-floating-card,
.tml-about-v3 .tml-hero-callout {
    position: absolute;
    z-index: 2;
}

.tml-about-v3 .tml-hero-chip-core {
    top: 52%;
    left: 54%;
    width: 184px;
    height: 184px;
    transform: translate(-50%, -50%);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.62)),
        linear-gradient(135deg, rgba(11, 141, 160, .36), rgba(0, 188, 212, .12));
    border: 1px solid rgba(10, 144, 164, .22);
    box-shadow:
        0 24px 52px rgba(0, 105, 132, .12),
        0 0 0 1px rgba(255,255,255,.35) inset;
}

.tml-about-v3 .tml-chip-core-top,
.tml-about-v3 .tml-chip-core-mid,
.tml-about-v3 .tml-chip-core-bottom {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 20px;
    transform: translate(-50%, -50%);
}

.tml-about-v3 .tml-chip-core-top {
    width: 154px;
    height: 154px;
    background: linear-gradient(180deg, rgba(0, 188, 212, .80), rgba(15, 137, 166, .78));
    box-shadow: 0 0 0 10px rgba(0, 188, 212, .10), 0 0 38px rgba(0, 188, 212, .26);
}

.tml-about-v3 .tml-chip-core-mid {
    width: 114px;
    height: 114px;
    background: linear-gradient(180deg, rgba(255,255,255,.36), rgba(255,255,255,.12));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

.tml-about-v3 .tml-chip-core-bottom {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 0 0 8px rgba(255,255,255,.28);
}

.tml-about-v3 .tml-floating-card {
    min-width: 104px;
    padding: 12px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(10, 144, 164, .14);
    box-shadow: 0 18px 36px rgba(10, 93, 132, .12);
    font-size: 1rem;
    font-weight: 600;
    color: #11203d;
    backdrop-filter: blur(16px);
    animation: tml-about-float 5s ease-in-out infinite;
}

.tml-about-v3 .tml-floating-data { top: 19%; left: 9%; animation-duration: 5.4s; }
.tml-about-v3 .tml-floating-models { top: 11%; left: 31%; animation-duration: 5.8s; }
.tml-about-v3 .tml-floating-systems { top: 10%; right: 23%; animation-duration: 6.2s; }
.tml-about-v3 .tml-floating-impact { top: 29%; right: 8%; min-width: 124px; animation-duration: 5.1s; }

.tml-about-v3 .tml-floating-card::after {
    content: '';
    display: block;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 151, 167, .16), rgba(0, 188, 212, .58), rgba(0, 151, 167, .18));
}

.tml-about-v3 .tml-hero-callouts {
    position: absolute;
    right: 18px;
    top: 19%;
    display: grid;
    gap: 18px;
    width: 214px;
    z-index: 3;
}

.tml-about-v3 .tml-hero-callout {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px 12px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(10, 144, 164, .14);
    box-shadow: 0 14px 28px rgba(10, 93, 132, .08);
    font-size: .95rem;
    line-height: 1.25;
}

.tml-about-v3 .tml-callout-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(10, 144, 164, .10);
    color: #0b8ea2;
    font-size: .95rem;
    font-weight: 700;
}

.tml-about-v3 .tml-mission-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.tml-about-v3 .tml-mission-card {
    padding: 34px 34px 32px;
    background: linear-gradient(135deg, rgba(0, 151, 167, .08) 0%, rgba(0, 188, 212, .04) 100%);
}

.tml-about-v3 .tml-mission-card-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.tml-about-v3 .tml-mission-visual {
    display: grid;
    place-items: center;
}

.tml-about-v3 .tml-about-art-mission {
    width: min(100%, 260px);
    opacity: .96;
}

.tml-about-v3 .tml-mission-card h2 {
    margin: 12px 0 16px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    font-weight: 400;
    line-height: 1.08;
    color: #10172d;
}

.tml-about-v3 .tml-mission-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(27, 40, 74, .74);
}

.tml-about-v3 .tml-principles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tml-about-v3 .tml-principle-card {
    padding: 22px 20px 20px;
}

.tml-about-v3 .tml-principle-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(10, 151, 167, .10);
    color: #0b8ea2;
    font-size: 1.2rem;
}

.tml-about-v3 .tml-principle-card h3 {
    margin: 14px 0 8px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.15;
    color: #11172d;
}

.tml-about-v3 .tml-principle-card p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.65;
    color: rgba(27, 40, 74, .72);
}

.tml-about-v3 .tml-research-card {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    padding: 28px;
    align-items: center;
}

.tml-about-v3 .tml-research-copy h2 {
    margin: 12px 0 18px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 3vw, 2.85rem);
    font-weight: 400;
    line-height: 1.1;
    color: #10172d;
}

.tml-about-v3 .tml-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tml-about-v3 .tml-pill {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(10, 151, 167, .16);
    background: rgba(255,255,255,.78);
    color: #17304e;
    font-size: .92rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(14, 67, 100, .05);
}

.tml-about-v3 .tml-research-visual {
    position: relative;
    min-height: 220px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(247, 252, 255, .98), rgba(239, 247, 252, .84));
    border: 1px solid rgba(10, 151, 167, .10);
    display: grid;
    place-items: center;
}

.tml-about-v3 .tml-about-art-research {
    width: min(100%, 505px);
    object-fit: contain;
    opacity: .94;
}

.tml-about-v3 .tml-framework-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.4fr 1fr;
    gap: 0;
    overflow: hidden;
}

.tml-about-v3 .tml-framework-col {
    padding: 28px 24px 24px;
}

.tml-about-v3 .tml-framework-col + .tml-framework-col {
    border-left: 1px solid rgba(10, 151, 167, .14);
}

.tml-about-v3 .tml-framework-col .tml-eyebrow {
    margin-bottom: 16px;
}

.tml-about-v3 .tml-quote-card {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 350px;
    padding: 24px 22px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 151, 167, .06) 0%, rgba(0, 188, 212, .02) 100%);
    border: 1px solid rgba(10, 151, 167, .12);
    overflow: hidden;
}

.tml-about-v3 .tml-about-art-quote {
    position: absolute;
    left: -18px;
    top: 12px;
    bottom: 0;
    width: 46%;
    max-width: 158px;
    height: auto;
    object-fit: cover;
    opacity: .72;
    pointer-events: none;
}

.tml-about-v3 .tml-quote-mark {
    display: block;
    position: absolute;
    left: 34px;
    top: 42px;
    z-index: 1;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 4.8rem;
    line-height: .6;
    color: rgba(0, 151, 167, .6);
}

.tml-about-v3 .tml-quote-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.18rem, 2.3vw, 1.55rem);
    font-style: italic;
    line-height: 1.52;
    color: #10172d;
    max-width: 230px;
    margin-left: auto;
    padding-top: 58px;
    text-shadow: 0 1px 0 rgba(255,255,255,.8);
}

.tml-about-v3 .tml-stack-list,
.tml-about-v3 .tml-audience-list {
    display: grid;
    gap: 14px;
}

.tml-about-v3 .tml-build-stack-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 14px;
    align-items: center;
}

.tml-about-v3 .tml-about-art-build {
    width: 92px;
    margin-left: auto;
    opacity: .86;
}

.tml-about-v3 .tml-stack-item,
.tml-about-v3 .tml-audience-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tml-about-v3 .tml-stack-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(10, 151, 167, .10);
    color: #0b8ea2;
    font-size: 1rem;
}

.tml-about-v3 .tml-stack-item strong,
.tml-about-v3 .tml-audience-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: .98rem;
    color: #11172d;
}

.tml-about-v3 .tml-stack-item span,
.tml-about-v3 .tml-audience-item span {
    display: block;
    font-size: .84rem;
    line-height: 1.45;
    color: rgba(27, 40, 74, .72);
}

.tml-about-v3 .tml-framework-think h3 {
    margin: 0 0 14px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.18rem;
    font-weight: 400;
    color: #10172d;
}

.tml-about-v3 .tml-steps-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding-top: 14px;
}

.tml-about-v3 .tml-steps-row::before {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    top: 36px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 151, 167, .20), rgba(0, 188, 212, .55), rgba(0, 151, 167, .20));
    opacity: .8;
}

.tml-about-v3 .tml-step-node {
    position: relative;
    padding-top: 0;
    text-align: center;
}

.tml-about-v3 .tml-step-node span {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f8ca3, #0cb4ca);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(11, 142, 162, .22);
}

.tml-about-v3 .tml-step-node b {
    display: block;
    margin-bottom: 5px;
    font-size: .95rem;
    color: #11172d;
}

.tml-about-v3 .tml-step-node small {
    display: block;
    font-size: .77rem;
    line-height: 1.45;
    color: rgba(27, 40, 74, .68);
}

.tml-about-v3 .tml-iteration-note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(10, 151, 167, .08);
    border: 1px solid rgba(10, 151, 167, .12);
}

.tml-about-v3 .tml-note-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.88);
    color: #0b8ea2;
    font-size: 1rem;
}

.tml-about-v3 .tml-iteration-note strong {
    display: block;
    margin-bottom: 3px;
    font-size: .98rem;
    color: #10172d;
}

.tml-about-v3 .tml-iteration-note p {
    margin: 0;
    font-size: .86rem;
    line-height: 1.45;
    color: rgba(27, 40, 74, .72);
}

.tml-about-v3 .tml-impact-card {
    display: grid;
    grid-template-columns: 1.05fr 1.25fr;
    gap: 28px;
    align-items: center;
    padding: 28px;
}

.tml-about-v3 .tml-impact-copy h2 {
    margin: 12px 0 14px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 3vw, 2.85rem);
    font-weight: 400;
    line-height: 1.05;
    color: #10172d;
}

.tml-about-v3 .tml-impact-copy p {
    max-width: 460px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(27, 40, 74, .74);
}

.tml-about-v3 .tml-impact-visual {
    position: relative;
    min-height: 200px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 50%, rgba(0, 188, 212, .18), rgba(0, 188, 212, 0) 28%),
        radial-gradient(circle at 88% 50%, rgba(0, 188, 212, .18), rgba(0, 188, 212, 0) 28%),
        linear-gradient(180deg, rgba(248, 252, 255, .98), rgba(236, 246, 251, .78));
    border: 1px solid rgba(10, 151, 167, .12);
    overflow: hidden;
}

.tml-about-v3 .tml-about-art-impact {
    position: absolute;
    inset: 50% auto auto 50%;
    width: calc(100% - 32px);
    transform: translate(-50%, -50%);
    object-fit: contain;
    opacity: .96;
}

.tml-about-v3 .tml-impact-chip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(10, 151, 167, .14);
    box-shadow: 0 12px 24px rgba(14, 67, 100, .08);
    font-size: .92rem;
    font-weight: 700;
    color: #0b1530;
}

.tml-about-v3 .tml-impact-chip-left { left: 18px; }
.tml-about-v3 .tml-impact-chip-mid {
    left: 50%;
    transform: translate(-50%, -50%);
}
.tml-about-v3 .tml-impact-chip-right { right: 18px; }

.tml-about-v3 .tml-team-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 26px;
    align-items: start;
}

.tml-about-v3 .tml-team-intro {
    padding: 8px 2px 0;
}

.tml-about-v3 .tml-team-intro h2 {
    margin: 12px 0 14px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.3rem, 3.8vw, 3.3rem);
    font-weight: 400;
    line-height: 1.02;
    color: #10172d;
}

.tml-about-v3 .tml-team-intro p {
    max-width: 320px;
    margin: 0 0 28px;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(27, 40, 74, .74);
}

.tml-about-v3 .tml-role-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.tml-about-v3 .tml-role-card {
    padding: 18px 18px 16px;
    text-align: left;
}

.tml-about-v3 .tml-avatar {
    width: 118px;
    height: 118px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 42%, rgba(255,255,255,.98), rgba(255,255,255,.64) 26%, rgba(0,0,0,0) 27%),
        radial-gradient(circle at 50% 58%, rgba(0, 188, 212, .12), rgba(0, 188, 212, 0) 52%),
        linear-gradient(180deg, rgba(221, 240, 248, .96), rgba(198, 231, 240, .88));
    border: 1px solid rgba(10, 151, 167, .16);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 16px 28px rgba(14, 67, 100, .08);
    display: grid;
    place-items: center;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #0b1530;
}

.tml-about-v3 .tml-avatar span {
    transform: translateY(6px);
}

.tml-about-v3 .tml-role-label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(10, 151, 167, .10);
    color: #0b8ea2;
    font-size: .78rem;
    font-weight: 700;
}

.tml-about-v3 .tml-role-card h3 {
    margin: 0;
    font-size: .96rem;
    line-height: 1.58;
    color: rgba(27, 40, 74, .80);
}

.tml-about-v3 .tml-philosophy-band {
    display: grid;
    grid-template-columns: 1.15fr 1.2fr repeat(3, minmax(0, .78fr));
    gap: 0;
    overflow: hidden;
    align-items: stretch;
}

.tml-about-v3 .tml-philosophy-copy,
.tml-about-v3 .tml-philosophy-core,
.tml-about-v3 .tml-philosophy-metrics {
    padding: 28px 24px;
}

.tml-about-v3 .tml-philosophy-core,
.tml-about-v3 .tml-philosophy-metric + .tml-philosophy-metric {
    border-left: 1px solid rgba(10, 151, 167, .14);
}

.tml-about-v3 .tml-philosophy-copy h2 {
    margin: 12px 0 14px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 400;
    line-height: 1.06;
    color: #10172d;
}

.tml-about-v3 .tml-philosophy-copy p {
    margin: 0;
    max-width: 340px;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(27, 40, 74, .74);
}

.tml-about-v3 .tml-philosophy-core {
    position: relative;
    min-height: 248px;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 188, 212, .18), rgba(0, 188, 212, 0) 58%),
        linear-gradient(180deg, rgba(247, 252, 255, .95), rgba(236, 246, 251, .78));
    display: grid;
    place-items: center;
}

.tml-about-v3 .tml-about-art-philosophy {
    width: min(100%, 435px);
    object-fit: contain;
    filter: drop-shadow(0 18px 26px rgba(10, 93, 132, .10));
}

.tml-about-v3 .tml-philosophy-metrics {
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.tml-about-v3 .tml-philosophy-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    text-align: center;
}

.tml-about-v3 .tml-philosophy-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: rgba(10, 151, 167, .10);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.tml-about-v3 .tml-philosophy-metric strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.1;
    color: #10172d;
}

.tml-about-v3 .tml-philosophy-metric span {
    display: block;
    font-size: .88rem;
    line-height: 1.45;
    color: rgba(27, 40, 74, .72);
}

.tml-about-v3 .tml-about-cta-strip {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr auto;
    gap: 18px 24px;
    align-items: center;
    padding: 24px 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(198, 234, 245, .98) 0%, rgba(235, 247, 251, .98) 100%);
    border: 1px solid rgba(10, 151, 167, .14);
    box-shadow: 0 18px 42px rgba(10, 93, 132, .08);
    overflow: hidden;
}

.tml-about-v3 .tml-about-art-cta {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .18;
    pointer-events: none;
}

.tml-about-v3 .tml-cta-lead {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.tml-about-v3 .tml-cta-rocket {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border-radius: 50%;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(10, 151, 167, .14);
    box-shadow: 0 10px 22px rgba(10, 93, 132, .08);
    display: grid;
    place-items: center;
    color: #0b8ea2;
    font-size: 1.3rem;
}

.tml-about-v3 .tml-cta-lead h2 {
    margin: 0 0 6px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.75rem, 2.8vw, 2.6rem);
    font-weight: 400;
    line-height: 1.05;
    color: #10172d;
}

.tml-about-v3 .tml-cta-lead p {
    margin: 0;
    max-width: 540px;
    font-size: 1rem;
    line-height: 1.68;
    color: rgba(27, 40, 74, .74);
}

.tml-about-v3 .tml-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.tml-about-v3 .tml-cta-features {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(10, 151, 167, .14);
    position: relative;
    z-index: 1;
}

.tml-about-v3 .tml-cta-features div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: rgba(27, 40, 74, .76);
}

.tml-about-v3 .tml-cta-features span {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: rgba(10, 151, 167, .10);
    display: grid;
    place-items: center;
    color: #0b8ea2;
    font-size: .86rem;
}

@keyframes tml-about-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tml-about-v3 .tml-about-card,
.tml-about-v3 .tml-stat-card,
.tml-about-v3 .tml-pill,
.tml-about-v3 .tml-hero-callout,
.tml-about-v3 .tml-about-btn,
.tml-about-v3 .tml-role-card,
.tml-about-v3 .tml-philosophy-band,
.tml-about-v3 .tml-about-cta-strip {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.tml-about-v3 .tml-about-card:hover,
.tml-about-v3 .tml-stat-card:hover,
.tml-about-v3 .tml-pill:hover,
.tml-about-v3 .tml-role-card:hover {
    transform: translateY(-3px);
}

@media (max-width: 1180px) {
    .tml-about-v3 .tml-about-hero-grid,
    .tml-about-v3 .tml-mission-grid,
    .tml-about-v3 .tml-research-card,
    .tml-about-v3 .tml-impact-card,
    .tml-about-v3 .tml-team-grid,
    .tml-about-v3 .tml-philosophy-band,
    .tml-about-v3 .tml-about-cta-strip {
        grid-template-columns: 1fr;
    }

    .tml-about-v3 .tml-role-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tml-about-v3 .tml-philosophy-core,
    .tml-about-v3 .tml-philosophy-metrics {
        border-left: 0;
    }

    .tml-about-v3 .tml-philosophy-metrics {
        grid-column: auto;
    }
}

@media (max-width: 980px) {
    .tml-about-v3 .tml-mission-card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tml-about-v3 .tml-about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tml-about-v3 .tml-principles-grid {
        grid-template-columns: 1fr;
    }

    .tml-about-v3 .tml-framework-card {
        grid-template-columns: 1fr;
    }

    .tml-about-v3 .tml-build-stack-wrap {
        grid-template-columns: 1fr;
    }

    .tml-about-v3 .tml-about-art-build {
        display: none;
    }

    .tml-about-v3 .tml-framework-col + .tml-framework-col {
        border-left: 0;
        border-top: 1px solid rgba(10, 151, 167, .14);
    }

    .tml-about-v3 .tml-steps-row {
        grid-template-columns: 1fr;
    }

    .tml-about-v3 .tml-steps-row::before {
        display: none;
    }

    .tml-about-v3 .tml-team-grid {
        grid-template-columns: 1fr;
    }

    .tml-about-v3 .tml-role-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tml-about-v3 .tml-philosophy-metrics {
        grid-column: auto;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .tml-about-v3 .tml-about-container {
        padding: 0 18px;
    }

    .tml-about-v3 .tml-about-section {
        padding: 24px 0 56px;
    }

    .tml-about-v3 .tml-about-title {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .tml-about-v3 .tml-about-hero-visual {
        min-height: 280px;
    }

    .tml-about-v3 .tml-about-art-hero {
        padding: 12px;
    }

    .tml-about-v3 .tml-about-art-research,
    .tml-about-v3 .tml-about-art-impact,
    .tml-about-v3 .tml-about-art-philosophy {
        width: 100%;
    }

    .tml-about-v3 .tml-quote-card {
        min-height: 0;
        padding-top: 186px;
    }

    .tml-about-v3 .tml-about-art-quote {
        left: 50%;
        top: 12px;
        bottom: auto;
        width: 152px;
        max-width: none;
        transform: translateX(-50%);
        opacity: .64;
    }

    .tml-about-v3 .tml-quote-mark {
        left: 50%;
        top: 34px;
        transform: translateX(-42px);
    }

    .tml-about-v3 .tml-quote-card p {
        max-width: none;
        margin-left: 0;
        padding-top: 0;
        text-align: center;
    }

    .tml-about-v3 .tml-about-stats,
    .tml-about-v3 .tml-role-grid {
        grid-template-columns: 1fr;
    }

    .tml-about-v3 .tml-about-card,
    .tml-about-v3 .tml-mission-card,
    .tml-about-v3 .tml-research-card,
    .tml-about-v3 .tml-impact-card,
    .tml-about-v3 .tml-philosophy-copy,
    .tml-about-v3 .tml-philosophy-core,
    .tml-about-v3 .tml-philosophy-metrics,
    .tml-about-v3 .tml-about-cta-strip {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tml-about-v3 .tml-about-cta-strip {
        gap: 14px;
    }

    .tml-about-v3 .tml-cta-actions {
        justify-content: stretch;
    }

    .tml-about-v3 .tml-about-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── About page: desktop ratio fix ──────────────────────── */
@media (min-width: 1180px) {
    .tml-about-v3 .tml-about-hero-grid {
        align-items: stretch;
        gap: 48px;
    }
    .tml-about-v3 .tml-about-hero-visual {
        min-height: 0;
        max-height: none;
        height: 100%;
    }
    .tml-about-v3 .tml-about-art-hero {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
    .tml-about-v3 .tml-about-container {
        padding: 0 40px;
    }
}

/* ── About page: dark mode background ────────────────────── */
[data-theme="dark"] .tml-about-v3 {
    background:
        radial-gradient(1200px 700px at 12% 0%, rgba(7,17,31,.98) 0%, rgba(7,17,31,.92) 36%, rgba(7,17,31,0) 72%),
        radial-gradient(900px 600px at 88% 7%, rgba(0,40,60,.90) 0%, rgba(0,40,60,.50) 28%, rgba(0,40,60,0) 68%),
        linear-gradient(180deg, #07111f 0%, #0a1829 100%);
    color: #e0e8f0;
}
[data-theme="dark"] .tml-about-v3::before {
    background-image:
        linear-gradient(rgba(58,200,212,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58,200,212,0.06) 1px, transparent 1px);
}
[data-theme="dark"] .tml-about-v3 .tml-about-title { color: #e8f0f8; }
[data-theme="dark"] .tml-about-v3 .tml-eyebrow { color: #3AC8D4; }
[data-theme="dark"] .tml-about-v3 .tml-about-card {
    background: rgba(10,24,44,.80);
    border-color: rgba(58,200,212,.14);
}
[data-theme="dark"] .tml-about-v3 .tml-stat-card {
    background: rgba(10,24,44,.78);
    border-color: rgba(58,200,212,.14);
}
[data-theme="dark"] .tml-about-v3 .tml-stat-card strong { color: #e8f0f8; }

/* ── 0. DUPLICATE TITLE/AUTHOR FIX ───────────────────────── */
/* Theme already renders .single-title + .single-meta above content */
.single-content > header,
.single-content .meta:first-child {
    display: none !important;
}

/* Hide <hr> dividers inside article content */
.single-content hr,
.single-wrap hr {
    display: none !important;
}

.tml-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--tml-muted);
    letter-spacing: .02em;
}
.tml-breadcrumb a {
    color: var(--tml-accent);
    text-decoration: none;
    opacity: .92;
}
.tml-breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.tml-bc-sep { opacity: .45; }
.tml-meta-cat {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(58,200,212,.10);
    color: var(--tml-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
    vertical-align: middle;
}
.tml-meta-cat:hover { background: rgba(58,200,212,.18); }
.tml-bc-current {
    max-width: min(560px, 100%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--tml-text);
}

/* ── 0b. ABOUT & COMING SOON PAGES ───────────────────────── */
.tml-about-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}
.tml-about-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: flex-start;
}
.tml-about-img-wrap {
    position: relative;
}
.tml-about-img-wrap img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}
.tml-about-badge {
    position: absolute;
    bottom: 16px;
    right: -12px;
    background: #3AC8D4;
    color: #07111F;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 6px 14px;
    font-weight: 600;
}
.tml-about-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 16px 0 24px;
}
.tml-about-quote {
    border-left: 2px solid #3AC8D4;
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    opacity: .75;
    font-family: 'Fraunces', serif;
    font-size: 17px;
    line-height: 1.6;
}
.tml-about-quote footer { font-size: 13px; margin-top: 8px; font-style: normal; opacity: .6; }
.tml-about-body { font-size: 15px; line-height: 1.8; opacity: .75; margin-bottom: 16px; }
.tml-about-stats {
    display: flex;
    gap: 32px;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid rgba(58,200,212,.12);
    border-bottom: 1px solid rgba(58,200,212,.12);
}
.tml-stat-num {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 300;
    color: #3AC8D4;
}
.tml-stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: .45;
    margin-top: 4px;
}
.tml-about-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 767px) {
    .tml-about-grid { grid-template-columns: 1fr; gap: 32px; }
    .tml-about-img-wrap img { max-height: 320px; object-fit: cover; }
}

/* Coming Soon page */
.tml-cs-wrap {
    max-width: 560px;
    margin: 100px auto;
    text-align: center;
    padding: 0 24px 80px;
}
.tml-cs-eye {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3AC8D4;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tml-cs-eye::before, .tml-cs-eye::after { content: ''; width: 24px; height: 1px; background: #3AC8D4; }
.tml-cs-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 300;
    letter-spacing: -.02em;
    margin-bottom: 20px;
}
.tml-cs-desc { font-size: 15px; opacity: .65; margin-bottom: 32px; line-height: 1.7; }
.tml-cs-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tml-cs-btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    background: #3AC8D4;
    color: #07111F;
    font-weight: 600;
    font-size: 14px;
    border-radius: 3px;
    text-decoration: none;
    transition: opacity .2s;
}
.tml-cs-btn:hover { opacity: .85; }
.tml-cs-link { font-size: 13px; opacity: .5; color: inherit; text-decoration: none; }
.tml-cs-link:hover { opacity: .8; }

/* ── 1. LOGO SIZING ───────────────────────────────────────────── */
/* Header logo — slightly larger */
.nav-logo img,
.nav-logo .logo-dark-img,
.nav-logo .logo-light-img {
    height: 42px !important;
    width: auto !important;
    transition: opacity .2s;
}

/* Footer logo */
.footer-logo,
.footer-logo.logo-dark-img,
.footer-logo.logo-light-img {
    height: 38px !important;
    width: auto !important;
}

/* Footer logo container — transparent bg both modes, matching web color */
.footer-logo-wrap,
.widget-logo,
.site-footer .logo-wrap,
.site-footer .footer-branding {
    background: transparent !important;
}
[data-theme="dark"] .footer-logo-wrap,
[data-theme="dark"] .widget-logo,
[data-theme="dark"] .site-footer .logo-wrap,
[data-theme="dark"] .site-footer .footer-branding {
    background: transparent !important;
}
/* Search: hide site name text if shown, keep only icon */
.search-wrap .site-title,
.search-wrap .blog-name,
.nav .search-wrap span:not(.screen-reader-text) {
    display: none !important;
}

/* ── 3. AUTHOR BAR ───────────────────────────────────────────── */
.tml-author-bar {
    margin: 36px 0 0;
    padding: 28px 32px;
    border-top: 1px solid rgba(58,200,212,.20);
    border-bottom: 1px solid rgba(58,200,212,.20);
    background: rgba(58,200,212,.03);
    border-radius: 12px;
}

.tml-author-identity {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.tml-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(58,200,212,.35);
    flex-shrink: 0;
}

.tml-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tml-author-name {
    font-size: 1rem;
    font-weight: 700;
    color: #e8e8e8;
    text-decoration: none;
    letter-spacing: -.01em;
    transition: color .2s;
}
.tml-author-name:hover { color: #3AC8D4; }

.tml-author-title {
    font-size: .78rem;
    color: #3AC8D4;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tml-author-bio {
    margin: 6px 0 0;
    font-size: .88rem;
    color: rgba(220,220,220,.70);
    line-height: 1.55;
    max-width: 520px;
}

/* Action row */
.tml-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tml-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: .80rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: rgba(220,220,220,.80);
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.tml-action-btn:hover {
    background: rgba(58,200,212,.12);
    border-color: rgba(58,200,212,.40);
    color: #3AC8D4;
}

.tml-share-fb:hover  { background: rgba(24,119,242,.15); border-color: rgba(24,119,242,.40); color: #1877F2; }
.tml-share-tw:hover  { background: rgba(15,20,25,.30);   border-color: rgba(200,200,200,.30); color: #e8e8e8; }
.tml-share-li:hover  { background: rgba(0,119,181,.15);  border-color: rgba(0,119,181,.40);  color: #0077B5; }

.tml-action-like.is-liked svg.tml-heart-icon {
    fill: #e05252;
    stroke: #e05252;
}
.tml-action-like.is-liked { border-color: rgba(224,82,82,.40); color: #e05252; }

.tml-copy-label { transition: none; }

/* ── 4. ARTICLE TAGS ─────────────────────────────────────────── */
.tml-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 40px 0 16px;
    padding-top: 28px;
    border-top: 1px solid rgba(58,200,212,.15);
}

.tml-tags-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .45;
    margin-right: 4px;
}

.tml-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid rgba(58,200,212,.25);
    border-radius: 2px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .5px;
    color: #3AC8D4;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.tml-tag:hover {
    background: rgba(58,200,212,.08);
    border-color: rgba(58,200,212,.5);
}

/* ── 4. RELATED POSTS ────────────────────────────────────────── */
.tml-related {
    margin: 48px 0 0;
    padding-top: 40px;
    border-top: 1px solid rgba(58,200,212,.12);
}

.tml-related-hd {
    margin-bottom: 24px;
}

.tml-rel-eye {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3AC8D4;
    margin-bottom: 8px;
}
.tml-rel-eye::before {
    content: '— ';
}

.tml-rel-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 300;
    letter-spacing: -.01em;
    margin: 0;
}

.tml-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tml-rel-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border: 1px solid rgba(58,200,212,.12);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .15s;
}
.tml-rel-card:hover {
    border-color: rgba(58,200,212,.35);
    transform: translateY(-2px);
}

.tml-rel-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #3AC8D4;
}

.tml-rel-h {
    font-family: 'Fraunces', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
    flex: 1;
}

.tml-rel-excerpt {
    font-size: 13px;
    line-height: 1.6;
    opacity: .6;
    margin: 6px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tml-rel-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #3AC8D4;
    margin-top: 4px;
}

/* ── 5. NEWSLETTER MODAL ─────────────────────────────────────── */
.tml-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.tml-modal[hidden] { display: none; }

.tml-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7,17,31,.82);
    backdrop-filter: blur(6px);
}

.tml-modal-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: var(--bg-elev, #0E1A2E);
    border: 1px solid rgba(58,200,212,.2);
    border-radius: 6px;
    padding: 40px 36px;
    animation: tml-fadein .2s ease;
}

@keyframes tml-fadein {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Light mode modal */
[data-theme="light"] .tml-modal-box {
    background: #fff;
    border-color: rgba(42,171,183,.25);
    color: #1A2235;
}

.tml-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: .4;
    transition: opacity .2s;
    color: inherit;
    line-height: 1;
    padding: 4px;
}
.tml-modal-close:hover { opacity: .9; }

.tml-modal-eye {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3AC8D4;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tml-modal-eye::before { content: ''; width: 16px; height: 1px; background: #3AC8D4; }

.tml-modal-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 14px;
}
.tml-modal-title em { font-style: italic; }

.tml-modal-desc {
    font-size: 14px;
    line-height: 1.7;
    opacity: .7;
    margin-bottom: 24px;
}
.tml-modal-desc strong { opacity: 1; font-weight: 600; }

.tml-modal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tml-modal-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(58,200,212,.2);
    border-radius: 3px;
    color: inherit;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.tml-modal-input::placeholder { opacity: .4; }
.tml-modal-input:focus { border-color: #3AC8D4; }
[data-theme="light"] .tml-modal-input { background: #f5f7fa; color: #1A2235; }

.tml-modal-btn {
    padding: 13px 20px;
    background: #3AC8D4;
    color: #07111F;
    border: none;
    border-radius: 3px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .3px;
    transition: opacity .2s, transform .15s;
}
.tml-modal-btn:hover { opacity: .88; transform: translateY(-1px); }
.tml-modal-btn:disabled { opacity: .5; cursor: default; transform: none; }

.tml-modal-fine {
    font-size: 11px;
    opacity: .4;
    margin: 10px 0 0;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .5px;
}

/* Social login buttons */
.tml-social-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.tml-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity .15s, transform .15s;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: inherit;
}
.tml-social-btn:hover { opacity: .85; transform: translateY(-1px); text-decoration: none; }
.tml-social-google { border-color: rgba(66,133,244,.3); }
.tml-social-github { border-color: rgba(255,255,255,.18); }
.tml-social-facebook { border-color: rgba(24,119,242,.3); }

.tml-modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px;
    font-size: 12px;
    opacity: .45;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}
.tml-modal-divider::before,
.tml-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: .3;
}

/* Thank you state */
.tml-modal-thanks {
    text-align: center;
    padding: 20px 0;
}
.tml-modal-thanks .thanks-icon { font-size: 36px; margin-bottom: 12px; }
.tml-modal-thanks h3 {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 8px;
}
.tml-modal-thanks p { font-size: 14px; opacity: .65; }

/* ── 6. ENHANCED NEWSLETTER SECTION (homepage) ───────────────── */
/* Add name field injected by JS */
.nl-form .tml-name-input {
    padding: 14px 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(58,200,212,.2);
    border-radius: 3px;
    color: inherit;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    flex: 0 0 auto;
    min-width: 140px;
}
.nl-form .tml-name-input:focus { border-color: #3AC8D4; }
.nl-form .tml-name-input::placeholder { opacity: .5; }

/* Thank you message in homepage form */
.nl-thanks {
    text-align: center;
    padding: 16px;
    animation: tml-fadein .3s ease;
}
.nl-thanks strong { color: #3AC8D4; font-size: 18px; display: block; margin-bottom: 6px; }
.nl-thanks span { opacity: .65; font-size: 14px; }

/* ── 7. RESPONSIVE — TABLET (768–1024px) ─────────────────────── */
@media (max-width: 1024px) and (min-width: 768px) {
    .nav { padding: 0 24px; }

    .tml-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Pillars section */
    .pillars-grid,
    .cards-grid,
    [class*="grid-3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Hero */
    .hero { flex-direction: column; gap: 32px; padding: 60px 24px; }
    .hero-title { font-size: clamp(32px, 6vw, 52px); }
}

/* ── 8. RESPONSIVE — MOBILE (<767px) ────────────────────────── */
@media (max-width: 767px) {
    /* Nav */
    .nav { padding: 0 16px; height: 52px; }
    .nav-links { display: none; } /* desktop nav hidden, drawer handles mobile */

    /* Logo: slightly smaller on mobile */
    .nav-logo img { height: 34px !important; }

    /* Hero */
    .hero {
        flex-direction: column !important;
        gap: 28px;
        padding: 48px 16px 60px;
        min-height: unset !important;
    }
    .hero-title { font-size: clamp(28px, 8vw, 40px); line-height: 1.15; }
    .hero-desc { font-size: 15px; }
    .hero-visual { max-height: 240px; overflow: hidden; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Ticker / marquee */
    .ticker { font-size: 10px; }

    /* Pillars / cards grid → single column */
    .pillars-grid,
    .cards-grid,
    [class*="grid-3"],
    .tml-related-grid {
        grid-template-columns: 1fr !important;
    }

    /* Sections padding */
    .section { padding: 48px 16px; }

    /* Newsletter box */
    .newsletter-box { padding: 32px 20px; }
    .nl-form { flex-direction: column !important; gap: 10px; }
    .nl-form .tml-name-input,
    .nl-form .nl-input,
    .nl-form .nl-btn { width: 100% !important; }

    /* About section */
    .about-grid,
    .about-inner { grid-template-columns: 1fr !important; gap: 32px; }
    .about-img-wrap { max-height: 300px; overflow: hidden; }

    /* Footer */
    .footer-inner { padding: 40px 16px 24px; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 32px; }

    /* Single post */
    .single-wrap { padding: 40px 16px 80px; }

    /* Tags */
    .tml-tags { gap: 6px; }

    /* Related cards */
    .tml-rel-card { padding: 16px; }

    /* Modal */
    .tml-modal-box { padding: 28px 20px; }
}

/* ── 9. RESPONSIVE — SMALL MOBILE (<400px) ──────────────────── */
@media (max-width: 400px) {
    .hero-title { font-size: 26px; }
    .nav-logo img { height: 28px !important; }
    .tml-modal-title { font-size: 22px; }
}

/* ── CITATION HIGHLIGHT (.tml-cite) ─────────────────────────── */
/* Applied by Agent 4 writer to hyperlinked citations/sources */
a.tml-cite,
.tml-cite {
    color: #3AC8D4 !important;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: none !important;
    border-bottom: none;
    transition: text-decoration .15s, opacity .15s;
}
a.tml-cite:hover,
.tml-cite:hover {
    text-decoration: underline;
    text-decoration-color: #3AC8D4;
    opacity: .85;
}

/* ── TABLE OF CONTENTS ───────────────────────────────────────── */
.tml-toc {
    margin: 0 0 36px;
    padding: 20px 24px;
    border: 1px solid rgba(58,200,212,.18);
    border-left: 3px solid #3AC8D4;
    border-radius: 3px;
    background: rgba(58,200,212,.04);
}
.tml-toc-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #3AC8D4;
    margin-bottom: 12px;
}
.tml-toc-list {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}
.tml-toc-list li {
    margin-bottom: 6px;
}
.tml-toc-list a {
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    opacity: .75;
    transition: opacity .15s, color .15s;
    line-height: 1.5;
}
.tml-toc-list a:hover {
    opacity: 1;
    color: #3AC8D4;
}

/* ── SUBSCRIBE → SIGN IN SWAP ────────────────────────────────── */
/* Hide old subscribe, show new login via JS injection */
.tml-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid rgba(58,200,212,.4);
    border-radius: 3px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    transition: background .2s, border-color .2s;
    letter-spacing: .2px;
}
.tml-signin-btn:hover {
    background: rgba(58,200,212,.08);
    border-color: rgba(58,200,212,.7);
}

/* ── LOGIN MODAL SPECIFICS ───────────────────────────────────── */
.tml-login-box { max-width: 420px; }

.tml-social-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tml-social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    transition: opacity .2s, transform .1s;
    border: 1px solid transparent;
}
.tml-social-btn:hover { opacity: .88; transform: translateY(-1px); }

.tml-btn-google  { background: #fff; color: #3c4043; border-color: #dadce0; }
.tml-btn-github  { background: #24292f; color: #fff; }
.tml-btn-facebook{ background: #1877F2; color: #fff; }
.tml-btn-wp      { background: rgba(255,255,255,.08); color: inherit; border-color: rgba(255,255,255,.15); }

[data-theme="light"] .tml-btn-wp { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.12); }

.tml-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}
.tml-login-divider::before,
.tml-login-divider::after { content:''; flex:1; height:1px; background: rgba(255,255,255,.1); }
[data-theme="light"] .tml-login-divider::before,
[data-theme="light"] .tml-login-divider::after { background: rgba(0,0,0,.1); }
.tml-login-divider span { font-size: 12px; opacity: .4; }

/* ── FOOTER TAG CLOUD ────────────────────────────────────────── */
.tml-footer-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 20px 40px;
    border-top: 1px solid rgba(58,200,212,.1);
    margin-top: -1px;
}
.tml-footer-tags-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .4;
    margin-right: 8px;
    white-space: nowrap;
}
.tml-footer-tag {
    padding: 4px 12px;
    border: 1px solid rgba(58,200,212,.2);
    border-radius: 2px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .5px;
    color: rgba(58,200,212,.7);
    text-decoration: none;
    transition: color .15s, border-color .15s;
}
.tml-footer-tag:hover { color: #3AC8D4; border-color: rgba(58,200,212,.5); }

@media (max-width: 767px) {
    .tml-footer-tags { padding: 16px; }
    .tml-toc { padding: 16px; }
    .tml-social-btns { gap: 8px; }
}

/* ── v1.5.0 ADDITIONS ────────────────────────────────────────── */

/* ── TOC VISUAL GRID (card matrix style) ─────────────────────── */
.tml-toc {
    background: #0D1B2A;
    border: 1px solid rgba(58,200,212,.18);
    border-left: 3px solid #3AC8D4;
    border-radius: 4px;
    padding: 20px 24px 24px;
    margin: 0 0 36px;
}

.tml-toc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.tml-toc-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(58,200,212,0.06);
    border: 1px solid rgba(58,200,212,.12);
    border-left: 3px solid #3AC8D4;
    border-radius: 3px;
    text-decoration: none;
    color: inherit;
    transition: background .18s, border-color .18s;
}
.tml-toc-card:hover {
    background: rgba(58,200,212,0.14);
    border-color: rgba(58,200,212,.35);
    text-decoration: none;
}

.tml-toc-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #3AC8D4;
    line-height: 1.6;
    flex-shrink: 0;
    letter-spacing: .5px;
}

.tml-toc-text {
    font-size: 13px;
    line-height: 1.5;
    opacity: .85;
}
.tml-toc-card:hover .tml-toc-text {
    opacity: 1;
    color: #3AC8D4;
}

@media (max-width: 600px) {
    .tml-toc-grid {
        grid-template-columns: 1fr;
    }
    .tml-author-bar {
        padding: 20px 16px;
    }
    .tml-author-bio {
        display: none;
    }
    .tml-action-row {
        gap: 6px;
    }
    .tml-action-btn {
        padding: 6px 10px;
        font-size: .75rem;
    }
}

/* ── BACK TO TOP BUTTON ──────────────────────────────────────── */
.tml-back-top {
    position: fixed;
    bottom: 56px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3AC8D4;
    color: #07111F;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    opacity: 0;
    transition: opacity .25s, transform .2s;
    transform: translateY(8px);
    box-shadow: 0 4px 16px rgba(58,200,212,.25);
}
.tml-back-top:not([hidden]) {
    opacity: 1;
    transform: translateY(0);
}
.tml-back-top[hidden] {
    display: flex !important; /* override [hidden] so transition works */
    opacity: 0;
    pointer-events: none;
}
.tml-back-top:hover {
    background: #2eb8c4;
    transform: translateY(-2px);
}
.tml-back-top:focus-visible {
    outline: 2px solid #3AC8D4;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .tml-back-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); right: 16px; width: 42px; height: 42px; }
}

/* ── RELATED POSTS — BENOCODE STYLE ─────────────────────────── */
.tml-rel-eye {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3AC8D4;
    margin-bottom: 8px;
    display: block;
}

.tml-rel-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: 3px 3px 0 0;
    overflow: hidden;
    transition: transform .3s ease;
}
.tml-rel-card:hover .tml-rel-img {
    transform: scale(1.05);
}
.tml-rel-img-placeholder {
    background: linear-gradient(135deg, #0D1B2A 0%, #1a2f47 50%, #0D1B2A 100%);
}

.tml-rel-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(58,200,212,.12);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .15s, box-shadow .2s;
}
.tml-rel-card:hover {
    border-color: rgba(58,200,212,.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    text-decoration: none;
}

.tml-rel-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.tml-rel-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.tml-rel-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #3AC8D4;
    background: rgba(58,200,212,.1);
    padding: 2px 7px;
    border-radius: 2px;
}

.tml-rel-date {
    font-size: 11px;
    opacity: .45;
    font-family: 'JetBrains Mono', monospace;
}

.tml-rel-h {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .18s;
}
.tml-rel-card:hover .tml-rel-h {
    color: #3AC8D4;
}

.tml-rel-excerpt {
    font-size: 13px;
    line-height: 1.6;
    opacity: .55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Lang-target visibility — controlled by body[data-lang] set by JS */
body[data-lang="en"] [data-lang-target="vi"] { display: none !important; }
body[data-lang="vi"] [data-lang-target="en"] { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   v1.6.0 — FIRSTPROMOTER-INSPIRED LAYOUT IMPROVEMENTS
   Patterns: horizontal sections · stat callouts · card grids
   generous whitespace · social proof · clear CTAs
   ══════════════════════════════════════════════════════════════ */

/* ── SITE-WIDE MAX-WIDTH & SECTION RHYTHM ─────────────────── */
.site-content,
.container,
.inner,
.hero-inner,
.section-inner,
.posts-grid-wrap {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* Tighter content container for articles */
.single-wrap,
.page-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 100px;
}

/* ── HERO SECTION ─────────────────────────────────────────── */
/* Bolder, centred hero with more breathing room */
.hero {
    padding: 96px 40px 80px;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.hero-content {
    max-width: 660px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3AC8D4;
    margin-bottom: 20px;
    padding: 5px 12px;
    border: 1px solid rgba(58,200,212,.25);
    border-radius: 20px;
    background: rgba(58,200,212,.06);
}
.hero-title {
    font-size: clamp(36px, 5.5vw, 62px);
    line-height: 1.10;
    letter-spacing: -.03em;
    margin-bottom: 20px;
}
.hero-desc {
    font-size: 17px;
    line-height: 1.75;
    opacity: .70;
    max-width: 520px;
    margin-bottom: 32px;
}

/* ── STAT STRIP (firstpromoter-style proof bar) ────────────── */
.tml-stat-strip {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 28px 0;
    border-top: 1px solid rgba(58,200,212,.10);
    border-bottom: 1px solid rgba(58,200,212,.10);
    margin: 48px 0;
    flex-wrap: wrap;
}

.tml-stat-item {
    flex: 1;
    min-width: 140px;
    padding: 0 32px;
    text-align: center;
    border-right: 1px solid rgba(58,200,212,.10);
}
.tml-stat-item:last-child { border-right: none; }

.tml-stat-big {
    font-family: 'Fraunces', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    color: #3AC8D4;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 6px;
}
.tml-stat-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: .45;
}

/* ── FEATURE CARD GRID (3-col horizontal sections) ─────────── */
.tml-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.tml-feature-card {
    padding: 28px 24px;
    border: 1px solid rgba(58,200,212,.12);
    border-radius: 8px;
    background: rgba(13,27,42,.6);
    transition: border-color .2s, transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.tml-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3AC8D4, transparent);
    opacity: 0;
    transition: opacity .2s;
}
.tml-feature-card:hover {
    border-color: rgba(58,200,212,.30);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.tml-feature-card:hover::before { opacity: 1; }

.tml-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(58,200,212,.10);
    border: 1px solid rgba(58,200,212,.20);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #3AC8D4;
}

.tml-feature-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 8px;
}

.tml-feature-desc {
    font-size: 14px;
    line-height: 1.70;
    opacity: .60;
}

/* ── TESTIMONIAL / QUOTE CARDS ────────────────────────────── */
.tml-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.tml-quote-card {
    padding: 28px;
    background: rgba(13,27,42,.7);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    transition: border-color .2s;
}
.tml-quote-card:hover { border-color: rgba(58,200,212,.20); }

.tml-quote-text {
    font-size: 15px;
    line-height: 1.75;
    opacity: .80;
    margin-bottom: 20px;
    font-style: italic;
}
.tml-quote-text::before { content: '\201C'; color: #3AC8D4; font-size: 1.2em; }
.tml-quote-text::after  { content: '\201D'; color: #3AC8D4; font-size: 1.2em; }

.tml-quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tml-quote-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(58,200,212,.30);
}
.tml-quote-name {
    font-size: 13px;
    font-weight: 700;
    display: block;
}
.tml-quote-role {
    font-size: 12px;
    opacity: .50;
    font-family: 'JetBrains Mono', monospace;
}

/* ── HORIZONTAL SPLIT SECTION (text + visual side-by-side) ── */
.tml-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 64px 0;
    border-bottom: 1px solid rgba(58,200,212,.08);
}
.tml-split.reverse { direction: rtl; }
.tml-split.reverse > * { direction: ltr; }

.tml-split-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3AC8D4;
    margin-bottom: 14px;
}
.tml-split-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 300;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 16px;
}
.tml-split-body {
    font-size: 15px;
    line-height: 1.80;
    opacity: .65;
    margin-bottom: 24px;
}
.tml-split-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #3AC8D4;
    text-decoration: none;
    border-bottom: 1px solid rgba(58,200,212,.3);
    padding-bottom: 2px;
    transition: border-color .2s, gap .2s;
}
.tml-split-cta:hover { border-color: #3AC8D4; gap: 12px; }

/* ── POST CARD IMPROVEMENTS (index / archive) ─────────────── */
.post-card,
.tml-post-card {
    border: 1px solid rgba(58,200,212,.10);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    background: rgba(13,27,42,.5);
}
.post-card:hover,
.tml-post-card:hover {
    border-color: rgba(58,200,212,.28);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

/* Post card thumbnail */
.post-card .post-thumbnail,
.tml-post-card .post-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.post-card .post-thumbnail img,
.tml-post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.post-card:hover .post-thumbnail img,
.tml-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Reading time / meta pill */
.tml-read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(58,200,212,.75);
    background: rgba(58,200,212,.08);
    padding: 2px 8px;
    border-radius: 2px;
}

/* ── CTA SECTION (newsletter / join banner) ───────────────── */
.tml-cta-section {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(58,200,212,.06) 0%, transparent 60%);
    border: 1px solid rgba(58,200,212,.12);
    border-radius: 12px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}
.tml-cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58,200,212,.08) 0%, transparent 70%);
    pointer-events: none;
}

.tml-cta-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3AC8D4;
    margin-bottom: 16px;
}
.tml-cta-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    letter-spacing: -.025em;
    margin-bottom: 14px;
}
.tml-cta-desc {
    font-size: 16px;
    line-height: 1.70;
    opacity: .65;
    max-width: 480px;
    margin: 0 auto 32px;
}
.tml-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #3AC8D4;
    color: #07111F;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(58,200,212,.25);
}
.tml-cta-btn:hover {
    opacity: .90;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58,200,212,.35);
}

/* ── SECTION DIVIDER WITH LABEL ──────────────────────────── */
.tml-section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 56px 0 32px;
}
.tml-section-label::before,
.tml-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(58,200,212,.12);
}
.tml-section-label span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3AC8D4;
    white-space: nowrap;
}

/* ── RESPONSIVE OVERRIDES ─────────────────────────────────── */
@media (max-width: 1024px) {
    .tml-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .tml-split { grid-template-columns: 1fr; gap: 36px; }
    .tml-split.reverse { direction: ltr; }
    .tml-stat-strip { justify-content: center; }
    .tml-stat-item { min-width: 160px; border-right: none; padding: 12px 24px; }
}
@media (max-width: 767px) {
    .tml-feature-grid { grid-template-columns: 1fr; }
    .tml-quote-grid   { grid-template-columns: 1fr; }
    .tml-cta-section  { padding: 48px 20px; }
    .tml-stat-big     { font-size: 32px; }
    .tml-section-label { margin: 36px 0 20px; }
    .site-content,
    .container,
    .inner {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ══════════════════════════════════════════════════════════════
   NEWSLETTER PAGE  [tml_newsletter]
   ══════════════════════════════════════════════════════════════ */
.tml-nl-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 72px 24px 100px;
}

.tml-nl-hero { text-align: center; margin-bottom: 48px; }

.tml-nl-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #3AC8D4;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.tml-nl-eyebrow::before,
.tml-nl-eyebrow::after { content: ''; width: 24px; height: 1px; background: #3AC8D4; }

.tml-nl-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 300;
    letter-spacing: -.03em;
    line-height: 1.12;
    margin-bottom: 18px;
}
.tml-nl-title em { font-style: italic; }

.tml-nl-desc {
    font-size: 17px;
    line-height: 1.75;
    opacity: .65;
    max-width: 540px;
    margin: 0 auto;
}

/* Form */
.tml-nl-form-wrap {
    background: rgba(58,200,212,.04);
    border: 1px solid rgba(58,200,212,.20);
    border-radius: 12px;
    padding: 36px 40px;
    margin-bottom: 48px;
}

.tml-nl-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tml-nl-input {
    flex: 1;
    min-width: 180px;
    padding: 13px 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(58,200,212,.20);
    border-radius: 4px;
    color: inherit;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
}
.tml-nl-input:focus { border-color: #3AC8D4; }
.tml-nl-input::placeholder { opacity: .45; }

.tml-nl-btn {
    padding: 13px 28px;
    background: #3AC8D4;
    color: #07111F;
    border: none;
    border-radius: 4px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s, transform .15s;
    box-shadow: 0 4px 16px rgba(58,200,212,.25);
}
.tml-nl-btn:hover { opacity: .88; transform: translateY(-1px); }
.tml-nl-btn:disabled { opacity: .5; cursor: default; transform: none; }

.tml-nl-fine {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: .5px;
    opacity: .4;
    text-align: center;
}

/* Social proof stats */
.tml-nl-proof {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 56px;
    padding: 24px 0;
    border-top: 1px solid rgba(58,200,212,.10);
    border-bottom: 1px solid rgba(58,200,212,.10);
}
.tml-nl-proof-item {
    flex: 1;
    text-align: center;
    padding: 0 24px;
    border-right: 1px solid rgba(58,200,212,.10);
}
.tml-nl-proof-item:last-child { border-right: none; }
.tml-nl-proof-num {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 36px;
    font-weight: 300;
    color: #3AC8D4;
    letter-spacing: -.02em;
    margin-bottom: 4px;
}
.tml-nl-proof-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: .45;
}

/* Features list */
.tml-nl-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.tml-nl-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.tml-nl-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(58,200,212,.10);
    border: 1px solid rgba(58,200,212,.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.tml-nl-feature strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.tml-nl-feature p {
    font-size: 14px;
    line-height: 1.70;
    opacity: .60;
    margin: 0;
}

/* Thank you state */
.tml-nl-thanks {
    text-align: center;
    padding: 32px;
}
.tml-nl-thanks-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: #3AC8D4;
}
.tml-nl-thanks h2 {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 10px;
}
.tml-nl-thanks p { opacity: .65; font-size: 15px; }

/* About page additions */
.tml-about-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3AC8D4;
    margin-bottom: 14px;
}
.tml-about-stat { text-align: center; }

/* Coming Soon logo */
.tml-cs-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    text-decoration: none;
}
.tml-cs-logo-img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
    border-radius: 8px;
}
.tml-cs-logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #3AC8D4;
    letter-spacing: 2px;
}

/* Newsletter page mobile */
@media (max-width: 600px) {
    .tml-nl-form-wrap { padding: 24px 16px; }
    .tml-nl-row { flex-direction: column; }
    .tml-nl-input, .tml-nl-btn { width: 100%; }
    .tml-nl-proof { flex-direction: column; gap: 16px; }
    .tml-nl-proof-item { border-right: none; border-bottom: 1px solid rgba(58,200,212,.10); padding: 12px 0; }
    .tml-nl-proof-item:last-child { border-bottom: none; }
}

/* ════════════════════════════════════════════════════════════════
   HOMEPAGE ENHANCEMENTS v2.2
   Tasks: 3 (FirstPromoter layout) · 4 (remove author) · 5 (hero images) · 6 (pillars)
   ════════════════════════════════════════════════════════════════ */

/* ── TASK 4 · Remove author card/tag from homepage hero & featured ── */
.home .hero-img-tag,
.front-page .hero-img-tag,
.home .author-row,
.front-page .author-row {
    display: none !important;
}

/* ── TASK 5 · Hero image refinement — light mode ── */
[data-theme="light"] .hero-img-frame {
    box-shadow: 0 20px 64px rgba(100,160,200,.16), 0 4px 16px rgba(0,0,0,.05);
    border-color: rgba(58,200,212,.22);
    background: #edf4ff;
}
[data-theme="light"] .hero-img-frame img {
    filter: brightness(1.04) saturate(0.92) contrast(0.97);
}
[data-theme="light"] .hero-glow {
    background: radial-gradient(ellipse at center,
        rgba(58,200,212,.12) 0%,
        rgba(100,180,240,.06) 40%,
        transparent 70%);
    filter: blur(60px);
}

/* ── TASK 5 · Hero image refinement — dark mode ── */
[data-theme="dark"] .hero-img-frame {
    box-shadow: 0 20px 64px rgba(58,200,212,.14), 0 4px 20px rgba(0,0,0,.5);
    border-color: rgba(58,200,212,.42);
    background: #0a1829;
}
[data-theme="dark"] .hero-img-frame img {
    filter: brightness(1.06) contrast(1.03) saturate(1.12);
}
[data-theme="dark"] .hero-glow {
    background: radial-gradient(ellipse at center,
        rgba(58,200,212,.28) 0%,
        rgba(93,223,232,.10) 40%,
        transparent 70%);
    filter: blur(44px);
    animation: glow 5s ease-in-out infinite;
}

/* ── TASK 3 · Trust bar — FirstPromoter-style stats under CTA ── */
.tml-hero-trust {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border, rgba(58,200,212,.12));
    flex-wrap: wrap;
}

.tml-trust-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}

.tml-trust-num {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--cyan, #3AC8D4);
    letter-spacing: -.01em;
}

.tml-trust-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    opacity: .48;
    white-space: nowrap;
}

.tml-trust-sep {
    width: 1px;
    height: 22px;
    background: var(--border, rgba(58,200,212,.14));
    flex-shrink: 0;
}

/* Light mode overrides */
[data-theme="light"] .tml-hero-trust {
    border-top-color: rgba(42,171,183,.14);
}
[data-theme="light"] .tml-trust-sep {
    background: rgba(42,171,183,.15);
}

@media (max-width: 640px) {
    .tml-hero-trust { gap: 12px; margin-top: 20px; }
    .tml-trust-num  { font-size: 18px; }
    .tml-trust-sep  { display: none; }
}

/* ── TASK 6 · Three Pillars — Lottie error fallback icons ── */
.topic-lottie-fb {
    width: 90px;
    height: 90px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(58,200,212,.07);
    border-radius: 50%;
    border: 1px solid rgba(58,200,212,.18);
    flex-shrink: 0;
}
.topic-lottie-fb svg {
    width: 46px;
    height: 46px;
    stroke: var(--cyan, #3AC8D4);
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
[data-theme="light"] .topic-lottie-fb {
    background: rgba(42,171,183,.06);
    border-color: rgba(42,171,183,.18);
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE REBUILD v2.3 — FirstPromoter-style hero, marquee, lab grid
   ═══════════════════════════════════════════════════════════════ */

/* Fallback: hide original theme hero if OB replacement fails */
section.hero[aria-labelledby="hero-heading"] {
    display: none !important;
}

/* ── HERO V2 ─────────────────────────────────────────────────── */
.tml-hero-v2 {
    position: relative;
    padding: 104px 7vw 84px;
    overflow: hidden;
    isolation: isolate;
    background: url('/wp-content/plugins/aaa-tml-overrides/assets/hero-bg-light.webp') 72% center/cover no-repeat;
}
[data-theme="dark"] .tml-hero-v2 {
    background: url('/wp-content/plugins/aaa-tml-overrides/assets/hero-bg-dark.webp') 72% center/cover no-repeat;
}
[data-theme="dark"] .tml-hero-v2::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(circle at 78% 45%, rgba(58,200,212,0.06) 0%, transparent 55%);
}
/* Teal glow blob — hidden: new background images include their own glow */
.tml-hero-glow {
    display: none;
}
/* Network dots pattern — hidden: new background images include circuit patterns */
.tml-hero-dots {
    display: none;
    position: absolute; right: -10%; top: 0;
    width: 70%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 2px, transparent 3px);
    background-size: 120px 120px;
    filter: blur(1px);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
    mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
    opacity: .22; pointer-events: none; z-index: 0;
}
/* Inline SVG network lines — hidden: new bg images have their own patterns */
.tml-hero-network-svg {
    display: none;
}
/* Canvas particles — hidden */
#tml-particle-canvas {
    display: none;
}
/* Grid overlay — hidden: new bg images already have grid/circuit detail */
.tml-hero-v2-overlay {
    display: none;
}
/* Hero inner: 2-column grid — left column has all content, right is empty (shows bg chip) */
.tml-hero-v2-inner {
    position: relative;
    z-index: 12;
    width: min(1480px, calc(100% - 80px));
    max-width: 1480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: min(660px, 55%) 1fr;
    column-gap: 48px;
    align-content: start;
}
/* All direct children go in left column */
.tml-hero-v2-inner > * {
    grid-column: 1;
}
.tml-hero-v2-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--cyan, #3AC8D4);
    opacity: .9;
    margin-bottom: 22px;
}
.tml-hero-v2-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(40px, 6.4vw, 82px);
    line-height: 1.04;
    font-weight: 480;
    letter-spacing: -.02em;
    margin: 0 0 26px;
    max-width: 16ch;
}
.tml-hero-v2-title span {
    display: block;
    color: var(--cyan, #3AC8D4);
    font-style: italic;
    font-weight: 400;
}
.tml-hero-v2-desc {
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.72;
    max-width: 68ch;
    opacity: .76;
    margin: 0 0 36px;
}
.tml-hero-v2-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.tml-hero-v2-btn-primary,
.tml-hero-v2-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 9px;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.tml-hero-v2-btn-primary {
    background: var(--cyan, #3AC8D4);
    color: #04121d;
    box-shadow: 0 10px 28px rgba(58,200,212,.28);
}
.tml-hero-v2-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(58,200,212,.40);
}
.tml-hero-v2-btn-secondary {
    border: 1px solid var(--border, rgba(58,200,212,.34));
    color: inherit;
}
.tml-hero-v2-btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--cyan, #3AC8D4);
}
.tml-hero-v2 .tml-hero-trust {
    margin-top: 40px;
    max-width: 620px;
}
.tml-hero-v2-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 56px;
    padding-top: 44px;
    border-top: 1px solid var(--border, rgba(58,200,212,.12));
}
.tml-hero-v2-feature h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 21px;
    font-weight: 460;
    margin: 0 0 10px;
}
.tml-hero-v2-feature p {
    font-size: 15px;
    line-height: 1.66;
    opacity: .68;
    margin: 0;
}
.tml-hero-v2-feature-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(58,200,212,.12);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
    flex-shrink: 0;
    overflow: hidden;
}
.tml-hero-v2-feature-icon img {
    width: 44px; height: 44px;
    object-fit: contain;
    border-radius: 50%;
}
[data-theme="dark"] .tml-hero-v2-feature-icon {
    background: rgba(58,200,212,.15);
    border: 1px solid rgba(58,200,212,.3);
}
[data-theme="dark"] .tml-hero-v2-feature-icon img {
    filter: brightness(0.85) saturate(1.3);
}
.tml-hero-v2-feature-icon svg {
    width: 22px; height: 22px;
    stroke: var(--cyan, #3AC8D4);
}
/* Lottie animated icons in hero features */
.tml-hero-v2-feature-icon dotlottie-player,
.tml-hero-v2-feature-icon .tml-lottie-icon {
    width: 44px;
    height: 44px;
    display: block;
}
/* Hide footer "Explore by topic" label */
.tml-footer-tags-label { display: none !important; }

@media (max-width: 900px) {
    .tml-hero-glow { width: 280px; height: 280px; }
    .tml-hero-network-svg { opacity: .5; }
}

/* Hero V2 — light mode */
[data-theme="light"] .tml-hero-v2-btn-primary {
    color: #fff;
    box-shadow: 0 10px 28px rgba(42,171,183,.26);
}
[data-theme="light"] .tml-hero-v2-features {
    border-top-color: rgba(42,171,183,.16);
}
/* Light mode text — dark enough to read on light circuit background */
[data-theme="light"] .tml-hero-v2-eyebrow {
    color: var(--cyan, #3AC8D4);
}
[data-theme="light"] .tml-hero-v2-title {
    color: #0d1530;
}
[data-theme="light"] .tml-hero-v2-title span {
    color: var(--cyan, #3AC8D4);
}
[data-theme="light"] .tml-hero-v2-desc {
    color: #2a3550;
    opacity: 0.9;
}

/* Scrim — left-to-right fade: strong left (text area) → transparent right (chip area)
   Right edge opacity reduced so chip/processor graphic is clearly visible */
[data-theme="light"] .tml-hero-v2::after {
    content: '';
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(90deg, rgba(248,251,255,0.98) 0%, rgba(248,251,255,0.96) 56%, rgba(248,251,255,0.72) 72%, rgba(248,251,255,0.34) 84%, rgba(248,251,255,0.12) 100%);
}
[data-theme="dark"] .tml-hero-v2::after {
    content: '';
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(90deg, rgba(4,10,26,0.98) 0%, rgba(4,10,26,0.96) 56%, rgba(4,10,26,0.72) 72%, rgba(4,10,26,0.34) 84%, rgba(4,10,26,0.12) 100%);
}

@media (max-width: 980px) {
    .tml-hero-v2::after {
        width: min(56vw, 420px);
        right: -18%;
        top: 12%;
        bottom: 20%;
        opacity: .58;
    }
    .tml-hero-v2-overlay::before {
        background-position: right -26vw center;
        background-size: min(86vw, 620px) auto;
        opacity: .34;
    }
    .tml-hero-v2-overlay::after {
        background-size: 80px 80px;
        opacity: .34;
    }
}

/* ── MARQUEE TICKER ──────────────────────────────────────────── */
.tml-marquee {
    position: relative;
    overflow: hidden;
    padding: 17px 0;
    border-top: 1px solid var(--border, rgba(58,200,212,.12));
    border-bottom: 1px solid var(--border, rgba(58,200,212,.12));
    background: rgba(58,200,212,.035);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.tml-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: tml-marquee-scroll 42s linear infinite;
}
.tml-marquee:hover .tml-marquee-track {
    animation-play-state: paused;
}
.tml-marquee-item {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 17px;
    font-style: italic;
    white-space: nowrap;
    padding: 0 4px;
    opacity: .62;
}
.tml-marquee-dot {
    color: var(--cyan, #3AC8D4);
    padding: 0 26px;
    font-size: 13px;
}
@keyframes tml-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
[data-theme="light"] .tml-marquee {
    background: rgba(42,171,183,.045);
}

/* ── LAB GRID (Three Pillars replacement) ────────────────────── */
.tml-lab {
    position: relative;
}
.tml-lab-intro {
    max-width: 720px;
    margin: 0 0 32px;
}
.tml-lab-h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.08;
    font-weight: 480;
    letter-spacing: -.02em;
    margin: 14px 0 16px;
}
.tml-lab-h2 span {
    display: block;
    color: var(--cyan, #3AC8D4);
    font-style: italic;
    font-weight: 400;
}
.tml-lab-intro p {
    font-size: 17px;
    line-height: 1.7;
    opacity: .72;
    margin: 0;
}
.tml-lab-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}
.tml-lab-tab {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 9px 17px;
    border-radius: 999px;
    border: 1px solid var(--border, rgba(58,200,212,.22));
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.tml-lab-tab:hover {
    border-color: var(--cyan, #3AC8D4);
}
.tml-lab-tab.is-active {
    background: var(--cyan, #3AC8D4);
    border-color: var(--cyan, #3AC8D4);
    color: #04121d;
}
[data-theme="light"] .tml-lab-tab.is-active {
    color: #fff;
}
.tml-lab-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.tml-lab-card {
    display: grid;
    grid-template-columns: 116px 1fr 40px;
    gap: 30px;
    align-items: center;
    padding: 28px 32px;
    border: 1px solid var(--border, rgba(58,200,212,.14));
    border-radius: 14px;
    background: var(--bg-elev, rgba(14,26,46,.5));
    text-decoration: none;
    color: inherit;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.tml-lab-card:hover {
    transform: translateY(-4px);
    border-color: var(--cyan, #3AC8D4);
    box-shadow: 0 22px 50px rgba(0,0,0,.28);
}
.tml-lab-card.is-hidden {
    display: none;
}
.tml-lab-icon {
    width: 116px;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(58,200,212,.07);
    border: 1px solid rgba(58,200,212,.16);
}
.tml-lab-icon svg {
    width: 52px;
    height: 52px;
    stroke: var(--cyan, #3AC8D4);
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tml-lab-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 2.4px;
    color: var(--cyan, #3AC8D4);
    text-transform: uppercase;
}
.tml-lab-body h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 27px;
    font-weight: 460;
    line-height: 1.18;
    margin: 9px 0 9px;
}
.tml-lab-body p {
    font-size: 15px;
    line-height: 1.65;
    opacity: .68;
    margin: 0;
}
.tml-lab-arrow {
    font-size: 26px;
    color: var(--cyan, #3AC8D4);
    justify-self: end;
    transition: transform .22s ease;
}
.tml-lab-card:hover .tml-lab-arrow {
    transform: translateX(6px);
}
[data-theme="light"] .tml-lab-card {
    background: #fff;
    border-color: rgba(42,171,183,.16);
    box-shadow: 0 14px 36px rgba(15,23,42,.06);
}
[data-theme="light"] .tml-lab-icon {
    background: rgba(42,171,183,.07);
    border-color: rgba(42,171,183,.16);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 860px) {
    .tml-hero-v2 { padding: 76px 26px 60px; }
    .tml-hero-v2-features { grid-template-columns: 1fr; gap: 22px; }
    .tml-hero-v2-btns { flex-direction: column; align-items: stretch; }
    .tml-hero-v2-btn-primary,
    .tml-hero-v2-btn-secondary { justify-content: center; }
    .tml-lab-card { grid-template-columns: 1fr; gap: 16px; }
    .tml-lab-icon { width: 76px; height: 76px; }
    .tml-lab-icon svg { width: 36px; height: 36px; }
    .tml-lab-arrow { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   ARTICLES ARCHIVE PAGE — Premium redesign
   ═══════════════════════════════════════════════════════════ */

/* New hero wrapper injected by JS */
.tml-arc-hero {
    padding: 64px 0 34px;
    background:
        radial-gradient(circle at 12% 10%, rgba(10,148,160,.08), transparent 34%),
        linear-gradient(180deg,#f7fcfd 0%,#ffffff 82%);
}
.tml-arc-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}
.tml-arc-eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(9,139,151,.10);
    color: #087f8c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.tml-arc-description {
    max-width: 880px;
    margin: 0;
    color: #162238;
    font-size: clamp(28px,4vw,54px);
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 650;
}
.tml-arc-description span { color: #087f8c; }
.tml-arc-topic-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(12,32,48,.08);
}
.tml-arc-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid rgba(12,32,48,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: #39465f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: .22s ease;
}
.tml-arc-pill:hover,
.tml-arc-pill.active {
    border-color: rgba(8,127,140,.38);
    background: rgba(8,127,140,.09);
    color: #087f8c;
}

/* Override articles section wrapper padding */
.blog .section, .archive .section {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Articles grid — override theme default */
.blog .articles-grid,
.archive .articles-grid {
    width: min(1180px, calc(100% - 48px)) !important;
    margin: 36px auto 72px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 24px !important;
    padding: 0 !important;
}
/* Article card — override theme dark defaults */
.blog .article-card,
.archive .article-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid rgba(12,32,48,.08) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.9) !important;
    box-shadow: 0 18px 45px rgba(15,40,60,.06) !important;
    padding: 0 !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}
.blog .article-card::before,
.archive .article-card::before { display: none !important; }
.blog .article-card:hover,
.archive .article-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(8,127,140,.24) !important;
    box-shadow: 0 24px 60px rgba(15,40,60,.10) !important;
}

/* Featured image injected by JS */
.tml-arc-img {
    display: block;
    width: calc(100% - 32px);
    margin: 16px 16px 0;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
}

/* Card meta */
.blog .card-meta, .archive .card-meta {
    font-family: 'Manrope', sans-serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .14em !important;
    color: #7a879b !important;
    margin-bottom: 12px !important;
    padding-top: 14px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
}
.blog .card-meta .sep,
.archive .card-meta .sep { color: rgba(122,135,155,.65) !important; }
.blog .card-meta .time,
.archive .card-meta .time { color: #7a879b !important; }

/* Card title */
.blog .card-title, .archive .card-title {
    font-size: clamp(17px,1.8vw,22px) !important;
    line-height: 1.2 !important;
    letter-spacing: -.025em !important;
    font-weight: 700 !important;
    color: #111a2f !important;
    margin: 0 0 10px !important;
    padding: 0 18px !important;
}
.blog .article-card:hover .card-title,
.archive .article-card:hover .card-title { color: #087f8c !important; }

/* Card excerpt */
.blog .card-excerpt, .archive .card-excerpt {
    color: #5e6b80 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin: 0 0 auto !important;
    padding: 0 18px !important;
    flex: 1 !important;
}

/* Card footer: hide "LAB NOTES", show Read button LEFT-aligned, no arrow */
.card-byline { display: none !important; }
.blog .card-footer, .archive .card-footer {
    display: flex !important;
    justify-content: flex-start !important;
    padding: 14px 18px 18px !important;
    border-top: 1px solid rgba(12,32,48,.06) !important;
    margin-top: 14px !important;
}
.card-arrow { display: none !important; }
.tml-arc-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(8,127,140,.45);
    border-radius: 10px;
    background: #fff;
    color: #087f8c;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    pointer-events: none;
}
/* Remove arrow from Read button via CSS */
.tml-arc-read-btn::after { display: none !important; }
.tml-arc-read-btn span[aria-hidden="true"] { display: none !important; }
.blog .article-card:hover .tml-arc-read-btn,
.archive .article-card:hover .tml-arc-read-btn {
    background: #087f8c;
    color: #fff;
    transform: translateY(-1px);
}
/* Dark mode: darken card background + read button style */
[data-theme="dark"] .post-card,
[data-theme="dark"] .tml-post-card,
[data-theme="dark"] .article-card {
    background: rgba(4, 10, 24, 0.82) !important;
    border-color: rgba(58,200,212,.14) !important;
}
[data-theme="dark"] .tml-arc-read-btn {
    background: rgba(4,10,24,0.6);
    color: #3AC8D4;
    border-color: rgba(58,200,212,.4);
}
[data-theme="dark"] .blog .article-card:hover .tml-arc-read-btn,
[data-theme="dark"] .archive .article-card:hover .tml-arc-read-btn {
    background: #087f8c;
    color: #fff;
}

/* Articles responsive */
@media (max-width: 1024px) {
    .blog .articles-grid,
    .archive .articles-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 680px) {
    .tml-arc-hero { padding: 42px 0 26px; }
    .tml-arc-container { width: calc(100% - 28px); }
    .tml-arc-description { font-size: clamp(24px,8vw,36px); }
    .tml-arc-topic-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .tml-arc-topic-menu::-webkit-scrollbar { display: none; }
    .blog .articles-grid,
    .archive .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        margin-top: 28px !important;
    }
}

/* ABOUT PAGE v2 */
.tml-about-v2 { max-width: 960px; margin: 0 auto; padding: 0 24px 80px; color: var(--tml-text); }
.tml-about-v2-hero { text-align: center; padding: 80px 0 48px; }
.tml-about-v2-eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tml-accent); margin-bottom: 16px; }
.tml-about-v2-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.18; margin-bottom: 20px; }
.tml-about-v2-title em { font-style: normal; color: var(--tml-accent); }
.tml-about-v2-sub { font-size: 1.1rem; color: var(--tml-muted); max-width: 640px; margin: 0 auto; line-height: 1.7; }
.tml-about-v2-mission { background: var(--tml-surface); border-left: 3px solid var(--tml-accent); border-radius: 8px; padding: 36px 40px; margin: 0 0 56px; }
.tml-about-v2-quote { font-size: 1.25rem; font-style: italic; font-weight: 600; margin: 0 0 20px; line-height: 1.55; color: var(--tml-text); }
.tml-about-v2-mission-body { color: var(--tml-muted); line-height: 1.75; margin: 0; }
.tml-about-v2-mission-body em { color: var(--tml-accent); font-style: normal; font-weight: 600; }
.tml-about-v2-stats { display: flex; align-items: center; justify-content: center; background: rgba(58,200,212,.05); border: 1px solid var(--tml-border); border-radius: 12px; padding: 28px 0; margin-bottom: 64px; }
.tml-about-v2-stat { text-align: center; flex: 1; }
.tml-about-v2-stat-n { font-size: 1.9rem; font-weight: 800; color: var(--tml-accent); display: block; }
.tml-about-v2-stat-l { font-size: .78rem; color: var(--tml-muted); letter-spacing: .06em; text-transform: uppercase; }
.tml-about-v2-stat-sep { width: 1px; height: 40px; background: var(--tml-border); flex-shrink: 0; }
.tml-about-v2-author { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; margin-bottom: 80px; }
.tml-about-v2-author-img-wrap { position: relative; }
.tml-about-v2-avatar { width: 100%; border-radius: 10px; display: block; aspect-ratio: 1; object-fit: cover; }
.tml-about-v2-author-badge { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); background: var(--tml-accent); color: #07111f; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; white-space: nowrap; }
.tml-about-v2-author-eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tml-accent); margin-bottom: 8px; }
.tml-about-v2-author-name { font-size: 2.2rem; font-weight: 800; margin: 0 0 4px; }
.tml-about-v2-author-role { font-size: .85rem; color: var(--tml-muted); margin: 0 0 24px; letter-spacing: .05em; }
.tml-about-v2-author-bio { color: var(--tml-muted); line-height: 1.8; margin-bottom: 16px; }
.tml-about-v2-author-bio em { color: var(--tml-text); font-style: normal; font-weight: 500; }
.tml-about-v2-author-links { display: flex; align-items: center; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.tml-about-v2-pillars { margin-bottom: 72px; }
.tml-about-v2-pillars-label,.tml-about-v2-principles-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tml-accent); margin-bottom: 8px; }
.tml-about-v2-pillars-title,.tml-about-v2-principles-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.tml-about-v2-pillars-desc { color: var(--tml-muted); margin-bottom: 36px; line-height: 1.7; }
.tml-about-v2-pillars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tml-about-v2-pillar { background: var(--tml-surface); border: 1px solid var(--tml-border); border-radius: 10px; padding: 28px; }
.tml-about-v2-pillar-num { font-size: .75rem; font-weight: 700; color: var(--tml-accent); letter-spacing: .1em; margin-bottom: 10px; }
.tml-about-v2-pillar h3 { font-size: 1rem; font-weight: 700; margin: 0 0 10px; }
.tml-about-v2-pillar p { font-size: .9rem; color: var(--tml-muted); line-height: 1.7; margin: 0; }
.tml-about-v2-principles { margin-bottom: 72px; }
.tml-about-v2-principles-title { margin-bottom: 32px; }
.tml-about-v2-principles-list { display: grid; gap: 24px; }
.tml-about-v2-principle { display: flex; gap: 20px; align-items: start; background: var(--tml-surface); border-radius: 8px; padding: 24px; }
.tml-about-v2-principle-icon { width: 28px; height: 28px; min-width: 28px; background: var(--tml-accent); color: #07111f; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; margin-top: 2px; }
.tml-about-v2-principle strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.tml-about-v2-principle p { color: var(--tml-muted); line-height: 1.7; margin: 0; font-size: .9rem; }
.tml-about-v2-cta-strip { text-align: center; background: var(--tml-surface); border: 1px solid var(--tml-border); border-radius: 14px; padding: 56px 40px; }
.tml-about-v2-cta-strip h2 { font-size: 1.8rem; margin-bottom: 12px; }
.tml-about-v2-cta-strip p { color: var(--tml-muted); margin-bottom: 28px; }
.tml-about-v2-cta-btns { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .tml-about-v2-author { grid-template-columns: 1fr; gap: 32px; }
  .tml-about-v2-avatar { max-width: 220px; }
  .tml-about-v2-pillars-grid { grid-template-columns: 1fr; }
  .tml-about-v2-stats { flex-wrap: wrap; gap: 12px; padding: 24px; }
  .tml-about-v2-stat-sep { display: none; }
  .tml-about-v2-stat { flex: 0 0 45%; }
}

/* NEWSLETTER PAGE v2 */
.tml-nl-page-v2 { max-width: 840px; margin: 0 auto; padding: 0 24px 80px; color: var(--tml-text); }
.tml-nl-v2-hero { text-align: center; padding: 80px 0 48px; }
.tml-nl-v2-badge { display: inline-block; background: rgba(58,200,212,.12); color: var(--tml-accent); border: 1px solid var(--tml-border); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 16px; border-radius: 20px; margin-bottom: 24px; }
.tml-nl-v2-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.18; margin-bottom: 20px; }
.tml-nl-v2-title em { font-style: normal; color: var(--tml-accent); }
.tml-nl-v2-sub { font-size: 1.05rem; color: var(--tml-muted); line-height: 1.75; max-width: 580px; margin: 0 auto 28px; }
.tml-nl-v2-price-tag { display: flex; align-items: center; gap: 12px; justify-content: center; }
.tml-nl-v2-price { font-size: 1.5rem; font-weight: 800; color: var(--tml-accent); }
.tml-nl-v2-price-note { font-size: .85rem; color: var(--tml-muted); }
.tml-nl-v2-form-wrap { background: var(--tml-surface); border: 1px solid var(--tml-border); border-radius: 14px; padding: 40px; margin-bottom: 48px; }
.tml-nl-v2-form-title { font-size: 1.2rem; font-weight: 700; text-align: center; margin-bottom: 24px; }
.tml-nl-v2-fields { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.tml-nl-v2-input { flex: 1 1 180px; background: rgba(255,255,255,.06); border: 1px solid var(--tml-border); color: var(--tml-text); border-radius: 6px; padding: 12px 16px; font-size: .95rem; outline: none; transition: border .2s; }
.tml-nl-v2-input:focus { border-color: var(--tml-accent); }
.tml-nl-v2-btn { background: var(--tml-accent); color: #07111f; font-weight: 700; font-size: .95rem; border: none; border-radius: 6px; padding: 12px 24px; cursor: pointer; white-space: nowrap; transition: opacity .2s; }
.tml-nl-v2-btn:hover { opacity: .88; }
.tml-nl-v2-btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 8px; display: inline-block; text-decoration: none; }
.tml-nl-v2-fine { font-size: .78rem; color: var(--tml-muted); text-align: center; margin: 0; }
.tml-nl-v2-stats { display: flex; align-items: center; justify-content: center; background: rgba(58,200,212,.04); border: 1px solid var(--tml-border); border-radius: 10px; padding: 24px; margin-bottom: 64px; }
.tml-nl-v2-stat { text-align: center; flex: 1; }
.tml-nl-v2-stat-n { font-size: 1.7rem; font-weight: 800; color: var(--tml-accent); display: block; }
.tml-nl-v2-stat-l { font-size: .75rem; color: var(--tml-muted); text-transform: uppercase; letter-spacing: .06em; }
.tml-nl-v2-stat-sep { width: 1px; height: 36px; background: var(--tml-border); flex-shrink: 0; }
.tml-nl-v2-inside { margin-bottom: 64px; }
.tml-nl-v2-inside-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tml-accent); margin-bottom: 8px; }
.tml-nl-v2-inside-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.tml-nl-v2-inside-desc { color: var(--tml-muted); line-height: 1.7; margin-bottom: 32px; }
.tml-nl-v2-tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tml-nl-v2-track { background: var(--tml-surface); border: 1px solid var(--tml-border); border-radius: 10px; padding: 24px; }
.tml-nl-v2-track-icon { font-size: 1.4rem; margin-bottom: 12px; color: var(--tml-accent); }
.tml-nl-v2-track h3 { font-size: .95rem; font-weight: 700; margin: 0 0 8px; }
.tml-nl-v2-track p { font-size: .85rem; color: var(--tml-muted); line-height: 1.7; margin: 0; }
.tml-nl-v2-sample { margin-bottom: 64px; }
.tml-nl-v2-sample-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tml-muted); margin-bottom: 16px; }
.tml-nl-v2-sample-card { background: #0e1c2e; border: 1px solid var(--tml-border); border-radius: 10px; overflow: hidden; }
.tml-nl-v2-sample-header { background: rgba(255,255,255,.04); border-bottom: 1px solid var(--tml-border); padding: 18px 24px; }
.tml-nl-v2-sample-from { font-size: .8rem; color: var(--tml-muted); margin-bottom: 6px; }
.tml-nl-v2-sample-subject { font-size: .95rem; font-weight: 600; }
.tml-nl-v2-sample-body { padding: 24px; }
.tml-nl-v2-sample-body p { font-size: .9rem; color: var(--tml-muted); line-height: 1.8; margin-bottom: 16px; }
.tml-nl-v2-sample-cta { font-size: .85rem; color: var(--tml-accent); font-weight: 600; }
.tml-nl-v2-proof { margin-bottom: 64px; }
.tml-nl-v2-proof-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tml-accent); margin-bottom: 24px; }
.tml-nl-v2-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tml-nl-v2-testimonial { background: var(--tml-surface); border: 1px solid var(--tml-border); border-radius: 10px; padding: 24px; }
.tml-nl-v2-testimonial p { font-size: .9rem; line-height: 1.7; font-style: italic; margin-bottom: 12px; }
.tml-nl-v2-testimonial cite { font-size: .78rem; color: var(--tml-muted); font-style: normal; }
.tml-nl-v2-bottom-cta { text-align: center; background: var(--tml-surface); border: 1px solid var(--tml-border); border-radius: 14px; padding: 56px 40px; }
.tml-nl-v2-bottom-cta h2 { font-size: 1.8rem; margin-bottom: 12px; }
.tml-nl-v2-bottom-cta p { color: var(--tml-muted); margin-bottom: 24px; }
@media (max-width: 640px) {
  .tml-nl-v2-tracks { grid-template-columns: 1fr; }
  .tml-nl-v2-testimonials { grid-template-columns: 1fr; }
  .tml-nl-v2-stats { flex-wrap: wrap; gap: 12px; }
  .tml-nl-v2-stat-sep { display: none; }
  .tml-nl-v2-stat { flex: 0 0 45%; }
  .tml-nl-v2-fields { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   v1.7.0 — TASK 2c: 3-COLUMN SINGLE ARTICLE LAYOUT
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .tml-3col-wrap {
    display: grid;
    grid-template-columns: 240px 1fr 260px;
    gap: 40px;
    align-items: start;
  }
  .tml-col-left {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .tml-col-left::-webkit-scrollbar { display: none; }
  .tml-col-right {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .tml-col-right::-webkit-scrollbar { display: none; }
  /* Related posts stack vertically in right sidebar */
  .tml-col-right .tml-related-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .tml-col-right .tml-related-card {
    width: 100% !important;
  }
  /* TOC in left sidebar: vertical list style */
  .tml-col-left .tml-toc {
    background: var(--tml-surface);
    border: 1px solid var(--tml-border);
    border-radius: 12px;
    padding: 20px;
  }
  .tml-col-left .tml-toc-title {
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tml-accent);
    margin-bottom: 14px;
    font-weight: 600;
  }
  .tml-col-left .tml-toc-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .tml-col-left .tml-toc-item {
    border-left: 2px solid var(--tml-border);
    padding: 8px 12px;
    font-size: .82rem;
    color: var(--tml-muted);
    line-height: 1.5;
    transition: border-color .2s, color .2s;
  }
  .tml-col-left .tml-toc-item:hover,
  .tml-col-left .tml-toc-item.tml-toc-active {
    border-left-color: var(--tml-accent);
    color: var(--tml-text);
  }
  .tml-col-left .tml-toc-link {
    color: inherit;
    text-decoration: none;
  }
}
@media (max-width: 1023px) {
  .tml-3col-wrap { display: block; }
  .tml-col-left { margin-bottom: 32px; }
  .tml-col-right { margin-top: 40px; }
}

/* ═══════════════════════════════════════════════════════════
   TASK 3: ABOUT PAGE v2
   ═══════════════════════════════════════════════════════════ */
.tml-about-v2 { background: var(--tml-bg); color: var(--tml-text); padding: 0 0 80px; }

/* Hero */
.tml-about-v2-hero { max-width: 1280px; margin: 0 auto; padding: 80px 40px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tml-about-v2-eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tml-accent); margin-bottom: 16px; font-weight: 600; }
.tml-about-v2-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.tml-about-v2-hero-subtitle { font-size: 1.1rem; font-style: italic; color: var(--tml-accent); margin-bottom: 20px; }
.tml-about-v2-hero-desc { font-size: .95rem; color: var(--tml-muted); line-height: 1.8; margin-bottom: 32px; max-width: 520px; }
.tml-about-v2-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.tml-about-v2-btn-primary { background: var(--tml-accent); color: #07111f; padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: .9rem; text-decoration: none; transition: opacity .2s; }
.tml-about-v2-btn-primary:hover { opacity: .85; }
.tml-about-v2-btn-ghost { border: 1px solid var(--tml-accent); color: var(--tml-accent); padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .2s; }
.tml-about-v2-btn-ghost:hover { background: rgba(58,200,212,.1); }

/* Feature image with stacked cards */
.tml-about-v2-hero-right { position: relative; }
.tml-about-v2-hero-img { width: 100%; border-radius: 16px; overflow: hidden; background: var(--tml-surface); border: 1px solid var(--tml-border); min-height: 300px; display: flex; align-items: center; justify-content: center; }
.tml-about-v2-hero-img img { width: 100%; height: auto; border-radius: 16px; }
.tml-about-v2-stage-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.tml-about-v2-stage-card { background: var(--tml-surface); border: 1px solid var(--tml-border); border-radius: 10px; padding: 14px 20px; display: flex; align-items: center; gap: 14px; font-size: .88rem; font-weight: 600; }
.tml-about-v2-stage-num { width: 28px; height: 28px; border-radius: 50%; background: var(--tml-accent); color: #07111f; font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Mission */
.tml-about-v2-mission { background: rgba(58,200,212,.05); border-top: 1px solid var(--tml-border); border-bottom: 1px solid var(--tml-border); padding: 80px 40px; text-align: center; }
.tml-about-v2-mission h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 16px; }
.tml-about-v2-mission p { font-size: 1rem; color: var(--tml-muted); max-width: 640px; margin: 0 auto 56px; line-height: 1.8; }
.tml-about-v2-principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1280px; margin: 0 auto; }
.tml-about-v2-principle { background: var(--tml-surface); border: 1px solid var(--tml-border); border-radius: 12px; padding: 28px 24px; text-align: left; }
.tml-about-v2-principle-icon { font-size: 1.6rem; margin-bottom: 14px; }
.tml-about-v2-principle h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.tml-about-v2-principle p { font-size: .85rem; color: var(--tml-muted); line-height: 1.7; }

/* Approach steps */
.tml-about-v2-approach { max-width: 1280px; margin: 0 auto; padding: 80px 40px; }
.tml-about-v2-approach > .tml-about-v2-eyebrow { text-align: center; margin-bottom: 8px; }
.tml-about-v2-approach > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 48px; }
.tml-about-v2-steps { display: flex; flex-direction: column; gap: 0; position: relative; max-width: 800px; margin: 0 auto; }
.tml-about-v2-step { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--tml-border); }
.tml-about-v2-step:last-child { border-bottom: none; }
.tml-about-v2-step-num { font-size: 2.5rem; font-weight: 800; color: rgba(58,200,212,.25); line-height: 1; flex-shrink: 0; width: 60px; }
.tml-about-v2-step-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.tml-about-v2-step-body p { font-size: .9rem; color: var(--tml-muted); line-height: 1.75; }

/* Stats & team */
.tml-about-v2-team { background: rgba(58,200,212,.05); border-top: 1px solid var(--tml-border); padding: 80px 40px; }
.tml-about-v2-team-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.tml-about-v2-team h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.tml-about-v2-team p { font-size: .95rem; color: var(--tml-muted); line-height: 1.8; margin-bottom: 24px; }
.tml-about-v2-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tml-about-v2-stat { background: var(--tml-surface); border: 1px solid var(--tml-border); border-radius: 12px; padding: 24px; }
.tml-about-v2-stat-num { font-size: 2rem; font-weight: 800; color: var(--tml-accent); line-height: 1; }
.tml-about-v2-stat-label { font-size: .78rem; color: var(--tml-muted); margin-top: 6px; }

/* Newsletter CTA strip */
.tml-about-v2-cta-strip { max-width: 1280px; margin: 80px auto 0; padding: 0 40px; }
.tml-about-v2-cta-strip-inner { background: linear-gradient(135deg, rgba(58,200,212,.12) 0%, rgba(58,200,212,.04) 100%); border: 1px solid var(--tml-border); border-radius: 16px; padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.tml-about-v2-cta-strip h2 { font-size: 1.8rem; margin-bottom: 8px; }
.tml-about-v2-cta-strip p { color: var(--tml-muted); font-size: .95rem; }

@media (max-width: 900px) {
  .tml-about-v2-hero { grid-template-columns: 1fr; padding: 60px 24px 40px; gap: 40px; }
  .tml-about-v2-principles { grid-template-columns: 1fr 1fr; }
  .tml-about-v2-team-inner { grid-template-columns: 1fr; gap: 40px; }
  .tml-about-v2-mission, .tml-about-v2-approach, .tml-about-v2-team { padding: 60px 24px; }
  .tml-about-v2-cta-strip { padding: 0 24px; }
  .tml-about-v2-cta-strip-inner { padding: 40px 28px; flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .tml-about-v2-principles { grid-template-columns: 1fr; }
  .tml-about-v2-stats-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   TASK 4: NEWSLETTER PAGE v3 — Weekend Briefing
   ═══════════════════════════════════════════════════════════ */
.tml-nl-v3 { background: var(--tml-bg); color: var(--tml-text); padding: 0 0 80px; }

/* Hero two-column */
.tml-nl-v3-hero { max-width: 1280px; margin: 0 auto; padding: 80px 40px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.tml-nl-v3-eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tml-accent); margin-bottom: 16px; font-weight: 600; }
.tml-nl-v3-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; margin-bottom: 28px; }

/* Stats row */
.tml-nl-v3-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.tml-nl-v3-stat { background: var(--tml-surface); border: 1px solid var(--tml-border); border-radius: 10px; padding: 16px; text-align: center; }
.tml-nl-v3-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--tml-accent); display: block; }
.tml-nl-v3-stat-label { font-size: .72rem; color: var(--tml-muted); margin-top: 4px; }

/* Price + form */
.tml-nl-v3-price { font-size: .9rem; color: var(--tml-muted); margin-bottom: 20px; }
.tml-nl-v3-price strong { color: var(--tml-text); font-size: 1.1rem; }
.tml-nl-v3-form { display: flex; gap: 10px; flex-wrap: wrap; }
.tml-nl-v3-input { flex: 1; min-width: 200px; background: rgba(255,255,255,.06); border: 1px solid var(--tml-border); border-radius: 8px; padding: 14px 18px; color: var(--tml-text); font-size: .9rem; outline: none; }
.tml-nl-v3-input:focus { border-color: var(--tml-accent); }
.tml-nl-v3-submit { background: var(--tml-accent); color: #07111f; padding: 14px 24px; border-radius: 8px; font-weight: 700; font-size: .9rem; border: none; cursor: pointer; white-space: nowrap; transition: opacity .2s; }
.tml-nl-v3-submit:hover { opacity: .85; }
.tml-nl-v3-privacy { font-size: .75rem; color: var(--tml-muted); margin-top: 10px; }

/* Preview card (right column) */
.tml-nl-v3-preview { background: var(--tml-surface); border: 1px solid var(--tml-border); border-radius: 16px; overflow: hidden; max-height: 520px; }
.tml-nl-v3-preview-header { background: rgba(58,200,212,.1); border-bottom: 1px solid var(--tml-border); padding: 16px 24px; display: flex; align-items: center; gap: 12px; }
.tml-nl-v3-preview-badge { background: var(--tml-accent); color: #07111f; font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: .06em; text-transform: uppercase; }
.tml-nl-v3-preview-title { font-size: .95rem; font-weight: 600; }
.tml-nl-v3-preview-sections { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.tml-nl-v3-preview-section { border-left: 3px solid var(--tml-accent); padding-left: 14px; }
.tml-nl-v3-preview-section-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tml-accent); margin-bottom: 4px; font-weight: 600; }
.tml-nl-v3-preview-section p { font-size: .82rem; color: var(--tml-muted); line-height: 1.6; }
.tml-nl-v3-preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 24px 24px; }
.tml-nl-v3-preview-card { background: rgba(255,255,255,.04); border: 1px solid var(--tml-border); border-radius: 8px; padding: 12px; }
.tml-nl-v3-preview-card-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tml-accent); margin-bottom: 6px; }
.tml-nl-v3-preview-card p { font-size: .78rem; color: var(--tml-muted); line-height: 1.5; }

/* What you'll get */
.tml-nl-v3-features { background: rgba(58,200,212,.04); border-top: 1px solid var(--tml-border); padding: 80px 40px; }
.tml-nl-v3-features-inner { max-width: 1280px; margin: 0 auto; }
.tml-nl-v3-features-eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tml-accent); text-align: center; margin-bottom: 8px; font-weight: 600; }
.tml-nl-v3-features h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); text-align: center; margin-bottom: 40px; }
.tml-nl-v3-features-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tml-nl-v3-feature-card { background: var(--tml-surface); border: 1px solid var(--tml-border); border-radius: 12px; padding: 24px 20px; }
.tml-nl-v3-feature-icon { font-size: 1.4rem; margin-bottom: 12px; }
.tml-nl-v3-feature-card h3 { font-size: .9rem; font-weight: 700; margin-bottom: 8px; }
.tml-nl-v3-feature-card p { font-size: .8rem; color: var(--tml-muted); line-height: 1.65; }

/* Personalization */
.tml-nl-v3-personal { max-width: 1280px; margin: 0 auto; padding: 80px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.tml-nl-v3-personal h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 16px; }
.tml-nl-v3-personal p { font-size: .95rem; color: var(--tml-muted); line-height: 1.8; margin-bottom: 32px; }
.tml-nl-v3-topics { display: flex; flex-wrap: wrap; gap: 10px; }
.tml-nl-v3-topic { background: rgba(58,200,212,.1); border: 1px solid var(--tml-border); border-radius: 20px; padding: 8px 18px; font-size: .82rem; color: var(--tml-accent); cursor: pointer; transition: background .2s; }
.tml-nl-v3-topic:hover, .tml-nl-v3-topic.active { background: rgba(58,200,212,.25); }
.tml-nl-v3-personal-preview { background: var(--tml-surface); border: 1px solid var(--tml-border); border-radius: 14px; padding: 28px; }

/* Social proof */
.tml-nl-v3-proof { background: rgba(58,200,212,.04); border-top: 1px solid var(--tml-border); border-bottom: 1px solid var(--tml-border); padding: 60px 40px; }
.tml-nl-v3-proof-inner { max-width: 1280px; margin: 0 auto; }
.tml-nl-v3-proof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px; }
.tml-nl-v3-proof-stat { text-align: center; }
.tml-nl-v3-proof-stat-num { font-size: 2.4rem; font-weight: 800; color: var(--tml-accent); }
.tml-nl-v3-proof-stat-label { font-size: .82rem; color: var(--tml-muted); margin-top: 6px; }
.tml-nl-v3-testimonial { max-width: 680px; margin: 0 auto; text-align: center; }
.tml-nl-v3-testimonial blockquote { font-size: 1.1rem; font-style: italic; line-height: 1.75; margin-bottom: 20px; color: var(--tml-text); }
.tml-nl-v3-testimonial cite { font-size: .82rem; color: var(--tml-muted); font-style: normal; }

@media (max-width: 900px) {
  .tml-nl-v3-hero { grid-template-columns: 1fr; padding: 60px 24px 40px; gap: 40px; }
  .tml-nl-v3-stats { grid-template-columns: repeat(2, 1fr); }
  .tml-nl-v3-features-grid { grid-template-columns: repeat(2, 1fr); }
  .tml-nl-v3-personal { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; }
  .tml-nl-v3-features, .tml-nl-v3-proof { padding: 60px 24px; }
  .tml-nl-v3-proof-stats { grid-template-columns: repeat(2, 1fr); }
  .tml-nl-v3-preview-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tml-nl-v3-stats { grid-template-columns: 1fr 1fr; }
  .tml-nl-v3-features-grid { grid-template-columns: 1fr; }
  .tml-nl-v3-proof-stats { grid-template-columns: 1fr 1fr; }
}

/* ======================================================================
   v2.6.1 MOCK-FIRST POLISH
   Shared by local staging mocks and the WordPress plugin.
   ====================================================================== */
:root,
[data-theme="light"] {
  --tml-bg: #f6fbfd;
  --tml-surface: rgba(255,255,255,.82);
  --tml-surface-strong: #fff;
  --tml-text: #101827;
  --tml-muted: #52627a;
  --tml-border: rgba(0,126,145,.17);
  --tml-accent: #0098a8;
  --tml-accent-2: #39c7d4;
  --tml-ink: #101827;
  --tml-shadow: 0 18px 48px rgba(17,42,61,.08);
}

body.tml-mock-page {
  margin: 0;
  background:
    radial-gradient(ellipse at 88% 8%, rgba(57,199,212,.16), transparent 34%),
    linear-gradient(180deg, #f9fdff 0%, #eef8fb 100%);
  color: var(--tml-text);
}

.tml-mock-page *,
.tml-mock-page *::before,
.tml-mock-page *::after { box-sizing: border-box; }

.tml-mock-page [hidden],
[hidden].tml-menu-panel { display: none !important; }

.tml-mock-page a { color: inherit; }

.tml-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(0,126,145,.16);
  backdrop-filter: blur(18px);
}

.tml-site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.05;
}

.tml-site-logo img {
  display: block;
  width: 142px;
  max-height: 46px;
  object-fit: contain;
}

.tml-logo-fallback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.tml-logo-fallback b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #111827 0%, #111827 42%, #0aa4b4 42%, #0aa4b4 100%);
  color: #fff;
  border-radius: 4px;
}

.tml-site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.tml-site-nav a,
.nav-links a {
  position: relative;
  color: #172033;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
}

.tml-site-nav a[aria-current="page"]::after,
.nav-links a[aria-current="page"]::after,
.tml-site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 2px;
  background: var(--tml-accent);
}

.tml-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tml-icon-btn,
.tml-menu-toggle,
.tml-signin-btn,
.tml-mock-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(0,126,145,.24);
  border-radius: 6px;
  background: rgba(255,255,255,.72);
  color: #101827;
  cursor: pointer;
  text-decoration: none;
}

.tml-menu-toggle svg,
.tml-icon-btn svg,
.tml-signin-btn svg,
.tml-mock-signin svg { width: 18px; height: 18px; }

.tml-menu-toggle { display: none; padding: 0; }

.tml-menu-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 36px;
  width: min(1120px, calc(100vw - 48px));
  margin: 28px auto;
  padding: 34px;
  border: 1px solid var(--tml-border);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--tml-shadow);
}

.tml-menu-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tml-menu-list a,
.nav-drawer a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
}

.tml-menu-list a:hover,
.nav-drawer a:hover,
.tml-menu-list a.is-active {
  border-color: rgba(0,151,168,.22);
  background: rgba(0,151,168,.06);
}

.tml-menu-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0,126,145,.16);
  border-radius: 8px;
  color: var(--tml-accent);
  background: rgba(255,255,255,.72);
}

.tml-menu-kicker,
.tml-arc-eyebrow,
.tml-section-kicker {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--tml-accent);
  text-transform: uppercase;
  font-weight: 700;
}

.tml-menu-card {
  min-height: 206px;
  padding: 30px;
  border: 1px solid rgba(0,126,145,.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(224,247,252,.82)),
    radial-gradient(circle at 88% 72%, rgba(0,151,168,.18), transparent 30%);
  overflow: hidden;
}

.tml-menu-card h2,
.tml-menu-card h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.18;
}

.tml-menu-card p { margin: 0; color: var(--tml-muted); line-height: 1.65; }

.nav .mega-menu,
.nav-mega,
.menu-mega,
.nav-promo,
.mega-promo { display: none !important; }

.nav-drawer a:not([href="/"]):not([href="/blog/"]):not([href="/about/"]):not([href="/contact/"]):not([href="/lab/"]) {
  display: none !important;
}

.nav-drawer a[href="/lab/"],
.drawer-lab-link {
  display: grid;
}

/* Blog archive */
.tml-arc-hero {
  padding: clamp(54px, 8vw, 92px) clamp(22px, 5vw, 72px) 24px;
  background:
    radial-gradient(ellipse at 86% 0%, rgba(57,199,212,.18), transparent 34%),
    linear-gradient(180deg, #f8fdff, #f3fbfd);
}

.tml-arc-container {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.tml-arc-description {
  max-width: 920px;
  margin: 12px 0 28px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(34px, 4.5vw, 66px);
  line-height: 1.06;
  color: #121827;
}

.tml-arc-description span { color: var(--tml-accent); font-style: italic; }

.tml-arc-topic-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tml-arc-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(0,126,145,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #52627a;
  text-decoration: none;
}

.tml-arc-pill.active,
.tml-arc-pill:hover {
  color: #fff;
  background: var(--tml-accent);
  border-color: var(--tml-accent);
}

.blog .articles-grid,
.archive .articles-grid,
.tml-mock-blog .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(1280px, calc(100% - 48px));
  margin: 40px auto 90px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(0,126,145,.15);
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 42px rgba(17,42,61,.06);
  text-decoration: none;
}

.blog .article-card .tml-card-thumb-wrap,
.archive .article-card .tml-card-thumb-wrap,
.blog .article-card .tml-card-img,
.archive .article-card .tml-card-img,
.blog .article-card figure,
.archive .article-card figure {
  display: none !important;
}

.article-card > img.tml-arc-img:first-child {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.article-card .card-meta,
.article-card .card-title,
.article-card .card-excerpt,
.article-card .card-footer {
  margin-left: 24px;
  margin-right: 24px;
}

.article-card .card-meta {
  margin-top: 22px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: .14em;
  color: #768399;
  text-transform: uppercase;
}

.article-card .card-title {
  margin-top: 14px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.13;
}

.article-card .card-excerpt {
  margin-top: 12px;
  color: var(--tml-muted);
  line-height: 1.65;
}

.article-card .card-footer {
  margin-top: auto;
  padding: 22px 0 24px;
  color: var(--tml-accent);
  font-weight: 700;
}

/* Single article 3-column */
@media (min-width: 1024px) {
  .single-wrap:has(.tml-3col-wrap),
  .tml-mock-single .single-wrap {
    max-width: 1320px !important;
    padding: 48px 24px 96px !important;
  }

  .tml-3col-wrap {
    grid-template-columns: minmax(220px, 260px) minmax(0, 720px) minmax(240px, 300px) !important;
    gap: clamp(28px, 3vw, 42px) !important;
  }

  .tml-col-left,
  .tml-col-right {
    top: 96px !important;
  }

  .tml-col-left .tml-toc {
    border-radius: 12px;
    padding: 24px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.94), rgba(226,247,252,.88)),
      radial-gradient(circle at 100% 100%, rgba(0,151,168,.12), transparent 42%);
    border: 1px solid rgba(0,126,145,.18);
    box-shadow: var(--tml-shadow);
  }

  .tml-col-left .tml-toc-label,
  .tml-col-left .tml-toc-title {
    display: block;
    margin: 0 0 20px;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12px;
    letter-spacing: .18em;
    color: var(--tml-accent);
    text-transform: uppercase;
  }

  .tml-col-left .tml-toc-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .tml-col-left .tml-toc-card,
  .tml-col-left .tml-toc-item {
    display: grid;
    grid-template-columns: 34px 1fr !important;
    gap: 12px;
    min-height: auto !important;
    padding: 14px 0;
    border-left: 2px solid rgba(0,151,168,.24);
    border-bottom: 1px solid rgba(0,126,145,.14);
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #162033;
    text-decoration: none;
  }

  .tml-col-left .tml-toc-card:last-child,
  .tml-col-left .tml-toc-item:last-child { border-bottom: 0; }

  .tml-col-left .tml-toc-num,
  .tml-col-left .tml-toc-index {
    color: var(--tml-accent);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-weight: 800;
    text-align: center;
  }

  .tml-col-left .tml-toc-text { line-height: 1.45; }

  .tml-col-center {
    min-width: 0;
    font-size: 18px;
    line-height: 1.82;
  }

  .tml-col-center h2 {
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid rgba(0,126,145,.18);
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(28px, 2.7vw, 42px);
    line-height: 1.14;
  }

  .tml-col-right .tml-related {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .tml-col-right .tml-related-hd { margin-bottom: 18px; }
  .tml-col-right .tml-rel-eye { display: none; }

  .tml-col-right .tml-rel-title {
    margin: 6px 0 0;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--tml-accent);
  }

  .tml-col-right .tml-related-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .tml-col-right .tml-rel-card {
    display: block !important;
    width: 100% !important;
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid rgba(0,126,145,.15);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17,42,61,.08);
  }

  .tml-col-right .tml-rel-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
  }

  .tml-col-right .tml-rel-meta,
  .tml-col-right .tml-rel-h,
  .tml-col-right .tml-rel-ex {
    margin-left: 18px;
    margin-right: 18px;
  }

  .tml-col-right .tml-rel-meta {
    margin-top: 14px;
    font-size: 12px;
    color: #7b8799;
  }

  .tml-col-right .tml-rel-h {
    font-size: 18px;
    line-height: 1.3;
  }
}

@media (max-width: 1023px) {
  .tml-3col-wrap { display: block !important; }
  .tml-col-left,
  .tml-col-right {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .tml-col-left .tml-toc {
    margin: 0 0 32px;
    padding: 22px;
    color: #162033 !important;
    background: rgba(255,255,255,.88) !important;
    border: 1px solid rgba(0,126,145,.18) !important;
    border-radius: 12px !important;
  }

  .tml-col-left .tml-toc-label,
  .tml-col-left .tml-toc-title {
    color: var(--tml-accent) !important;
  }

  .tml-col-left .tml-toc-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .tml-col-left .tml-toc-card,
  .tml-col-left .tml-toc-item {
    display: grid !important;
    grid-template-columns: 34px 1fr !important;
    min-height: auto !important;
    padding: 14px 0 !important;
    color: #162033 !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(0,126,145,.14) !important;
    box-shadow: none !important;
  }

  .tml-col-left .tml-toc-num,
  .tml-col-left .tml-toc-index {
    color: var(--tml-accent) !important;
  }
}

/* Homepage hero and tools */
.tml-hero-v2 {
  min-height: min(820px, calc(100vh - 72px));
  padding-top: clamp(70px, 8vw, 120px);
  padding-bottom: clamp(64px, 7vw, 96px);
}

.tml-hero-v2-inner {
  width: min(1480px, calc(100% - 80px));
  max-width: 1480px;
}

.tml-hero-v2-title {
  max-width: 19ch;
  font-size: clamp(48px, 6.3vw, 92px);
  letter-spacing: 0;
}

.tml-hero-v2-title span { max-width: 22ch; }

.tml-hero-v2-desc { max-width: 62ch; opacity: 1; }
[data-theme="light"] .tml-hero-v2-desc { color: #2a3550; }
[data-theme="dark"] .tml-hero-v2-desc { color: inherit; }

.tml-hero-v2-features {
  width: min(720px, 100%);
  border-top-color: rgba(0,126,145,.14);
}

.tml-lab {
  max-width: 1320px;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

.tml-lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.tml-lab-card {
  min-height: 260px;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
}

.tml-lab-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 26px;
  background: rgba(0,151,168,.08);
}

.tml-lab-card dotlottie-player {
  width: 68px !important;
  height: 68px !important;
}

.tml-lab-video-icon {
  display: block;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(0,151,168,.18);
}

/* About and newsletter pages */
.tml-about-v2,
.tml-nl-v3 {
  background:
    radial-gradient(ellipse at 88% 4%, rgba(57,199,212,.16), transparent 32%),
    linear-gradient(180deg, #f9fdff 0%, #eff8fb 100%);
  color: var(--tml-text);
}

.tml-about-v2-hero,
.tml-nl-v3-hero {
  max-width: 1360px;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1.05fr);
  gap: clamp(36px, 5vw, 72px);
}

.tml-about-v2-hero h1,
.tml-nl-v3-hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(46px, 5vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 480;
}

.tml-about-v2-hero-subtitle,
.tml-nl-v3-hero h1 em,
.tml-nl-v3-price strong {
  color: var(--tml-accent);
}

.tml-about-v2-mission-card,
.tml-about-v2-principle,
.tml-about-v2-step,
.tml-about-v2-team-card,
.tml-nl-v3-stat,
.tml-nl-v3-feature-card,
.tml-nl-v3-preview,
.tml-nl-v3-personal-preview {
  background: rgba(255,255,255,.82);
  border-color: rgba(0,126,145,.16);
  box-shadow: 0 14px 38px rgba(17,42,61,.05);
}

.tml-nl-v3-input {
  background: rgba(255,255,255,.92);
  color: var(--tml-text);
}

.tml-nl-v3-submit,
.tml-about-v2-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0098a8, #05b8c8);
}

.tml-nl-v3-preview-card {
  background: rgba(255,255,255,.76);
}

.tml-newsletter-full {
  padding-bottom: 60px;
}

.tml-newsletter-full .tml-nl-v3-features,
.tml-newsletter-full .tml-nl-v3-proof {
  background: rgba(221,246,250,.42);
}

.tml-mock-band {
  width: min(1360px, calc(100% - 48px));
  margin: 28px auto;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(0,126,145,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--tml-shadow);
}

.tml-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tml-mini-card {
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(0,126,145,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
}

.tml-mini-card h3 {
  margin: 8px 0;
  font-size: 18px;
}

.tml-mini-card p {
  margin: 0;
  color: var(--tml-muted);
  line-height: 1.55;
}

.tml-flow-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.tml-flow-step {
  position: relative;
  padding: 22px;
  text-align: center;
}

.tml-flow-step b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(0,151,168,.12);
  color: var(--tml-accent);
  font-family: "JetBrains Mono", Consolas, monospace;
}

@media (max-width: 1100px) {
  .blog .articles-grid,
  .archive .articles-grid,
  .tml-mock-blog .articles-grid,
  .tml-mini-grid,
  .tml-flow-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tml-menu-panel { grid-template-columns: 1fr; }
  .tml-site-nav { display: none; }
  .tml-menu-toggle { display: inline-flex; }
  .tml-lab-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .tml-site-header {
    min-height: 68px;
    padding: 0 16px;
  }

  .tml-site-logo img { width: 132px; }
  .tml-icon-btn { display: none; }
  .tml-mock-signin { padding: 0 12px; }

  .tml-hero-v2 {
    min-height: auto;
    padding: 72px 22px 58px;
  }

  .tml-hero-v2-title {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 1.05;
    max-width: 11ch;
  }

  .tml-hero-v2-title span { max-width: 11ch; }
  .tml-hero-v2-desc { font-size: 18px; line-height: 1.58; }
  .tml-hero-v2-features { grid-template-columns: 1fr; }
  .tml-hero-network-svg { opacity: .36; }

  .blog .articles-grid,
  .archive .articles-grid,
  .tml-mock-blog .articles-grid,
  .tml-mini-grid,
  .tml-flow-row {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
  }

  .tml-arc-description {
    font-size: clamp(34px, 11vw, 48px);
  }

  .tml-about-v2-hero,
  .tml-nl-v3-hero {
    grid-template-columns: 1fr;
    padding: 54px 20px 36px;
  }

  .tml-about-v2-hero h1,
  .tml-nl-v3-hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .tml-menu-panel,
  .tml-mock-band {
    width: calc(100% - 32px);
    padding: 22px;
    border-radius: 14px;
  }
}

/* Dedicated Lab page */
.tml-is-lab-page .entry-title,
.tml-is-lab-page .page-title,
.tml-is-lab-page .single-title,
.tml-is-lab-page main > header {
  display: none !important;
}

.tml-lab-page {
  --tml-bg: #f6fbfd;
  --tml-bg-soft: #eaf7fb;
  --tml-teal: #0097a7;
  --tml-teal-dark: #007c89;
  --tml-cyan: #65dff2;
  --tml-text: #07111f;
  --tml-muted: #5d6f86;
  --tml-border: rgba(0, 151, 167, 0.22);
  --tml-lab-shadow: 0 18px 48px rgba(17, 42, 61, .08);
  color: var(--tml-text);
  background:
    linear-gradient(180deg, rgba(246,251,253,.98), rgba(234,247,251,.96)),
    linear-gradient(90deg, rgba(0,151,167,.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,151,167,.04) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.tml-lab-page *,
.tml-lab-page *::before,
.tml-lab-page *::after {
  box-sizing: border-box;
}

.tml-lab-page-main {
  width: 100%;
  min-height: calc(100vh - 72px);
  padding: 0 clamp(20px, 4vw, 64px) 42px;
}

.tml-lab-hero {
  position: relative;
  width: min(1520px, 100%);
  min-height: clamp(480px, 44vw, 520px);
  margin: 0 auto;
  padding: clamp(32px, 4vw, 54px) 0 18px;
  isolation: isolate;
}

.tml-lab-circuit-field,
.tml-lab-workflow-circuit-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .8;
  background:
    linear-gradient(90deg, transparent 0 78%, rgba(101,223,242,.22) 78% 78.25%, transparent 78.25%),
    linear-gradient(180deg, transparent 0 44%, rgba(0,151,167,.14) 44% 44.3%, transparent 44.3%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0,151,167,.07) 47px, transparent 48px),
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(0,151,167,.06) 47px, transparent 48px);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}

.tml-lab-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .45fr) minmax(520px, .55fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
}

.tml-lab-copy {
  min-width: 0;
}

.tml-lab-title-row {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
  margin-bottom: 10px;
}

.tml-lab-title-row h1 {
  margin: 0;
  color: var(--tml-text);
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 7.2vw, 108px);
  font-weight: 480;
  line-height: .92;
  letter-spacing: 0;
}

.tml-lab-flask {
  flex: 0 0 auto;
  width: clamp(58px, 6vw, 86px);
  height: clamp(58px, 6vw, 86px);
  color: var(--tml-teal);
  filter: drop-shadow(0 0 12px rgba(101,223,242,.32));
}

.tml-lab-subtitle {
  margin: 0 0 28px;
  max-width: 28ch;
  color: var(--tml-teal);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 2.8vw, 40px);
  font-style: italic;
  line-height: 1.08;
}

.tml-lab-description {
  max-width: 560px;
  margin: 0;
  color: var(--tml-muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.62;
}

.tml-lab-coming-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 24px;
  width: min(560px, 100%);
  min-height: 112px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 20px 28px;
  border: 1px solid var(--tml-border);
  border-radius: 8px;
  background: rgba(255,255,255,.68);
  box-shadow: var(--tml-lab-shadow);
  backdrop-filter: blur(16px);
}

.tml-lab-coming-icon,
.tml-lab-cta-icon,
.tml-lab-teaser-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--tml-teal);
  background: rgba(0,151,167,.08);
  box-shadow: inset 0 0 0 1px rgba(0,151,167,.08);
}

.tml-lab-coming-icon {
  width: 58px;
  height: 58px;
}

.tml-lab-coming-icon svg,
.tml-lab-cta-icon svg {
  width: 32px;
  height: 32px;
}

.tml-lab-coming-card strong {
  display: block;
  color: var(--tml-teal);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 480;
  line-height: 1.08;
}

.tml-lab-coming-card span {
  display: block;
  margin-top: 8px;
  color: var(--tml-muted);
  font-size: 17px;
}

.tml-lab-visual {
  min-width: 0;
}

.tml-lab-diagram-stage {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 48px 24px;
}

.tml-lab-diagram-stage .tml-lab-workflow {
  width: min(980px, 100%);
  min-height: 500px;
}

.tml-lab-workflow {
  position: relative;
  min-height: 470px;
  overflow: hidden;
}

.tml-lab-workflow::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 54px;
  width: 330px;
  height: 82px;
  transform: translateX(-50%);
  border: 1px solid rgba(101,223,242,.45);
  border-radius: 50%;
  background: rgba(101,223,242,.10);
  box-shadow:
    0 0 34px rgba(101,223,242,.28),
    inset 0 0 26px rgba(101,223,242,.22);
}

.tml-lab-workflow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 86px;
  width: 240px;
  height: 332px;
  transform: translateX(-50%);
  border: 1px solid rgba(0,151,167,.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(235,249,252,.18)),
    linear-gradient(90deg, rgba(101,223,242,.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(101,223,242,.10) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
  box-shadow: inset 0 0 34px rgba(101,223,242,.14);
}

.tml-lab-workflow-circuit-bg {
  z-index: 0;
  opacity: .7;
  mask-image: none;
}

.tml-lab-workflow-connectors {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  color: var(--tml-cyan);
}

.tml-lab-workflow-connectors path {
  stroke: rgba(0,151,167,.56);
  stroke-width: 2;
}

.tml-lab-node-group circle {
  fill: #fff;
  stroke: var(--tml-cyan);
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(101,223,242,.8));
}

.tml-lab-flow-panel,
.tml-lab-core-card,
.tml-lab-workflow-monitor {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(0,151,167,.20);
  border-radius: 8px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 14px 34px rgba(17,42,61,.07);
  backdrop-filter: blur(14px);
}

.tml-lab-flow-panel {
  top: 74px;
  width: 158px;
  padding: 22px 18px;
}

.tml-lab-workflow-triggers {
  left: 4%;
  transform: rotate(2deg);
}

.tml-lab-workflow-outputs {
  right: 4%;
  transform: rotate(-2deg);
}

.tml-lab-flow-panel h2,
.tml-lab-workflow-monitor h2 {
  margin: 0 0 16px;
  color: #294158;
  font-size: 13px;
  font-weight: 700;
}

.tml-lab-flow-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--tml-muted);
  font-size: 12px;
}

.tml-lab-flow-row + .tml-lab-flow-row {
  border-top: 1px solid rgba(0,151,167,.10);
}

.tml-lab-flow-row span {
  color: var(--tml-teal);
  font-size: 17px;
}

.tml-lab-flow-row b {
  font-weight: 600;
}

.tml-lab-workflow-core {
  position: absolute;
  left: 50%;
  top: 68px;
  z-index: 5;
  display: grid;
  gap: 22px;
  width: 132px;
  transform: translateX(-50%);
}

.tml-lab-core-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 12px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(0,151,167,.94), rgba(66,196,211,.86)),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  box-shadow:
    0 18px 38px rgba(0,126,145,.22),
    inset 0 0 24px rgba(255,255,255,.18);
}

.tml-lab-core-card span {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.tml-lab-core-card b {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
}

.tml-lab-workflow-monitor {
  right: 4%;
  top: 326px;
  width: 178px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(145deg, rgba(0,151,167,.85), rgba(101,223,242,.72));
}

.tml-lab-workflow-monitor h2 {
  color: #fff;
  margin-bottom: 8px;
}

.tml-lab-workflow-monitor svg {
  width: 100%;
  height: auto;
}

.tml-lab-workflow-monitor polyline {
  fill: none;
  stroke: rgba(255,255,255,.82);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tml-lab-workflow-monitor circle {
  fill: #fff;
}

.tml-lab-workflow-platform {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 1;
  width: 390px;
  height: 98px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,.82) 0%, rgba(101,223,242,.22) 34%, transparent 70%);
}

.tml-lab-teasers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 32px);
  width: min(1400px, 100%);
  margin: 0 auto 22px;
}

.tml-lab-teaser-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 126px;
  padding: 26px;
  border: 1px solid rgba(0,151,167,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 12px 34px rgba(17,42,61,.05);
}

.tml-lab-teaser-icon {
  width: 58px;
  height: 58px;
  font-size: 30px;
}

.tml-lab-teaser-card h2 {
  margin: 0 0 8px;
  color: var(--tml-text);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 480;
  line-height: 1.14;
}

.tml-lab-teaser-card p {
  grid-column: 2;
  margin: 0;
  color: var(--tml-muted);
  font-size: 15px;
  line-height: 1.55;
}

.tml-lab-cta-strip {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: min(1400px, 100%);
  min-height: 132px;
  margin: 0 auto;
  padding: 24px clamp(24px, 4vw, 54px);
  border: 1px solid rgba(0,151,167,.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(225,247,251,.90), rgba(255,255,255,.72), rgba(224,247,252,.88)),
    linear-gradient(90deg, rgba(0,151,167,.14) 1px, transparent 1px);
  box-shadow: var(--tml-lab-shadow);
}

.tml-lab-cta-icon {
  width: 62px;
  height: 62px;
  background: rgba(255,255,255,.78);
}

.tml-lab-cta-strip h2 {
  margin: 0;
  color: var(--tml-text);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 480;
  line-height: 1.12;
}

.tml-lab-cta-strip p {
  margin: 8px 0 0;
  color: var(--tml-muted);
  line-height: 1.55;
}

.tml-lab-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  min-width: 246px;
  padding: 0 28px;
  border: 1px solid var(--tml-teal-dark);
  border-radius: 6px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--tml-teal-dark), #03b2c3);
  box-shadow: 0 14px 28px rgba(0,126,145,.18);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .tml-lab-hero-inner {
    grid-template-columns: 1fr;
  }

  .tml-lab-copy {
    max-width: 760px;
  }

  .tml-lab-workflow {
    min-height: 470px;
  }

  .tml-lab-teasers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tml-lab-page-main {
    padding: 0 16px 28px;
  }

  .tml-lab-hero {
    min-height: auto;
    padding: 42px 0 24px;
  }

  .tml-lab-title-row {
    gap: 14px;
  }

  .tml-lab-title-row h1 {
    font-size: clamp(68px, 22vw, 92px);
  }

  .tml-lab-subtitle {
    max-width: 11ch;
    font-size: clamp(30px, 10vw, 40px);
  }

  .tml-lab-description {
    font-size: 17px;
    line-height: 1.65;
  }

  .tml-lab-coming-card {
    grid-template-columns: 54px 1fr;
    gap: 16px;
    padding: 18px;
  }

  .tml-lab-coming-icon {
    width: 48px;
    height: 48px;
  }

  .tml-lab-coming-card strong {
    font-size: clamp(24px, 8vw, 32px);
  }

  .tml-lab-coming-card span {
    font-size: 15px;
  }

  .tml-lab-workflow {
    display: grid;
    gap: 12px;
    min-height: 0;
    padding: 18px;
    border: 1px solid rgba(0,151,167,.14);
    border-radius: 8px;
    background: rgba(255,255,255,.58);
  }

  .tml-lab-workflow::before,
  .tml-lab-workflow::after,
  .tml-lab-workflow-connectors,
  .tml-lab-workflow-platform {
    display: none;
  }

  .tml-lab-flow-panel,
  .tml-lab-workflow-core,
  .tml-lab-workflow-monitor,
  .tml-lab-core-card {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    transform: none;
  }

  .tml-lab-flow-panel {
    padding: 18px;
  }

  .tml-lab-workflow-core {
    display: grid;
    gap: 10px;
  }

  .tml-lab-core-card {
    min-height: 72px;
    grid-template-columns: 42px 1fr;
    justify-items: start;
    text-align: left;
  }

  .tml-lab-core-card span {
    font-size: 24px;
  }

  .tml-lab-workflow-monitor {
    padding: 16px;
  }

  .tml-lab-teaser-card {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 20px;
  }

  .tml-lab-teaser-icon {
    width: 50px;
    height: 50px;
    font-size: 25px;
  }

  .tml-lab-cta-strip {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .tml-lab-cta-button {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tml-lab-page *,
  .tml-lab-page *::before,
  .tml-lab-page *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TML MEGA NAV  (prefix: tml-mn-)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --tml-mn-teal:       #0097a7;
  --tml-mn-teal-dark:  #007b89;
  --tml-mn-teal-pale:  rgba(0,151,167,0.08);
  --tml-mn-teal-line:  rgba(0,151,167,0.16);
  --tml-mn-text:       #111827;
  --tml-mn-muted:      #64748b;
  --tml-mn-shadow:     0 32px 90px rgba(20,80,110,0.13);
  --tml-mn-shadow-sm:  0 4px 18px rgba(20,80,110,0.08);
  --tml-mn-r-xl:       28px;
  --tml-mn-r-lg:       18px;
  --tml-mn-r-md:       12px;
  --tml-mn-r-sm:       8px;
  --tml-mn-h:          72px;
  --tml-mn-ease:       0.22s cubic-bezier(.4,0,.2,1);
}

/* Header */
.tml-mn-header {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 99999 !important;
  height: var(--tml-mn-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--tml-mn-teal-line);
  box-shadow: 0 1px 18px rgba(0,80,100,0.06);
  font-family: 'Inter', system-ui, sans-serif;
  transform: translateZ(0);
  isolation: isolate;
}

body {
  padding-top: var(--tml-mn-h);
}

body.admin-bar .tml-mn-header {
  top: var(--wp-admin--admin-bar--height, 32px) !important;
}

body.admin-bar {
  padding-top: calc(var(--tml-mn-h) + var(--wp-admin--admin-bar--height, 32px));
}

.tml-mn-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  gap: 0;
}

/* Brand */
.tml-mn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 40px;
}

.tml-mn-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg,#0097a7 0%,#00bcd4 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 14px rgba(0,151,167,.30);
  flex-shrink: 0;
}

.tml-mn-brand-text {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tml-mn-text);
  letter-spacing: 0.01em;
}

.tml-mn-brand-text span {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--tml-mn-muted);
  letter-spacing: 0.04em;
}

/* Main nav links */
.tml-mn-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.tml-mn-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tml-mn-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--tml-mn-r-sm);
  transition: color var(--tml-mn-ease), background var(--tml-mn-ease);
  white-space: nowrap;
  outline: none;
  font-family: inherit;
}

.tml-mn-link:hover {
  color: var(--tml-mn-text);
  background: rgba(0,151,167,0.06);
}

.tml-mn-link[aria-current="page"] {
  color: var(--tml-mn-teal);
}

.tml-mn-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -13px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 12px rgba(0,151,167,.28);
}

.tml-mn-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  transition: transform 0.28s ease;
}

.tml-mn-link[aria-expanded="true"] .tml-mn-caret {
  transform: rotate(180deg);
}

/* Actions */
.tml-mn-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 24px;
}

.tml-mn-sign-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: linear-gradient(135deg,#0097a7,#00bcd4);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  border-radius: var(--tml-mn-r-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,151,167,.28);
  transition: transform var(--tml-mn-ease), box-shadow var(--tml-mn-ease), opacity var(--tml-mn-ease);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.tml-mn-sign-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(0,151,167,.35);
  color: #fff;
  text-decoration: none;
}

.tml-mn-theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--tml-mn-teal-line);
  background: rgba(255,255,255,.08);
  cursor: pointer;
  color: var(--tml-mn-muted);
  margin-left: 4px;
  outline: none;
  transition: background .2s;
}
.tml-mn-theme-btn:hover { background: rgba(0,151,167,.18); }
[data-theme="light"] .tml-mn-theme-btn .icon-moon { display: none; }
[data-theme="dark"] .tml-mn-theme-btn .icon-sun { display: none; }

.tml-mn-logo-img { height: 32px; width: auto; display: block; }

.tml-mn-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--tml-mn-teal-line);
  border-radius: var(--tml-mn-r-sm);
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  color: var(--tml-mn-muted);
  margin-left: 8px;
  outline: none;
}

/* Dropdown wrapper */
.tml-mn-menu-wrap {
  position: fixed;
  top: var(--tml-mn-h);
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 12px 20px 20px;
  transform-origin: top center;
  transform: scaleY(0.92) translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), opacity 0.28s cubic-bezier(.4,0,.2,1);
}

.tml-mn-menu-wrap.tml-mn-open {
  transform: scaleY(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.tml-mn-panel {
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,151,167,0.15);
  border-radius: var(--tml-mn-r-xl);
  box-shadow: var(--tml-mn-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 36px 44px;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Dark mode mega menu panel ──────────────────────────────── */
[data-theme="dark"] .tml-mn-menu-wrap {
  background: rgba(4,10,22,0.68);
}
[data-theme="dark"] .tml-mn-panel {
  background: rgba(10,20,40,0.97);
  border-color: rgba(0,151,167,0.28);
}
[data-theme="dark"] .tml-mn-col + .tml-mn-col {
  border-left-color: rgba(0,151,167,0.18);
}
[data-theme="dark"] .tml-mn-item {
  color: #e0e8f0;
}
[data-theme="dark"] .tml-mn-item:hover {
  background: rgba(0,151,167,0.14);
  color: #e0e8f0;
}
[data-theme="dark"] .tml-mn-copy strong { color: #e0e8f0; }
[data-theme="dark"] .tml-mn-copy small { color: rgba(180,200,220,0.65); }
[data-theme="dark"] .tml-mn-col-label { color: #3AC8D4; }
[data-theme="dark"] .tml-mn-icon-box { background: rgba(0,151,167,0.18); }
[data-theme="dark"] .tml-mn-cat-row { color: #e0e8f0; }
[data-theme="dark"] .tml-mn-cat-row strong { color: #e0e8f0; }
[data-theme="dark"] .tml-mn-cat-row small { color: rgba(180,200,220,0.65); }
[data-theme="dark"] .tml-mn-promo-card {
  background: url('/wp-content/plugins/tml-enhancements/assets/menu-promo.webp') right center/cover no-repeat;
  background-color: #06111c;
  filter: none;
}
[data-theme="dark"] .tml-mn-signin-card { background: rgba(0,80,100,0.22); border-color: rgba(0,151,167,0.22); }
[data-theme="dark"] .tml-mn-signin-copy h4 { color: #e0e8f0; }
[data-theme="dark"] .tml-mn-signin-copy p { color: rgba(180,200,220,0.75); }

/* Grid */
.tml-mn-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.95fr 1.15fr;
  gap: 40px;
}

.tml-mn-col + .tml-mn-col {
  border-left: 1px solid rgba(0,151,167,0.10);
  padding-left: 40px;
}

.tml-mn-col-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--tml-mn-teal);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-left: 2px;
}

/* Nav items (col 1) */
.tml-mn-items { display: flex; flex-direction: column; gap: 4px; }

.tml-mn-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  border-radius: var(--tml-mn-r-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--tml-mn-ease), border-color var(--tml-mn-ease), transform var(--tml-mn-ease);
  color: var(--tml-mn-text);
}

.tml-mn-item:hover {
  background: var(--tml-mn-teal-pale);
  border-color: var(--tml-mn-teal-line);
  transform: translateX(3px);
  text-decoration: none;
  color: var(--tml-mn-text);
}

.tml-mn-item--active {
  background: rgba(0,151,167,0.09);
  border-color: rgba(0,151,167,0.22);
}

.tml-mn-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--tml-mn-r-sm);
  background: rgba(0,151,167,0.10);
  flex-shrink: 0;
  transition: background var(--tml-mn-ease);
}

.tml-mn-item:hover .tml-mn-icon-box,
.tml-mn-item--active .tml-mn-icon-box {
  background: rgba(0,151,167,0.18);
}

.tml-mn-copy { flex: 1; min-width: 0; }

.tml-mn-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tml-mn-text);
  line-height: 1.3;
}

.tml-mn-item--active .tml-mn-copy strong { color: var(--tml-mn-teal); }

.tml-mn-copy small {
  display: block;
  font-size: 11.5px;
  color: var(--tml-mn-muted);
  margin-top: 1px;
  line-height: 1.4;
}

.tml-mn-chevron {
  color: var(--tml-mn-muted);
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--tml-mn-ease), color var(--tml-mn-ease);
}

.tml-mn-item:hover .tml-mn-chevron,
.tml-mn-item--active .tml-mn-chevron {
  opacity: 1;
  color: var(--tml-mn-teal);
}

/* Categories (col 2) */
.tml-mn-cat-list { display: flex; flex-direction: column; }

.tml-mn-cat-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 4px;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,151,167,0.09);
  transition: background var(--tml-mn-ease), padding-left var(--tml-mn-ease);
  border-radius: var(--tml-mn-r-sm);
  color: var(--tml-mn-text);
}

.tml-mn-cat-row:last-of-type { border-bottom: none; }

.tml-mn-cat-row:hover {
  background: var(--tml-mn-teal-pale);
  padding-left: 8px;
  text-decoration: none;
  color: var(--tml-mn-text);
}

.tml-mn-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--tml-mn-teal);
  margin-top: 1px;
}

.tml-mn-cat-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.tml-mn-cat-copy small {
  display: block;
  font-size: 11.5px;
  color: var(--tml-mn-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.tml-mn-outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 10px 20px;
  border: 1.5px solid var(--tml-mn-teal);
  border-radius: var(--tml-mn-r-md);
  background: transparent;
  color: var(--tml-mn-teal);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--tml-mn-ease), color var(--tml-mn-ease), box-shadow var(--tml-mn-ease);
  text-decoration: none;
  outline: none;
}

.tml-mn-outline-btn:hover {
  background: var(--tml-mn-teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,151,167,.25);
  text-decoration: none;
}

/* Right col (col 3) */
.tml-mn-right-col { display: flex; flex-direction: column; gap: 16px; }

/* Promo card */
.tml-mn-promo-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--tml-mn-r-lg);
  background: url('/wp-content/plugins/tml-enhancements/assets/menu-promo.webp') right center/cover no-repeat;
  background-color: #07111f;
  padding: 30px 30px 26px;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 8px 32px rgba(0,151,167,.22);
}

.tml-mn-promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,15,28,.92) 0%, rgba(5,15,28,.72) 52%, rgba(5,15,28,.16) 100%);
  z-index: 0;
}

.tml-mn-promo-copy { position: relative; z-index: 1; max-width: 62%; min-width: 0; padding-right: 12px; }

.tml-mn-promo-copy h3 {
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 700;
  color: #fff;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.tml-mn-promo-copy p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.80);
  margin-top: 10px;
  line-height: 1.6;
}

.tml-mn-promo-art {
  display: none;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 130px;
  height: 130px;
  z-index: 1;
}

.tml-mn-cube-wrap {
  position: absolute;
  right: 8px;
  top: 0;
  width: 100px;
  height: 100px;
  perspective: 240px;
  animation: tmlMnCubeFloat 6s ease-in-out infinite;
}

@keyframes tmlMnCubeFloat {
  0%,100% { transform: translateY(0) rotateY(0deg); }
  50%      { transform: translateY(-8px) rotateY(15deg); }
}

.tml-mn-cube-inner {
  width: 64px;
  height: 64px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(22deg) rotateY(-32deg);
  margin: 18px auto 0;
}

.tml-mn-cube-face {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 1.5px solid rgba(255,255,255,0.42);
  border-radius: 6px;
}

.tml-mn-f-front  { background: rgba(255,255,255,0.18); transform: translateZ(32px); }
.tml-mn-f-back   { background: rgba(255,255,255,0.08); transform: rotateY(180deg) translateZ(32px); }
.tml-mn-f-right  { background: rgba(255,255,255,0.12); transform: rotateY(90deg) translateZ(32px); }
.tml-mn-f-left   { background: rgba(255,255,255,0.08); transform: rotateY(-90deg) translateZ(32px); }
.tml-mn-f-top    { background: rgba(255,255,255,0.22); transform: rotateX(90deg) translateZ(32px); }
.tml-mn-f-bottom { background: rgba(255,255,255,0.06); transform: rotateX(-90deg) translateZ(32px); }

.tml-mn-orbit {
  position: absolute;
  width: 96px;
  height: 96px;
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: 50%;
  top: 4px;
  left: 2px;
  animation: tmlMnOrbitSpin 12s linear infinite;
}

@keyframes tmlMnOrbitSpin { to { transform: rotate(360deg); } }

.tml-mn-orbit::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  top: -3.5px;
  left: 44px;
  box-shadow: 0 0 6px rgba(255,255,255,.5);
}

.tml-mn-promo-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 0;
}

/* Sign-in card */
.tml-mn-signin-card {
  border-radius: var(--tml-mn-r-lg);
  border: 1px solid rgba(0,151,167,0.15);
  background: linear-gradient(140deg,#f0fbfc 0%,#e4f6f9 100%);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--tml-mn-shadow-sm);
}

.tml-mn-user-orb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,151,167,0.12);
  flex-shrink: 0;
  color: var(--tml-mn-teal);
}

.tml-mn-signin-copy { flex: 1; min-width: 0; }

.tml-mn-signin-copy h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tml-mn-text);
  margin-bottom: 4px;
}

.tml-mn-signin-copy p {
  font-size: 11.5px;
  color: var(--tml-mn-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.tml-mn-teal-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: linear-gradient(135deg,#0097a7,#00bcd4);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--tml-mn-r-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,151,167,.28);
  transition: opacity var(--tml-mn-ease), transform var(--tml-mn-ease), box-shadow var(--tml-mn-ease);
  text-decoration: none;
}

.tml-mn-teal-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(0,151,167,.35);
  color: #fff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1080px) {
  .tml-mn-grid { grid-template-columns: 1fr 1fr; }
  .tml-mn-right-col { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .tml-mn-promo-card { flex: 1; min-width: 280px; }
  .tml-mn-signin-card { flex: 1; min-width: 260px; }
  .tml-mn-col + .tml-mn-col { padding-left: 28px; }
}

@media (max-width: 768px) {
  .tml-mn-nav { display: none; }
  .tml-mn-sign-btn {
    display: flex;
    padding: 7px 12px;
    font-size: 12px;
    gap: 5px;
  }
  .tml-mn-hamburger { display: flex; }
  .tml-mn-inner { gap: 12px; }
  .tml-mn-brand { margin-right: 0; }
  .tml-mn-panel { padding: 24px 20px; }
  .tml-mn-grid { grid-template-columns: 1fr; gap: 24px; }
  .tml-mn-col + .tml-mn-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(0,151,167,0.10);
    padding-top: 20px;
  }
  .tml-mn-right-col { flex-direction: column; }
  .tml-mn-promo-art { display: none; }
  .tml-mn-promo-copy { max-width: 100%; }
}

@media (max-width: 480px) {
  .tml-mn-panel { border-radius: var(--tml-mn-r-lg); padding: 20px 16px; }
  .tml-mn-brand-text span { display: none; }
}

/* ── Dark mode: header ──────────────────────────────────────── */
[data-theme="dark"] #tml-mn-header {
  background: rgba(7, 17, 31, 0.97) !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
}
[data-theme="dark"] .tml-mn-link {
  color: #c8d8ec !important;
}
[data-theme="dark"] .tml-mn-link:hover {
  color: #3AC8D4 !important;
}
[data-theme="dark"] .tml-mn-hamburger {
  background: rgba(255,255,255,0.06) !important;
}

/* ── Dark mode: custom footer ───────────────────────────────── */
[data-theme="dark"] #tml-custom-footer {
  background: #07111f !important;
  color: #c8d4e8 !important;
  border-top-color: rgba(255,255,255,0.08) !important;
}
[data-theme="dark"] #tml-custom-footer p,
[data-theme="dark"] #tml-custom-footer span,
[data-theme="dark"] #tml-custom-footer div:not(#tml-footer-grid) {
  color: #8eabc8 !important;
}
[data-theme="dark"] #tml-custom-footer a {
  color: #8eabc8 !important;
}
[data-theme="dark"] #tml-custom-footer a:hover {
  color: #3AC8D4 !important;
}
[data-theme="dark"] #tml-custom-footer > div > div:last-child {
  border-top-color: rgba(255,255,255,0.08) !important;
  color: #506280 !important;
}

/* ── Dark mode: lab cards ───────────────────────────────────── */
[data-theme="dark"] .tml-lab-card {
  background: rgba(14, 26, 46, 0.85) !important;
  border-color: rgba(58, 200, 212, 0.18) !important;
  color: #e0e8f0 !important;
}
[data-theme="dark"] .tml-lab-card:hover {
  border-color: #3AC8D4 !important;
  background: rgba(14, 26, 46, 0.95) !important;
}
[data-theme="dark"] .tml-lab-body h3 { color: #e8f0f8 !important; }
[data-theme="dark"] .tml-lab-body p { color: rgba(200,220,240,0.68) !important; }
[data-theme="dark"] .tml-lab-icon {
  background: rgba(58,200,212,0.07) !important;
  border-color: rgba(58,200,212,0.16) !important;
}

/* ── Dark mode: blog archive + article pages ─────────────────── */
[data-theme="dark"] body.blog,
[data-theme="dark"] body.archive,
[data-theme="dark"] body.single,
[data-theme="dark"] body.single-post {
  background: #07111f !important;
  color: #c8d8ec !important;
}
[data-theme="dark"] body.blog .site-content,
[data-theme="dark"] body.archive .site-content,
[data-theme="dark"] body.single .site-content,
[data-theme="dark"] body.single-post .site-content {
  background: #07111f !important;
}
[data-theme="dark"] .article-card {
  background: rgba(14,26,46,0.85) !important;
  border-color: rgba(58,200,212,0.12) !important;
}
[data-theme="dark"] .card-title { color: #ddeaf8 !important; }
[data-theme="dark"] .card-excerpt { color: rgba(200,220,240,0.72) !important; }
[data-theme="dark"] .article-card:hover .card-title { color: #3AC8D4 !important; }
[data-theme="dark"] .single-wrap,
[data-theme="dark"] .single-content {
  background: transparent !important;
  color: #c8d8ec !important;
}
[data-theme="dark"] .entry-content,
[data-theme="dark"] .post-content {
  color: #c8d8ec !important;
}
[data-theme="dark"] .entry-content h1,
[data-theme="dark"] .entry-content h2,
[data-theme="dark"] .entry-content h3,
[data-theme="dark"] .entry-content h4 {
  color: #e8f0f8 !important;
}
[data-theme="dark"] .articles-grid { background: transparent !important; }
[data-theme="dark"] .tml-arc-hero { background: transparent !important; }
[data-theme="dark"] .tml-arc-description { color: #b0c4de !important; }
[data-theme="dark"] .tml-arc-pill {
  background: rgba(14,26,46,0.7) !important;
  border-color: rgba(58,200,212,0.2) !important;
  color: #8eabc8 !important;
}
[data-theme="dark"] .tml-arc-pill:hover,
[data-theme="dark"] .tml-arc-pill.active {
  background: rgba(58,200,212,0.15) !important;
  color: #3AC8D4 !important;
  border-color: rgba(58,200,212,0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════
   ROUND-2 FIXES — 2026-05-26
   ═══════════════════════════════════════════════════════════════ */

/* ── Fix B: About page — break out of .legal-wrap 760px constraint ── */
.tml-about-v3 {
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  box-sizing: border-box !important;
  left: 0 !important;
}

/* ── Fix C: Dark mode header ── */
[data-theme="dark"] header.tml-mn-header,
[data-theme="dark"] .tml-mn-header {
  background: rgba(7,17,31,0.96) !important;
  border-bottom-color: rgba(58,200,212,0.14) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}
[data-theme="dark"] .tml-mn-nav {
  background: rgba(7,17,31,0.97) !important;
}
[data-theme="dark"] .tml-mn-header .tml-mn-link {
  color: #b0c4de !important;
}
[data-theme="dark"] .tml-mn-header .tml-mn-link:hover,
[data-theme="dark"] .tml-mn-header .tml-mn-link.active {
  color: #3AC8D4 !important;
}
[data-theme="dark"] .tml-mn-header .tml-mn-logo-text {
  color: #e8f0f8 !important;
}

/* ── Fix D: Dark mode footer ── */
[data-theme="dark"] #tml-custom-footer {
  background: #07111f !important;
  border-top: 1px solid rgba(58,200,212,0.12) !important;
  color: #8eabc8 !important;
}
[data-theme="dark"] #tml-custom-footer a {
  color: #8eabc8 !important;
}
[data-theme="dark"] #tml-custom-footer a:hover {
  color: #3AC8D4 !important;
}
[data-theme="dark"] #tml-custom-footer .tml-footer-copy,
[data-theme="dark"] #tml-custom-footer .tml-footer-legal {
  color: #5a7a96 !important;
}

/* ── Fix E: Dark mode — ensure no white sections bleed through ── */
[data-theme="dark"] body {
  background: #07111f !important;
}
[data-theme="dark"] .site-main,
[data-theme="dark"] .entry-content,
[data-theme="dark"] .page-content,
[data-theme="dark"] main {
  background: transparent !important;
}
[data-theme="dark"] .legal-wrap,
[data-theme="dark"] .single-content {
  background: transparent !important;
}

/* ── Fix F: Dark mode hero scrim z-index fix ── */
.tml-hero-v2-inner { position: relative; z-index: 12; }
/* Strong scrim: nearly opaque to suppress embedded text in bg image; fades only at far right */
[data-theme="light"] .tml-hero-v2::after {
  content: '';
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(248,251,255,) 0%,
    rgba(248,251,255,0.85) 60%,
    rgba(248,251,255,0.88) 78%,
    rgba(248,251,255,0.72) 88%,
    rgba(248,251,255,0.52) 100%
  );
}
[data-theme="dark"] .tml-hero-v2::after {
  content: '';
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(4,10,26,0.98) 0%,
    rgba(4,10,26,0.97) 60%,
    rgba(4,10,26,0.88) 78%,
    rgba(4,10,26,0.72) 88%,
    rgba(4,10,26,0.52) 100%
  );
}
/* Feature cards — now visible with SVG icons (Phase 2) */

/* ── Fix G: Header logo — slightly larger ── */
.tml-mn-header img.tml-mn-logo-img,
.tml-mn-header img[data-logo-light] {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
}

/* ── Fix H: Lab section cards — disable link navigation ── */
.tml-lab-card,
a.tml-lab-card,
.tml-lab-card a {
  pointer-events: none !important;
  cursor: default !important;
}
.tml-lab-card * {
  pointer-events: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT PAGE v4 — matches mockup, supports light + dark mode
   ═══════════════════════════════════════════════════════════════ */

/* Full-width breakout: escape theme's narrow entry-content/legal-wrap column */
.entry-content:has(.tml-about-v4),
.legal-wrap:has(.tml-about-v4) {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.tml-about-v4 {
  --av4-bg:      #04101b;
  --av4-panel:   rgba(7,18,33,0.88);
  --av4-line:    rgba(70,115,160,0.28);
  --av4-text:    #e9f1fb;
  --av4-muted:   #9cb1c7;
  --av4-teal:    #12b9d6;
  --av4-teal2:   #29d3f2;
  --av4-radius:  18px;
  --av4-shadow:  0 10px 40px rgba(0,0,0,.28);
  /* Full-width escape from theme column */
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  background: radial-gradient(circle at top right, rgba(20,90,140,.18), transparent 30%),
              linear-gradient(180deg, #04101b, #05111e 45%, #061321 100%);
  color: var(--av4-text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
[data-theme="light"] .tml-about-v4 {
  --av4-bg:    #f0f5fb;
  --av4-panel: #ffffff;
  --av4-line:  rgba(42,171,183,0.15);
  --av4-text:  #0d1530;
  --av4-muted: #607089;
  --av4-teal:  #0097a7;
  --av4-teal2: #00bcd4;
  --av4-shadow: 0 4px 24px rgba(0,0,0,.08);
  background: #f0f5fb;
  color: var(--av4-text);
}
.tml-av4-container { width: min(1480px, calc(100% - 80px)); margin: 0 auto; }
.tml-av4-section { padding: 28px 0; }
.tml-av4-card { background: var(--av4-panel); border: 1px solid var(--av4-line); border-radius: var(--av4-radius); box-shadow: var(--av4-shadow); padding: 24px; }
.tml-av4-eyebrow { margin: 0 0 10px; color: var(--av4-teal); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

/* HERO */
.tml-av4-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding: 18px 0 8px; }
.tml-av4-title { font-family: "Playfair Display","Fraunces",Georgia,serif; font-size: clamp(38px,5.2vw,68px); line-height: 1.06; font-weight: 700; margin: 0 0 16px; color: var(--av4-text); }
.tml-av4-title span { display: block; color: var(--av4-teal2); font-style: italic; font-weight: 600; }
.tml-av4-accent { font-family: "Playfair Display",Georgia,serif; font-style: italic; font-size: clamp(17px,2vw,26px); color: var(--av4-teal2); margin: 0 0 16px; }
.tml-av4-desc { color: var(--av4-muted); line-height: 1.72; max-width: 58ch; margin: 0 0 26px; }
.tml-av4-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.tml-av4-hero-visual img { width: 100%; height: auto; object-fit: contain; border-radius: 12px; }
.tml-av4-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.tml-av4-stat { background: var(--av4-panel); border: 1px solid var(--av4-line); border-radius: 14px; padding: 16px 14px; box-shadow: var(--av4-shadow); }
.tml-av4-stat strong { display: block; font-size: 21px; font-weight: 700; color: var(--av4-text); margin-bottom: 6px; }
.tml-av4-stat span { font-size: 12px; color: var(--av4-muted); }

/* BUTTONS */
.tml-av4-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 11px; font-weight: 600; font-size: 14.5px; text-decoration: none; border: 1px solid transparent; transition: filter .2s,transform .15s; }
.tml-av4-btn-primary { background: linear-gradient(135deg,#0f95c4,#14b8d4); color: #fff; box-shadow: 0 6px 20px rgba(20,184,212,.28); }
.tml-av4-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.tml-av4-btn-outline { border-color: rgba(53,170,210,.45); color: var(--av4-text); background: rgba(8,20,34,.35); }
[data-theme="light"] .tml-av4-btn-outline { background: rgba(255,255,255,.7); color: #0d1530; border-color: rgba(0,151,167,.35); }
.tml-av4-btn-outline:hover { border-color: var(--av4-teal2); transform: translateY(-1px); }

/* RESEARCH */
.tml-av4-research-card { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: center; }
.tml-av4-research-copy h2 { font-family: "Playfair Display",Georgia,serif; font-size: clamp(22px,3vw,36px); margin: 0 0 18px; color: var(--av4-text); }
.tml-av4-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tml-av4-pill { display: inline-flex; padding: 12px 18px; background: var(--av4-panel); border: 1px solid var(--av4-line); border-radius: 12px; font-size: 13px; font-weight: 500; color: var(--av4-text); box-shadow: var(--av4-shadow); }
[data-theme="light"] .tml-av4-pill { background: #fff; }
.tml-av4-research-visual img { width: 100%; height: auto; object-fit: contain; }

/* 4-COLUMN */
.tml-av4-four-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.tml-av4-quote { margin: 0; font-family: "Playfair Display",Georgia,serif; font-size: 21px; line-height: 1.6; color: var(--av4-text); font-style: normal; }
.tml-av4-stack-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tml-av4-stack-list li { display: flex; flex-direction: column; gap: 3px; }
.tml-av4-stack-list strong { color: var(--av4-text); font-size: 14px; }
.tml-av4-stack-list span { color: var(--av4-muted); font-size: 13px; line-height: 1.5; }
.tml-av4-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; margin-bottom: 16px; }
.tml-av4-step { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px; background: rgba(8,18,32,.7); border: 1px solid var(--av4-line); border-radius: 12px; text-align: center; }
[data-theme="light"] .tml-av4-step { background: rgba(0,0,0,.04); }
.tml-av4-step strong { display: block; font-size: 13px; color: var(--av4-teal2); }
.tml-av4-step span { font-size: 11px; color: var(--av4-muted); }
.tml-av4-mini-note { border: 1px solid var(--av4-line); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--av4-muted); line-height: 1.55; }

/* IMPACT */
.tml-av4-impact-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; }
.tml-av4-impact-copy h2 { font-family: "Playfair Display",Georgia,serif; font-size: clamp(22px,2.8vw,34px); margin: 0 0 14px; color: var(--av4-text); }
.tml-av4-impact-copy p { color: var(--av4-muted); line-height: 1.7; margin: 0; }
.tml-av4-impact-visual img { width: 100%; height: auto; object-fit: contain; }

/* TEAM */
.tml-av4-team-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; align-items: start; }
.tml-av4-team-intro h2 { font-family: "Playfair Display",Georgia,serif; font-size: clamp(22px,3vw,36px); margin: 0 0 12px; color: var(--av4-text); }
.tml-av4-team-intro p { color: var(--av4-muted); line-height: 1.65; margin: 0; }
.tml-av4-team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.tml-av4-team-card { padding: 22px; }
.tml-av4-avatar { width: 88px; height: 88px; border-radius: 50%; margin-bottom: 16px; background: radial-gradient(circle at 30% 30%,#90dfff,#0f4a73 72%); border: 2px solid rgba(89,183,226,.35); }
.tml-av4-team-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--av4-text); }
.tml-av4-team-card p { margin: 0; font-size: 13px; color: var(--av4-muted); line-height: 1.55; }
.tml-av4-team-layout--dark {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  grid-template-areas:
    "intro hero"
    "grid grid";
  gap: 14px;
  padding: 16px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(5,12,22,.92), rgba(6,14,25,.98));
  border: 1px solid rgba(58,200,212,.10);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  align-items: stretch;
}
.tml-av4-team-intro--dark {
  grid-area: intro;
  background: linear-gradient(180deg, rgba(11,19,33,.98), rgba(8,15,28,.96));
  border-color: rgba(58,200,212,.12);
  color: #d6e0ef;
  padding: 26px;
}
.tml-av4-team-intro--dark h2,
.tml-av4-team-intro--dark p { color: #d6e0ef; }
.tml-av4-team-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.tml-av4-team-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(58,200,212,.16);
  background: rgba(13,22,38,.74);
  color: #bdd0e3;
  font-size: 12px;
  letter-spacing: .01em;
}
.tml-av4-team-grid--dark {
  grid-area: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tml-av4-team-hero {
  grid-area: hero;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, rgba(11,19,33,.98), rgba(8,15,28,.96));
  border: 1px solid rgba(58,200,212,.10);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.tml-av4-team-grid--dark .tml-av4-team-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, rgba(11,19,33,.98), rgba(8,15,28,.96));
  border-color: rgba(58,200,212,.10);
  padding: 20px;
}
.tml-av4-team-grid--dark .tml-av4-avatar {
  flex-shrink: 0;
  margin-bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(104,228,247,.96), rgba(7,44,69,.92) 72%);
}
.tml-av4-team-card-copy h3 { margin: 0 0 6px; }
.tml-av4-team-card-copy p { margin: 0; }
.tml-av4-team-grid--dark .tml-av4-team-card h3,
.tml-av4-team-grid--dark .tml-av4-team-card p { color: #d9e5f3; }
.tml-av4-team-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, rgba(11,19,33,.98), rgba(8,15,28,.96));
  border: 1px solid rgba(58,200,212,.10);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.tml-av4-side-visual {
  border-radius: 22px;
  border: 1px solid rgba(58,200,212,.12);
  background: radial-gradient(circle at center, rgba(58,200,212,.14), rgba(8,15,28,.0) 66%);
  padding: 18px;
}
.tml-av4-side-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.tml-av4-side-copy h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 2.7vw, 31px);
  margin: 0 0 10px;
  color: #f0f6ff;
}
.tml-av4-side-copy p {
  margin: 0;
  color: #a4b5ca;
  line-height: 1.7;
}

/* PHILOSOPHY */
.tml-av4-philosophy-grid { display: grid; grid-template-columns: 1fr .85fr .85fr; gap: 22px; align-items: center; }
.tml-av4-phil-copy h2 { font-family: "Playfair Display",Georgia,serif; font-size: clamp(22px,3vw,36px); margin: 0 0 14px; color: var(--av4-text); }
.tml-av4-phil-copy p { color: var(--av4-muted); line-height: 1.7; margin: 0; }
.tml-av4-phil-visual img { width: 100%; height: auto; object-fit: contain; }
.tml-av4-phil-metrics { display: flex; flex-direction: column; gap: 14px; }
.tml-av4-metric { background: var(--av4-panel); border: 1px solid var(--av4-line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--av4-shadow); }
.tml-av4-metric strong { display: block; font-size: 22px; font-weight: 700; color: var(--av4-text); margin-bottom: 6px; }
.tml-av4-metric span { font-size: 13px; color: var(--av4-muted); }

/* CTA BAND */
.tml-av4-cta-band { background: var(--av4-panel); border: 1px solid var(--av4-line); border-radius: var(--av4-radius); box-shadow: var(--av4-shadow); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tml-av4-cta-band--dark {
  background: linear-gradient(180deg, rgba(8,16,28,.98), rgba(10,19,34,.98));
  border-color: rgba(58,200,212,.10);
  color: #d9e5f2;
  padding: 26px 28px;
}
.tml-av4-cta-copy h2 { font-family: "Playfair Display",Georgia,serif; font-size: clamp(20px,2.8vw,32px); margin: 0 0 8px; color: var(--av4-text); }
.tml-av4-cta-copy p { margin: 0; color: var(--av4-muted); font-size: 14px; }
.tml-av4-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.tml-av4-cta-band--dark .tml-av4-cta-copy h2,
.tml-av4-cta-band--dark .tml-av4-cta-copy p { color: #d9e5f2; }
.tml-av4-cta-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}
.tml-av4-cta-metrics div {
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(58,200,212,.10);
  background: rgba(12,22,38,.72);
}
.tml-av4-cta-metrics strong {
  display: block;
  color: #f0f6ff;
  font-size: 14px;
  margin-bottom: 4px;
}
.tml-av4-cta-metrics span {
  color: #9cafc4;
  font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .tml-av4-hero-grid,.tml-av4-impact-card,.tml-av4-team-layout,.tml-av4-philosophy-grid,.tml-av4-research-card { grid-template-columns: 1fr; }
  .tml-av4-four-grid { grid-template-columns: repeat(2,1fr); }
  .tml-av4-stats { grid-template-columns: repeat(2,1fr); }
  .tml-av4-team-layout--dark {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "hero"
      "grid";
  }
  .tml-av4-team-grid--dark { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .tml-av4-four-grid { grid-template-columns: 1fr; }
  .tml-av4-team-grid { grid-template-columns: repeat(2,1fr); }
  .tml-av4-steps { grid-template-columns: repeat(3,1fr); }
  .tml-av4-cta-band { flex-direction: column; align-items: flex-start; }
  .tml-av4-team-grid--dark { grid-template-columns: 1fr; }
  .tml-av4-cta-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tml-av4-stats { grid-template-columns: repeat(2,1fr); }
  .tml-av4-team-grid { grid-template-columns: 1fr; }
  .tml-av4-steps { grid-template-columns: repeat(2,1fr); }
  .tml-av4-section { padding: 18px 0; }
  .tml-av4-team-layout--dark { padding: 12px; border-radius: 24px; }
  .tml-av4-team-intro--dark,
  .tml-av4-team-hero { padding: 20px; }
  .tml-av4-team-grid--dark .tml-av4-team-card { flex-direction: column; align-items: flex-start; }
}

/* ── Static lab icons (replaces dotlottie for perf) ─── */
.tml-lab-static-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  font-size: 28px;
  border-radius: 14px;
  background: rgba(45,213,230,0.1);
  border: 1px solid rgba(45,213,230,0.2);
  color: #28d8e7;
  line-height: 1;
}
.tml-icon-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 22px;
  border-radius: 12px;
  background: rgba(45,213,230,0.1);
  border: 1px solid rgba(45,213,230,0.2);
  color: #28d8e7;
}
/* Đồng bộ ẩn/hiện logo Header theo Theme giống như Footer */
[data-theme="dark"] .nav-logo .logo-light-img,
[data-theme="dark"] .tml-mn-logo-img.logo-light-img { 
    display: none !important; 
}
[data-theme="dark"] .nav-logo .logo-dark-img,
[data-theme="dark"] .tml-mn-logo-img.logo-dark-img { 
    display: inline-block !important; 
}

[data-theme="light"] .nav-logo .logo-dark-img,
[data-theme="light"] .tml-mn-logo-img.logo-dark-img { 
    display: none !important; 
}
[data-theme="light"] .nav-logo .logo-light-img,
[data-theme="light"] .tml-mn-logo-img.logo-light-img { 
    display: inline-block !important; 
}
/* Logo kích thước đồng nhất: header + footer = 40px cả sáng và tối */
.nav-logo img,
.nav-logo .logo-dark-img,
.nav-logo .logo-light-img,
.tml-mn-logo-img {
    height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    object-fit: contain !important;
}
[data-theme="dark"] .nav-logo img,
[data-theme="dark"] .nav-logo .logo-dark-img,
[data-theme="dark"] .tml-mn-logo-img {
    height: 40px !important;
    max-height: 40px !important;
}
.footer-logo,
.footer-logo.logo-dark-img,
.footer-logo.logo-light-img {
    height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    object-fit: contain !important;
}
[data-theme="dark"] .footer-logo,
[data-theme="dark"] .footer-logo.logo-dark-img {
    height: 40px !important;
    max-height: 40px !important;
    mix-blend-mode: normal;
}
/* Fix Issue 2: Footer logo có white box — dùng mix-blend-mode:multiply ở light mode
   để nền trắng trong file ảnh hoà với footer background */
[data-theme="light"] .footer-logo,
[data-theme="light"] .footer-logo.logo-light-img {
    mix-blend-mode: multiply;
}
/* Dark mode không cần multiply (logo-dark.webp đã transparent) */
[data-theme="dark"] .footer-logo.logo-light-img { display: none !important; }
[data-theme="light"] .footer-logo.logo-dark-img  { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   PATCH v3.1.2 — Bug fixes
   ═══════════════════════════════════════════════════════════ */

/* Fix E: Lab card lottie SVG fallback icon */
.tml-lab-icon-fb {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
}
.tml-lab-icon-fb svg {
  width: 36px;
  height: 36px;
  stroke: var(--cyan, #3AC8D4);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Fix Issue 1: Inline fallback span hidden while dotlottie renders.
   When dotlottie-player is present, hide the adjacent fallback span.
   If player fails (JS timeout), the .tml-lab-icon-fb-inline span remains visible. */
.tml-lab-icon dotlottie-player + .tml-lab-icon-fb-inline {
  display: none !important;
}
/* When dotlottie hides itself (player fail) the span shows automatically */
.tml-lab-icon dotlottie-player[style*="display: none"] + .tml-lab-icon-fb-inline,
.tml-lab-icon dotlottie-player[style*="display:none"] + .tml-lab-icon-fb-inline {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  font-size: 28px;
  color: var(--cyan, #3AC8D4);
}

/* Fix B/G: About page hero — hide lower-priority floating cards on small screens
   to prevent overlap inside .tml-about-hero-visual */
@media (max-width: 860px) {
  .tml-about-v3 .tml-floating-models,
  .tml-about-v3 .tml-floating-systems {
    display: none !important;
  }
  .tml-about-v3 .tml-floating-data  { top: 14%; left: 6%; }
  .tml-about-v3 .tml-floating-impact { top: auto; bottom: 14%; right: 6%; }
}
@media (max-width: 700px) {
  .tml-about-v3 .tml-floating-data,
  .tml-about-v3 .tml-floating-impact {
    display: none !important;
  }
}

/* Fix G: Hero chip — boost background visibility at chip edge */
.tml-hero-v2 {
  filter: none; /* ensure no inherited filter dims the whole section */
}

/* Fix F: Mobile responsive patches */
/* Prevent horizontal scroll — use clip, NOT hidden (hidden breaks position:sticky) */
html, body { max-width: 100%; overflow-x: clip; }

/* Mega nav: ensure hamburger + sign-in don't overflow on very small screens */
@media (max-width: 400px) {
  .tml-mn-inner {
    padding: 0 14px !important;
  }
  .tml-mn-sign-btn span,
  .tml-mn-sign-btn > svg + * {
    display: none !important; /* hide "Sign In" text, keep icon only */
  }
}

/* Login modal: ensure it fits viewport on mobile */
@media (max-width: 640px) {
  .tml-modal-box.tml-login-box {
    padding: 24px 18px !important;
    max-height: 92dvh;
    overflow-y: auto;
  }
  .tml-social-btn {
    font-size: 14px !important;
  }
}

/* Footer logo: consistent size across all templates */
.tml-mn-footer-logo img,
.footer-logo img,
.footer .custom-logo {
  max-height: 40px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* ── About page v4 accent images (Issue 5) ──────────────── */
.tml-av4-accent-img {
  display: block;
  width: 88px;
  height: auto;
  margin-top: 18px;
  opacity: .72;
  object-fit: contain;
  border-radius: 8px;
  align-self: flex-end;
}
.tml-av4-mission-img {
  display: block;
  width: 120px;
  height: auto;
  margin-top: 14px;
  opacity: .80;
  object-fit: contain;
}
.tml-av4-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .12;
  pointer-events: none;
  z-index: 0;
}
.tml-av4-cta-copy,
.tml-av4-cta-actions {
  position: relative;
  z-index: 1;
}

/* ── Performance: preload hint applied via PHP wp_head ───── */

/* Fix: reveal animation — ensure .revealed elements are visible */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; }
.reveal.revealed { opacity: 1 !important; transform: none !important; }

/* ── Round 2 patch end ───────────────────────────────────── */
