/* BOA — shared stylesheet */

:root {
  /* Palette drawn from the "Fear Is Fuel" book cover: black background,
     cream ink, and a vivid green accent (from the cover's dot-cluster
     cheetah graphic). Variable names kept as-is to avoid touching every
     usage below; only the values changed. */
  --navy-950: #0a0a08;
  --navy-900: #131310;
  --navy-800: #1c1c17;
  --navy-700: #272720;
  --gold: #5cad64;
  --gold-bright: #7ed88a;
  --text: #f3f1e9;
  --text-dim: #a9b3a2;
  --text-faint: #6f7869;
  --border: rgba(95, 173, 100, 0.2);
  --ink: #050504;
  --on-accent: #0a0a08;
  --maxw: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 8, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 2.2875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

nav.main-nav {
  display: flex;
  gap: 32px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav.main-nav a {
  color: var(--text-dim);
  transition: color 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

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

.btn {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--gold);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(92, 173, 100, 0.45);
}

.btn-solid {
  background: var(--gold);
  color: var(--on-accent);
  border-color: var(--gold);
}

.btn-solid:hover {
  background: var(--gold-bright);
}

@media (max-width: 900px) {
  nav.main-nav { display: none; }
}

/* Page transition — full-screen dark cover with a centered gold BOA mark.
   Visible by default (so it's already covering on first paint), JS fades
   it out shortly after load; on internal link clicks JS shows it again,
   holds briefly, then navigates — gives static multi-page navigation a
   single-page-app-style fluid feel. */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0s linear 0s;
}
.page-transition.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.page-transition-mark {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  padding-left: 0.35em;
  color: var(--gold-bright);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.page-transition:not(.is-hidden) .page-transition-mark {
  opacity: 1;
  transform: scale(1);
}

/* Ambient particle field — small drifting green specks across the whole
   page, echoing the dot-cluster cheetah graphic on the book cover.
   Fixed behind all content (negative z-index), non-interactive. Drawn
   and animated by script.js; this is just the layer/positioning. */
.particle-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  pointer-events: none;
}

/* Ambient hero graphic — a soft drifting gold glow plus a dotted grid,
   sitting behind the hero copy. Purely decorative (aria-hidden). */
.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-dotgrid {
  position: absolute;
  top: -30px;
  right: -40px;
  width: 340px;
  height: 340px;
  background-image: radial-gradient(circle, rgba(92, 173, 100, 0.5) 1.3px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, black 0%, transparent 70%);
  mask-image: radial-gradient(circle at 70% 30%, black 0%, transparent 70%);
  opacity: 0.55;
}
.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  top: -170px;
  right: -140px;
  background: radial-gradient(circle, rgba(92, 173, 100, 0.24), transparent 70%);
  filter: blur(6px);
  animation: hero-glow-drift 16s ease-in-out infinite alternate;
}
@keyframes hero-glow-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-46px, 34px) scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
}

/* Scroll reveal — fades/slides content up into place as it enters the
   viewport. Falls back to always-visible if IntersectionObserver or JS
   is unavailable (base state below is visible; JS adds the hidden state). */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * { transition-delay: calc(var(--reveal-i, 0) * 90ms); }

/* Front row / back row layered depth — used to give a 3-up grid a
   focal "hero" card flanked by two supporting cards that sit slightly
   smaller, lower and more muted, like rows receding in a photograph. */
.tier-row {
  align-items: start;
}
.tier-front {
  position: relative;
  z-index: 2;
  background: var(--navy-900);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-top: -14px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(92, 173, 100, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tier-front:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px -18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(92, 173, 100, 0.22);
}
.tier-back {
  position: relative;
  z-index: 1;
  opacity: 0.88;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.tier-back:hover {
  opacity: 1;
  transform: translateY(4px) scale(0.99);
}
@media (max-width: 800px) {
  .tier-front { margin-top: 0; }
  .tier-back { transform: none; }
}

/* Small gold pulse dot next to the active nav item, echoing the source
   inspiration site's active-page marker. */
nav.main-nav a {
  position: relative;
}
nav.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  transform: translateX(-50%);
  animation: nav-dot-pulse 2s ease-in-out infinite;
}
@keyframes nav-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 24px;
  max-width: none;
  width: 100%;
}

