/* ============================================
   Attention Capital — attncap.com
   Terminal-grade institutional aesthetic
   ============================================ */

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

:root {
  --navy: #0A1628;
  --navy-deep: #060F1D;
  --navy-mid: #0E1E36;
  --card: #111D2E;
  --card-border: rgba(255,255,255,0.06);
  --red: #CC0000;
  --white: #F5F5F5;
  --gray: #8B95A5;
  --gray-light: #A0A8B7;
  --gray-dim: rgba(160,168,183,0.4);
  --light-bg: #F0F1F3;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--navy-deep);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; color: var(--white); }
h1 { font-size: 2.75rem; letter-spacing: -0.03em; }
h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section--dark { background: var(--navy); }
.section--darker { background: var(--navy-deep); }
.section--light { background: var(--light-bg); color: #1A1A2E; }
.section--light h2 { color: #1A1A2E; }
.section--light p { color: #444; }

.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 --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,15,29,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; max-width: 1080px; margin: 0 auto; padding: 0 2rem;
}

.nav__logo img { height: 24px; width: auto; opacity: 0.9; }
.nav__logo img:hover { opacity: 1; }
.nav__links { display: flex; gap: 1.75rem; align-items: center; }

.nav__links a {
  color: var(--gray); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s;
}

.nav__links a:hover, .nav__links a.active { color: var(--white); }

.nav__mobile-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}

.nav__mobile-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--gray); margin: 4px 0; transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  background: var(--navy-deep);
  padding: 9rem 0 4.5rem;
  border-bottom: 1px solid var(--card-border);
}

.hero--short { padding: 8rem 0 3rem; }

.hero__label {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  color: var(--red); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1.5rem; display: block;
}

.hero h1 { margin-bottom: 1.5rem; max-width: 720px; }
.hero__subhead {
  color: var(--gray); font-size: 1.0625rem; line-height: 1.75;
  max-width: 580px; margin-bottom: 2.5rem;
}

.hero__cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.625rem 1.5rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.2); color: var(--white); transition: all 0.2s;
  font-family: var(--font);
}

.btn:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn--primary { background: var(--white); color: var(--navy-deep); border-color: var(--white); }
.btn--primary:hover { background: transparent; color: var(--white); }

.hero__secondary { color: var(--gray); font-size: 0.8125rem; font-weight: 500; transition: color 0.2s; }
.hero__secondary:hover { color: var(--white); }

.hero__disclaimer {
  margin-top: 3.5rem; font-size: 0.6875rem; color: var(--gray-dim);
  max-width: 480px; line-height: 1.5;
}

/* --- Section labels --- */
.section__label {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  color: var(--red); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1.25rem; display: block;
}

.section--light .section__label { color: var(--red); }
.section h2 { margin-bottom: 1.25rem; }

.section__body {
  font-size: 1rem; line-height: 1.75; max-width: 620px; color: var(--gray-light);
}

.section--light .section__body { color: #555; }

/* --- Pillars --- */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: 2.5rem; background: var(--card-border);
  border: 1px solid var(--card-border);
}

.pillar-card { background: var(--card); padding: 2rem 1.75rem; }

.pillar-card__number {
  font-family: var(--mono); font-size: 0.6875rem; color: var(--red);
  letter-spacing: 0.1em; margin-bottom: 0.75rem; display: block;
}

.pillar-card h3 { margin-bottom: 0.75rem; font-size: 1.0625rem; }
.pillar-card p { color: var(--gray); font-size: 0.875rem; line-height: 1.65; max-width: none; }

/* --- Two cards --- */
.two-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin-top: 2.5rem; background: var(--card-border);
  border: 1px solid var(--card-border);
}

.info-card { background: var(--card); padding: 2.25rem 2rem; }

.info-card__label {
  font-family: var(--mono); font-size: 0.625rem; font-weight: 500;
  color: var(--gray); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.75rem; display: block;
}

.info-card h3 { margin-bottom: 0.75rem; font-size: 1.0625rem; }
.info-card p { color: var(--gray); font-size: 0.875rem; line-height: 1.65; max-width: none; }

.build-note { margin-top: 2rem; font-size: 0.8125rem; color: var(--gray-dim); font-style: italic; }

/* --- Pullquote --- */
.pullquote {
  border-left: 2px solid var(--red); padding: 1.25rem 0 1.25rem 1.75rem;
  margin: 2.5rem 0; max-width: 540px;
}

