/* =========================================================
   LYDIA & MARIA DENG — Design System
   Based on Applied Labs style reference
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors */
  --color-white: #ffffff;
  --color-cream: #f7f7f4;
  --color-fog: #f5f5f5;
  --color-ash: #e4e4e7;
  --color-stone: #8c8c8c;
  --color-steel: #737373;
  --color-graphite: #666666;
  --color-charcoal: #4d4d4d;
  --color-warm-gray: #7d7c78;
  --color-espresso: #26251e;
  --color-midnight: #09090b;
  --color-pure-black: #000000;
  --color-deep-ink: #111111;
  --color-slate-blue: #5c7aa1;
  --color-warm-sand: #b39987;
  --color-cobalt-spark: #0051ff;
  --color-emerald: #00cb39;

  /* Typography */
  --font-primary: 'Inter', 'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Type Scale */
  --text-caption: 11px;
  --leading-caption: 1.45;
  --tracking-caption: 0.11px;
  --text-body-sm: 13px;
  --text-body: 14px;
  --text-body-lg: 15px;
  --leading-body-lg: 1.5;
  --tracking-body-lg: 0.15px;
  --text-subheading: 24px;
  --leading-subheading: 1.35;
  --tracking-subheading: -0.29px;
  --text-heading: 36px;
  --leading-heading: 1.17;
  --tracking-heading: -0.72px;
  --text-display: 48px;
  --leading-display: 1.08;
  --tracking-display: -0.96px;

  /* Font Weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;

  /* Spacing */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-28: 28px;
  --sp-32: 32px;
  --sp-36: 36px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-56: 56px;
  --sp-64: 64px;
  --sp-80: 80px;
  --sp-120: 120px;
  --sp-140: 140px;

  /* Layout */
  --page-max-width: 1200px;
  --nav-height: 68px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: rgba(38, 37, 30, 0.08) 0px 4px 12px 0px;
  --shadow-xl: rgba(38, 37, 30, 0.14) 0px 18px 36px 0px;
  --shadow-xl-2: rgba(0, 0, 0, 0.03) -65px 67px 56px 0px,
                 rgba(0, 0, 0, 0.05) -29px 30px 41px 0px,
                 rgba(0, 0, 0, 0.05) -7px 7px 23px 0px;

  /* Surfaces */
  --surface-canvas: #ffffff;
  --surface-cream: #f7f7f4;
  --surface-fog: #f5f5f5;
  --surface-warm-sand: #b39987;
  --surface-slate-blue: #5c7aa1;
}

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-lg);
  color: var(--color-midnight);
  background: var(--color-white);
  font-feature-settings: "ss01" on, "cv11" on;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* ---- Utility ---- */
.container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--sp-24);
}

.section-pad {
  padding: var(--sp-120) 0;
}

.section-pad-sm {
  padding: var(--sp-80) 0;
}

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

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

/* ---- Language Toggle (hidden class) ---- */
.lang-zh { display: none; }
body.zh .lang-en { display: none; }
body.zh .lang-zh { display: block; }
body.zh span.lang-en { display: none; }
body.zh span.lang-zh { display: inline; }
span.lang-zh { display: none; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-ash);
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s ease;
}

.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--sp-24);
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-32);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--color-midnight);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: white;
  stroke-width: 1.5;
}

.nav-logo-text {
  font-size: var(--text-body);
  font-weight: var(--fw-medium);
  color: var(--color-midnight);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 10px;
  font-weight: var(--fw-regular);
  color: var(--color-steel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-28);
  flex: 1;
}

.nav-link {
  font-size: var(--text-body);
  font-weight: var(--fw-medium);
  color: var(--color-midnight);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-cobalt-spark);
}

.nav-link.active {
  color: var(--color-cobalt-spark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--color-fog);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-steel);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
}

.lang-btn.active {
  background: var(--color-midnight);
  color: var(--color-white);
}

