/* =============================================================================
   POLARIS MANAGEMENT — brand.css  ·  "Institutional Ivory"
   Serious, financial, authoritative. Warm ivory paper, deep navy ink, an
   oxford-blue accent with sparing brass. Editorial serif headlines, hairline
   rules, generous whitespace, restrained motion — no glow, no gradients-as-
   decoration. Self-contained: the site renders fully styled with ONLY this file.
   Deep-navy sections use the `.invert` helper for emphasis/authority.
   ========================================================================== */

:root {
  color-scheme: light only; /* the site is light-only — disable browser auto-dark inversion */

  /* --- Paper / surfaces --- */
  --paper:#FBFAF7;       /* warm ivory page */
  --paper-2:#F4F1E9;     /* alternating section */
  --surface:#FFFFFF;     /* cards */
  --navy:#0E2A47;        /* deep navy feature sections */
  --navy-deep:#0A2038;

  /* --- Ink / text --- */
  --ink:#0E2A47;         /* headings (deep navy) */
  --ink-soft:#1B3A5B;
  --body:#41505F;        /* body copy (slate) */
  --muted:#6E7C8A;
  --faint:#9AA4AE;

  /* --- Accents --- */
  --accent:#1E4D8C;      /* oxford blue — links, CTAs */
  --accent-deep:#163C70;
  --accent-soft:#EAF0F8;
  --brass:#9A7B4F;       /* authority accent (sparing) */
  --brass-deep:#7E6238;
  --brass-soft:#F2ECDF;
  --success:#1E7A52;     /* serious green (money-in) */
  --danger:#B23A3A;

  /* --- Lines --- */
  --line:#E6E1D5;        /* warm hairline */
  --line-strong:#D6CFBE;

  /* --- Per-context (flipped by .invert) --- */
  --heading:var(--ink);
  --text:var(--body);
  --rule:var(--line);
  --card-bg:var(--surface);
  --card-line:var(--line);

  /* --- Type --- */
  --font-serif:"Source Serif 4",Georgia,"Times New Roman",serif;
  --font-sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,monospace;

  /* --- Radius / shadow / motion --- */
  --r-sm:6px; --r:9px; --r-lg:13px; --r-pill:999px;
  --shadow-sm:0 1px 2px rgb(14 42 71 / .06);
  --shadow:0 1px 2px rgb(14 42 71 / .05), 0 10px 28px -14px rgb(14 42 71 / .18);
  --shadow-lg:0 2px 4px rgb(14 42 71 / .06), 0 26px 56px -22px rgb(14 42 71 / .28);
  --ease:cubic-bezier(.22,1,.36,1);
  --gutter:clamp(1.1rem,4vw,2rem);
  --maxw:1140px;
}

