/* Native G1 hero: typography and surfaces share the paper page's tokens. */
.hero-native {
  --teaser-input: var(--accent-text);
  --teaser-output: #ae451e;
  --teaser-agent: #397356;
  --teaser-glow: var(--accent-soft);
  --teaser-hub-width: 248px;
  --teaser-layout-gap: clamp(20px, 3vw, 48px);
  position: relative;
  min-height: 0;
  padding: calc(var(--nav-h) + 30px) 24px 28px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--ink);
  isolation: isolate;
}
:root[data-theme="dark"] .hero-native { --teaser-output: #f28b5c; --teaser-agent: #72bf99; }
body:has(.hero-native) #topnav { background: color-mix(in srgb, var(--bg) 88%, transparent); border-color: var(--hairline); }
body:has(.hero-native) #topnav .brand { color: var(--ink); }
body:has(.hero-native) #topnav .nav-links a,
body:has(.hero-native) #topnav .theme-toggle { color: var(--muted); }
body:has(.hero-native) #topnav .nav-links a:hover,
body:has(.hero-native) #topnav .theme-toggle:hover { color: var(--ink); }
body:has(.hero-native) #topnav .nav-links a.is-active { color: var(--accent-text); background: var(--accent-soft); }
.teaser-native { position: relative; max-width: 1360px; margin: 0 auto; padding-bottom: 34px; }
.tn-stage { position: relative; display: grid; grid-template-columns: minmax(0, calc((100% - var(--teaser-hub-width)) / 2 - var(--teaser-layout-gap))) minmax(0, 1fr); gap: var(--teaser-layout-gap); align-items: center; min-height: max(630px, 38rem); padding: 22px 0; }
.tn-model { position: relative; height: 550px; min-width: 0; }
.tn-model::before { content: ''; position: absolute; inset: 9% -3% 7%; z-index: -1; background: radial-gradient(ellipse, var(--teaser-glow), transparent 66%); }
.tn-canvas, .tn-poster { width: 100%; height: 100%; display: block; }
.tn-canvas { position: absolute; inset: 0; visibility: hidden; touch-action: pan-y; }
.tn-poster { position: absolute; inset: 0; object-fit: contain; visibility: hidden; }
.tn-model.is-ready .tn-canvas { visibility: visible; }
.teaser-native:is([data-render-state="fallback"], [data-render-state="deferred"]) .tn-poster { visibility: visible; }
.tn-parts { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.tn-part[data-channel="output"] { color: var(--teaser-output); border-color: color-mix(in srgb, var(--teaser-output) 35%, var(--hairline)); }
.tn-part { position: absolute; transform: translate(-50%, -50%); font: .75rem/1.2 var(--font-mono); color: var(--ink-2); background: var(--bg); padding: 5px 7px; border: 1px solid var(--hairline); border-radius: 4px; width: max-content; max-width: calc(100% - 8px); text-align: center; }
.tn-story { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.tn-flow { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 28px; min-width: 0; align-items: center; }
.tn-agents { display: flex; flex-direction: column; gap: 28px; align-items: center; min-width: 0; }
.tn-agent { color: var(--ink); width: 100%; display: flex; flex-direction: column; align-items: center; gap: 9px; position: relative; }
.tn-agent-symbol { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); width: 64px; height: 64px; display: grid; place-items: center; box-shadow: var(--shadow-card); }
.tn-agent-symbol svg { width: 36px; height: 36px; }
.tn-agent[data-agent="claude"] .tn-agent-symbol { color: var(--teaser-output); }
.tn-agent-name { font-size: .875rem; font-weight: 500; text-align: center; line-height: 1.3; }
.tn-agent-label { font: .625rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; }
.tn-detail { min-width: 0; }
.tn-legend { display: flex; gap: 16px; flex-wrap: wrap; font: .75rem/1.5 var(--font-mono); margin-bottom: 22px; }
.tn-legend span { display: flex; gap: 7px; align-items: center; }
.tn-legend i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero-native [data-channel="input"] { --channel: var(--teaser-input); }
.hero-native [data-channel="output"] { --channel: var(--teaser-output); }
.hero-native [data-channel="agent"] { --channel: var(--teaser-agent); }
.tn-legend span, .tn-port { color: var(--channel); }
.tn-ports { display: grid; gap: 0; }
.tn-port { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--hairline); padding: 11px 0; font-size: .875rem; line-height: 1.4; }
.tn-port strong { font-weight: 500; }
.tn-port small { font: .72rem/1.4 var(--font-mono); color: var(--muted); text-align: right; }
.tn-prompt { grid-column: 1 / -1; border: 1px solid var(--hairline); background: var(--surface); padding: 13px 15px 16px; border-radius: var(--radius); }
.tn-voice-header { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: center; color: var(--teaser-input); margin-bottom: 12px; }
.tn-voice-icon { width: 16px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tn-prompt[data-voice-state="listening"] [data-icon="received"], .tn-prompt[data-voice-state="received"] [data-icon="microphone"] { display: none; }
.tn-voice-wave { height: 28px; display: flex; align-items: center; justify-content: center; gap: clamp(.5px, 1.4%, 3px); min-width: 0; overflow: hidden; opacity: calc(.35 + var(--voice-energy, 0) * .65); }
.tn-voice-bar { flex: 1 1 2px; max-width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform: scaleY(.09); }
.tn-voice-status { font: .6rem/1.4 var(--font-mono); letter-spacing: .01em; }
.tn-prompt[data-voice-state="received"] .tn-voice-header { color: var(--teaser-agent); }
.tn-voice-line { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 8px; font: .82rem/1.6 var(--font-mono); color: var(--ink); }
.tn-voice-prefix { color: var(--muted); }
.tn-voice-transcript { position: relative; min-width: 0; overflow-wrap: anywhere; }
.tn-voice-measure { visibility: hidden; padding-right: .6em; }
.tn-voice-live { position: absolute; inset: 0; }
.tn-prompt-text { font: inherit; }
.tn-voice-caret { display: inline-block; width: .45em; height: 1em; margin-left: .15em; background: var(--teaser-input); vertical-align: -.12em; }
.tn-code { min-width: 0; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.tn-code-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); font: .7rem/1.4 var(--font-mono); color: var(--muted); }
.tn-code-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teaser-agent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teaser-agent) 12%, transparent); }
.tn-code-body { display: flex; flex-direction: column; height: 238px; }
.tn-code-preamble { flex: none; list-style: none; margin: 0; padding: 12px 12px 6px; border-bottom: 1px solid var(--hairline); }
.tn-code-body > .tn-code-lines { flex: 1; height: auto; min-height: 0; padding-top: 8px; }
.tn-code-lines { position: relative; padding: 12px 12px 13px; margin: 0; list-style: none; height: 238px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.tn-code-lines li, .tn-code-preamble li { display: grid; grid-template-columns: 19px minmax(0, 1fr); gap: 6px; font: .82rem/1.8 var(--font-mono); color: var(--channel); min-height: 1.8em; }
.tn-code-lines li::before, .tn-code-preamble li::before { content: attr(data-line); color: var(--muted); font-size: .6rem; padding-top: 2px; opacity: .7; }
.tn-code-lines code, .tn-code-preamble code { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.tn-code-lines li[data-writing="true"] { background: color-mix(in srgb, var(--channel) 5%, transparent); border-radius: 3px; }
.tn-code-lines li[data-writing="true"] code::after { content: ''; display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -.1em; background: currentColor; opacity: var(--caret-opacity, 1); }
.tn-skills-heading { color: var(--muted); font: .65rem/1.5 var(--font-mono); letter-spacing: .12em; margin: 18px 0 9px; text-transform: uppercase; }
.tn-skills { position: relative; }
.tn-skill { position: absolute; top: 0; left: 0; display: flex; align-items: center; font: .68rem/1.45 var(--font-mono); padding: 8px 9px; border-radius: 5px; border: 1px solid var(--hairline); color: var(--channel); background: var(--surface); overflow-wrap: anywhere; transform-origin: left center; }
.tn-skill[data-active="true"] { border-color: color-mix(in srgb, var(--channel) 48%, var(--hairline)); background: color-mix(in srgb, var(--channel) 7%, var(--surface)); box-shadow: inset 2px 0 var(--channel); }
.tn-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.tn-link { fill: none; stroke: var(--channel); opacity: .2; }
.tn-spark { fill: none; stroke: var(--channel); stroke-linecap: round; }
.tn-pin { fill: var(--bg); stroke: var(--channel); }
.tn-toggle { position: absolute; right: 0; bottom: 0; opacity: .65; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); border-radius: 50%; cursor: pointer; flex: none; }
.tn-toggle:hover, .tn-toggle:focus-visible { opacity: 1; border-color: var(--accent); color: var(--accent-text); }
.tn-toggle svg { width: 16px; height: 16px; }
.hero-native [hidden] { display: none !important; }
.hero-native button:focus-visible, .hero-native input:focus-visible, .hero-native a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (min-width: 1500px) { .tn-code-lines { font-size: .8rem; } .tn-code-lines li, .tn-code-preamble li { font-size: .8rem; } }
@media (max-width: 1100px) {
  .hero-native { padding-inline: 20px; }
  .tn-stage { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; }
  .tn-flow { grid-template-columns: 86px minmax(0, 1fr); gap: 17px; }
  .tn-agent-symbol { width: 56px; height: 56px; }
  .tn-agent-name { font-size: .78rem; }
  .tn-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero-native { padding: calc(var(--nav-h) + 24px) 20px 24px; min-height: 0; }
  .tn-stage { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 10px 0 25px; min-height: 0; }
  .tn-model { height: clamp(290px, 82vw, 420px); }
  .tn-story { min-height: 530px; justify-content: flex-start; }
  .tn-flow { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tn-agents { flex-direction: row; justify-content: center; gap: 35px; }
  .tn-agent { width: auto; flex-direction: row; gap: 9px; }
  .tn-agent-symbol { width: 44px; height: 44px; border-radius: 9px; }
  .tn-agent-symbol svg { width: 26px; height: 26px; }
  .tn-agent-name { font-size: .8rem; }
  .tn-agent-label { display: none; }
  .tn-prompt { grid-row: 1; padding: 12px 14px; margin: 0; }
  .tn-code-lines li, .tn-code-preamble li { font-size: .76rem; }
  .tn-code-lines { min-height: 202px; padding: 12px; }
  .tn-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-skill { font-size: .7rem; padding: 9px; }
  .tn-part { font-size: .625rem; }
}

/* Equal outer columns keep the shared agent role at the stage's center. */
.tn-flow { grid-template-columns: var(--teaser-hub-width) minmax(0, 1fr); gap: var(--teaser-layout-gap); }
.tn-architecture { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 22px; min-width: 0; }
.tn-architecture > .tn-prompt { position: absolute; bottom: calc(100% + 26px); left: 50%; transform: translateX(-50%); width: max(100%, 280px); margin: 0; }
.tn-framework { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--bg); text-align: center; }
.tn-framework { border-top: 2px solid var(--teaser-agent); }
.tn-framework-title { letter-spacing: .16em; font-size: 1.3rem; }
.tn-agent-label { font: .75rem/1.4 var(--font-mono); letter-spacing: .07em; display: block; }
.tn-agents { display: flex; flex-direction: row; gap: 5px; align-items: flex-start; width: 100%; justify-content: center; margin: 3px 0; }
.tn-agent { flex-direction: column; flex: 1; gap: 7px; width: auto; min-width: 0; }
.tn-agent-symbol { width: 56px; height: 56px; border-radius: 9px; box-shadow: none; }
.tn-agent-symbol svg { width: 38px; height: 38px; }
.tn-agent-name { font-size: .9rem; line-height: 1.35; }
.tn-agent-or { font: .75rem/1.4 var(--font-mono); color: var(--muted); align-self: flex-start; margin-top: 21px; }
.tn-code-lines li, .tn-code-preamble li { font-size: .71rem; }
.tn-observation { position: absolute; bottom: 8px; left: 0; width: 190px; z-index: 3; background: var(--bg); border: 1px solid var(--hairline); border-radius: 7px; overflow: hidden; box-shadow: var(--shadow-card); }
.tn-observation video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.tn-observation-label, .tn-observation-time, .tn-observation small { display: block; font: .53rem/1.5 var(--font-mono); padding: 7px 8px; color: var(--muted); }
.tn-observation-label { color: var(--accent-text); letter-spacing: .04em; }
.tn-observation-time { padding-bottom: 0; }
.tn-observation small { padding-top: 3px; font-size: .49rem; }
.tn-links [data-route="part-label"] .tn-link { stroke-dasharray: 2 4; opacity: .45; }
@media (max-width: 1100px) and (min-width: 761px) {
  .hero-native { --teaser-hub-width: 196px; --teaser-layout-gap: 18px; }
  .tn-stage { grid-template-columns: minmax(0, calc((100% - var(--teaser-hub-width)) / 2 - var(--teaser-layout-gap))) minmax(0, 1fr); gap: var(--teaser-layout-gap); }
  .tn-architecture > .tn-prompt { width: calc(100% + 16px); }
  .tn-framework { padding-inline: 10px; }
  .tn-agent-symbol { width: 50px; height: 50px; }
  .tn-agent-name { font-size: .8rem; }
  .tn-observation { width: 155px; }
  .tn-port { flex-wrap: wrap; gap: 2px 8px; padding-block: 8px; }
  .tn-port small { text-align: left; }
  .tn-skills { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tn-skill { padding: 7px; font-size: .6rem; }
}
@media (max-width: 760px) {
  .tn-flow { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .tn-architecture { display: flex; align-items: center; }
  .tn-architecture > .tn-prompt { position: static; transform: none; width: 100%; }
  .tn-framework { width: 248px; max-width: 100%; }
  .tn-framework { padding: 22px 16px; justify-content: center; gap: 10px; }
  .tn-agents { gap: 5px; }
  .tn-agent { flex-direction: column; gap: 5px; }
  .tn-agent-label { display: block; }
  .tn-agent-name { font-size: .9rem; }
  .tn-agent-symbol { width: 56px; height: 56px; }
  .tn-agent-symbol svg { width: 38px; height: 38px; }
  .tn-code-lines li, .tn-code-preamble li { font-size: .73rem; }
  .tn-observation { width: 137px; bottom: 0; left: -5px; }
  .tn-observation-label, .tn-observation-time { font-size: .45rem; padding: 5px 6px; }
  .tn-observation small { font-size: .43rem; padding: 0 6px 5px; }
  .tn-code-note { font-size: .62rem; }
}
