/* ============================================================
   CHRISTOPHER PERRY PORTFOLIO — INDEX PAGE STYLES
   Page-specific styles for index.html.

/* LinkedIn nav button — icon-only pill */
.nav-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}
.nav-linkedin svg { display: block; }
   Requires design-system.css to be loaded first (tokens,
   reset, nav, footer, buttons, section utilities, reveal).
   ============================================================ */


/* ─── LIGHT THEME: INDEX-SPECIFIC OVERRIDES ────────────────── */

/* Hero — gradient fades to the section's own background (M1a token) */
html[data-theme="light"] #hero::after {
  background:
    linear-gradient(to right, var(--section-bg-hero) 36%, transparent 62%),
    linear-gradient(to top,   var(--section-bg-hero) 0%,  transparent 30%);
}
html[data-theme="light"] .hero-name {
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-bright) 45%, var(--rust-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About */
html[data-theme="light"] .about-cell:hover { background: var(--deep); }
html[data-theme="light"] .about-cell::after {
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(151,84,84,0.07) 0%, transparent 60%);
}

/* Skills */
html[data-theme="light"] .fit-bar-track { background: var(--faint); }
html[data-theme="light"] .role-pill {
  background: var(--faint);
  color: var(--muted);
}
html[data-theme="light"] .deco-mark { color: var(--faint); }

/* Work */
html[data-theme="light"] .project-overlay {
  background: linear-gradient(to top, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.35) 55%, transparent 100%);
}
html[data-theme="light"] .project-title  { color: var(--white); text-shadow: 0 1px 3px rgba(255,255,255,0.6); }
html[data-theme="light"] .project-number { color: var(--white); text-shadow: 0 1px 3px rgba(255,255,255,0.6); }
html[data-theme="light"] .project-tag {
  background: var(--muted);
  color: var(--gold-bright);
}

/* Proof / Tabs */
html[data-theme="light"] .stab        { background: var(--void); }
html[data-theme="light"] .stab.active { background: var(--surface); }
html[data-theme="light"] .showcase-panel { background: var(--deep); border-color: var(--border); }

/* Eval cards */
html[data-theme="light"] .eval-verdict { color: rgba(53,24,24,0.8); }
html[data-theme="light"] .insight-item.bad,
html[data-theme="light"] .insight-item.good { color: rgba(53,24,24,0.75); }
html[data-theme="light"] .flagged { background: rgba(208,96,96,0.08); }
html[data-theme="light"] .eval-card-body p { color: var(--white); }

/* Approach */
html[data-theme="light"] .approach-step:hover { background: var(--panel); }
html[data-theme="light"] .approach-step::before {
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(151,84,84,0.07) 0%, transparent 65%);
}

/* Contact form */
html[data-theme="light"] .form-input,
html[data-theme="light"] .form-textarea {
  background: var(--glass);
  color: var(--white);
  border-color: rgba(53,24,24,0.14);
}
html[data-theme="light"] .form-input::placeholder,
html[data-theme="light"] .form-textarea::placeholder { color: rgba(53,24,24,0.3); }


/* ─── KEYFRAMES (index-specific) ───────────────────────────── */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }


/* ─── HERO ──────────────────────────────────────────────────── */
#hero {
  --hero-edge: max(48px, calc((100% - 1200px) / 2 + 48px));
  min-height: clamp(620px, 88vh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 90px var(--hero-edge) 140px var(--hero-edge);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#hero-canvas {
  position: absolute;
  top: 0; right: var(--hero-edge);
  width: min(46vw, 640px);
  height: 100%;
  pointer-events: none;
  z-index: 0;
  /* S1 — drop opacity so the illustration recedes behind the name lockup */
  opacity: 0.38;
}

#hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to right, var(--section-bg-hero) 36%, transparent 62%),
    linear-gradient(to top,   var(--section-bg-hero) 0%, transparent 30%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-name {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: 0.03em;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.4s forwards;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-bright) 48%, var(--white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-name .name-italic {
  font-weight: 200;
  font-style: italic;
  display: block;
  background: none;
  -webkit-text-fill-color: var(--gold);
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: 0.92em;
  letter-spacing: -0.01em;
}

.hero-role-wrap {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.62s forwards;
}
.hero-role-static {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(0.9rem, 1.45vw, 1.15rem);
  color: var(--muted);
  white-space: nowrap;
}
.hero-cycle-wrap {
  position: relative;
  height: 1.65em;
  min-width: 320px;
  overflow: hidden;
}
.cycle-word {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.45vw, 1.15rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.48s ease, transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}
.cycle-word.active { opacity: 1; transform: translateY(0); }
.cycle-word.exit   { opacity: 0; transform: translateY(-110%); transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.7, 0, 1, 0.6); }

.hero-tagline {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: var(--fs-body-lg);
  color: var(--muted);
  margin-top: 22px;
  max-width: 540px;
  line-height: var(--lh-relaxed);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.84s forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.04s forwards;
}

.hero-disciplines {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.24s forwards;
}
.hero-disciplines span {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232,228,220,0.28);
}
.disc-sep { color: rgba(200,169,110,0.4) !important; }

/* S1 — Hero rebuild additions
   ──────────────────────────── */

/* Punchier primary CTA — used on the hero to make it the most
   visually prominent interactive element on the page. */
.btn-primary--lg {
  font-size: var(--fs-label-lg);   /* 13px vs default 0.72rem */
  padding: 18px 36px;              /* min 48px tall (per S8/S1 plan) */
  letter-spacing: 0.22em;
}

/* Secondary text link sitting under the CTA buttons. */
.hero-contact-link {
  font-family: 'DM Mono', monospace;
  font-size: var(--fs-small);      /* 14px */
  color: var(--muted);
  margin-top: 16px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.16s forwards;
}
.hero-contact-link a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
}
.hero-contact-link a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}


/* ─── ABOUT / INTERSECTION ──────────────────────────────────── */
#about { background: var(--deep); }

/* S3 — Split layout: heading + diagram LEFT, context RIGHT */
.intersection-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 72px;
}

.intersection-axis-label {
  font-family: 'DM Mono', monospace;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
  margin-top: 12px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.intersection-diagram {
  max-width: 320px;
  margin-top: 8px;
  opacity: 0.9;
}
.intersection-diagram svg { width: 100%; height: auto; }

.intersection-right {
  padding-top: 72px; /* visually aligns with section-title on the left */
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (max-width: 1024px) {
  .intersection-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .intersection-right { padding-top: 0; }
  .intersection-diagram { max-width: 260px; }
}

/* Legacy about-header — retained for any remaining uses */
.about-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 52px;
}
.about-intro {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  color: var(--muted);
  max-width: 340px;
  line-height: 1.72;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.about-cell {
  background: var(--surface);
  padding: 44px 38px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s, border-color 0.4s;
}
.about-cell::before {
  content: attr(data-num);
  position: absolute;
  top: 12px; right: 22px;
  font-family: 'Cinzel', serif;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
  color: var(--faint);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.about-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(200,169,110,0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.about-cell:hover { background: var(--panel); }
.about-cell:hover::after { opacity: 1; }

.about-cell h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.about-cell p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.about-cell p + p { margin-top: 10px; font-size: 0.82rem; }

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.about-skill-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: 40px;
  transition: background 0.25s, border-color 0.25s;
  cursor: default;
}
.about-skill-tag:hover {
  background: var(--gold-dim);
  border-color: rgba(200,169,110,0.35);
}

@media (max-width: 1024px) {
  .about-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-cell { padding: 32px 24px; }
}


/* ─── SKILLS MAP ────────────────────────────────────────────── */
#skills { background: var(--bg); }

.map-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-prime   { background: var(--rust); }
.dot-strong  { background: var(--gold); }
.dot-grow    { background: var(--teal); }
.dot-stretch { background: #3d6b8c; }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 26px 24px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: box-shadow 0.3s, transform 0.3s, opacity 0.5s, border-color 0.3s;
}
.skill-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  transform: translateY(-2px);
  border-color: var(--glass-border);
}
.skill-card.visible { opacity: 1; transform: translateY(0); }

.skill-card.prime   { border-left: 3px solid var(--rust); }
.skill-card.strong  { border-left: 3px solid var(--gold); }
.skill-card.grow    { border-left: 3px solid var(--teal); }
.skill-card.stretch { border-left: 3px solid #3d6b8c; }

.skill-card.star {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--panel);
  border-left: none;
  border-top: 3px solid var(--rust);
  padding: 32px;
}
.star-badge {
  position: absolute;
  top: 18px; right: 22px;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  border: 1px solid var(--rust);
  padding: 3px 8px;
  border-radius: 2px;
}

.deco-mark {
  position: absolute;
  font-family: 'Cinzel', serif;
  font-size: clamp(48px, 9vw, 100px);
  font-weight: 900;
  color: rgba(255,255,255,0.022);
  right: -8px; top: -16px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.skill-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
  margin-bottom: 6px;
}
.skill-name {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}
.skill-card.star .skill-name { font-size: 1.35rem; }
.skill-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 14px;
}
.skill-desc {
  font-size: 0.78rem;
  line-height: 1.82;
  color: var(--muted);
  margin-bottom: 14px;
}

.dyslexia-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(196,87,42,0.1);
  color: var(--rust);
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.fit-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
  margin-bottom: 5px;
}
.fit-bar-track {
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
}
.fit-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.2s ease 0.3s;
  width: 0;
}
.prime  .fit-bar-fill,
.star   .fit-bar-fill { background: var(--rust); }
.strong .fit-bar-fill { background: var(--gold); }
.grow   .fit-bar-fill { background: var(--teal); }
.stretch .fit-bar-fill { background: #3d6b8c; }

.roles-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
  margin-bottom: 7px;
}
.role-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.role-pill {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  padding: 3px 9px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.insight-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
  border-radius: 4px;
}
.insight-col h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.insight-col ul { list-style: none; }
.insight-col ul li {
  font-size: 0.75rem;
  line-height: 1.85;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}