/* Nav CTA */
.btn-nav-cta {
  font-size: var(--text-body);
  font-weight: var(--fw-medium);
  color: var(--color-white);
  background: var(--color-midnight);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--color-midnight);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-ash);
  padding: var(--sp-24);
  z-index: 999;
  flex-direction: column;
  gap: var(--sp-16);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  font-size: 16px;
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--color-ash);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  padding-top: calc(var(--nav-height) + var(--sp-80));
  padding-bottom: var(--sp-80);
  background: var(--color-white);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--sp-24);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: var(--text-caption);
  font-weight: var(--fw-medium);
  color: var(--color-steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--color-cobalt-spark);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-size: var(--text-display);
  font-weight: var(--fw-light);
  color: var(--color-midnight);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

.hero-headline em {
  font-style: normal;
  color: var(--color-cobalt-spark);
}

.hero-sub {
  font-size: 16px;
  font-weight: var(--fw-regular);
  color: var(--color-steel);
  line-height: 1.6;
  max-width: 420px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.tag {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-charcoal);
  background: var(--color-fog);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-ctas {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.btn-primary {
  font-size: var(--text-body);
  font-weight: var(--fw-medium);
  color: var(--color-white);
  background: var(--color-midnight);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px var(--sp-24);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
}

.btn-primary:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-1px);
  color: var(--color-white);
}

.btn-ghost {
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  color: var(--color-midnight);
  background: transparent;
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-md);
  padding: 12px var(--sp-24);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
}

.btn-ghost:hover {
  border-color: var(--color-midnight);
  color: var(--color-midnight);
}

/* Hero Right — Media Placeholder + Floating Cards */
.hero-right {
  position: relative;
}

.hero-media-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--color-cream);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--color-ash);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-12);
  overflow: hidden;
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--color-ash);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-stone);
}

.placeholder-label {
  font-size: var(--text-body-sm);
  color: var(--color-stone);
  text-align: center;
  line-height: 1.5;
}

.placeholder-filename {
  font-size: 11px;
  color: var(--color-warm-gray);
  font-family: monospace;
  background: var(--color-white);
  border: 1px solid var(--color-ash);
  border-radius: 4px;
  padding: 2px 8px;
}

/* Floating highlight cards */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(228, 228, 231, 0.8);
  border-radius: var(--radius-lg);
  padding: var(--sp-12) var(--sp-16);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(2) { animation-delay: -1s; }
.floating-card:nth-child(3) { animation-delay: -2s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating-card-top {
  top: 10%;
  right: -24px;
}

.floating-card-mid {
  bottom: 28%;
  left: -32px;
}

.floating-card-bot {
  bottom: 10%;
  right: -16px;
}

.fc-label {
  font-size: 10px;
  font-weight: var(--fw-medium);
  color: var(--color-steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fc-value {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--color-midnight);
  line-height: 1.35;
}

.fc-sub {
  font-size: 11px;
  color: var(--color-steel);
  margin-top: 2px;
}

.fc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.fc-dot-cobalt { background: var(--color-cobalt-spark); }
.fc-dot-green { background: var(--color-emerald); }
.fc-dot-sand { background: var(--color-warm-sand); }

/* =========================================================
   ABOUT / BIO SECTION
   ========================================================= */
.section-eyebrow {
  font-size: var(--text-caption);
  font-weight: var(--fw-medium);
  color: var(--color-steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-16);
}

.section-heading {
  font-size: var(--text-heading);
  font-weight: var(--fw-light);
  color: var(--color-midnight);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  margin-bottom: var(--sp-16);
}

.section-subhead {
  font-size: 16px;
  font-weight: var(--fw-regular);
  color: var(--color-steel);
  line-height: 1.6;
  max-width: 640px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-32);
  margin-top: var(--sp-64);
}

.person-card {
  background: var(--color-white);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.person-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.person-card-photo {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-ash);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
}

.person-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card-body {
  padding: var(--sp-24);
}

.person-name {
  font-size: var(--text-subheading);
  font-weight: var(--fw-light);
  color: var(--color-midnight);
  letter-spacing: var(--tracking-subheading);
  margin-bottom: var(--sp-4);
}

.person-role {
  font-size: var(--text-body-sm);
  font-weight: var(--fw-medium);
  color: var(--color-cobalt-spark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-12);
}

.person-bio {
  font-size: var(--text-body);
  color: var(--color-steel);
  line-height: 1.65;
  margin-bottom: var(--sp-16);
}

.person-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.person-links {
  display: flex;
  gap: var(--sp-12);
  margin-top: var(--sp-16);
}

.person-link {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-midnight);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.person-link:hover {
  border-color: var(--color-midnight);
  background: var(--color-fog);
}

/* School info strip */
.school-strip {
  background: var(--color-fog);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-md);
  padding: var(--sp-12) var(--sp-16);
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  margin-top: var(--sp-12);
}

