/* ============================================================
   style.css — Editorial Portfolio
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono:wght@400&display=swap');

/* --- Font Stack --- */
:root {
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Libre Baskerville', 'Georgia', serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --color-status-green: #22c55e;
}

/* --- Theme: Light (Default) --- */
[data-theme="light"], :root {
  --bg-primary:            #FAF7F2;
  --bg-secondary:          #F0EBE1;
  --bg-elevated:           #FFFFFF;
  --bg-secondary-hover:    #ebe5d9;
  --text-primary:          #2C2C2C;
  --text-heading:          #1B2838;
  --text-secondary:        #9C9589;
  --accent-gold:           #B8960C;
  --accent-burgundy:       #6B1D2A;
  --accent-sage:           #7A8B6F;
  --border:                #D4CFC7;
  --shadow:                rgba(27, 40, 56, 0.08);
  --nav-bg:                #1B2838;
  --nav-bg-scrolled:       rgba(27, 40, 56, 0.92);
  --nav-text:              #FAF7F2;
  --footer-bg:             #1B2838;
  --footer-text:           #FAF7F2;
  --code-bg:               #F0EBE1;
  --code-border:           #D4CFC7;
  --modal-backdrop:        rgba(27, 40, 56, 0.6);
  --modal-bg:              #FFFFFF;
  --photo-border:          #B8960C;
  --nav-resume-border:     rgba(184, 150, 12, 0.4);
  --nav-resume-hover-bg:   rgba(184, 150, 12, 0.1);
}

/* --- Theme: Dark ("Private Library") --- */
[data-theme="dark"] {
  --bg-primary:            #1C1A17;
  --bg-secondary:          #252220;
  --bg-elevated:           #2E2B27;
  --bg-secondary-hover:    #2E2B27;
  --text-primary:          #E8E2D6;
  --text-heading:          #F0EBE1;
  --text-secondary:        #8A8078;
  --accent-gold:           #D4AD2B;
  --accent-burgundy:       #9B3344;
  --accent-sage:           #8FA17E;
  --border:                #3D3832;
  --shadow:                rgba(0, 0, 0, 0.25);
  --nav-bg:                #141210;
  --nav-bg-scrolled:       rgba(20, 18, 16, 0.92);
  --nav-text:              #E8E2D6;
  --footer-bg:             #141210;
  --footer-text:           #E8E2D6;
  --code-bg:               #252220;
  --code-border:           #3D3832;
  --modal-backdrop:        rgba(0, 0, 0, 0.7);
  --modal-bg:              #2E2B27;
  --photo-border:          #D4AD2B;
  --nav-resume-border:     rgba(212, 173, 43, 0.4);
  --nav-resume-hover-bg:   rgba(212, 173, 43, 0.1);
}

/* --- Theme Transition (applied during switch only) --- */
html.theme-transitioning,
html.theme-transitioning *:where(:not(.reveal), .visible),
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition:
    background-color 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    color 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    border-color 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, p { margin: 0; }

/* --- Typography --- */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-heading);
  line-height: 1.05;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 42px);
  color: var(--text-heading);
  line-height: 1.2;
}

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--text-heading);
  line-height: 1.3;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 1px 6px;
  border-radius: 3px;
}

.meta {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

/* --- Links with animated underline --- */
.link-gold {
  color: var(--accent-gold);
  position: relative;
  display: inline-block;
}

.link-gold::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.link-gold:hover::after {
  width: 100%;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--accent-gold);
  transition: background 0.3s ease;
}

.nav.scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--nav-text);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--nav-text);
  opacity: 0.75;
  transition: opacity 0.3s ease, color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--accent-gold);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-resume {
  color: var(--accent-gold) !important;
  opacity: 1 !important;
  border: 1px solid var(--nav-resume-border);
  padding: 6px 16px;
  border-radius: 3px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-resume:hover {
  background: var(--nav-resume-hover-bg);
  border-color: var(--accent-gold);
}

.nav-resume::after { display: none; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--nav-text);
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--accent-gold);
  padding: 24px 40px 32px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nav-text);
  opacity: 0.8;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent-gold); opacity: 1; }

/* ============================================================
   Theme Toggle — Icon Button
   ============================================================ */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 32px;
  height: 32px;
  transition: opacity 0.2s ease;
}

.theme-toggle-btn:hover {
  opacity: 0.75;
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: opacity 0.3s ease;
}

/* Light theme: show sun, hide flame */
.theme-toggle-btn .icon-sun { opacity: 1; }
.theme-toggle-btn .icon-moon { opacity: 0; }