.insight-col ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--rust);
  font-size: 0.6rem;
}

@media (max-width: 1024px) {
  .skills-grid     { grid-template-columns: 1fr 1fr; }
  .skill-card.star { grid-template-columns: 1fr 1fr; }
  .insight-panel   { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .skills-grid     { grid-template-columns: 1fr; }
  .skill-card.star { grid-template-columns: 1fr; }
  .star-badge      { position: static; margin-bottom: 10px; display: inline-block; }
}


/* ─── WORK / PROJECTS ───────────────────────────────────────── */
#work { background: var(--void); }

.work-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
  gap: 24px;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
  margin-bottom: 72px;
}

.work-item {
  background: var(--deep);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  transition: background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.work-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}
.work-item:hover { background: var(--surface); border-color: var(--glass-border); }
.work-item:hover::before { transform: scaleY(1); }

.work-num {
  padding: 36px 20px;
  border-right: 1px solid var(--border);
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--faint);
  text-align: center;
  flex-shrink: 0;
}
.work-content { padding: 34px 36px; }

.work-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.75;
}
.work-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: var(--white);
}
.work-desc {
  font-size: 0.8rem;
  line-height: 1.82;
  color: var(--muted);
  max-width: 560px;
}

.work-meta {
  padding: 36px 36px 36px 16px;
  text-align: right;
  flex-shrink: 0;
}
.work-skills {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}
.work-skill-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
  border-radius: 2px;
}
.work-arrow {
  font-size: 1.1rem;
  color: var(--gold-dim);
  margin-top: 14px;
  display: block;
  transition: color 0.3s, transform 0.3s;
  text-align: right;
}
.work-item:hover .work-arrow { color: var(--gold); transform: translateX(4px); }

/* In-Progress badge */
.work-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.work-badge--wip {
  color: #5a9e9e;
  border: 1px solid rgba(90,158,158,0.28);
  background: rgba(90,158,158,0.06);
}
.work-badge--wip::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5a9e9e;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* WIP work-item — slightly receded until hovered */
.work-item--wip { opacity: 0.72; }
.work-item--wip:hover { opacity: 1; }

/* S2 — Case Study Index label (replaces work-visual-label) */
.work-index-label {
  font-family: 'DM Mono', monospace;
  font-size: var(--fs-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 64px;
  margin-bottom: 24px;
}
.work-index-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--border);
}
.work-index-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 64px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}
.project-card:hover { transform: translateY(-6px); border-color: var(--glass-border); }

