/* =============================================
   TARA SULEIMAN — PORTFOLIO
   Palette: true black · white · violet #8B5CF6
   Type: Plus Jakarta Sans (display) · Manrope (body)
============================================= */

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

:root {
  --black: #0C0C0C;
  --black-deep: #060606;
  --purple: #8B5CF6;
  --purple-lt: #C4B5FD;
  --purple-dim: #F5F3FF;
  --purple-mid: #6D28D9;
  --white: #FFFFFF;
  --off-white: #F9F9F9;
  --grey: #6B6B6B;
  --grey-lt: #E8E8E8;
  --grey-mid: #D1D1D1;
  --text: #1A1A1A;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 40px rgba(139, 92, 246, 0.15);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* ─── TYPE ─── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--black);
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

p {
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

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

strong {
  color: var(--text);
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section-dark {
  background: var(--black-deep);
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.6rem;
}

.section-eyebrow.light {
  color: var(--purple-lt);
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-title.light {
  color: var(--white);
}

.section-sub {
  color: var(--grey);
  max-width: 580px;
  margin-bottom: 3rem;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--grey-lt);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--black);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--grey);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--black);
}

.nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 50px !important;
  font-size: 0.85rem !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--purple) !important;
  color: var(--white) !important;
}

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

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  list-style: none;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--grey-lt);
  gap: 1rem;
  background: var(--white);
}

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

.nav-mobile a {
  font-weight: 500;
  color: var(--text);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--purple);
}

.btn-ghost {
  border: 1.5px solid var(--black);
  color: var(--black);
}

.btn-ghost:hover {
  background: var(--black);
  color: var(--white);
}

/* ─── HERO ─── */
.hero {
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(139, 92, 246, 0.01) 100%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.12);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
}

.hero-headline {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-headline .accent {
  color: var(--purple);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-stack span {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  background: var(--off-white);
  border: 1px solid var(--grey-lt);
  color: var(--grey);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
}

.hero-scroll-hint {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--grey-mid);
}

/* ─── PROJECT GRID ─── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--grey-lt);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--grey-mid);
}

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

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: 0.1em;
}

.project-industry {
  font-size: 0.72rem;
  color: var(--grey);
  font-weight: 500;
}

.project-card h3 {
  font-size: 1.15rem;
  color: var(--black);
  margin: 0;
}

.project-card p {
  font-size: 0.88rem;
  color: var(--grey);
  flex: 1;
  margin: 0;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-display);
  background: var(--off-white);
  color: var(--black);
  border: 1px solid var(--grey-lt);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.project-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple);
  margin-top: auto;
  font-family: var(--font-display);
}

/* ─── SCHOOL PROJECTS ─── */
.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.school-card {
  background: var(--white);
  border: 1px solid var(--grey-lt);
  border-left: 3px solid var(--purple);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.school-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.school-badge {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--purple-dim);
  color: var(--purple);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.school-github {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple);
  font-family: var(--font-display);
  transition: opacity var(--transition);
}

.school-github:hover {
  opacity: 0.65;
}

.school-card h3 {
  font-size: 1.05rem;
  color: var(--black);
  margin: 0;
}

.school-card p {
  font-size: 0.86rem;
  color: var(--grey);
  margin: 0;
  flex: 1;
}

/* ─── SKILLS SECTION ─── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.skill-group h4 {
  color: var(--white);
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skill-group p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
  line-height: 1.7;
  margin: 0;
}

/* ─── RECOMMENDATION ─── */
.section-rec {
  background: var(--off-white);
  border-top: 1px solid var(--grey-lt);
  border-bottom: 1px solid var(--grey-lt);
  padding: 5rem 0;
}

.rec-inner {
  max-width: 820px;
  margin: 0 auto;
}

.rec-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.rec-star {
  color: #F59E0B;
  font-size: 1.1rem;
}

.rec-card {
  position: relative;
}

.rec-quote {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--purple);
  line-height: 0.7;
  margin-bottom: 1rem;
  opacity: 0.2;
  font-weight: 800;
}

.rec-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
  margin-bottom: 2rem;
}

.rec-divider {
  width: 40px;
  height: 2px;
  background: var(--purple);
  margin-bottom: 1.5rem;
}

.rec-author {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.rec-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rec-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--black);
}

.rec-role {
  font-size: 0.82rem;
  color: var(--grey);
}

.rec-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.rec-source {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--purple-dim);
  color: var(--purple);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
}

.rec-project {
  font-size: 0.78rem;
  color: var(--grey);
}

.rec-ratings {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-lt);
  flex-wrap: wrap;
}

