/* ===== CSS Custom Properties ===== */
:root {
  --color-bg: #FBF9F7;
  --color-bg-alt: #F3EDE7;
  --color-white: #FFFFFF;
  --color-gold: #B8963E;
  --color-gold-light: #D4B86A;
  --color-gold-dark: #96792F;
  --color-navy: #1B2838;
  --color-navy-light: #2A3F56;
  --color-blue: #2C4C70;
  --color-blue-soft: #4A6B90;
  --color-text: #2D3436;
  --color-text-body: #4A4A4A;
  --color-text-light: #7A7A7A;
  --color-border: #E0D8CE;
  --color-card-border: #D4C9BB;
  --color-footer-bg: #1B2838;
  --color-footer-text: #C8C0B4;
  --color-nav-from: #1B2838;
  --color-nav-to: #243449;
  --color-nav-text: #E8DFD1;
  --color-hero-mid: #F0E9DF;
  --color-card-translucent: rgba(255, 255, 255, 0.6);
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1000px;
  --section-pad: 56px;
  --nav-height: 68px;
}

[data-theme="dark"] {
  --color-bg: #0F1720;
  --color-bg-alt: #18222E;
  --color-white: #1F2A38;
  --color-gold: #D4B86A;
  --color-gold-light: #E8C97C;
  --color-gold-dark: #B8963E;
  --color-navy: #E8DFD1;
  --color-navy-light: #F0EAE0;
  --color-text: #F0EAE0;
  --color-text-body: #C8C0B4;
  --color-text-light: #8A8275;
  --color-border: #2C3A4E;
  --color-card-border: #3A4A5E;
  --color-footer-bg: #060C14;
  --color-footer-text: #9A9283;
  --color-nav-from: #060C14;
  --color-nav-to: #0F1720;
  --color-nav-text: #E8DFD1;
  --color-hero-mid: #162030;
  --color-card-translucent: rgba(255, 255, 255, 0.04);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-gold-dark);
  text-decoration: none;
}

a:hover {
  color: var(--color-gold);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.3;
}

/* ===== Utilities ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.prose {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.prose p {
  margin-bottom: 0.9em;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--color-nav-from) 0%, var(--color-nav-to) 100%);
  border-bottom: 2px solid var(--color-gold);
  height: var(--nav-height);
  box-shadow: 0 2px 12px rgba(27, 40, 56, 0.2);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__logo {
  font-family: 'Great Vibes', 'Cormorant Garamond', cursive;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-gold-light);
  text-decoration: none;
  letter-spacing: 0.5px;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav__logo:hover {
  color: var(--color-gold);
  transform: translateY(-1px);
  text-shadow: 0 2px 6px rgba(184, 150, 62, 0.3);
}

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-nav-text);
  text-decoration: none;
  padding: 8px 2px 6px;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.4px;
}

.nav__links a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: 0 0 8px rgba(212, 184, 106, 0.4);
}

.nav__links a::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--color-gold-light);
  transform: translateX(-50%) scale(0) rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 6px rgba(212, 184, 106, 0.5);
}

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

.nav__links a:hover::before,
.nav__links a.active::before {
  transform: scaleX(1);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  transform: translateX(-50%) scale(1) rotate(45deg);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__theme-toggle {
  background: none;
  border: 1px solid transparent;
  padding: 6px;
  cursor: pointer;
  color: var(--color-nav-text);
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 34px;
  height: 34px;
}

.nav__theme-toggle:hover {
  color: var(--color-gold-light);
  border-color: var(--color-gold);
  transform: rotate(15deg);
}

.nav__theme-icon {
  width: 18px;
  height: 18px;
}

.nav__theme-icon--sun {
  display: none;
}

[data-theme="dark"] .nav__theme-icon--moon {
  display: none;
}

[data-theme="dark"] .nav__theme-icon--sun {
  display: block;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gold-light);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 48px 0 56px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--color-bg) 0%, var(--color-hero-mid) 50%, var(--color-bg-alt) 100%);
}

.hero__bg-accent {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 150, 62, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 8vw, 120px);
}

.hero__photo {
  flex-shrink: 0;
}

.hero__photo-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-gold-light);
  box-shadow: 0 0 0 8px rgba(184, 150, 62, 0.1), 0 8px 32px rgba(27, 40, 56, 0.1);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.1) saturate(0.9);
}

.hero__photo-placeholder::after {
  content: 'Photo';
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

.hero__text {
  max-width: 560px;
  flex: 0 1 auto;
}

.hero__photo {
  flex-shrink: 0;
}

.hero__greeting {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-gold-dark);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero__chinese {
  font-weight: 400;
  color: var(--color-text-light);
}

.hero__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-gold));
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--color-gold-dark);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero__statement {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--color-text-body);
  line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-white);
  margin-top: 14px;
}

.btn--gold:hover {
  background: var(--color-gold-dark);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(184, 150, 62, 0.3);
}

/* ===== Section Dividers ===== */
.section-divider {
  color: var(--color-gold);
  line-height: 0;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-divider--on-alt {
  color: var(--color-gold-dark);
}

/* ===== Section Headers ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-header__accent {
  width: 4px;
  height: 32px;
  background: linear-gradient(180deg, var(--color-blue), var(--color-gold));
  border-radius: 2px;
  flex-shrink: 0;
}

.section-header h2 {
  margin-bottom: 0;
}

/* ===== Sections ===== */
.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.3px;
}

