/* ============================================================
   Calden Private Markets — styles.css
   Tokens per design/DESIGN-SYSTEM.md. No frameworks, no CDNs.
   ============================================================ */

/* ---------- Fonts (self-hosted, GDPR-safe) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --ink:    #0A0E16;
  --ink-2:  #101725;
  --ice:    #EEF2F5;
  --paper:  #F5F7F8;
  --steel:  #8A97A8;
  --frost:  #B9CBD8;
  --accent: #3E7BFA;      /* on dark backgrounds */
  --accent-deep: #2557C9; /* accent for light backgrounds + hover fills (AA-safe) */
  --error:  #D97B7B;
  --line-d: rgba(138, 151, 168, 0.22);   /* hairline on dark */
  --line-l: rgba(10, 14, 22, 0.14);      /* hairline on light */
  --sans: 'Archivo', 'Helvetica Neue', sans-serif;
  --mono: 'Plex Mono', 'SFMono-Regular', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --pad-section: clamp(6rem, 14vh, 11rem);
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --w-max: 1240px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth; scrollbar-color: #1D2739 var(--ink);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;   /* iOS: no landscape text inflation */
  -webkit-tap-highlight-color: transparent;                  /* iOS/Android: no grey tap flash */
}
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #1D2739; border-radius: 6px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: #2A3650; }
body {
  font-family: var(--sans);
  font-weight: 380;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ice);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--ice); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Skip link (visible on keyboard focus only) */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 70;
  background: var(--ice); color: var(--ink); padding: 0.7rem 1.2rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Short compliance line for utility pages */
.page-disclaimer { margin-top: 2.4rem; font-size: 0.7rem; line-height: 1.7; color: var(--steel); max-width: 46ch; }
.err-page .page-disclaimer { margin-left: auto; margin-right: auto; }

/* Film grain over everything, barely there */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none;
  width: 200%; height: 200%; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- Type utilities ---------- */
