/*
 * Berit Bogetoft - Homepage Styles
 * Version: 1.0
 */

/* === Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Manrope:wght@200;300;400;500;600;700;800&family=Lexend:wght@100;200;300;400;500;600;700;800;900&family=Caveat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* === CSS Variables === */
:root {
  --primary: #ad2c00;
  --primary-container: #d34011;
  --on-primary: #ffffff;
  --on-primary-container: #fffbff;
  --primary-fixed: #ffdbd1;
  --on-surface: #1a1c1c;
  --on-surface-variant: #5a413a;
  --surface: #f9f9f9;
  --surface-container: #eeeeee;
  --surface-container-low: #f3f3f3;
  --surface-container-high: #e8e8e8;
  --surface-container-lowest: #ffffff;
  --surface-variant: #e2e2e2;
  --outline: #8f7068;
  --outline-variant: #e3beb5;
  --secondary: #5d5e61;
  --tertiary: #4a5f69;
  --tertiary-container: #627882;
  --tertiary-fixed: #cfe6f2;
  --on-tertiary-container: #fbfdff;
  --on-tertiary-fixed: #071e27;
  --on-tertiary-fixed-variant: #354a53;
  --error: #ba1a1a;
  --font-headline: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-label: 'Lexend', sans-serif;
  --font-handwriting: 'Caveat', cursive;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.home-page {
  font-family: var(--font-body);
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-container); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.icon-filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.side-nav-name {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-headline);
  color: var(--on-surface);
}

/* === Top App Bar === */
.top-bar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(249,249,249,0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1536px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.top-bar-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--on-surface);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  font-family: var(--font-headline);
}
.top-bar-logo:hover { color: var(--on-surface); }
.top-bar-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
.top-bar-nav a {
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--on-surface-variant);
  transition: color .2s;
}
.top-bar-nav a:hover { color: var(--on-surface); }
.top-bar-nav a.active {
  color: var(--orange-700);
  border-bottom: 2px solid var(--orange-700);
  padding-bottom: 4px;
}
.top-bar-actions { display: flex; align-items: center; gap: 1rem; }
.top-bar-menu-btn {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background .2s;
}
.top-bar-menu-btn:hover { background: rgba(226,226,226,0.2); }
.top-bar-menu-btn .material-symbols-outlined { color: var(--orange-700); }
.top-bar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(227,190,181,0.3);
}
.top-bar-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--surface-variant);
  padding: 1rem 1.5rem;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--on-surface-variant);
  padding: 0.5rem 0;
}
.mobile-menu a.active { color: var(--orange-700); }

/* === Side Nav (Desktop) === */
.side-nav {
  display: none;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding-top: 6rem;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 256px;
  background: var(--surface-container-low);
}
.side-nav-header { margin-bottom: 2.5rem; padding: 0 1rem; }
.side-nav-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-headline);
  color: var(--on-surface);
}
.side-nav-header p {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.side-nav nav { display: flex; flex-direction: column; gap: 0.5rem; }
.side-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  border-radius: 12px;
  transition: background .2s, transform .15s;
}
.side-nav-link:hover {
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
}
.side-nav-link:active { transform: translateX(4px); }
.side-nav-link.active {
  background: var(--orange-50);
  color: var(--orange-800);
}

/* === Main Content === */
.home-main { padding-top: 64px; }

/* === Hero Section === */
.hero-section {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 1.5rem;
  background-color: var(--surface);
  background-image: radial-gradient(at 0% 0%, var(--primary-fixed) 0px, transparent 50%), radial-gradient(at 100% 0%, var(--tertiary-fixed) 0px, transparent 50%);
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
}
.hero-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-headline);
  color: var(--on-surface);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
}
.hero-title .accent { color: var(--primary); }
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  font-weight: 300;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 3rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.hero-stat {
  background: var(--surface-container-lowest);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.hero-stat-value {
  font-family: var(--font-headline);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
}
.hero-stat-label {
  font-family: var(--font-label);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-surface-variant);
  margin-top: 0.25rem;
}
.hero-portrait {
  position: relative;
}
.hero-portrait-img {
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
  position: relative;
}
.hero-portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.7s;
}
.hero-portrait-img:hover img { filter: grayscale(0%); }
.hero-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(173,44,0,0.4), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}
.hero-portrait-img:hover .hero-portrait-overlay { opacity: 1; }
.hero-portrait-glow {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 128px;
  height: 128px;
  background: rgba(173,44,0,0.1);
  border-radius: 50%;
  filter: blur(48px);
}
.hero-watermark {
  display: none;
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.03;
  user-select: none;
}
.hero-watermark .material-symbols-outlined { font-size: 40rem; }