.section__subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 28px;
  font-style: italic;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-border));
}

.timeline__item {
  position: relative;
  margin-bottom: 24px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-blue);
  border: 3px solid var(--color-gold);
  z-index: 1;
  box-shadow: 0 0 0 2px var(--color-bg);
}

[data-theme="dark"] .timeline__dot {
  box-shadow: 0 0 0 2px var(--color-bg);
}

.section--alt .timeline__dot {
  background: var(--color-bg-alt);
}

.timeline__item--highlight .timeline__dot {
  background: var(--color-gold);
  border-color: var(--color-gold-dark);
}

.timeline__content {
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(27, 40, 56, 0.04);
}

.timeline__item--highlight .timeline__content {
  border-color: var(--color-gold-light);
  box-shadow: 0 2px 12px rgba(184, 150, 62, 0.12);
}

.timeline__header {
  margin-bottom: 12px;
}

.timeline__header h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.timeline__role {
  display: block;
  font-weight: 600;
  color: var(--color-blue);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

[data-theme="dark"] .timeline__role {
  color: var(--color-gold-light);
}

.timeline__meta {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.timeline__content ul {
  padding-left: 20px;
  list-style: disc;
}

.timeline__content li {
  margin-bottom: 6px;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.timeline__content li:last-child {
  margin-bottom: 0;
}

.timeline__content li::marker {
  color: var(--color-gold);
}

/* ===== Engagement blocks (client work within a role) ===== */
.engagement {
  margin-bottom: 18px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}

.engagement:first-of-type {
  margin-top: 8px;
}

.engagement:last-child {
  margin-bottom: 0;
}

.engagement__title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}

.engagement__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 2px;
  background: var(--color-blue);
  border-radius: 1px;
}

[data-theme="dark"] .engagement__title {
  color: var(--color-gold-light);
}

[data-theme="dark"] .engagement__title::before {
  background: var(--color-gold-light);
}

.engagement__bullets {
  padding-left: 20px;
  list-style: disc;
  margin: 0;
}

.engagement__bullets li {
  margin-bottom: 6px;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.engagement__bullets li:last-child {
  margin-bottom: 0;
}

.engagement__bullets li::marker {
  color: var(--color-gold);
}

/* ===== Project in Timeline ===== */
.timeline__content .project-card__body {
  margin-bottom: 0;
}

.timeline__content .project-card__body p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.timeline__content .stat-grid {
  margin-top: 20px;
  padding-top: 20px;
}

/* ===== Credentials ===== */
.credentials {
  margin-top: 32px;
}

.credentials h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.credentials__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(184, 150, 62, 0.1), rgba(184, 150, 62, 0.05));
  color: var(--color-gold-dark);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(184, 150, 62, 0.25);
}

.credentials__education {
  font-size: 0.95rem;
  color: var(--color-text-body);
  margin-bottom: 4px;
}

.credentials__education:last-child {
  margin-bottom: 0;
}

