/* ============================================
   RICHARD B. JAMISON — Biography Page
   Matches OHM Lounge design language
   ============================================ */

*, ::before, ::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Rubik', sans-serif;
  background: #080808;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

:root {
  --gold: #c8a96e;
  --gold-light: #e2c98a;
  --dark: #080808;
  --dark-2: #101010;
  --dark-3: #181818;
  --dark-4: #222;
  --text-muted: #777;
  --border: rgba(255,255,255,0.07);
}

.container {
  max-width: 124rem;
  margin: 0 auto;
  padding: 0 4rem;
}

/* ============ NAV ============ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 2.8rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}
.site-nav.scrolled {
  padding: 1.6rem 4rem;
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2.4rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  text-shadow: 0 0 28px rgba(226, 201, 138, 0.35);
}
.nav-links {
  display: flex;
  gap: 3.6rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: #fff; }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 72rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.32);
  transform: scale(1.04);
  transition: transform 10s ease;
}
.hero:hover .hero-bg { transform: scale(1.0); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    115deg,
    rgba(8,8,8,0.85) 0%,
    rgba(8,8,8,0.4) 50%,
    rgba(8,8,8,0.15) 100%
  ),
  linear-gradient(
    to top,
    rgba(8,8,8,1) 0%,
    rgba(8,8,8,0.5) 30%,
    transparent 70%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 4rem 10rem;
  max-width: 90rem;
}
.hero-eyebrow {
  font-size: 1.1rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeUp 1s 0.4s forwards;
}
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5.5rem, 9vw, 12rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 3.2rem;
  opacity: 0;
  animation: fadeUp 1s 0.6s forwards;
}
.hero-name span {
  display: block;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  font-size: 0.65em;
  letter-spacing: 0;
}
.hero-role {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeUp 1s 0.85s forwards;
}
.role-pill {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding-right: 2.4rem;
  margin-right: 2.4rem;
  border-right: 1px solid rgba(255,255,255,0.2);
  line-height: 1.8;
}
.role-pill:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}
.hero-scroll-cue span {
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.scroll-line {
  width: 1px;
  height: 5.6rem;
  background: linear-gradient(to bottom, rgba(200,169,110,0.7), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(2.8rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ STORY ============ */
.story {
  padding: 15rem 0 12rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.story::before {
  content: 'RBJ';
  position: absolute;
  top: 50%;
  right: -4rem;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 32rem;
  font-weight: 700;
  color: rgba(255,255,255,0.013);
  pointer-events: none;
  line-height: 1;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 42rem;
  gap: 10rem;
  align-items: center;
}
.story-label {
  font-size: 1rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 2rem;
}
.story-heading {
  font-family: 'Playfair Display', serif;
  font-size: 4.4rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 3.6rem;
}
.story-body {
  font-size: 1.95rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.2rem;
}
.story-quote {
  border-left: 2px solid var(--gold);
  padding: 1.6rem 2.4rem;
  margin: 3.6rem 0;
  background: rgba(200,169,110,0.04);
}
.story-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.story-quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}
.story-portrait {
  position: relative;
}
.portrait-frame {
  position: relative;
  overflow: hidden;
  background: var(--dark-3);
}
.portrait-frame::before {
  content: '';
  position: absolute;
  top: -2px; right: -2px;
  width: 40%;
  height: 40%;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  z-index: 1;
}
.portrait-frame::after {
  content: '';
  position: absolute;
  bottom: -2px; left: -2px;
  width: 40%;
  height: 40%;
  border-bottom: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  z-index: 1;
}
.portrait-frame img {
  width: 100%;
  height: 52rem;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(20%) brightness(0.9);
  transition: filter 0.5s;
}
.portrait-frame:hover img {
  filter: grayscale(0%) brightness(1);
}

