/* ─── RETRO ELEGANCE — "A 1970s Swiss magazine as a UX portfolio" ─── */

:root {
  --crimson:    #b5342a;   /* aged crimson — less saturated, more ink-like */
  --crimson-dk: #7f1a11;
  --teal:       #1a6262;   /* deeper, more dignified teal */
  --teal-lt:    #247878;
  --mustard:    #ddb249;   /* aged mustard — ~15% lighter for contrast */
  --mustard-lt: #e1bd70;
  --cream:      #f0e6cc;   /* parchment — slightly more yellowed */
  --ink:        #120c06;   /* deeper warm ink, not cold black */
  --gold:       #d9ba74;   /* antique gold — lighter companion to mustard */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  line-height: 1.82;
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Paper grain — real fiber feel ────────────────────────── */
/* Lower baseFrequency (0.75) = coarser, more natural fiber.
   mix-blend-mode: multiply blends into warm sections naturally. */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.055'/%3E%3C/svg%3E");
  opacity: 0.65;
  mix-blend-mode: multiply;
}

/* ─── NAV — masthead double rule ───────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 52px; height: 62px;
  background: var(--ink);
  border-bottom: none;
  /* Double rule: thick gold over faint gold — like vintage editorial masthead */
  box-shadow:
    0 1.5px 0 rgba(217, 186, 116, 0.28),
    0 3px   0 rgba(217, 186, 116, 0.08);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 20px;
  color: var(--gold); letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }

.nav-links { display: flex; gap: 44px; list-style: none; }
.nav-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cream); opacity: 0.65;
  transition: opacity 0.25s, color 0.25s;
}
.nav-links a:hover { opacity: 1; color: var(--gold); }

.nav-links a.nav-cta {
  background: var(--mustard-lt);
  color: var(--ink);
  padding: 8px 20px;
  opacity: 1;
  letter-spacing: 0.22em;
  border-radius: 2px;
}
.nav-links a.nav-cta:hover {
  background: var(--gold);
  color: var(--ink);
  opacity: 1;
}

/* ─── SECTION 1: HERO — crimson ────────────────────────────── */
.hero {
  min-height: 100vh; padding-top: 62px;
  background: var(--crimson);   /* fallback / no-JS */
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}

/* ─── HERO BAR LIFT SYSTEM ─── */

/* Warm amber-yellow base — only visible through gaps when bars lift */
.hero-yellow-base {
  position: absolute;
  inset: 0;
  background: #d4952a;   /* brighter amber — clearly visible when bars separate */
  z-index: 0;
  pointer-events: none;
}

/* Bar stack container — bleeds 14px top/bottom so lifted edge bars
   don't leave a gap against the nav or next section */
.hero-bars {
  position: absolute;
  top: -14px; left: 0; right: 0; bottom: -14px;
  display: flex;
  flex-direction: column;
  z-index: 1;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  pointer-events: none;
}

/* Each individual strip — flat solid crimson, no gradients */
.hero-bar {
  flex: 1;
  background: var(--crimson);
  will-change: transform;
  backface-visibility: hidden;
}

/* Print-texture lines stay above bars, below content */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 3;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 59px,
      rgba(0, 0, 0, 0.07) 59px, rgba(0, 0, 0, 0.07) 60px
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.07) 0%,
      transparent 18%,
      transparent 78%,
      rgba(0, 0, 0, 0.13) 100%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 10;
  padding: 60px 68px 84px;
}

/* EYEBROW */
.eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16.5px; font-weight: 400; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--cream);   /* was 0.6 opacity → 2.65:1 on crimson; full cream = 4.83:1 */
  margin-bottom: 26px;
}

/* MASSIVE EDITORIAL NAME */
.hero-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(80px, 14vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.025em;   /* tighter — optical headline sizing */
  color: var(--cream);
  margin-bottom: 0;
  position: relative;
}

.hero-name .italic-line {
  font-style: italic;
  color: var(--mustard-lt);
  display: block;
}


