/* ══ Providentia EWS — public.css ════════════════════════════════════
   Styling for the unauthenticated pages: the public site (home,
   what-we-do, philosophy, about), /login, /reset-password, and 404.
   Composes the canonical tokens from theme.css and the self-hosted
   brand typography from fonts.css. The visual DNA is the approved
   landing reference: midnight ground, ice/steel type, restrained
   electric blue, Cormorant Garamond display + Inter UI.

   Gradients appear ONLY in atmospheric artwork (the hero horizon crop);
   controls, cards, navigation, and text surfaces are flat. */

*{box-sizing:border-box}
html,body{margin:0;padding:0}
[hidden]{display:none !important}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-ui);
  min-height:100vh;
  line-height:1.55;
}
a{color:var(--accent)}
a:hover{text-decoration-thickness:2px}
:focus{outline:none}
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px;border-radius:var(--radius-small)}

.skip-link{
  position:absolute;left:-999px;top:0;
  background:var(--brand-deep);color:var(--on-brand);
  padding:10px 16px;border-radius:0 0 8px 0;
  z-index:1000;font-weight:600;font-size:13px;
}
.skip-link:focus{left:0}

/* Visually hidden, screen-reader-available text (e.g. the wordmark's
   "EWS", whose visual twin is aria-hidden for styling). */
.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;
}

/* ── Header (brand left = home link, nav centered, Sign In right) ── */
.pv-hdr{
  position:relative;
  min-height:104px;
  background:var(--bg);
  border-bottom:1px solid var(--border);
  padding:0 48px;
  display:flex;justify-content:space-between;align-items:center;
  gap:20px;
}
/* The wordmark block is the route home on every public page — no
   separate "Home" nav item exists. */
.pv-brand-link{
  display:flex;align-items:center;gap:16px;
  text-decoration:none;color:inherit;
}
.pv-hdr-brand{display:flex;align-items:center;gap:16px}
/* The vertical blue accent line — protected interface language, shared
   with the authenticated shell. It is not the logo; the Axis is. */
.pv-accent-line{
  width:6px;height:52px;flex-shrink:0;
  background:var(--brand);border-radius:3px;
}
.pv-hdr-text{display:flex;flex-direction:column}
/* Approved wordmark metrics: uppercase Cormorant Garamond 500,
   PROVIDENTIA dominant; EWS open blue text raised into the top third —
   never boxed, outlined, or badged. */
.pv-wordmark{
  font-family:var(--font-display);font-size:32px;font-weight:500;
  line-height:.95;letter-spacing:.16em;text-transform:uppercase;
  margin:0;color:var(--ink);white-space:nowrap;
}
.ews-mark{
  font-family:var(--font-display);font-size:.60em;font-weight:500;
  color:var(--brand);letter-spacing:.08em;
  margin-left:.18em;vertical-align:.28em;
}
.pv-hdr-descriptor{
  font-family:var(--font-ui);font-size:10px;font-weight:500;line-height:1;
  color:var(--ink-secondary);margin:7px 0 0;
  letter-spacing:.24em;text-transform:uppercase;white-space:nowrap;
}

.pv-nav{
  position:absolute;left:50%;transform:translateX(-50%);
  display:flex;gap:34px;
}
.pv-nav a{
  font-size:14.5px;font-weight:500;text-decoration:none;
  color:var(--ink-secondary);padding:6px 2px;
}
.pv-nav a:hover{color:var(--ink)}
.pv-nav a.is-active,
.pv-nav a[aria-current="page"]{color:var(--brand)}

.pv-hdr-actions{display:flex;align-items:center;gap:16px}