/* ===== Education List with Symbols ===== */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.education-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.education-item:hover {
  border-color: var(--color-blue);
  box-shadow: 0 2px 10px rgba(44, 76, 112, 0.15);
}

[data-theme="dark"] .education-item:hover {
  border-color: var(--color-gold-light);
  box-shadow: 0 2px 10px rgba(184, 150, 62, 0.15);
}

.education-item__symbol {
  width: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.education-item__symbol svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.education-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
}

.education-item__text strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy);
}

.education-item__text span {
  font-size: 0.9rem;
  color: var(--color-text-body);
}

/* ===== Tools & Skills Grid ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.tool-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 6px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.tool-badge:hover {
  border-color: var(--color-blue);
  box-shadow: 0 2px 10px rgba(44, 76, 112, 0.18);
  transform: translateY(-1px);
}

[data-theme="dark"] .tool-badge:hover {
  border-color: var(--color-gold-light);
  box-shadow: 0 2px 8px rgba(184, 150, 62, 0.25);
}

.tool-badge svg {
  width: 20px;
  height: 20px;
  color: var(--color-blue);
  flex-shrink: 0;
}

[data-theme="dark"] .tool-badge svg {
  color: var(--color-gold-light);
}

.tool-badge span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-navy);
}

/* ===== Method Grid ===== */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.method-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 22px 22px 20px;
  box-shadow: 0 2px 8px rgba(27, 40, 56, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.method-card:hover {
  border-color: var(--color-blue);
  box-shadow: 0 4px 16px rgba(44, 76, 112, 0.15);
}

[data-theme="dark"] .method-card:hover {
  border-color: var(--color-gold-light);
  box-shadow: 0 4px 16px rgba(184, 150, 62, 0.15);
}

.method-card__icon {
  width: 32px;
  height: 32px;
  color: var(--color-blue);
  margin-bottom: 10px;
}

[data-theme="dark"] .method-card__icon {
  color: var(--color-gold);
}

.method-card__icon svg {
  width: 100%;
  height: 100%;
}

.method-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-navy);
}

.method-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ===== Stat Grid ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--color-gold-dark);
  line-height: 1.2;
}

.stat__label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Hero Large (Home) ===== */
.hero--large {
  min-height: calc(92vh - var(--nav-height));
  padding: 40px 0;
  display: flex;
  align-items: center;
}

.hero--large .hero__inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 40px;
  gap: clamp(40px, 6vw, 80px);
  width: 100%;
}

.hero--large .hero__photo-frame {
  width: clamp(240px, 24vw, 340px);
  height: clamp(240px, 24vw, 340px);
}

.hero__bg-accent--2 {
  top: auto;
  bottom: -120px;
  left: -80px;
  right: auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(184, 150, 62, 0.06) 0%, transparent 70%);
}

.hero__photo {
  position: relative;
}

.hero__photo-accent {
  position: absolute;
  top: -12px;
  left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  border-radius: 50%;
  border: 1px solid rgba(184, 150, 62, 0.3);
  pointer-events: none;
  animation: slowSpin 60s linear infinite;
}

.hero__photo-accent::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  transform: translateX(-50%);
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero__highlights {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(184, 150, 62, 0.2);
}

.hero__highlight {
  display: flex;
  flex-direction: column;
}

.hero__highlight-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  line-height: 1.1;
}

.hero__highlight-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ===== Preview Grid (Home) ===== */
.section-header--centered {
  justify-content: center;
}

.section__subtitle--centered {
  text-align: center;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}

.preview-card {
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 10px;
  padding: 22px 20px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-blue);
  box-shadow: 0 8px 24px rgba(44, 76, 112, 0.18);
}

[data-theme="dark"] .preview-card:hover {
  border-color: var(--color-gold-light);
  box-shadow: 0 8px 24px rgba(184, 150, 62, 0.2);
}

.preview-card:hover::before {
  transform: scaleX(1);
}

.preview-card__icon {
  width: 34px;
  height: 34px;
  color: var(--color-blue);
  margin-bottom: 12px;
}

[data-theme="dark"] .preview-card__icon {
  color: var(--color-gold);
}

.preview-card__icon svg {
  width: 100%;
  height: 100%;
}