/* ----------------------------------------------------------------- reset --- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0; font-family:var(--font-sans);
  color:var(--body); background:var(--paper);
  line-height:1.65; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
::selection{background:var(--accent-soft);color:var(--ink)}
.i{width:1.1em;height:1.1em;flex:none;display:inline-block;vertical-align:middle}
hr{border:0}

/* ----------------------------------------------------------------- layout - */
.bg-space{background:var(--paper)} /* legacy hook — now ivory */
.container{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}
.section{padding-block:clamp(3.5rem,8vw,6.5rem)}
.section--tight{padding-block:clamp(2.25rem,5vw,3.5rem)}
.section--alt{background:var(--paper-2);border-block:1px solid var(--line)}
.stack{display:flex;flex-direction:column}
.grid{display:grid;gap:1.25rem}
@media(min-width:760px){
  .grid-2{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .grid-4{grid-template-columns:repeat(4,1fr)}
}
.center{text-align:center}
.measure{max-width:46rem}.measure-narrow{max-width:38rem}
.mx-auto{margin-inline:auto}
.relative{position:relative}.z1{position:relative;z-index:1}
.divider,.rule{height:1px;background:var(--rule);border:0}

/* --------------------------------------------------------------- type ----- */
.eyebrow{
  display:inline-flex;align-items:center;gap:.6rem;
  font-size:.72rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  color:var(--brass-deep);
}
.eyebrow::before{content:"";width:1.6rem;height:1px;background:var(--brass)}
.invert .eyebrow{color:var(--brass)}
h1,h2,h3,h4{color:var(--heading);line-height:1.12;letter-spacing:-.01em;margin:0;font-weight:600}
.display{font-family:var(--font-serif);font-weight:600;letter-spacing:-.012em;line-height:1.06}
.h-hero{font-size:clamp(2.5rem,6vw,4.4rem)}
.h1{font-size:clamp(2rem,4.2vw,3.1rem)}
.h2{font-size:clamp(1.6rem,3.2vw,2.3rem)}
.h3{font-size:clamp(1.1rem,1.5vw,1.3rem);font-weight:600}
.lead{font-size:clamp(1.05rem,1.4vw,1.24rem);color:var(--text);line-height:1.6}
.muted{color:var(--muted)}.subtle{color:var(--faint)}
.text-accent{color:var(--accent)}
.text-brass{color:var(--brass-deep)}
.serif{font-family:var(--font-serif)}
.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
/* legacy hooks kept neutral so old markup stays legible */
.text-gradient{color:var(--accent)}
.text-star{color:var(--accent)}
.text-gold{color:var(--brass-deep)}

/* --------------------------------------------------------------- buttons -- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  padding:.72rem 1.3rem;border-radius:var(--r-sm);
  font-size:.92rem;font-weight:600;letter-spacing:.005em;cursor:pointer;
  border:1px solid transparent;transition:transform .2s var(--ease),background .2s,border-color .2s,color .2s,box-shadow .2s;
  white-space:nowrap;
}
.btn-primary{background:var(--ink);color:var(--paper);box-shadow:var(--shadow-sm)}
.btn-primary:hover{background:var(--accent-deep);transform:translateY(-1px);box-shadow:var(--shadow)}
.btn-accent{background:var(--accent);color:#fff}
.btn-accent:hover{background:var(--accent-deep);transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--line-strong)}
.btn-ghost:hover{border-color:var(--ink);background:rgb(14 42 71 / .03)}
.invert .btn-primary{background:var(--paper);color:var(--ink)}
.invert .btn-primary:hover{background:#fff}
.invert .btn-ghost{color:var(--paper);border-color:rgb(255 255 255 / .3)}
.invert .btn-ghost:hover{border-color:#fff;background:rgb(255 255 255 / .08)}
.btn-lg{padding:.92rem 1.6rem;font-size:1rem}
.btn-block{width:100%}
.btn .ico{width:1.05em;height:1.05em;transition:transform .2s var(--ease)}
.btn:hover .ico--arrow{transform:translateX(3px)}
.link-arrow{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;color:var(--accent)}
.link-arrow .ico{width:1em;height:1em;transition:transform .2s var(--ease)}
.link-arrow:hover{color:var(--accent-deep)}
.link-arrow:hover .ico{transform:translateX(4px)}

/* --------------------------------------------------------------- pills ---- */
.pill{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.36rem .8rem;border-radius:var(--r-pill);font-size:.78rem;font-weight:600;
  background:var(--surface);border:1px solid var(--line);color:var(--ink-soft);
}
.pill .dot{width:.5rem;height:.5rem;border-radius:50%;background:var(--success)}
.pill-gold{border-color:var(--brass);color:var(--brass-deep);background:var(--brass-soft)}
.pill-gold .dot{background:var(--brass)}
.invert .pill{background:rgb(255 255 255 / .06);border-color:rgb(255 255 255 / .16);color:var(--paper)}

/* --------------------------------------------------------------- cards ---- */
.card{
  position:relative;border-radius:var(--r);padding:1.6rem;
  background:var(--card-bg);border:1px solid var(--card-line);box-shadow:var(--shadow-sm);
  transition:transform .3s var(--ease),border-color .3s,box-shadow .3s;
}
.card:hover{transform:translateY(-3px);border-color:var(--line-strong);box-shadow:var(--shadow)}
.card--glow:hover{border-color:var(--accent)}
.card__icon{
  display:grid;place-items:center;width:2.9rem;height:2.9rem;border-radius:var(--r-sm);
  background:var(--accent-soft);border:1px solid rgb(30 77 140 / .18);color:var(--accent);margin-bottom:1rem;
}
.card__icon svg{width:1.45rem;height:1.45rem}
.card h3{margin-bottom:.5rem;color:var(--heading)}
.card p{color:var(--text);font-size:.96rem;margin:0}
.invert .card{--card-bg:rgb(255 255 255 / .04);--card-line:rgb(255 255 255 / .14)}
.invert .card__icon{background:rgb(255 255 255 / .07);border-color:rgb(255 255 255 / .18);color:var(--brass)}

/* checklist */
.checklist{list-style:none;margin:0;padding:0;display:grid;gap:.7rem}
.checklist li{display:flex;gap:.7rem;align-items:flex-start;color:var(--text);font-size:.97rem}
.checklist .tick{flex:none;width:1.3rem;height:1.3rem;border-radius:50%;display:grid;place-items:center;
  background:var(--accent-soft);color:var(--accent);margin-top:.1rem}
.invert .checklist li{color:var(--text)}
.invert .checklist .tick{background:rgb(255 255 255 / .1);color:var(--brass)}
.checklist .tick svg{width:.82rem;height:.82rem}

/* --------------------------------------------------------------- stats ---- */
.stats{display:grid;gap:1.5rem;grid-template-columns:repeat(2,1fr)}
@media(min-width:760px){.stats{grid-template-columns:repeat(4,1fr)}}
.stat__num{font-family:var(--font-serif);font-weight:600;font-size:clamp(2rem,3.8vw,2.9rem);color:var(--heading);line-height:1;letter-spacing:-.015em}
.stat__num .unit{color:var(--brass-deep)}
.invert .stat__num .unit{color:var(--brass)}
.stat__label{margin-top:.5rem;font-size:.84rem;color:var(--muted);letter-spacing:.01em}
.stat + .stat,.stats > div + div{position:relative}
@media(min-width:760px){.stats > div + div::before{content:"";position:absolute;left:-.75rem;top:.2rem;bottom:.2rem;width:1px;background:var(--rule)}}

/* --------------------------------------------------------------- nav ------ */
.nav{position:sticky;top:0;z-index:50;background:rgb(251 250 247 / .85);backdrop-filter:saturate(120%) blur(10px);transition:box-shadow .3s,border-color .3s}
.nav__inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:74px}
.nav.is-scrolled{box-shadow:0 1px 0 var(--line),var(--shadow-sm)}
.brandmark{display:inline-flex;align-items:center;gap:.7rem;color:var(--ink)}
.brandmark__star{
  width:2.1rem;height:2.1rem;border-radius:7px;display:grid;place-items:center;flex:none;
  background:var(--navy);color:var(--brass);border:1px solid var(--navy-deep);
}
.brandmark__star svg{width:1.2rem;height:1.2rem}
.brandmark__name{font-size:1.02rem;line-height:1;font-weight:600}
.brandmark__name b{font-weight:700}
.brandmark__name span{display:block;font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-top:.22rem;font-weight:600}
.nav__links{display:none;align-items:center;gap:.15rem}
@media(min-width:940px){.nav__links{display:flex}}
.nav__link{padding:.5rem .8rem;border-radius:var(--r-sm);font-size:.92rem;font-weight:500;color:var(--ink-soft);transition:color .2s,background .2s}
.nav__link:hover{color:var(--accent);background:rgb(14 42 71 / .04)}
.nav__cta{display:none}
@media(min-width:940px){.nav__cta{display:inline-flex}}
.nav__burger{display:inline-grid;place-items:center;width:2.6rem;height:2.6rem;border-radius:8px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink)}
@media(min-width:940px){.nav__burger{display:none}}
.mobile-menu{display:none;flex-direction:column;gap:.15rem;padding:1rem var(--gutter) 1.5rem;background:var(--surface);border-bottom:1px solid var(--line)}
.mobile-menu.is-open{display:flex}
.mobile-menu a{padding:.7rem .5rem;border-radius:7px;color:var(--ink-soft);font-weight:500}
.mobile-menu a:hover{background:var(--paper-2);color:var(--accent)}

