/* Fensyx craft layer 0.2.2 — loaded last on the public pages (index, capabilities, ai-deployment, about, terms, privacy, products, tools).
   Keeps the brand teal, the light pages, the system type and every layout; changes component craft only:
   flat buttons (user preference, 2026-11-13), concentric radii (004), type switches (007), one card material with an inset art panel, lift by shadow.
   Removing the <link> restores the previous look. Backup: .studio/backups/site-craft-pre-20261113. */
:root{
  --c-brand:#4BABCC;--c-ink:#173646;--c-text:#4b6470;--c-hair:#0e3a4a14;--c-hair-strong:#0e3a4a24;--c-out:cubic-bezier(.22,1,.36,1);
  /* Card material: white face, top inner glow, hairline ring, two soft drops; hover widens and lowers the drop. */
  --c-card:inset 0 1px 0 #fff,0 0 0 1px var(--c-hair),0 1px 2px #0e3a4a0a,0 14px 32px -18px #0e3a4a29;
  --c-card-hover:inset 0 1px 0 #fff,0 0 0 1px var(--c-hair-strong),0 2px 4px #0e3a4a0f,0 22px 44px -18px #0e3a4a3d;
  --c-panel:linear-gradient(180deg,#f5fafc 0,#eaf5f8 100%);
  /* Flat primary button: one fill per state, no gradient, edge or drop. */
  --c-btn:#138eac;--c-btn-hover:#0f7f9b;--c-btn-down:#0d7189;
}

/* Type switches */
body :is(h1,h2,h3){text-wrap:balance}
body :is(p,li,summary){text-wrap:pretty}
/* Chinese headings break between words, and still break inside a word when a long line would overflow a narrow phone. */
:lang(zh) body :is(h1,h2,h3){word-break:keep-all;overflow-wrap:anywhere}
body :is(a,button,summary,input,select,textarea):focus-visible{outline:2px solid var(--c-brand);outline-offset:3px}

/* Header: readable nav and a real control for language, on every page */
body header nav,body.home-editorial header nav,body:not(.home-editorial) header nav{color:#24414d}
@media(min-width:681px){body header nav,body.home-editorial header nav,body:not(.home-editorial) header nav{font-size:15px}}
body #language,body.home-editorial #language,body:not(.home-editorial) #language{display:inline-flex;align-items:center;justify-content:center;min-width:52px;min-height:36px;padding:0 14px;border:1px solid var(--c-hair-strong);border-radius:18px;background:#fff;color:#1d6f88;font-size:13px;font-weight:600;letter-spacing:.04em;box-shadow:none;transition:border-color 160ms ease-out,background-color 160ms ease-out,transform 120ms var(--c-out)}
@media(hover:hover) and (pointer:fine){body #language:hover,body.home-editorial #language:hover,body:not(.home-editorial) #language:hover{background:#f1f9fb;border-color:#4babcc80;box-shadow:none}}
body #language:active{transform:scale(.97);transition-duration:80ms}

/* Primary buttons everywhere: flat fill, darker on hover, settles in place when pressed */
body .button,body .home-editorial .hero .button,.home-editorial .hero .button,body .product-card a.product-download{
  gap:14px;min-height:46px;padding:0 22px 0 24px;border:0;border-radius:12px;background:var(--c-btn);color:#fff;
  font-size:15.5px;font-weight:600;letter-spacing:.01em;box-shadow:none;filter:none;
  transition:background-color 160ms ease-out,transform 120ms var(--c-out)
}
body .button::after,.home-editorial .hero .button::after{display:none}
body .button>span{transition:transform 160ms var(--c-out)}
@media(hover:hover) and (pointer:fine){
  body .button:hover,.home-editorial .hero .button:hover,body .product-card a.product-download:hover{transform:none;color:#fff;background:var(--c-btn-hover);box-shadow:none;filter:none}
  body .button:hover>span,.home-editorial .hero .button:hover>span{transform:translate(2px,-2px)}
}
body .button:active,.home-editorial .hero .button:active,body .product-card a.product-download:active{transform:scale(.98);background:var(--c-btn-down);transition-duration:80ms}
body .button:disabled,body .button[aria-disabled=true]{opacity:.5}

/* Home hero: the action keeps its scroll reveal, then answers like a button */
.home-editorial .hero .button{min-height:48px;margin-top:36px;font-size:16px;transition:opacity .62s var(--c-out) var(--reveal-delay,0ms),transform 120ms var(--c-out),background-color 160ms ease-out}
.home-editorial .hero .button.reveal.is-visible{transition-delay:0s}
.home-editorial .hero .button>span{font-size:18px;font-weight:400;line-height:1}
.home-editorial .hero .button:active{transition-duration:.62s,80ms,80ms}

/* Home values keep their original open layout: no tiles (user choice, 2026-11-13). */
/* The icons are flat line drawings: no radial glow behind them and no blurred halo or glow when the bulb lights. */
.home-editorial .value-module::before{display:none}
.home-editorial .bulb-halo{display:none}
.home-editorial [data-value=build][aria-pressed=true] .bulb-glass{filter:none}
.home-editorial .about>p:not(.eyebrow){font-size:17px;line-height:1.85;color:var(--c-text)}

/* Cards on the service and product pages share the same material; lift reads from the shadow, never a move */
body :is(.cap-discipline-section .cap-item,#cap-panel-hardware .cap-item,.ai-scene-card,.ai-panel,.ai-scale-grid,.ai-contact-panel,.ai-entry-card,.tool-card){border:0;border-radius:24px;background:#fff;box-shadow:var(--c-card)}
body :is(.cap-discipline-section .cap-item,.ai-scene-card,.ai-panel,.ai-entry-card,.tool-card)::after{display:none}
body :is(.ai-panel,.ai-contact-panel,.ai-entry-card,.tool-card)::before,body .cap-discipline-section .cap-item::before{display:none}
body .private-combination-featured{background:#fff!important}
@media(hover:hover) and (pointer:fine){
  body :is(.cap-discipline-section .cap-item,.ai-scene-card,.private-service-card,.private-combination-grid .ai-panel,.tool-card):hover{transform:none;box-shadow:var(--c-card-hover)}
}
body .cap-discipline-section .cap-item-top>span,body #cap-panel-hardware .cap-item-top>span{border-radius:8px;background:var(--c-panel);box-shadow:inset 0 0 0 1px #0e3a4a0a}
/* Scenario art sits in an inset panel: radius 24 − 8 = 16 */
body .ai-scene,body .ai-scene-card:nth-child(n) .ai-scene{margin:8px;border:0;border-radius:16px;background:var(--c-panel);box-shadow:inset 0 0 0 1px #0e3a4a0a}
body .ai-scene::before{display:none}
/* Demo stages read as the same panel at a larger size */
body .cap-demo{border:0;border-radius:28px;background:var(--c-panel);box-shadow:var(--c-card)}
body .cap-demo-controls button{border-radius:10px}
/* Private cloud deck keeps its motion; only the material changes */
body .private-service-carousel .private-service-card,body .ai-panel.private-service-card{border:0;border-radius:24px;background:#fff;box-shadow:var(--c-card)}
body .private-service-carousel .private-service-card.is-active,body .private-service-carousel.is-deck .private-service-card.is-active{box-shadow:inset 0 1px 0 #fff,0 0 0 1px #4babcc66,0 2px 4px #0e3a4a0f,0 26px 50px -22px #0e3a4a47}
/* Form fields: radius 12 inside a 24 card padded 12+ */
body .ai-contact :is(textarea,input:not([type=checkbox]),select){border-radius:12px}
/* FAQ toggles become calm square-round controls */
body .ai-faq summary::after{border-radius:10px}

/* Footer: one baseline on desktop, a tidy stack on phones */
body .site-footer .footer-email{color:#1d7d97}
@media(max-width:760px){
  body .site-footer{display:grid;grid-template-columns:1fr auto;gap:12px 16px;align-items:center}
  body .site-footer>.brand{grid-column:1}
  body .site-footer>span{grid-column:2;margin:0;text-align:right}
  body .site-footer .footer-information-links{grid-column:1 / -1;justify-content:flex-start;gap:0 22px}
  body .site-footer .footer-contact{grid-column:1}
  body .site-footer>a:last-child{grid-column:2;justify-self:end}
}
@media(prefers-reduced-motion:reduce){
  body .button,body .button>span,body #language{transition:none}
}
