textarea, select { font: inherit; color: inherit; }
textarea { resize: vertical; }
textarea:focus-visible, select:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chapter-actions { display: flex; align-items: center; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.chapter-actions .text-link { margin-top: 0; }
.service-explore { display: inline-flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 16px; padding: 10px 15px; background: #ffffff08; border: 1px solid #ffffff40; border-radius: 3px; font-size: 14px; transition: background .25s, border-color .25s; }
.service-explore:hover { background: #ffffff15; border-color: var(--service-accent, var(--lime)); }
.service-explore svg { width: 17px; height: 17px; }
.system-panel[data-panel='3'] { padding: 14px; }
.review-queue > div { padding-block: 7px; }
.contact-phone { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: #294512; font-size: 16px; }
.contact-phone a { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.contact-phone .icon-button { border-color: #10121140; }
.contact-email { color: #294512; font-size: 15px; }
.contact-email .icon-button { width: 40px; height: 40px; }
.service-dialog { width: 720px; padding: 40px; }
.service-dialog > .eyebrow { color: var(--lime); padding-right: 40px; margin-bottom: 20px; }
.service-dialog h2 { font-size: 34px; line-height: 1.12; max-width: 95%; }
.service-summary { margin-top: 20px; color: #c4d0bc; font-size: 16px; line-height: 1.65; }
.detail-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 25px 0 22px; }
.detail-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 17px; background: none; border: 0; border-bottom: 2px solid transparent; color: #a4afa0; font-size: 14px; }
.detail-tabs button.active { border-color: var(--lime); color: var(--paper); background: #ffffff05; }
.detail-tabs button:hover { color: var(--lime); }
.service-dialog section { min-height: 198px; }
.service-dialog section h3 { font-size: 17px; font-weight: 500; }
.service-dialog ul, .service-dialog ol { padding-left: 22px; margin: 15px 0 20px; color: #b2beaa; font-size: 15px; line-height: 1.65; }
.service-dialog li { padding-left: 4px; margin: 10px 0; }
.service-dialog li::marker { color: var(--lime); }
.detail-note { color: #99ab8c; font-size: 13px; line-height: 1.6; }
.service-start { display: flex; gap: 15px; padding: 20px 0; border-block: 1px solid var(--line); margin-top: 25px; }
.service-start > svg { color: var(--lime); margin-top: 4px; }
.service-start strong { display: block; font-size: 14px; font-weight: 500; color: var(--paper); margin-bottom: 8px; }
.service-start p { color: #afbea3; font-size: 15px; line-height: 1.65; }
.service-dialog-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 25px; }
.service-dialog-actions .text-button { font-size: 14px; min-height: 44px; }
.chat-launcher { position: fixed; z-index: 35; right: 24px; bottom: 24px; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 18px; border: 1px solid #c0f85d80; background: #182116f2; color: var(--lime); border-radius: 6px; font-size: 14px; box-shadow: 0 6px 24px #0004; transition: background .25s, transform .25s; }
.chat-launcher:hover { background: #2b391e; transform: translateY(-3px); }
.chat-launcher.at-hero { right: auto; left: 6%; bottom: 118px; }
.chat-launcher[aria-expanded='true'] { visibility: hidden; }
.chat-dialog { width: 470px; height: min(740px, calc(100dvh - 32px)); max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); padding: 0; margin: 0; inset: auto 16px 16px auto; border-radius: 8px; overflow: hidden; background: #131c17; }
.chat-dialog[open] { display: flex; flex-direction: column; }
.chat-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 8px; padding: 18px 16px 12px; }
.chat-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-identity > svg { color: var(--lime); width: 28px; height: 28px; }
.chat-identity h2 { font-size: 18px; line-height: 1.2; font-weight: 500; margin: 0; }
.chat-identity p { display: flex; align-items: center; gap: 6px; color: #adbc9e; font-size: 12px; margin-top: 6px; }
.chat-tools { display: flex; gap: 4px; flex-shrink: 0; }
.auth-recovery { justify-self: start; min-height: 44px; font-size: 14px; }
.auth-dialog .form-message { line-height: 1.6; overflow-wrap: anywhere; }
.auth-dialog .form-message[data-tone='success'] { color: var(--lime); }
.chat-tools .icon-button { width: 36px; height: 36px; border: 0; }
.chat-tabs { flex: 0 0 auto; margin: 0; padding: 0 16px; }
.chat-tabs button { flex: 1; padding: 12px 4px; }
.chat-tabs svg { width: 17px; height: 17px; }
.chat-conversation { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; scrollbar-width: thin; scrollbar-color: #51644c transparent; }
.chat-message { position: relative; padding: 12px 36px 13px 14px; margin-bottom: 16px; background: #ffffff04; border-left: 2px solid #778e6360; }
.chat-message.user { margin-left: 28px; padding-right: 14px; background: #c0f85d0e; border-left-color: var(--lime); }
.chat-message-label { font-size: 11px; color: #a0b38d; margin-bottom: 8px; }
.chat-message p { font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-copy { position: absolute; top: 7px; right: 6px; display: grid; place-items: center; width: 30px; height: 30px; background: transparent; border: 0; color: #9caf88; }
.chat-copy svg { width: 14px; height: 14px; }
.chat-copy:hover { color: var(--lime); }
.chat-service { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; margin-top: 14px; padding: 10px 0; width: 100%; border: 0; border-block: 1px solid #ffffff20; background: none; color: var(--lime); font-size: 14px; }
.chat-service svg { width: 16px; height: 16px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; flex: 0 0 auto; }
.chat-suggestions button { padding: 8px 10px; min-height: 36px; border: 1px solid #99b47940; border-radius: 3px; color: #d0e2c0; background: none; font-size: 12px; }
.chat-suggestions button:hover { border-color: var(--lime); background: #ffffff08; }
.chat-composer { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 8px; padding: 0 16px 12px; margin: 0; }
.chat-composer textarea { min-width: 0; flex: 1; min-height: 62px; max-height: 140px; resize: none; padding: 12px; border: 1px solid #6f88644d; border-radius: 3px; background: #0d1510; color: var(--paper); font-size: 16px; line-height: 1.45; }
.chat-composer textarea::placeholder { color: #9dab92; }
.chat-composer .icon-button { height: 44px; width: 44px; margin-bottom: 1px; background: var(--lime); color: var(--ink); }
.chat-recovery { flex: 0 0 auto; padding: 8px 16px 12px; }
.chat-error { margin: 0 0 8px; font-size: 13px; color: #f0ba96; line-height: 1.5; }
.chat-retry { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid #99b47960; border-radius: 3px; background: none; color: var(--paper); font-size: 13px; }
.chat-retry svg { width: 16px; height: 16px; }
.chat-retry:hover { border-color: var(--lime); }
.chat-retry:disabled { opacity: .5; cursor: wait; }
.chat-footer { position: relative; display: block; padding: 8px 16px 12px; margin: 0; border-top: 1px solid var(--line); flex: 0 0 auto; }
.chat-footer > div { display: flex; justify-content: space-between; gap: 8px; width: auto; margin: 0; }
.chat-footer a { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; color: #d2dfc7; }
.chat-footer svg { width: 15px; height: 15px; }
.chat-privacy-toggle { width: 44px; height: 44px; border: 0; color: #adbc9e; }
.chat-privacy-toggle[aria-expanded='true'] { background: #ffffff10; color: var(--lime); }
.chat-privacy-toggle[aria-expanded='true']::after { display: none; }
.chat-privacy-note { position: absolute; z-index: 2; right: 12px; bottom: calc(100% + 8px); width: 300px; max-width: calc(100% - 24px); padding: 16px; border: 1px solid #99b47960; border-radius: 4px; background: #1c2820; box-shadow: 0 8px 24px #0006; }
.chat-privacy-note strong { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--paper); }
.chat-privacy-note p { font-size: 14px; line-height: 1.6; color: #c4d0bc; }
@media (hover: none) { .chat-privacy-toggle[title]::after { display: none; } }
.chat-waiting { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #a5bb94; }
.chat-waiting i { width: 4px; height: 4px; border-radius: 50%; background: var(--lime); animation: chat-pulse 1s infinite alternate; }
.chat-waiting i:first-child { margin-left: 7px; }
.chat-waiting i:nth-child(2) { animation-delay: .2s; }
.chat-waiting i:nth-child(3) { animation-delay: .4s; }
.chat-brief { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px; }
.chat-brief h3 { font-weight: 500; font-size: 20px; margin-bottom: 20px; }
.chat-brief form { margin: 0; gap: 16px; }
.chat-brief label { font-size: 14px; line-height: 1.5; }
.chat-brief .optional { display: inline; font-size: 12px; color: #99ab8c; }
.chat-brief textarea, .chat-brief select, .chat-brief input { display: block; width: 100%; min-height: 44px; border: 1px solid #6f88644d; border-radius: 3px; background: #0d1510; color: var(--paper); padding: 12px; font-size: 16px; margin-top: 6px; }
.chat-brief textarea::placeholder, .chat-brief input::placeholder { color: #91a482; font-size: 14px; }
.brief-actions { display: flex; gap: 10px; align-items: center; }
.brief-actions .button { flex: 1; font-size: 14px; margin: 0; }
.brief-actions .icon-button { width: 48px; height: 48px; }
@keyframes chat-pulse { to { opacity: .25; transform: translateY(-2px); } }

@media (max-width: 850px) {
  .chat-launcher.at-hero { bottom: 105px; }
  .chapter-actions { gap: 12px; margin-top: 18px; }
  .service-explore { font-size: 13px; padding-inline: 12px; }
}
@media (max-width: 650px) {
  .header .login-button { font-size: 14px; min-height: 44px; }
  .menu-toggle { width: 44px; height: 44px; }
  .hero { padding: 94px 24px 0; height: var(--mobile-hero-height, 950px); max-height: none; }
  .hero h1 { font-size: 56px; }
  .hero h2 { font-size: 32px; margin-top: 18px; }
  .hero .hero-content > .eyebrow { font-size: 12px; margin-bottom: 20px; }
  .hero .hero-copy { font-size: 16px; line-height: 1.6; max-width: 350px; margin-top: 18px; }
  .hero .hero-actions { margin-top: 20px; gap: 14px; }
  .hero .hero-actions .button { font-size: 15px; min-height: 48px; padding: 12px 16px; gap: 12px; }
  .hero .text-button { font-size: 14px; min-height: 44px; }
  .hero .scene-host { top: var(--mobile-scene-top, 510px); bottom: auto; height: var(--mobile-scene-height, 260px); }
  .scene-controls { top: calc(var(--mobile-scene-top, 510px) + var(--mobile-scene-height, 260px) + 20px); bottom: auto; right: 24px; }
  .scene-controls .icon-button { width: 44px; height: 44px; }
  .segmented button { font-size: 14px; min-width: 58px; }
  .hero-bottom { font-size: 12px; padding-top: 15px; bottom: 20px; }
  .hero-bottom > span:first-child { max-width: 135px; }
  .hero-bottom a { font-size: 12px; gap: 8px; max-width: 150px; }
  .hero-sequence { height: calc(var(--hero-height, 950px) + var(--hero-travel, 1100px) + 72px); }
  .hero-sequence::before { content: ''; position: absolute; width: 0; height: 100svh; visibility: hidden; pointer-events: none; }
  .hero-sequence .hero { position: sticky; top: var(--hero-pin-top, -200px); }
  .hero-sequence .domain-strip { position: absolute; top: auto; bottom: 0; width: 100%; height: 72px; }
  .hero-sequence .domain-strip span { font-size: 12px; }
  .hero-finale { display: block; top: calc(var(--hero-offset, 200px) + var(--header) + 18px); left: 24px; width: calc(100% - 48px); }
  .hero-finale > .eyebrow, .hero-finale .finale-rule { display: none; }
  .hero-finale h2 { font-size: 32px; line-height: 1.08; margin-top: 0; }
  .hero-finale > p:not(.eyebrow) { font-size: 16px; line-height: 1.45; margin-top: 14px; max-width: 100%; }
  .section-label, .platform-stage .section-label { font-size: 12px; gap: 12px; }
  .section-label > span { max-width: 52%; }
  .eyebrow, .contact .eyebrow { font-size: 12px; }
  .manifesto-heading p, .section-heading > p, .principles p, .solution-text > p:not(.eyebrow), .article-open p, .contact-bottom > p { font-size: 16px; line-height: 1.65; }
  .platform-stage { padding: 20px 20px 18px; }
  .platform-stage .section-label { margin-bottom: 14px; }
  .platform-status { font-size: 12px; }
  .platform-heading { margin-bottom: 18px; }
  .platform-heading h2 { font-size: 25px; line-height: 1.15; }
  .chapter-count { font-size: 12px; }
  .platform-copy { min-height: 254px; }
  .chapter-copy .eyebrow { font-size: 12px; margin-bottom: 12px; }
  .chapter-copy h3 { font-size: 30px; line-height: 1.1; }
  .chapter-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.6; margin-top: 14px; }
  .chapter-actions { gap: 12px; margin-top: 14px; }
  .service-explore { font-size: 15px; padding: 10px 12px; }
  .chapter-copy .text-link { font-size: 14px; min-height: 44px; padding: 10px 0; margin: 0; }
  .chapter-copy .text-link svg { width: 16px; height: 16px; }
  .platform-main { gap: 18px; }
  .platform-display { height: 450px; }
  .display-bar { font-size: 12px; height: 52px; padding-inline: 10px; flex-wrap: wrap; align-content: center; gap: 3px 8px; }
  .display-bar > span:first-child { min-width: 0; flex-wrap: wrap; gap: 4px; }
  .sample-label { display: inline; font-size: 12px; }
  .panel-stack { height: calc(100% - 96px); }
  .display-footer { height: 44px; font-size: 12px; line-height: 1.3; padding-inline: 10px; gap: 8px; }
  .system-panel { padding: 12px; }
  .panel-metric { width: 100%; padding: 12px; }
  .panel-metric > span { font-size: 14px; }
  .panel-metric strong { font-size: 32px; margin: 6px 0; }
  .panel-metric strong span { font-size: 13px; }
  .panel-metric small { font-size: 12px; line-height: 1.45; margin-top: 6px; }
  .metric-tags { font-size: 12px; }
  .dataset-line { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: 12px; gap: 8px; }
  .dataset-line svg { display: none; }
  .data-cloud { inset: 68px 28px 154px; }
  .model-blueprint { height: 174px; }
  .blueprint-layer { width: 188px; height: 38px; margin-left: -94px; font-size: 13px; transform: rotateX(28deg) rotateZ(-8deg); }
  .blueprint-layer.l1 { top: 115px; }
  .blueprint-layer.l2 { top: 65px; }
  .blueprint-layer.l3 { top: 15px; }
  .agent-network { height: 130px; flex-shrink: 0; }
  .agent-hub { width: 96px; font-size: 11px; }
  .agent-node { min-width: 70px; font-size: 12px; }
  .n1, .n2 { top: 53px; }
  .horizontal { top: 65px; }
  .review-queue { gap: 6px; }
  .review-queue > div { padding: 6px 8px; gap: 7px; }
  .review-queue > div > span:nth-child(2) { font-size: 12px; }
  .review-queue small { font-size: 12px; }
  .review-queue b { font-size: 11px; gap: 3px; }
  .avatar { font-size: 12px; }
  .system-panel[data-panel='3'] .panel-metric { margin-top: 10px; }
  .system-panel[data-panel='3'] { padding: 12px; }
  .system-panel[data-panel='3'] .panel-metric strong { font-size: 29px; }
  .audit-flow > span { font-size: 12px; }
  .chapter-navigation { gap: 8px; margin-top: 20px; }
  .chapter-navigation button { font-size: 14px; min-height: 58px; padding: 10px 0; gap: 4px; }
  .chapter-navigation button > span { font-size: 12px; }
  .solution-tabs button { font-size: 14px; }
  .solution-text .text-link, .article-link { font-size: 14px; }
  .solution-tags span, .article-meta { font-size: 12px; }
  .art-coordinate, .article-art > span { font-size: 12px; }
  .contact-choice > span { font-size: 12px; }
  .contact-service-options button { font-size: 14px; min-height: 44px; padding: 10px 12px; }
  .contact .button { font-size: 15px; }
  .contact-email { font-size: 16px; gap: 8px; }
  .contact-email a { overflow-wrap: anywhere; }
  .contact-email .icon-button, .contact-phone .icon-button { width: 44px; height: 44px; }
  footer > p, footer > div { font-size: 14px; }
  .auth-tabs button, .auth-subtitle, form label, .account-email, .saved-list > p { font-size: 14px; }
  form input::placeholder { font-size: 14px; }
  .form-message { font-size: 13px; }
  .article-body p { font-size: 16px; }
  .chat-message p { font-size: 16px; }
  .service-dialog ul, .service-dialog ol, .service-start p { font-size: 16px; }
  .chat-launcher { bottom: 16px; right: 16px; min-height: 48px; width: 48px; padding: 12px; }
  .chat-launcher > span { display: none; }
  .chat-launcher.at-services { left: 16px; right: auto; }
  .chat-launcher.over-graphic { visibility: hidden; pointer-events: none; }
  .chat-launcher.at-hero { bottom: 142px; left: 24px; }
  .chat-launcher.at-hero:not(.hero-pinned) { bottom: 16px; left: auto; right: 16px; }
  .chat-dialog { inset: auto 8px 8px auto; max-width: calc(100% - 16px); width: 470px; height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  .chat-header { padding: 14px 12px 10px; }
  .chat-tools .icon-button { width: 36px; height: 44px; }
  .chat-identity { gap: 8px; }
  .chat-identity h2 { font-size: 17px; }
  .chat-identity > svg { width: 22px; height: 22px; }
  .chat-tabs { padding-inline: 12px; }
  .chat-log { padding-inline: 12px; }
  .chat-copy { width: 36px; height: 36px; }
  .chat-suggestions { padding-inline: 12px; }
  .chat-suggestions button { font-size: 13px; min-height: 40px; }
  .chat-composer { padding-inline: 12px; }
  .chat-footer { padding-inline: 12px; }
  .chat-footer a { font-size: 14px; min-height: 44px; }
  .service-dialog { padding: 32px 22px 24px; }
  .service-dialog h2 { font-size: 28px; max-width: 100%; }
  .service-dialog .detail-tabs button { font-size: 14px; padding-inline: 11px; flex: 1; }
  .service-dialog section { min-height: 0; }
  .service-dialog-actions { gap: 12px; }
  .service-dialog-actions .button { width: 100%; font-size: 15px; }
}
/* Each phone chapter keeps its own copy and full graphic in the scroll walkthrough. */
@media (max-width: 650px) {
  .platform { height: auto; }
  .platform-stage { position: relative; top: 0; height: auto; padding-block: 30px; min-height: 0; }
  .platform-heading { order: 1; }
  .platform-main { order: 3; }
  .chapter-navigation { order: 2; margin: 0 0 24px; position: sticky; top: var(--header); z-index: 12; background: var(--ink); padding-top: 8px; }
  .platform-copy { min-height: 0; }
  .mobile-services { order: 3; }
  .mobile-service { padding: 12px 0 48px; margin-bottom: 28px; border-bottom: 1px solid var(--line); --service-accent: #c0f85d; }
  .mobile-service:last-child { padding-bottom: 12px; margin-bottom: 0; border: 0; }
  .mobile-service:nth-child(2) { --service-accent: #a6dce9; }
  .mobile-service:nth-child(3) { --service-accent: #b5c9fc; }
  .mobile-service:nth-child(4) { --service-accent: #f4ab8c; }
  .mobile-service > .platform-display { margin-top: 28px; opacity: .3; transform: translateY(22px); transition: opacity .55s var(--ease), transform .65s var(--ease); will-change: auto; }
  .mobile-service > .platform-display.seen { opacity: 1; transform: none; }
  .mobile-service > .platform-display:not(.in-view) *,
  .mobile-service > .platform-display:not(.in-view) *::before,
  .mobile-service > .platform-display:not(.in-view) *::after { animation-play-state: paused; }
  .service-watermark { display: none; }
}
@media (max-width: 360px) {
  .header .brand { font-size: 18px; }
  .header .brand-mark { width: 20px; height: 20px; }
  .header { gap: 8px; }
  .hero { padding-inline: 18px; }
  .hero h1 { font-size: 48px; }
  .hero h2 { font-size: 30px; }
  .hero .hero-actions { gap: 8px; }
  .hero .hero-actions .button { padding-inline: 12px; }
  .platform-stage { padding-inline: 16px; }
  .platform-heading h2 { font-size: 24px; }
  .chapter-copy h3 { font-size: 28px; }
  .chapter-actions { gap: 4px 12px; }
  .panel-metric { width: 100%; }
  .chat-header { gap: 3px; padding-inline: 10px; }
  .chat-tools { gap: 0; }
  .chat-tools .icon-button { width: 32px; }
  .chat-identity h2 { font-size: 16px; }
}
@media (max-width: 650px) and (max-height: 479px) {
  .hero-sequence { height: auto; }
  .hero-sequence .hero, .hero-sequence .domain-strip { position: relative; top: auto; }
  .hero-finale { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-waiting i { animation: none; }.chat-launcher { transition: none; }
  .hero-sequence { height: auto; }
  .hero-sequence .hero, .hero-sequence .domain-strip { position: relative; top: auto; }
  .hero-finale { display: none; }
  .mobile-service > .platform-display { opacity: 1; transform: none; }
}
@media (max-width: 650px) {
  html[data-scroll-engine='native'] .hero-sequence { height: auto; }
  html[data-scroll-engine='native'] .hero-sequence .hero,
  html[data-scroll-engine='native'] .hero-sequence .domain-strip { position: relative; top: auto; }
  html[data-scroll-engine='native'] .hero-finale { display: none; }
}
.admin-account-link { margin-bottom: 12px; }
.account-activity-note { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: #a3aaa2; }