/* === Biography Section === */
.bio-section {
  padding: 5rem 1.5rem;
  background: var(--surface-container-low);
}
.bio-inner {
  max-width: 1024px;
  margin: 0 auto;
}
.bio-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.bio-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(227,190,181,0.3);
}
.bio-divider-text {
  font-family: var(--font-label);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--secondary);
}
.bio-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.bio-heading h2 {
  display: none;
  font-size: 2.25rem;
  font-weight: 900;
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--on-surface);
}
.bio-heading-bar {
  display: none;
  width: 48px;
  height: 4px;
  background: var(--primary);
  margin-top: 1rem;
}
.bio-content { display: flex; flex-direction: column; gap: 2rem; }
.bio-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--on-surface-variant);
}
.bio-content strong { color: var(--on-surface); }
.bio-quote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin: 1rem 0;
  font-style: italic;
  font-size: 1.25rem;
  font-family: var(--font-headline);
  color: var(--on-surface);
  position: relative;
}
.bio-quote-icon {
  position: absolute;
  top: -16px;
  left: -8px;
  color: rgba(173,44,0,0.2);
  font-size: 3rem;
}

/* === Career Section === */
.career-section {
  padding: 5rem 1.5rem;
}
.career-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.career-title {
  font-size: 2.25rem;
  font-weight: 900;
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  text-align: center;
  margin-bottom: 3rem;
}
.career-title .accent { color: var(--primary); font-style: italic; }
.career-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.career-card {
  background: var(--surface-container-lowest);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.career-card-major {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.career-card-major-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  transition: transform 1s;
}
.career-card-major:hover .career-card-major-bg { transform: scale(1.05); }
.career-card-major-content { position: relative; z-index: 10; }
.career-card-label {
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.career-card-major h3 {
  font-size: 1.875rem;
  font-weight: 700;
  font-family: var(--font-headline);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.career-card-major p {
  color: var(--on-surface-variant);
  max-width: 512px;
}
.career-card-primary {
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.career-card-primary .material-symbols-outlined { font-size: 2.25rem; }
.career-card-primary h4 {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-headline);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}
.career-card-primary p { font-size: 0.875rem; opacity: 0.8; }
.career-card-secondary { background: var(--surface-container-high); }
.career-card-secondary .material-symbols-outlined {
  font-size: 2.25rem;
  color: var(--orange-700);
  margin-bottom: 1rem;
}
.career-card-secondary h4 {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-headline);
  margin-bottom: 0.5rem;
}
.career-card-secondary p {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
}
.career-card-horizontal {
  background: var(--tertiary-fixed);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.career-card-horizontal-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.career-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.career-card-icon .material-symbols-outlined {
  color: var(--tertiary);
  font-size: 1.5rem;
  font-variation-settings: 'FILL' 1;
}
.career-card-horizontal h4 {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-headline);
  color: var(--on-tertiary-fixed);
}
.career-card-horizontal p {
  font-size: 0.875rem;
  color: var(--on-tertiary-fixed-variant);
}
.career-card-horizontal > .material-symbols-outlined {
  display: none;
  font-size: 2.25rem;
  opacity: 0.2;
}

/* === Family Section === */
.family-section {
  padding: 5rem 1.5rem;
  background: var(--surface-container-low);
  overflow: hidden;
}
.family-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.family-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.family-images-col { display: flex; flex-direction: column; gap: 1rem; }
.family-images-col:last-child { padding-top: 3rem; }
.family-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.family-img.square { aspect-ratio: 1; }
.family-img.tall { aspect-ratio: 3/4; }
.family-img img { width: 100%; height: 100%; object-fit: cover; }
.family-text h2 {
  font-size: 2.25rem;
  font-weight: 900;
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
  line-height: 1.1;
}
.family-text h2 .accent { color: var(--primary); }
.family-text > p {
  font-size: 1rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.family-text strong { color: var(--on-surface); }
.family-list { display: flex; flex-direction: column; gap: 1.5rem; }
.family-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.family-list-item .material-symbols-outlined {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}
.family-list-item strong {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--on-surface);
}
.family-list-item p {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
}

/* === Legacy Section === */
.legacy-section {
  padding: 5rem 1.5rem;
  text-align: center;
}
.legacy-inner {
  max-width: 896px;
  margin: 0 auto;
}
.legacy-quote-icon {
  font-size: 3rem;
  color: rgba(194,65,12,0.2);
  font-variation-settings: 'FILL' 1;
  margin-bottom: 2rem;
}
.legacy-title {
  font-size: 2.25rem;
  font-weight: 900;
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  margin-bottom: 2.5rem;
  line-height: 0.9;
}
.legacy-text {
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: 4rem;
}
.legacy-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.legacy-tag {
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === FAQ Section === */
.faq-section-home {
  padding: 5rem 1.5rem;
  background: var(--surface-container);
}
.faq-inner {
  max-width: 896px;
  margin: 0 auto;
}
.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}
.faq-header h2 {
  font-size: 1.875rem;
  font-weight: 900;
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--on-surface);
}
.faq-header p {
  color: var(--on-surface-variant);
  margin-top: 0.5rem;
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item-home {
  background: var(--surface-container-lowest);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid transparent;
  transition: border-color .2s;
}
.faq-item-home:hover { border-color: rgba(227,190,181,0.3); }
.faq-item-home summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.faq-item-home summary::-webkit-details-marker { display: none; }
.faq-item-home summary h4 {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-headline);
  color: var(--on-surface);
}
.faq-item-home summary .material-symbols-outlined {
  color: var(--primary);
  transition: transform .3s;
}
.faq-item-home[open] summary .material-symbols-outlined { transform: rotate(45deg); }
.faq-item-home .faq-answer-home {
  margin-top: 1rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
}

/* === Related Links === */
.related-section {
  padding: 4rem 1.5rem;
  background: var(--surface-container-low);
}
.related-inner {
  max-width: 896px;
  margin: 0 auto;
  text-align: center;
}
.related-inner h2 {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--on-surface);
  margin-bottom: 2rem;
}
.related-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.related-tag {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: var(--surface-container-lowest);
  color: var(--on-surface-variant);
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: background .2s, color .2s;
}
.related-tag:hover {
  background: var(--primary);
  color: #fff;
}

