/* V3: Shogun signature, warm palette, harness carousel and controlled motion. */
.brand-wordmark { width: 128px; height: auto; aspect-ratio: 1542 / 376; display: block; mix-blend-mode: lighten; }
.brand-agents { color: var(--gold); font: .75rem/1.2 var(--mono); letter-spacing: .12em; }
.brand { align-items: flex-end; gap: 10px; }
.site-footer .brand-wordmark { width: 160px; }
.site-header::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg,var(--signature),var(--gold)); transform: scaleX(var(--reading-progress,0)); transform-origin: left; pointer-events: none; }
.hero { isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(232,208,136,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(232,208,136,.025) 1px,transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(180deg,transparent,#000 35%,transparent); }
.hero::after { content: ""; position: absolute; top: 0; bottom: 0; width: 32%; left: -35%; z-index: -1; pointer-events: none; background: linear-gradient(90deg,transparent,rgba(208,76,29,.055),transparent); transform: skewX(-15deg); }
.hero h1 .accent { color: var(--signature); }
.tier h3 { color: var(--gold); }
.button-primary { background: #d04d1d; color: #0f0704; font-weight: 700; }
.button-primary:hover { background: #e66532; box-shadow: 0 0 0 4px rgba(208,76,29,.12); }
.tier-pro::before { background: linear-gradient(90deg,var(--signature),var(--gold)); }
.tier-pro { border-color: #ba7944; }
.header-emblem { flex: 1 1 70px; min-width: 54px; align-self: stretch; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.header-shogun { width: 62px; height: 64px; display: block; mix-blend-mode: lighten; filter: drop-shadow(0 0 10px rgba(208,76,29,.18)); }
.header-shogun image { image-rendering: pixelated; }
.header-inner .main-nav { margin-left: 0; flex-shrink: 0; }
.diagram-header { padding-right: 0; }
.diagram-brackets { display: none; }
.hero-diagram h2 { padding-right: 0; }
.hero-diagram .mini-flow { margin-top: 34px; }
.mini-node { position: relative; }
.node-orchestrator { border-color: #b86a39; background: #432419; }
.node-orchestrator::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--signature); border-radius: inherit; pointer-events: none; opacity: .4; }
.connector { background: linear-gradient(180deg,#65432a,var(--gold),#65432a); background-size: 100% 250%; }
.principle-card, .tier, .sample-editor { position: relative; overflow: hidden; }
.principle-card, .tier { transition: transform .25s, border-color .25s, box-shadow .25s; }
.principle-card::after, .tier::after { content: ""; position: absolute; inset: 0; background: radial-gradient(250px circle at var(--pointer-x,50%) var(--pointer-y,0%),rgba(232,208,136,.07),transparent 70%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.principle-card:hover::after, .tier:hover::after { opacity: 1; }
/* A projected circular orbit, rather than a row of information cards. */
.harness-section { background: radial-gradient(ellipse at 50% 58%,rgba(208,76,29,.13),transparent 57%),var(--bg); overflow: clip; }
.harness-heading { align-items: end; margin-bottom: 12px; }
.orbit-hint { display: none; justify-content: flex-end; align-items: center; gap: 12px; color: var(--subtle); font-size: .75rem; }
.orbit-ready .orbit-hint { display: flex; }
.orbit-hint svg { width: 32px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1; }
.harness-carousel { min-width: 0; }
.harness-stage { position: relative; isolation: isolate; }
.harness-track { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; padding: 40px 0; margin: 0; }
.harness-card { min-width: 0; }
.harness-logo-link { display: grid; place-items: center; width: 100%; height: 210px; border-radius: 18px; text-decoration: none; -webkit-user-drag: none; }
.harness-float { display: grid; place-items: center; width: 100%; height: 100%; }
.harness-logo { display: block; width: 100%; height: 100%; max-height: 210px; object-fit: contain; pointer-events: none; -webkit-user-drag: none; filter: drop-shadow(0 12px 25px rgba(0,0,0,.45)); }
.harness-logo[data-brand="kilo"], .harness-logo[data-brand="hermes-agent"], .harness-logo[data-brand="codex"] { width: 190px; max-width: 82%; }
.harness-logo[data-brand="hermes-agent"] { mix-blend-mode: lighten; }
.orbit-floor { display: none; }
.orbit-ready .harness-track { display: block; position: relative; height: clamp(360px,38vw,490px); padding: 0; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; border-radius: 22px; }
.orbit-ready .harness-track.is-dragging { cursor: grabbing; }
.orbit-ready .harness-card { position: absolute; left: 50%; top: 42%; width: clamp(180px,31vw,380px); height: 230px; margin: -115px 0 0; transform-origin: center; will-change: transform; }
.orbit-ready .harness-logo-link { height: 100%; }
.orbit-ready .harness-card[data-front="true"] .harness-logo { filter: drop-shadow(0 20px 26px rgba(0,0,0,.5)) drop-shadow(0 0 30px rgba(232,208,136,.1)); }
.orbit-ready .harness-card:not([data-front="true"]) .harness-logo-link { cursor: pointer; }
.orbit-ready .orbit-floor { display: block; position: absolute; z-index: -1; left: 50%; top: 66%; width: 82%; height: 30%; transform: translate(-50%,-50%); pointer-events: none; background: radial-gradient(ellipse,rgba(208,76,29,.11),transparent 68%); }
.orbit-ring { position: absolute; inset: 0; border: 1px solid rgba(232,208,136,.22); border-radius: 50%; box-shadow: 0 1px 22px rgba(208,76,29,.15),inset 0 -1px 12px rgba(208,76,29,.1); }
.orbit-ring-outer::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(208,76,29,.13); }
.orbit-ring-inner { inset: 13% 12%; border-style: dashed; border-color: rgba(232,208,136,.1); }
.orbit-axis { position: absolute; top: 50%; left: -8%; right: -8%; height: 1px; background: linear-gradient(90deg,transparent,rgba(232,208,136,.1),transparent); }
.harness-controls { display: none; }
.orbit-ready .harness-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-top: 8px; }
.orbit-selection { display: flex; align-items: center; gap: 18px; font-size: .9375rem; }
.orbit-counter { font-size: .75rem; color: var(--gold); white-space: nowrap; }
.orbit-dots { display: flex; align-items: center; gap: 0; }
.orbit-dot { display: grid; place-items: center; width: 30px; height: 44px; padding: 0; border: 0; background: transparent; }
.orbit-dot span { display: block; width: 5px; height: 5px; border-radius: 50%; background: #98785b; transition: width .2s,background .2s; }
.orbit-dot[aria-current] span { width: 24px; border-radius: 5px; background: var(--gold); box-shadow: 0 0 12px rgba(232,208,136,.25); }
.carousel-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.carousel-pause, .carousel-direction { width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(36,19,12,.65); color: var(--gold); }
.carousel-pause:hover, .carousel-direction:hover { background: #492514; border-color: var(--gold); }
.carousel-direction svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.orbit-pause-icon { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.carousel-pause[aria-pressed="true"] .orbit-pause-icon { width: 0; height: 0; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; margin-left: 3px; }
.orbit-note { margin-top: 22px; color: var(--subtle); font-size: .75rem; }
.motion-toggle { display: none; align-items: center; gap: 9px; padding: 8px 0; min-height: 44px; background: none; border: 0; color: var(--gold); font-size: .8125rem; text-align: left; }
.enhanced .motion-toggle { display: inline-flex; }
.motion-symbol { width: 10px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.motion-toggle[aria-pressed="true"] .motion-symbol { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid currentColor; border-right: 0; }
.motion-toggle:disabled { opacity: 1; color: var(--subtle); }
.footer-bottom { flex-wrap: wrap; }
.legal-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; color: var(--muted); font-size: .875rem; }
.legal-links a { padding-block: 7px; text-underline-offset: 4px; }
.legal-links a:hover { color: var(--gold); }
.legal-page .container { max-width: 900px; }
.legal-page .header-actions { margin-left: auto; }
.legal-main { padding-block: 54px 80px; }
.legal-back { display: inline-block; margin-bottom: 42px; color: var(--gold); text-underline-offset: 4px; }
.legal-page h1 { font-size: clamp(2rem,5vw,3.6rem); line-height: 1.12; letter-spacing: -.04em; margin-top: 14px; }
.legal-intro { margin-top: 24px; font-size: 1.0625rem; color: var(--muted); max-width: 720px; }
.legal-section { margin-top: 42px; border-top: 1px solid var(--line); padding-top: 26px; }
.legal-section h2 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 16px; }
.legal-section p, .legal-paragraph { color: var(--muted); line-height: 1.8; }
.legal-section p + p, .legal-paragraph { margin-top: 18px; }
.legal-section a, .legal-paragraph a { color: var(--gold); text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal-page .footer-bottom .legal-links { margin-top: 0; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: no-preference) {
  .orbit-ready .harness-float { animation: harness-float 6s ease-in-out infinite; }
  .harness-card:nth-child(2n) .harness-float { animation-delay: -2s; }
  .harness-card:nth-child(3n) .harness-float { animation-delay: -4s; }
  .harness-carousel[data-autoplay="paused"] .harness-float { animation-play-state: paused; }
  .hero::after { animation: ambient-sweep 14s linear infinite; }
  .hero h1 > span { animation: signature-enter .75s both cubic-bezier(.16,1,.3,1); }
  .hero h1 > span:nth-child(2) { animation-delay: .08s; }
  .hero h1 > span:nth-child(3) { animation-delay: .17s; }
  .node-orchestrator::after { animation: architecture-breathe 4s ease-in-out infinite; }
  .connector { animation: connector-light 3.2s linear infinite; }
  .motion-ready .in-view { animation: section-enter .65s both cubic-bezier(.16,1,.3,1); animation-delay: var(--reveal-delay,0ms); }
  .detail-enter { animation: detail-enter .3s ease-out both; }
  @media (hover: hover) { .principle-card:hover, .tier:hover { transform: translateY(-4px); border-color: #b5844d; box-shadow: 0 18px 36px rgba(15,7,4,.35); } }
  @keyframes signature-enter { from { opacity: 0; transform: translateY(18px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes section-enter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes detail-enter { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes architecture-breathe { 0%,100% { opacity: .25; box-shadow: 0 0 0 0 rgba(208,76,29,0); } 50% { opacity: .85; box-shadow: 0 0 18px 0 rgba(208,76,29,.1); } }
  @keyframes connector-light { from { background-position: 0 100%; } to { background-position: 0 -150%; } }
  @keyframes ambient-sweep { 0% { left: -35%; } 70%,100% { left: 135%; } }
  @keyframes harness-float { 0%,100% { transform: translateY(7px) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
}
@media (max-width: 1150px) { .main-nav { gap: 19px; } .brand-wordmark { width: 116px; } .header-inner { gap: 18px; } .header-shogun { width: 54px; height: 58px; } }
@media (max-width: 940px) { .brand-wordmark { width: 128px; } .header-inner { gap: 0; } .header-emblem { min-width: 48px; } }
@media (max-width: 720px) {
  .brand-wordmark { width: 114px; }
  .brand-agents { font-size: .75rem; letter-spacing: .08em; }
  .brand { gap: 7px; }
  .menu-toggle { width: 46px; padding: 0; justify-content: center; }
  .menu-toggle > span:first-child { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .menu-open .menu-icon { border-color: transparent; }
  .menu-open .menu-icon::before { content: ""; position: absolute; width: 16px; height: 1px; background: currentColor; left: 0; top: 4px; transform: rotate(45deg); }
  .menu-open .menu-icon::after { width: 16px; transform: rotate(-45deg); }
  .header-shogun { width: 44px; height: 48px; }
  .harness-track { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .harness-heading { gap: 14px; }
  .orbit-hint { justify-content: flex-start; }
  .orbit-ready .harness-track { height: 340px; }
  .orbit-ready .harness-card { width: clamp(160px,52vw,280px); height: 190px; margin-top: -95px; }
  .harness-logo { max-height: 165px; }
  .harness-logo[data-brand="kilo"], .harness-logo[data-brand="hermes-agent"], .harness-logo[data-brand="codex"] { width: 150px; }
  .orbit-ready .harness-controls { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .orbit-selection { gap: 10px; font-size: .8125rem; }
  .orbit-dots { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .orbit-ready .orbit-floor { width: 90%; height: 27%; }
  .site-footer .brand-wordmark { width: 145px; }
}
@media (max-width: 380px) {
  .brand-wordmark { width: 76px; }
  .brand-agents { font-size: .625rem; }
  .header-emblem { min-width: 38px; }
  .header-shogun { width: 36px; height: 42px; }
  .orbit-selection { flex-direction: column; align-items: flex-start; gap: 0; }
  .carousel-buttons { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .brand-wordmark, .header-shogun { mix-blend-mode: normal; }
  .orbit-ready .harness-track { display: grid; grid-template-columns: repeat(2,1fr); height: auto; overflow: visible; }
  .orbit-ready .harness-card { position: static; width: auto; height: 180px; margin: 0; transform: none !important; opacity: 1 !important; filter: none !important; break-inside: avoid; }
  .harness-logo { filter: brightness(0) !important; mix-blend-mode: normal; }
  .harness-controls, .motion-toggle, .orbit-floor, .orbit-hint { display: none !important; }
  .hero::before, .hero::after, .site-header::after { display: none; }
}