.school-icon {
  width: 32px;
  height: 32px;
  background: var(--color-midnight);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.school-icon svg {
  width: 16px;
  height: 16px;
  stroke: white;
  fill: none;
  stroke-width: 1.5;
}

.school-name {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--color-midnight);
}

.school-sub {
  font-size: 11px;
  color: var(--color-steel);
  margin-top: 1px;
}

/* =========================================================
   PULL QUOTE
   ========================================================= */
.pull-quote-section {
  background: var(--color-espresso);
  padding: var(--sp-80) 0;
}

.pull-quote {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.pull-quote blockquote {
  font-size: 28px;
  font-weight: var(--fw-light);
  color: var(--color-white);
  line-height: 1.4;
  letter-spacing: -0.3px;
  margin-bottom: var(--sp-16);
}

.pull-quote blockquote::before {
  content: '"';
  color: var(--color-warm-sand);
}

.pull-quote blockquote::after {
  content: '"';
  color: var(--color-warm-sand);
}

.pull-quote-attr {
  font-size: var(--text-body-sm);
  color: var(--color-warm-sand);
  letter-spacing: 0.04em;
}

/* =========================================================
   PROJECTS SECTION
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-20);
  margin-top: var(--sp-48);
}

.projects-grid .project-card-featured {
  grid-column: span 2;
}

.project-card {
  background: var(--color-white);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.project-card-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-ash);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  position: relative;
  overflow: hidden;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-featured .project-card-media {
  aspect-ratio: 2/1;
}

.project-badge {
  position: absolute;
  top: var(--sp-12);
  left: var(--sp-12);
  font-size: 10px;
  font-weight: var(--fw-medium);
  color: var(--color-white);
  background: var(--color-midnight);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-badge-cobalt {
  background: var(--color-cobalt-spark);
}

.project-badge-warm {
  background: var(--color-warm-sand);
  color: var(--color-midnight);
}

.project-badge-ongoing {
  background: var(--color-fog);
  color: var(--color-steel);
  border: 1px solid var(--color-ash);
}

.project-card-body {
  padding: var(--sp-20);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: var(--color-steel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-8);
}

.project-title {
  font-size: 18px;
  font-weight: var(--fw-medium);
  color: var(--color-midnight);
  line-height: 1.3;
  letter-spacing: -0.2px;
  margin-bottom: var(--sp-8);
}

.project-desc {
  font-size: var(--text-body);
  color: var(--color-steel);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--sp-16);
}

.project-award {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-espresso);
  background: #fef9f0;
  border: 1px solid #e8d8b8;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  margin-bottom: var(--sp-12);
}

.project-link {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--color-cobalt-spark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease;
}

.project-link:hover {
  gap: 8px;
}

.project-links-row {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
  align-items: center;
}

/* =========================================================
   JOURNALISM SECTION
   ========================================================= */
.journalism-tabs {
  display: flex;
  gap: 2px;
  background: var(--color-fog);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-full);
  padding: 2px;
  width: fit-content;
  margin-bottom: var(--sp-40);
}

.j-tab {
  font-size: var(--text-body);
  font-weight: var(--fw-medium);
  color: var(--color-steel);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px var(--sp-20);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.j-tab.active {
  background: var(--color-midnight);
  color: var(--color-white);
}

.j-panel {
  display: none;
}

.j-panel.active {
  display: block;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-20);
}

.video-grid.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.video-card {
  background: var(--color-white);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.video-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.video-card:hover .video-thumb img {
  opacity: 1;
  transform: scale(1.04);
}

/* Dark gradient so the play button is always readable */
.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.28) 100%
  );
  pointer-events: none;
}

.video-play-btn {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.93);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.video-card:hover .video-play-btn {
  transform: scale(1.12);
  background: var(--color-white);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.video-play-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--color-midnight);
  margin-left: 2px;
}

.video-body {
  padding: var(--sp-16);
}

