/* ==========================================================
   Pineapple Talent — design system
   Palette from brand logo: navy + metallic gold + teal accent
   Type: Fraunces (display) + Inter (body)
   ========================================================== */

:root {
  --ink: #10263a;          /* near-black navy, dark sections */
  --ink-soft: #1a3450;
  --accent: #2e7ca3;       /* teal, from logo tagline */
  --navy: #1d3a54;         /* wordmark navy */
  --gold: #c99e45;         /* metallic gold, from logo mark */
  --gold-soft: #dbb45e;
  --paper: #f7f7f4;
  --white: #ffffff;
  --text: #24313c;
  --text-muted: #5c6b77;
  --line: #e3e1da;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(16, 38, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 38, 58, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 38, 58, 0.16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
h4 { font-size: 1.15rem; }

h1, h2, h3 { text-wrap: balance; }

p { margin: 0 0 1em; }

a { color: var(--navy); }

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow { max-width: 820px; }

.center { text-align: center; margin-left: auto; margin-right: auto; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.hero .eyebrow { color: var(--gold); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons: big, obvious, effortless to tap ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 2rem;
  min-height: 48px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(201, 158, 69, 0.35);
}
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 10px 28px rgba(201, 158, 69, 0.45); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--ink-soft); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-nav { background: var(--gold); color: var(--ink); padding: 0.6rem 1.4rem; min-height: 42px; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1;
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.25rem;
}

.logo-img {
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a:not(.btn) {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.75rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
}

.hero-short { padding-bottom: clamp(3rem, 6vw, 4.5rem); }

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(46, 124, 163, 0.45), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 110%, rgba(201, 158, 69, 0.14), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(255,255,255,0.035) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(255,255,255,0.035) 47px 48px);
}

.hero-inner { position: relative; max-width: 880px; }

.hero h1 { color: var(--white); }

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin-bottom: 2.2rem;
}

.hero-link { color: var(--gold); }
.hero-link:hover { color: var(--gold-soft); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin: 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.trust-strip strong { color: var(--gold); font-weight: 700; }

/* ---------- Problem ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.problem-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.problem-card h3 { color: var(--navy); }
.problem-card p { margin: 0; color: var(--text-muted); }

.punchline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--ink);
  text-align: center;
  margin: 0;
}

.punchline strong { color: var(--accent); }

/* ---------- Solution / tracks ---------- */

.solution { background: var(--white); }

.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin: 3rem 0 4.5rem;
}

.track-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.track-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.track-badge {
  align-self: flex-start;
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.4rem;
}

.badge-alt { background: var(--gold); color: var(--ink); }

.track-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex-grow: 1;
}

.track-list li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
}

.track-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  background: var(--gold);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6.5 12 2 7.5l1.5-1.5L6.5 9 12.5 3 14 4.5z" fill="black"/></svg>') center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6.5 12 2 7.5l1.5-1.5L6.5 9 12.5 3 14 4.5z" fill="black"/></svg>') center / contain no-repeat;
  background-color: var(--accent);
}

.track-card .btn { align-self: flex-start; }

/* ---------- Process ---------- */

.process-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0;
  margin: 2.5rem 0 0;
}

.process-steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.process-steps p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

/* ---------- People / portfolio ---------- */

.people { background: var(--paper); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}

.person-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.person-tag {
  display: inline-block;
  background: rgba(29, 58, 84, 0.09);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}

