/* =============================================
   DIAMOND LISTINGS — ML PORTFOLIO
   Aesthetic: Refined Luxury Editorial
   ============================================= */

:root {
  --gold: #c9a96e;
  --gold-light: #e8d5a3;
  --gold-dark: #8a6a3e;
  --gold-deep: #5c4520;
  --cream: #f5f0e8;
  --cream-dark: #ede5d4;
  --dark: #1a1510;
  --dark-mid: #2d2418;
  --dark-warm: #3d3020;
  --text: #2d2418;
  --text-muted: #7a6a55;
  --text-light: #b8a88a;
  --white: #fdfaf4;
  --border: rgba(201, 169, 110, 0.25);
  --border-strong: rgba(201, 169, 110, 0.5);
  --shadow: 0 4px 40px rgba(90, 60, 20, 0.12);
  --shadow-strong: 0 8px 60px rgba(90, 60, 20, 0.2);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Fira Code', monospace;

  --radius: 4px;
  --radius-lg: 8px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--gold-dark);
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.nav.scrolled {
  box-shadow: var(--shadow);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
}
.diamond-mark {
  font-size: 1.3rem;
  color: var(--gold);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-dark); }
.nav-badge {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 8% 80px;
  gap: 4rem;
  background: linear-gradient(135deg, #f5f0e8 0%, #ede5d4 50%, #e0d4be 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.geo {
  position: absolute;
  border: 1px solid rgba(201, 169, 110, 0.15);
}
.geo-1 {
  width: 600px; height: 600px;
  right: -100px; top: -200px;
  transform: rotate(15deg);
  border-radius: 2px;
}
.geo-2 {
  width: 400px; height: 400px;
  right: 100px; bottom: -100px;
  transform: rotate(30deg);
  border-radius: 2px;
}
.geo-3 {
  width: 200px; height: 200px;
  left: 200px; top: 50px;
  transform: rotate(45deg);
  border-radius: 2px;
  border-color: rgba(201, 169, 110, 0.08);
}
.diamond-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,110,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--text-muted);
}
.hero-title {
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-size: 1.8rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.05em;
  font-weight: 300;
}
.hero-title span {
  font-size: 5.5rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.hero-title strong {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold-dark);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-divider {
  color: var(--gold-light);
  font-size: 1.2rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--gold-dark);
  color: var(--cream);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.25s;
}
.cta-btn:hover {
  background: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(90,60,20,0.25);
}
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.diamond-3d {
  width: 340px;
  height: 340px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(201,169,110,0.3));
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: 100px 8%;
}
.section-dark {
  background: var(--dark);
  color: var(--cream);
}
.section-warm {
  background: var(--cream-dark);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}
.section-label.light { color: var(--gold-light); }
.section-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.section-title.light { color: var(--cream); }
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.section-desc.light { color: rgba(245,240,232,0.6); }

/* =============================================
   DATASET OVERVIEW — Feature Cards
   ============================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}
.card-icon { font-size: 1.2rem; }
.card-type {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.feature-card h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feature-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}
.card-nominal { border-top: 3px solid #b8902a; }
.card-nominal .card-icon { color: #b8902a; }
.card-ordinal { border-top: 3px solid var(--gold); }
.card-ordinal .card-icon { color: var(--gold); }
.card-numeric { border-top: 3px solid var(--gold-light); }
.card-numeric .card-icon { color: var(--gold-light); }
.card-binary { border-top: 3px solid var(--gold-dark); }
.card-binary .card-icon { color: var(--gold-dark); }
.card-engineered {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-strong);
}
.eng-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

/* PIPELINE */
.pipeline {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.pipeline-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.pipeline-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: default;
}
.pipe-step:hover, .pipe-step.active {
  border-color: var(--gold);
  background: rgba(201,169,110,0.08);
}
.pipe-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
}
.pipe-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
}
.pipe-arrow { color: var(--gold-light); font-size: 1rem; }

