/* c2 REFRACTION: shell (tokens, header, footer, splash, mark, buttons). Reused by every page. */
:root {
  --pearl: #F6F5F1;
  --pearl-2: #FBFAF7;
  --mist: #ECEEF3;
  --ink: #1D2126;
  --ink-2: #454B53;
  --ink-3: #5A6068;
  --line: rgba(29, 33, 38, .14);
  --cyan: #4FC3E8;
  --violet: #9C7CF4;
  --rose: #E07AB0;
  --amber: #F2C77E;
  --mint: #8FDDBE;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--pearl); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* visually hidden, still read by assistive tech (fix round 1, D13). Pages use this instead of a local copy. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; }
em { font-style: italic; }
.wrap { width: min(1240px, calc(100vw - 48px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 16px; inset-block-start: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.eyebrow { font: 600 12.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 18px; }

/* ---- mark: a clear acrylic disc, Lambda dispersed into channels ---- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; display: block; perspective: 300px; }
.brand-mark svg { width: 100%; height: 100%; display: block; overflow: visible; transition: transform .6s var(--ease); filter: drop-shadow(0 6px 10px rgba(60, 70, 110, .18)); }
.brand:hover .brand-mark svg { transform: rotateY(-18deg) rotateX(8deg); }
.brand-word { font: 400 26px/1 var(--serif); letter-spacing: .2em; }
.brand-word sup { font: 500 10px/1 var(--sans); letter-spacing: 0; vertical-align: super; margin-left: -2px; }
.mk-c { transform: translate(-1.1px, .4px); mix-blend-mode: multiply; opacity: .75; }
.mk-m { transform: translate(1.1px, -.2px); mix-blend-mode: multiply; opacity: .7; }
.mk-sheen { mix-blend-mode: screen; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.btn-ink { background: var(--ink); color: #FBFAF7; box-shadow: 0 10px 24px -12px rgba(29, 33, 38, .6); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(29, 33, 38, .7); }
.btn-glass, .btn-line {
  color: var(--ink); background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 0 0 1px rgba(29, 33, 38, .18), inset 0 1px 0 #fff;
}
.btn-glass:hover, .btn-line:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .9); }

/* ---- header ---- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: rgba(250, 249, 246, .72);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 rgba(29, 33, 38, .06);
}
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { text-decoration: none; font: 500 15px/1 var(--sans); padding: 12px 14px; border-radius: 999px; color: var(--ink); }
.site-nav a:hover { background: rgba(255, 255, 255, .8); }
.site-nav a.pill { box-shadow: inset 0 0 0 1px rgba(29, 33, 38, .18); background: rgba(255, 255, 255, .55); margin-left: 6px; }
/* family accent (Step 0, 11-07): body[data-family] picks the light the remembered-path underline takes.
   Light = rose (2.6:1 on the header ground; amber measures 1.5:1, too faint for a 2 px line). Others keep violet. */
body[data-family="home"], body[data-family="structure"], body[data-family="material"] { --accent: var(--violet); }
body[data-family="light"] { --accent: var(--rose); }
.site-nav a.is-chosen { box-shadow: inset 0 -2px 0 var(--accent, var(--violet)); }

/* ---- footer ---- */
.site-footer { position: relative; z-index: 2; border-top: 1px solid rgba(29, 33, 38, .1); background: rgba(251, 250, 247, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 64px 0 28px; }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.f-brand p { color: var(--ink-2); font-size: 15px; margin: 18px 0 0; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-col a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.f-col a:hover { color: var(--ink); text-decoration: underline; }
.f-h { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.f-legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(29, 33, 38, .1); font-size: 13.5px; color: var(--ink-3); }
.f-legal p { margin: 0; }
.f-disclosure { margin-top: 40px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.f-disclosure p { margin: 0 0 10px; max-width: none; }
.f-disclosure .f-dh { font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.f-disclosure a { color: inherit; text-decoration: underline; }
.concept-flag { font-weight: 600; color: var(--ink); letter-spacing: .04em; }

/* ---- splash ---- */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; overflow: auto; }
.splash[hidden] { display: none; }
/* the splash eases in instead of cutting in over the load moment (David 11-12: "double flashed").
   Fade the frosted layer itself, never .splash (opacity on the parent would make it the backdrop root and the blur
   would pop in at the end); fill "backwards" only, so the .is-leaving transitions still run afterwards. */
.splash::before { animation: splash-fade .9s var(--ease, ease) backwards; }
.splash .splash-in { animation: splash-rise 1s .15s var(--ease, ease) backwards; }
@keyframes splash-fade { from { opacity: 0; } }
@keyframes splash-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .splash::before, .splash .splash-in { animation: none; } }
.splash::before {
  content: ""; position: fixed; inset: 0;
  background: radial-gradient(120vmax 80vmax at 20vw 10vh, rgba(127, 214, 242, .22), transparent 60vmax),
              radial-gradient(100vmax 80vmax at 90vw 90vh, rgba(224, 122, 176, .18), transparent 60vmax),
              rgba(246, 245, 241, .74);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  transition: opacity .7s var(--ease);
}
.splash-door { position: fixed; inset-block: 0; width: 50vw; background: linear-gradient(90deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .5)); pointer-events: none; opacity: 0; }
.door-l { left: 0; border-right: 1px solid rgba(255, 255, 255, .9); }
.door-r { right: 0; transform: scaleX(-1); }
.splash-in { position: relative; width: min(860px, 100vw - 32px); text-align: center; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.splash-x { position: absolute; inset-block-start: -8px; right: 0; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(29, 33, 38, .16); font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; }
.splash-mark { display: block; width: 76px; height: 76px; margin: 0 auto 22px; }
.splash-mark svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 20px rgba(60, 70, 110, .22)); }
.splash h2 { font: 400 clamp(40px, 5.4vw, 68px)/1.02 var(--serif); margin: 0 0 14px; letter-spacing: -.01em; }
.splash-desc { color: var(--ink-2); margin: 0 auto 36px; max-width: 34em; }
.splash-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 8vw, 120px); }
.splash-thread { position: absolute; left: 0; width: 100%; inset-block-start: 52px; height: 40px; overflow: visible; pointer-events: none; }
.choice {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 30px 22px 28px; border: 0; border-radius: var(--r); cursor: pointer; font: inherit; color: var(--ink);
  background: linear-gradient(150deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .45));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 24px 50px -24px rgba(50, 60, 100, .35);
  transition: transform .5s var(--ease), opacity .5s var(--ease), box-shadow .5s var(--ease);
}
.choice:hover { transform: translateY(-4px); }
.choice:focus-visible { outline: 2px solid #6A4CD6; outline-offset: 5px; border-radius: var(--r); }
.c-label { font: 400 32px/1.05 var(--serif); }
.c-sub { font-size: 15px; color: var(--ink-2); }
.splash-skip { margin-top: 30px; background: none; border: 0; font: 500 15px/1 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 14px; min-height: 44px; }
.splash.is-leaving::before { opacity: 0; }
.splash.is-leaving .splash-in { opacity: 0; transform: scale(1.04); }
.splash.is-leaving .splash-door { opacity: 1; transition: transform .9s var(--ease), opacity .9s; }
.splash.is-leaving .door-l { transform: translateX(-50vw); }
.splash.is-leaving .door-r { transform: translateX(50vw) scaleX(-1); }
.splash.pick-a .choice[data-splash-choose="clients"],
.splash.pick-b .choice[data-splash-choose="advisors"] { opacity: .25; transform: translateY(10px) scale(.94); }

@media (max-width: 760px) {
  .site-nav a:not(.pill) { display: none; }
  .site-nav a.pill { padding: 10px 12px; font-size: 13.5px; margin-left: 0; }
  .header-in { min-height: 64px; gap: 10px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-word { font-size: 20px; letter-spacing: .16em; }
  .brand { gap: 8px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .f-legal { flex-direction: column; }
  .splash-pair { grid-template-columns: 1fr; gap: 14px; }
  .splash-thread { display: none; }
  .choice { padding: 20px 18px; }
  .c-label { font-size: 28px; }
  .splash-mark { width: 56px; height: 56px; margin-bottom: 14px; }
  .splash-desc { margin-bottom: 22px; }
  /* tap targets (fix round 1, D13): the HIT AREA grows through an empty, unpainted ::after; the drawn pill, the
     brand and the focus ring keep their boxes. Pills 31 px and the brand 32 px reach 44 px. Footer links sit on a
     34 px pitch (24 px line + 10 px gap), so each takes half of each gap: 34 px, touching, never overlapping
     (44 px would need a 20 px gap, which changes the drawn look: the lead's call). */
  .site-nav a.pill, .brand, .f-col a { position: relative; }
  .site-nav a.pill::after, .brand::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
  .f-col a::after { content: ""; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100vw - 32px); }
  .site-nav { gap: 4px; }
  .site-nav a.pill { padding: 9px 9px; font-size: 12.5px; }
  .brand-word { font-size: 17px; letter-spacing: .12em; }
  .brand { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* splash close moves focus to <main> (tabindex -1, a target, not a control): no ring on the whole page */
main[tabindex="-1"]:focus { outline: none; }