/* ── Buttons ──────────────────────────────────────────────────────── */
.pv-btn-primary{
  display:inline-flex;align-items:center;gap:9px;
  background:var(--brand-deep);color:var(--on-brand);
  border:none;border-radius:999px;padding:13px 26px;
  font-size:15px;font-weight:500;text-decoration:none;cursor:pointer;
}
.pv-btn-primary:hover{background:var(--brand-hover)}
.pv-btn-secondary{
  display:inline-flex;align-items:center;gap:9px;
  background:transparent;color:var(--ink);
  border:1px solid var(--border-strong);border-radius:999px;padding:12px 24px;
  font-size:15px;font-weight:500;text-decoration:none;cursor:pointer;
}
.pv-btn-secondary:hover{border-color:var(--ink-muted)}
.pv-btn-small{padding:9px 20px;font-size:13.5px}
.pv-text-link{
  display:inline-flex;align-items:center;gap:7px;
  color:var(--brand);font-size:13.5px;font-weight:500;text-decoration:none;
}
.pv-text-link:hover{text-decoration:underline}

/* ── Hero (home: copy left ~44%, artwork right) ───────────────────── */
.pv-hero{
  position:relative;
  min-height:360px;
  padding:32px 48px 0 56px;
}
.pv-hero-art{
  position:absolute;top:0;right:0;
  width:860px;max-width:62%;height:360px;
  background:url('assets/hero-horizon.webp') right top / contain no-repeat;
  pointer-events:none;
  /* The artwork's own dark backdrop is a near-match for the page
     background, so its rectangular left edge reads as a hard seam.
     Fade that edge into the page instead of cropping or dimming the
     art — percentage-based so it scales with the responsive box.
     Browsers without mask support simply render today's un-faded
     edge (no new artifact). Light theme resets this: there the art
     is a deliberate rounded framed panel, not a floated blend. */
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 18%);
  mask-image:linear-gradient(to right,transparent 0,#000 18%);
}
.pv-hero-copy{position:relative;max-width:44%;z-index:1}
.hero-title{
  font-family:var(--font-display);
  font-size:68px;font-weight:500;line-height:.94;letter-spacing:-.015em;
  margin:0 0 26px;
}
.hero-line-1{color:var(--ink)}
.hero-line-2{color:var(--brand)}
.pv-hero-body{
  font-size:19px;line-height:1.55;color:var(--ink-secondary);
  max-width:455px;margin:0;
}
.pv-hero-actions{display:flex;align-items:center;gap:22px;margin-top:22px;flex-wrap:wrap}

/* ── Home sections (What We Do / How Providentia Thinks / Pathways) ── */
.pv-section{margin:34px 48px 0}
.pv-section-title{
  font-family:var(--font-display);font-size:30px;font-weight:500;
  margin:0 0 8px;
}
.pv-section-lede{
  font-size:15px;color:var(--ink-secondary);margin:0 0 20px;max-width:44em;
}
.pv-section .pv-text-link{margin-top:16px}

.pv-pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.pv-card{
  background:var(--surface-deep);
  border:1px solid var(--border);border-radius:14px;
  padding:26px 24px 22px;
}
.pv-card h3{
  font-family:var(--font-display);font-size:21px;font-weight:500;
  margin:0 0 10px;
}
.pv-card p{font-size:13.5px;color:var(--ink-secondary);margin:0;line-height:1.6}
.pv-card .pv-pillar-n{font-size:13px;font-weight:600;color:var(--brand);margin:0 0 8px}

.pv-principles{display:grid;grid-template-columns:repeat(3,1fr);gap:0}
.pv-principles article{
  padding:4px 24px 0;border-left:1px solid var(--divider-quiet);
}
.pv-principles article:first-child{border-left:none;padding-left:0}
.pv-principles h3{
  font-family:var(--font-display);font-size:20px;font-weight:500;margin:0 0 8px;
}
.pv-principles p{font-size:13.5px;color:var(--ink-secondary);margin:0;line-height:1.6}