.preview-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--color-navy);
}

.preview-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.preview-card__link {
  color: var(--color-gold-dark);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.preview-card:hover .preview-card__link {
  color: var(--color-gold);
}

/* ===== Story Path Wrapper ===== */
.story-path {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

/* ===== Story Chapters ===== */
.story-chapter {
  margin: 28px auto;
  position: relative;
  max-width: 720px;
}

.story-chapter:first-of-type {
  margin-top: 24px;
}

/* ===== Desktop: Winding Path ===== */
@media (min-width: 820px) {
  .story-path {
    padding: 32px 0 16px;
  }

  /* Central gold line spanning the whole path */
  .story-path::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
      transparent 0%,
      var(--color-gold-light) 5%,
      var(--color-gold) 50%,
      var(--color-gold-light) 95%,
      transparent 100%);
    transform: translateX(-50%);
    border-radius: 1px;
    opacity: 0.5;
  }

  .story-chapter {
    max-width: 440px;
    margin: 0;
  }

  /* Stagger: each chapter after the first enters before the previous ends */
  .story-chapter + .story-chapter {
    margin-top: -140px;
  }

  /* Left chapters - moderate offset */
  .story-chapter--left {
    margin-right: calc(50% + 50px);
    margin-left: 0;
  }

  .story-chapter--right {
    margin-left: calc(50% + 50px);
    margin-right: 0;
  }

  /* Far = further from center */
  .story-chapter--left.story-chapter--far {
    margin-right: calc(50% + 100px);
  }

  .story-chapter--right.story-chapter--far {
    margin-left: calc(50% + 100px);
  }

  /* Close = nearer to center (but not too close) */
  .story-chapter--left.story-chapter--close {
    margin-right: calc(50% + 40px);
  }

  .story-chapter--right.story-chapter--close {
    margin-left: calc(50% + 40px);
  }

  /* Preserve negative stagger margin with side offsets */
  .story-chapter + .story-chapter.story-chapter--left {
    margin-right: calc(50% + 50px);
    margin-top: -140px;
  }

  .story-chapter + .story-chapter.story-chapter--right {
    margin-left: calc(50% + 50px);
    margin-top: -140px;
  }

  .story-chapter + .story-chapter.story-chapter--left.story-chapter--far {
    margin-right: calc(50% + 100px);
  }

  .story-chapter + .story-chapter.story-chapter--right.story-chapter--far {
    margin-left: calc(50% + 100px);
  }

  .story-chapter + .story-chapter.story-chapter--left.story-chapter--close {
    margin-right: calc(50% + 40px);
  }

  .story-chapter + .story-chapter.story-chapter--right.story-chapter--close {
    margin-left: calc(50% + 40px);
  }

  /* Dot marker on the central line */
  .story-chapter::after {
    content: '';
    position: absolute;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-gold);
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 0 2px var(--color-gold), 0 0 14px rgba(184, 150, 62, 0.35);
    z-index: 2;
  }

  .story-chapter--left::after {
    right: -56px;
  }

  .story-chapter--left.story-chapter--far::after {
    right: -106px;
  }

  .story-chapter--left.story-chapter--close::after {
    right: -46px;
  }

  .story-chapter--right::after {
    left: -56px;
  }

  .story-chapter--right.story-chapter--far::after {
    left: -106px;
  }

  .story-chapter--right.story-chapter--close::after {
    left: -46px;
  }

  /* Connector line from chapter edge toward center */
  .story-chapter::before {
    content: '';
    position: absolute;
    top: 34px;
    height: 2px;
    opacity: 0.55;
    z-index: 1;
  }

  .story-chapter--left::before {
    right: 0;
    width: 50px;
    background: linear-gradient(90deg, transparent, var(--color-gold));
  }

  .story-chapter--left.story-chapter--far::before {
    width: 100px;
  }

  .story-chapter--left.story-chapter--close::before {
    width: 40px;
  }

  .story-chapter--right::before {
    left: 0;
    width: 50px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
  }

  .story-chapter--right.story-chapter--far::before {
    width: 100px;
  }

  .story-chapter--right.story-chapter--close::before {
    width: 40px;
  }

  /* Hide story ornaments/dividers on desktop */
  .story-path .story-ornament,
  .story-path .story-divider {
    display: none;
  }

  /* Prose fills chapter width on desktop */
  .story-chapter .prose {
    max-width: none;
  }

  /* Stat grid and tool pills fill chapter */
  .story-chapter .stat-inline-grid,
  .story-chapter .tool-pills {
    max-width: none;
  }

  .story-chapter .stat-inline-grid {
    gap: 20px;
    padding: 14px 18px;
  }

  .story-chapter .stat-inline__number {
    font-size: 1.4rem;
  }
}

