/* ==========================================================================
   TITANXPLORER — editorial layer (loaded last on every page)
   One visual world, two reading modes:
     Paper  (data-theme="light")  warm paper, dark ink, daylight, reading
     Night  (data-theme="dark")   deep charcoal, warm light text, depth
   Accent = action / selected / important. Grey = metadata. Ink = the thought.
   This file sits on top of V7's structure; it adds, it does not restructure.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root{
  --paper:#fbf9f5; --paper-deep:#eeeae2; --ink:#11100e;
  --night:#10100f; --night-2:#181714;
  --tx-accent-paper:#ED1C24;   /* accent on paper: AA on both paper tones */
  --tx-accent-night:#ED1C24;   /* accent on night: a touch softer than #ED1C24 */
  --tx-text-night:#ece8df;     /* warm light, not pure white */
  --tx-muted-night:#a8a398;
  --tx-muted-paper:#66635b;
  --tx-ease:cubic-bezier(.2,.6,.2,1);
  --tx-gutter:clamp(1.25rem,5vw,5rem);
  --tx-section:clamp(5rem,9vw,9.5rem);
}

/* Night (default composition: night bands with paper bands) */
html[data-theme="dark"]{
  --white:var(--tx-text-night); --white-rgb:236,232,223;
  --muted:var(--tx-muted-night);
  --red:var(--tx-accent-night); --gold:var(--tx-accent-night); --gold-rgb:240,105,74;
  color-scheme:dark;
}

/* Paper: a real light mode. Night surfaces become paper; ink replaces light text. */
html[data-theme="light"]{
  --navy:#fbf9f5; --navy-mid:#f3f0ea; --navy-soft:#eeeae2;
  --gold:var(--tx-accent-paper); --red:var(--tx-accent-paper); --gold-light:#ED1C24;
  --gold-dim:rgba(237,28,36,.10); --gold-rgb:207,47,25;
  --white:#11100e; --white-rgb:17,16,14; --off:#2c2a26; --muted:var(--tx-muted-paper);
  --rule:rgba(17,16,14,.16);
  --navy-rgb:251,249,245; --navy-mid-rgb:243,240,234;
  --night:#fbf9f5; --night-2:#f3f0ea; --line-light:rgba(17,16,14,.16);
  color-scheme:light;
}

/* Paper bands carry the paper accent in both modes */
html :is(#from-bukar,#best-thinking,#established,#voice,#understanding,#not-for-you,#how-the-work-happens){
  --red:var(--tx-accent-paper); --gold:var(--tx-accent-paper);
}
/* Night bands carry the night accent (dark mode) */
html[data-theme="dark"] :is(.hero,#problem,#another-job,#what-we-do,#ai,#cases,#frameworks,#evidence,#diagnostics,#stay-in-loop,#connect,nav,footer,.content-section,.framework-hero,.diagnostic-hero,.closing-cta,.cta-section,.case-nav){
  --red:var(--tx-accent-night); --gold:var(--tx-accent-night);
}
/* In Paper mode those same bands use the paper accent */
html[data-theme="light"] :is(.hero,#problem,#another-job,#what-we-do,#cases,#frameworks,#evidence,#diagnostics,#stay-in-loop,nav,.content-section,.framework-hero,.diagnostic-hero,.cta-section,.case-nav){
  --red:var(--tx-accent-paper); --gold:var(--tx-accent-paper);
}