/* ABOUT — multi-paragraph rhythm */
.about-left .about-body + .about-body {
  margin-top: 1.35em;
}

/* CIRCLE BADGE — stamp aesthetic */
.badge {
  position: absolute;
  width: 140px; height: 140px;
  border: 1.5px solid rgba(217, 186, 116, 0.65);  /* softer border */
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  background: rgba(18, 12, 6, 0.45);
}

.badge-inner {
  position: absolute; inset: 6px;
  border: 1px solid rgba(217, 186, 116, 0.3);
  border-radius: 50%;
}

.badge-text-top {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 7px; font-weight: 300;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--mustard-lt);
  display: block; margin-top: -14px;
}

.badge-main {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 16px;
  color: var(--cream); line-height: 1.2;
  text-align: center;
  opacity: 0.92;
}

.badge-sub {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 6.5px; font-weight: 300;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(225, 189, 112, 0.75); margin-top: 4px;
}

.badge-1 { top: 60px; right: 64px; }
.badge-2 { bottom: 80px; right: 220px; width: 110px; height: 110px; }

/* TAGLINE STRIP */
.hero-tagline-row {
  display: flex; align-items: flex-end;
  gap: 36px; margin-top: 34px;
}

.hero-tagline {
  font-family: 'DM Serif Display', serif;
  font-style: italic; font-size: clamp(16px, 2.2vw, 24px);
  color: var(--cream); line-height: 1.55;   /* was 0.82 → 3.72:1 on crimson; full cream = 4.83:1 */
  max-width: 560px;
  border-left: 2.5px solid rgba(217, 186, 116, 0.7);
  padding-left: 22px;
}

.hero-cta-group { display: flex; flex-direction: column; gap: 10px; }

/* BUTTONS — stamped type, ink-bleed hover */
.btn-retro {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14.5px; font-weight: 400; letter-spacing: 0.34em;
  text-transform: uppercase; padding: 14px 38px;
  border: 1px solid rgba(240, 230, 204, 0.65);  /* softer, not stark white */
  color: var(--cream);
  background: transparent; cursor: pointer;
  opacity: 0.92;   /* slight stamp impression */
  transition: background 0.28s ease, color 0.28s ease,
              border-color 0.28s ease, opacity 0.28s ease;
  display: inline-block; text-align: center;
}
.btn-retro:hover {
  background: rgba(217, 186, 116, 0.88);  /* muted mustard ink-bleed */
  color: var(--ink);
  border-color: transparent;
  opacity: 1;
}
.btn-retro.filled {
  background: rgba(18, 12, 6, 0.92);
  color: var(--cream);
  border-color: rgba(18, 12, 6, 0.9);
  opacity: 0.88;   /* stamped look */
}
.btn-retro.filled:hover {
  background: rgba(217, 186, 116, 0.88);
  color: var(--ink);
  border-color: transparent;
  opacity: 1;
}

/* STAT STRIP */
.stat-strip {
  display: flex; gap: 0;
  margin-top: 68px;
  border-top: 1px solid rgba(240, 230, 204, 0.18);
}
.stat-item {
  flex: 1; padding: 26px 32px;
  border-right: 1px solid rgba(240, 230, 204, 0.12);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900; line-height: 1;
  color: var(--mustard-lt);
  letter-spacing: -0.01em;
}
.stat-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px; font-weight: 400; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--cream);   /* was 0.5 → 2.25:1 on crimson; full cream = 4.83:1 */
  margin-top: 5px;
}
/* NJIT in stats row — institution label uses stat-num sizing; majors in smaller serif below */
.stat-strip-has-school .stat-item {
  min-width: 0;
}
.stat-item-school {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.stat-num-institution {
  letter-spacing: 0.02em;
}
.stat-edu-lines {
  margin-top: 10px;
  max-width: none;
}
.stat-edu-line {
  margin: 0;
  padding: 0;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.28em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--cream);
}
.stat-edu-line + .stat-edu-line {
  margin-top: 8px;
}

