/* ═══════════════════════════════════════════
   Brett A. Rose — Personal Site
   Editorial / CTO-level design system
   ═══════════════════════════════════════════ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --text: #f0ede8;
  --text-muted: #8a8780;
  --accent: #c9a96e;               /* WHY: Warm gold — signals authority, legacy, and sophistication without screaming corporate */
  --accent-hover: #dbb97e;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1280px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* --- Navigation --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.4s var(--ease);
}

#navbar.scrolled { padding: 1rem 3rem; }

.logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.3s;
}
.logo:hover { color: var(--accent); }

.nav-inline {
  display: flex;
  gap: 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-inline a {
  position: relative;
  color: var(--text-muted);
  transition: color 0.3s;
}
.nav-inline a:hover,
.nav-inline a.nav-inline-active { color: var(--text); }
.nav-inline a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-inline a:hover::after,
.nav-inline a.nav-inline-active::after { width: 100%; }

/* Hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}
.menu-btn span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.menu-btn.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Overlay nav */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.97);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

.nav-overlay-content {
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
}

.nav-links-big { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 3rem; }
.nav-link-big {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s var(--ease);
  display: inline-block;
}
.nav-link-big:hover,
.nav-link-big.nav-link-active {
  color: var(--text);
  transform: translateX(8px);
}
.nav-link-big::before {
  content: attr(data-num);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-right: 1rem;
  vertical-align: super;
}

.nav-overlay-footer {
  display: flex;
  gap: 3rem;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.nav-footer-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.nav-social { display: flex; gap: 1rem; }
.nav-social a:hover { color: var(--text); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 3rem 4rem;
}

.hero-inner { width: 100%; max-width: var(--max-w); margin: 0 auto; }

.hero-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.line { display: block; overflow: hidden; }
.line-inner {
  display: inline-block;
  animation: slideUp 0.8s var(--ease) both;
}
.line:nth-child(2) .line-inner { animation-delay: 0.15s; }
.line:nth-child(3) .line-inner { animation-delay: 0.3s; }

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  gap: 4rem;
}

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero-intro {
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Ticker --- */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  overflow: hidden;
}
.ticker-track { display: flex; width: max-content; animation: tickerScroll 30s linear infinite; }
.ticker-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  padding-right: 1.5rem;
}
.ticker-sep { color: var(--accent); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Sections --- */
.section {
  padding: 8rem 3rem;
}
.section-dark {
  background: var(--bg-elevated);
}

.section-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
}

.section-label {
  position: sticky;
  top: 8rem;
  align-self: start;
}
.section-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.section-label h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.content-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 2rem;
  color: var(--text);
}

.section-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

/* --- Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.stat-number {
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* --- Client / Info Cards --- */
.clients-grid,
.philanthropy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.client-card,
.phil-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.client-card:hover,
.phil-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.client-card h4,
.phil-card h4 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.client-card p,
.phil-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Pull Quote --- */
.pull-quote {
  border-left: 2px solid var(--accent);
  padding: 1.5rem 0 1.5rem 2rem;
  margin: 3rem 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  max-width: 680px;
}
.pull-quote cite {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-style: normal;
  color: var(--text-muted);
  margin-top: 1rem;
  letter-spacing: 0.04em;
}

/* --- Media List --- */
.media-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2.5rem 0;
}
.media-item {
  display: block;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, padding-left 0.3s var(--ease);
}
.media-item:first-child { border-top: 1px solid var(--border); }
.media-item:hover {
  padding-left: 1rem;
  background: rgba(201,169,110,0.03);
}
.media-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.media-outlet {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.media-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.media-item h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.media-item:hover h4 { color: var(--accent); }
.media-type {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 3px;
}

.media-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.media-note strong { color: var(--text); font-weight: 500; }

/* --- Recognition --- */
.recognition-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
}
.recognition-item {
  display: flex;
  gap: 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.recognition-item:first-child { border-top: 1px solid var(--border); }
.recognition-year {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  min-width: 100px;
  flex-shrink: 0;
  padding-top: 0.2rem;
}
.recognition-item h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.recognition-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- Quote Band --- */
.quote-band {
  background: var(--accent);
  color: var(--bg);
  padding: 5rem 3rem;
  text-align: center;
}
.quote-band-inner {
  max-width: 700px;
  margin: 0 auto;
}
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.quote-band cite {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.footer-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.footer-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section-label {
    position: static;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #navbar { padding: 1rem 1.5rem; }
  .nav-inline { display: none; }
  .menu-btn { display: flex; }

  .hero { padding: 6rem 1.5rem 3rem; }
  .hero-bottom { flex-direction: column; gap: 2rem; }
  .hero-scroll-indicator { display: none; }

  .section { padding: 4rem 1.5rem; }

  .clients-grid,
  .philanthropy-grid {
    grid-template-columns: 1fr;
  }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .recognition-item { flex-direction: column; gap: 0.5rem; }
  .recognition-year { min-width: auto; }

  .footer { padding: 2rem 1.5rem; }
  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }

  .nav-overlay-footer { flex-direction: column; gap: 1.5rem; }

  .quote-band { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 3rem; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-number { font-size: 2rem; }
}