[data-theme="dark"] .theme-toggle-btn .icon-sun { opacity: 0; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { opacity: 1; }

.mobile-theme-toggle-btn {
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
  width: 32px;
  height: auto;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  padding: 120px 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 60px;
  border-bottom: 1px solid var(--border);
}

.hero-text h1 {
  font-size: clamp(48px, 7vw, 92px);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-links {
  display: flex;
  gap: 32px;
}

.hero-links .link-gold {
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* Gallery-framed portrait */
.hero-portrait {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-frame {
  padding: 12px;
  border: 1px solid var(--photo-border);
  box-shadow: 0 4px 20px var(--shadow);
  max-width: 380px;
}

[data-theme="dark"] .portrait-frame {
  background: var(--bg-secondary);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Section Grid — Editorial Two-Column
   ============================================================ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 60px;
  border-bottom: 1px solid var(--border);
}

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

.section-grid {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 40px 80px;
}

.section-label {
  position: relative;
  padding-left: 20px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 2px;
  height: 36px;
  background: var(--accent-gold);
}

.section-label h2 {
  position: sticky;
  top: 100px;
}

.section-content p + p {
  margin-top: 20px;
}

/* ============================================================
   About
   ============================================================ */
.about-content p {
  max-width: 640px;
}

/* ============================================================
   Experience & Education — Entry Rows
   ============================================================ */
.entry-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.entry-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.entry-row:first-child {
  padding-top: 0;
}

.entry-meta .meta {
  display: block;
  margin-bottom: 6px;
}

.entry-meta h3 {
  font-size: 20px;
  margin-top: 4px;
}

.entry-detail h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.entry-detail .meta {
  display: block;
  margin-bottom: 12px;
}

.entry-detail p {
  font-size: 16px;
  line-height: 1.7;
}

.coursework {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-primary);
}

.coursework strong {
  font-weight: 700;
}

/* ============================================================
   Selected Work — Magazine Layout
   ============================================================ */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.project-featured {
  display: block;
  padding: 40px;
  background: var(--bg-secondary);
  transition: background 0.4s ease;
}

.project-featured:hover {
  background: var(--bg-secondary-hover);
}

.project-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.project-card {
  padding: 32px;
  border: 1px solid var(--border);
  transition: background 0.4s ease, border-color 0.3s ease;
}

.project-card:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-gold);
}

.project-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.project-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.5vw, 28px);
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-title a {
  color: inherit;
  transition: color 0.3s ease;
}

.project-title a:hover {
  color: var(--accent-gold);
}

.project-desc {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 560px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tag {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-sage);
  border: 1px solid var(--border);
  padding: 4px 10px;
}

.project-link {
  color: var(--accent-gold);
  font-size: 14px;
  letter-spacing: 0.03em;
  display: inline-block;
  position: relative;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.project-link:hover::after {
  width: 100%;
}

/* ============================================================
   Technical Expertise — Flowing Lists
   ============================================================ */
.skill-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px 40px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.skill-row:last-child {
  border-bottom: none;
}

.skill-row:first-child {
  padding-top: 0;
}

.skill-category {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--text-heading);
  padding-top: 2px;
}

.skill-list {
  font-size: 16px;
  line-height: 1.8;
}

/* ============================================================
   Publication — Citation Style
   ============================================================ */
.citation {
  max-width: 640px;
}

.citation-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 12px;
}

.citation-journal {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ============================================================
   Certifications — Bibliography List
   ============================================================ */
.cert-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
}

.cert-list li:last-child {
  border-bottom: none;
}

.cert-name {
  color: var(--text-primary);
}

.cert-provider {
  color: var(--text-secondary);
}

.cert-link {
  color: var(--accent-gold);
  position: relative;
}

.cert-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.cert-link:hover::after {
  width: 100%;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--accent-gold);
  padding: 60px 60px 32px;
  color: var(--footer-text);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 48px;
  color: var(--footer-text);
  letter-spacing: 0.05em;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--footer-text);
  opacity: 0.8;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-contact a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--footer-text);
  opacity: 0.7;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-social a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

/* Footer inline SVG icons */
.social-icon,
.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-copyright {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ============================================================
   Resume Modal
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--modal-backdrop);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--modal-bg);
  width: 90vw;
  max-width: 900px;
  height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px var(--shadow);
  transform: translateY(12px);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-heading);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--accent-gold);
}

