/* ──────────────────────────────────────────────
   Briscoe Capital — shared styles for subpages
   (About, Criteria, Privacy). The homepage keeps
   its own inline CSS for first-paint speed.
   ────────────────────────────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #15171c;
  --navy-mid: #1c1f26;
  --navy-light: #262a33;
  --orange: #d14a1c;
  --orange-light: #ff8a63;
  --orange-d: #ff6b3d;
  --orange-muted: rgba(255, 107, 61, 0.14);
  --cream: #f2f3f1;
  --cream-dark: #e9eae7;
  --text-dark: #141519;
  --text-mid: #5c5e64;
  --text-light: rgba(255, 255, 255, 0.72);
  --text-white: #ffffff;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
::selection { background: var(--orange); color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }

.skip-link {
  position: absolute; top: -56px; left: 16px; z-index: 300;
  background: var(--navy); color: #fff; padding: 12px 20px;
  font-size: 0.8rem; letter-spacing: 0.06em; text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; }

.label {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange-d);
}

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ── Nav (solid, since subpages have no hero image) ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 0 clamp(24px, 5vw, 80px); height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(21, 23, 28, 0.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; color: var(--text-white); }
.logo-mark { height: 40px; width: auto; flex-shrink: 0; display: block; }
.nav-logo-text {
  display: flex; flex-direction: column; justify-content: center;
  margin-left: 13px; padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.2); line-height: 1;
}
.nav-logo-text strong { font-weight: 600; font-size: 0.86rem; letter-spacing: 0.22em; color: var(--text-white); }
.nav-logo-cap { font-weight: 500; font-size: 0.56rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--orange-d); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-light); text-decoration: none; transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--orange-d); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text-white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--text-white); }
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta {
  font-size: 0.7rem !important; font-weight: 600 !important; letter-spacing: 0.12em !important;
  padding: 10px 26px; background: var(--orange-d); color: var(--navy) !important;
  border-radius: 999px; text-decoration: none; transition: background 0.3s, transform 0.2s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--orange-light); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-white); margin: 5px 0; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: min(320px, 84vw); height: 100dvh; background: var(--navy);
    flex-direction: column; align-items: flex-start; padding: 108px 40px 40px; gap: 28px;
    transition: right 0.45s var(--ease-out); overscroll-behavior: contain;
    box-shadow: -24px 0 60px rgba(0,0,0,0.35);
  }
  .nav-links::before {
    content: ''; position: fixed; inset: 0; z-index: -1;
    background: rgba(8, 9, 12, 0.55); opacity: 0; pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav-links.open { right: 0; }
  .nav-links.open::before { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 0.95rem; padding: 6px 0; }
  .nav-links .nav-cta { margin-top: 10px; }
}

/* ── Page header ── */
.page-head { background: var(--navy); padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 100px); }
.page-head h1 {
  font-family: var(--serif); font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 400;
  line-height: 1.08; letter-spacing: -0.02em; color: var(--text-white); margin: 18px 0 24px;
  max-width: 15ch;
}
.page-head .lede { font-size: 1.08rem; line-height: 1.7; color: var(--text-light); max-width: 620px; }
.page-head .lede + .lede { margin-top: 14px; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 34px;
  background: var(--orange-d); color: var(--navy);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: none; border-radius: 999px; cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--orange-light); transform: translateY(-2px); }
.btn-primary svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px;
  background: transparent; color: var(--text-white);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px;
  transition: border-color 0.3s, background 0.3s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
  background: transparent; color: var(--text-dark);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid rgba(0,0,0,0.2); border-radius: 999px;
  transition: border-color 0.3s, background 0.3s;
}
.btn-outline-dark:hover { border-color: var(--orange); background: var(--orange-muted); }
.page-head-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
@media (max-width: 600px) {
  .page-head-ctas { flex-direction: column; }
  .page-head-ctas a { width: 100%; justify-content: center; }
}