.project-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), filter 0.5s;
  filter: grayscale(20%);
}
.project-card:hover .project-image { transform: scale(1.05); filter: grayscale(0%); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,8,0.97) 0%, rgba(6,6,8,0.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}

.project-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.project-title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 6px;
}
.project-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.project-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 3px 9px;
  border-radius: 20px;
}
.project-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.4s;
}
.project-card:hover .project-desc { max-height: 80px; opacity: 1; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.project-card:hover .project-link { opacity: 1; transform: translateY(0); }
.project-link::after { content: '→'; transition: transform 0.2s; }
.project-link:hover::after { transform: translateX(4px); }

/* Featured card — spans full grid width */
.project-card--featured {
  grid-column: 1 / -1;
}
.project-card--featured .project-image {
  height: 320px;
  object-fit: contain;
  background: #08080f;
}

/* Heumen branded placeholder (no product screenshot available yet) */
.heumen-hero-img {
  width: 100%;
  height: 320px;
  display: block;
  background:
    radial-gradient(ellipse 55% 80% at 72% 38%, rgba(200,169,110,0.13) 0%, transparent 62%),
    radial-gradient(ellipse 35% 45% at 18% 72%, rgba(200,169,110,0.04) 0%, transparent 50%),
    var(--void);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), filter 0.5s;
}
.project-card:hover .heumen-hero-img { transform: scale(1.02); }

@media (max-width: 1024px) {
  .work-item           { grid-template-columns: 56px 1fr; }
  .work-meta           { display: none; }
  .projects-grid       { grid-template-columns: 1fr 1fr; }
  .work-section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .work-num      { padding: 24px 14px; }
  .work-content  { padding: 24px 20px; }
}


/* ─── PROOF OF WORK ─────────────────────────────────────────── */
#proof { background: var(--deep); }

.showcase-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  margin-bottom: 0;
}
.stab {
  flex: 1;
  padding: 15px 12px;
  background: var(--void);
  border: none;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.stab:last-child { border-right: none; }
.stab:hover { color: var(--gold); }
.stab.active {
  background: var(--surface);
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.showcase-panel {
  display: none;
  background: var(--deep);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 4px 4px;
}
.showcase-panel.active { display: block; }

.panel-hero {
  padding: 38px 48px 30px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.panel-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.panel-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--white);
}
.panel-desc {
  font-size: 0.82rem;
  line-height: 1.82;
  color: var(--muted);
  max-width: 520px;
  font-style: italic;
}
.panel-num {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--faint);
  line-height: 1;
}

.panel-body { padding: 34px 48px 46px; }
.demo-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 100px;
}

.eval-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.eval-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.eval-card-header {
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.ai-tag {
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.58rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.1em;
}
.ai-tag.correct { background: rgba(90,158,158,0.12);  color: var(--teal); }
.ai-tag.wrong   { background: rgba(208,96,96,0.12);   color: #d06060; }
.ai-tag.tricky  { background: rgba(200,169,110,0.12); color: var(--gold); }
.eval-card-body { padding: 18px; }
.eval-card-body p { font-size: 0.8rem; line-height: 1.78; color: var(--white); }
.flagged     { background: rgba(208,96,96,0.1); border-left: 2px solid #d06060; padding: 1px 6px; border-radius: 0 2px 2px 0; }
.silent-fail { border-bottom: 1px dashed var(--gold); }
.eval-verdict {
  margin-top: 14px; padding: 11px 13px; border-radius: 3px;
  font-size: 0.75rem; line-height: 1.72;
}
.verdict-wrong { background: rgba(208,96,96,0.06);  border: 1px solid rgba(208,96,96,0.15);  color: rgba(232,228,220,0.8); }
.verdict-right { background: rgba(90,158,158,0.06); border: 1px solid rgba(90,158,158,0.15); color: rgba(232,228,220,0.8); }
.verdict-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 5px;
}
.verdict-wrong .verdict-label { color: #d06060; }
.verdict-right .verdict-label { color: var(--teal); }

.chat-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
}
.chat-header {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  color: var(--gold);
  flex-shrink: 0;
}
.chat-name   { font-size: 0.78rem; font-weight: 600; color: var(--white); }
.chat-status {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--teal);
  display: flex; align-items: center; gap: 4px;
}
.status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease infinite;
}
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 13px; }
.msg { display: flex; gap: 9px; max-width: 88%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.ai   { align-self: flex-start; }
.msg-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 600;
  margin-top: 2px;
}
.msg.user .msg-avatar { background: rgba(139,114,224,0.15); color: #8b72e0; border: 1px solid rgba(139,114,224,0.2); }
.msg.ai   .msg-avatar { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--gold-dim); }
.msg-bubble { padding: 10px 14px; border-radius: 10px; font-size: 0.8rem; line-height: 1.72; }
.msg.user .msg-bubble { background: rgba(139,114,224,0.1);  border: 1px solid rgba(139,114,224,0.15); border-top-right-radius: 2px; }
.msg.ai   .msg-bubble { background: var(--panel); border: 1px solid var(--border); border-top-left-radius: 2px; }
.handoff-moment {
  display: block; margin-top: 8px; padding: 7px 11px;
  background: rgba(200,169,110,0.07);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.08em;
  color: var(--gold);
}