/* ─── MARQUEE — stately ticker ─────────────────────────────── */
.marquee {
  background: var(--mustard);
  overflow: hidden; white-space: nowrap;
  padding: 15px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.marquee-track {
  display: inline-block;
  animation: slide 32s linear infinite;  /* slower — more stately */
}
.marquee-track span {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 21px;
  color: var(--ink); padding: 0 32px;
  letter-spacing: 0.02em;
}
.marquee-track .sep {
  font-style: normal; font-weight: 900;
  color: rgba(139, 26, 18, 0.65);  /* muted crimson separator */
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── SECTION 2: WORK — teal ───────────────────────────────── */
.section-work {
  background: var(--teal);
  padding: 0 0 88px;
  position: relative; overflow: hidden;
}

.section-work::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent, transparent 79px,
      rgba(0, 0, 0, 0.05) 79px, rgba(0, 0, 0, 0.05) 80px
    );
  pointer-events: none;
}

.section-label {
  padding: 64px 68px 0;
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 60px;
}

.section-label-text {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px; font-weight: 400;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(240, 230, 204, 0.88);   /* was 0.45 → 2.38:1 on teal; 0.88 = 4.80:1 */
  white-space: nowrap;
}

.section-label-line {
  flex: 1; height: 1px;
  background: rgba(240, 230, 204, 0.18);  /* softer rule */
}

.section-title-giant {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-style: italic;
  font-size: clamp(60px, 11vw, 130px);
  line-height: 0.88; color: var(--cream);
  padding: 0 68px; margin-top: 0; margin-bottom: 64px;
  letter-spacing: -0.03em;
}

.section-title-giant .outline {
  -webkit-text-stroke: 1.5px rgba(240, 230, 204, 0.7);  /* slightly faded stroke */
  color: transparent;
  display: block;
}

/* PROJECT ROWS */
.project-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(240, 230, 204, 0.1);
  position: relative; z-index: 1;
  transition: background 0.35s;
  cursor: pointer;
}
/* anchor version — reset link defaults */
a.project-row { color: inherit; text-decoration: none; }
.project-row:hover { background: rgba(0, 0, 0, 0.08); }
.project-row.full { grid-template-columns: 1fr; }

/* .proj-link can be either <a> or <span> depending on context */
span.proj-link {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px; font-weight: 400; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--mustard-lt);
  display: flex; align-items: center; gap: 8px;
  transition: gap 0.25s;
}
span.proj-link::after { content: '→'; font-size: 14px; }

.project-visual-panel {
  min-height: 360px;
  position: relative; overflow: hidden;
}
.project-visual-panel.p1 { background: var(--crimson-dk); }
.project-visual-panel.p2 { background: #100a04; }
.project-visual-panel.p3 { background: #263820; }

/* Inner vignette on project visuals — editorial depth */
.project-visual-panel::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
}

/* Giant archival numeral */
.proj-bg-num {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 280px;
  line-height: 1; color: rgba(255, 255, 255, 0.05);
  bottom: -40px; right: -20px;
  pointer-events: none; user-select: none;
  letter-spacing: -0.04em;
}

.proj-accent-circle {
  position: absolute;
  border: 1px solid rgba(217, 186, 116, 0.22);  /* more ghosted gold */
  border-radius: 50%; pointer-events: none;
}

.proj-tag {
  position: absolute; top: 28px; left: 28px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 0.35em;
  text-transform: uppercase;
  border: 1px solid rgba(240, 230, 204, 0.5);
  color: rgba(240, 230, 204, 0.90);   /* was gold 0.85 → fails on crimson-dk panel; cream 0.90 passes on all dark panels */
  padding: 5px 14px;
  z-index: 2;
}

.project-info-panel {
  padding: 52px 56px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(240, 230, 204, 0.08);  /* very soft */
}

.proj-num-small {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: 0.42em;
  color: rgba(240, 230, 204, 0.88); margin-bottom: 18px;   /* was gold 0.8 → 2.41:1 on teal; cream 0.88 = 4.80:1 */
}

.proj-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-style: italic;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.98; color: var(--cream);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.proj-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-weight: 300; line-height: 1.82;
  color: rgba(240, 230, 204, 0.88); margin-bottom: 32px;   /* was 0.72 → 3.78:1 on teal; 0.88 = 4.80:1 */
  flex: 1;
}