/* === Footer === */
.home-footer {
  background: var(--surface-container-lowest);
  padding: 4rem 1.5rem;
}
.home-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.home-footer-top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.home-footer-brand { max-width: 320px; }
.home-footer-brand-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--on-surface);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  font-family: var(--font-headline);
  margin-bottom: 1rem;
}
.home-footer-brand p {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
}
.home-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.home-footer-links h5 {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.home-footer-links ul { display: flex; flex-direction: column; gap: 1rem; }
.home-footer-links a {
  font-family: var(--font-label);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant);
  transition: color .2s;
}
.home-footer-links a:hover { color: var(--primary); }
.home-footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-variant);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.home-footer-bottom p {
  font-size: 0.75rem;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-surface-variant);
}
.home-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.home-footer-legal a {
  font-size: 0.625rem;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(90,65,58,0.6);
  transition: color .2s;
}
.home-footer-legal a:hover { color: var(--primary); }
.home-footer-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.625rem;
  font-family: var(--font-label);
  color: rgba(90,65,58,0.4);
}

/* === Mobile Bottom Nav === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.75rem 1rem 1.5rem;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px 24px 0 0;
  z-index: 50;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.04);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  color: #71717a;
  text-decoration: none;
  transition: transform .3s;
  background: none;
  border: none;
  cursor: pointer;
}
.bottom-nav-item:active { transform: scale(0.9); }
.bottom-nav-item:hover { color: var(--orange-700); }
.bottom-nav-item.active {
  background: var(--orange-100);
  color: var(--orange-800);
  border-radius: 9999px;
}
.bottom-nav-item span.nav-label {
  font-family: var(--font-label);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* === Image Captions (shared) === */