.tag-alt { background: rgba(201, 158, 69, 0.16); color: #8a6a2a; }

.person-years {
  color: var(--gold);
  filter: brightness(0.85);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}

.person-card p:last-child { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Story teaser ---------- */

.story-teaser { background: var(--white); }

/* The founder's story is the emotional heart of the page, so it is set as an
   editorial pull quote: oversized gold quote mark, display serif in italic,
   and a gold highlight on the closing line. */
.story-quote {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(3.5rem, 7vw, 5rem);
  line-height: 0.55;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.story-text {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 auto 2.4rem;
  max-width: 700px;
}

.story-em {
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(to top, rgba(201, 158, 69, 0.35) 0.32em, transparent 0.32em);
}

/* ---------- Testimonials ---------- */

.testimonials { background: var(--white); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.testimonial::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.testimonial p {
  font-size: 1rem;
  color: var(--text);
  flex-grow: 1;
}

.testimonial footer { display: flex; flex-direction: column; gap: 0.15rem; }
.testimonial footer strong { color: var(--ink); font-size: 0.95rem; }
.testimonial footer span { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 2.5rem; }

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 3.4rem 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  min-height: 48px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-list details p {
  padding: 0 1.5rem 1.4rem;
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */

.contact { background: var(--ink); color: rgba(255, 255, 255, 0.85); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact-copy h2 { color: var(--white); }

.contact-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.contact-points li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.8rem;
}

.contact-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.contact-direct a { color: var(--gold); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.contact-form h3 { margin-bottom: 1.4rem; }

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin: 1rem 0 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--text);
}

.contact-form textarea { min-height: 110px; resize: vertical; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form .btn { margin-top: 1.6rem; }

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.9rem 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0a1a29;
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-logo { font-size: 1.2rem; margin-bottom: 0.9rem; color: var(--white); }

.footer-logo .logo-sub { color: var(--gold); }

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
}

.footer-brand p { font-size: 0.92rem; max-width: 320px; }

.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-nav a,
.footer-contact a:not(.btn) {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:not(.btn):hover { color: var(--gold); }

.footer-contact p { margin-bottom: 1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.4rem 0;
  font-size: 0.85rem;
}

/* ---------- Story page ---------- */

.story-block { margin-bottom: 3.5rem; }

.story-block p {
  font-size: 1.08rem;
  color: var(--text);
}

.story-values { margin-bottom: 3.5rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.value-card h3::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--gold);
  margin-top: 0.5rem;
}

.value-card p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

.story-cta {
  background: var(--ink);
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.story-cta h2 { color: var(--white); }
.story-cta p { max-width: 560px; margin: 0 auto 1.8rem; }

/* ---------- Policy pages ---------- */

.policy-group-tabs,
.apply-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.policy-tabs,
.apply-tabs { margin-bottom: clamp(2rem, 5vw, 3rem); }

.policy-group { margin-bottom: 2.4rem; }
.policy-group:last-child { margin-bottom: 0; }

.policy-group-title {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  margin-bottom: 0.15em;
}

.policy-group-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  max-width: 60ch;
}

.policy-tab,
.apply-tab {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  min-height: 44px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.policy-tab:hover,
.apply-tab:hover { border-color: var(--accent); color: var(--accent); }

.policy-tab.active,
.apply-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.policy-tab:focus-visible,
.apply-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Apply page ---------- */

.apply-tabs { justify-content: center; }

.apply-tab { font-size: 1rem; padding: 0.75rem 1.6rem; }

.apply-form {
  max-width: 640px;
  margin: 0 auto;
}

.apply-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

/* Mobile alternative to the pill tabs: a single slim dropdown. Injected by
   JS, so the no-JS page never shows it; hidden on desktop below. */
.policy-select {
  display: none;
  width: 100%;
  min-height: 48px;
  margin-bottom: 1.6rem;
  padding: 0.7rem 2.8rem 0.7rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231d3a54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
}

.policy-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  html.js .policy-tabs { display: none; }
  .policy-select { display: block; }
}

.policy-content { max-width: 70ch; }

.policy-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin: 1.8rem 0;
}

.policy-open { font-weight: 600; }

.policy-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.policy-embed object {
  display: block;
  width: 100%;
  height: min(75vh, 860px);
}

.policy-embed > p {
  margin: 0;
  padding: 1.4rem;
  color: var(--text-muted);
}

.policy {
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
  scroll-margin-top: 100px;
}

.policy h2 { margin-bottom: 0.15em; }

.policy-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

.policy-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-bottom: 2.4rem;
  box-shadow: var(--shadow-sm);
}

.policy-summary h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.policy-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}

.policy-summary li { margin-bottom: 0.55rem; }
.policy-summary li:last-child { margin-bottom: 0; }

.policy h3 { margin-top: 2.2rem; }

.policy p { text-wrap: pretty; }

.policy-cta {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.policy-cta p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Document library ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.docs-section .container { max-width: 900px; }

.docs-toolbar { margin-bottom: 3rem; }

.docs-search input {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.9rem 1.2rem;
  min-height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
}

.docs-search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.docs-hint {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.doc-group { margin-bottom: 3.2rem; }

.doc-group h2 { margin-bottom: 0.2em; font-size: clamp(1.5rem, 3vw, 1.9rem); }

.doc-group-sub {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  max-width: 60ch;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.doc-list li + li { border-top: 1px solid var(--line); }

.doc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.4rem;
  min-height: 52px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}

.doc-row:hover,
.doc-row:focus-visible { background: var(--paper); }

.doc-row:hover .doc-name { color: var(--accent); }

.doc-name {
  font-weight: 600;
  color: var(--navy);
  transition: color 0.15s;
}

.doc-meta {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.docs-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.docs-cta { margin-top: 3rem; }

@media (max-width: 720px) {
  .doc-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}

/* ---------- Scroll-driven cogs ----------
   Injected by JS; sections gain .has-gears so the cogs sit behind the
   content and bleed off the edges without causing horizontal scroll. */

.has-gears {
  position: relative;
  overflow: hidden;
}

.has-gears > .container { position: relative; z-index: 1; }

.gear {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* ---------- Scroll reveal ----------
   Gated behind html.js: content is fully visible without JavaScript. */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .track-card, .person-card { transition: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .problem-grid,
  .track-grid,
  .contact-grid,
  .values-grid { grid-template-columns: 1fr; }

  .people-grid,
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }

  .process-steps { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* Nav collapses earlier than the rest: eight links + the wordmark wrap to a
   second line below ~1060px. */
@media (max-width: 1060px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.28s ease;
    box-shadow: var(--shadow-lg);
  }

  .site-nav.open { transform: translateY(0); }

  .site-nav a:not(.btn) {
    padding: 0.9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn-nav { margin-top: 1rem; padding: 0.9rem 1.4rem; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .people-grid,
  .testimonial-grid { grid-template-columns: 1fr; }

  .hero-ctas .btn { width: 100%; }

  .trust-strip { flex-direction: column; gap: 0.6rem; }

  .contact-form { padding: 1.6rem; }
}