.story-chapter__marker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.story-chapter__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-gold);
  line-height: 1;
  font-style: italic;
}

.story-chapter__label {
  font-size: 0.75rem;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-chapter__label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-gold);
}

.story-chapter__title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.story-chapter .prose {
  max-width: 720px;
}

.story-chapter .prose p {
  margin-bottom: 0.7em;
}

/* ===== Story Ornament ===== */
.story-ornament {
  display: flex;
  justify-content: center;
  margin: 32px 0;
  color: var(--color-gold);
}

.story-ornament svg {
  width: 200px;
  height: 30px;
}

/* ===== Decorative Corner Flourish ===== */
.corner-flourish {
  position: absolute;
  color: var(--color-gold);
  opacity: 0.4;
  pointer-events: none;
}

.corner-flourish svg {
  width: 80px;
  height: 80px;
}

.corner-flourish--tl { top: 20px; left: 20px; }
.corner-flourish--tr { top: 20px; right: 20px; transform: scaleX(-1); }
.corner-flourish--bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.corner-flourish--br { bottom: 20px; right: 20px; transform: scale(-1, -1); }

/* ===== Decorative Section Intro ===== */
.intro-block {
  position: relative;
  padding: 20px 28px 20px 40px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(184, 150, 62, 0.06), rgba(184, 150, 62, 0.01));
  border-radius: 4px;
  overflow: hidden;
}

.intro-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-gold), var(--color-gold-light));
}

.intro-block::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(184, 150, 62, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.intro-block p {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.5;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

/* ===== Decorative Illustration Frame ===== */
.illustration-frame {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 24px 0 32px;
}

.illustration-frame img {
  max-width: 320px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(27, 40, 56, 0.08);
}

.illustration-frame::before,
.illustration-frame::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 200px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
}

.illustration-frame::before {
  left: 0;
}

.illustration-frame::after {
  right: 0;
  background: linear-gradient(270deg, transparent, var(--color-gold));
}

/* ===== Numbered Badge ===== */
.numbered-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: italic;
  box-shadow: 0 2px 8px rgba(184, 150, 62, 0.3);
}

/* ===== Decorative Card Border ===== */
.ornate-card {
  position: relative;
  padding: 32px;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  margin: 24px 0;
}

.ornate-card::before,
.ornate-card::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-gold);
}

.ornate-card::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 8px;
}

.ornate-card::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 8px;
}

/* ===== Callout Box ===== */
.callout {
  position: relative;
  padding: 18px 24px;
  margin: 20px 0;
  background: var(--color-white);
  border-radius: 8px;
  border: 1px solid var(--color-card-border);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.callout__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--color-gold);
  padding-top: 4px;
}

.callout__icon svg {
  width: 100%;
  height: 100%;
}

.callout__content h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.callout__content p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== Decorative Badge Row ===== */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0 28px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(184, 150, 62, 0.04), rgba(27, 40, 56, 0.02));
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.badge-item {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  flex-shrink: 0;
}

.badge-item__icon svg {
  width: 20px;
  height: 20px;
}

.badge-item__text {
  font-size: 0.85rem;
  color: var(--color-text-body);
  line-height: 1.4;
}

.badge-item__text strong {
  display: block;
  color: var(--color-navy);
  font-weight: 600;
}

/* ===== Ornamental Page Header ===== */
.page-header-ornate {
  position: relative;
  text-align: center;
  padding: 20px 0 24px;
  margin-bottom: 24px;
}

.page-header-ornate::before,
.page-header-ornate::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.page-header-ornate::before { top: 0; }
.page-header-ornate::after { bottom: 0; }

.page-header-ornate h2 {
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  margin-bottom: 6px;
}