.proj-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.proj-pill {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px; font-weight: 400; letter-spacing: 0.22em;   /* was 9px → illegible; 0.55 → 2.87:1 on teal */
  text-transform: uppercase; color: rgba(240, 230, 204, 0.88);  /* 0.88 = 4.80:1 on teal */
  border: 1px solid rgba(240, 230, 204, 0.35);                  /* was 0.18 → 1.2:1; 0.35 ≥ 3:1 on dark */
  padding: 4px 12px;
}

.proj-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(240, 230, 204, 0.1);
  padding-top: 22px;
}

/* Ghosted archival year — catalog label feel */
.proj-year {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 28px;
  color: rgba(240, 230, 204, 0.22);
  letter-spacing: -0.01em;
}

.proj-link {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px; font-weight: 400; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--mustard-lt);
  display: flex; align-items: center; gap: 8px;
  transition: gap 0.25s;
}
.proj-link:hover { gap: 16px; }
.proj-link::after { content: '→'; font-size: 14px; }

/* ─── SECTION 3: ABOUT — mustard ───────────────────────────── */
.section-about {
  background: var(--mustard);
  position: relative; overflow: hidden;
}

/* Diagonal hatch + corner vignettes — aged paper surface */
.section-about::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent, transparent 19px,
      rgba(0, 0, 0, 0.03) 19px, rgba(0, 0, 0, 0.03) 20px
    ),
    radial-gradient(ellipse at 0% 0%,   rgba(0,0,0,0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(0,0,0,0.07) 0%, transparent 45%);
  pointer-events: none;
}

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; z-index: 1;
}

.about-left {
  padding: 84px 68px;
  border-right: 1px solid rgba(26, 16, 8, 0.18);
}

.about-giant-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.9; color: var(--ink);
  margin-bottom: 8px; margin-top: 0;
  letter-spacing: -0.03em;
}
.about-giant-name em {
  font-style: italic; color: var(--crimson-dk);   /* was --crimson → 1.95:1 on mustard; crimson-dk = 3.31:1 (large heading text passes 3:1) */
  display: block;
}

.about-divider {
  width: 52px; height: 3px;
  background: rgba(26, 16, 8, 0.7);  /* slightly softer ink rule */
  margin: 30px 0;
}

/* Parchment panel — full-bleed left; inner text aligns with .about-giant-name */
.about-body-panel {
  margin-left: -68px;
  margin-right: 0;
  background: var(--cream);
  padding: 28px 32px 28px 68px;
  border: 1px solid rgba(26, 16, 8, 0.08);
  border-left: none;
  box-shadow: 0 2px 12px rgba(26, 16, 8, 0.06);
}

.about-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 300; line-height: 1.85;
  color: var(--ink);
}
.about-body strong { font-weight: 600; }

.skills-list {
  margin-top: 44px; display: flex; flex-direction: column; gap: 0;
  list-style: none; padding-left: 0;
}
.skill-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(26, 16, 8, 0.1);  /* softer rule */
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px; font-weight: 400; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink);
}
.skill-row::after { content: '→'; opacity: 0.35; }

.about-right {
  background: var(--ink);
  padding: 84px 60px;
  display: flex; flex-direction: column; gap: 48px;
}