/* --------------------------------------------------------------- hero ----- */
.hero{position:relative;padding-top:clamp(2.5rem,6vw,4.5rem);padding-bottom:clamp(2.5rem,6vw,5rem)}
.hero__figure{position:absolute;top:50%;right:2%;transform:translateY(-50%);width:min(40vw,440px);pointer-events:none;color:var(--ink);opacity:.92}
@media(max-width:900px){.hero__figure{display:none}}
.compass{width:100%;height:auto}
.compass .ring{fill:none;stroke:var(--ink);stroke-opacity:.16}
.compass .tick{stroke:var(--ink);stroke-opacity:.28}
.compass .star{fill:none;stroke:var(--accent);stroke-opacity:.55;stroke-width:1.2}
.compass .star-fill{fill:var(--brass);fill-opacity:.12}
.compass .core{fill:var(--navy)}
.compass .label{fill:var(--brass-deep);font:600 12px var(--font-mono);letter-spacing:.2em}

/* --------------------------------------------------------------- panels --- */
.panel{border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.panel--alt{background:var(--paper-2)}
.invert{--heading:#F6F2E9;--text:#C5D0DB;--muted:#8FA0AF;--faint:#7E8FA0;--rule:rgb(255 255 255 / .14);--surface:rgb(255 255 255 / .04);--card-bg:rgb(255 255 255 / .04);--card-line:rgb(255 255 255 / .14);--line:rgb(255 255 255 / .14);--line-strong:rgb(255 255 255 / .24)}
.invert{background:var(--navy);color:var(--text)}
.panel.invert{background:var(--navy)}

/* logo strip */
.logos{display:flex;flex-wrap:wrap;align-items:center;gap:2.2rem;justify-content:center}
.logos span{font-weight:600;color:var(--muted);letter-spacing:.02em}

/* --------------------------------------------------------------- footer --- */
.footer{border-top:1px solid var(--line);background:var(--paper-2)}
.footer__grid{display:grid;gap:2.5rem;grid-template-columns:1fr}
@media(min-width:760px){.footer__grid{grid-template-columns:1.6fr 1fr 1fr 1fr}}
.footer h4{color:var(--ink);font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;margin:0 0 1rem;font-weight:700}
.footer a{display:block;color:var(--muted);padding:.3rem 0;font-size:.94rem;transition:color .2s}
.footer a:hover{color:var(--accent)}
.footer__bottom{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;
  padding-block:1.4rem;border-top:1px solid var(--line);color:var(--muted);font-size:.85rem;margin-top:2.5rem}

/* --------------------------------------------------------------- forms ---- */
.field{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem}
.field label{font-size:.82rem;font-weight:600;color:var(--ink-soft)}
.input,.textarea,.select{
  width:100%;padding:.72rem .9rem;border-radius:var(--r-sm);font-size:.95rem;color:var(--ink);
  background:var(--surface);border:1px solid var(--line-strong);transition:border-color .2s,box-shadow .2s;font-family:inherit;
}
.input::placeholder,.textarea::placeholder{color:var(--faint)}
.input:focus,.textarea:focus,.select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.textarea{min-height:7rem;resize:vertical}

/* --------------------------------------------------------- scroll reveal -- */
@keyframes reveal-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
/* CSS fallback: if IntersectionObserver hasn't fired within 1s (e.g. headless screenshot),
   auto-reveal so content is never stuck invisible. JS adds .is-in immediately, cancelling this. */
[data-reveal]{opacity:0;transform:translateY(14px);transition:opacity .7s var(--ease),transform .7s var(--ease);animation:reveal-in .6s 1s var(--ease) both}
[data-reveal].is-in{opacity:1;transform:none;animation:none}
[data-reveal-delay="1"]{transition-delay:.06s}
[data-reveal-delay="2"]{transition-delay:.12s}
[data-reveal-delay="3"]{transition-delay:.18s}
[data-reveal-delay="4"]{transition-delay:.24s}

/* utilities */
.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-12{margin-top:3rem}
.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}
.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}
.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}
.flex-wrap{flex-wrap:wrap}.flex-col{flex-direction:column}
.hide-mobile{display:none}@media(min-width:760px){.hide-mobile{display:initial}}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
  [data-reveal]{opacity:1;transform:none}
}
.reduce-motion [data-reveal]{opacity:1;transform:none}

/* ---------------------------------------------------------- no-js guard --- */
/* The <html> element starts with class="no-js"; main.js (deferred) removes it.
   During the defer gap the page renders with opacity:0 sections — override so
   content is always visible without JS. */
.no-js [data-reveal]{opacity:1;transform:none}

/* ------------------------------------------ homepage below-fold tuning --- */
/* Scoped to .home-below-fold wrapper in index.html so site-wide spacing is
   unchanged. Reduces the oversized vertical padding that makes desktop sections
   read as empty ivory panels. Non-alt sections get a hairline bottom rule so
   each block is visually bounded. */
.home-below-fold .section{padding-block:clamp(2.25rem,5vw,4rem)}
.home-below-fold .section--tight{padding-block:clamp(1.25rem,3vw,2rem)}
.home-below-fold .section:not(.section--alt):not(.section--feature){border-bottom:1px solid var(--line)}

/* Navy feature section — strong visual break in ivory page sequence. */
.section--feature{background:var(--navy);border-block:2px solid var(--navy-deep)}
/* brass-deep (#7E6238) is invisible on navy; promote to lighter brass token */
.invert .text-brass{color:var(--brass)}
