/*
 KLARA FOUNDRY — Midnight V7 / Professional Polish (private exploratory derivative)
 CSS-only refinement. Original seven published release files are preserved separately,
 including all navigation destinations, exact copy, and historical mixed-script glyphs.
 This CSS is an overlay: remove the additional link to restore the original presentation.
 Colors remain in the source's navy / cyan / lilac / soft coral family.
*/
:root{
 --kp-ink:#f7f8ff;
 --kp-cyan:#74dce9;
 --kp-violet:#b6a0e6;
 --kp-peach:#f19b91;
 --kp-border:rgba(151,175,222,.44);
}
html{scroll-padding-top:24px}
body{
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
 font-kerning:normal;
 text-rendering:optimizeLegibility;
 -webkit-font-smoothing:antialiased;
}
a,button{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid #79ebf4;outline-offset:4px}
.site-header{gap:26px}
.brand{flex-shrink:0}
.brand .glyph{font-kerning:normal;letter-spacing:.005em}
.brand-sub{color:#d6dfef;letter-spacing:.25em}
.top-nav{align-items:center}
.top-nav a{
 font-size:13px;
 letter-spacing:.005em;
 font-weight:650;
 color:#e6ecf8;
 text-underline-offset:7px;
 text-decoration-thickness:1px;
 transition:color .2s ease;
}
.top-nav a:hover{color:#8ceaf0;text-decoration:underline}
.header-cta{
 font-size:11.5px;
 border-color:#7487a9;
 min-height:44px;
 display:inline-flex;
 align-items:center;
 background:rgba(18,28,54,.32);
 color:#f8f9ff;
 transition:background-color .2s ease,border-color .2s ease;
}
.header-cta:hover{background:rgba(45,61,100,.55);border-color:#9bb4d4}
/* Controlled atmosphere. No image, new visual motif, or hero source replacement. */
.hero::after{
 content:"";
 pointer-events:none;
 position:absolute;
 inset:0;
 z-index:-1;
 background:
  radial-gradient(ellipse 26% 42% at 84% 47%,rgba(100,94,178,.12),transparent 90%),
  radial-gradient(ellipse 23% 33% at 18% 60%,rgba(31,122,155,.065),transparent 89%);
}
.hero h1{letter-spacing:-.053em;font-weight:650;line-height:1.07;text-wrap:balance}
.hero h1 em{font-weight:400;letter-spacing:-.042em;
 background-image:linear-gradient(95deg,#6ce1ec 0%,#afa5e9 49%,#ee9b93 100%)}
.hero-summary{
 max-width:700px;
 color:#e4ebfc;
 font-size:clamp(17px,1.48vw,20px);
 line-height:1.57;
 text-wrap:pretty;
}
.hero-stage{color:#ccd8ee;font-size:14px;line-height:1.55;max-width:700px}
.hero-stage strong{color:#f9fbff}
.hero-actions{gap:12px;margin-top:24px}
.hero-actions a{font-size:12.5px;min-height:46px}
.primary-action{
 box-shadow:0 5px 20px rgba(22,127,177,.16);
 transition:box-shadow .2s ease,transform .2s ease,filter .2s ease;
}
.primary-action:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(29,153,182,.20);filter:saturate(1.06)}
.secondary-action{border-color:#788ab5;transition:background-color .2s ease,border-color .2s ease}
.secondary-action:hover{background:rgba(55,75,118,.28);border-color:#a0b2d8}
.choice-prompt{color:#cbd8ed;letter-spacing:.22em}
.choice{
 border-color:var(--kp-border);
 background:linear-gradient(155deg,rgba(31,46,83,.66),rgba(16,29,58,.77));
 box-shadow:0 10px 23px rgba(1,8,24,.18);
 backdrop-filter:blur(7px);
 -webkit-backdrop-filter:blur(7px);
 transition:transform .2s ease,border-color .2s ease,background-color .2s ease;
}
.choice:hover{transform:translateY(-2px);border-color:#8b9fc8}
.choice-icon{color:#79e1ed}
.choice:nth-child(3) .choice-icon{color:#efaaa1}
.choice-arrow{color:#b6cae6}
.footer{border-top:1px solid rgba(132,159,199,.19)}
/* Subpages retain their established section order, cards, and source color hierarchy. */
.detail-main .section{scroll-margin-top:20px}
.detail-main .section p,.detail-main .section li{line-height:1.66}
.detail-main .text-link{text-underline-offset:5px}
.detail-main .page-end-nav a{transition:border-color .2s ease,background-color .2s ease}
.detail-main .page-end-nav a:hover{background:#203753;border-color:#83a7c2}
@media(max-width:1150px){
 .top-nav a{font-size:12px}
 .header-cta{font-size:11px}
}
@media(max-width:800px){
 .top-nav,.header-cta{display:none}
 .site-header{height:72px}
 .menu-button{
  width:46px;height:46px;
  background:rgba(23,35,67,.82);
  border:1px solid #8198bd;
  border-radius:13px;
 }
 .menu-button span{background:#edf7ff}
 .mobile-nav{
  top:98px;
  background:#111e39;
  border-color:#657da4;
  box-shadow:0 20px 40px rgba(0,0,0,.38);
 }
 .mobile-nav a{color:#f4f7ff;border-bottom-color:#344965;font-size:14px;min-height:44px}
 .mobile-nav a:hover,.mobile-nav a:focus-visible{background:#273b5d}
 .hero::after{opacity:.62}
 .hero h1{letter-spacing:-.045em}
 .hero-stage{font-size:13px}
 .choice{min-height:56px}
}
/* Readability outranks fitting every destination inside one short viewport. */
@media(max-width:520px){
 .site-header{padding:8px 20px}
 .brand .glyph{font-size:28px}
 .brand-sub{font-size:9px;letter-spacing:.22em}
 .hero,.hero-shell{min-height:0}
 .hero-shell{
  padding:126px 18px 42px;
  min-height:100svh;
  justify-content:flex-start;
 }
 .hero-top{margin:0 auto 35px;max-width:100%}
 .hero .eyebrow{font-size:10px;line-height:1.45;letter-spacing:.15em;margin:0}
 .hero h1{font-size:clamp(33px,9.3vw,43px);line-height:1.08;margin:16px 0 16px}
 .hero-summary{font-size:15px;line-height:1.5;max-width:370px;margin-bottom:12px}
 .hero-stage{font-size:12.5px;line-height:1.5;max-width:365px}
 .hero-actions{margin-top:23px;gap:11px;flex-direction:column;align-items:center}
 .hero-actions a{font-size:12.5px;min-height:46px;padding:10px 18px;max-width:100%}
 .hero-bottom{margin-top:0;transform:none}
 .choice-prompt{font-size:10px;line-height:1.45;letter-spacing:.21em;margin-bottom:14px}
 .choice-grid{gap:9px}
 .choice{min-height:55px;border-radius:13px;padding:12px 15px;gap:12px;font-size:14px}
 .choice-icon{font-size:20px}
 .choice-arrow{font-size:15px}
 .footer p,.footer a{font-size:13px}
 .detail-main .section{padding-inline:20px}
}
@media(max-width:375px){
 .site-header{padding:8px 17px}
 .hero-shell{padding:116px 16px 40px;min-height:100svh}
 .hero .eyebrow{font-size:9.5px;letter-spacing:.12em}
 .hero h1{font-size:clamp(30px,9.4vw,35px);margin:13px 0 14px}
 .hero-summary{font-size:14px;line-height:1.48;margin-bottom:11px}
 .hero-stage{font-size:12px;line-height:1.47}
 .hero-top{margin-bottom:30px}
 .hero-actions{margin-top:18px;gap:9px}
 .hero-actions a{font-size:12px;min-height:44px}
 .choice{font-size:13.5px;min-height:53px}
 .choice-prompt{font-size:9.5px}
}
/* Override V7's extreme 320×700 compression without changing content or link order. */
@media(max-width:375px) and (max-height:750px){
 .hero,.hero-shell{min-height:0}
 .hero-shell{padding:116px 16px 40px;min-height:100svh;justify-content:flex-start}
 .hero-top{margin:0 auto 30px}
 .hero .eyebrow{font-size:9.5px;letter-spacing:.12em;line-height:1.45;margin:0}
 .hero h1{font-size:clamp(30px,9.4vw,35px);line-height:1.08;margin:13px 0 14px}
 .hero-summary{font-size:14px;line-height:1.48;margin-bottom:11px}
 .hero-stage{font-size:12px;line-height:1.47}
 .hero-actions{margin-top:18px;gap:9px}
 .hero-actions a{font-size:12px;min-height:44px;padding:10px 16px}
 .hero-bottom{margin-top:0;transform:none}
 .choice-prompt{font-size:9.5px;letter-spacing:.19em;margin-bottom:13px}
 .choice-grid{gap:9px}
 .choice{font-size:13.5px;min-height:53px;padding:10px 13px;gap:10px}
 .choice-icon{font-size:18px}
}
@media(prefers-reduced-motion:reduce){
 .primary-action,.secondary-action,.top-nav a,.header-cta,.choice,.detail-main .page-end-nav a{transition:none!important}
 .primary-action:hover,.choice:hover{transform:none}
}