/* =============================================
   EDA INSIGHTS
   ============================================= */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.insight-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  transition: border-color 0.25s;
}
.insight-card:hover {
  border-color: rgba(201,169,110,0.5);
}
.insight-card-wide {
  grid-column: span 2;
}
.insight-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(201,169,110,0.3);
  line-height: 1;
  min-width: 60px;
}
.insight-content h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}
.insight-content p {
  font-size: 0.88rem;
  color: rgba(245,240,232,0.65);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.insight-finding {
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: rgba(245,240,232,0.75);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 0.75rem;
}
.finding-icon { font-size: 0.9rem; margin-top: 1px; }

/* Chart placeholders */
.chart-placeholder {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius);
  border: 1px solid rgba(201,169,110,0.1);
}
.chart-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 80px;
}
.chart-bar-wrap { flex: 1; display: flex; align-items: flex-end; }
.chart-bar {
  width: 100%;
  border-radius: 2px 2px 0 0;
  transition: opacity 0.25s;
  min-height: 4px;
}
.chart-bar:hover { opacity: 0.8; }
.chart-label {
  display: block;
  font-size: 0.65rem;
  color: rgba(245,240,232,0.35);
  text-align: center;
  margin-top: 6px;
  font-family: var(--font-mono);
}

/* Clarity viz */
.clarity-viz { margin-top: 1rem; }
.clarity-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 70px;
}
.c-bar-pair {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  position: relative;
}
.c-bar-pair::after {
  content: attr(data-label);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  color: rgba(245,240,232,0.35);
  white-space: nowrap;
}
.c-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 3px;
}
.c-bar.std { background: var(--gold); }
.c-bar.fancy { background: rgba(232,213,163,0.5); }
.clarity-legend {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
}
.leg { display: flex; align-items: center; gap: 4px; color: rgba(245,240,232,0.5); }
.leg::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 1px; }
.leg.std::before { background: var(--gold); }
.leg.fancy::before { background: rgba(232,213,163,0.5); }

/* Shape viz */
.shape-viz { margin-top: 1rem; }
.shape-row { display: flex; gap: 12px; align-items: center; }
.shape-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  color: rgba(245,240,232,0.4);
}
.shape-circle { width: 30px; height: 30px; border: 1px solid var(--gold); border-radius: 50%; }
.shape-cushion { width: 30px; height: 28px; border: 1px solid var(--gold); border-radius: 6px; }
.shape-marquise { width: 40px; height: 22px; border: 1px solid var(--gold); border-radius: 50%; }
.shape-pear {
  width: 24px; height: 32px;
  border: 1px solid var(--gold);
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
}
.shape-princess { width: 28px; height: 28px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* Premium viz */
.premium-viz { margin-top: 1rem; display: flex; flex-direction: column; gap: 10px; }
.premium-bar-wrap { display: flex; align-items: center; gap: 10px; }
.p-label { font-size: 0.72rem; color: rgba(245,240,232,0.5); min-width: 70px; font-family: var(--font-mono); }
.premium-track {
  flex: 1;
  height: 20px;
  background: rgba(0,0,0,0.3);
  border-radius: 3px;
  overflow: hidden;
}
.premium-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}
.premium-fill.non-fancy { background: rgba(201,169,110,0.4); }
.premium-fill.fancy-col { background: linear-gradient(90deg, var(--gold), #e8d5a3); }
.p-val { font-size: 0.72rem; color: var(--gold-light); min-width: 80px; font-family: var(--font-mono); }

/* Correlation */
.corr-grid { margin: 1rem 0; }
.corr-features { display: flex; flex-direction: column; gap: 8px; }
.corr-row { display: flex; align-items: center; gap: 12px; }
.corr-feat { font-size: 0.75rem; color: rgba(245,240,232,0.6); min-width: 130px; font-family: var(--font-mono); }
.corr-bar-track {
  flex: 1;
  height: 14px;
  background: rgba(0,0,0,0.3);
  border-radius: 2px;
  overflow: hidden;
}
.corr-bar-fill { height: 100%; border-radius: 2px; }
.corr-val { font-size: 0.72rem; color: var(--gold-light); min-width: 35px; font-family: var(--font-mono); }

/* =============================================
   PREPROCESSING STEPS
   ============================================= */
.preproc-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.preproc-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s;
}
.preproc-step:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  min-width: 50px;
}
.step-body h3 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.step-body p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   FEATURE ENGINEERING
   ============================================= */