.exp-section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: 0.42em;
  text-transform: uppercase; color: rgba(217, 186, 116, 0.8);
  margin: 0;
  flex-shrink: 0;
}
/* Work Experience heading — title + subtle resume control (hover reveals “View Resume”) */
.exp-heading-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
/* Vertical rhythm — no overlap (replaces negative margin pull-up) */
.about-right-exp-stack,
.recognition-block {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.recognition-block {
  padding-top: 8px;
  border-top: 1px solid rgba(240, 230, 204, 0.08);
  margin-top: 8px;
}
.exp-section-label + .exp-item {
  margin-top: 0;
}
.resume-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(217, 186, 116, 0.9);
  border: 1px solid rgba(217, 186, 116, 0.38);
  padding: 7px 12px;
  flex-shrink: 0;
  transition: background 0.22s ease, border-color 0.22s ease;
}
.resume-inline:hover,
.resume-inline:focus-visible {
  background: rgba(217, 186, 116, 0.12);
  border-color: rgba(217, 186, 116, 0.55);
}
.resume-inline-arrow {
  font-size: 14px;
  line-height: 1;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.resume-inline:hover .resume-inline-arrow,
.resume-inline:focus-visible .resume-inline-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}
.resume-inline-hint {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.28s ease, opacity 0.2s ease, margin 0.2s ease;
}
.resume-inline:hover .resume-inline-hint,
.resume-inline:focus-visible .resume-inline-hint {
  max-width: 9em;
  opacity: 1;
  margin-left: 4px;
}

.recognition-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.recognition-bullets li {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(240, 230, 204, 0.55);
  padding: 6px 0 6px 18px;
  position: relative;
  border-bottom: 1px solid rgba(240, 230, 204, 0.06);
}
.recognition-bullets li:last-child { border-bottom: none; }
.recognition-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(225, 189, 112, 0.5);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
}
.contact-email-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.contact-email-secondary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(240, 230, 204, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(225, 189, 112, 0.25);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.contact-email-secondary:hover { color: var(--cream); border-color: rgba(240, 230, 204, 0.4); }

.exp-item {
  padding-left: 24px;
  border-left: 2px solid rgba(217, 186, 116, 0.55);  /* aged mustard rule */
}
.exp-title {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 26px;
  color: var(--cream); line-height: 1.1; margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.exp-co {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(217, 186, 116, 0.75);
  margin-bottom: 4px;
}
.exp-period {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px; font-weight: 400; letter-spacing: 0.15em;   /* weight 100 at 10px is hair-thin; raised to 300 */
  color: rgba(240, 230, 204, 0.55); margin-bottom: 10px;       /* was 0.28 → 2.19:1 on ink; 0.55 = 5.26:1 */
}
.exp-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 300; line-height: 1.75;
  color: rgba(240, 230, 204, 0.55);
}
.exp-item .exp-desc {
  margin-top: 12px;
}

/* ─── SECTION 4: CONTACT — crimson ─────────────────────────── */
.section-contact {
  background: var(--crimson);
  position: relative; overflow: hidden;
  min-height: 60vh;
}

/* Two-point radial fade — aged print on textured stock */
.section-contact::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 65% 80% at 85% 55%, rgba(127, 26, 17, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 5% 10%,  rgba(100, 20, 12, 0.3) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}

.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; z-index: 1;
}

.contact-left {
  padding: 104px 68px;
  border-right: 1px solid rgba(240, 230, 204, 0.12);
}

.contact-hed {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(56px, 9vw, 110px);
  line-height: 0.88; color: var(--cream);
  letter-spacing: -0.03em; margin-bottom: 34px;
}
.contact-hed em {
  font-style: italic; color: var(--mustard-lt);
  display: block;
}

.contact-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 300; line-height: 1.75;
  color: var(--cream); max-width: 380px;   /* was 0.72 → 3.20:1 on crimson; full cream = 4.83:1 */
  margin-bottom: 44px;
}

.contact-email {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 22px;
  color: var(--mustard-lt);
  border-bottom: 1px solid rgba(225, 189, 112, 0.35);  /* softer gold rule */
  padding-bottom: 6px; display: inline-block;
  transition: color 0.25s, border-color 0.25s;
}
.contact-email:hover { color: var(--cream); border-color: rgba(240,230,204,0.5); }