.video-title {
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--color-midnight);
  line-height: 1.4;
  margin-bottom: var(--sp-4);
}

.video-meta {
  font-size: 12px;
  color: var(--color-steel);
}

/* =========================================================
   MUSIC & PERFORMANCE SECTION
   ========================================================= */
.music-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
  align-items: start;
  margin-top: var(--sp-48);
}

.music-items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.music-item {
  display: flex;
  gap: var(--sp-16);
  align-items: flex-start;
  padding: var(--sp-16);
  background: var(--color-white);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.15s ease;
}

.music-item:hover {
  box-shadow: var(--shadow-sm);
}

.music-item-icon {
  width: 40px;
  height: 40px;
  background: var(--color-fog);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-midnight);
}

.music-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.music-item-body h4 {
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--color-midnight);
  margin-bottom: 2px;
}

.music-item-body p {
  font-size: 13px;
  color: var(--color-steel);
  line-height: 1.5;
}

/* Upcoming music card */
.upcoming-music-card {
  background: var(--color-midnight);
  border-radius: var(--radius-xl);
  padding: var(--sp-32);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.upcoming-music-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 81, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.upcoming-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--fw-medium);
  color: var(--color-cobalt-spark);
  background: rgba(0, 81, 255, 0.15);
  border: 1px solid rgba(0, 81, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-16);
}

.upcoming-title {
  font-size: 24px;
  font-weight: var(--fw-light);
  letter-spacing: -0.3px;
  margin-bottom: var(--sp-8);
}

.upcoming-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: var(--sp-24);
}

.upcoming-cover-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  margin-bottom: var(--sp-20);
}

.upcoming-cover-placeholder p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.music-platforms {
  display: flex;
  gap: var(--sp-8);
}

.platform-btn {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  cursor: default;
}

/* =========================================================
   HONORS SECTION
   ========================================================= */
.honors-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-20);
  margin-top: var(--sp-48);
}

.honor-item {
  display: flex;
  gap: var(--sp-24);
  align-items: flex-start;
  padding: var(--sp-24);
  background: var(--color-white);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.15s;
}

.honor-item:hover {
  box-shadow: var(--shadow-sm);
}

.honor-year {
  font-size: var(--text-body-sm);
  font-weight: var(--fw-medium);
  color: var(--color-steel);
  min-width: 40px;
  padding-top: 2px;
}

.honor-icon {
  width: 40px;
  height: 40px;
  background: #fef9f0;
  border: 1px solid #e8d8b8;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.honor-body h3 {
  font-size: 16px;
  font-weight: var(--fw-medium);
  color: var(--color-midnight);
  line-height: 1.35;
  margin-bottom: var(--sp-4);
}

.honor-body p {
  font-size: 13px;
  color: var(--color-steel);
  line-height: 1.6;
}

.honor-body .honor-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: var(--color-cobalt-spark);
  margin-top: var(--sp-8);
}

/* =========================================================
   PRESS / EXTERNAL LINKS
   ========================================================= */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-20);
  margin-top: var(--sp-48);
}

.press-card {
  background: var(--color-white);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-lg);
  padding: var(--sp-20);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.press-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
  border-color: var(--color-midnight);
}

.press-source {
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: var(--color-steel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.press-title {
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--color-midnight);
  line-height: 1.4;
}

.press-arrow {
  margin-top: auto;
  font-size: 13px;
  color: var(--color-cobalt-spark);
  font-weight: var(--fw-medium);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}

.press-card:hover .press-arrow {
  gap: 8px;
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-80);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-28);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.form-label {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-steel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  color: var(--color-midnight);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-ash);
  border-radius: 0;
  padding: var(--sp-12) 0;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
  line-height: 1.5;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-stone);
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--color-midnight);
}

.form-textarea {
  resize: none;
  min-height: 100px;
}

.contact-right {
  padding-top: var(--sp-8);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-20);
  margin-top: var(--sp-32);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-12);
}

.ci-icon {
  width: 36px;
  height: 36px;
  background: var(--color-fog);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ci-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-midnight);
  fill: none;
  stroke-width: 1.5;
}