.feat-eng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.feat-eng-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.25s;
}
.feat-eng-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}
.feat-eng-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.feat-badge {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(201,169,110,0.12);
  color: var(--gold-dark);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}
.feat-code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold-dark);
  background: none;
  border: none;
  padding: 0;
}
.feat-eng-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.feat-code-block {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  overflow-x: auto;
}
.feat-code-block code {
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 0.75rem;
  padding: 0;
}
.feat-drop-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.drop-icon { font-size: 1.2rem; color: var(--gold); }

/* =============================================
   MODELING TABLES
   ============================================= */
.model-section { margin-bottom: 4rem; }
.model-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.model-section-header h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
}
.eval-badge {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(201,169,110,0.15);
  color: var(--gold-light);
  border: 1px solid rgba(201,169,110,0.25);
  padding: 4px 12px;
  border-radius: 20px;
}
.model-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201,169,110,0.2);
  margin-bottom: 1.5rem;
}
.model-table {
  width: 100%;
  border-collapse: collapse;
}
.model-table th {
  background: rgba(201,169,110,0.1);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(201,169,110,0.2);
}
.model-table td {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: rgba(245,240,232,0.7);
  border-bottom: 1px solid rgba(201,169,110,0.08);
}
.model-table tr:last-child td { border-bottom: none; }
.best-row td {
  background: rgba(201,169,110,0.06);
  color: rgba(245,240,232,0.9);
}
.score-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(201,169,110,0.1);
  color: var(--gold-light);
  border: 1px solid rgba(201,169,110,0.2);
}
.score-pill.best {
  background: rgba(201,169,110,0.2);
  color: var(--gold);
  border-color: var(--gold);
}
.score-pill.low {
  background: rgba(180, 60, 60, 0.1);
  color: rgba(255,160,160,0.7);
  border-color: rgba(180,60,60,0.2);
}
.rank-badge {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--font-mono);
}
.rank-badge.gold { background: rgba(201,169,110,0.2); color: var(--gold); border: 1px solid var(--gold); }
.rank-badge.silver { background: rgba(180,180,200,0.1); color: rgba(200,200,220,0.7); border: 1px solid rgba(180,180,200,0.2); }

.kaggle-result {
  background: rgba(201,169,110,0.06);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.kaggle-badge {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
}
.kaggle-score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.k-model {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.6);
  font-family: var(--font-mono);
}
.k-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
}
.kaggle-note {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.4);
  margin: 0;
  margin-left: auto;
}

.model-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.mi-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.mi-card h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.mi-card p {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.55);
  line-height: 1.6;
}

/* =============================================
   CLUSTERING
   ============================================= */
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.cluster-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.25s;
}
.cluster-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}
.cluster-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.cluster-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}
.cluster-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.c-key { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }
.c-val { font-size: 0.82rem; font-weight: 600; color: var(--gold-dark); font-family: var(--font-mono); }
.cluster-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.75rem;
}
.cluster-conclusion {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.concl-icon { font-size: 2.5rem; color: var(--gold); }
.cluster-conclusion h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.cluster-conclusion p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   KEY TAKEAWAYS
   ============================================= */
.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.takeaway {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s;
}
.takeaway:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.t-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.takeaway h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.takeaway p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 4rem 2rem;
}
.footer-diamond {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.footer-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.footer-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-tags span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 4px 12px;
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 20px;
  color: var(--gold-light);
}

