:root {
    --color-bg: #F7F6F4;
    --color-bg-dark: #141416;
    --color-text: #1A1A1C;
    --color-text-dim: #5A5A5E;
    --color-accent: #E2531E;
    --color-white: #F7F6F4;
    --color-line: #E4E1DB;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Space Grotesk", var(--font-body);
    --space-md: clamp(1.5rem, 3vw, 2.5rem);
    --space-lg: clamp(3rem, 8vw, 7rem);
    --space-xl: clamp(4rem, 12vw, 10rem);
    --radius-md: 0.5rem;
    --maxw: 1160px;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; font-family: var(--font-body); color: var(--color-text);
    background: var(--color-bg); line-height: 1.5; -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-md); }
  code, .mono { font-family: "SF Mono", "Menlo", "Consolas", monospace; }

  /* ---- Nav ---- */
  header.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247,246,244,0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-line);
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem var(--space-md); max-width: var(--maxw); margin: 0 auto;
  }
  .logo { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; text-decoration: none; letter-spacing: -0.02em; }
  .logo span { color: var(--color-accent); }
  nav.links { display: none; gap: 2rem; font-size: 0.95rem; font-weight: 500; }
  nav.links a { text-decoration: none; color: var(--color-text-dim); transition: color .15s; }
  nav.links a:hover, nav.links a:focus-visible { color: var(--color-text); }
  nav.links a.is-current { color: var(--color-text); }
  nav.links a.is-current::after { content: ""; display: block; height: 2px; background: var(--color-accent); margin-top: 4px; }

  /* ---- Native article pages ---- */
  .article-hero { background: var(--color-bg-dark); color: var(--color-white); padding: var(--space-xl) 0 var(--space-lg); }
  .article-hero .wrap { max-width: 760px; }
  .article-hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; max-width: 20ch; margin: 1rem 0 1.25rem; }
  .article-meta { font-size: 0.92rem; color: #A7A39C; display: flex; gap: 0.6rem; flex-wrap: wrap; }
  .article-meta a { color: var(--color-accent); text-decoration: none; }
  .article-body { max-width: 680px; margin: 0 auto; padding: var(--space-lg) var(--space-md) var(--space-xl); }
  .article-body > p { font-size: 1.13rem; line-height: 1.75; color: #2A2A2C; margin: 0 0 1.5rem; }
  .article-body h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2.75rem 0 1rem; letter-spacing: -0.01em; }
  .article-body strong { color: var(--color-text); font-weight: 700; }
  .article-body a:not(.btn) { color: var(--color-accent); font-weight: 600; }
  .article-body ul { margin: 0 0 1.5rem; padding-left: 1.3rem; }
  .article-body li { font-size: 1.08rem; line-height: 1.7; color: #2A2A2C; margin-bottom: 0.7rem; }
  .article-body .code-block { margin: 0 0 1.75rem; font-size: 0.9rem; }
  .article-body hr { border: none; border-top: 1px solid var(--color-line); margin: 2.5rem 0; }
  .article-cta { background: var(--color-bg-dark); color: var(--color-white); border-radius: var(--radius-md); padding: 2.5rem; margin-top: var(--space-lg); text-align: center; }
  .article-cta h3 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 0.5rem; }
  .article-cta p { color: #C7C3BC; margin: 0 0 1.5rem; }
  .article-back { display: inline-block; margin-bottom: 1rem; color: var(--color-accent); text-decoration: none; font-weight: 600; font-size: 0.92rem; }

  /* ---- Blog index ---- */
  .blog-list { display: flex; flex-direction: column; gap: 0; }
  .blog-post { display: grid; gap: 1.5rem; grid-template-columns: 1fr; padding: 2.5rem 0; border-bottom: 1px solid var(--color-line); }
  @media (min-width: 760px) { .blog-post { grid-template-columns: 140px 1fr; align-items: baseline; } }
  .blog-post .bp-date { font-size: 0.85rem; color: var(--color-text-dim); font-weight: 600; }
  .blog-post h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 0 0 0.6rem; }
  .blog-post p { color: var(--color-text-dim); line-height: 1.6; margin: 0 0 1rem; }
  .blog-post-empty { padding: 3rem 0; text-align: center; color: var(--color-text-dim); border-bottom: 1px solid var(--color-line); }
  @media (min-width: 860px) { nav.links { display: flex; } }
  .btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--color-bg-dark); color: var(--color-white);
    padding: 0.75rem 1.4rem; border-radius: var(--radius-md);
    text-decoration: none; font-weight: 600; font-size: 0.92rem;
    border: 1px solid var(--color-bg-dark); transition: background .15s, transform .1s;
  }
  .btn:hover { background: #26262a; }
  .btn:active { transform: scale(0.98); }
  .btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 2px solid var(--color-accent); outline-offset: 2px;
  }
  .btn-accent { background: var(--color-accent); border-color: var(--color-accent); }
  .btn-accent:hover { background: #c8481a; }
  .btn-ghost { background: transparent; color: var(--color-text); border: 1px solid var(--color-line); }
  .btn-ghost:hover { background: #fff; }

  /* ---- Hero: full-bleed rotating video background ---- */
  .hero {
    position: relative; color: var(--color-white); min-height: 92vh;
    display: flex; align-items: center; overflow: hidden; background: var(--color-bg-dark);
  }
  .hero-bg { position: absolute; inset: 0; z-index: 0; }
  .hero-bg-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.06);
    transition: opacity 1.6s ease-in-out, transform 9s ease-out;
  }
  .hero-bg-video.is-active { opacity: 1; transform: scale(1); }
  .hero.hero-page { min-height: 56vh; }
  .hero.hero-page h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); max-width: 14ch; }

  /* ---- Mid-page video break: full-bleed moment between sections, not just hero ---- */
  .video-break { position: relative; min-height: 62vh; overflow: hidden; display: flex; align-items: center; color: var(--color-white); }
  .video-break video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
  .video-break .vb-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(20,20,22,0.9) 0%, rgba(20,20,22,0.35) 60%); }
  .video-break .vb-content { position: relative; z-index: 2; width: 100%; }
  .video-break .vb-content .eyebrow { color: var(--color-accent); }
  .video-break h2 { color: var(--color-white); }
  .video-break p { color: #C7C3BC; }
  .hero-bg-scrim {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(115deg, rgba(20,20,22,0.92) 0%, rgba(20,20,22,0.55) 45%, rgba(20,20,22,0.75) 100%);
  }
  .hero-main {
    position: relative; z-index: 2; width: 100%;
    padding: clamp(6rem,14vw,9rem) var(--space-md) var(--space-lg);
    max-width: var(--maxw); margin: 0 auto;
  }
  .hero-badge {
    position: absolute; z-index: 2; bottom: var(--space-md); right: var(--space-md);
    text-align: right; max-width: 18ch;
  }
  .hero-badge .stat-big {
    font-family: var(--font-display); font-weight: 700; color: var(--color-accent);
    font-size: clamp(3rem, 6vw, 4.5rem); line-height: 0.85; letter-spacing: -0.03em;
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  }
  .hero-badge .stat-label { font-size: 0.82rem; font-weight: 600; color: var(--color-white); margin-top: 0.5rem; }
  @media (max-width: 700px) { .hero-badge { display: none; } }
  .kicker {
    display: inline-flex; align-items: center; gap: 0.6rem;
    text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700;
    color: var(--color-accent); margin-bottom: 1.75rem;
  }
  .kicker::before { content: ""; width: 8px; height: 8px; background: var(--color-accent); border-radius: 50%; }
  h1 {
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 6.4vw, 5.4rem);
    font-weight: 700; line-height: 1.02; letter-spacing: -0.028em;
    margin: 0 0 2rem; max-width: 20ch;
  }
  .hero p.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #C7C3BC;
    max-width: 44ch; margin: 0 0 2.5rem; line-height: 1.6;
  }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
  .hero .btn-ghost { background: transparent; border-color: #3A3A3E; color: var(--color-white); }
  .hero .btn-ghost:hover { background: #1F1F22; }

  .proof-strip {
    border-top: 1px solid #2A2A2D; margin-top: var(--space-lg);
    padding-top: 2rem; display: flex; flex-wrap: wrap; gap: 2.5rem;
    font-size: 0.9rem; color: #A7A39C;
  }
  .proof-strip strong { color: var(--color-white); font-weight: 700; }

  /* ---- Sections ---- */
  section { padding: var(--space-xl) 0; }
  .section-head { max-width: 640px; margin-bottom: var(--space-lg); }
  .eyebrow {
    text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem;
    font-weight: 700; color: var(--color-accent); margin-bottom: 0.75rem; display: block;
  }
  h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 1rem; line-height: 1.15; }
  .section-head p { font-size: 1.08rem; color: var(--color-text-dim); line-height: 1.6; margin: 0; }

  /* ---- Problem: asymmetric editorial layout, not a 3-card grid ---- */
  .problem-layout { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
  @media (min-width: 860px) { .problem-layout { grid-template-columns: 1.1fr 1fr; align-items: start; } }
  .problem-statement {
    font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin: 0;
  }
  .problem-statement .accent { color: var(--color-accent); }
  .problem-list { display: flex; flex-direction: column; gap: 1.75rem; }
  .problem-list .item { padding-left: 1.5rem; border-left: 2px solid var(--color-line); }
  .problem-list .item h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.5rem; }
  .problem-list .item p { color: var(--color-text-dim); font-size: 0.96rem; line-height: 1.6; margin: 0; }

  /* ---- Pricing: stacked editorial rows, not cards. Featured tier breaks out full-bleed. ---- */
  .tier-row {
    border-top: 1px solid var(--color-line); padding: 2.75rem 0;
    display: grid; gap: 1.25rem; grid-template-columns: 1fr;
  }
  .tier-row:last-child { border-bottom: 1px solid var(--color-line); }
  @media (min-width: 760px) { .tier-row { grid-template-columns: 280px 1fr; gap: 2.5rem; } }
  .tier-label .tier-num { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--color-accent); letter-spacing: 0.05em; margin-bottom: 0.6rem; }
  .tier-label h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 0 0 0.5rem; }
  .tier-label .price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }
  .tier-label .price span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--color-text-dim); display: block; margin-top: 0.2rem; }
  .tier-features { display: flex; flex-direction: column; gap: 1rem; }
  .tier-features .f { font-size: 1.02rem; color: var(--color-text-dim); line-height: 1.6; max-width: 56ch; }
  .tier-features .f strong { color: var(--color-text); font-weight: 600; }
  .tier-cta { margin-top: 0.5rem; }

  .tier-featured-section { background: var(--color-bg-dark); color: var(--color-white); padding: var(--space-xl) 0; }
  .tier-featured-section .tier-num { color: var(--color-accent); }
  .tier-featured-section .price-huge {
    font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
    font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; margin: 0.75rem 0 0.4rem;
  }
  .tier-featured-section .price-huge span { font-family: var(--font-body); font-size: 1.1rem; font-weight: 500; color: #A7A39C; }
  .tier-featured-section .tier-features .f { color: #C7C3BC; font-size: 1.08rem; }
  .tier-featured-section .tier-features .f strong { color: var(--color-white); }
  .tier-featured-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
  @media (min-width: 860px) { .tier-featured-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

  .guarantee-bar {
    margin-top: var(--space-md); padding: 2.5rem 0; border-top: 1px solid var(--color-line);
    font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; color: var(--color-text);
    line-height: 1.4;
  }
  .guarantee-bar span { color: var(--color-accent); }

  /* ---- Proof: real client + real artifact grid ---- */
  .proof-block {
    display: grid; gap: 2.5rem; grid-template-columns: 1fr;
    background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 2.5rem;
    margin-bottom: var(--space-md);
  }
  @media (min-width: 860px) { .proof-block { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
  .proof-block h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 0 0 0.75rem; }
  .proof-block p { color: var(--color-text-dim); line-height: 1.65; margin: 0 0 1rem; }
  .proof-tag { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }

  .stack-strip {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
    padding: 1.75rem 2rem; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
  }
  .stack-label { font-size: 0.85rem; font-weight: 600; color: var(--color-text-dim); }
  .stack-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }

  .agents-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  @media (min-width: 760px) { .agents-grid { grid-template-columns: repeat(4, 1fr); } }
  .agent-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: 0 1px 2px rgba(20,20,22,0.04); }
  .agent-card .agent-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--color-accent); margin-bottom: 0.3rem; }
  .agent-card .agent-role { font-size: 0.72rem; font-weight: 700; color: var(--color-text-dim); margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }
  .agent-card p { font-size: 0.9rem; color: var(--color-text-dim); line-height: 1.5; margin: 0; }
  a.agent-card-cta { text-decoration: none; display: block; transition: transform .15s, border-color .15s; }
  a.agent-card-cta:hover { transform: translateY(-3px); border-color: var(--color-accent); }

  /* ---- Filmic grain overlay (subtle depth/texture) ---- */
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  @media (prefers-reduced-motion: reduce) { body::after { display: none; } }

  /* ---- Scroll progress bar ---- */
  #scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1000;
    background: linear-gradient(90deg, var(--color-accent), #ff7a3d);
    box-shadow: 0 0 12px rgba(226,83,30,0.6); transition: width .08s linear;
  }

  /* ---- Capability ticker (continuous motion) ---- */
  .ticker {
    background: var(--color-bg-dark); color: var(--color-white); overflow: hidden;
    padding: 1.15rem 0; white-space: nowrap; position: relative;
    border-top: 1px solid #2A2A2D; border-bottom: 1px solid #2A2A2D;
  }
  .ticker-track { display: inline-flex; align-items: center; animation: tickerScroll 32s linear infinite; will-change: transform; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  .ticker-item {
    font-family: var(--font-display); font-size: clamp(1rem, 1.7vw, 1.4rem); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.03em; color: #C7C3BC;
    display: inline-flex; align-items: center; padding: 0 1.6rem;
  }
  .ticker-item::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); margin-left: 1.6rem; }
  .ticker-item:nth-child(even) { color: var(--color-white); }
  @keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

  /* ---- Oversized editorial ghost type (depth) ---- */
  .has-ghost { position: relative; overflow: hidden; }
  .ghost-label {
    position: absolute; top: -0.18em; right: -0.02em; z-index: 0; pointer-events: none; user-select: none;
    font-family: var(--font-display); font-weight: 700; line-height: 0.8; letter-spacing: -0.05em;
    font-size: clamp(7rem, 20vw, 18rem); color: var(--color-text); opacity: 0.035;
  }
  .has-ghost > .wrap { position: relative; z-index: 1; }

  /* ---- Richer card hovers ---- */
  .agent-card { position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, border-color .25s; }
  .agent-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--color-accent); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
  .agent-card:hover::before { transform: scaleY(1); }
  .agent-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(20,20,22,0.13); border-color: transparent; }

  /* ---- Button micro-interactions ---- */
  .btn { position: relative; overflow: hidden; transition: transform .15s ease, background .15s, box-shadow .2s; z-index: 0; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,20,22,0.18); }
  .btn:active { transform: translateY(0); }
  .btn-accent:hover { box-shadow: 0 8px 22px rgba(226,83,30,0.4); }

  /* ---- Heading reveal: clip-mask wipe upward ---- */
  h2[data-reveal], .problem-statement[data-reveal] { clip-path: inset(0 0 100% 0); transition: clip-path .7s cubic-bezier(.65,0,.35,1), opacity .6s ease, transform .6s ease; }
  h2[data-reveal].is-visible, .problem-statement[data-reveal].is-visible { clip-path: inset(0 0 -10% 0); }
  @media (prefers-reduced-motion: reduce) { h2[data-reveal], .problem-statement[data-reveal] { clip-path: none !important; } }

  /* Orange stats band — bold mid-page crescendo */
  .stats-band { background: var(--color-accent); color: var(--color-bg-dark); padding: var(--space-lg) 0; }
  .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  @media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
  .stats-band .stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 0.9; letter-spacing: -0.02em; }
  .stats-band .stat-cap { font-size: 0.92rem; font-weight: 600; color: #5A1E0A; margin-top: 0.6rem; line-height: 1.35; max-width: 20ch; }

  /* Staggered child reveals — cards/stats cascade in when their container enters view */
  .agents-grid [class*="agent-card"], .stats-grid .stat {
    opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease;
  }
  .agents-grid.is-visible [class*="agent-card"], .stats-grid.is-visible .stat,
  .agents-grid.is-visible .agent-card, [data-reveal].is-visible .agent-card { opacity: 1; transform: translateY(0); }
  .agents-grid.is-visible .agent-card:nth-child(1) { transition-delay: .04s }
  .agents-grid.is-visible .agent-card:nth-child(2) { transition-delay: .09s }
  .agents-grid.is-visible .agent-card:nth-child(3) { transition-delay: .14s }
  .agents-grid.is-visible .agent-card:nth-child(4) { transition-delay: .19s }
  .agents-grid.is-visible .agent-card:nth-child(5) { transition-delay: .24s }
  .agents-grid.is-visible .agent-card:nth-child(6) { transition-delay: .29s }
  .agents-grid.is-visible .agent-card:nth-child(7) { transition-delay: .34s }
  .agents-grid.is-visible .agent-card:nth-child(8) { transition-delay: .39s }
  .stats-grid.is-visible .stat:nth-child(2) { transition-delay: .08s }
  .stats-grid.is-visible .stat:nth-child(3) { transition-delay: .16s }
  .stats-grid.is-visible .stat:nth-child(4) { transition-delay: .24s }
  @media (prefers-reduced-motion: reduce) {
    .agents-grid [class*="agent-card"], .stats-grid .stat { opacity: 1 !important; transform: none !important; }
  }

  .about-founder { display: flex; gap: 2rem; align-items: center; margin-top: 2rem; flex-wrap: wrap; }
  .about-founder img { border-radius: 50%; width: 168px; height: 168px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 4px rgba(226,83,30,0.15), 0 12px 32px rgba(20,20,22,0.12); }
  .about-founder > div { flex: 1 1 320px; }
  .about-linkedin { display: inline-block; margin-top: 0.9rem; font-weight: 600; color: var(--color-accent); text-decoration: none; }
  .about-linkedin:hover { text-decoration: underline; }
  .badge {
    font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
    padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--color-bg-dark); color: var(--color-white);
  }

  /* code artifact block */
  .code-block {
    background: var(--color-bg-dark); border-radius: var(--radius-md); padding: 1.75rem;
    color: #E4E1DB; font-size: 0.85rem; line-height: 1.7; overflow-x: auto;
  }
  .code-block .c1 { color: #8A8680; }
  .code-block .c2 { color: #E2531E; }
  .code-block .c3 { color: #9FD3A8; }

  /* featured artifacts — ONE large dominant card + smaller supporting ones, not uniform thumbnails */
  .artifact-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: var(--space-md); }
  .artifact-head h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 0; }
  .artifact-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
  @media (min-width: 760px) { .artifact-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
  .artifact-grid img {
    border-radius: 12px; border: 1px solid var(--color-line); width: 100%; height: auto; display: block;
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .3s;
  }
  .artifact-grid a { display: block; }
  .artifact-grid a:hover img {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 22px 48px -18px rgba(20,20,22,0.35);
    border-color: var(--color-accent);
  }

  /* ---- Full-bleed system diagram: the real visual crescendo ---- */
  .diagram-section { background: var(--color-bg-dark); color: var(--color-white); overflow-x: auto; }
  .diagram-flow {
    display: flex; align-items: stretch; gap: 0; min-width: 760px;
    max-width: var(--maxw); margin: 0 auto; padding: var(--space-md);
  }
  .diagram-node {
    flex: 1; background: #1F1F22; border: 1px solid #3A3A3E; border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem; position: relative;
  }
  .diagram-node.fail { background: #2A1712; border-color: #4A2A1E; }
  .diagram-node.pass { background: #142218; border-color: #2A4A32; }
  .diagram-node .dn-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent); font-weight: 700; margin-bottom: 0.6rem; }
  .diagram-node .dn-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
  .diagram-node .dn-desc { font-size: 0.86rem; color: #A7A39C; line-height: 1.5; }
  .diagram-arrow { display: flex; align-items: center; justify-content: center; padding: 0 0.75rem; color: #5A5A5E; font-size: 1.5rem; flex-shrink: 0; }

  /* ---- Calculator ---- */
  .calc-wrap {
    background: var(--color-bg-dark); color: var(--color-white); border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md); margin: 0 var(--space-md);
  }
  @media (min-width: 640px) { .calc-wrap { margin: 0 auto; max-width: calc(var(--maxw) - 2 * var(--space-md)); } }
  .calc-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
  @media (min-width: 860px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
  .field { margin-bottom: 1.5rem; }
  .field label { display: block; font-size: 0.88rem; font-weight: 600; color: #C7C3BC; margin-bottom: 0.5rem; }
  .field input {
    width: 100%; padding: 0.85rem 1rem; font-size: 1.05rem; border-radius: var(--radius-md);
    border: 1px solid #3A3A3E; background: #1F1F22; color: var(--color-white); font-family: inherit;
  }
  .field .hint { font-size: 0.8rem; color: #8A8680; margin-top: 0.4rem; }
  .calc-output { background: #1F1F22; border-radius: var(--radius-md); padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
  .calc-output .label { font-size: 0.85rem; color: #A7A39C; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
  .calc-output .figure { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; color: var(--color-accent); line-height: 1.1; margin-bottom: 0.4rem; }
  .calc-output .sub { font-size: 0.95rem; color: #C7C3BC; margin-bottom: 1.5rem; }
  .calc-capture { margin-bottom: 0.9rem; }
  .calc-capture-label { display: block; font-size: 0.82rem; font-weight: 600; color: #C7C3BC; margin-bottom: 0.5rem; }
  .calc-capture-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .calc-capture-row input {
    flex: 1 1 60%; min-width: 0; padding: 0.85rem 1rem; font-size: 1rem; border-radius: var(--radius-md);
    border: 1px solid #3A3A3E; background: #1F1F22; color: var(--color-white); font-family: inherit;
  }
  .calc-capture-row button { flex: 0 0 auto; white-space: nowrap; cursor: pointer; }
  .calc-capture-msg { font-size: 0.85rem; margin-top: 0.6rem; min-height: 1em; }
  .calc-capture-msg.ok { color: #9FD3A8; }
  .calc-capture-msg.err { color: #E8A08D; }
  .calc-book { margin-top: 0.25rem; border-color: #3A3A3E; color: var(--color-white); background: transparent; }
  .calc-book:hover { background: #1F1F22; }
  .calc-output.captured .calc-capture { display: none; }
  .calc-output.captured .calc-book { background: var(--color-accent); border-color: var(--color-accent); }

  /* Lead magnet block */
  .magnet-block { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
  @media (min-width: 860px) { .magnet-block { grid-template-columns: 1.1fr 0.9fr; } }
  .magnet-copy h2 { margin: 0 0 0.75rem; }
  .magnet-copy p { color: var(--color-text-dim); line-height: 1.6; margin: 0; max-width: 42ch; }
  .magnet-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .magnet-row input {
    flex: 1 1 60%; min-width: 0; padding: 0.9rem 1rem; font-size: 1rem; border-radius: var(--radius-md);
    border: 1px solid var(--color-line); background: var(--color-bg); color: var(--color-text); font-family: inherit;
  }
  .magnet-row button { flex: 0 0 auto; white-space: nowrap; cursor: pointer; }
  .magnet-msg { font-size: 0.85rem; margin-top: 0.6rem; min-height: 1em; color: var(--color-text-dim); }
  .magnet-msg.ok { color: #2E7D46; }
  .magnet-msg.err { color: #B5482A; }

  /* ---- How it works: connected timeline, not repeated cards ---- */
  .timeline { position: relative; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
  @media (min-width: 760px) {
    .timeline { grid-template-columns: repeat(3, 1fr); }
    .timeline::before { content: ""; position: absolute; top: 1.1rem; left: 8%; right: 8%; height: 1px; background: var(--color-line); }
  }
  .step { position: relative; }
  .step .num {
    font-family: var(--font-display); display: inline-flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--color-bg-dark); color: var(--color-white);
    font-size: 0.95rem; font-weight: 700; margin-bottom: 1.1rem; position: relative; z-index: 1;
  }
  .step h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.6rem; }
  .step p { color: var(--color-text-dim); font-size: 0.96rem; line-height: 1.6; margin: 0; }

  /* ---- FAQ ---- */
  .faq-item { border-bottom: 1px solid var(--color-line); padding: 1.5rem 0; }
  .faq-item summary { font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--color-accent); font-weight: 400; }
  .faq-item[open] summary::after { content: "−"; }
  .faq-item p { color: var(--color-text-dim); line-height: 1.65; margin: 1rem 0 0; font-size: 0.98rem; }

  /* ---- Final CTA ---- */
  .final-cta { background: var(--color-bg-dark); color: var(--color-white); text-align: center; }
  .final-cta h2 { color: var(--color-white); }
  .final-cta p.lede { color: #C7C3BC; max-width: 46ch; margin: 0 auto 2rem; font-size: 1.08rem; }
  .final-cta .hero-ctas { justify-content: center; }
  .final-cta .btn-ghost { background: transparent; border-color: #3A3A3E; color: var(--color-white); }
  .final-cta .btn-ghost:hover { background: #1F1F22; }

  footer { background: var(--color-bg-dark); color: #A7A39C; padding: var(--space-xl) 0 var(--space-lg); font-size: 0.9rem; }
  .footer-cta { border-bottom: 1px solid #2A2A2D; padding-bottom: var(--space-lg); margin-bottom: var(--space-lg); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
  .footer-cta h2 { color: var(--color-white); margin: 0; max-width: 18ch; font-size: clamp(1.8rem, 4vw, 3rem); }
  .footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: var(--space-lg); }
  @media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
  .footer-brand .logo { font-size: 1.4rem; }
  .footer-brand p { margin-top: 1rem; max-width: 34ch; line-height: 1.6; color: #8A8680; }
  .footer-col h4 { font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent); margin: 0 0 1.1rem; }
  .footer-col a { display: block; text-decoration: none; color: #C7C3BC; margin-bottom: 0.7rem; transition: color .15s; }
  .footer-col a:hover { color: var(--color-white); }
  .footer-bottom { border-top: 1px solid #2A2A2D; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: 0.82rem; color: #6E6A64; }
  .footer-bottom a { color: #8A8680; text-decoration: none; }
  .footer-bottom a:hover { color: var(--color-white); }

  [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

  /* Entry: every fresh page load starts ALREADY fully visible (matches how it looked leaving the last page) — holds, then dissolves once. No fade-in step, so nothing reappears. */
  @keyframes ptDissolve {
    0% { opacity: 1; } 55% { opacity: 1; } 100% { opacity: 0; }
  }
  @keyframes ptLogoDissolve {
    0% { opacity: 1; transform: scale(1); }
    55% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.04); }
  }
  @keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.6; transform: scale(1.8) rotate(180deg); }
  }
  @keyframes letterBounce {
    0% { opacity: 0; transform: translateY(22px) scale(0.5) rotate(-8deg); }
    55% { opacity: 1; transform: translateY(-6px) scale(1.15) rotate(3deg); }
    75% { transform: translateY(2px) scale(0.98) rotate(-1deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  }

  #page-transition {
    position: fixed; inset: 0; z-index: 999; background: var(--color-bg-dark);
    display: flex; align-items: center; justify-content: center;
    opacity: 1; pointer-events: none;
    animation: ptDissolve 1.4s ease-in-out both;
  }
  #page-transition.is-active { animation: none; opacity: 1; pointer-events: all; transition: opacity .4s ease; }
  #page-transition .pt-logo {
    font-family: var(--font-body); font-size: 2.2rem; font-weight: 700; color: var(--color-white);
    opacity: 1; transform: scale(1);
    animation: ptLogoDissolve 1.4s ease-in-out both;
  }
  #page-transition.is-active .pt-logo { animation: none; opacity: 1; transform: scale(1); transition: opacity .5s ease .1s, transform .5s ease .1s; }
  #page-transition .pt-letter {
    display: inline-block; opacity: 0;
    animation: letterBounce 0.55s cubic-bezier(.34,1.56,.64,1) both;
  }
  #page-transition .pt-logo span.pt-dot {
    display: inline-block; color: var(--color-accent);
    animation: letterBounce 0.55s cubic-bezier(.34,1.56,.64,1) both, dotPulse 0.9s ease-in-out 0.8s infinite;
  }

  @media (prefers-reduced-motion: reduce) {
    #page-transition .pt-letter, #page-transition .pt-logo span.pt-dot { animation: none !important; opacity: 1 !important; }
  }

  @media (prefers-reduced-motion: reduce) {
    #page-transition, #page-transition .pt-logo { animation: none !important; opacity: 0 !important; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
  }
  /* ---- V6: Visual journey layer ---- */

  /* Split-word headline choreography */
  .sw-word { display: inline-block; overflow: hidden; vertical-align: bottom; margin-right: 0.24em; }
  .sw-word:last-child { margin-right: 0; }
  .sw-word > span {
    display: inline-block; transform: translateY(118%) rotate(4deg);
    opacity: 0; filter: blur(7px);
    transition: transform 1.05s cubic-bezier(.22,1,.36,1), opacity .8s ease, filter .95s ease;
    transition-delay: var(--swd, 0s);
  }
  .sw-in .sw-word > span { transform: translateY(0) rotate(0); opacity: 1; filter: blur(0); }

  /* Statement interlude: type lights up as you scroll through it */
  .statement {
    position: relative; background: var(--color-bg-dark); color: var(--color-white);
    padding: var(--space-xl) 0; overflow: hidden;
  }
  .statement .wrap { position: relative; z-index: 2; max-width: 1080px; }
  .st-line {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.1rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.02em;
    margin: 0 0 0.4em;
    background: linear-gradient(90deg, var(--color-white) 50%, rgba(247,246,244,0.12) 50.5%);
    background-size: 205% 100%; background-position-x: var(--fill, 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .st-kicker {
    color: var(--color-accent); font-weight: 700; font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 1.6rem 0 0;
  }
  @media (prefers-reduced-motion: reduce) { .st-line { background-position-x: 0%; } }

  /* Ticker: oversized outline-type texture */
  .ticker { padding: 1.4rem 0; }
  .ticker-item {
    font-size: clamp(1.7rem, 3.4vw, 2.8rem); letter-spacing: 0;
    color: transparent; -webkit-text-stroke: 1px rgba(199,195,188,0.55);
  }
  .ticker-item:nth-child(even) { color: var(--color-white); -webkit-text-stroke: 0; }

  /* Cursor spotlight on the dark chapters */
  footer { position: relative; }
  footer .wrap, .hero-main, .hero-badge { position: relative; z-index: 2; }
  @media (pointer: fine) {
    .hero::after, .statement::after, footer::after {
      content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
      background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 40%), rgba(226,83,30,0.16), transparent 60%);
      opacity: 0; transition: opacity .5s ease;
    }
    .hero:hover::after, .statement:hover::after, footer:hover::after { opacity: 1; }
  }

  /* Nav: immersive hide on scroll down, return on scroll up */
  header.site-nav { transition: transform .35s ease, background .3s; }
  header.site-nav.nav-hidden { transform: translateY(-100%); }
  @media (prefers-reduced-motion: reduce) {
    header.site-nav { transition: none; }
    header.site-nav.nav-hidden { transform: none; }
  }


  /* ---- V9: craft pass ---- */

  /* Agent roster: editorial cards, staggered entrance, monogram watermark */
  .agent-card { border-radius: 10px; }
  .agent-card::after {
    content: attr(data-initial); position: absolute; right: 0.4rem; bottom: -1.2rem;
    font-family: var(--font-display); font-weight: 700; font-size: 6.5rem; line-height: 1;
    color: var(--color-accent); opacity: 0.07; pointer-events: none;
    transition: opacity .3s, transform .4s cubic-bezier(.22,1,.36,1);
  }
  .agent-card:hover::after { opacity: 0.16; transform: translateY(-6px); }
  .agents-grid .agent-card:nth-child(1) { transition-delay: 0s; }
  .agents-grid .agent-card:nth-child(2) { transition-delay: .07s; }
  .agents-grid .agent-card:nth-child(3) { transition-delay: .14s; }
  .agents-grid .agent-card:nth-child(4) { transition-delay: .21s; }
  .agents-grid .agent-card:nth-child(5) { transition-delay: .28s; }
  .agents-grid .agent-card:nth-child(6) { transition-delay: .35s; }
  .agents-grid .agent-card:nth-child(7) { transition-delay: .42s; }
  .agents-grid .agent-card:nth-child(8) { transition-delay: .49s; }

  /* Video breaks: allow the scale scrub room without spilling */
  .video-break { overflow: hidden; }
  .video-break video { will-change: transform; }

  /* Footer CTA: the closing statement gets display scale */
  .footer-cta h2 {
    font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    line-height: 1.04; letter-spacing: -0.02em; max-width: 16ch;
  }
  .footer-cta h2 .accent { color: var(--color-accent); }

  /* Cursor ring */
  @media (pointer: fine) {
    .cursor-ring {
      position: fixed; top: 0; left: 0; width: 30px; height: 30px;
      border: 1.5px solid var(--color-accent); border-radius: 50%;
      pointer-events: none; z-index: 2000; opacity: 0;
      transition: width .28s cubic-bezier(.22,1,.36,1), height .28s cubic-bezier(.22,1,.36,1), opacity .35s, background .3s;
    }
    .cursor-ring.is-hover { width: 54px; height: 54px; background: rgba(226,83,30,0.09); }
  }


  /* ---- V10: live production panel ---- */
  .live-panel { background: var(--color-bg-dark); color: var(--color-white); padding: var(--space-lg) 0; position: relative; overflow: hidden; }
  .lp-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
  .lp-dot { width: 10px; height: 10px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,0.5); animation: lpPulse 2s infinite; }
  @keyframes lpPulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,0.5); } 70% { box-shadow: 0 0 0 12px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
  .lp-label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
  .lp-time { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 0.78rem; color: #8A867F; }
  .lp-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
  @media (min-width: 760px) { .lp-grid { grid-template-columns: repeat(3, 1fr); } }
  .lp-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; color: var(--color-accent); font-variant-numeric: tabular-nums; }
  .lp-cap { color: #C7C3BC; font-size: 0.95rem; line-height: 1.5; margin-top: 0.6rem; max-width: 30ch; }
  .lp-note { color: #8A867F; font-size: 0.85rem; margin-top: 2.2rem; max-width: 62ch; line-height: 1.6; }
  @media (prefers-reduced-motion: reduce) { .lp-dot { animation: none; } }


  /* ---- V11: case studies with presence ---- */
  .proof-block {
    position: relative; overflow: hidden; border-radius: 14px;
    box-shadow: 0 1px 2px rgba(20,20,22,0.04), 0 14px 44px -20px rgba(20,20,22,0.13);
    transition: box-shadow .35s ease, transform .35s ease;
  }
  .proof-block:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20,20,22,0.05), 0 26px 64px -22px rgba(20,20,22,0.22); }
  .proof-block::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--color-accent), rgba(226,83,30,0));
  }
  .proof-block::after {
    content: attr(data-initial); position: absolute; right: -0.6rem; top: -2.4rem;
    font-family: var(--font-display); font-weight: 700; font-size: 11rem; line-height: 1;
    color: var(--color-accent); opacity: 0.05; pointer-events: none;
  }

  .proof-chip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--color-text); background: #fff; border: 1px solid var(--color-line);
    border-radius: 999px; padding: 0.38rem 0.9rem; margin-bottom: 1.1rem;
  }
  .proof-chip .chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; animation: lpPulse 2s infinite; }
  .proof-chip.chip-auto .chip-dot { background: var(--color-accent); animation: none; }

  /* Terminal chrome on code blocks */
  .code-block[data-file] { position: relative; border-radius: 12px; padding-top: 3.4rem; overflow: hidden; }
  .code-block[data-file]::before {
    content: attr(data-file); position: absolute; top: 0; left: 0; right: 0; height: 2.35rem;
    background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex; align-items: center; padding-left: 4.4rem;
    font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 0.72rem; color: #8A867F;
  }
  .code-block[data-file]::after {
    content: ""; position: absolute; top: 0.95rem; left: 1.15rem;
    width: 10px; height: 10px; border-radius: 50%;
    background: #FF5F57; box-shadow: 17px 0 0 #FEBC2E, 34px 0 0 #28C840;
  }

  /* Code type-in: lines materialise as the block scrolls into view */
  .code-line { display: block; opacity: 0; transform: translateX(-10px); transition: opacity .4s ease, transform .5s cubic-bezier(.22,1,.36,1); transition-delay: var(--cld, 0s); }
  .code-typed .code-line { opacity: 1; transform: none; }
  .code-typed .code-line:last-child::after {
    content: "\258C"; color: var(--color-accent); margin-left: 2px;
    animation: caretBlink 1.1s steps(1) infinite;
  }
  @keyframes caretBlink { 50% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) {
    .code-line { opacity: 1; transform: none; }
    .code-typed .code-line:last-child::after { animation: none; }
  }

  /* Agent cards are links now */
  a.agent-card { text-decoration: none; color: inherit; display: block; cursor: pointer; }


  /* Deep-linked tiers: land correctly under the sticky nav and flash on arrival */
  #tier-call, #tier-frontoffice, #tier-production { scroll-margin-top: 96px; }
  #tier-call:target, #tier-frontoffice:target { animation: tierFlash 2s ease .25s; border-radius: var(--radius-md); }
  #tier-production:target .tier-featured-grid { animation: tierFlash 2s ease .25s; border-radius: var(--radius-md); }
  @keyframes tierFlash {
    0%, 55% { box-shadow: 0 0 0 3px var(--color-accent), 0 0 42px rgba(226,83,30,0.35); }
    100% { box-shadow: 0 0 0 0 rgba(226,83,30,0); }
  }
  @media (prefers-reduced-motion: reduce) { #tier-call:target, #tier-frontoffice:target, #tier-production:target .tier-featured-grid { animation: none; } }


  /* ---- V15: agent profile dialog ---- */
  #agent-dialog {
    border: none; border-radius: 16px; padding: 0; max-width: 560px; width: calc(100% - 2.5rem);
    background: var(--color-bg-dark); color: var(--color-white);
    box-shadow: 0 40px 120px -20px rgba(0,0,0,0.55);
  }
  #agent-dialog::backdrop { background: rgba(10,10,12,0.6); backdrop-filter: blur(6px); }
  .ad-inner { position: relative; padding: 2.6rem 2.6rem 2.4rem; overflow: hidden; }
  .ad-monogram {
    position: absolute; right: -1.2rem; top: -3rem; font-family: var(--font-display); font-weight: 700;
    font-size: 13rem; line-height: 1; color: var(--color-accent); opacity: 0.08; pointer-events: none;
  }
  .ad-chip {
    display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em; color: #C7C3BC;
    border: 1px solid #2E2E32; border-radius: 999px; padding: 0.35rem 0.85rem; margin-bottom: 1.2rem;
  }
  .ad-chip .chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; animation: lpPulse 2s infinite; }
  .ad-chip.ad-chip-plain .chip-dot { background: var(--color-accent); animation: none; }
  .ad-name { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--color-accent); margin: 0 0 0.2rem; }
  .ad-role { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #8A867F; margin-bottom: 1.4rem; }
  .ad-desc { color: #DCD9D3; line-height: 1.7; margin: 0 0 1.2rem; }
  .ad-list { list-style: none; margin: 0 0 1.8rem; padding: 0; }
  .ad-list li { padding: 0.5rem 0 0.5rem 1.6rem; position: relative; color: #C7C3BC; line-height: 1.55; font-size: 0.96rem; border-bottom: 1px solid #232326; }
  .ad-list li:last-child { border-bottom: none; }
  .ad-list li::before { content: "→"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }
  .ad-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .ad-close {
    position: absolute; top: 1.1rem; right: 1.2rem; background: none; border: none; color: #8A867F;
    font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0.3rem; border-radius: 6px;
  }
  .ad-close:hover { color: var(--color-white); }
  @media (prefers-reduced-motion: no-preference) {
    #agent-dialog[open] { animation: adIn .35s cubic-bezier(.22,1,.36,1); }
    @keyframes adIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
  }


  /* ---- V18: editorial blog index ---- */
  .post-list { display: flex; flex-direction: column; }
  .post-row {
    display: grid; grid-template-columns: 1fr; gap: 1rem;
    padding: 2.4rem 1.4rem; border-bottom: 1px solid var(--color-line);
    text-decoration: none; color: inherit; border-radius: 12px;
    transition: background .3s ease;
  }
  @media (min-width: 760px) { .post-row { grid-template-columns: 92px 1fr 56px; align-items: center; gap: 2rem; } }
  .post-row:hover { background: #fff; }
  .pr-num {
    font-family: var(--font-display); font-weight: 700; font-size: 2.7rem; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.5px rgba(26,26,28,0.25);
    transition: color .3s, -webkit-text-stroke .3s;
  }
  .post-row:hover .pr-num { color: var(--color-accent); -webkit-text-stroke: 0px transparent; }
  .pr-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; font-weight: 600; color: var(--color-text-dim); margin-bottom: 0.55rem; }
  .pr-tag { color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
  .post-row h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -0.01em; margin: 0 0 0.5rem; transition: color .25s; }
  .post-row:hover h3 { color: var(--color-accent); }
  .post-row p { color: var(--color-text-dim); line-height: 1.6; margin: 0; max-width: 62ch; }
  .pr-arrow { font-size: 1.7rem; color: #C9C5BE; justify-self: end; transition: transform .3s cubic-bezier(.22,1,.36,1), color .3s; }
  .post-row:hover .pr-arrow { transform: translateX(7px); color: var(--color-accent); }


  /* ---- V19: agent roster — team sheet, not card grid ---- */
  .roster { background: var(--color-bg-dark); color: var(--color-white); }
  .roster .ghost-label { color: #fff; opacity: 0.03; }
  .roster-list { margin-top: var(--space-md); }
  .roster-row {
    display: grid; grid-template-columns: 2.6rem minmax(140px, 220px) 1fr auto 2.4rem;
    align-items: center; gap: 1.4rem;
    padding: 1.45rem 0.6rem; border-bottom: 1px solid #232326;
    text-decoration: none; color: inherit; position: relative; overflow: hidden;
    transition: background .3s ease, padding-left .35s cubic-bezier(.22,1,.36,1);
  }
  .roster-row:first-child { border-top: 1px solid #232326; }
  .roster-row::after {
    content: attr(data-initial); position: absolute; right: 3rem; top: 50%; transform: translateY(-46%);
    font-family: var(--font-display); font-weight: 700; font-size: 7rem; line-height: 1;
    color: var(--color-accent); opacity: 0; transition: opacity .35s; pointer-events: none;
  }
  .roster-row:hover { background: rgba(255,255,255,0.025); padding-left: 1.5rem; }
  .roster-row:hover::after { opacity: 0.09; }
  .rr-num { font-family: "SF Mono", Menlo, monospace; font-size: 0.8rem; color: #6E6A64; }
  .rr-name {
    font-family: var(--font-display); font-weight: 700; line-height: 1;
    font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.02em;
    color: var(--color-white); transition: color .25s;
  }
  .roster-row:hover .rr-name { color: var(--color-accent); }
  .rr-meta { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
  .rr-role { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #8A867F; }
  .rr-quip { color: #C7C3BC; font-size: 0.95rem; line-height: 1.45; }
  .rr-status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #8A867F; white-space: nowrap; }
  .rr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
  .rr-dot.rr-live { background: #3DDC84; animation: lpPulse 2s infinite; }
  .rr-arrow { font-size: 1.5rem; color: #4A4A4E; justify-self: end; transition: transform .3s cubic-bezier(.22,1,.36,1), color .3s; }
  .roster-row:hover .rr-arrow { transform: translateX(6px); color: var(--color-accent); }
  @media (max-width: 759px) {
    .roster-row { grid-template-columns: 2rem 1fr 2rem; }
    .rr-meta { grid-column: 2; grid-row: 2; }
    .rr-status { display: none; }
    .roster-row::after { display: none; }
  }


  /* ---- V21: problem list joins the numeral language ---- */
  .problem-list { counter-reset: problem; }
  .problem-list .item {
    counter-increment: problem;
    border-left: none; padding: 1.5rem 0.4rem;
    border-bottom: 1px solid var(--color-line);
    display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1.1rem;
    transition: transform .3s cubic-bezier(.22,1,.36,1), background .3s;
    border-radius: 8px;
  }
  .problem-list .item:first-child { border-top: 1px solid var(--color-line); }
  .problem-list .item::before {
    content: "0" counter(problem);
    grid-row: span 2; align-self: start;
    font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.15;
    color: transparent; -webkit-text-stroke: 1.2px rgba(226,83,30,0.45);
    transition: color .3s, -webkit-text-stroke .3s;
  }
  .problem-list .item h3, .problem-list .item p { grid-column: 2; }
  .problem-list .item:hover { transform: translateX(7px); }
  .problem-list .item:hover::before { color: var(--color-accent); -webkit-text-stroke: 0px transparent; }
  @media (prefers-reduced-motion: reduce) { .problem-list .item:hover { transform: none; } }


  /* ---- V23: real-image placements ---- */
  .chart-fig { margin: 0; }
  .chart-fig img { border-radius: 12px; border: 1px solid #2A2A2E; width: 100%; height: auto; display: block; }
  .chart-fig figcaption { font-size: 0.82rem; color: var(--color-text-dim); margin-top: 0.7rem; line-height: 1.5; }
  .img-break { border-radius: 14px; overflow: hidden; }
  .img-break img { width: 100%; height: auto; display: block; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
  .img-break:hover img { transform: scale(1.03); }
  .img-band { position: relative; overflow: hidden; max-height: 44vh; display: flex; align-items: center; }
  .img-band img { width: 100%; height: auto; display: block; }
  .img-band-scrim { position: absolute; inset: 0; background: rgba(15,15,16,0.55); }
  .img-band-line {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    margin: 0; color: var(--color-white); font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.5rem, 3.6vw, 2.6rem); letter-spacing: -0.01em; text-align: center; width: 90%;
  }