/* Pathways: quiet door cards, whole card is the link. */
.pv-doors{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.pv-door{
  display:block;text-decoration:none;
  background:var(--surface-deep);
  border:1px solid var(--border);border-radius:14px;
  padding:22px 22px 18px;
}
.pv-door:hover{border-color:var(--brand-border)}
.pv-door h3{
  font-family:var(--font-display);font-size:19px;font-weight:500;
  color:var(--ink);margin:0 0 8px;
}
.pv-door p{font-size:13px;color:var(--ink-secondary);margin:0 0 12px;line-height:1.55}
.pv-door .pv-door-cue{color:var(--brand);font-size:13px;font-weight:500}

/* ── Interior pages (what-we-do / philosophy / about) ─────────────── */
.pv-page{max-width:880px;margin:0 auto;padding:44px 48px 8px}
.pv-page-title{
  font-family:var(--font-display);font-size:46px;font-weight:500;
  line-height:1.02;letter-spacing:-.01em;margin:0 0 18px;
}
.pv-lede{font-size:18px;line-height:1.6;color:var(--ink-secondary);margin:0;max-width:38em}
.pv-prose{margin-top:40px}
.pv-prose h2{
  font-family:var(--font-display);font-size:27px;font-weight:500;margin:0 0 12px;
}
.pv-prose h3{
  font-family:var(--font-display);font-size:20px;font-weight:500;margin:26px 0 8px;
}
.pv-prose p{font-size:15px;line-height:1.65;color:var(--ink-secondary);margin:0 0 14px;max-width:44em}
.pv-prose .pv-quiet-note{font-size:13px;color:var(--ink-muted)}

.pv-steps{list-style:none;margin:22px 0 0;padding:0;counter-reset:pvstep}
.pv-steps li{
  counter-increment:pvstep;
  position:relative;padding:0 0 20px 52px;
}
.pv-steps li::before{
  content:counter(pvstep,decimal-leading-zero);
  position:absolute;left:0;top:2px;
  font-size:13px;font-weight:600;color:var(--brand);
  letter-spacing:.04em;
}
.pv-steps h3{font-family:var(--font-display);font-size:20px;font-weight:500;margin:0 0 6px}
.pv-steps p{font-size:14px;line-height:1.6;color:var(--ink-secondary);margin:0;max-width:44em}

/* ── The four product questions (what-we-do panel) ────────────────── */
.pv-loop{
  margin:40px 0 0;
  background:var(--surface-deep);
  border:1px solid var(--border);border-radius:14px;
  padding:26px 30px 28px;
}
.pv-loop-title{
  font-family:var(--font-display);font-size:23px;font-weight:500;margin:0;
}
.pv-loop-cols{
  list-style:none;margin:22px 0 0;padding:0;
  display:grid;grid-template-columns:1fr 1fr;gap:22px 0;
}
.pv-loop-cols li{
  display:flex;gap:18px;align-items:flex-start;
  padding:0 22px;border-left:1px solid var(--divider-quiet);
}
.pv-loop-cols li:nth-child(odd){border-left:none;padding-left:0}
.pv-loop-icon{width:64px;height:64px;flex-shrink:0;color:var(--ink);--axis-accent:var(--brand)}
.pv-loop-n{font-size:13px;font-weight:600;color:var(--brand);margin:0 0 4px}
.pv-loop-cols h3{
  font-family:var(--font-display);font-size:20px;font-weight:500;margin:0 0 6px;
}
.pv-loop-cols p{font-size:13px;color:var(--ink-muted);margin:0;line-height:1.5}

/* ── Footer ───────────────────────────────────────────────────────── */
.pv-footer{
  margin-top:44px;
  min-height:76px;
  border-top:1px solid var(--border);
  padding:14px 48px;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
}
.pv-footer-brand{display:flex;align-items:center;gap:11px}
.pv-accent-line-mini{width:4px;height:32px;border-radius:2px}
.pv-wordmark-mini{font-size:16px}
.pv-footer-brand .pv-hdr-descriptor{font-size:7px;margin-top:4px;letter-spacing:.22em}
.pv-footer-nav{display:flex;gap:24px;flex-wrap:wrap}
.pv-footer-nav a{font-size:13px;color:var(--ink-secondary);text-decoration:none}
.pv-footer-nav a:hover{color:var(--ink)}
.pv-footer-legal{font-size:12.5px;color:var(--ink-muted);margin:0}

/* Light theme: the hero crop is dark-baked artwork — it becomes a
   framed image panel instead of a floated blend. Its width is capped
   below the copy column: in dark the overlap hides under the mask
   fade, but a solid framed panel would sit beneath the (dark) copy
   and make it unreadable. */
:root[data-theme="light"] .pv-hero-art{border-radius:14px;background-color:#050A12;background-size:cover;-webkit-mask-image:none;mask-image:none;max-width:53%}

/* ── Auth card (login / reset-password) ───────────────────────────── */
.auth-shell{
  min-height:calc(100vh - 180px);
  display:flex;align-items:center;justify-content:center;
  padding:32px 20px;
}
.auth-card{
  width:100%;max-width:400px;
  background:var(--surface);border:1px solid var(--border);border-radius:14px;
  padding:32px 28px;
}
.auth-card h1{font-family:var(--font-display);font-weight:500;font-size:26px;margin:0 0 4px}
.auth-card .auth-sub{font-size:13.5px;color:var(--ink-muted);margin:0 0 24px}

.field{margin-bottom:16px}
.field label{display:block;font-size:13px;color:var(--ink-secondary);margin-bottom:6px;font-weight:500}
.field input[type="email"],
.field input[type="password"],
.field input[type="text"]{
  width:100%;background:var(--surface-2);border:1px solid var(--border-strong);
  border-radius:var(--radius-control);padding:10px 12px;color:var(--ink);font-size:14px;
}
.field input:focus-visible{border-color:var(--focus-ring)}

.pw-field-wrap{position:relative}
/* .pw-toggle is exclusively the in-field Show/Hide control: it is
   absolutely positioned against .pw-field-wrap. Text links elsewhere in
   the card (Forgot password? / Back to sign in) use .auth-link-btn —
   NEVER .pw-toggle, whose absolute positioning would eject them from
   the card. */
.pw-toggle{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  background:none;border:none;color:var(--ink-muted);font-size:12px;cursor:pointer;
  padding:6px 8px;
}
.pw-toggle:hover{color:var(--ink)}

.auth-submit-btn{
  width:100%;background:var(--brand-deep);color:var(--on-brand);border:none;border-radius:999px;
  padding:12px;font-size:14.5px;font-weight:600;cursor:pointer;margin-top:6px;
}
.auth-submit-btn:hover{background:var(--brand-hover)}
.auth-submit-btn:disabled{opacity:.6;cursor:default;background:var(--brand-deep)}

.auth-links{display:flex;justify-content:space-between;align-items:center;margin-top:16px;font-size:13px}
/* Small in-card text action (Forgot password? / Back to sign in):
   static flow, right-aligned inside the card. */
.auth-link-btn{
  margin-left:auto;
  background:none;border:none;padding:0;
  color:var(--ink-muted);font-size:13px;cursor:pointer;
}
.auth-link-btn:hover{color:var(--ink);text-decoration:underline}
/* Variant for the slot directly beneath the password field. */
.auth-links-tight{margin-top:-6px;margin-bottom:6px}
.auth-provision{
  font-size:12.5px;color:var(--ink-muted);
  margin:18px 0 0;text-align:center;
}

.auth-error{
  background:var(--critical-soft);border:1px solid var(--critical-border);color:var(--critical-text);
  border-radius:var(--radius-control);padding:10px 12px;font-size:13px;margin-bottom:16px;
}
.auth-success{
  background:var(--good-soft);border:1px solid var(--good-border);color:var(--good-text);
  border-radius:var(--radius-control);padding:10px 12px;font-size:13px;margin-bottom:16px;
}

.spinner-sm{
  display:inline-block;width:14px;height:14px;border-radius:50%;
  border:2px solid var(--border-strong);border-top-color:var(--on-brand);
  vertical-align:-2px;margin-right:8px;
}
@media (prefers-reduced-motion: no-preference){
  .spinner-sm{animation:pub-spin .7s linear infinite}
}
@keyframes pub-spin{to{transform:rotate(360deg)}}

/* Header sign-in / escape buttons on the public and auth pages. */
.pv-signin-btn{
  display:inline-block;background:var(--brand-deep);color:var(--on-brand);
  border:none;border-radius:999px;padding:10px 20px;
  font-size:14px;font-weight:500;cursor:pointer;text-decoration:none;
}
.pv-signin-btn:hover{background:var(--brand-hover)}
.pv-signin-quiet{background:transparent;border:1px solid var(--border-strong);color:var(--ink-secondary)}
.pv-signin-quiet:hover{color:var(--ink);border-color:var(--ink-muted);background:transparent}
.pv-hdr-nav{display:flex;align-items:center;gap:12px}

/* ── Responsive (desktop reference controls >=1200px) ─────────────── */
@media (max-width:1199px){
  .pv-hdr{padding:14px 24px 12px;flex-wrap:wrap;min-height:0}
  .pv-nav{position:static;transform:none;order:3;width:100%;justify-content:flex-start;
    gap:22px;margin-top:10px;overflow-x:auto;padding-bottom:2px}
  .pv-hero{padding:32px 24px 0}
  .pv-hero-art{max-width:52%;background-position:right center}
  .pv-hero-copy{max-width:56%}
  .hero-title{font-size:52px}
  .pv-section{margin-left:24px;margin-right:24px}
  .pv-pillars{grid-template-columns:1fr}
  .pv-principles{grid-template-columns:1fr;gap:18px}
  .pv-principles article{border-left:none;padding:0}
  .pv-doors{grid-template-columns:1fr 1fr}
  .pv-page{padding:36px 24px 8px}
  .pv-footer{padding:14px 24px;flex-wrap:wrap}
}
@media (max-width:767px){
  .pv-hdr{padding-left:16px;padding-right:16px}
  .pv-wordmark{font-size:24px}
  .pv-accent-line{height:44px}
  .pv-hero{padding:24px 16px 0}
  .pv-hero-copy{max-width:100%}
  .pv-hero-art{position:static;width:100%;max-width:100%;height:220px;
    background-position:center;margin-top:8px}
  .hero-title{font-size:42px}
  .pv-hero-body{font-size:16.5px}
  .pv-section{margin-left:16px;margin-right:16px}
  .pv-doors{grid-template-columns:1fr}
  .pv-page{padding:28px 16px 8px}
  .pv-page-title{font-size:36px}
  .pv-lede{font-size:16px}
  .pv-loop{padding:20px 18px 22px}
  .pv-loop-cols{grid-template-columns:1fr}
  .pv-loop-cols li{border-left:none;padding:0}
  .pv-footer{flex-direction:column;align-items:flex-start;gap:12px;padding:16px}
}
@media (max-width:389px){
  .pv-hdr-descriptor{display:none}
  .pv-steps li{padding-left:40px}
}


/* ── Operator First — restrained statement band (inside How Providentia thinks) ── */
.pv-operator-first{margin:44px auto 8px;max-width:560px;text-align:center;border-top:1px solid var(--pv-border,#1A2835);padding-top:34px}
.pv-of-eyebrow{font-family:var(--pv-mono,ui-monospace);font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--pv-accent,#1E7BFF);margin:0 0 10px}
.pv-of-line{font-family:var(--pv-display,Georgia,serif);font-size:clamp(19px,2.4vw,24px);color:var(--pv-ink,#F8FAFC);margin:0 0 10px;line-height:1.35}
.pv-of-sub{font-size:13.5px;color:var(--pv-ink2,#B6BDC6);margin:0;line-height:1.6}