/* =============================================
   ANIMATIONS & SCROLL
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cluster-grid { grid-template-columns: repeat(2, 1fr); }
  .model-insights { grid-template-columns: repeat(2, 1fr); }
  .hero-title span { font-size: 4rem; }
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 100px 6% 60px; }
  .hero-visual { display: none; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card-wide { grid-column: span 1; }
  .preproc-steps { grid-template-columns: 1fr; }
  .feat-eng-grid { grid-template-columns: 1fr; }
  .takeaway-grid { grid-template-columns: repeat(2, 1fr); }
  .cluster-grid { grid-template-columns: repeat(2, 1fr); }
  .model-insights { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 70px 6%; }
  .section-title { font-size: 2.5rem; }
  .pipeline-steps { overflow-x: auto; }
  .hero-stats { gap: 1rem; }
}

/* =============================================
   REPORT VISUALS & PORTFOLIO DATA VIZ ADDITIONS
   ============================================= */
.report-source-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -1.5rem 0 2.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(201,169,110,0.22);
  background: rgba(201,169,110,0.06);
  color: rgba(245,240,232,0.62);
  border-radius: var(--radius-lg);
  font-size: 0.78rem;
  line-height: 1.5;
}
.report-source-note::before {
  content: '◇';
  color: var(--gold);
}
.report-figure {
  margin: 1rem 0 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,169,110,0.18);
  border-radius: var(--radius-lg);
  padding: 0.65rem;
  overflow: hidden;
}
.report-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 3px);
  background: #efe9de;
  cursor: zoom-in;
}
.report-figure figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.45;
  color: rgba(245,240,232,0.48);
}
.section:not(.section-dark) .report-figure {
  background: var(--white);
  border-color: var(--border);
}
.section:not(.section-dark) .report-figure figcaption {
  color: var(--text-muted);
}
.heatmap-proof {
  max-width: 720px;
}
.process-visual-card {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.process-visual-card .report-figure { margin: 0; }
.process-visual-copy h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0.35rem 0 0.55rem;
}
.process-visual-copy p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.mini-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.mini-label.light { color: var(--gold-light); }
.model-viz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.score-viz-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.18);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.score-viz-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1rem;
}
.score-viz-head strong {
  color: var(--cream);
  font-size: 0.95rem;
}
.viz-bar-row {
  display: grid;
  grid-template-columns: 145px 1fr 58px;
  align-items: center;
  gap: 0.75rem;
  margin: 0.68rem 0;
}
.viz-bar-row span,
.viz-bar-row b {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(245,240,232,0.62);
}
.viz-bar-row b {
  text-align: right;
  color: var(--gold-light);
  font-weight: 500;
}
.viz-track {
  height: 12px;
  background: rgba(0,0,0,0.32);
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid rgba(201,169,110,0.12);
}
.viz-fill {
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(201,169,110,0.35), var(--gold-light));
}
.viz-bar-row.best .viz-fill { background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); }
.viz-bar-row.muted .viz-fill { opacity: 0.58; }
.pdf-proof {
  margin: -0.5rem 0 1.5rem;
  border: 1px solid rgba(201,169,110,0.16);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.025);
  overflow: hidden;
}
.pdf-proof summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.pdf-proof .report-figure {
  margin: 0 1rem 1rem;
}
.cluster-grid { grid-template-columns: repeat(2, 1fr); }
.cluster-proof {
  margin-top: 1rem;
  padding: 0.45rem;
}
.cluster-proof figcaption {
  color: var(--text-muted) !important;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 4vw;
  background: rgba(20, 15, 10, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  background: #efe9de;
}
.lightbox button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201,169,110,0.35);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--gold-light);
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .model-viz-grid,
  .process-visual-card { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .viz-bar-row { grid-template-columns: 110px 1fr 48px; gap: 0.5rem; }
  .cluster-grid { grid-template-columns: 1fr; }
  .report-source-note { display: flex; margin-top: -1rem; }
  .process-visual-card { padding: 1rem; }
}