.ci-label {
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: var(--color-steel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ci-value {
  font-size: 14px;
  color: var(--color-midnight);
  margin-top: 2px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-ash);
  padding: var(--sp-48) 0;
}

.footer-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--sp-24);
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: var(--sp-40);
  align-items: start;
}

.footer-brand p {
  font-size: 13px;
  color: var(--color-steel);
  margin-top: var(--sp-12);
  line-height: 1.6;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--sp-40);
}

.footer-col-title {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-midnight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-12);
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--color-steel);
  text-decoration: none;
  margin-bottom: var(--sp-8);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--color-midnight);
}

.footer-right {
  text-align: right;
}

.footer-legal {
  font-size: 12px;
  color: var(--color-stone);
  margin-top: var(--sp-40);
  padding-top: var(--sp-24);
  border-top: 1px solid var(--color-ash);
  text-align: center;
}

/* =========================================================
   INDIVIDUAL PAGE SPECIFIC
   ========================================================= */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--sp-64));
  padding-bottom: var(--sp-64);
  background: var(--color-cream);
}

.page-hero-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--sp-24);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-40);
  align-items: center;
}

.page-hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--color-ash);
  border: 4px solid var(--color-white);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-name {
  font-size: 40px;
  font-weight: var(--fw-light);
  color: var(--color-midnight);
  letter-spacing: -0.5px;
  margin-bottom: var(--sp-4);
}

.page-hero-role {
  font-size: 14px;
  color: var(--color-steel);
  line-height: 1.6;
  max-width: 600px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--color-steel);
  text-decoration: none;
  margin-bottom: var(--sp-24);
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--color-midnight);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-16);
  margin-top: var(--sp-40);
}

.skill-group {
  background: var(--color-white);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-lg);
  padding: var(--sp-20);
}

.skill-group-title {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-steel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-12);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.skill-item {
  font-size: 13px;
  color: var(--color-midnight);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.skill-item::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--color-cobalt-spark);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =========================================================
   MEDIA PLACEHOLDER GENERIC
   ========================================================= */
.media-placeholder {
  background: var(--color-cream);
  border: 1px dashed var(--color-ash);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  padding: var(--sp-32);
  text-align: center;
}

.media-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-stone);
  fill: none;
  stroke-width: 1.5;
}

.media-placeholder-label {
  font-size: 13px;
  color: var(--color-stone);
}

.media-placeholder-file {
  font-size: 11px;
  color: var(--color-warm-gray);
  font-family: monospace;
  background: var(--color-white);
  border: 1px solid var(--color-ash);
  border-radius: 4px;
  padding: 3px 8px;
}

/* =========================================================
   DIVIDER
   ========================================================= */
.divider {
  height: 1px;
  background: var(--color-ash);
  border: none;
  margin: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-right {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects-grid .project-card-featured {
    grid-column: span 2;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-48);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .footer-right {
    grid-column: 1 / -1;
    text-align: left;
  }
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  .press-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --text-display: 36px;
    --text-heading: 28px;
    --text-subheading: 20px;
    --sp-120: 80px;
    --sp-80: 56px;
  }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero {
    padding-top: calc(var(--nav-height) + var(--sp-48));
    padding-bottom: var(--sp-56);
  }

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

  .projects-grid .project-card-featured {
    grid-column: span 1;
  }

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

  .video-grid.grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .music-split {
    grid-template-columns: 1fr;
    gap: var(--sp-40);
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-24);
  }

  .honors-list .honor-item {
    flex-wrap: wrap;
  }

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

  .page-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-hero-photo {
    margin: 0 auto;
  }
}

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.07s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.14s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.21s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.28s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.35s; }

/* =========================================================
   SMALL PHONE BREAKPOINT
   ========================================================= */
@media (max-width: 480px) {
  .video-grid,
  .video-grid.grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .journalism-tabs {
    width: 100%;
  }

  .j-tab {
    flex: 1;
    text-align: center;
  }

  .person-links {
    flex-wrap: wrap;
  }

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

  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   JOURNALISM TAB PANEL TRANSITION
   ========================================================= */
.j-panel {
  animation: fadePanel 0.25s ease;
}

@keyframes fadePanel {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   SCROLL TO TOP SMOOTH — ensure nav doesn't cover anchors
   ========================================================= */
section[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}
