/* Public CAYS website; legacy page and interactive demo use their own styles. */
:root { color-scheme: light; --surface:#fff; --soft:#eaf2fa; --hover:#eef5fb; --ink:#20303c; --muted:#566875; --line:#dbe3e8; --paper:#f5f7f8; --blue:#1267bd; --teal:#087b72; --navy:#182632; font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif; color:var(--ink); background:var(--paper); }
* { box-sizing:border-box; }
html { scroll-padding-top:28px; }
body { margin:0; font-size:16px; line-height:1.65; }
a { color:inherit; text-underline-offset:4px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline:3px solid #b87900; outline-offset:5px; }
p { margin:0 0 1rem; }
h1,h2,h3 { line-height:1.16; letter-spacing:-.035em; margin:0 0 1rem; overflow-wrap:anywhere; }
h1 { font-size:clamp(2.5rem,4vw,3.8rem); }
h2 { font-size:clamp(2rem,3.3vw,2.8rem); }
h3 { font-size:1.35rem; letter-spacing:-.02em; }
.container { width:min(1200px,calc(100% - 96px)); margin-inline:auto; }
.skip-link { position:absolute; top:-100px; left:20px; padding:12px; background:var(--surface); z-index:10; }
.skip-link:focus { top:10px; }
.topbar { background:var(--navy); color:white; }
.header-inner,nav,.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:28px; }
.header-inner { min-height:88px; }
.brand { font-size:1.5rem; font-weight:800; letter-spacing:.14em; text-decoration:none; }
.brand span { display:block; font-size:.65rem; font-weight:450; letter-spacing:.035em; color:#bfced8; }
nav { font-size:.85rem; flex-wrap:wrap; }
nav a { text-decoration:none; padding-block:10px; }
nav a:hover,.text-link:hover { text-decoration:underline; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:16px; min-height:48px; padding:12px 20px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font-size:.9rem; font-weight:650; text-decoration:none; }
.button:hover { background:var(--hover); }
.button.primary { background:var(--blue); border-color:var(--blue); color:white; }
.button.primary:hover { background:#0a549d; }
.hero { display:grid; grid-template-columns:1fr 1.15fr; align-items:center; gap:48px; padding-block:72px 80px; }
.hero > * { min-width:0; }
.eyebrow,.card-label { font-size:.7rem; font-weight:750; letter-spacing:.1em; text-transform:uppercase; color:var(--teal); }
.eyebrow { margin-bottom:18px; }
h1 span { color:var(--blue); }
.lead { font-size:1.12rem; color:var(--muted); margin-top:24px; }
.actions { display:flex; gap:24px; align-items:center; flex-wrap:wrap; margin-block:30px 18px; }
.text-link,.spec-link { color:var(--blue); font-size:.9rem; }
.text-link { font-weight:650; text-decoration:none; }
.spec-link { display:inline-block; margin-top:20px; font-size:.8rem; }
.caption { font-size:.8rem; color:var(--muted); margin-top:18px; }
.hero-shot { margin:0; }
.hero-shot img { display:block; width:100%; height:auto; border-radius:14px 14px 0 0; }
.hero-principle { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:20px; background:var(--navy); color:white; border-radius:0 0 14px 14px; font-size:.8rem; }
.hero-principle [aria-hidden] { transform:rotate(-90deg); color:#8fd8cc; }
.hero-principle strong { color:#8fd8cc; }
.hero-shot figcaption { margin-top:10px; color:var(--muted); font-size:.7rem; }
.hero-shot figcaption span { display:block; font-size:.65rem; }
.section { padding-block:72px; }
.section-white { background:var(--surface); border-block:1px solid var(--line); }
.section-heading { max-width:760px; margin-bottom:36px; }
.section-heading > p:not(.eyebrow) { color:var(--muted); }
.cards,.artifact-grid { display:grid; gap:20px; }
.three,.artifact-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.card,.artifact { padding:28px; border:1px solid var(--line); background:var(--surface); border-radius:12px; }
.card-label { display:block; margin-bottom:20px; }
.card p,.artifact dd { font-size:.9rem; color:var(--muted); margin-bottom:0; }
.artifact { border-top:3px solid var(--teal); }
.artifact dl { margin:24px 0 0; }
.artifact dt { font-size:.75rem; font-weight:700; border-top:1px solid var(--line); padding-top:12px; }
.artifact dd { margin:3px 0 16px; font-size:.8rem; }
.approach-note { border-left:3px solid var(--blue); background:var(--soft); padding:24px 28px; margin-top:28px; border-radius:0 8px 8px 0; }
.approach-note p { color:var(--muted); margin-block:6px 12px; font-size:.9rem; }
.section-dark { background:var(--navy); color:white; }
.section-dark .eyebrow { color:#8fd8cc; }
.learning-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:80px; }
.learning-grid > div > p:not(.eyebrow) { color:#bfced8; font-size:.95rem; }
.learning-loop { border:1px solid #435460; border-radius:12px; padding:28px; }
.learning-loop ul { list-style:none; margin:0; padding:0; }
.learning-loop li { padding:14px 0; border-bottom:1px solid #435460; }
.learning-loop strong,.learning-loop span { display:block; font-size:.85rem; }
.learning-loop span { color:#bfced8; font-size:.8rem; margin-top:4px; }
.learning-loop .loop-note { font-size:.75rem; margin:18px 0 0; }
.product-frame { background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.product-heading { background:var(--navy); color:white; padding:20px 28px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.product-heading span { font-size:.75rem; color:#bfced8; }
.product-frame .cards { gap:0; }
.capability-card { padding:28px; }
.capability-card + .capability-card { border-left:1px solid var(--line); }
.capability-card p { color:var(--muted); font-size:.9rem; }
.capability-card ul { padding:0; margin:24px 0 0; list-style:none; }
.capability-card li { font-size:.85rem; padding:12px 0; border-top:1px solid var(--line); }
.chain-heading { margin-top:42px; margin-bottom:24px; }
.chain-heading h3 { font-size:1.8rem; }
.call-chain { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding:0; margin:24px 0; list-style:none; }
.call-chain li { padding:24px; border:1px solid var(--line); border-top:3px solid var(--blue); border-radius:10px; background:var(--surface); }
.call-chain p { margin:0; font-size:.9rem; color:var(--muted); }
.detail-panel { padding:20px 24px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.detail-panel summary { cursor:pointer; font-size:.9rem; font-weight:650; }
.detail-panel p { margin:16px 0 0; font-size:.9rem; color:var(--muted); }
.tech-status { border-left:3px solid var(--teal); padding:12px 20px; margin-top:24px; }
.closing { display:flex; align-items:center; justify-content:space-between; gap:60px; }
.closing > div:first-child { max-width:650px; }
.closing p:not(.eyebrow) { color:var(--muted); }
.closing .actions { flex-shrink:0; flex-direction:column; align-items:flex-start; }
footer { border-top:1px solid var(--line); background:var(--surface); padding-block:30px; }
footer p,footer a:not(.brand) { font-size:.8rem; color:var(--muted); margin:0; }
footer .attribution { margin:24px auto 0; padding-top:20px; border-top:1px solid var(--line); }
footer .attribution a { font-weight:650; }
footer .footer-contact { display:inline-block; margin-top:12px; }
footer .site-policy { margin:16px auto 0; }
@media (max-width:1050px) {
  .container { width:calc(100% - 56px); }
  .hero { gap:32px; }
  .learning-grid { gap:32px; }
  .header-inner { padding-block:18px; flex-wrap:wrap; }
  .hero-principle { flex-direction:column; align-items:flex-start; }
  .hero-principle [aria-hidden] { transform:none; }
  .three,.artifact-grid { grid-template-columns:1fr; }
  .closing { gap:24px; }
}
@media (max-width:760px) {
  .container { width:calc(100% - 40px); }
  .header-inner { gap:16px; }
  nav { width:100%; gap:8px 20px; justify-content:flex-start; font-size:.8rem; }
  .hero { grid-template-columns:1fr; padding-block:42px 48px; gap:30px; }
  .hero-copy { max-width:620px; }
  .section { padding-block:48px; }
  .two,.learning-grid,.call-chain { grid-template-columns:1fr; }
  .closing,.footer-inner { flex-direction:column; align-items:flex-start; gap:16px; }
  .card,.artifact,.capability-card,.learning-loop { padding:22px; }
  .capability-card + .capability-card { border-left:0; border-top:1px solid var(--line); }
}
@media print {
  .topbar,.actions,.skip-link,.footer-contact { display:none; }
  .container { width:100%; }
  .hero,.section { padding-block:24px; }
  .section-dark { background:var(--surface); color:var(--ink); }
  .section-dark p,.section-dark span { color:var(--muted)!important; }
  .card,.artifact,.learning-loop { break-inside:avoid; }
}

/* Static language navigation: no cookies, browser storage or external service. */
.language-picker { position:relative; flex-shrink:0; font-size:.8rem; z-index:5; }
.language-picker summary { cursor:pointer; border:1px solid #617582; padding:9px 13px; border-radius:7px; color:white; }
.language-picker ul { position:absolute; right:0; top:100%; list-style:none; padding:8px; margin:8px 0 0; min-width:185px; max-height:60vh; overflow-y:auto; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:8px; box-shadow:0 10px 24px #18263225; }
.language-picker a { display:block; padding:8px 12px; border-radius:4px; text-decoration:none; }
.language-picker a:hover,.language-picker a[aria-current="page"] { background:var(--soft); color:var(--blue); }
.header-inner nav { margin-left:auto; }
@media (max-width:1050px) { .header-inner { gap:16px; } .header-inner nav { margin-left:0; } }
@media (max-width:760px) { .language-picker { order:1; margin-left:auto; } .header-inner nav { order:2; } }
@media print { .language-picker { display:none; } }

.logo-wall { display:flex; flex-wrap:wrap; gap:24px; list-style:none; padding:0; margin:30px 0 0; }
.logo-wall li { display:flex; flex-direction:column; justify-content:center; width:min(100%,320px); padding:28px; border:1px solid var(--line); border-radius:10px; }
.logo-wall img { display:block; width:100%; height:85px; object-fit:contain; }
.logo-wall p { margin:20px 0 0; font-size:.8rem; color:var(--muted); }
.endorsement { margin:24px 0 0; padding:24px; border-left:3px solid var(--teal); background:var(--paper); }
.endorsement blockquote { margin:0 0 12px; }
.endorsement figcaption { font-size:.8rem; color:var(--muted); }

/* Follow the system until the visitor chooses a mode; no browser storage. */
@media (prefers-color-scheme:dark) { :root:not([data-theme="light"]) { color-scheme:dark; --ink:#e4edf3; --muted:#b4c3cf; --line:#405461; --paper:#101b24; --surface:#192a36; --soft:#203a4e; --hover:#29475b; --blue:#83bfff; --teal:#80d7c8; --navy:#101e29; } }
:root[data-theme="dark"] { color-scheme:dark; --ink:#e4edf3; --muted:#b4c3cf; --line:#405461; --paper:#101b24; --surface:#192a36; --soft:#203a4e; --hover:#29475b; --blue:#83bfff; --teal:#80d7c8; --navy:#101e29; }
.button.primary { background:#1267bd; border-color:#1267bd; }
.logo-wall img { background:#fff; border-radius:4px; padding:8px; }
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-width:44px; min-height:44px; padding:9px; border:1px solid #617582; border-radius:7px; background:transparent; color:white; font:inherit; cursor:pointer; }
.theme-toggle[hidden] { display:none; }
.theme-toggle:hover { background:#304653; }
.theme-toggle svg { width:20px; height:20px; }
.theme-toggle[aria-pressed="true"] .moon, .theme-toggle[aria-pressed="false"] .sun { display:none; }
@media (max-width:760px) { .theme-toggle { order:1; } }
@media print { :root, :root[data-theme] { color-scheme:light; --ink:#20303c; --muted:#566875; --line:#dbe3e8; --paper:white; --surface:white; --soft:#eaf2fa; --blue:#1267bd; --teal:#087b72; } .theme-toggle { display:none; } }