.annotation-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 22px;
  margin-top: 20px;
}
.annotation-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.annotation-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.annotation-list li {
  font-size: 0.78rem; line-height: 1.72; color: var(--muted);
  padding-left: 14px; position: relative;
}
.annotation-list li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-size: 0.6rem; }

.product-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; margin-bottom: 20px;
}
.product-col { background: var(--surface); padding: 26px 24px; }
.product-col-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.product-col-label.without { color: #d06060; }
.product-col-label.with    { color: var(--teal); }
.product-scenario { font-size: 0.78rem; line-height: 1.82; color: var(--muted); margin-bottom: 14px; }
.product-insights { display: flex; flex-direction: column; gap: 8px; }
.insight-item { padding: 9px 13px; border-radius: 3px; font-size: 0.75rem; line-height: 1.68; }
.insight-item.bad  { background: rgba(208,96,96,0.06);  border-left: 2px solid #d06060;    color: rgba(232,228,220,0.7); }
.insight-item.good { background: rgba(90,158,158,0.06); border-left: 2px solid var(--teal); color: rgba(232,228,220,0.7); }

.ctx-map {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px;
  overflow: hidden;
}
.ctx-canvas { position: relative; height: 340px; }
.ctx-node {
  position: absolute; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; cursor: pointer;
  transition: transform 0.3s;
}
.ctx-node:hover { transform: scale(1.1); z-index: 10; }
.ctx-center {
  width: 110px; height: 110px;
  background: rgba(200,169,110,0.1);
  border: 1px solid var(--gold-dim);
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  z-index: 5;
}
.ctx-center .ctx-inner { color: var(--gold); font-size: 0.62rem; }
.ctx-orbit-node {
  width: 76px; height: 76px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.ctx-orbit-node.selected { background: rgba(139,114,224,0.12); border-color: rgba(139,114,224,0.3); }
.ctx-inner {
  font-family: 'DM Mono', monospace;
  font-size: 0.56rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px;
  text-align: center; line-height: 1.4; color: var(--muted);
}
.ctx-orbit-node.selected .ctx-inner { color: #8b72e0; }
.ctx-info-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 22px; margin-top: 16px;
  font-size: 0.8rem; line-height: 1.78; color: var(--muted);
  min-height: 72px; transition: all 0.3s;
}
.ctx-info-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 7px;
}

/* ─── CTX MAP — NARROW STACK (≤768px) ───────────────────────── */
@media (max-width: 768px) {
  .ctx-canvas {
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: center;
    justify-items: center;
  }
  /* Center node spans all columns and sits above the orbit grid */
  .ctx-center {
    grid-column: 1 / -1;
    position: static;
    transform: none;
    width: 96px;
    height: 96px;
    margin-bottom: 4px;
  }
  /* Override inline left/top from the orbit node elements */
  .ctx-orbit-node {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 900px) {
  .panel-hero   { grid-template-columns: 1fr; }
  .panel-num    { display: none; }
  .panel-body   { padding: 26px 24px 36px; }
  .eval-grid    { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .stab         { font-size: 0.56rem; padding: 13px 7px; }
}
@media (max-width: 640px) {
  .eval-grid    { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}


/* ─── EXPERIENCE ────────────────────────────────────────────── */
#experience { background: var(--deep); }

.experience-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  margin-top: 56px;
}
.experience-sticky {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.exp-desc {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.78;
  margin-top: 20px;
  max-width: 320px;
}
.exp-stat { margin-top: 36px; }
.exp-stat-num {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}
.exp-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex;
  gap: 26px;
  padding-bottom: 38px;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 13px; top: 30px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--glass-border), transparent);
}
.timeline-dot {
  width: 26px; min-width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  margin-top: 3px;
  transition: border-color 0.3s, background 0.3s;
  flex-shrink: 0;
}
.timeline-dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.45;
  transition: opacity 0.3s;
}
.timeline-item:hover .timeline-dot { border-color: var(--gold); }
.timeline-item:hover .timeline-dot::after { opacity: 1; }
.timeline-content { flex: 1; padding-top: 2px; }
.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 5px;
}
.timeline-role {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}
.timeline-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  margin-top: 2px;
  flex-shrink: 0;
}
.timeline-company {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 3px;
}
.timeline-location {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.55;
}
.timeline-desc {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

@media (max-width: 1024px) {
  .experience-layout { grid-template-columns: 1fr 1.4fr; gap: 32px; }
  .experience-sticky { position: relative; top: auto; }
}
@media (max-width: 640px) {
  .experience-layout { grid-template-columns: 1fr; gap: 40px; }
}


/* ─── APPROACH ──────────────────────────────────────────────── */
#approach { background: var(--void); }

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 52px;
}
.approach-step {
  padding: 40px 28px;
  border-right: 1px solid var(--border);
  background: var(--glass);
  transition: background 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}