.label {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel);
  display: flex; align-items: center; gap: 1rem;
}
.label::after { content: ''; height: 1px; width: 4rem; background: currentColor; opacity: 0.4; }
h1, h2, h3 { font-weight: 640; letter-spacing: -0.015em; line-height: 1.04; text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-stretch: 108%; }
h3 { font-size: 1.25rem; line-height: 1.3; font-stretch: 105%; }
.mono { font-family: var(--mono); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--w-max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
section { position: relative; }
.section-pad { padding-top: var(--pad-section); padding-bottom: var(--pad-section); }
.light { background: var(--paper); color: var(--ink); }
.light .label { color: rgba(10, 14, 22, 0.62); }

/* ---------- Reveal animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.fade { opacity: 0; animation: fadeInUp 0.9s var(--ease) forwards; }
.d1 { animation-delay: 0.10s; } .d2 { animation-delay: 0.20s; }
.d3 { animation-delay: 0.30s; } .d4 { animation-delay: 0.40s; }
.d5 { animation-delay: 0.50s; } .d6 { animation-delay: 0.60s; }
.reveal { opacity: 0; transform: translateY(14px); filter: blur(3px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.dl-2 { transition-delay: 0.12s; } .reveal.dl-3 { transition-delay: 0.24s; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-d);
}
.nav-inner {
  max-width: var(--w-max); margin: 0 auto;
  padding: 1.1rem var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; line-height: 1; }
.brand-mark { display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 0.28rem; }

/* ---------- Mark assembly: order forms, the point resolves last ---------- */
.brand-mark path, .brand-mark circle { transform-box: view-box; transform-origin: 60px 59px; }
@keyframes markSeat    { from { opacity: 0; transform: rotate(-14deg) scale(0.82); } to { opacity: 1; transform: none; } }
@keyframes markSeatAlt { from { opacity: 0; transform: rotate(14deg)  scale(0.82); } to { opacity: 1; transform: none; } }
@keyframes markPoint   { from { opacity: 0; transform: scale(0.2); }                 to { opacity: 1; transform: none; } }

/* Nav: subtle single-load seat */
.nav .brand-mark path   { animation: markSeat 0.7s var(--ease) both; animation-delay: 0.35s; }
.nav .brand-mark circle { animation: markPoint 0.5s var(--ease) both; animation-delay: 0.72s; }

/* Access page: ceremonial converge — the mark is the arrival */
.login-card .brand { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.login-card .brand-mark { width: 60px; height: 60px; }
.login-card .brand-mark path:nth-of-type(1) { animation: markSeat    0.75s var(--ease) both; animation-delay: 0.20s; }
.login-card .brand-mark path:nth-of-type(2) { animation: markSeatAlt 0.75s var(--ease) both; animation-delay: 0.34s; }
.login-card .brand-mark path:nth-of-type(3) { animation: markSeat    0.75s var(--ease) both; animation-delay: 0.48s; }
.login-card .brand-mark circle              { animation: markPoint   0.60s var(--ease) both; animation-delay: 0.74s; }

@media (prefers-reduced-motion: reduce) {
  .nav .brand-mark path, .nav .brand-mark circle,
  .login-card .brand-mark path, .login-card .brand-mark circle {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}
.brand-name { font-weight: 780; font-stretch: 122%; font-size: 1.18rem; letter-spacing: 0.16em; }
.brand-sub { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.42em; color: var(--steel); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a:not(.nav-login) {
  font-size: 0.9rem; font-weight: 480; letter-spacing: 0.02em;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size 0.35s var(--ease);
  padding-bottom: 3px;
}
.nav-links a:not(.nav-login):hover { background-size: 100% 1px; }
.nav-login {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--frost); border: 1px solid var(--line-d); padding: 0.72rem 1.1rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-login:hover { border-color: var(--frost); color: var(--ice); }

/* Burger (mobile) */
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; z-index: 55; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ice); margin: 6px 0; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 0.6rem;
  padding: 0 var(--pad-x);
  opacity: 0; visibility: hidden; pointer-events: none;
  overscroll-behavior: contain;   /* no scroll-chaining to the page behind the open menu */
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.4s var(--ease), visibility 0s; }
.mobile-menu a { font-size: 2.4rem; font-weight: 700; font-stretch: 112%; padding: 0.5rem 0; border-bottom: 1px solid var(--line-d); }
.mobile-menu .nav-login { font-size: 0.8rem; border: 0; padding: 1.4rem 0 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; animation: heroSettle 4.5s var(--ease) both; }
@keyframes heroSettle { from { transform: scale(1.045); } to { transform: scale(1); } }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 18% 100%, rgba(10, 14, 22, 0.92) 0%, rgba(10, 14, 22, 0.35) 55%, transparent 100%),
    linear-gradient(180deg, rgba(10, 14, 22, 0.55) 0%, rgba(10, 14, 22, 0.12) 35%, rgba(10, 14, 22, 0.82) 100%);
}
.hero-inner { width: 100%; padding-top: 7.5rem; padding-bottom: clamp(5rem, 11vh, 8rem); }
.hero .label { margin-bottom: 2rem; color: var(--frost); }
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.hero h1 .thin { font-weight: 240; font-stretch: 100%; display: block; }
.hero h1 .heavy { font-weight: 800; font-stretch: 122%; display: block; }
.hero-sub { margin-top: 2.2rem; max-width: 46ch; color: var(--frost); font-size: 1.06rem; }
.hero-cta { margin-top: 3rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--line-d);
}
.hero-meta-inner {
  max-width: var(--w-max); margin: 0 auto; padding: 0.95rem var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--steel);
}
.scroll-hint { display: flex; align-items: center; gap: 0.8rem; }
.scroll-hint::after { content: ''; width: 3.4rem; height: 1px; background: var(--steel); transform-origin: left; animation: pulseLine 3.8s var(--ease) infinite; }
@keyframes pulseLine { 0%, 100% { transform: scaleX(0.35); opacity: 0.4; } 50% { transform: scaleX(1); opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.92rem; font-weight: 540; letter-spacing: 0.03em;
  padding: 1rem 1.9rem; cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn-solid { background: var(--ice); color: var(--ink); border: 1px solid var(--ice); }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ice); border: 1px solid var(--line-d); }