.contact-right {
  padding: 104px 60px;
  display: flex; flex-direction: column; gap: 2px;
  justify-content: center;
}

.contact-right-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px; font-weight: 400; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--cream);   /* was 0.38 → 2.80:1 on crimson; full cream = 4.83:1 */
  margin-bottom: 26px;
}

.social-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 26px;
  background: rgba(18, 12, 6, 0.3);  /* softer ink tint */
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cream);
  margin-bottom: 2px;
  transition: background 0.28s, color 0.28s;
  cursor: pointer;
}
.social-row:hover { background: rgba(217, 186, 116, 0.88); color: var(--ink); }
.social-row::after { content: '↗'; font-family: serif; font-size: 16px; opacity: 0.7; }

/* Contact badge */
.contact-badge {
  position: absolute;
  right: 64px; top: 80px;
  width: 150px; height: 150px;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(217, 186, 116, 0.15);  /* even softer gold rule */
  padding: 30px 68px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 20px; color: var(--gold);
  letter-spacing: 0.04em;
}
.footer-copy {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px; font-weight: 400; letter-spacing: 0.24em;   /* weight 100 → hair-thin at 10px; raised to 300 */
  color: rgba(240, 230, 204, 0.55);                             /* was 0.28 → 2.19:1 on ink; 0.55 = 5.26:1 */
}
.footer-top {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(240, 230, 204, 0.55);  /* was 0.38 → 3.09:1 on ink; 0.55 = 5.26:1 */
  transition: color 0.25s; cursor: pointer;
}
.footer-top:hover { color: var(--gold); }

/* ── Selection ──────────────────────────────────────────────── */
::selection { background: var(--mustard); color: var(--ink); }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: rgba(217, 186, 116, 0.35); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ─── INNER PAGES ───────────────────────────────────────────── */

/* Offset for fixed nav */
.page-wrap { padding-top: 62px; }

/* Back navigation link */
.page-back {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px; font-weight: 400; letter-spacing: 0.32em;
  text-transform: uppercase; color: rgba(225, 189, 112, 0.7);
  padding: 28px 68px;
  transition: color 0.2s;
}
.page-back:hover { color: var(--gold); }
.page-back::before { content: '← '; }

/* Case study / page hero panel */
.page-hero {
  background: var(--teal);
  padding: 60px 68px 80px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent, transparent 79px,
      rgba(0, 0, 0, 0.05) 79px, rgba(0, 0, 0, 0.05) 80px
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.06) 0%,
      transparent 20%,
      transparent 80%,
      rgba(0, 0, 0, 0.10) 100%
    );
  pointer-events: none;
}

.page-tag {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 0.38em;
  text-transform: uppercase;
  border: 1px solid rgba(240, 230, 204, 0.5);
  color: rgba(240, 230, 204, 0.90);   /* was gold 0.85 → 2.35:1 on teal; cream 0.90 = 5.1:1 */
  padding: 5px 16px;
  display: inline-block;
  margin-bottom: 28px;
  position: relative; z-index: 1;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-style: italic;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.88; color: var(--cream);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}

.page-subtitle {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(22px, 2.5vw, 30px);
  color: rgba(240, 230, 204, 0.88);   /* was 0.6 → fails on teal; 0.88 = 4.80:1 */
  line-height: 1.4;
  margin-bottom: 36px;
  position: relative; z-index: 1;
}

.page-summary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 300; line-height: 1.8;
  color: rgba(240, 230, 204, 0.90);   /* was 0.82 → 4.41:1 on teal (just fails); 0.90 = 5.1:1 */
  max-width: 680px;
  border-left: 2.5px solid rgba(217, 186, 116, 0.6);
  padding-left: 24px;
  position: relative; z-index: 1;
}

/* Case study body */
.page-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 68px;
}