/* ============ EXPERTISE ============ */
.expertise {
  padding: 12rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--dark-2);
}
.section-header {
  text-align: center;
  margin-bottom: 8rem;
}
.section-tag {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}
.section-tag::before, .section-tag::after {
  content: '—';
  margin: 0 1rem;
  opacity: 0.5;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 5.2rem;
  font-weight: 400;
}
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.expertise-item {
  padding: 4.8rem 4rem;
  background: var(--dark-3);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.expertise-item:hover { background: var(--dark-4); }
.expertise-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.5s ease;
}
.expertise-item:hover::after { width: 100%; }
.expertise-num {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: rgba(200,169,110,0.15);
  line-height: 1;
  display: block;
  margin-bottom: 2rem;
  font-weight: 700;
}
.expertise-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 1.4rem;
  line-height: 1.2;
}
.expertise-desc {
  font-size: 1.45rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============ EXPERIENCE ============ */
.experience {
  padding: 12rem 0;
  border-bottom: 1px solid var(--border);
}
.timeline {
  position: relative;
  max-width: 96rem;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-bottom: 7rem;
  position: relative;
  align-items: start;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 2.8rem;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.timeline-left { text-align: right; padding-right: 3rem; }
.timeline-right { padding-left: 3rem; }

/* Odd items: content on left, image on right */
.timeline-item:nth-child(odd) .timeline-content { order: 1; }
.timeline-item:nth-child(odd) .timeline-visual { order: 2; padding-left: 3rem; padding-right: 0; }

/* Even items: image on left, content on right */
.timeline-item:nth-child(even) .timeline-content { order: 2; }
.timeline-item:nth-child(even) .timeline-visual { order: 1; padding-right: 3rem; padding-left: 0; text-align: right; }

.timeline-content { padding: 0; }
.timeline-visual { display: flex; align-items: flex-start; }
.timeline-item:nth-child(even) .timeline-visual { justify-content: flex-end; }

.company-logo {
  max-height: 5.6rem;
  max-width: 18rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.6;
  transition: all 0.3s;
}
.company-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.timeline-dates {
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.timeline-role {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.timeline-company {
  font-size: 1.4rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}
.timeline-body {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.timeline-bullets {
  list-style: none;
}
.timeline-bullets li {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.6rem;
}
.timeline-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 1rem;
  top: 0.3rem;
}

/* ============ EDUCATION ============ */
.education {
  padding: 12rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--dark-2);
}
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}
.edu-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  padding: 4rem 3.6rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.edu-card:hover { border-color: rgba(200,169,110,0.3); }
.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4rem;
  height: 2px;
  background: var(--gold);
  transition: width 0.5s ease;
}
.edu-card:hover::before { width: 100%; }
.edu-logo {
  height: 4.8rem;
  width: auto;
  max-width: 14rem;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.7);
  margin-bottom: 3.2rem;
  transition: filter 0.3s;
}
.edu-card:hover .edu-logo {
  filter: grayscale(0%) brightness(1);
}
.edu-degree {
  font-size: 1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.edu-school {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.edu-field {
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* ============ CONTACT CTA ============ */
.contact-cta {
  padding: 12rem 0;
  text-align: center;
}
.cta-label {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.4rem;
}
.cta-heading {
  font-family: 'Playfair Display', serif;
  font-size: 6.4rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 2rem;
}
.cta-sub {
  font-size: 1.6rem;
  color: var(--text-muted);
  margin-bottom: 5.6rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1.7rem 4.4rem;
  transition: background 0.3s, color 0.3s;
}
.btn-primary:hover {
  background: var(--gold-light);
}
.btn-outline {
  display: inline-block;
  background: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 1.7rem 4.4rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.btn-outline:hover {
  color: var(--gold);
  border-color: rgba(200,169,110,0.5);
}

/* ============ FOOTER ============ */
.site-footer {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-copy {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.1em;
}
.footer-copy a {
  color: rgba(200,169,110,0.4);
  transition: color 0.3s;
}
.footer-copy a:hover { color: var(--gold); }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; gap: 6rem; }
  .portrait-frame img { height: 40rem; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .timeline-item::before { display: none; }
  .timeline-item .timeline-content,
  .timeline-item .timeline-visual { order: unset !important; }
  .timeline-left,
  .timeline-right,
  .timeline-visual,
  .timeline-item:nth-child(even) .timeline-visual {
    padding: 0;
    text-align: left;
    justify-content: flex-start;
  }
  .education-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 2.4rem; }
  .hero-content { padding: 0 2.4rem 8rem; }
  .hero-name { font-size: clamp(5rem, 14vw, 9rem); }
  .expertise-grid { grid-template-columns: 1fr; }
  .education-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 4rem; }
  .cta-heading { font-size: 4.4rem; }
  .site-nav { padding: 1.6rem 2.4rem; }
  .site-nav.scrolled { padding: 1.2rem 2.4rem; }
  .nav-links { gap: 2rem; }
  .story-heading { font-size: 3.8rem; }
}
