/* The AI page owns this composition; shared site styles stay unchanged. */
.ai-neural { --neural-blue: #80BBFC; --neural-warm: #FFA164; }
.ai-neural::before { background: radial-gradient(ellipse at 18% 24%, rgba(103,169,243,.06), transparent 50%), radial-gradient(ellipse at 52% 10%, rgba(255,134,47,.045), transparent 50%); }
.neural-page-container { padding-block: 30px 92px; }
.neural-page-container > .breadcrumbs { margin-bottom: 34px; }
.neural-explorer { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 0 44px; align-items: start; }
.neural-console { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 106px; min-width: 0; margin: 0; }
.neural-map-caption { display: flex; gap: 10px; align-items: center; font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.neural-map-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--it); box-shadow: 0 0 0 4px var(--it-soft); flex: none; }
.neural-map-code { margin-left: auto; color: var(--accent); font-size: 19px; }
.neural-map-hint { font-size: 12px; color: var(--mute); margin-top: 10px; }
.neural-stage { position: relative; margin-top: 8px; isolation: isolate; scroll-margin-top: 112px; --neuron-color: var(--accent); }
.neural-brain { width: 100%; height: auto; overflow: visible; }
.brain-orbits { stroke: var(--border-2); stroke-width: .8; fill: none; opacity: .55; }
.brain-orbits ellipse { stroke-dasharray: 2 12; }
.brain-volume { fill: url(#brain-volume); }
.brain-micro-edges { fill: none; stroke: url(#brain-spectrum); stroke-width: .55; opacity: .33; }
.brain-micro-points { fill: url(#brain-spectrum); opacity: .65; }
.brain-folds { fill: none; stroke-width: 1.6; stroke-linecap: round; opacity: .65; }
.brain-folds-blue { stroke: var(--neural-blue); }
.brain-folds-orange { stroke: var(--neural-warm); }
.brain-outline { stroke: url(#brain-spectrum); stroke-width: 1.8; fill: none; stroke-linecap: round; }
.brain-outline use:first-child { stroke: var(--neural-blue); }
.brain-outline use:nth-child(2) { stroke: var(--neural-warm); }
.brain-synapses { fill: none; stroke: url(#brain-spectrum); stroke-width: .85; opacity: .45; }
.neural-synapse { transition: stroke-width 400ms, opacity 400ms; }
.neural-synapse.is-active { stroke: var(--neuron-color); stroke-width: 1.8; opacity: 1; }
.brain-active-halo { fill: var(--neuron-color); opacity: .09; stroke: var(--neuron-color); stroke-width: 1; }
.brain-selected-route, .brain-packet { fill: none; stroke: var(--neuron-color); stroke-linecap: round; }
.brain-selected-route { stroke-width: 1.3; opacity: .5; }
.brain-packet { stroke-width: 3; stroke-dasharray: .045 .955; opacity: 0; }
.brain-labels { fill: var(--mute); font: 10px var(--mono); letter-spacing: .15em; }
.brain-labels text:first-child { fill: var(--neural-blue); }
.brain-labels text:nth-child(2) { fill: var(--neural-warm); }
.neural-stage.neural-ready .brain-fold { stroke-dasharray: 1; stroke-dashoffset: 1; }
.neural-stage.neural-ready.is-visible .brain-fold { animation: neural-draw 1.1s var(--ease) var(--fold-delay) both; }
.neural-stage.is-signaling .brain-packet { animation: neural-packet 1.05s linear both; }
.neural-stage.is-signaling .brain-active-halo { animation: neural-halo 1.1s ease both; }
.neuron-pin { --pin-color: var(--accent); position: absolute; left: var(--pin-x); top: var(--pin-y); width: 44px; height: 44px; display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; z-index: 2; color: var(--pin-color); }
.neuron-developments, .neuron-questions { --pin-color: var(--it); }
.neuron-pin > span { width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 4px rgba(20,22,25,.75), 0 0 0 5px currentColor; transition: background 300ms, box-shadow 300ms, transform 300ms; }
.neuron-pin:hover > span, .neuron-pin:focus-visible > span, .neuron-pin.is-active > span { background: currentColor; transform: scale(1.12); box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px currentColor, 0 0 24px currentColor; }
.neuron-pin:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.neuron-pin::after { content: attr(data-label); position: absolute; bottom: 39px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 220px; padding: 9px 13px; background: var(--bg-2); color: var(--text); border: 1px solid var(--border-2); border-radius: 9px; font-size: 11px; line-height: 1.45; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 200ms; text-align: center; }
.neuron-pin:hover, .neuron-pin:focus-visible { z-index: 3; }
.neuron-pin:hover::after, .neuron-pin:focus-visible::after { opacity: 1; visibility: visible; }
.neural-current { padding: 17px 0; border-top: 1px solid var(--border); }
.neural-current > span { font: 9px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .12em; }
.neural-current a { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 16px; font-weight: 500; }
.neural-current a > span:last-child { color: var(--accent); }
.neural-map-footnote { color: var(--mute); font-size: 11px; }
.neural-content { grid-column: 2; grid-row: 2; min-width: 0; }
.neural-overview { grid-column: 2; grid-row: 1; min-width: 0; }
.neural-overview > .section-label { font-size: 10px; margin-bottom: 22px; }
.neural-overview h1 { font-size: clamp(36px, 3.9vw, 52px); line-height: 1.06; letter-spacing: -.045em; }
.neural-overview .lead { font-size: 16px; color: var(--dim); line-height: 1.75; margin-top: 25px; max-width: 54ch; }
.neural-overview .hero-cta { gap: 10px; margin-block: 26px; }
.neural-overview .btn { font-size: 13px; padding: 13px 18px; }
.neural-chapters { display: flex; flex-wrap: wrap; gap: 7px 16px; border-block: 1px solid var(--border); padding-block: 15px; }
.neural-chapters a { color: var(--mute); font-size: 11px; padding-block: 4px; }
.neural-chapters a:hover, .neural-chapters a[aria-current] { color: var(--text); }
.neural-branch { margin-top: 58px; scroll-margin-top: 118px; }
.neural-branch-heading { margin-bottom: 27px; }
.neural-branch-heading .section-label { font-size: 9px; margin-bottom: 15px; color: var(--mute); letter-spacing: .07em; }
.neural-branch-heading .section-label .ui-icon { width: 18px; height: 18px; }
.neural-branch-heading h2 { font-size: clamp(25px, 2.5vw, 32px); max-width: 23ch; }
.neural-branch-heading .sec-lead { font-size: 14px; line-height: 1.75; }
.neural-card { --neuron-color: var(--accent); --card-accent: var(--accent); position: relative; margin-bottom: 20px; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(130deg, rgba(36,41,50,.7), rgba(24,27,32,.8)); padding: 27px; scroll-margin-top: 118px; transition: border-color 400ms, background 400ms, box-shadow 400ms; }
.neural-developments, .neural-questions { --neuron-color: var(--it); --card-accent: var(--it); }
.neural-card::before { content: ""; position: absolute; top: 39px; left: -27px; width: 27px; height: 1px; background: linear-gradient(90deg, transparent, var(--neuron-color)); opacity: .45; transform-origin: right; }
.neural-card::after { content: ""; position: absolute; left: -30px; top: 36px; width: 7px; height: 7px; border: 1px solid var(--neuron-color); border-radius: 50%; background: var(--bg); opacity: .5; }
.neural-card.is-active { border-color: var(--neuron-color); background: linear-gradient(130deg, var(--surface-2), var(--bg-2)); box-shadow: 0 0 30px -18px var(--neuron-color); }
.neural-card.is-active::after { opacity: 1; background: var(--neuron-color); box-shadow: 0 0 16px var(--neuron-color); }
.neural-card.is-seen::before { animation: neural-card-line 700ms var(--ease) both; }
.neural-card:focus { outline: none; }
.neural-card:focus-visible { outline: 2px solid var(--neuron-color); outline-offset: 5px; }
.neural-kicker { display: block; font: 9px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--neuron-color); margin-bottom: 18px; }
.neural-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.neural-card-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--border-2); background: var(--bg-2); border-radius: 15px; color: var(--neuron-color); }
.neural-card-icon .ui-icon { width: 23px; height: 23px; }
.neural-card h3, .neural-card-title { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.neural-card p { color: var(--dim); font-size: 15px; line-height: 1.75; }
.neural-card .service-list { margin-top: 15px; font-size: 13px; }
.neural-card .service-list li::marker { color: var(--neuron-color); }
.neural-card .tech-tags { margin-top: 21px; }
.neural-card .project-link { margin-top: 22px; }
.neural-back-link { display: none; }
.neural-sequence { list-style: none; padding: 0; }
.neural-question { padding: 22px; }
.neural-question summary { gap: 14px; padding: 0; }
.neural-question summary > .neural-card-icon { font-size: inherit; color: var(--neuron-color); }
.neural-question summary > .neural-card-title { font-family: var(--font); font-size: 16px; color: var(--text); flex: 1; }
.neural-question summary > .neural-question-plus { font-size: 22px; color: var(--neuron-color); }
.neural-question[open] summary > .neural-card-icon, .neural-question[open] summary > .neural-card-title { transform: none; }
.neural-question p { padding-block: 20px 0; }
.ai-neural .cta-panel.is-active { border-color: var(--accent); }
@keyframes neural-draw { to { stroke-dashoffset: 0; } }
@keyframes neural-packet { 0% { stroke-dashoffset: 1; opacity: 0; } 15%, 75% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes neural-halo { 0%, 100% { opacity: .09; } 40% { opacity: .25; } }
@keyframes neural-card-line { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: .8; } }
@media (min-width: 1021px) and (max-height: 820px) {
  .neural-console { top: 96px; }
  .neural-stage { max-width: min(490px, calc(100vh - 245px)); margin-inline: auto; }
  .neural-map-hint, .neural-map-footnote { font-size: 10px; }
  .neural-current { padding-block: 12px; }
}
@media (max-width: 1180px) and (min-width: 1021px) {
  .neural-explorer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 34px; }
  .neural-overview h1 { font-size: 39px; }
  .neural-overview .btn { font-size: 12px; padding-inline: 14px; }
  .neuron-pin::after { max-width: 180px; }
}
@media (max-width: 1020px) {
  .neural-explorer { display: flex; flex-direction: column; gap: 35px; }
  .neural-console { position: static; width: 100%; max-width: 640px; margin-inline: auto; order: 1; }
  .neural-content { display: contents; }
  .neural-overview { order: 0; width: 100%; }
  .neural-overview h1 { font-size: clamp(36px, 6vw, 51px); }
  .neural-overview h1 br:first-of-type { display: none; }
  .neural-branch { order: 2; width: 100%; margin-top: 10px; }
  .neural-stage { max-width: 600px; margin-inline: auto; }
  .neural-current { max-width: 600px; margin-inline: auto; }
  .neural-map-footnote { max-width: 600px; margin-inline: auto; margin-top: 0; }
  .neuron-pin::after { display: none; }
  .neural-card { padding: 25px; }
  .neural-back-link { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--it); font-size: 12px; width: fit-content; }
}
@media (min-width: 1021px) and (max-height: 679px) { .neural-console { position: static; } }
@media (max-width: 620px) {
  .neural-page-container { padding-top: 24px; }
  .neural-page-container > .breadcrumbs { margin-bottom: 32px; }
  .neural-overview h1 { font-size: clamp(30px, 8.2vw, 43px); }
  .neural-overview h1 br:first-of-type { display: block; }
  .neural-overview .lead { font-size: 15px; }
  .neural-overview .hero-cta { gap: 8px; }
  .neural-overview .btn { padding: 12px 14px; font-size: 12px; }
  .neural-chapters { gap: 6px 14px; }
  .neural-chapters a { font-size: 10px; }
  .neural-map-hint { font-size: 10px; max-width: 34ch; }
  .neural-map-caption { font-size: 9px; }
  .neuron-pin { width: 36px; height: 36px; }
  .neuron-pin > span { width: 8px; height: 8px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px currentColor; }
  .brain-labels { font-size: 12px; letter-spacing: .06em; }
  .neural-current a { font-size: 14px; }
  .neural-current > span { font-size: 8px; }
  .neural-card::before { left: -15px; width: 15px; }
  .neural-card::after { left: -18px; }
  .neural-card { padding: 23px 21px; border-radius: 19px; }
  .neural-card h3 { font-size: 20px; }
  .neural-card-head { gap: 13px; align-items: flex-start; }
  .neural-card p { font-size: 14px; }
  .neural-card-icon { width: 38px; height: 38px; border-radius: 12px; }
  .neural-question { padding: 20px 16px; }
  .neural-question summary { gap: 10px; }
  .neural-question summary > .neural-card-title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .neural-stage.neural-ready .brain-fold { stroke-dashoffset: 0; }
  .brain-packet { display: none; }
  .brain-active-halo { opacity: .09; }
  .neural-card::before { transform: none; }
}