.page-header-ornate__subtitle {
  color: var(--color-text-light);
  font-style: italic;
  font-size: 1.1rem;
}

.page-header-ornate__diamond {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  transform: rotate(45deg);
  margin: 10px 0;
}

/* ===== Story Divider ===== */
.story-divider {
  text-align: center;
  margin: 36px 0;
  color: var(--color-gold);
  opacity: 0.5;
}

.story-divider svg {
  width: 120px;
  height: 20px;
}

/* ===== Stat Inline Grid ===== */
.stat-inline-grid {
  display: flex;
  gap: 32px;
  margin: 16px auto 0;
  padding: 16px 22px;
  background: var(--color-card-translucent);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  max-width: 720px;
}

.stat-inline {
  display: flex;
  flex-direction: column;
}

.stat-inline__number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  line-height: 1.1;
}

.stat-inline__label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ===== Tool Pills ===== */
.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px auto 0;
  max-width: 720px;
}

.tool-pill {
  padding: 5px 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-body);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* ===== Page Backgrounds ===== */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
}

.page-bg--story {
  background-image: url('assets/background.png');
}

.page-bg--work {
  background-image: url('assets/work.png');
}

.page-bg--yoga {
  background-image: url('assets/yoga.png');
  opacity: 0.15;
}

[data-theme="dark"] .page-bg {
  opacity: 0.06;
}

[data-theme="dark"] .page-bg--yoga {
  opacity: 0.07;
}

/* Dark mode: ensure hero photo blends smoothly */
[data-theme="dark"] .hero__photo-frame {
  box-shadow: 0 0 0 8px rgba(184, 150, 62, 0.08), 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Dark mode: hamburger bars visible */
[data-theme="dark"] .nav__toggle span {
  background: var(--color-gold-light);
}

/* Dark mode: Pitt shield keeps its own colors — no override */

/* Dark mode: smooth transition for theme switch */
body,
.nav,
.section,
.timeline__content,
.method-card,
.preview-card,
.education-item,
.tool-badge,
.callout,
.footer {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--nav-height) - 200px);
}

.page--story .page-content,
.page--methodology .page-content,
.page--ai .page-content,
.page--beyond .page-content {
  background: transparent;
}


/* ===== Footer ===== */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 44px 0 24px;
}

.footer h2 {
  color: #FFFFFF;
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.footer p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 480px;
}

.footer__location {
  margin-top: 12px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 768px) {
  :root {
    --section-pad: 60px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: linear-gradient(135deg, var(--color-nav-from) 0%, var(--color-nav-to) 100%);
    border-bottom: 2px solid var(--color-gold);
    padding: 16px 24px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: none;
  }

  .nav__links a::before,
  .nav__links a::after {
    display: none;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .hero__divider {
    margin-left: auto;
    margin-right: auto;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero__photo-frame {
    width: 160px;
    height: 160px;
  }

  .hero--large .hero__photo-frame {
    width: 200px;
    height: 200px;
  }

  .hero__highlights {
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .pull-quote {
    padding: 24px 28px;
  }

  .stat-inline-grid {
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 480px) {
  :root {
    --section-pad: 48px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero__photo-frame {
    width: 140px;
    height: 140px;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline__dot {
    left: -24px;
    width: 12px;
    height: 12px;
  }

  .timeline::before {
    left: 5px;
  }

  .timeline__content {
    padding: 18px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credentials__pills {
    gap: 8px;
  }

  .pill {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .section-header {
    gap: 12px;
  }

  .section-header__accent {
    height: 24px;
  }

  .hero--large .hero__photo-frame {
    width: 180px;
    height: 180px;
  }

  .hero__highlights {
    gap: 16px;
  }

  .hero__highlight-number {
    font-size: 1.5rem;
  }

  .story-chapter__number {
    font-size: 1.5rem;
  }

  .story-chapter__title {
    font-size: 1.4rem;
  }

  .pull-quote {
    padding: 20px 24px;
    margin: 32px auto;
  }

  .stat-inline-grid {
    padding: 16px 18px;
  }

  .stat-inline__number {
    font-size: 1.4rem;
  }

  .preview-card {
    padding: 24px 20px;
  }
}