/* Night islands: a few deliberate deep passages that stay dark in Paper mode */
html[data-theme="light"] :is(#ai,#connect,footer,.closing-cta,section[style*="text-align: center"],.case-doctrine){
  --white:var(--tx-text-night); --white-rgb:236,232,223;
  --navy:#10100f; --navy-rgb:16,16,15; --navy-mid:#181714; --navy-soft:#181714;
  --muted:var(--tx-muted-night); --off:#c9c4b8;
  --gold:var(--tx-accent-night); --red:var(--tx-accent-night); --gold-rgb:240,105,74;
  --rule:rgba(237,28,36,.3); --line:rgba(245,242,234,.2);
  background:#10100f!important; color:var(--tx-body)!important;
}
html[data-theme="light"] :is(#ai,#connect,.closing-cta) .container{color:inherit}

/* Surfaces in Paper mode (night-mapped sections alternate paper / paper-deep) */
html[data-theme="light"] body{background:var(--paper)!important;color:var(--ink)!important}
html[data-theme="light"] nav{background:color-mix(in srgb,var(--paper) 92%,transparent)!important;border-color:rgba(17,16,14,.14)!important}
html[data-theme="light"] .hero,html[data-theme="light"] #problem,html[data-theme="light"] #frameworks,
html[data-theme="light"] .framework-hero,html[data-theme="light"] .diagnostic-hero,html[data-theme="light"] .content-section{background:var(--paper)!important;color:var(--ink)!important;border-color:rgba(17,16,14,.14)!important}
html[data-theme="light"] :is(#what-we-do,#cases,#another-job){background:var(--paper-deep)!important;color:var(--ink)!important}
html[data-theme="light"] :is(#diagnostics,#stay-in-loop){background:var(--paper)!important;color:var(--ink)!important;border-color:rgba(17,16,14,.14)!important}
html[data-theme="light"] .artifact-box{background:var(--paper-deep)!important;border-color:rgba(17,16,14,.16)!important}
html[data-theme="light"] .hero-portrait img{mix-blend-mode:multiply!important;opacity:1!important}
html[data-theme="light"] :is(.hero-eyebrow .label,#diagnostics p,#stay-in-loop p,#stay-in-loop a,#frameworks p){color:var(--tx-muted-paper)!important}
html[data-theme="light"] :is(.hero,#problem,#cases,#what-we-do,#frameworks,.content-section) :is(h1,h2,h3,h4,.section-title){color:var(--ink)!important}
html[data-theme="light"] .section-rule{background:var(--ink)!important}
html[data-theme="light"] .founder-copy p{color:var(--ink)!important}
html[data-theme="light"] .hero-sub:first-of-type{color:var(--ink)!important}

/* Smooth mode change, never on first paint */
html.tx-ready body,html.tx-ready nav,html.tx-ready section,html.tx-ready footer{
  transition:background-color .35s var(--tx-ease),color .35s var(--tx-ease),border-color .35s var(--tx-ease);
}

/* ---------- 2. TYPE HIERARCHY ---------- */
body{font-feature-settings:"kern","liga";-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3{text-wrap:balance}
p,li{text-wrap:pretty}

/* Orientation markers: small, quiet, recurring. Not headings. */
.tx-marker{display:flex;align-items:center;gap:.9rem;margin:0 0 1.6rem;
  font:600 .72rem/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--red);
  font-variant-numeric:tabular-nums}
.tx-marker::before{content:"";width:2.25rem;height:1px;background:currentColor;opacity:.55;flex:none}
.tx-marker b{font-weight:600;opacity:.62}
.tx-marker--quiet{color:var(--muted)}

/* The sentence that earns room */
.tx-statement{font-family:var(--serif);font-weight:500;letter-spacing:-.03em;line-height:1.02;
  font-size:clamp(2.2rem,5.4vw,5.2rem);max-width:17ch;text-wrap:balance;margin:0}
.tx-statement em{font-style:italic;color:var(--red)}
.tx-lead{font-family:var(--serif);font-size:clamp(1.25rem,1.9vw,1.6rem);line-height:1.4;max-width:34ch;color:inherit;opacity:.82}

/* Links and rules */
a{text-underline-offset:.22em;text-decoration-thickness:1px}
p a,li a,.problem-intro a{color:var(--red);text-decoration-color:color-mix(in srgb,var(--red) 45%,transparent);transition:text-decoration-color .2s}
p a:hover,li a:hover,.problem-intro a:hover{text-decoration-color:currentColor}
hr{border:0;border-top:1px solid var(--line,rgba(17,16,14,.18))}

/* Cards stop looking like UI: square, ruled, no shadow */
[class*="card"],[class*="-box"],[class*="panel"],.connect-featured,.connect-icon-item,.case-doctrine{
  border-radius:2px!important;box-shadow:none!important}
.btn-diag,.btn-diag-sec,.connect-featured-btn,.nav-cta,a.btn,button.btn{border-radius:0!important;box-shadow:none!important}

/* ---------- 3. NAVIGATION: quiet, like a publication ---------- */
nav{padding:.95rem clamp(1.25rem,4vw,4rem)!important;justify-content:space-between!important}
nav::after{display:none}
.nav-logo{font-size:.92rem!important;letter-spacing:.16em!important}
.nav-links{align-items:center!important;gap:clamp(1rem,2vw,1.9rem)!important}
.nav-links a:not(.nav-cta){font-size:.8rem!important;letter-spacing:.01em!important;opacity:.78;position:relative;padding:.35rem 0;text-decoration:none!important;transition:opacity .2s}
.nav-links a:not(.nav-cta)::after{content:"";position:absolute;left:0;right:0;bottom:.05rem;height:1px;background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform .3s var(--tx-ease)}
.nav-links a:not(.nav-cta):hover{opacity:1;color:inherit!important}
.nav-links a:not(.nav-cta):hover::after,.nav-links a[aria-current="page"]::after{transform:scaleX(1)}
.nav-links a[aria-current="page"]{opacity:1}
.nav-cta{font-size:.78rem!important;font-weight:600!important;letter-spacing:.02em!important;padding:.55rem 1rem!important;border:1px solid currentColor!important;background:transparent!important;color:inherit!important;transition:background .25s,color .25s,border-color .25s!important}
.nav-cta:hover{background:var(--red)!important;border-color:var(--red)!important;color:#fff!important}
html[data-theme="dark"] .nav-cta:hover{color:#10100f!important}

/* ---------- 4. THE TOGGLE: a small signature ---------- */
.theme-toggle-item,.theme-toggle,#themeToggle{display:inline-flex!important}
.theme-toggle-item{align-items:center}
.theme-toggle{width:34px!important;height:34px!important;border:0!important;border-radius:50%!important;background:transparent!important;color:inherit!important;opacity:.7;position:relative;transition:opacity .2s,background .2s!important}
.theme-toggle:hover{opacity:1;background:color-mix(in srgb,currentColor 10%,transparent)!important}
.theme-toggle svg{width:17px!important;height:17px!important;stroke-width:1.5!important}
/* icon shows the mode you will switch TO: moon in Paper, sun in Night */
.theme-toggle .icon-sun{display:inline-block!important}
.theme-toggle .icon-moon{display:none!important}
html[data-theme="light"] .theme-toggle .icon-sun{display:none!important}
html[data-theme="light"] .theme-toggle .icon-moon{display:inline-block!important}
.theme-toggle--bar{display:none!important}
.theme-toggle:focus-visible{outline:2px solid var(--red);outline-offset:3px}

/* ---------- 5. FOOTER: the last page of the publication ---------- */
footer{padding:clamp(4.5rem,8vw,8rem) var(--tx-gutter) 2.5rem!important;border-top:1px solid var(--rule)!important}
footer .footer-inner{max-width:var(--max)!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:2.5rem clamp(2rem,4vw,4rem)!important;margin-bottom:clamp(3rem,6vw,5rem)!important}
footer .footer-col:first-child{grid-column:1/-1;padding-bottom:clamp(2.5rem,5vw,4rem);border-bottom:1px solid var(--line,rgba(245,242,234,.18))}
footer .footer-logo{font-family:var(--serif)!important;font-weight:500!important;font-size:clamp(2.8rem,10.5vw,10rem)!important;letter-spacing:-.04em!important;line-height:.9!important;margin:0 0 1.6rem!important;color:inherit!important}
footer .footer-tagline{max-width:34ch!important;font-family:var(--serif);font-size:clamp(1.05rem,1.5vw,1.3rem)!important;line-height:1.45!important}
footer .footer-col h4{font:600 .72rem/1 var(--sans)!important;letter-spacing:.16em!important;text-transform:uppercase;margin-bottom:1.3rem!important}
footer .footer-col a{font-size:.88rem!important;text-decoration:none}
footer .footer-col a:hover,footer .footer-bottom a:hover{text-decoration:underline}
footer .footer-bottom{max-width:var(--max)!important}

/* ---------- 6. RESPONSIVE ---------- */
@media(max-width:860px){
  .theme-toggle--bar{display:inline-flex!important;margin-left:auto;margin-right:.35rem}
  .theme-toggle-item{display:none!important}
  /* the old stylesheet hid every menu link on phones; the panel must list them */
  .nav-links a:not(.nav-cta){display:inline-block!important;font-size:1.3rem!important;font-family:var(--serif)!important;opacity:1}
  .nav-links .nav-cta{margin-top:.5rem}
  footer .footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:540px){
  footer .footer-inner{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){html.tx-ready *{transition:none!important}}

/* ---------- 7. BUTTON INK + INLINE-STYLE CATCHES ---------- */
html[data-theme="dark"]{--btn-ink:#10100f}
html[data-theme="light"]{--btn-ink:#fff}
html[data-theme="light"] :is(#ai,#connect,footer,.closing-cta,.case-doctrine){--btn-ink:#10100f}
a.btn:not(.btn-secondary),a[style*="background: var(--gold)"],.connect-featured-btn{color:var(--btn-ink)!important}
html[data-theme="light"] p[style*="white-rgb"]{color:rgba(var(--white-rgb),.84)!important}
html[data-theme="light"] :is(#ai,#connect,.closing-cta,.case-doctrine) p[style*="white-rgb"]{color:var(--tx-body)!important}
html[data-theme="light"] :is(#diagnostics,#stay-in-loop,#another-job,#established,#understanding) :is(h1,h2,h3,.section-title){color:var(--ink)!important}
/* ==========================================================================
   8. HOMEPAGE: rhythm through scale, markers, room around the big sentences
   ========================================================================== */
html[data-theme="dark"]{--tx-hair:rgba(245,242,234,.12)}
html[data-theme="light"]{--tx-hair:rgba(17,16,14,.14)}
html[data-theme="light"] :is(#ai,#connect,footer){--tx-hair:rgba(245,242,234,.14)}
.page-home{--tx-col:minmax(9rem,.2fr) minmax(0,.8fr)}

/* hairlines between bands carry the transitions */
.page-home main>section+section{border-top:1px solid var(--tx-hair)}

/* Section frame: marker column + content column, no scattered rows */
.page-home :is(#problem,#best-thinking,#what-we-do,#voice,#ai,#how-the-work-happens,#cases,#frameworks,#diagnostics) .fade-up:first-child{
  display:grid!important;grid-template-columns:var(--tx-col)!important;column-gap:clamp(2rem,6vw,7rem)!important;row-gap:0!important;align-items:start!important}
.page-home :is(#problem,#best-thinking,#what-we-do,#voice,#ai,#how-the-work-happens,#cases,#frameworks,#diagnostics) .tx-marker{grid-column:1!important;grid-row:1!important;margin:1.15rem 0 0!important}
.page-home :is(#problem,#best-thinking,#what-we-do,#voice,#ai,#how-the-work-happens,#cases,#frameworks,#diagnostics) .section-title{
  grid-column:2!important;grid-row:1!important;margin:0 0 clamp(2.5rem,5vw,4.5rem)!important;max-width:15ch!important;
  font-size:clamp(3rem,7vw,7.2rem)!important;line-height:.94!important}
.page-home #problem .section-title{max-width:16ch!important}
.page-home #cases .section-title,.page-home #diagnostics .section-title{max-width:18ch!important}
.page-home :is(#problem,#best-thinking,#what-we-do,#voice,#ai,#how-the-work-happens,#cases,#frameworks,#diagnostics) :is(.problem-intro,.diag-lead,.more-link){
  grid-column:2!important;max-width:38rem!important;margin:0 0 1.15rem!important;font-size:1.06rem!important;line-height:1.75!important}
.page-home .more-link{margin-top:1.4rem!important}
.page-home .section-title em{color:inherit}

/* Statement moments: the sentence that earns room */
.page-home :is(#problem,#best-thinking,#what-we-do,#voice,#ai,#how-the-work-happens,#cases,#frameworks,#diagnostics) .problem-intro.tx-big{font-family:var(--serif)!important;font-size:clamp(1.55rem,2.7vw,2.5rem)!important;line-height:1.22!important;letter-spacing:-.015em!important;max-width:30ch!important;margin:2.2rem 0 2.2rem!important;color:inherit!important}
.page-home :is(#problem,#best-thinking,#what-we-do,#voice,#ai,#how-the-work-happens,#cases,#frameworks,#diagnostics) .problem-intro.tx-mid{font-family:var(--serif)!important;font-size:clamp(1.4rem,2.2vw,2rem)!important;line-height:1.25!important;max-width:28ch!important;margin:1.4rem 0!important}
.page-home :is(#problem,#best-thinking,#what-we-do,#voice,#ai,#how-the-work-happens,#cases,#frameworks,#diagnostics) .problem-intro.tx-pull{font-family:var(--serif)!important;font-style:italic;font-size:clamp(1.9rem,4vw,3.6rem)!important;line-height:1.05!important;letter-spacing:-.025em!important;max-width:20ch!important;color:var(--red)!important;margin:2.4rem 0 2.8rem!important}
.page-home :is(#problem,#best-thinking,#what-we-do,#voice,#ai,#how-the-work-happens,#cases,#frameworks,#diagnostics) .problem-intro.tx-accent{color:var(--red)!important}
.page-home :is(#problem,#best-thinking,#what-we-do,#voice,#ai,#how-the-work-happens,#cases,#frameworks,#diagnostics) .problem-intro.tx-big.tx-accent{font-size:clamp(2rem,4vw,4rem)!important;line-height:1.02!important;letter-spacing:-.03em!important;max-width:20ch!important;margin-top:2.8rem!important}

/* Hero: the board observation keeps its place and gets quiet weight */
.page-home .tx-observation{position:relative;z-index:1;font-family:var(--serif)!important;font-style:italic;font-size:clamp(1.15rem,1.7vw,1.4rem)!important;line-height:1.5!important;color:inherit!important;opacity:.82;max-width:34rem!important;margin:0 0 2.4rem!important;padding-left:1.2rem;border-left:1px solid var(--red)}
.page-home .hero-rule{display:none}
.page-home .hero-eyebrow{margin-bottom:1.1rem!important}

/* Founder letter: the portrait gets editorial weight */
.page-home .founder-note-grid{grid-template-columns:minmax(300px,.9fr) minmax(0,1.1fr)!important;gap:clamp(2.5rem,7vw,7rem)!important;align-items:start!important}
.page-home .founder-portrait{position:sticky;top:6.5rem}
.page-home .founder-portrait img{max-width:none!important;width:100%!important;aspect-ratio:4/5;object-fit:cover;object-position:50% 18%;filter:grayscale(1) contrast(1.03)!important}
.page-home .founder-copy .tx-marker{margin-bottom:2rem!important}
.page-home .founder-copy p[style*="Public Sans"]{font-family:var(--serif)!important;font-weight:400!important;font-size:clamp(1.35rem,2.1vw,1.9rem)!important;line-height:1.38!important;letter-spacing:-.012em;margin-top:1.5rem!important}

/* The pause: one quiet photograph, a lot of room around it */
.page-home section.tx-pause{padding:clamp(4.5rem,9vw,9rem) var(--tx-gutter)!important;height:auto!important;background:var(--night)!important;display:flex;justify-content:center}
.page-home section.tx-pause img{width:min(300px,62vw)!important;height:auto!important;max-width:none!important;object-fit:contain!important;opacity:1!important;filter:grayscale(1)!important;border-radius:0!important}
html[data-theme="light"] .page-home section.tx-pause{background:var(--paper)!important}

/* Process: six separate steps, ruled, not six identical cards */
.page-home .tx-steps{grid-column:2;list-style:none;margin:1rem 0 1.5rem;padding:0;max-width:38rem;border-top:1px solid var(--tx-hair)}
.page-home .tx-step{display:grid;grid-template-columns:3.4rem 1fr;align-items:baseline;gap:0 1rem;padding:1.15rem 0;border-bottom:1px solid var(--tx-hair)}
.page-home .tx-step__num{font:600 .74rem/1 var(--sans);letter-spacing:.14em;color:var(--red);font-variant-numeric:tabular-nums}
.page-home .tx-step__title{font-family:var(--serif);font-size:clamp(1.45rem,2.3vw,2.1rem);line-height:1.1;letter-spacing:-.02em}

/* Cases: an editorial index, not paragraphs and not SaaS cards */
.page-home .tx-cases{grid-column:2;margin:2.2rem 0 1.5rem;border-top:1px solid var(--tx-hair)}
.page-home .tx-case{display:grid;grid-template-columns:5.2rem minmax(0,1fr) 1.6rem;gap:0 1.5rem;align-items:baseline;padding:1.9rem 0;border-bottom:1px solid var(--tx-hair);color:inherit!important;text-decoration:none!important;transition:padding-left .3s var(--tx-ease)}
.page-home .tx-case__num{font:600 .72rem/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--red);font-variant-numeric:tabular-nums}
.page-home .tx-case__num b{font-weight:600}
.page-home .tx-case__title{display:block;font-family:var(--serif);font-size:clamp(1.45rem,2.5vw,2.3rem);line-height:1.1;letter-spacing:-.02em;max-width:24ch}
.page-home .tx-case__desc{display:block;margin-top:.8rem;font-size:.95rem;line-height:1.6;color:var(--muted);max-width:44ch}
.page-home .tx-case__arrow{color:var(--red);transition:transform .3s var(--tx-ease)}
.page-home .tx-case:hover{padding-left:.6rem}
.page-home .tx-case:hover .tx-case__arrow{transform:translateX(.4rem)}
.page-home .tx-case:focus-visible{outline:2px solid var(--red);outline-offset:4px}

/* The one number that matters on this page */
.page-home .tx-figure{grid-column:2;display:flex;align-items:baseline;flex-wrap:wrap;gap:.5rem 1.4rem;margin:0 0 1.6rem}
.page-home .tx-figure__num{font-family:var(--serif);font-weight:500;font-size:clamp(3.8rem,9vw,8.5rem);line-height:.9;letter-spacing:-.045em;color:var(--red)}
.page-home .tx-figure__cap{font:600 .72rem/1.4 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}

/* Review entry point: calm, not a banner */
.page-home #diagnostics .fade-up:last-child{display:flex!important;flex-wrap:wrap;align-items:center;gap:1rem 2rem;margin:1.6rem 0 0 calc(var(--tx-col-offset,0px))!important;padding-left:0}
@media(min-width:861px){.page-home #diagnostics .fade-up:last-child{margin-left:calc(20% + clamp(2rem,6vw,7rem)*.2)!important}}
.page-home #diagnostics .btn-diag{display:inline-flex!important;width:auto!important;padding:.9rem 1.5rem!important}
.page-home #diagnostics .btn-diag-sec{display:inline-flex!important;width:auto!important;border:0!important;background:none!important;padding:0!important;text-decoration:underline;text-underline-offset:.25em}

/* Closing conversation: one invitation, ruled not boxed */
.page-home #connect .section-title{font-size:clamp(3rem,7vw,7rem)!important;max-width:14ch!important}
.page-home .connect-featured{background:none!important;border:0!important;border-top:1px solid var(--tx-hair)!important;border-bottom:1px solid var(--tx-hair)!important;padding:1.6rem 0!important;margin-top:2.4rem}
.page-home .connect-featured-btn{padding:.9rem 1.5rem!important}

@media(max-width:860px){
  .page-home :is(#problem,#best-thinking,#what-we-do,#voice,#ai,#how-the-work-happens,#cases,#frameworks,#diagnostics) .fade-up:first-child{display:block!important}
  .page-home .tx-marker{margin:0 0 1.4rem!important}
  .page-home .founder-note-grid{grid-template-columns:1fr!important}
  .page-home .founder-portrait{position:static}
  .page-home .founder-portrait img{aspect-ratio:4/5;max-height:560px}
  .page-home .tx-case{grid-template-columns:1fr 1.4rem;padding:1.6rem 0}
  .page-home .tx-case__num{grid-column:1/-1;margin-bottom:.8rem}
  .page-home .tx-case__body{grid-column:1}
  .page-home .tx-case__arrow{grid-row:2;grid-column:2}
  .page-home .tx-step{grid-template-columns:2.6rem 1fr}
  .page-home :is(.problem-intro,.diag-lead,.more-link){max-width:none!important}
  .page-home #diagnostics .fade-up:last-child{margin-left:0!important}
  .page-home .tx-pause{padding:3.5rem var(--tx-gutter)!important}
}

/* ==========================================================================
   9. OTHER PAGES: same grammar (markers, scale, rules), no separate concepts
   ========================================================================== */
/* Review: the number is an object */
.review-hero__price{font-family:var(--serif)!important;font-weight:500!important;font-size:clamp(3.8rem,9vw,8rem)!important;line-height:.9!important;letter-spacing:-.045em!important;color:var(--red)!important;margin:.4rem 0 1.6rem!important}
/* Results: cases as an editorial index */
.case-index-row{padding:2.2rem 0!important;border-color:var(--tx-hair,rgba(245,242,234,.14))!important;transition:padding-left .3s var(--tx-ease)}
.case-index-row:hover{padding-left:.6rem!important}
.case-index-num{font:600 .72rem/1 var(--sans)!important;letter-spacing:.14em;color:var(--red)!important}
.case-index-text :is(h2,h3,strong,a){font-family:var(--serif)!important;font-size:clamp(1.5rem,2.6vw,2.4rem)!important;line-height:1.1!important;letter-spacing:-.02em}
.case-index-arrow{color:var(--red)!important}
/* Story: a document, with a calm reading measure */
.story-narrative p{font-size:clamp(1.08rem,1.25vw,1.2rem)!important;line-height:1.8!important}
.story-hero__title{font-size:clamp(3rem,7vw,7rem)!important;line-height:.95!important;letter-spacing:-.03em}
/* Reading pages: comfortable body copy everywhere */
main :is(p,li){font-size:max(1rem,1em)}
html[data-theme="light"] .case-index-row{border-color:rgba(17,16,14,.16)!important}

/* ---------- 10. MOBILE RECOMPOSITION ---------- */
.connect-featured-btn svg{width:1.05em!important;height:1.05em!important;flex:none}
@media(max-width:860px){
  .page-home .hero-content p,.page-home .hero-content .hero-sub{text-align:left!important}
  .page-home .hero h1{text-align:left!important}
  .tx-capture-fields{flex-direction:column!important;align-items:stretch!important;gap:.7rem!important}
  .tx-capture-field,.tx-capture-input,.tx-capture-btn{width:100%!important;max-width:none!important}
  .page-home .founder-copy .tx-marker{margin-top:1.6rem!important}
}
/* inputs follow the mode */
html[data-theme="light"] #stay-in-loop .tx-capture-input{background:#fff!important;color:var(--ink)!important;border:1px solid rgba(17,16,14,.25)!important}
html[data-theme="light"] #stay-in-loop .tx-capture-input::placeholder{color:#77746b!important}

/* ---------- 9. HOMEPAGE: inline-style consolidation ----------
/* These rules preserve the V7 visual decisions while keeping presentation
   in the stylesheet rather than in the HTML. */
.page-home .hero-sub{margin-bottom:var(--space-5)}
.page-home .hero-sub.hero-opening{color:var(--white);font-weight:500}
.page-home .hero-sub.hero-actions{margin-bottom:5rem;position:relative;z-index:1}
.page-home .tx-inline-cta{color:var(--gold);text-decoration:none}
.page-home .tx-inline-cta--strong{font-weight:600}

.page-home #from-bukar{
  background:var(--navy-soft);
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule)
}
.page-home #from-bukar .founder-letter{
  font-family:'Public Sans',sans-serif;
  font-size:clamp(1.2rem,2.4vw,1.6rem);
  font-weight:300;
  color:var(--white);
  line-height:1.75
}
.page-home #from-bukar .founder-letter--spaced{margin-top:var(--space-6)}
.page-home #from-bukar .founder-meta{
  font-family:'IBM Plex Mono',monospace;
  font-size:.85rem;
  color:var(--muted);
  margin-top:var(--space-8);
  letter-spacing:.02em
}
.page-home #from-bukar .founder-link{
  color:var(--gold);
  font-size:.92rem;
  font-weight:600;
  text-decoration:none
}

.page-home section.tx-pause{
  padding:var(--space-rhythm-release) 2rem;
  text-align:center
}
.page-home section.tx-pause .tx-pause-image{
  max-width:320px;
  width:100%;
  height:auto;
  border-radius:var(--radius-sm);
  filter:grayscale(1);
  opacity:.9
}
.page-home .more-link a.tx-inline-cta{font-weight:600}
.page-home .tx-spaced-block{margin-top:var(--space-5)}

/* ---------- RESULTS: editorial case page ---------- */
.framework-hero-container .tx-marker{margin:0 0 2.2rem;color:var(--muted)}
.framework-hero-container .tx-marker::before{background:currentColor}
.framework-hero-container .tx-marker b{font-size:.72rem;letter-spacing:.14em}
.framework-hero-container .tx-marker span{font-size:.76rem;letter-spacing:.02em}
.framework-hero .hero-sub{max-width:720px!important;font-family:var(--serif)!important;font-size:clamp(1.45rem,2.5vw,2.25rem)!important;line-height:1.25!important;margin-top:2rem!important;color:inherit!important}
.case-disclosure{margin-top:1.8rem;padding:1.1rem 1.4rem;border-left:3px solid var(--red);background:var(--paper-deep);border-radius:0}
[data-theme="dark"] .case-disclosure{background:var(--night-2)}
.case-disclosure p{margin:0!important;font-size:.95rem!important;line-height:1.7!important;color:inherit!important;opacity:.78}
.results-cta{text-align:center;margin-top:3rem}
.results-cta-copy{margin-bottom:2rem!important;max-width:520px!important;margin-left:auto!important;margin-right:auto!important}
.results-cta .btn{border-radius:0!important;background:var(--red)!important;color:#fff!important}
.results-cta .btn:hover{background:var(--red-soft)!important}
.closing-cta-container{max-width:860px!important;margin:0 auto!important}
.closing-rule{width:36px;height:1px;background:var(--red);margin-bottom:1.5rem}
.closing-kicker{font-size:.72rem!important;letter-spacing:.2em;text-transform:uppercase;color:var(--red)!important;font-weight:500;margin-bottom:1rem!important}
.closing-cta h2{font-family:var(--serif)!important;font-size:clamp(3rem,7vw,7rem)!important;font-weight:500!important;line-height:.96!important;margin-bottom:1.2rem!important}
.closing-cta h2 em{font-style:normal!important;color:var(--red)!important}
.closing-copy{font-size:1rem!important;color:rgba(245,242,234,.68)!important;line-height:1.8!important;max-width:620px!important;margin-bottom:3rem!important}
.mech-link{display:inline-block;margin-top:1rem;color:var(--red)!important;font-size:.85rem;font-weight:600;text-decoration:none}
.mech-link:hover{text-decoration:underline;text-underline-offset:.2em}
@media(max-width:720px){
  .framework-hero-container .tx-marker{margin-bottom:1.6rem}
  .framework-hero .hero-sub{font-size:1.45rem!important}
  .case-disclosure{margin-top:1.2rem;padding:1rem}
  .results-cta{text-align:left}
  .results-cta-copy{margin-left:0!important;margin-right:0!important}
  .closing-cta h2{font-size:clamp(2.8rem,14vw,5.4rem)!important}
}

/* ---------- NAV: "Join our newsletter" is always the last link ---------- */
.nav-links a{white-space:nowrap}
.nav-links .nav-newsletter a:not(.nav-cta){font-size:.78rem!important}
/* eight links plus the newsletter need room: the menu panel takes over below 1060px */
@media(max-width:1060px){
  .nav-toggle{display:block!important}
  .theme-toggle--bar{display:inline-flex!important;margin-left:auto;margin-right:.35rem}
  .theme-toggle-item{display:none!important}
  .nav-links{position:fixed!important;top:0;right:0;z-index:1050;width:min(78vw,320px);height:100vh;height:100dvh;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:1.6rem!important;padding:5.5rem 2rem 2rem!important;overflow-y:auto;background:var(--navy-mid)!important;border-left:1px solid color-mix(in srgb,currentColor 14%,transparent);transform:translateX(100%);transition:transform .32s ease}
  .nav-links.open{transform:translateX(0)}
  .nav-links:not(.open){visibility:hidden;transition:transform .32s ease,visibility 0s linear .32s}
  .nav-links a:not(.nav-cta){display:inline-block!important;font-size:1.3rem!important;font-family:var(--serif)!important;opacity:1}
  .nav-links .nav-cta{margin-top:.5rem}
  .nav-links .nav-newsletter{margin-top:auto!important;width:100%;padding-top:1.4rem;text-align:center;border-top:1px solid color-mix(in srgb,currentColor 18%,transparent)}
  .nav-links .nav-newsletter a:not(.nav-cta){font-family:var(--sans)!important;font-size:.95rem!important;letter-spacing:.01em!important}
}

/* ---------- Number columns removed: layouts close up ---------- */
.page-home .tx-step{grid-template-columns:minmax(0,1fr)}
.page-home .tx-case{grid-template-columns:minmax(0,1fr) 1.6rem}
.thinking-entry a{grid-template-columns:minmax(0,1fr) auto!important}
.thinking-entry:nth-child(even) .thinking-entry__body{margin-left:0!important}
.wwu-route{grid-template-columns:minmax(0,1fr) auto!important}
.framework-hero-container h1{margin-top:0!important}
@media(max-width:700px){
  .thinking-entry a{grid-template-columns:minmax(0,1fr)!important;row-gap:1rem}
}
.case-index{width:100%}
.case-index a.case-index-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:2rem!important}
.case-index-text{max-width:46rem}
.case-index-text h3{margin:0 0 .6rem}
@media(max-width:700px){
  .case-index a.case-index-row{grid-template-columns:minmax(0,1fr)!important;gap:.8rem!important}
  .case-index-meta{grid-column:auto!important}
  .case-index-arrow{display:block!important}
}

/* ---------- Calmer headlines: less compression on phones, plain list titles ---------- */
@media(max-width:700px){
  h1,h2,h3{letter-spacing:-.025em!important}
  .hero-content h1{font-size:clamp(2.6rem,13vw,4.8rem)!important}
}
.articles-title em,.books-title em{font-style:normal!important}

/* ---------- Homepage problem section: plain paragraphs, one closing line ---------- */
#problem .problem-intro:nth-of-type(n){font-family:var(--sans)!important;font-size:1.06rem!important;line-height:1.78!important;color:inherit!important;margin:0 0 1.2rem!important;max-width:690px!important}
#problem .problem-intro:last-of-type{font-family:var(--serif)!important;font-size:clamp(1.6rem,3vw,2.4rem)!important;line-height:1.15!important;margin-top:2.2rem!important;margin-bottom:0!important}

/* Thinking index: plain list title */
.thinking-list-title{font-family:var(--serif);font-weight:400;font-size:clamp(1.5rem,3vw,2rem);margin:0 0 1.4rem;letter-spacing:-.01em}

/* ==========================================================================
   MOBILE MENU: full-screen, large type, "Menu" on the left, logo on the right
   ========================================================================== */
@media(max-width:1060px){
  nav{flex-wrap:nowrap!important;justify-content:space-between!important}
  nav .nav-toggle{order:1;display:inline-flex!important;align-items:center;position:relative;width:auto!important;height:2.4rem!important;padding:0 0 0 2.5rem!important;z-index:1100;color:inherit;font:500 1rem/1 var(--sans)}
  nav .nav-toggle::after{content:"Menu";color:var(--white)}
  nav .nav-toggle.open::after{content:""}
  nav .nav-toggle span{left:0!important;right:auto!important;width:1.45rem!important;height:2px!important;background:var(--white)!important}
  nav .nav-toggle span:nth-child(1){top:calc(50% - 5px)!important}
  nav .nav-toggle span:nth-child(2){display:none!important}
  nav .nav-toggle span:nth-child(3){top:calc(50% + 3px)!important}
  nav .nav-toggle.open span:nth-child(1){top:calc(50% - 1px)!important;transform:rotate(45deg)}
  nav .nav-toggle.open span:nth-child(3){top:calc(50% - 1px)!important;transform:rotate(-45deg)}
  nav .nav-logo,nav .logo{order:2;margin-left:auto}
  nav:has(.nav-links.open) .nav-logo,nav:has(.nav-links.open) .logo{visibility:hidden}
  nav .theme-toggle--bar{display:none!important}
  .nav-overlay{display:none!important}

  nav .nav-links{position:fixed!important;inset:0;width:100%!important;max-width:none!important;height:100vh;height:100dvh;margin:0;
    flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;
    padding:6.2rem var(--tx-gutter) 2rem!important;overflow-y:auto;border:0!important;
    background:var(--navy)!important;color:var(--white)!important;
    transform:none!important;opacity:0;visibility:hidden!important;
    transition:opacity .25s ease,visibility 0s linear .25s!important;z-index:1050}
  nav .nav-links.open{opacity:1;visibility:visible!important;transition:opacity .25s ease,visibility 0s!important}
  nav .nav-links li{width:100%;margin:0;text-align:left}
  nav .nav-links li a:not(.nav-cta){display:inline-block!important;padding:.5rem 0!important;font-family:var(--serif)!important;font-weight:400!important;
    font-size:clamp(2.1rem,9.5vw,3rem)!important;line-height:1.15!important;letter-spacing:-.02em!important;color:var(--white)!important;text-decoration:none!important}
  nav .nav-links li a[aria-current="page"]:not(.nav-cta){text-decoration:underline!important;text-decoration-color:var(--red)!important;text-decoration-thickness:3px!important;text-underline-offset:.28em!important}
  nav .nav-links a[aria-current="page"]{border-bottom:0!important;box-shadow:none!important;background-image:none!important}
  nav .nav-links a[aria-current="page"]::after,nav .nav-links a[aria-current="page"]::before{display:none!important}
  nav .nav-logo,nav .logo{font-size:.8rem!important;letter-spacing:.13em!important}
  nav .brand-symbol{width:20px!important;height:20px!important;margin-right:7px!important}
  nav .nav-links li:has(.nav-cta){margin-top:1.8rem}
  nav .nav-links .nav-cta{display:inline-block;margin:0!important;padding:1rem 1.7rem!important;background:var(--red)!important;color:var(--paper)!important;border:0!important;border-radius:0!important;
    font:600 .95rem/1 var(--sans)!important;letter-spacing:.02em!important}
  nav .nav-links .nav-newsletter{margin-top:auto!important;padding-top:1.6rem!important;border-top:1px solid color-mix(in srgb,currentColor 18%,transparent)!important;width:100%;text-align:left!important}
  nav .nav-links li.nav-newsletter a:not(.nav-cta){font-family:var(--sans)!important;font-size:1rem!important;letter-spacing:0!important;padding:.2rem 0!important}
  nav .nav-links .theme-toggle-item{display:flex!important;margin-top:.8rem;justify-content:flex-start}
  nav .nav-links .theme-toggle{margin-left:-.5rem}
  html:has(.nav-links.open){overflow:hidden}
  body:has(.nav-links.open) :is(.calendly-badge-widget,.calendly-overlay){display:none!important}
}

/* ==========================================================================
   NIGHT: deeper, quieter, with glass only on the surfaces that float
   (top bar, phone menu, hover edge on index rows). Text never sits on glass.
   ========================================================================== */
html[data-theme="dark"]{
  --navy:#0b0a09; --navy-mid:#121110; --navy-soft:#121110; --navy-rgb:11,10,9;
  --night:#0b0a09; --night-2:#121110;
  --white:#f2eee7; --white-rgb:242,238,231;
}
html[data-theme="dark"] body{background:#0b0a09!important}
/* one soft warm light behind the top of every page, so the glass has something to refract */
html[data-theme="dark"] body::before{content:"";position:fixed;left:0;right:0;top:0;height:78vh;pointer-events:none;z-index:1;mix-blend-mode:screen;
  background:radial-gradient(62% 70% at 14% -6%,rgba(237,28,36,.15),transparent 72%),radial-gradient(40% 50% at 92% 0%,rgba(236,226,205,.06),transparent 70%)}
html[data-theme="dark"] nav{
  background:rgba(14,13,12,.52)!important;
  -webkit-backdrop-filter:blur(22px) saturate(1.5)!important;backdrop-filter:blur(22px) saturate(1.5)!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 8px 30px rgba(0,0,0,.28)}
@media(max-width:1060px){
  html[data-theme="dark"] nav:has(.nav-links.open){-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none;background:transparent!important;border-color:transparent!important}
  html[data-theme="dark"] nav .nav-links{
    background:rgba(11,10,9,.74)!important;
    -webkit-backdrop-filter:blur(34px) saturate(1.6);backdrop-filter:blur(34px) saturate(1.6)}
}
html[data-theme="dark"] :is(.case-index a.case-index-row,.thinking-entry a){transition:background .3s ease,box-shadow .3s ease}
html[data-theme="dark"] :is(.case-index a.case-index-row,.thinking-entry a):hover{
  background:rgba(255,255,255,.04);border-radius:14px;
  -webkit-backdrop-filter:blur(10px) saturate(1.3);backdrop-filter:blur(10px) saturate(1.3);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),inset 0 1px 0 rgba(255,255,255,.12)}
/* no blur available, or the visitor asked for less transparency: solid dark */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html[data-theme="dark"] nav{background:#0e0d0c!important}
  html[data-theme="dark"] nav .nav-links{background:#0b0a09!important}
}
@media(prefers-reduced-transparency:reduce){
  html[data-theme="dark"] nav{background:#0e0d0c!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  html[data-theme="dark"] nav .nav-links{background:#0b0a09!important;-webkit-backdrop-filter:none;backdrop-filter:none}
  html[data-theme="dark"] body::before{display:none}
}

/* The top bar stays with the reader: overflow-x:hidden on body stops position:sticky, clip does not */
html body{overflow-x:clip!important}

/* ==========================================================================
   NIGHT: the one orange phrase gets a glossy, lit-from-one-side finish.
   Light mode keeps the flat strong red. Used on the hero phrase only.
   ========================================================================== */
html[data-theme="dark"] .hero-content h1 em{
  background-image:linear-gradient(100deg,rgba(255,255,255,0) 38%,rgba(255,244,236,.85) 50%,rgba(255,255,255,0) 62%),linear-gradient(118deg,#ED1C24 0%,#ED1C24 26%,#ED1C24 56%,#ED1C24 100%)!important;
  background-size:260% 100%,100% 100%!important;
  background-position:160% 0,0 0!important;
  background-repeat:no-repeat!important;
  -webkit-background-clip:text!important;background-clip:text!important;
  -webkit-text-fill-color:transparent!important;color:transparent!important;
  -webkit-box-decoration-break:clone!important;box-decoration-break:clone!important;
  filter:drop-shadow(0 1px 0 rgba(255,222,208,.38)) drop-shadow(0 12px 30px rgba(237,28,36,.30));
  animation:tx-sheen 2.2s cubic-bezier(.3,.6,.2,1) .7s 1 both;
}
html[data-theme="dark"] .hero-content h1 em:hover{animation:tx-sheen-hover 1.6s cubic-bezier(.3,.6,.2,1) 1 both}
@keyframes tx-sheen{from{background-position:160% 0,0 0}to{background-position:-60% 0,0 0}}
@keyframes tx-sheen-hover{from{background-position:160% 0,0 0}to{background-position:-60% 0,0 0}}
@media(prefers-reduced-motion:reduce){
  html[data-theme="dark"] .hero-content h1 em,html[data-theme="dark"] .hero-content h1 em:hover{animation:none;background-position:160% 0,0 0!important}
}

/* ==========================================================================
   HOME ON PHONES: message first, then the portrait with the board line on it
   ========================================================================== */
@media(max-width:860px){
  .page-home .hero-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;align-content:start!important;grid-auto-rows:auto!important;min-height:0!important}
  .page-home .hero-content{display:contents!important}
  .page-home .hero-rule{display:none!important}
  .page-home .hero-eyebrow{grid-row:1;grid-column:1;margin:0 0 1.1rem!important;text-align:left!important}
  .page-home .hero-eyebrow .label{display:block;line-height:1.6!important}
  .page-home .hero-content h1{grid-row:2;grid-column:1;margin:0 0 1.6rem!important}
  .page-home .hero-content .hero-opening{grid-row:3;grid-column:1;margin:0 0 2rem!important}
  .page-home .hero-portrait{grid-row:4;grid-column:1;order:0!important;position:relative!important;top:auto!important;width:100%!important;max-width:100%!important;margin:0 0 2rem!important;justify-self:stretch!important;overflow:hidden;border-radius:6px}
  .page-home .hero-portrait img{aspect-ratio:3/4!important;object-fit:cover!important;object-position:50% 0%!important;height:auto!important}
  .page-home .hero-portrait::after{display:none!important}
  .page-home .hero-portrait img{-webkit-mask-image:none!important;mask-image:none!important;filter:grayscale(1)!important}
  .page-home .tx-observation{grid-column:1;margin:0 0 2rem!important;font-size:1.05rem!important;max-width:none!important}
  .page-home .hero-content .hero-sub:not(.hero-opening){grid-column:1}
}
/* ==========================================================================
   FINAL CONSISTENCY: same logo size and bar height on every page, calmer headline leading
   ========================================================================== */
@media(min-width:1061px){
  nav .nav-logo,nav .logo{font-size:.92rem!important;letter-spacing:.16em!important;font-weight:700!important}
  nav .logo{display:inline-flex;align-items:center}
  nav{min-height:68px;padding-top:.9rem!important;padding-bottom:.9rem!important}
}
body:not(.page-home) h1{line-height:.96!important}
.framework-hero h1,.framework-hero-container h1{margin-bottom:1.4rem!important}
@media(min-width:861px){
  .back-button{display:inline-block;margin-left:max(0px,calc((100% - 800px)/2 + 40px))}
}


/* ==========================================================================
   ROCK ROUND: flat, one page colour per mode, no rules, no boxes, one red.
   3D / depth is reserved for the TITANXPLORER symbol and wordmark only.
   ========================================================================== */
:root{--rk-red:#ED1C24}
html[data-theme="light"]{
  --pg:#ffffff; --tx:#151515; --tx-soft:#5d5d5d;
  --paper:#fff;--paper-deep:#fff;--ink:#151515;
  --navy:#fff;--navy-mid:#fff;--navy-soft:#fff;--night:#fff;--night-2:#fff;
  --white:#151515;--white-rgb:21,21,21;--off:#3a3a3a;--muted:#5d5d5d;
  --red:var(--rk-red);--gold:var(--rk-red);--gold-light:var(--rk-red);--gold-rgb:237,28,36;--gold-dim:rgba(237,28,36,.08);
  --line:transparent;--line-light:transparent;--rule:transparent;
}
html[data-theme="dark"]{
  --pg:#0a0a0a; --tx:#efece6; --tx-soft:#a3a09a;
  --paper:#0a0a0a;--paper-deep:#0a0a0a;--ink:#efece6;
  --navy:#0a0a0a;--navy-mid:#0a0a0a;--navy-soft:#0a0a0a;--night:#0a0a0a;--night-2:#0a0a0a;
  --white:#efece6;--white-rgb:239,236,230;--off:#cfcbc3;--muted:#a3a09a;
  --red:var(--rk-red);--gold:var(--rk-red);--gold-light:var(--rk-red);--gold-rgb:237,28,36;--gold-dim:rgba(237,28,36,.12);
  --line:transparent;--line-light:transparent;--rule:transparent;
}
/* every band uses the one page colour: no dark in light, no light in dark */
html[data-theme] body,
html[data-theme] :is(main,section,header,footer,article,aside,nav,.hero,.hero-bg,.container,.content-section,.framework-hero,.diagnostic-hero,.closing-cta,.cta-section,.case-nav,.case-doctrine,#ai,#connect,#problem,#another-job,#what-we-do,#cases,#frameworks,#evidence,#diagnostics,#stay-in-loop,#from-bukar,#best-thinking,#established,#voice,#understanding,#not-for-you,#how-the-work-happens,section[style]){
  background:var(--pg)!important;background-image:none!important;color:var(--tx)!important;
  --white:var(--tx);--white-rgb:inherit;--red:var(--rk-red);--gold:var(--rk-red);--muted:var(--tx-soft);--off:var(--tx);
}
html[data-theme] body::before,html[data-theme] body::after,.hero-bg::before,.hero-bg::after{display:none!important}
html[data-theme] :is(h1,h2,h3,h4,h5,.section-title,.hero-content h1){color:var(--tx)!important}
html[data-theme] :is(p,li,.hero-sub,.problem-intro,.founder-copy p,.tx-observation){color:var(--tx)!important}
html[data-theme] :is(.label,.hero-eyebrow .label,small,figcaption,.meta){color:var(--tx-soft)!important}
html[data-theme] a{color:inherit}
html[data-theme] :is(em,.tx-accent,.logo-x,.hero-content h1 em){color:var(--rk-red)!important}
html[data-theme] .hero-content h1 em{
  background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;
  -webkit-text-fill-color:var(--rk-red)!important;filter:none!important;animation:none!important;font-style:italic}

/* no rules, no dividers, no borders (form fields keep a single underline) */
html[data-theme] *:not(input):not(textarea):not(select):not(.iti *){border:0!important;box-shadow:none!important}
html[data-theme] *::before,html[data-theme] *::after{border:0!important}
html[data-theme] :is(hr,.hero-rule,.section-rule,.hero-trace,.tx-rule,.rule,[class*="divider"],[class*="-rule"],svg.hero-trace){display:none!important}
html[data-theme] input,html[data-theme] textarea,html[data-theme] select{border:0!important;border-bottom:1.5px solid var(--tx-soft)!important;border-radius:0!important;background:transparent!important;color:var(--tx)!important;box-shadow:none!important}

/* nav: same colour as the page, no line, no glass */
html[data-theme] nav{background:var(--pg)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:0!important;box-shadow:none!important}
html[data-theme] nav .nav-links a{color:var(--tx)!important}

/* no boxes on anything clickable: text, red on hover, underline only */
html[data-theme] :is(a,button,[role="button"],summary,label){-webkit-tap-highlight-color:transparent;outline:0!important}
html[data-theme] :is(a:focus-visible,button:focus-visible){text-decoration:underline;text-underline-offset:.3em;text-decoration-thickness:1.5px}
html[data-theme] :is(.nav-cta,.btn,.button,.cta-button,[class*="btn"],[class*="button"],a.tx-inline-cta--strong,.tx-inline-cta,.download-btn,.framework-cta,.hero-actions a,.more-link,.founder-link,.case-nav a,.nav-newsletter a){
  background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;
  color:var(--rk-red)!important;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:.35em;
  transform:none!important;filter:none!important}
html[data-theme] :is(.nav-cta,.btn,.button,.cta-button,[class*="btn"],[class*="button"],.tx-inline-cta,.more-link):is(:hover,:active,:focus){background:none!important;color:var(--tx)!important;text-decoration-color:var(--rk-red)}
html[data-theme] nav .nav-links a.nav-cta{color:var(--tx)!important}
html[data-theme] :is(.artifact-box,.card,[class*="card"],.index-row,.thinking-row,.case-card,.framework-card,li,a):is(:hover,:active){background:none!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html[data-theme] .theme-toggle,html[data-theme] .theme-toggle:hover{background:none!important;border:0!important;box-shadow:none!important}

/* menu: flat, light-weight type like Rock, no "Close" word, no glass */
@media(max-width:1060px){
  html[data-theme] nav .nav-links{background:var(--pg)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important}
  html[data-theme] nav .nav-links a{font-weight:300!important;letter-spacing:-.01em!important;border:0!important;background:none!important}
  html[data-theme] nav .nav-links a[aria-current]{color:var(--rk-red)!important}
  html[data-theme] nav .nav-toggle::after,html[data-theme] nav .nav-toggle.open::after{color:var(--tx)!important}
  html[data-theme] nav .nav-toggle.open::after{content:""!important}
  html[data-theme] nav .nav-toggle span{background:var(--tx)!important}
}

/* the symbol and the wordmark: the only dimensional thing on the site */
html[data-theme] :is(nav .logo,nav .nav-logo,footer .logo,footer .nav-logo){
  background-image:linear-gradient(180deg,var(--lg1) 0%,var(--lg2) 55%,var(--lg3) 100%)!important;
  -webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;color:transparent!important;
  filter:drop-shadow(0 1px 0 var(--lgh)) drop-shadow(0 2px 3px var(--lgs))!important}
html[data-theme="light"]{--lg1:#5b5b5b;--lg2:#161616;--lg3:#000;--lgh:rgba(255,255,255,.9);--lgs:rgba(0,0,0,.3)}
html[data-theme="dark"]{--lg1:#ffffff;--lg2:#d9d6cf;--lg3:#8d8a84;--lgh:rgba(255,255,255,.12);--lgs:rgba(0,0,0,.9)}
html[data-theme] :is(nav .logo,nav .nav-logo) .brand-symbol{color:var(--lg2)}
html[data-theme] :is(nav .logo,nav .nav-logo) .logo-x{background-image:linear-gradient(180deg,#ff6a70 0%,#ED1C24 50%,#9c0c13 100%)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important}

/* portrait: natural colour, bright and soft, no tint, no blend, no mask */
html[data-theme] .hero-portrait img{filter:brightness(1.1) contrast(1.02) saturate(1.06)!important;mix-blend-mode:normal!important;opacity:1!important;-webkit-mask-image:none!important;mask-image:none!important}
html[data-theme] .hero-portrait::after,html[data-theme] .hero-portrait::before{display:none!important}

/* phone home: small portrait on the right of the opening lines */
@media(max-width:860px){
  .page-home .hero-grid{grid-template-columns:minmax(0,1fr) 40%!important;column-gap:1.1rem!important}
  .page-home .hero-eyebrow,.page-home .hero-content h1,.page-home .tx-observation,.page-home .hero-content .hero-sub:not(.hero-opening){grid-column:1 / -1!important}
  .page-home .hero-content .hero-opening{grid-row:3!important;grid-column:1!important;margin:0 0 2rem!important;align-self:start}
  .page-home .hero-portrait{grid-row:3!important;grid-column:2!important;width:100%!important;max-width:100%!important;margin:.3rem 0 2rem!important;border-radius:0!important;align-self:start}
  html[data-theme] .page-home .tx-observation{position:static!important;margin:0 0 2rem!important;padding:0!important;background:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;font-size:1.05rem!important}
}

html[data-theme] :is(.review-sheet,.story-portrait){background:var(--pg)!important;color:var(--tx)!important}
html[data-theme] .review-sheet *{color:inherit}

html[data-theme] .hero-portrait img{filter:none!important}
html[data-theme] :is(.formkit-submit,.newsletter-submit,button[type="submit"]){background:none!important;color:var(--rk-red)!important;border:0!important;box-shadow:none!important;padding:0!important;text-decoration:underline;text-underline-offset:.35em}
@media(max-width:1060px){
  html[data-theme] nav .nav-links a{font-family:var(--sans)!important;font-weight:300!important;font-size:clamp(1.9rem,8vw,2.6rem)!important}
  html[data-theme] nav .nav-links a.nav-cta{font-size:clamp(1.9rem,8vw,2.6rem)!important;color:var(--rk-red)!important}
}
@media all{html[data-theme] #from-bukar{border:0!important}}

html[data-theme] :is(.framework-hero,.diagnostic-hero,.hero,.content-section)::before,
html[data-theme] :is(.framework-hero,.diagnostic-hero,.hero,.content-section)::after{display:none!important;background:none!important}
html[data-theme] :is(.framework-hero,.diagnostic-hero) svg[aria-hidden="true"],html[data-theme] .hero-bg{display:none!important}
html[data-theme] .page-home .tx-observation{border:0!important;padding-left:0!important}

/* portrait is a cut-out: no box, no tint; sits straight on the page like Rock's */
html[data-theme] .hero-portrait{background:none!important}
html[data-theme] .hero-portrait img{aspect-ratio:auto!important;object-fit:contain!important}
html[data-theme="dark"] .hero-portrait img{filter:drop-shadow(0 0 60px rgba(255,255,255,.10))!important}
@media(max-width:860px){
  html[data-theme] .page-home .hero-portrait img{aspect-ratio:4/5!important;object-fit:cover!important;object-position:50% 0!important}
  .page-home .hero-grid{grid-template-columns:minmax(0,1fr) 44%!important}
}
html[data-theme="dark"] .hero-portrait img{filter:none!important;-webkit-mask-image:linear-gradient(#000 78%,transparent)!important;mask-image:linear-gradient(#000 78%,transparent)!important}
.page-home .tx-observation{margin:2rem 0!important}

/* ==========================================================================
   TYPE: light, high-contrast serif for the voice; quiet sans for reading.
   Ink for headlines, softer ink for body, grey for meta, red only for emphasis.
   ========================================================================== */
html[data-theme="light"]{--tx-body:#3b3b3b;--tx-soft:#6b6b6b}
html[data-theme="dark"]{--tx-body:#cfcbc3;--tx-soft:#8f8c86}
html body{font-family:"Public Sans",system-ui,sans-serif!important;font-weight:400;font-size:1.0625rem;line-height:1.7;font-optical-sizing:auto;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html[data-theme] :is(h1,h2,h3,h4,.section-title,.hero-sub:first-of-type,.hero-opening,.founder-copy p,.case-index-text,blockquote,.problem-intro.tx-big,.problem-intro.tx-mid,.problem-intro.tx-pull){
  font-family:"Newsreader",Georgia,serif!important;font-weight:340!important;letter-spacing:-.022em!important;font-optical-sizing:auto;font-variation-settings:"opsz" 72}
html[data-theme] h1{line-height:1.02!important;font-weight:320!important}
html[data-theme] :is(h2,h3,.section-title){line-height:1.08!important}
html[data-theme] :is(h1,h2,h3) em,html[data-theme] .hero-content h1 em{font-style:italic!important;font-weight:340!important;letter-spacing:-.025em!important}
/* body copy: softer than headlines, comfortable measure, even rhythm */
html[data-theme] :is(p,li){color:var(--tx-body)!important}
html[data-theme] :is(.hero-sub:not(:first-of-type):not(.hero-opening),.problem-intro,.content-block p,.founder-copy p:last-of-type,article p,li){font-family:"Public Sans",system-ui,sans-serif!important;font-weight:350!important;font-size:1.0625rem!important;line-height:1.72!important;max-width:36rem}
html[data-theme] :is(.hero-content .hero-sub){margin:0 0 1.25rem!important}
html[data-theme] :is(.hero-sub:first-of-type,.hero-opening){color:var(--tx)!important;font-size:clamp(1.45rem,2.4vw,2.1rem)!important;line-height:1.25!important}
html[data-theme] :is(.label,small,.meta,figcaption,.hero-eyebrow .label){font-weight:400!important;letter-spacing:.01em!important;color:var(--tx-soft)!important}
/* the board line reads as a spoken aside inside the argument */
html[data-theme] .page-home .tx-observation{font-family:"Newsreader",Georgia,serif!important;font-style:italic!important;font-weight:340!important;font-size:clamp(1.2rem,1.9vw,1.5rem)!important;line-height:1.45!important;color:var(--tx)!important;max-width:34rem!important;margin:1.8rem 0 1.8rem!important;padding:0!important}
/* nav + menu */
html[data-theme] nav .nav-links a{font-family:"Public Sans",system-ui,sans-serif!important;font-weight:400!important}
@media(max-width:1060px){html[data-theme] nav .nav-links a{font-family:"Newsreader",Georgia,serif!important;font-weight:320!important;letter-spacing:-.02em!important;font-size:clamp(2.1rem,9vw,2.9rem)!important;line-height:1.25!important}}
/* wordmark stays sans, tracked */
html[data-theme] :is(nav .logo,nav .nav-logo){font-family:"Public Sans",system-ui,sans-serif!important}
@media(max-width:700px){html[data-theme] body{font-size:1rem}html[data-theme] h1{letter-spacing:-.02em!important}}

html[data-theme] :is(h2,h3,h4,.section-title,.hero-sub:first-of-type,.hero-opening,.founder-copy p,.case-index-text,blockquote,.problem-intro.tx-big,.problem-intro.tx-mid,.problem-intro.tx-pull){font-variation-settings:normal;letter-spacing:-.012em!important;word-spacing:.04em}
html[data-theme] h1{font-variation-settings:"opsz" 60;letter-spacing:-.02em!important;word-spacing:.03em}
@media(min-width:861px){html[data-theme] .page-home .hero-content h1{font-size:clamp(3rem,5.6vw,5.4rem)!important}}

/* ==========================================================================
   ATMOSPHERE: occasional wide architectural photographs. No people, no
   landmarks, no captions. Black and white so they sit with the type.
   Files live in /assets/images/atmosphere/; a missing file removes its slot.
   ========================================================================== */
.atmos{margin:0;padding:0;width:100%;aspect-ratio:21/9;overflow:hidden;background:none}
.atmos img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;filter:grayscale(1) contrast(1.05) brightness(1.04)}
html[data-theme="dark"] .atmos img{filter:grayscale(1) contrast(1.05) brightness(.8)}
@media(max-width:860px){.atmos{aspect-ratio:4/3}}
@media(prefers-reduced-motion:no-preference){.atmos img{transition:opacity .6s ease}}

/* leftover hairline rules drawn with pseudo-elements */
html[data-theme] :is(.approach-frame,.how-frame,.thinking-frame,.review-sheet,.approach-understanding,.story-close)::before{display:none!important;content:none!important}

/* ===== LIGHT-MODE TEXT REPAIR — sections that were designed dark now sit on the page colour; their cream text must follow ===== */
html[data-theme="light"] :is(footer,#connect,#ai,#diagnostics,#stay-in-loop,.closing-cta,.case-doctrine,.connect-section,.mech-grid,.mech-cell){background:var(--pg)!important}
html[data-theme="light"] :is(footer,#connect,#ai,#diagnostics,#stay-in-loop,.closing-cta,.case-doctrine,.connect-section) :is(h1,h2,h3,h4,h5,h6){color:var(--tx)!important}
html[data-theme="light"] :is(footer,#connect,#ai,#diagnostics,#stay-in-loop,.closing-cta,.case-doctrine,.connect-section) :is(p,li,span,label,small,div,address,blockquote,cite){color:var(--tx-body)!important}
html[data-theme="light"] :is(footer,#connect,#ai,#diagnostics,#stay-in-loop,.closing-cta,.case-doctrine,.connect-section) a:not([class*="btn"]):not([class*="cta"]):not(.mech-link):not(.logo):not(.nav-logo):not([class*="red"]){color:var(--tx-body)!important}
html[data-theme="light"] :is(footer,#connect,#ai,#diagnostics,#stay-in-loop,.closing-cta,.case-doctrine,.connect-section) em{color:var(--rk-red)!important}
html[data-theme="light"] :is(footer,#connect,#ai,#diagnostics,#stay-in-loop,.closing-cta,.case-doctrine,.connect-section) :is(h4,.eyebrow,.label){color:var(--tx-soft)!important}
html[data-theme="light"] .closing-copy{color:var(--tx-body)!important}
html[data-theme="light"] :is(#ai,#connect,footer,.closing-cta,section[style*="text-align: center"],.case-doctrine){
  --white:#151515; --white-rgb:21,21,21; --off:#3a3a3a; --muted:#5d5d5d;
  --navy:#fff; --navy-rgb:255,255,255; --navy-mid:#fff; --navy-soft:#fff;
  --line:transparent; --rule:transparent;
  background:var(--pg)!important; color:var(--tx-body)!important;
}
html[data-theme="light"] section[style*="text-align: center"] :is(h1,h2,h3){color:var(--tx)!important}
html[data-theme="light"] section[style*="text-align: center"] p{color:var(--tx-body)!important}
html[data-theme="light"] :is(footer,#connect,#ai,.closing-cta,.case-doctrine) a[style*="background"]{color:var(--rk-red)!important;background:transparent!important}

/* STORY portrait — same cut-out as the homepage, sitting on the page colour, not a boxed photo */
html[data-theme] .story-portrait{background:none!important;margin:2.5rem 0!important;padding:0!important;max-width:none!important;width:100%!important;overflow:visible!important}
html[data-theme] .story-portrait img{display:block!important;width:min(100%,420px)!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;margin:0 auto 0 0!important;border-radius:0!important;filter:none!important;mix-blend-mode:normal!important;-webkit-mask-image:none!important;mask-image:none!important}
html[data-theme="dark"] .story-portrait img{filter:drop-shadow(0 0 60px rgba(255,255,255,.10))!important}

/* ASHY closing copy: footer, connect and closing sections read a step softer than the page text, still AA+ contrast */
html[data-theme="light"]{--ash:#55524c}
html[data-theme="dark"]{--ash:#b3afa5}
html[data-theme] :is(footer,#connect,#ai,#diagnostics,#stay-in-loop,.closing-cta,.case-doctrine,.connect-section) :is(p,li,span,label,small,address,blockquote,cite,.connect-lead,.closing-copy){color:var(--ash)!important}
html[data-theme] :is(footer,#connect,.closing-cta,.connect-section) a:not([class*="btn"]):not([class*="cta"]):not(.mech-link):not(.logo):not(.nav-logo):not([style*="background"]){color:var(--ash)!important}
html[data-theme] :is(footer,#connect,#ai,.closing-cta,.case-doctrine,.connect-section) :is(h1,h2,h3,.section-title){color:var(--tx)!important}
html[data-theme] :is(footer,#connect,#ai,.closing-cta,.case-doctrine,.connect-section) :is(h4,.eyebrow,.label){color:var(--tx-soft)!important}

/* ===== CONSENT NOTICE ===== */
.tx-consent{position:fixed;left:max(1rem,env(safe-area-inset-left));bottom:max(1rem,env(safe-area-inset-bottom));z-index:100000;width:min(23rem,calc(100vw - 2rem));padding:1.1rem 1.2rem 1rem;background:var(--pg,#fff);color:var(--tx-body,#3b3b3b);border-radius:10px;box-shadow:0 10px 40px rgba(0,0,0,.16),0 1px 3px rgba(0,0,0,.08);font-family:'Public Sans',sans-serif;font-size:.84rem;line-height:1.55}
html[data-theme="dark"] .tx-consent{background:#171716;box-shadow:0 10px 40px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.06)}
.tx-consent p{margin:0 0 .9rem!important;color:var(--tx-body,#3b3b3b)!important;max-width:none!important}
.tx-consent strong{color:var(--tx,#151515);font-weight:600}
.tx-consent a{color:var(--rk-red,#ED1C24)!important;text-decoration:underline;text-underline-offset:.18em}
.tx-consent__row{display:flex;gap:.6rem;align-items:center}
.tx-consent button{font:inherit;font-weight:600;font-size:.84rem;cursor:pointer;border-radius:999px;padding:.55rem 1.3rem;border:0!important;box-shadow:none!important}
.tx-consent__yes{background:var(--rk-red,#ED1C24)!important;color:#fff!important}
.tx-consent__no{background:transparent!important;color:var(--rk-red,#ED1C24)!important}
.tx-consent__yes:hover{filter:brightness(.92)}.tx-consent__no:hover{text-decoration:underline}
html.tx-consent-open .calendly-badge-widget{display:none!important}
.tx-cookie-link{display:block;margin:1rem auto 0;text-align:center;font-size:.78rem;color:var(--ash,#55524c)!important;cursor:pointer;text-decoration:underline;text-underline-offset:.2em}
