:root { color-scheme: dark; background: #050e20; font-family: sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
.surface { position: relative; width: 100%; height: 100svh; overflow: hidden; background: #050e20; }
.field { position: absolute; inset: 0; touch-action: none; outline: none; }
.field:focus-visible { outline: 2px solid #60738e; outline-offset: -2px; }
#water { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; background: #01060e; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.terminal { position: relative; z-index: 1; width: min(920px, 100%); max-height: 100svh; overflow-y: auto; scrollbar-width: none; padding: clamp(24px, 4vw, 48px); color: #c5d5e2; font-family: 'Cascadia Code', 'SFMono-Regular', Consolas, monospace; pointer-events: none; }
.terminal-label { color: #7d9baa; font-size: 12px; letter-spacing: .14em; margin-bottom: 26px; }
.terminal-label span { color: #97c7c9; margin-right: 12px; }
.terminal-header { display: flex; align-items: center; gap: 20px; }
.terminal-header .topic-picker { flex: 1; min-width: 0; margin-top: 0; }
.brand-animation { position: relative; width: min(600px, 100%); flex: 0 1 600px; aspect-ratio: 4 / 3; margin: -30px 0 4px -26px; padding: 0; border: 0; background: transparent; pointer-events: auto; }
.brand-animation:focus-visible { outline: 2px solid #b9e2ee; outline-offset: 3px; border-radius: 8px; }
.results-mode .brand-animation { width: 180px; flex-basis: 180px; }
.brand-animation > img, .brand-animation > video, .brand-animation > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.brand-animation [hidden] { display: none; }
.welcome-panel { margin-top: 12px; padding: 22px 24px; background: rgba(0,0,0,.76); border: 1px solid rgba(132,183,201,.24); border-radius: 8px; transform-origin: top left; }
.welcome-copy { margin-top: 0; }
.logo-pending .welcome-panel { visibility: hidden; }
.welcome-entering { animation: welcome-open .6s cubic-bezier(.2,.7,.2,1) both; }
.welcome-entering .welcome-copy { animation: welcome-content .65s step-end both; }
.welcome-entering .topic-picker { visibility: hidden; }
.results-mode .welcome-panel { display: none; }
@keyframes welcome-open { 0% { transform: translateX(-70px) scaleX(0) scaleY(.006); } 35% { transform: translateX(0) scaleX(1) scaleY(.006); } 100% { transform: translateX(0) scaleX(1) scaleY(1); } }
@keyframes welcome-content { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 800px) { .brand-animation { width: min(360px, 100%); flex: 0 1 360px; margin: -12px auto 4px; } .terminal-header { gap: 10px; align-items: flex-start; justify-content: center; } .results-mode .terminal-header { justify-content: flex-start; } .results-mode .brand-animation { width: 120px; flex: 0 0 120px; margin-left: -20px; } }

h1 { margin: 0 0 20px; font-size: clamp(26px, 4vw, 38px); font-weight: 400; line-height: 1.4; color: #deebed; }
.introduction { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.85; max-width: 610px; }
 .topic-picker { margin-top: 24px; pointer-events: auto; }
.topic-heading { font-size: 11px; letter-spacing: .1em; color: #73919f; margin-bottom: 13px; }
.topic-bubbles { display: flex; flex-wrap: wrap; gap: 10px; }
.topic { padding: 11px 16px; min-height: 44px; border: 1px solid #304b60; border-radius: 999px; background: #0c2035; color: #b0c9d7; font: inherit; font-size: 13px; line-height: 1.5; text-align: left; transition: background .15s, border-color .15s; }
.topic:hover { background: #153149; border-color: #668f9e; }
.topic.active { background: #1c3b50; border-color: #85b8c4; color: #e1f0f2; }
.topic:focus-visible { outline: 2px solid #b9e2ee; outline-offset: 3px; }
@media (max-width: 600px) { .topic { padding: 10px 13px; font-size: 12px; } }


@media (hover: hover) and (pointer: fine) { html, body, body * { cursor: url('cursor.svg') 6 5, auto !important; } }
.terminal.results-mode { pointer-events: auto; }
.results-mode .welcome-copy { display: none; }
.search-answer { margin-top: 24px; pointer-events: auto; padding-block: 18px; border-top: 1px solid #233c51; }
.search-answer[hidden] { display: none; }
.answer-label { color: #7fa3b5; font-size: 11px; letter-spacing: .1em; margin: 0 0 18px; }
.search-answer h2 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 30px); font-weight: 400; line-height: 1.4; color: #deebed; }
.search-answer h2:focus { outline: none; }
.placeholder-label { display: inline-block; padding: 4px 8px; border: 1px solid #304b60; color: #88a7ba; font-size: 12px; margin: 0 0 18px; }
#answer-text { white-space: pre-line; color: #adc3d3; font-size: 16px; line-height: 1.65; margin: 0; }

.terminal::-webkit-scrollbar { display: none; }
@media (max-height: 700px) {
  .terminal { padding-block: 22px; }
  .terminal-label { margin-bottom: 18px; }
  .topic-picker { margin-top: 18px; }
  .search-answer { margin-top: 18px; padding-block: 14px; }
  .answer-label { margin-bottom: 10px; }
  .placeholder-label { margin-bottom: 12px; }
}

@media (max-width: 800px) {
  .terminal { padding: 24px; }
  .topic { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  .topic-bubbles { gap: 7px; }
  .introduction { line-height: 1.6; font-size: 14px; }
  .terminal-label { margin-bottom: 18px; }
}

@media (max-width: 800px) {
  .terminal:not(.results-mode) { padding-top: 8px; }
  .welcome-panel { padding: 18px; }
  .assessment-view .terminal { max-height: 100svh; padding: 8px 20px; }
  .results-mode .terminal-header { height: 82px; }
  .results-mode .brand-animation { width: 120px; flex-basis: 120px; margin-top: -12px; }
  .assessment-view .topic { text-align: center; padding: 7px 8px; min-height: 36px; }
  .assessment-view .search-answer { background: rgba(0,0,0,.68); border-radius: 6px; padding: 10px 12px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .welcome-entering, .welcome-entering .welcome-copy { animation: none; } }

.assessment-view .terminal { width: 43%; }
.assessment-view .brand-animation { width: 120px; flex-basis: 120px; }
.assessment-view #answer-text { font-size: 14px; }
.assessment-view .topic { font-size: 11px; padding: 8px 11px; min-height: 36px; }
@media (max-width: 800px) {
  .assessment-view .terminal { width: 100%; max-height: 100svh; padding: 8px 20px; }
  .assessment-view .search-answer { margin-top: 0; padding: 10px 12px; }
  .assessment-view .search-answer h2 { font-size: 22px; }
  .assessment-view #answer-text { font-size: 12px; line-height: 1.45; }
}

@media (max-width: 800px) {
  .assessment-view .answer-label, .assessment-view .placeholder-label { display: none; }
}

/* AI topic: copy and an inline, accessible comparison visual. */
#ai-content[hidden], .placeholder-label[hidden], #answer-text[hidden] { display: none; }
#ai-content { max-width: 760px; padding: clamp(16px, 3vw, 24px); background: rgba(0,0,0,.82); border-radius: 8px; }
#ai-content > p { color: #adc3d3; font-size: 16px; line-height: 1.8; margin: 0 0 22px; }
.expertise-chart { margin: 32px 0; padding: clamp(16px, 3vw, 28px); background: rgba(2, 12, 24, .9); border: 1px solid #304b60; border-radius: 10px; }
.expertise-chart h3 { color: #deebed; font-size: clamp(18px, 2.5vw, 24px); font-weight: 400; line-height: 1.4; margin: 0 0 8px; }
.chart-subtitle { color: #88a7ba; font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.expertise-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { fill: none; stroke: #304b60; stroke-width: 1; }
.chart-ticks, .chart-axis { fill: #88a7ba; font-size: 13px; }
.practice-bar { fill: #304f69; }
.ai-bar { fill: #89dccc; }
.chart-values, .chart-labels { fill: #e1f0f2; font-size: 16px; }
.chart-note { fill: #9eb7c7; font-size: 12px; }
.expertise-chart figcaption { color: #9eb7c7; font-size: 12px; line-height: 1.7; border-top: 1px solid #233c51; padding-top: 16px; }
.expertise-chart a { color: #89dccc; text-underline-offset: 3px; }
.expertise-chart a:focus-visible { outline: 2px solid #b9e2ee; outline-offset: 4px; }
@media (max-width: 600px) { #ai-content > p { font-size: 14px; } .expertise-chart { margin-inline: -8px; padding: 14px; } }
/* Selected topics remain in one horizontally scrollable header row. */
.terminal.results-mode { width: 100%; min-height: 100svh; display: flex; flex-direction: column; }
.results-mode .terminal-header { flex-shrink: 0; }
.results-mode .topic-content { flex: 1 0 auto; }
.site-footer { display: none; }
.results-mode .site-footer { display: block; margin-top: auto; padding: 18px 0 8px; border-top: 1px solid #304b60; background: #010812; color: #adc3d3; font: 13px/1.6 system-ui, sans-serif; }
.site-footer address { font-style: normal; }
.results-mode .terminal-header { position: sticky; top: 0; z-index: 4; align-items: center; background: #010812; border-bottom: 1px solid #304b60; }
.results-mode .brand-animation { flex: 0 0 100px; width: 100px; margin: -12px 0; }
.results-mode .topic-heading { display: none; }
.results-mode .topic-bubbles { flex-wrap: nowrap; overflow-x: auto; padding: 6px 4px; scrollbar-width: none; }
.results-mode .topic { flex: 0 0 auto; white-space: nowrap; font-size: 11px; line-height: 1.5; padding: 7px 10px; min-height: 36px; }
.results-mode .search-answer { max-width: 760px; }
.assessment-view .terminal { width: 100%; }
.assessment-view .search-answer { max-width: 43%; }
@media(max-width:800px) {
 .results-mode .terminal-header { height: 64px; gap: 8px; }
 .results-mode .brand-animation { flex-basis: 76px; width: 76px; margin: -8px 0; }
 .assessment-view .search-answer { max-width: 100%; }
}

/* Process Automation: readable content over the existing office journey. */
#automation-venn[hidden] { display: none; }
.automation-copy { margin: 0; color: #deebed; line-height: 1.65; }
.automation-copy span { display: block; }
.venn-diagram { position: relative; width: 100%; max-width: 520px; margin: 18px auto 0; aspect-ratio: 600 / 510; }
.venn-diagram svg { display: block; width: 100%; height: 100%; }
 .venn-region { opacity: .85; transition: opacity .15s; }
.venn-region[data-region="1"] { fill: #174568; }
.venn-region[data-region="2"] { fill: #226782; }
.venn-region[data-region="4"] { fill: #147e91; }
.venn-region[data-region="3"] { fill: #30619e; }
.venn-region[data-region="5"] { fill: #149cb0; }
.venn-region[data-region="6"] { fill: #397dba; }
.venn-region[data-region="7"] { fill: #55b7c9; }
.venn-region.is-active { opacity: 1; }
.venn-outline { fill: none; stroke: #88b5c5; stroke-width: 1.5; pointer-events: none; }
.venn-choice { position: absolute; transform: translate(-50%, -50%); min-height: 44px; padding: 4px 6px; color: #e1f0f2; background: transparent; border: 0; border-radius: 6px; font: inherit; font-size: 12px; white-space: nowrap; }
.venn-choice[aria-pressed="true"] { color: white; }
.venn-choice:focus-visible { outline: 2px solid #b9e2ee; outline-offset: 3px; }
.venn-hint { color: #adc3d3; font-size: 12px; line-height: 1.6; margin: 8px 0 16px; text-align: center; }
.venn-details { border-top: 1px solid #304b60; padding-top: 14px; min-height: 230px; }
.venn-details h3 { margin: 0 0 10px; color: #deebed; font-size: 16px; font-weight: 400; line-height: 1.5; }
.venn-details ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.process-automation-view .search-answer { background: rgba(0,0,0,.86); border-radius: 6px; padding: 18px; }
@media (max-width: 800px) { .process-automation-view .search-answer { padding: 14px; } .venn-choice { font-size: 11px; } }

/* Mobile topics open below the scene; scrolling lifts the content over it. */
@media (max-width: 800px) {
  .surface .terminal.results-mode {
    height: 100svh;
    max-height: 100svh;
    padding: 8px 16px 0;
    overscroll-behavior-y: contain;
  }
  .surface .results-mode .terminal-header { height: 64px; }
  .results-mode .topic-content { padding-top: max(24px, calc(100svh - 176px)); }
  .surface .terminal.results-mode .topic-content .search-answer {
    width: 100%;
    max-width: none;
    min-height: calc(100svh - 72px);
    margin: 0;
    padding: 16px 16px calc(28px + env(safe-area-inset-bottom));
    background: #010812;
    border: 1px solid #304b60;
    border-radius: 14px 14px 0 0;
  }
  .surface .results-mode .search-answer h2 { font-size: 22px; line-height: 1.4; }
}

@media (max-width: 800px) {
  .compact-topic-view .results-mode .topic-content { padding-top: 8px; }
  .surface.compact-topic-view .terminal.results-mode .topic-content .search-answer {
    min-height: 0;
    padding-bottom: 16px;
    border-radius: 10px;
  }
  .compact-topic-view .results-mode .placeholder-label { display: none; }
  .compact-topic-view .results-mode #answer-text { font-size: 12px; line-height: 1.45; }
}

/* Sticky topic header with cyan navigation and overflow controls. */
.topic-scroll-arrow { display: none; }
.results-mode .terminal-header .topic-picker { display: grid; grid-template-columns: 26px minmax(0,1fr) 26px; align-items: center; gap: 4px; }
.results-mode .topic-bubbles::-webkit-scrollbar { display: none; }
.results-mode .topic { color: #103246; border-color: #f5fcff; background: #f5fcff; box-shadow: 0 1px 8px rgba(0,0,0,.2); }
.results-mode .topic:hover { background: #e1f8fc; border-color: #72dcea; }
.results-mode .topic.active { color: #082f42; border-color: #47cfe5; background: #fff; box-shadow: 0 0 0 1px #47cfe5, 0 0 10px rgba(75,211,231,.3); }
.results-mode .topic-scroll-arrow { display: flex; align-items: center; justify-content: center; width: 26px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #8ce9f7; }
.topic-scroll-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(69,203,225,.55)); }
.results-mode .topic-scroll-arrow:disabled { visibility: hidden; }
.topic-scroll-arrow:focus-visible { outline: 2px solid #a0eaf3; outline-offset: 1px; border-radius: 4px; }