.rec-rating-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rec-rating-label {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rec-rating-stars {
  display: flex;
  gap: 2px;
}

.rec-rating-stars span {
  color: #F59E0B;
  font-size: 0.85rem;
}

/* ─── ABOUT STRIP ─── */
.about-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-strip-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.about-strip-text .btn {
  margin-top: 1.5rem;
}

.about-strip-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-lt);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--grey);
  font-weight: 500;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--black-deep);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--purple-lt);
}

/* ─── PROJECT PAGES ─── */
.project-hero {
  background: var(--black-deep);
  padding: 6rem 0 4rem;
}

.project-hero .container {
  max-width: 900px;
}

.project-hero h1 {
  color: var(--white);
  margin: 1rem 0;
}

.project-hero-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  max-width: 680px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
  transition: color var(--transition);
  font-weight: 500;
}

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

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-lt);
}

.meta-item span:not(.meta-label) {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}

.project-content {
  max-width: 860px;
}

.project-section {
  margin-bottom: 4rem;
}

.project-section h2 {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.project-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  background: var(--purple);
  border-radius: 2px;
}

/* Pipeline */
.pipeline-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: var(--white);
  border: 1px solid var(--grey-lt);
  padding: 1rem 0.9rem;
  border-radius: var(--radius-sm);
  min-width: 100px;
  text-align: center;
}

.pipeline-icon {
  font-size: 1.4rem;
}

.pipeline-label {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--black);
}

.pipeline-desc {
  font-size: 0.68rem;
  color: var(--grey);
}

.pipeline-arrow {
  color: var(--purple);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Tables */
.score-table {
  border: 1px solid var(--grey-lt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 1rem;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr 2fr 80px;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--grey-lt);
  font-size: 0.88rem;
}

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

.score-row.header {
  background: var(--off-white);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  font-family: var(--font-display);
}

.score-pts {
  font-weight: 800;
  color: var(--purple);
  text-align: right;
  font-family: var(--font-display);
}

/* Dashboard pages */
.dashboard-pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-page {
  background: var(--white);
  border: 1px solid var(--grey-lt);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.dash-num {
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dash-page h4 {
  margin: 0.4rem 0 0.5rem;
  font-size: 0.92rem;
}

.dash-page p {
  font-size: 0.82rem;
  color: var(--grey);
  margin: 0;
}

/* Screenshots */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.screenshot-grid.single {
  grid-template-columns: 1fr;
  max-width: 680px;
}

figure {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

figcaption {
  font-size: 0.76rem;
  color: var(--grey);
  text-align: center;
}

figure img {
  border: 1px solid var(--grey-lt);
  width: 100%;
}

/* Impact */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.impact-card {
  background: var(--off-white);
  border: 1px solid var(--grey-lt);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.impact-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--black);
}

.impact-label {
  font-size: 0.8rem;
  color: var(--grey);
}

/* Segments */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.segment-card {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-lt);
  border-top: 3px solid;
}

.seg-green {
  border-top-color: #10B981;
}

.seg-red {
  border-top-color: #EF4444;
}

.seg-gold {
  border-top-color: #F59E0B;
}

.seg-blue {
  border-top-color: var(--purple);
}

.seg-size {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--grey);
  font-family: var(--font-display);
}

.segment-card h4 {
  margin: 0.4rem 0 0.5rem;
  color: var(--black);
}

.segment-card p {
  font-size: 0.83rem;
  color: var(--grey);
  margin-bottom: 0.75rem;
}

.seg-action {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple);
  font-family: var(--font-display);
}

/* State comparison P3 */
.state-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.state-box {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-lt);
}

.state-current {
  background: #FFF5F5;
}

.state-future {
  background: #F5F3FF;
}

