:root {
  color-scheme: light;
  --ref-page: #f4f7fb;
  --ref-paper: #ffffff;
  --ref-ink: #132b46;
  --ref-muted: #586b80;
  --ref-navy: #123c68;
  --ref-blue: #2e659c;
  --ref-blue-soft: #e8f0f8;
  --ref-gold: #d9b158;
  --ref-gold-soft: #eef4f8;
  --ref-gold-ink: #2f6291;
  --ref-line: #ccd8e4;
  --ref-line-strong: #91a9bf;
  --ref-shadow: 0 18px 45px rgba(18, 60, 104, .09);
  --ref-sans: "Roobert", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ref-serif: var(--ref-sans);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-reference-theme="light"]) {
    color-scheme: dark;
    --ref-page: #0d1825;
    --ref-paper: #122235;
    --ref-ink: #eef5fb;
    --ref-muted: #a9bdd0;
    --ref-navy: #d9eaff;
    --ref-blue: #87b8e6;
    --ref-blue-soft: #172f48;
    --ref-gold: #e1bd6e;
    --ref-gold-soft: #244966;
    --ref-gold-ink: #a8c9e6;
    --ref-line: #2d4358;
    --ref-line-strong: #58738d;
    --ref-shadow: 0 20px 50px rgba(0, 0, 0, .28);
  }
}

[data-reference-theme="dark"] {
  color-scheme: dark;
  --ref-page: #0d1825;
  --ref-paper: #122235;
  --ref-ink: #eef5fb;
  --ref-muted: #a9bdd0;
  --ref-navy: #d9eaff;
  --ref-blue: #87b8e6;
  --ref-blue-soft: #172f48;
  --ref-gold: #e1bd6e;
  --ref-gold-soft: #244966;
  --ref-gold-ink: #a8c9e6;
  --ref-line: #2d4358;
  --ref-line-strong: #58738d;
  --ref-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}

@font-face { font-family: "Roobert"; src: url("../assets/fonts/roobert/Roobert-Regular.woff2") format("woff2"); font-display: swap; font-weight: 400; }
@font-face { font-family: "Roobert"; src: url("../assets/fonts/roobert/Roobert-SemiBold.woff2") format("woff2"); font-display: swap; font-weight: 600; }
@font-face { font-family: "Roobert"; src: url("../assets/fonts/roobert/Roobert-Bold.woff2") format("woff2"); font-display: swap; font-weight: 700 900; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--ref-page); color: var(--ref-ink); font: 400 16px/1.55 var(--ref-sans); }
a { color: var(--ref-blue); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; }

.refSkip {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 16px;
  border-radius: 4px;
  background: var(--ref-paper);
  color: var(--ref-ink);
  padding: 10px 14px;
  transition: top .16s ease;
}
.refSkip:focus { top: 12px; outline: 3px solid var(--ref-blue); outline-offset: 2px; }