.btn-ghost:hover { border-color: var(--frost); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Marquee ---------- */
.marquee-band { border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); padding: 1.6rem 0; overflow: hidden; }
.marquee {
  display: flex; width: max-content; gap: 0;
  animation: slide 42s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee:hover { animation-play-state: paused; }
.marquee span {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--frost);
  white-space: nowrap; padding-right: 1.4rem;
}
.marquee span::after { content: '/'; color: var(--accent); padding-left: 1.4rem; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-note {
  text-align: center; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel);
  padding: 1.1rem var(--pad-x) 0;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(3rem, 7vw, 6.5rem); align-items: center; margin-top: 3.5rem; }
.about-copy h2 { max-width: 16ch; }
.about-copy p { margin-top: 1.6rem; max-width: 54ch; color: rgba(10, 14, 22, 0.78); }
.offer-rows { margin-top: 2.8rem; border-top: 1px solid var(--line-l); }
.offer-row { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line-l); }
.offer-row dt { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); padding-top: 0.25rem; }
.offer-row dd { font-size: 0.98rem; color: rgba(10, 14, 22, 0.78); }
.about-media { position: relative; }
.about-media img { width: 100%; height: auto; }
.about-media picture { position: relative; display: block; }
.about-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease);
}
.about-media video.ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .about-media video { display: none; } }
@media (max-width: 900px) { .about-media video { display: none; } }
.about-media::after {
  content: ''; position: absolute; inset: 0;
  transform: translate(14px, 14px);
  border: 1px solid var(--line-l); z-index: -1;
}
.about-media figcaption {
  margin-top: 0.9rem; font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(10, 14, 22, 0.58);
  display: flex; justify-content: space-between;
}

/* ---------- Approach (ledger rows) ---------- */
.section-tight { padding-top: 0; }
.approach-h { margin-top: 3.5rem; max-width: 14ch; }
.approach-rows { margin-top: 3.5rem; border-top: 1px solid var(--line-l); }
.approach-row {
  display: grid; grid-template-columns: 5rem minmax(13rem, 17rem) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
  padding: 2.6rem 0; border-bottom: 1px solid var(--line-l);
  transition: transform 0.4s var(--ease);
}
.approach-row:hover { transform: translateX(6px); }
.approach-row .num { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; color: rgba(10, 14, 22, 0.58); padding-top: 0.45rem; transition: color 0.3s var(--ease); }
.approach-row:hover .num { color: var(--accent-deep); }
.approach-row h3 { font-size: 1.35rem; }
.approach-row .row-copy { font-size: 0.97rem; color: rgba(10, 14, 22, 0.72); padding-top: 0.2rem; }

/* ---------- Quote band ---------- */
.quote { position: relative; isolation: isolate; text-align: center; }
.quote-bg { position: absolute; inset: 0; z-index: -2; }
.quote-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.quote-veil { position: absolute; inset: 0; z-index: -1; background: rgba(10, 14, 22, 0.82); }
.quote blockquote {
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 300; font-stretch: 104%; line-height: 1.22; letter-spacing: -0.01em;
  max-width: 26ch; margin: 0 auto;
}
.quote blockquote strong { font-weight: 720; font-stretch: 118%; }
.quote cite { display: block; margin-top: 2.4rem; font-family: var(--mono); font-style: normal; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--steel); }

/* ---------- Access / form ---------- */
.access-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(3rem, 7vw, 7rem); margin-top: 3.5rem; }
.access-intro h2 { max-width: 12ch; }
.access-intro p { margin-top: 1.6rem; max-width: 40ch; color: rgba(10, 14, 22, 0.78); }
.access-note { margin-top: 2.4rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(10, 14, 22, 0.58); }
.field { position: relative; margin-bottom: 2.1rem; }
.field label {
  display: block; font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(10, 14, 22, 0.62);
  margin-bottom: 0.55rem; transition: color 0.3s var(--ease);
}
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-l);
  padding: 0.55rem 0; font: inherit; font-size: 1.02rem; color: var(--ink); caret-color: var(--accent-deep);
  border-radius: 0; transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field:focus-within label { color: var(--accent-deep); }