/* ── Prose (privacy page) ── */
.prose { background: var(--cream); padding: clamp(56px, 8vw, 100px) 0 clamp(72px, 10vw, 120px); }
.prose h2 {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400;
  line-height: 1.2; color: var(--text-dark); margin: 48px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1rem; line-height: 1.8; color: var(--text-mid); }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.prose .updated {
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-mid); padding-bottom: 24px; margin-bottom: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* ── Criteria spec sheet (built to be screenshotted and forwarded) ── */
.spec { background: var(--cream); padding: clamp(56px, 8vw, 100px) 0; }
.spec + .spec { padding-top: 0; }
.spec h2 {
  font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 400;
  line-height: 1.18; color: var(--text-dark); margin: 14px 0 8px;
}
.spec-sub { font-size: 1rem; line-height: 1.7; color: var(--text-mid); max-width: 620px; margin-bottom: 40px; }
.spec-sheet {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 40px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px -18px rgba(0,0,0,0.18);
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 22px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.spec-row:last-child { border-bottom: none; padding-bottom: 4px; }
.spec-row:first-child { padding-top: 4px; }
.spec-term {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mid); padding-top: 4px;
}
.spec-val { font-size: 1.02rem; line-height: 1.6; color: var(--text-dark); }
.spec-val strong { font-weight: 600; }
.spec-val .note { display: block; font-size: 0.88rem; line-height: 1.6; color: var(--text-mid); margin-top: 6px; }
@media (max-width: 700px) {
  .spec-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
}

.spec-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: 40px;
}
.spec-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.09); border-radius: 20px;
  padding: clamp(24px, 3vw, 34px);
}
.spec-card h3 {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px;
}
.spec-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.spec-card li {
  position: relative; padding-left: 24px;
  font-size: 0.97rem; line-height: 1.6; color: var(--text-dark);
}
.spec-card li::before {
  content: ''; position: absolute; left: 2px; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}
@media (max-width: 760px) { .spec-cols { grid-template-columns: 1fr; } }

.spec-foot {
  background: var(--navy-mid); padding: clamp(56px, 8vw, 90px) 0; text-align: center;
}
.spec-foot h2 {
  font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 400;
  color: var(--text-white); margin: 14px auto 16px; max-width: 18ch;
}
.spec-foot p { font-size: 1rem; line-height: 1.7; color: var(--text-light); max-width: 520px; margin: 0 auto 32px; }
.spec-foot a.contact-line { color: var(--orange-d); text-decoration: none; }
.spec-foot a.contact-line:hover { text-decoration: underline; }
.spec-foot-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) {
  .spec-foot-ctas { flex-direction: column; }
  .spec-foot-ctas a { width: 100%; justify-content: center; }
}

/* ── Founder bios (About) ── */
.bios { background: var(--cream); padding: clamp(56px, 8vw, 100px) 0; }
.bio {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.bio + .bio { margin-top: clamp(56px, 8vw, 100px); padding-top: clamp(56px, 8vw, 100px); border-top: 1px solid rgba(0,0,0,0.09); }
.bio-photo { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--cream-dark); }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.bio-body h2 {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 400;
  line-height: 1.12; color: var(--text-dark); margin: 12px 0 6px;
}
.bio-role {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 24px; display: block;
}
.bio-body { max-width: 640px; }
.bio-body p { font-size: 1rem; line-height: 1.8; color: var(--text-mid); }
.bio-body p + p { margin-top: 14px; }
.bio-facts { margin-top: 28px; display: flex; flex-direction: column; gap: 0; }
.bio-fact {
  display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 20px; padding: 16px 0; border-top: 1px solid rgba(0,0,0,0.09);
}
.bio-fact:last-child { border-bottom: 1px solid rgba(0,0,0,0.09); }
.bio-fact dt {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mid); padding-top: 3px;
}
.bio-fact dd { font-size: 0.97rem; line-height: 1.6; color: var(--text-dark); }
.bio-links { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .bio { grid-template-columns: 1fr; }
  .bio-photo { max-width: 320px; }
  .bio-fact { grid-template-columns: 1fr; gap: 6px; }
}

/* ── Footer ── */
.footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.06); padding: 48px 0; }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-left { max-width: 480px; }
.footer-left p { font-size: 0.8rem; line-height: 1.6; color: var(--text-light); margin-top: 16px; }
.footer-right { text-align: right; }
.footer-right p { font-size: 0.8rem; color: var(--text-light); line-height: 1.8; }
.footer-right a { color: var(--orange-d); text-decoration: none; transition: opacity 0.3s; }
.footer-right a:hover { opacity: 0.8; }
.footer-nav { margin-top: 6px; }
.footer-nav a { color: var(--text-light) !important; }
.footer-nav a:hover { color: var(--orange-d) !important; opacity: 1; }
.footer-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.06); margin: 24px 0; }
.footer-bottom { font-size: 0.7rem; color: rgba(255,255,255,0.3); width: 100%; text-align: center; }
@media (max-width: 600px) {
  .footer .container { flex-direction: column; text-align: center; }
  .footer-left { display: flex; flex-direction: column; align-items: center; }
  .footer-right { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation: none !important; }
}