.refHeader {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--ref-line);
  background: var(--ref-page);
  background: color-mix(in srgb, var(--ref-page) 90%, transparent);
  backdrop-filter: blur(16px);
}
.refHeaderInner, .refWrap { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.refHeaderInner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.refBrand { display: inline-flex; align-items: center; gap: 10px; color: var(--ref-ink); font-weight: 700; text-decoration: none; }
.refBrand svg { width: 34px; height: 34px; flex: none; }
.refBrand b { color: var(--ref-blue); }
.refHeaderActions { display: flex; align-items: center; gap: 10px; }
.refBack, .refTheme {
  min-height: 40px;
  border: 1px solid var(--ref-line);
  border-radius: 999px;
  background: var(--ref-paper);
  color: var(--ref-ink);
  padding: 8px 13px;
  text-decoration: none;
}
.refTheme { display: none; cursor: pointer; }
.reference-enhanced .refTheme { display: block; }
.refBack:hover, .refTheme:hover { border-color: var(--ref-blue); }

.refHero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #315879;
  background: color-mix(in srgb, #0d1a2a 84%, #7fb3ee);
  color: #f4f8fc;
}
.refHero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(128, 176, 218, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 176, 218, .08) 1px, transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(217, 177, 88, .18), transparent 24%);
  background-size: 40px 40px, 40px 40px, auto;
  content: "";
  pointer-events: none;
}
.refHeroInner { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(30px, 3.8vw, 48px); }
.refHeroAside { display: grid; gap: 14px; align-self: end; }
.refFeatureNotice { max-width: 46ch; margin: 0; border-left: 1px solid rgba(217,177,88,.72); background: transparent; color: #b9ccdc; padding: 1px 0 1px 11px; font-size: 11px; line-height: 1.4; }
.refFeatureNotice strong { color: #d9e5ef; font-weight: 600; }
.refKicker { margin: 0 0 14px; color: var(--ref-blue); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.refHero .refKicker { color: #9fc5e6; }
.refHero h1 { max-width: 14ch; margin: 0; font-family: var(--ref-sans); font-size: clamp(40px, 4.6vw, 64px); font-weight: 400; letter-spacing: -.035em; line-height: .98; }
.refHeroLead { max-width: 65ch; margin: 17px 0 0; color: #c7d8e8; font-family: var(--ref-sans); font-size: 16px; font-weight: 400; line-height: 1.6; }
.refHeroPromise { max-width: 66ch; margin: 17px 0 0; border-left: 2px solid #d9b158; padding-left: 16px; color: #f4f8fc; }
.refHeroActions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.refPrimary, .refSecondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  padding: 11px 17px;
  font-weight: 700;
}
.refPrimary { border: 1px solid var(--ref-navy); border-top: 3px solid var(--ref-gold); background: var(--ref-navy); color: var(--ref-paper); text-decoration: none; }
.refPrimary:hover { background: #2f6291; }
.refSecondary { border: 1px solid #6f8ba5; color: #f4f8fc; }
.refStudioNote { max-width: 64ch; margin: 11px 0 0; color: #adc2d5; font-size: 12px; }
.refIncubationCard { border: 1px solid #4d6d8b; border-radius: 6px; background: rgba(255,255,255,.055); padding: 22px; }
.refStateLine { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.refStateLine strong { color: #f4f8fc; }
.refState { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.refState::before { width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; content: ""; }
.refHero .refState.incubating { border-top: 2px solid var(--cw-accent-edge, #c69a48); background: rgba(125,174,224,.13); color: var(--cw-accent-text-on-dark, #a8c9e6); }
.refHero .refState.active { background: rgba(104,202,148,.13); color: #9ee0bb; }
.refIncubationCard p { margin: 14px 0 0; color: #bdcfe0; font-size: 13px; }
.refIncubationCard p + p { border-top: 1px solid rgba(175, 200, 226, .2); padding-top: 14px; }

.refMain { padding-block: clamp(54px, 7vw, 84px); }
.refSectionIntro { max-width: 720px; }
.refSectionIntro h2, .refPromise h2, .refFreshness h2, .refTransition h2 { margin: 0; color: var(--ref-navy); font-family: var(--ref-serif); font-size: clamp(34px, 4.8vw, 54px); font-weight: 540; line-height: 1; }
.refSectionIntro > p:last-child, .refTransition p, .refFreshness p { color: var(--ref-muted); }
.refFamilyGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.refFamily { position: relative; min-height: 210px; border: 1px solid var(--ref-line); border-radius: 6px; background: var(--ref-paper); box-shadow: var(--ref-shadow); padding: 26px; }
.refFamily > span { display: block; color: var(--ref-blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.refFamily h3 { margin: 34px 0 8px; color: var(--ref-navy); font-family: var(--ref-serif); font-size: 29px; font-weight: 560; line-height: 1.08; }
.refFamily p { margin: 0; color: var(--ref-muted); }
.refFamily::after { position: absolute; top: 26px; right: 26px; width: 44px; height: 2px; background: var(--ref-blue); content: ""; }

.refPromise { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); margin-top: clamp(58px, 8vw, 96px); border-top: 1px solid var(--ref-line-strong); padding-top: clamp(48px, 6vw, 72px); }
.refPromiseBody > p { margin-top: 0; color: var(--ref-muted); font-size: 18px; }
.refPromiseBody ul { margin: 24px 0 0; padding-left: 22px; }
.refPromiseBody li + li { margin-top: 12px; }

.refEvidence { margin-top: clamp(58px, 8vw, 96px); border-top: 1px solid var(--ref-line-strong); padding-top: clamp(48px, 6vw, 72px); }
.refEvidenceGrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; margin: 1.5rem 0 0; }
.refEvidenceGrid > div { min-width: 0; border: 1px solid var(--ref-line); border-radius: 6px; background: var(--ref-paper); padding: 1rem; }
.refEvidenceGrid dt { color: var(--ref-navy); font-weight: 800; }
.refEvidenceGrid dd { margin: .45rem 0 0; color: var(--ref-muted); font-size: .85rem; }

.refFreshness { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(28px, 5vw, 58px); align-items: start; margin-top: clamp(58px, 8vw, 96px); border-radius: 8px; background: var(--ref-blue-soft); padding: clamp(28px, 5vw, 52px); }
.refFreshnessMark { display: grid; width: 136px; height: 136px; place-content: center; border: 1px solid var(--ref-line-strong); border-radius: 50%; color: var(--ref-blue); text-align: center; }
.refFreshnessMark span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.refFreshnessMark strong { font-size: 42px; font-weight: 400; line-height: 1; }
.refBoundaryLine { border-left: 3px solid var(--ref-gold); padding-left: 16px; }
.refUpdateLinks { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.refUpdateLinks a { border: 1px solid var(--ref-line); border-radius: 999px; background: var(--ref-paper); padding: 8px 12px; font-size: 13px; font-weight: 700; text-decoration: none; }

.refTransition { display: flex; align-items: center; justify-content: space-between; gap: 36px; margin-top: clamp(58px, 8vw, 96px); border-top: 1px solid var(--ref-line-strong); border-bottom: 1px solid var(--ref-line-strong); padding-block: 42px; }
.refTransition > div { max-width: 720px; }
.refTransition .refPrimary { flex: none; }

.refFooter { border-top: 1px solid var(--ref-line); padding-block: 36px 54px; color: var(--ref-muted); font-size: 13px; }
.refFooterInner { display: flex; justify-content: space-between; gap: 28px; }
.refFooter p { max-width: 76ch; margin: 0; }
.refFooter strong { color: var(--ref-ink); }

:focus-visible { outline: 3px solid var(--ref-blue); outline-offset: 3px; }

@media (max-width: 860px) {
  .refHeroInner, .refPromise { grid-template-columns: 1fr; }
  .refHeroAside { max-width: 640px; }
  .refEvidenceGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refHero h1 { max-width: 15ch; }
  .refIncubationCard { max-width: 640px; }
  .refFreshness { grid-template-columns: 112px minmax(0, 1fr); }
  .refFreshnessMark { width: 104px; height: 104px; }
}

@media (max-width: 660px) {
  .refHeaderInner, .refWrap { width: min(100% - 28px, 1120px); }
  .refHeaderInner { min-height: 64px; }
  .refBrand { font-size: 14px; }
  .refBrand svg { width: 30px; height: 30px; }
  .refBack { display: none; }
  .refHeroInner { padding-block: 34px; }
  .refHero h1 { font-size: clamp(42px, 13vw, 58px); }
  .refFamilyGrid, .refEvidenceGrid { grid-template-columns: 1fr; }
  .refFamily { min-height: 0; }
  .refFreshness { grid-template-columns: 1fr; }
  .refFreshnessMark { width: 88px; height: 88px; }
  .refFreshnessMark strong { font-size: 30px; }
  .refTransition { align-items: flex-start; flex-direction: column; }
  .refTransition .refPrimary { width: 100%; }
  .refFooterInner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .refHeader, .refTheme, .refBack, .refHeroActions, .refUpdateLinks, .refTransition .refPrimary { display: none !important; }
  body { background: #fff; color: #111; }
  .refHero { background: #fff; color: #111; border-bottom: 2px solid #111; }
  .refHero::before { display: none; }
  .refHeroLead, .refHeroPromise, .refStudioNote, .refIncubationCard p { color: #333; }
  .refIncubationCard, .refFamily { border-color: #777; box-shadow: none; }
  .refFreshness { background: #fff; border: 1px solid #777; }
}