.login-card .field:focus-within label { color: var(--accent); }
.form-btn { background: var(--ink); color: var(--ice); border: 1px solid var(--ink); }
.form-btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.form-ok { display: none; padding: 2rem 0; font-size: 1.1rem; font-weight: 540; }
.form-ok .mono { display: block; margin-top: 0.6rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(10, 14, 22, 0.5); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line-d); }
.footer-mark {
  font-weight: 800; font-stretch: 125%; letter-spacing: 0.06em;
  font-size: clamp(4.5rem, 15vw, 13rem); line-height: 0.8;
  color: var(--ink-2); user-select: none; pointer-events: none;
  transform: translateY(18%);
  text-align: center;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  padding: 4.5rem 0 3rem; border-bottom: 1px solid var(--line-d);
}
.footer-brand p { margin-top: 1rem; font-size: 0.92rem; color: var(--steel); max-width: 26ch; }
.footer .foot-h { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); margin-bottom: 1.2rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.7rem; }
.footer li a { font-size: 0.92rem; color: var(--frost); transition: color 0.3s var(--ease); }
.footer li a:hover { color: var(--ice); }
.disclaimer {
  padding: 2.6rem 0; font-size: 0.78rem; line-height: 1.7; color: var(--steel);
  max-width: 88ch;
}
.footer-base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0 0 2.2rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--steel);
}

/* ---------- Legal / utility pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 9rem var(--pad-x) 6rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-stretch: 112%; font-weight: 720; }
.doc h2 { font-size: 1.35rem; margin-top: 3.2rem; }
.doc p, .doc li { margin-top: 1rem; color: var(--frost); font-size: 0.97rem; }
.doc ul { padding-left: 1.2rem; }
.doc .label { margin: 3rem 0 0.4rem; }
.doc a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.back-link { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.back-link:hover { color: var(--ice); }
.doc-back { margin-bottom: 3rem; }
.doc-copyright { margin-top: 4rem; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--steel); }

/* ---------- Login (members) ---------- */
.login-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 2rem; position: relative; isolation: isolate; }
.login-veil { position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 50% 0%, var(--ink-2) 0%, var(--ink) 70%); }
.login-card { width: 100%; max-width: 380px; }
.login-brand { text-align: center; margin-bottom: 3rem; }
.login-card .field label { color: var(--steel); }
.login-card .field input { color: var(--ice); border-bottom-color: var(--line-d); }
.login-card .field input:focus { border-bottom-color: var(--accent); }
.login-btn { width: 100%; justify-content: center; margin-top: 0.6rem; }
.login-error {
  display: none; margin-top: 1.6rem;
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.7; letter-spacing: 0.04em; color: var(--error);
}
.login-error a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.login-error.show { display: block; animation: fadeInUp 0.4s var(--ease); }
.login-foot { margin-top: 4rem; }

/* Left-aligned "Access" layout (after hq.partners/access) */
.login-left { max-width: 420px; }
.login-left .brand { margin-bottom: 3.5rem; }
.login-private { margin-bottom: 1.4rem; }
.login-h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 760; font-stretch: 118%; letter-spacing: -0.01em; }
.login-lede { margin: 1.2rem 0 3rem; color: var(--steel); font-size: 0.96rem; max-width: 34ch; }
.login-request { margin-top: 2.6rem; font-size: 0.9rem; color: var(--frost); }
.login-request a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.login-request a:hover { color: var(--accent); }

/* ---------- 404 ---------- */
.err-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.err-code { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.3em; color: var(--accent); }
.err-page h1 { font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 760; font-stretch: 120%; margin: 1.2rem 0 2.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .access-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 480px; }
  .approach-row { grid-template-columns: 1fr; gap: 0.55rem; padding: 2rem 0; }
  .approach-row .num { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 3.5rem; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .hero h1 { font-size: clamp(2.2rem, 10.1vw, 3.5rem); }
  .hero-meta-inner span:first-child { display: none; }
  .offer-row { grid-template-columns: 1fr; gap: 0.4rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion: everything off, all visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .marquee { animation: none; flex-wrap: wrap; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .scroll-hint::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