.case-section {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(240, 230, 204, 0.07);
}
.case-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.case-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 0.44em;
  text-transform: uppercase; color: rgba(225, 189, 112, 0.75);
  margin-bottom: 20px;
}

.case-heading {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--cream); line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.case-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 300; line-height: 1.82;
  color: rgba(240, 230, 204, 0.75);
}

.case-list {
  list-style: none; padding: 0; margin: 20px 0 0;
}
.case-list li {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-weight: 300; line-height: 1.72;
  color: rgba(240, 230, 204, 0.70);
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid rgba(240, 230, 204, 0.06);
  position: relative;
}
.case-list li:last-child { border-bottom: none; }
.case-list li::before {
  content: '—';
  position: absolute; left: 0;
  color: rgba(225, 189, 112, 0.45);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px; line-height: 1.72;
}

/* Metrics grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px; margin-top: 28px;
}
.metric-item {
  background: rgba(240, 230, 204, 0.03);
  border: 1px solid rgba(240, 230, 204, 0.08);
  padding: 32px 28px;
}
.metric-num {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1; color: var(--mustard-lt);
  letter-spacing: -0.02em;
}
.metric-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(240, 230, 204, 0.65);  /* was 0.5 → 4.52:1 barely passes; 0.65 = 6.06:1 */
  margin-top: 8px;
}
.metric-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 300; line-height: 1.6;
  color: rgba(240, 230, 204, 0.65); margin-top: 8px;           /* was 0.5 → raised for comfortable safety margin */
}

/* Prototype link button */
.proto-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14.5px; font-weight: 400; letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid rgba(225, 189, 112, 0.5);
  color: var(--mustard-lt);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  margin-top: 24px;
  opacity: 0.92;
}
.proto-link:hover {
  background: rgba(217, 186, 116, 0.88);
  color: var(--ink);
  border-color: transparent;
  opacity: 1;
}
.proto-link::after { content: '↗'; font-size: 14px; }

/* Tags row */
.tags-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag-pill {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px; font-weight: 400; letter-spacing: 0.22em;   /* was 9px → illegible; raised to 11px */
  text-transform: uppercase; color: rgba(240, 230, 204, 0.65);  /* was 0.5 → 4.52:1 barely passes on ink; 0.65 = 6.06:1 */
  border: 1px solid rgba(240, 230, 204, 0.35);                  /* was 0.15 → ~1.2:1 border; raised for UI component contrast */
  padding: 5px 14px;
}

/* Two-column sub-grid for research / insights */
.case-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; margin-top: 24px;
}
.case-col-block {
  background: rgba(240, 230, 204, 0.03);
  border: 1px solid rgba(240, 230, 204, 0.07);
  padding: 28px 24px;
}
.case-col-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 0.38em;
  text-transform: uppercase; color: rgba(225, 189, 112, 0.75);
  margin-bottom: 16px;
}

/* Projects listing page */
.proj-listing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.proj-listing-card {
  display: block;
  padding: 52px 48px;
  background: rgba(240, 230, 204, 0.03);
  border: 1px solid rgba(240, 230, 204, 0.07);
  transition: background 0.3s;
  text-decoration: none;
}
.proj-listing-card:hover { background: rgba(240, 230, 204, 0.07); }
.proj-listing-card.c1 {
  background: rgba(127, 26, 17, 0.38);   /* matches project panel p1 / crimson-dk tint */
}
.proj-listing-card.c1:hover { background: rgba(127, 26, 17, 0.54); }
.proj-listing-card.c2 {
  background: rgba(16, 10, 4, 0.55);     /* matches p2 — near ink */
}
.proj-listing-card.c2:hover { background: rgba(16, 10, 4, 0.72); }
.proj-listing-card.c3 {
  background: rgba(38, 56, 32, 0.55);    /* matches p3 — forest */
  grid-column: 1 / -1;
}
.proj-listing-card.c3:hover { background: rgba(38, 56, 32, 0.72); }
.proj-listing-num {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 0.38em;
  text-transform: uppercase; color: rgba(225, 189, 112, 0.75);
  margin-bottom: 16px;
}
.proj-listing-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-style: italic;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.96; color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.proj-listing-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 300; line-height: 1.75;
  color: rgba(240, 230, 204, 0.62);
  margin-bottom: 24px;
}
.proj-listing-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(240, 230, 204, 0.08);
  padding-top: 18px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px; font-weight: 400; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(225, 189, 112, 0.7);
}
.proj-listing-footer::after { content: '→'; font-size: 12px; }