.approach-step:last-child { border-right: none; }
.approach-step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(200,169,110,0.06) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.approach-step:hover { background: #0f0f18; }
.approach-step:hover::before { opacity: 1; }

.step-num {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--faint);
  line-height: 1;
  margin-bottom: 18px;
}
.approach-step h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.approach-step p {
  font-size: 0.8rem;
  line-height: 1.82;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .approach-steps { grid-template-columns: 1fr 1fr; border-radius: var(--radius); }
  .approach-step  { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .approach-steps { grid-template-columns: 1fr; }
  .approach-step  { border-right: none; }
}


/* ─── CONTACT ───────────────────────────────────────────────── */
/* #contact background now driven by .section--dark-anchor tier (Step 3 / M1b).
   The hardcoded `background: var(--bg)` was removed because it
   overrode the tier (ID specificity > class). */

.contact-block {
  background: rgba(255,255,255,0.035);            /* glass card over dark anchor */
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.contact-block::before {
  content: '';
  position: absolute;
  top: -90px; right: -90px;
  width: 340px; height: 340px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  animation: slowSpin 35s linear infinite;
  opacity: 0.22;
  pointer-events: none;
}

/* S8 — Old .contact-left h2/p rules removed:
   the heading + prose paragraph they targeted were replaced by
   the section-level lead (.section-title--lead + .section-sub)
   and the new .available-for-label + .available-tags row. */

.contact-email-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 3px;
  transition: border-color 0.3s, color 0.3s;
  display: inline-block;
  margin-bottom: 36px;
}
.contact-email-link:hover { border-color: var(--gold); color: var(--gold-light); }

.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  z-index: 1;
}
.contact-link:hover { border-color: var(--glass-border); background: var(--surface); }
.contact-link-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.contact-link-val   { font-size: 0.88rem; color: var(--white); }
.contact-link-arrow {
  color: var(--gold-dim);
  font-size: 1rem;
  transition: color 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.contact-link:hover .contact-link-arrow { color: var(--gold); transform: translateX(4px); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.contact-form .full { grid-column: span 2; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.form-input, .form-textarea {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(232,228,220,0.25); }
.form-input:focus, .form-textarea:focus { border-color: var(--gold); }
.form-textarea { height: 128px; }

.btn-submit {
  grid-column: span 2;
  font-family: 'DM Mono', monospace;
  font-size: var(--fs-label-lg);          /* 13px — S8 punch */
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--gold);
  color: #1a0f08;                          /* near-black on gold for AAA contrast */
  border: none;
  padding: 18px 44px;                      /* min 48px tall */
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 22px rgba(200,169,110,0.18);
}
.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(200,169,110,0.32);
}

/* S8 — Available For / CTA additions
   ───────────────────────────────── */

/* Lead-style title for the CTA section: bigger than other section-titles
   because this is the closer / conversion moment. */
.section-title--lead {
  font-size: var(--fs-h1);                /* 44–60px vs section default 40–48px */
  margin-bottom: 18px;
}
#contact .section-sub {
  max-width: 600px;
  margin-bottom: 56px;
  font-style: italic;
}