.state-box h4 {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.state-box ul {
  padding-left: 1.1rem;
}

.state-box li {
  font-size: 0.83rem;
  color: var(--grey);
  margin-bottom: 0.4rem;
}

.state-arrow {
  font-size: 1.8rem;
  color: var(--purple);
  display: flex;
  align-items: center;
  padding-top: 3rem;
}

/* Router paths P3 */
.router-paths {
  border: 1px solid var(--grey-lt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1.5rem 0;
}

.router-header,
.router-footer {
  background: var(--black);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  font-family: var(--font-display);
}

.router-footer {
  background: var(--purple);
}

.router-path {
  display: grid;
  grid-template-columns: 2fr auto 3fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--grey-lt);
  font-size: 0.84rem;
}

.path-condition {
  font-weight: 700;
  color: var(--black);
  font-family: var(--font-display);
}

.path-arrow {
  color: var(--purple);
  font-weight: 700;
}

.path-action {
  color: var(--grey);
}

.path-enterprise,
.path-billing,
.path-critical,
.path-standard {
  background: var(--off-white);
}

/* Decisions P2 */
.decision-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.decision {
  background: var(--white);
  border: 1px solid var(--grey-lt);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.decision h4 {
  color: var(--black);
  margin-bottom: 0.4rem;
}

.decision p {
  font-size: 0.86rem;
  margin: 0;
}

/* Feature table P4 */
.feature-table {
  border: 1px solid var(--grey-lt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1.5rem 0;
}

.feat-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 2fr;
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid var(--grey-lt);
  font-size: 0.86rem;
}

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

.feat-row.header {
  background: var(--off-white);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  font-family: var(--font-display);
}

.feat-row.kept {
  background: #F5F3FF;
}

.feat-row.dropped {
  background: #FFF5F5;
}

/* Dataset stats P4 */
.dataset-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.ds-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ds-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
}

.ds-label {
  font-size: 0.78rem;
  color: var(--grey);
}

/* Model comparison P4 */
.model-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.model-card {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-lt);
}

.model-winner {
  border-color: var(--purple);
  background: var(--purple-dim);
}

.model-loser {
  background: #FFF5F5;
  border-color: #FECACA;
}

.model-card h4 {
  margin-bottom: 0.4rem;
}

.model-auc {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.model-winner .model-auc {
  color: var(--purple);
}

/* Insights P4 */
.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.insight {
  background: var(--white);
  border: 1px solid var(--grey-lt);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.insight h4 {
  color: var(--black);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.insight p {
  font-size: 0.84rem;
  margin: 0;
}

/* Top 10 table P4 */
.top10-table {
  border: 1px solid var(--grey-lt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1.5rem 0;
}

.t10-row {
  display: grid;
  grid-template-columns: 36px 2fr 1fr 1fr 1.2fr;
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid var(--grey-lt);
  font-size: 0.86rem;
  align-items: center;
}

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

.t10-header {
  background: var(--off-white);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  font-family: var(--font-display);
}

.t10-prob {
  font-weight: 800;
  color: var(--purple);
  font-family: var(--font-display);
}

.table-note {
  font-size: 0.78rem;
  color: var(--grey);
}

/* Project nav */
.project-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-lt);
}

/* About hero */
.about-hero {
  background: var(--black-deep);
  padding: 6rem 0 4rem;
}

.about-hero h1 {
  color: var(--white);
  margin-top: 1rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 800px;
}

.about-bio p {
  font-size: 0.98rem;
}

.about-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.detail-section {
  margin-bottom: 3rem;
}

.detail-section h3 {
  font-size: 1rem;
  color: var(--black);
  border-bottom: 1px solid var(--grey-lt);
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-item {
  margin-bottom: 1.5rem;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.detail-title {
  font-weight: 700;
  color: var(--black);
  font-size: 0.95rem;
}

.detail-date {
  font-size: 0.78rem;
  color: var(--grey);
}

.detail-sub {
  font-size: 0.82rem;
  color: var(--purple);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.detail-list {
  padding-left: 1.1rem;
}

.detail-list li {
  font-size: 0.86rem;
  color: var(--grey);
  margin-bottom: 0.35rem;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--off-white);
  border: 1px solid var(--grey-lt);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
}

.cert-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.cert-date {
  font-size: 0.76rem;
  color: var(--purple);
  font-weight: 700;
  font-family: var(--font-display);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.skill-line {
  font-size: 0.86rem;
  color: var(--grey);
  line-height: 1.65;
}

.skill-line strong {
  color: var(--black);
}

/* Coursework */
.coursework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.course-item {
  background: var(--off-white);
  border: 1px solid var(--grey-lt);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
}

.course-name {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--black);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.course-relevance {
  display: block;
  font-size: 0.76rem;
  color: var(--grey);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .about-strip {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .state-comparison {
    grid-template-columns: 1fr;
  }

  .state-arrow {
    display: none;
  }

  .model-comparison {
    grid-template-columns: 1fr;
  }

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

  .project-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .pipeline-flow {
    justify-content: center;
  }

  .t10-row {
    grid-template-columns: 28px 1.5fr 0.7fr 1fr;
  }

  .t10-row span:nth-child(4) {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .router-path {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .path-arrow {
    display: none;
  }

  .rec-author {
    flex-direction: column;
    align-items: flex-start;
  }

  .rec-meta {
    align-items: flex-start;
  }

  .rec-ratings {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3.5rem 0;
  }

  .project-hero {
    padding: 4rem 0 2.5rem;
  }

  .hero {
    padding: 4rem 0 2rem;
  }
}