.img-caption {
  padding: 0.5rem 0.25rem 0;
}
.img-caption-desc {
  font-family: var(--font-handwriting);
  font-size: 1.0625rem;
  color: var(--on-surface);
  line-height: 1.3;
  margin-bottom: 0.125rem;
}
.img-caption-license {
  font-family: var(--font-label);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  color: rgba(90,65,58,0.5);
  text-transform: uppercase;
}
.img-caption-license a {
  color: rgba(90,65,58,0.5);
  text-decoration: none;
}
.img-caption-license a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Family images with captions need visible overflow */
.family-img {
  overflow: visible;
}
.family-img img {
  border-radius: 12px;
}

/* Hero portrait caption */
.hero-portrait-caption {
  padding: 0.5rem 0.25rem 0;
}
.hero-portrait-caption .img-caption-desc {
  color: var(--on-surface-variant);
}

/* Padding for bottom nav on mobile */
.home-main { padding-bottom: 5rem; }

/* === Desktop (768px+) === */
@media (min-width: 768px) {
  .top-bar-nav { display: flex; }
  .top-bar-menu-btn { display: none; }
  .top-bar-avatar { display: none; }
  .bottom-nav { display: none; }
  .home-main { padding-bottom: 0; }

  .hero-section { min-height: 921px; padding: 5rem 4rem; }
  .hero-inner { grid-template-columns: 7fr 5fr; }
  .hero-title { font-size: 4.5rem; }
  .hero-subtitle { font-size: 1.5rem; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .hero-stat { padding: 1.5rem; }
  .hero-stat-value { font-size: 2.25rem; }
  .hero-stat-label { font-size: 0.75rem; }
  .hero-watermark { display: block; }

  .bio-section { padding: 8rem 4rem; }
  .bio-divider { display: none; }
  .bio-layout { flex-direction: row; gap: 4rem; }
  .bio-heading { width: 33.333%; position: sticky; top: 128px; }
  .bio-heading h2 { display: block; }
  .bio-heading-bar { display: block; }
  .bio-content { width: 66.666%; }
  .bio-content p { font-size: 1.125rem; }
  .bio-quote { font-size: 1.5rem; margin: 2rem 0; }

  .career-section { padding: 8rem 4rem; }
  .career-title { font-size: 3rem; margin-bottom: 5rem; }
  .career-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .career-card-major { grid-column: span 2; grid-row: span 2; min-height: 500px; }
  .career-card-major h3 { font-size: 2.25rem; }
  .career-card { padding: 2rem; }
  .career-card-horizontal { grid-column: span 3; }
  .career-card-horizontal-inner { gap: 1.5rem; }
  .career-card-icon { width: 64px; height: 64px; }
  .career-card-icon .material-symbols-outlined { font-size: 1.875rem; }
  .career-card-horizontal h4 { font-size: 1.25rem; }
  .career-card-horizontal > .material-symbols-outlined { display: block; }

  .family-section { padding: 8rem 4rem; }
  .family-inner { grid-template-columns: repeat(2, 1fr); gap: 5rem; }
  .family-text { order: 2; }
  .family-images { order: 1; }
  .family-text h2 { font-size: 3rem; }
  .family-text > p { font-size: 1.125rem; }

  .legacy-section { padding: 8rem 4rem; }
  .legacy-quote-icon { font-size: 3.5rem; }
  .legacy-title { font-size: 3.5rem; }
  .legacy-tags { gap: 1rem; }
  .legacy-tag { padding: 0.75rem 1.5rem; }

  .faq-section-home { padding: 8rem 4rem; }
  .faq-header h2 { font-size: 2.25rem; }
  .faq-item-home { padding: 2rem; }
  .faq-item-home summary h4 { font-size: 1.25rem; }

  .home-footer { padding: 5rem 4rem; }
  .home-footer-top { flex-direction: row; justify-content: space-between; }
  .home-footer-links { gap: 4rem; }
  .home-footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* === Large Desktop (1024px+) === */
@media (min-width: 1024px) {
  .side-nav { display: flex; }
  .home-main { margin-left: 256px; }
  .hero-title { font-size: 6rem; }
  .legacy-title { font-size: 4.5rem; }
}