/* "Available For" label above the engagement tags */
.available-for-label {
  font-family: 'DM Mono', monospace;
  font-size: var(--fs-label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* Engagement type tag row */
.available-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.available-tags li {
  font-family: 'DM Mono', monospace;
  font-size: var(--fs-label-lg);          /* 13px */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  padding: 9px 16px;
  border: 1px solid rgba(200,169,110,0.35);
  border-radius: 999px;
  background: rgba(200,169,110,0.06);
}

/* Larger email link variant for the contact-left column */
.contact-email-link--lg {
  font-size: var(--fs-body-lg);           /* 18px — visible secondary contact */
  margin-bottom: 36px;
}

@media (max-width: 1024px) {
  .contact-block { grid-template-columns: 1fr; gap: 48px; padding: 48px 36px; }
}
@media (max-width: 640px) {
  .contact-block      { padding: 32px 22px; }
  .contact-form       { grid-template-columns: 1fr; }
  .contact-form .full { grid-column: span 1; }
  .btn-submit         { grid-column: span 1; }
  /* iOS Safari zooms on focus if font-size < 16px — bump to 1rem */
  .form-input,
  .form-textarea      { font-size: 1rem; }
}


/* ─── ULTRAWIDE / 4K ────────────────────────────────────────── */
@media (min-width: 1920px) {
  #hero-canvas { width: min(42vw, 700px); }
}
@media (min-width: 2560px) {
  #hero-canvas { width: min(38vw, 760px); }
}

/* ─── CONSOLIDATED RESPONSIVE ───────────────────────────────── */
/* (nav, section-wrap, and footer rules are in design-system.css) */

@media (max-width: 1024px) {
  #hero          { --hero-edge: 28px; padding: 110px var(--hero-edge) 80px; min-height: clamp(560px, 80vh, 780px); }
  #hero-canvas   { width: 54%; }
}

@media (max-width: 768px) {
  #hero          { --hero-edge: 24px; min-height: clamp(520px, 72vh, 680px); padding: 120px var(--hero-edge) 70px; }
  #hero-canvas   { width: 62%; opacity: 0.55; }
  .hero-cycle-wrap { min-width: 240px; }
  /* Collapse nav to hamburger at tablet (index-specific breakpoint) */
  nav .nav-links   { display: none; }
  nav .nav-actions { display: none; }
  .nav-hamburger   { display: flex; }
}

/* ─── ABOUT TRANSITION LINE ─────────────────────────────────── */
.about-transition-line {
  margin-top: 20px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
}

/* ─── WHAT I'M BUILDING CALLOUT ─────────────────────────────── */
.wib-callout {
  margin-top: 48px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}
.wib-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.wib-items { display: flex; flex-direction: column; gap: 12px; }
.wib-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}
.wib-badge {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(200,169,110,0.1);
  color: var(--gold);
  border: 1px solid rgba(200,169,110,0.2);
  flex-shrink: 0;
}
.wib-title { color: var(--text); font-weight: 500; }
.wib-sep   { color: var(--border); }
.wib-desc  { color: var(--muted); }

@media (max-width: 640px) {
  #hero            { --hero-edge: 20px; min-height: clamp(480px, 65vh, 600px); padding: 120px var(--hero-edge) 60px; }
  #hero-canvas     { width: 70%; opacity: 0.45; }
  #hero::after {
    background:
      linear-gradient(to right, var(--section-bg-hero) 18%, transparent 58%),
      linear-gradient(to top,   var(--section-bg-hero) 0%,  transparent 45%);
  }
  .hero-name       { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-cycle-wrap { min-width: 180px; }
  .hero-disciplines { flex-wrap: wrap; gap: 7px; }
  .about-cell      { padding: 32px 22px; }
  .work-num        { padding: 24px 14px; font-size: 1rem; }
  .work-content    { padding: 24px 18px; }
}

/* ─── FOLDABLE COVER SCREEN (≤360px) ────────────────────────── */
@media (max-width: 360px) {
  .section-wrap             { padding-left: 16px; padding-right: 16px; }
  .hero-cycle-wrap          { min-width: 0; }
  .intersection-diagram     { max-width: 100%; min-width: 0; }
  .about-cell::before       { font-size: clamp(36px, 12vw, 48px); }
  .deco-mark                { font-size: clamp(36px, 12vw, 48px); }
  .panel-num                { font-size: clamp(2rem, 10vw, 3rem); }
  #hero                     { padding-left: 16px; padding-right: 16px; padding-top: 110px; }
}


/* ═══════════════════════════════════════════════════════════════
   PHASE 3 — Refinement Pass
   S4 · S5 · S6 · S7 additions / overrides
   ═══════════════════════════════════════════════════════════════ */

/* ─── S4: Skill Map — Density & Tier Toggle ──────────────────── */

/* Hidden secondary tier (grow + stretch) */
.skill-tier--secondary.skill-hidden { display: none; }

/* Tier divider — full-width row in the grid */
.skill-tier-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.skill-tier-divider-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}
.skill-tier-divider-note {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.55;
}