.pullquote p { font-size: 1.0625rem; line-height: 1.6; color: var(--white); font-weight: 500; }
.section--light .pullquote p { color: #1A1A2E; }

/* --- About --- */
.about__bio { color: var(--gray-light); font-size: 1rem; line-height: 1.75; max-width: 620px; margin-bottom: 1.25rem; }
.about__career { color: var(--gray); font-size: 0.9375rem; line-height: 1.7; max-width: 620px; margin-bottom: 2rem; }

.about__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.about__links a {
  color: var(--gray); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.02em; transition: color 0.2s;
  border-bottom: 1px solid rgba(160,168,183,0.2); padding-bottom: 2px;
}

.about__links a:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }

/* --- FAQ --- */
.faq-list { max-width: 640px; margin-top: 2rem; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.08); }

.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.25rem 0; font-family: var(--font); font-size: 0.9375rem;
  font-weight: 600; color: #1A1A2E; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; line-height: 1.4;
}

.faq-question::after {
  content: '+'; font-size: 1.125rem; font-weight: 300; color: var(--gray);
  margin-left: 1rem; flex-shrink: 0;
}

.faq-item.open .faq-question::after { content: '\2013'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

.faq-answer__inner {
  padding: 0 0 1.25rem; font-size: 0.875rem; line-height: 1.7; color: #555; max-width: 580px;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* --- Writing --- */
.essay-list { max-width: 680px; margin-top: 2rem; }
.essay-item { padding: 1.25rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.essay-item:first-child { padding-top: 0; }

.essay-title {
  font-size: 1rem; font-weight: 600; color: #1A1A2E; transition: color 0.2s;
  line-height: 1.4; display: inline-block;
}

.essay-title:hover { color: var(--red); }

.essay-date {
  font-family: var(--mono); font-size: 0.6875rem; color: var(--gray);
  margin-top: 0.25rem; letter-spacing: 0.02em;
}

.essay-desc { font-size: 0.875rem; color: #666; line-height: 1.6; margin-top: 0.4rem; }

.essay-fallback {
  padding: 2rem; background: var(--navy); border: 1px solid var(--card-border);
  font-size: 0.875rem; color: var(--gray); margin-top: 2rem;
}

.essay-fallback a { color: var(--white); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.3); }

/* --- Callout --- */
.callout {
  margin-top: 3rem; padding: 1.5rem 1.75rem;
  background: var(--navy); border-left: 2px solid var(--red);
}

.callout__label {
  font-family: var(--mono); font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 0.5rem;
}

.callout p { color: var(--gray); font-size: 0.875rem; line-height: 1.6; }
.callout a { color: var(--white); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.25); transition: border-color 0.2s; }
.callout a:hover { border-color: var(--white); }

/* --- Hero links --- */
.hero__links { display: flex; gap: 1.5rem; margin-top: 1.5rem; }

.hero__links a {
  color: var(--gray); font-size: 0.8125rem; font-weight: 500;
  border-bottom: 1px solid rgba(160,168,183,0.2); padding-bottom: 2px; transition: all 0.2s;
}

.hero__links a:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }

.essay-loading { padding: 2rem 0; color: var(--gray); font-size: 0.875rem; }

/* --- Footer --- */
.site-footer {
  background: var(--navy-deep); padding: 2.5rem 0;
  border-top: 1px solid var(--card-border);
}

.footer__inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap;
}

.footer__logo img { height: 18px; width: auto; opacity: 0.7; }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.footer__links a {
  font-size: 0.75rem; font-weight: 500; color: var(--gray);
  letter-spacing: 0.03em; transition: color 0.2s;
}

.footer__links a:hover { color: var(--white); }

.footer__legal { width: 100%; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--card-border); }
.footer__copyright { font-size: 0.6875rem; color: var(--gray-dim); }

.footer__disclaimer {
  font-size: 0.625rem; color: rgba(160,168,183,0.25); margin-top: 0.375rem;
  line-height: 1.5; max-width: 480px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.375rem; }
  .hero { padding: 7rem 0 3rem; }
  .hero--short { padding: 6.5rem 0 2rem; }
  .pillars { grid-template-columns: 1fr; }
  .two-cards { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .footer__inner { flex-direction: column; }
  .nav__links {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: var(--navy-deep); flex-direction: column; padding: 1.25rem 2rem;
    gap: 0.875rem; border-bottom: 1px solid var(--card-border);
  }
  .nav__links.open { display: flex; }
  .nav__mobile-toggle { display: block; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  h1 { font-size: 1.75rem; }
  .hero__cta { flex-direction: column; align-items: flex-start; }
}