.modal-body {
  flex: 1;
  overflow: hidden;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.btn-modal {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-modal:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-modal-primary {
  background: var(--nav-bg);
  color: var(--nav-text);
  border-color: var(--nav-bg);
}

.btn-modal-primary:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #fff;
}

/* Mobile resume fallback */
.modal-fallback {
  display: none;
  padding: 40px 24px;
  text-align: center;
}

.modal-fallback p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

/* ============================================================
   Loading State — prevent layout jump while JSON loads
   ============================================================ */
.section-content:empty {
  min-height: 120px;
}

#hero-text:empty,
#hero-portrait:empty {
  min-height: 200px;
}

/* ============================================================
   Reveal Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive — 1200px
   ============================================================ */
@media (max-width: 1200px) {
  .hero {
    padding: 120px 48px 60px;
    gap: 40px;
  }

  .section {
    padding: 100px 40px;
  }

  .nav-inner {
    padding: 0 28px;
  }

  .nav-links {
    gap: 24px;
  }
}

/* ============================================================
   Responsive — 900px (Nav tightening)
   ============================================================ */
@media (max-width: 900px) {
  .nav-links {
    gap: 16px;
  }
}

/* ============================================================
   Responsive — 768px (Tablet)
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu { display: block; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 120px 32px 60px;
    text-align: center;
    gap: 48px;
  }

  .hero-text { order: 1; }
  .hero-portrait { order: 2; }

  .hero-links {
    justify-content: center;
  }

  .portrait-frame {
    max-width: 260px;
    margin: 0 auto;
  }

  .section {
    padding: 80px 28px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-label h2 {
    position: static;
  }

  .entry-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-featured {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .project-pair {
    grid-template-columns: 1fr;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer-social {
    align-items: center;
  }

  .footer {
    padding: 40px 28px 24px;
  }

  /* Modal mobile */
  .modal {
    width: 96vw;
    height: 90vh;
  }

  .modal-body { display: none; }
  .modal-fallback { display: block; }
}

/* ============================================================
   Responsive — 480px (Mobile)
   ============================================================ */
@media (max-width: 480px) {
  .hero {
    padding: 100px 20px 40px;
  }

  .hero-text h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-links {
    flex-direction: column;
    gap: 16px;
  }

  .section {
    padding: 60px 20px;
  }

  .portrait-frame {
    max-width: 220px;
  }

  .project-featured,
  .project-card {
    padding: 20px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .footer {
    padding: 32px 20px 20px;
  }
}

/* ============================================================
   Accessibility
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }

  html.theme-transitioning,
  html.theme-transitioning *,
  html.theme-transitioning *::before,
  html.theme-transitioning *::after {
    transition: none !important;
  }
}

/* ============================================================
   Awards — Recognition cards (mirrors .entry-row)
   ============================================================ */
.award-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.award-card:last-child {
  border-bottom: none;
}

.award-card:first-child {
  padding-top: 0;
}

.award-meta .meta {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.award-meta h3 {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text-heading);
  margin: 0;
}

.award-detail h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--text-heading);
  margin: 0 0 8px;
}

.award-sponsors {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-sage);
  margin-bottom: 12px;
}

.award-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 16px;
  max-width: 640px;
}

.award-link {
  color: var(--accent-gold);
  font-size: 14px;
  letter-spacing: 0.03em;
  display: inline-block;
  position: relative;
}

.award-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.award-link:hover::after {
  width: 100%;
}

@media (max-width: 900px) {
  .award-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ============================================================
   Bullet Lists — Projects + Experience
   ============================================================ */
.project-bullets,
.experience-bullets {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.project-bullets li,
.experience-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
}

.project-bullets li::before,
.experience-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--accent-gold);
}

.project-bullets li:last-child,
.experience-bullets li:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Open-to-Work Status Pill
   ============================================================ */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.status-pill:hover .status-dot,
.status-pill:focus-visible .status-dot {
  transform: scale(1.15);
}

.status-pill:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-status-green);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-status-green);
  opacity: 0.6;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.8); opacity: 0;   }
  100% { transform: scale(1.8); opacity: 0;   }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot::after { animation: none; }
}

.hero-status {
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-heading);
  font-size: 0.72rem;
}

.hero-status:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.nav-status {
  padding: 4px 10px;
  color: var(--nav-text);
  opacity: 0.85;
}

.nav-status::after { display: none; }
.nav-status:hover { opacity: 1; }

.mobile-menu .mobile-status {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 44px;
  padding: 10px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-gold);
  border-radius: 999px;
  color: var(--nav-text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 1;
}

.mobile-menu .mobile-status:hover {
  color: var(--accent-gold);
  opacity: 1;
}