/* Kept as an alias so any existing markup using this class still works;
   all h1s are full-width by default now. */
.hero-h1-full {
  max-width: none;
  width: 100%;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 62ch;
  font-weight: 300;
}

.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;
}

/* Typewriter cycle — types out each word, pauses, deletes, moves to the
   next. Blinking cursor is a separate CSS animation so it stays smooth
   even while JS is mid-type/delete. */
.type-cycle-line {
  margin: 18px 0 0;
  min-height: clamp(2.6rem, 5.5vw, 4.4rem);
}
.type-cycle {
  display: inline-block;
  color: var(--gold-bright);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  transition: font-size 0.2s ease;
}
/* "BOA." lands as the punchline of the cycle — shown at 2x size. */
.type-cycle.is-boa {
  font-size: clamp(4.4rem, 10vw, 7.6rem);
}
.type-cycle::after {
  content: "|";
  display: inline-block;
  margin-left: 4px;
  animation: type-cursor-blink 0.9s step-end infinite;
}
@keyframes type-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Sections */
section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

.section-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-label .divider {
  flex: 1;
  height: 1px;
  background: var(--border);
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 28px;
  max-width: none;
  width: 100%;
}

.body-copy {
  color: var(--text-dim);
  font-weight: 300;
  font-size: 1.02rem;
  max-width: 68ch;
}

.body-copy + .body-copy { margin-top: 18px; }

/* Pillars / grid cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 36px;
}

@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.pillar-num {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.pillar h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.pillar p {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 300;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  margin-top: 36px;
}

.team-member {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.team-member:last-child { border-bottom: none; padding-bottom: 0; }

@media (max-width: 700px) {
  .team-member { grid-template-columns: 1fr; }
}

.member-photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(155deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.team-member:hover .member-photo img {
  transform: scale(1.045);
}

.member-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.member-role {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.member-bio {
  color: var(--text-dim);
  font-weight: 300;
  font-size: 0.97rem;
  max-width: 66ch;
}

.read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

@media (max-width: 800px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: left;
  background: var(--navy-900);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
}

.portfolio-card .mark {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.portfolio-card .cat {
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portfolio-card .desc {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.5;
}

/* Five-step doctrine grid */
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .grid-5 { grid-template-columns: 1fr; }
}

.step-letter {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
}

@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.focus-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--navy-900);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.focus-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
}

.focus-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.focus-card .focus-sub {
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.focus-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.9;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 36px;
}

@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr; }
}

.stat-card {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.placeholder-note {
  margin-top: 40px;
  padding: 16px 20px;
  border: 1px dashed var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
  border-radius: var(--radius);
}

/* News list */
.news-list { margin-top: 36px; }

.news-item {
  padding: 28px 20px;
  margin: 0 -20px;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid transparent;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  transition: border-left-color 0.3s ease, background 0.3s ease;
}

.news-item:hover {
  border-left-color: var(--gold);
  background: rgba(92, 173, 100, 0.06);
}

@media (max-width: 600px) {
  .news-item { grid-template-columns: 1fr; }
}

.news-date {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.news-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.news-item p {
  color: var(--text-dim);
  font-weight: 300;
  font-size: 0.95rem;
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 36px;
}

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.info-block { margin-bottom: 28px; }

.info-block .label {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.info-block .value {
  color: var(--text);
  font-size: 1.05rem;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--navy-900);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field textarea { resize: vertical; min-height: 120px; }

/* honeypot field — hidden from real users, visible to bots that fill every field */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.form-status {
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-status.ok { color: #7ed88a; }
.form-status.err { color: #e0847f; }

/* CTA band */
.cta-band {
  padding: 90px 0;
  text-align: center;
  border-bottom: none;
}

.cta-band h2 { margin: 0 auto 28px; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  background: var(--navy-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-grid .logo { margin-bottom: 14px; }

.footer-tagline {
  color: var(--text-faint);
  font-size: 0.9rem;
  font-weight: 300;
  max-width: 32ch;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--gold-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.8rem;
}

.footer-bottom .legal-links { display: flex; gap: 18px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--on-accent);
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}