/* ─── CASE STUDY BOTTOM NAVIGATION — Nielsen H3 ─────────────── */
.case-bottom-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 48px 68px;
  border-top: 1px solid rgba(240, 230, 204, 0.1);
  margin-top: 80px;
  flex-wrap: wrap; gap: 16px;
}
.case-bottom-nav a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14.5px; font-weight: 400; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(240, 230, 204, 0.80);
  transition: color 0.25s;
}
.case-bottom-nav a:hover { color: var(--gold); }
.case-bottom-nav .nav-back { color: rgba(225, 189, 112, 0.88); }
.case-bottom-nav .nav-back:hover { color: var(--gold); }
@media (max-width: 900px) {
  .case-bottom-nav { padding: 32px 24px; }
}

/* ─── SKIP NAVIGATION — WCAG 2.4.1 ─────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 28px;
  background: var(--mustard-lt);
  color: var(--ink);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  z-index: 10000;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ─── ACTIVE NAV STATE — Nielsen H1 ─────────────────────────── */
.nav-links a.active {
  opacity: 1;
  color: var(--gold);
}
.nav-links a.nav-cta.active {
  color: var(--ink);
  background: var(--gold);
  opacity: 1;
}

/* ─── FOCUS VISIBLE — WCAG 2.4.7 ────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--mustard-lt);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
.btn-retro:focus-visible,
.social-row:focus-visible,
.project-row:focus-visible,
.proj-listing-card:focus-visible,
.nav-links a.nav-cta:focus-visible {
  outline: 2px solid var(--mustard-lt);
  outline-offset: 3px;
}

/* ─── BADGE TEXT — readable sizes ───────────────────────────── */
.badge-text-top {
  font-size: 9px;   /* was 7px → unreadable; badges also receive aria-hidden in HTML */
}
.badge-sub {
  font-size: 9px;   /* was 6.5px → unreadable */
}

/* ─── REDUCED MOTION — WCAG 2.2.2 ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-bar      { transform: none !important; will-change: auto; }
  html           { scroll-behavior: auto; }
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .hero-inner, .section-label, .section-title-giant,
  .about-left, .contact-left, .contact-right, footer { padding-left: 24px; padding-right: 24px; }
  .project-row, .about-grid, .contact-inner { grid-template-columns: 1fr; }
  .project-info-panel { border-left: none; border-top: 1px solid rgba(240,230,204,0.1); }
  .about-right { padding: 60px 24px; }
  .about-body-panel {
    margin-left: -24px;
    padding: 22px 20px 22px 24px;
    border-left: none;
  }
  .stat-strip { flex-wrap: wrap; }
  .stat-strip-has-school .stat-item:not(.stat-item-school) {
    flex: 1 1 42%;
    min-width: min(260px, 46%);
    box-sizing: border-box;
  }
  .stat-strip-has-school .stat-item-school {
    flex: 1 1 100%;
    min-width: 100%;
    border-right: none;
    border-top: 1px solid rgba(240, 230, 204, 0.12);
    padding-top: 26px;
  }
  .hero-tagline-row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .hero-cta-group {
    align-self: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .about-right-exp-stack,
  .recognition-block { gap: 22px; }
  /* inner pages */
  .page-back, .page-hero { padding-left: 24px; padding-right: 24px; }
  .page-body { padding-left: 24px; padding-right: 24px; }
  .case-two-col, .proj-listing-grid { grid-template-columns: 1fr; }
}