/* Toggle button wrapper */
.skill-map-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.skill-map-toggle {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 22px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.skill-map-toggle:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
}
.skill-toggle-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.25s;
}

/* Core tier visual emphasis — make prime/strong cluster feel heavier */
.skill-card.prime,
.skill-card.strong {
  border-left-width: 3px;  /* already set; ensure consistency */
}
.skill-card.prime { background: var(--panel); }

/* ─── S5: Skills Applied section accent ──────────────────────── */
#proof {
  border-top: 1px solid var(--border);
}

/* ─── S6: Experience — Stats Row ─────────────────────────────── */

/* Remove old sticky sidebar layout */
.experience-layout--single {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin-top: 44px;
}
.experience-layout--single .experience-sticky { display: none; }

/* New horizontal stats row */
.exp-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 48px;
  margin-bottom: 56px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.exp-stat-block {
  flex: 1;
  padding: 32px 36px;
  text-align: center;
}
.exp-stat-block .exp-stat-num {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.exp-stat-block .exp-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 5px;
}
.exp-stat-context {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.6;
}
.exp-stat-divider {
  width: 1px;
  height: 64px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .exp-stats-row    { flex-direction: column; }
  .exp-stat-block   { padding: 24px 20px; width: 100%; }
  .exp-stat-divider { width: 100%; height: 1px; }
}

/* ─── S7: How I Work — Step Icons ────────────────────────────── */

.step-icon {
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 14px;
  display: block;
  transition: opacity 0.3s;
}
.approach-step:hover .step-icon { opacity: 0.9; }

/* Adjust step number spacing now that icon sits above it */
.approach-step .step-num {
  margin-bottom: 14px;
}

html[data-theme="light"] .step-icon { color: var(--gold); opacity: 0.65; }


/* ─── TOUCH / HOVER-NONE FALLBACKS ──────────────────────────── */
/* On touch devices (pointer: coarse) with no hover capability,
   force-show elements that are normally revealed only on hover.  */
@media (hover: none) and (pointer: coarse) {

  /* Project cards — always show description and CTA */
  .project-desc {
    max-height: 200px;
    opacity: 1;
  }
  .project-link {
    opacity: 1;
    transform: translateY(0);
  }

  /* Work list — always show arrow */
  .work-arrow {
    color: var(--gold);
    transform: none;
  }

  /* About cells — no hover glow needed on touch */
  .about-cell::after { display: none; }

  /* Approach steps — no radial glow on touch */
  .approach-step::before { display: none; }
}
