:root {
  --ink: #f4f0e7;
  --muted: #bfb9aa;
  --deep: #07110e;
  --deep-2: #0b1b17;
  --panel: rgba(16, 37, 31, 0.78);
  --panel-strong: #10251f;
  --line: rgba(220, 196, 138, 0.23);
  --gold: #d7bd78;
  --gold-2: #f0db9b;
  --emerald: #315d4d;
  --ivory: #fffaf0;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
  --radius: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 8%, rgba(61, 112, 92, .22), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(215, 189, 120, .11), transparent 28rem),
    linear-gradient(180deg, #06100d 0%, #091713 48%, #07110e 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  z-index: 20;
}

::selection { background: var(--gold); color: var(--deep); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 999;
  padding: .8rem 1rem;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--deep);
}
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.section { padding: 7rem 0; position: relative; }
.section-tight { padding: 4.5rem 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  color: var(--gold-2);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
}
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: var(--gold); }
.display {
  margin: 0;
  max-width: 16ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 8vw, 7.7rem);
  line-height: .93;
  letter-spacing: -.055em;
  font-weight: 500;
}
.display em { color: var(--gold-2); font-style: italic; }
.h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 500;
}
.h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; line-height: 1.15; margin: 0 0 .6rem; }
.lead { color: #ddd7ca; font-size: clamp(1.08rem, 2vw, 1.28rem); max-width: 66ch; }
.muted { color: var(--muted); }
.gold { color: var(--gold-2); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(4, 12, 9, .82); border-color: var(--line); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand-mark { width: 2.45rem; aspect-ratio: 1; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold-2); font-family: Georgia, serif; }
.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav a { text-decoration: none; color: #d8d3c8; font-size: .92rem; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold-2); }
.menu-button { display: none; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 999px; padding: .65rem .9rem; }

.hero { min-height: 100svh; display: grid; align-items: center; padding: 8rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 3rem; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-question { max-width: 760px; }
.hero-subtitle { margin-top: 1.6rem; max-width: 680px; color: #d2ccbf; font-size: 1.14rem; }
.hero-name { margin-top: 2.4rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.hero-name strong { font-size: 1.35rem; }
.hero-name span { color: var(--gold-2); }
.hero-art {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.04), rgba(255,255,255,.01)),
    radial-gradient(circle at 55% 35%, rgba(215,189,120,.23), transparent 10rem),
    linear-gradient(145deg, #17362d, #08120f 72%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-art::before, .hero-art::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(215,189,120,.36); }
.hero-art::before { width: 31rem; height: 31rem; top: -8rem; right: -13rem; }
.hero-art::after { width: 18rem; height: 18rem; bottom: -7rem; left: -6rem; }
.monogram {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: min(72%, 330px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(240,219,155,.55);
  display: grid; place-items: center;
  color: var(--gold-2); font-family: Georgia, serif; font-size: clamp(5rem, 12vw, 9rem); letter-spacing: -.12em;
  background: rgba(4,14,11,.43); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 18px rgba(255,255,255,.018), 0 25px 60px rgba(0,0,0,.35);
}
.hero-art-label { position: absolute; left: 2rem; right: 2rem; bottom: 2rem; color: #dfd9cb; }
.hero-art-label small { display: block; color: var(--gold-2); text-transform: uppercase; letter-spacing: .15em; font-weight: 800; margin-bottom: .5rem; }

.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .78rem 1.12rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 800; background: rgba(255,255,255,.035); transition: transform .2s ease, background .2s ease, border-color .2s ease; cursor: pointer; }
.button:hover, .button:focus-visible { transform: translateY(-2px); border-color: rgba(240,219,155,.7); background: rgba(255,255,255,.075); }
.button.primary { background: linear-gradient(135deg, var(--gold-2), #c9aa5b); color: #162019; border-color: transparent; }
.button.ghost { background: transparent; }

.quote-band { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.quote { margin: 0; text-align: center; font-family: Georgia, serif; font-size: clamp(1.9rem, 4vw, 3.6rem); line-height: 1.15; color: var(--ivory); }
.quote strong { color: var(--gold-2); font-weight: 500; }

.story-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.story-sticky { position: sticky; top: 8rem; }
.story-copy p { margin: 0 0 1.35rem; font-size: 1.08rem; color: #d3cdc0; }
.story-copy .dropcap::first-letter { float: left; font-family: Georgia, serif; font-size: 5rem; line-height: .75; padding: .35rem .5rem 0 0; color: var(--gold-2); }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; margin-top: 2.4rem; }
.project-card { grid-column: span 4; min-height: 410px; display: flex; flex-direction: column; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.018)); text-decoration: none; box-shadow: 0 18px 48px rgba(0,0,0,.18); transition: transform .25s ease, border-color .25s ease; }
.project-card:nth-child(1), .project-card:nth-child(5) { grid-column: span 8; }
.project-card.featured { grid-column: span 12; min-height: 330px; display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); }
.project-card.featured .project-art { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.project-card.featured .project-body { justify-content: center; padding: clamp(1.6rem, 4vw, 3.2rem); }
.project-card:hover, .project-card:focus-visible { transform: translateY(-7px); border-color: rgba(240,219,155,.55); }
.project-art { aspect-ratio: 16/8.5; background: #10251f; border-bottom: 1px solid var(--line); overflow: hidden; }
.project-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-art img { transform: scale(1.03); }
.project-body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.project-kicker { color: var(--gold-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; }
.project-body p { color: var(--muted); margin: .2rem 0 1.2rem; }
.project-link { margin-top: auto; color: var(--gold-2); font-weight: 800; }

.split-panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 34px; overflow: hidden; background: rgba(255,255,255,.02); }
.split-panel > div { padding: clamp(2rem, 5vw, 4.7rem); }
.split-panel > div + div { border-left: 1px solid var(--line); background: linear-gradient(140deg, rgba(49,93,77,.28), rgba(255,255,255,.01)); }
.philosophy-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.philosophy-list li { padding: 1rem 0 1rem 2rem; border-top: 1px solid var(--line); position: relative; }
.philosophy-list li::before { content: "✦"; position: absolute; left: .1rem; color: var(--gold-2); }

.timeline { position: relative; margin-top: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 9.2rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 8rem 1fr; gap: 2.4rem; padding: 0 0 2.2rem; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: 8.91rem; top: .45rem; width: .58rem; height: .58rem; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 7px rgba(215,189,120,.09); }
.timeline-year { color: var(--gold-2); font-weight: 800; text-align: right; }
.timeline-content h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.timeline-content p { margin: 0; color: var(--muted); max-width: 72ch; }

.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; }
.impact-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.025); }
.impact-card strong { color: var(--gold-2); font-family: Georgia, serif; font-size: 2rem; font-weight: 500; display: block; }
.impact-card p { color: var(--muted); margin: .45rem 0 0; }

.contact-panel { border: 1px solid var(--line); border-radius: 38px; padding: clamp(2rem, 6vw, 5rem); background: linear-gradient(145deg, rgba(49,93,77,.34), rgba(255,255,255,.02)); box-shadow: var(--shadow); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; }
.contact-form { display: grid; gap: .9rem; }
.field { display: grid; gap: .38rem; }
.field label { color: #ddd7ca; font-weight: 700; font-size: .9rem; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 15px; background: rgba(2,9,7,.48); color: var(--ivory); padding: .9rem 1rem; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(215,189,120,.12); }
.field textarea { min-height: 150px; resize: vertical; }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.socials a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: .2rem; }

.site-footer { padding: 2.2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Project pages */
.page-hero { padding: 10rem 0 5rem; border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.page-art { border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: var(--panel-strong); box-shadow: var(--shadow); }
.page-art img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.meta-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: .45rem .7rem; color: #d9d3c6; font-size: .82rem; }
.case-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 4rem; }
.case-nav { position: sticky; top: 7rem; align-self: start; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.case-nav a { display: block; padding: .6rem .75rem; color: var(--muted); text-decoration: none; border-radius: 10px; }
.case-nav a:hover { color: var(--gold-2); background: rgba(255,255,255,.035); }
.case-section { padding-bottom: 3.6rem; border-bottom: 1px solid var(--line); margin-bottom: 3.6rem; }
.case-section:last-child { border-bottom: 0; }
.case-section h2 { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 1rem; font-weight: 500; }
.case-section p, .case-section li { color: #d4cec0; }
.case-section ul { padding-left: 1.2rem; }

/* Resume */
.resume-page { background: #f8f5ee; color: #17211d; min-height: 100vh; }
.resume-wrap { width: min(calc(100% - 2rem), 940px); margin: 0 auto; padding: 3rem 0; }
.resume-toolbar { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; color: var(--ink); }
.resume-sheet { background: white; box-shadow: 0 18px 55px rgba(0,0,0,.16); padding: 42px 48px; }
.resume-header { border-bottom: 2px solid #25493d; padding-bottom: 16px; margin-bottom: 18px; }
.resume-header h1 { margin: 0; font-family: Georgia, serif; font-size: 34px; color: #17382e; }
.resume-header p { margin: 4px 0 0; }
.resume-contact { color: #4a5d55; font-size: 13px; }
.resume-sheet h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #25493d; margin: 20px 0 8px; border-bottom: 1px solid #cad4cf; padding-bottom: 5px; }
.resume-sheet h3 { font-size: 14px; margin: 0; }
.resume-role { margin-bottom: 13px; break-inside: avoid; }
.resume-role-head { display: flex; justify-content: space-between; gap: 16px; }
.resume-role-title { font-weight: 700; }
.resume-role-date { white-space: nowrap; color: #5b6b64; font-size: 12px; }
.resume-sheet p, .resume-sheet li { font-size: 12px; line-height: 1.45; }
.resume-sheet ul { margin: 5px 0 0; padding-left: 18px; }
.resume-skills { font-size: 12px; line-height: 1.55; }
.resume-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.resume-philosophy { border-left: 3px solid #bca15c; padding-left: 12px; color: #43534c; font-style: italic; }
.resume-sheet .credential-link { color: #25493d; text-decoration: underline; text-decoration-thickness: .7px; text-underline-offset: 2px; font-weight: 700; }
.resume-sheet .credential-link:hover, .resume-sheet .credential-link:focus-visible { color: #8d6f25; }
.resume-sheet .credential-note { color: #5b6b64; font-size: 11px; white-space: nowrap; }


@media (max-width: 900px) {
  .hero-grid, .story-grid, .split-panel, .contact-grid, .page-hero-grid, .case-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 430px; max-width: 560px; }
  .story-sticky, .case-nav { position: static; }
  .project-card, .project-card:nth-child(1), .project-card:nth-child(5) { grid-column: span 6; }
  .project-card.featured { grid-column: span 12; grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .split-panel > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .section { padding: 5rem 0; }
  .site-nav { position: absolute; top: calc(100% + .5rem); right: 1rem; left: 1rem; display: none; flex-direction: column; align-items: stretch; padding: 1rem; background: rgba(4,12,9,.97); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .menu-button { display: inline-flex; }
  .project-card, .project-card:nth-child(1), .project-card:nth-child(5) { grid-column: span 12; }
  .project-card.featured { grid-column: span 12; grid-template-columns: 1fr; }
  .project-card.featured .project-art { aspect-ratio: 16/8.5; border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline::before { left: .28rem; }
  .timeline-item { grid-template-columns: 1fr; gap: .2rem; padding-left: 2rem; }
  .timeline-item::before { left: 0; }
  .timeline-year { text-align: left; }
  .impact-grid, .resume-columns { grid-template-columns: 1fr; }
  .resume-sheet { padding: 28px 24px; }
  .resume-role-head { display: block; }
}

@media print {
  body.resume-page { background: white; }
  .resume-toolbar { display: none !important; }
  .resume-wrap { width: auto; margin: 0; padding: 0; }
  .resume-sheet { box-shadow: none; padding: .27in .38in; }
  .resume-header { padding-bottom: 10px; margin-bottom: 12px; }
  .resume-header h1 { font-size: 30px; }
  .resume-sheet p, .resume-sheet li { font-size: 9pt; line-height: 1.27; }
  .resume-sheet h2 { margin-top: 9px; margin-bottom: 6px; }
  .resume-role { margin-bottom: 9px; }
  .resume-sheet ul { margin-top: 3px; }
  .resume-philosophy { margin-bottom: 0; }
  @page { size: Letter; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* V3: recruiter proof, portrait, and project evidence */
.hero-portrait {
  min-height: 620px;
  padding: 0;
  background: #10251f;
}
.hero-portrait::before,
.hero-portrait::after { z-index: 2; pointer-events: none; }
.portrait-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(.9) contrast(1.02);
}
.hero-portrait::after {
  width: auto;
  height: 52%;
  inset: auto 0 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, transparent, rgba(3,12,9,.93));
}
.portrait-label { z-index: 3; text-shadow: 0 2px 18px rgba(0,0,0,.5); }

.proof-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.proof-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.proof-grid > div { min-height: 118px; padding: 1.4rem 1.2rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.proof-grid > div:last-child { border-right: 0; }
.proof-grid strong { color: var(--gold-2); font-family: Georgia, serif; font-size: 1.42rem; font-weight: 500; line-height: 1.1; }
.proof-grid span { margin-top: .42rem; color: var(--muted); font-size: .84rem; line-height: 1.35; }

.evidence-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 1.4rem 0 1.1rem; }
.evidence-card { margin: 0; border: 1px solid var(--line); border-radius: 25px; overflow: hidden; background: rgba(255,255,255,.025); box-shadow: var(--shadow); }
.evidence-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--panel-strong); }
.evidence-card figcaption { padding: 1rem 1.2rem 1.2rem; color: var(--muted); font-size: .91rem; }
.proof-section .actions { margin-top: 1rem; }

.project-card .project-art img { object-position: center; }
.project-card[href="/projects/legacy-pathways.html"] .project-art img { object-position: center; }
.project-card[href="/projects/nagging-cat.html"] .project-art img { object-fit: contain; padding: .35rem; background: #f9eaf0; }

@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-grid > div:nth-child(3) { border-right: 0; }
  .proof-grid > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .hero-portrait { min-height: 560px; }
}
@media (max-width: 680px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid > div { min-height: 104px; border-top: 1px solid var(--line); }
  .proof-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .proof-grid > div:nth-child(even) { border-right: 0; }
  .proof-grid > div:first-child, .proof-grid > div:nth-child(2) { border-top: 0; }
  .proof-grid > div:last-child { grid-column: span 2; border-right: 0; }
  .hero-portrait { min-height: 500px; }
}


/* Portfolio proof strip */
.proof-strip { padding-top: 2.1rem; padding-bottom: 1.8rem; }
.proof-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: rgba(255,255,255,.025); box-shadow: var(--shadow); }
.proof-grid > div { min-height: 120px; padding: 1.15rem 1.2rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.proof-grid > div:last-child { border-right: 0; }
.proof-grid strong { color: var(--gold-2); font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; line-height: 1.05; }
.proof-grid span { margin-top: .45rem; color: var(--muted); font-size: .88rem; line-height: 1.35; }

.evidence-gallery.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.evidence-card.tall img { aspect-ratio: auto; max-height: 980px; object-fit: contain; }
.evidence-card.dark img, .page-art.dark img { background: #090d0c; }
.evidence-card.light img, .page-art.light img { background: #f7f4ef; }
.project-card[href="/projects/nagging-cat.html"] .project-art img,
.project-card[href="/projects/legacy-pathways.html"] .project-art img,
.project-card[href="/projects/original-music-audio.html"] .project-art img { object-fit: contain; padding: .45rem; background: #090d0c; }
.project-card[href="/projects/legacy-pathways.html"] .project-art img { background: #f7f4ef; }
.project-card[href="/projects/bookself.html"] .project-art img { object-position: center top; }
.project-page.project-nagging-cat .page-art img,
.project-page.project-legacy .page-art img,
.project-page.project-audio .page-art img { aspect-ratio: auto; max-height: 960px; object-fit: contain; }
.project-page.project-nagging-cat .page-art,
.project-page.project-audio .page-art { background: #090d0c; }
.project-page.project-legacy .page-art { background: #f7f4ef; }

@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-grid > div:nth-child(3) { border-right: 0; }
  .proof-grid > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .proof-grid > div:last-child { grid-column: span 3; }
  .evidence-gallery.two-up { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid > div { min-height: 102px; border-top: 1px solid var(--line); }
  .proof-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .proof-grid > div:nth-child(even) { border-right: 0; }
  .proof-grid > div:first-child, .proof-grid > div:nth-child(2) { border-top: 0; }
  .proof-grid > div:last-child { grid-column: span 2; }
}


/* V6 mobile hero and career proof correction */
.hero-profile {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 38px;
  overflow: hidden;
  background: linear-gradient(145deg, #17362d, #08120f 72%);
  box-shadow: var(--shadow);
}
.hero-photo-frame {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #10251f;
}
.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(3,12,9,.32));
  pointer-events: none;
}
.hero-profile .portrait-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(.92) contrast(1.02);
}
.hero-profile-copy {
  padding: 1.4rem 1.55rem 1.55rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(16,37,31,.98), rgba(7,17,14,.98));
}
.hero-profile-copy small {
  display: block;
  margin-bottom: .55rem;
  color: var(--gold-2);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-profile-copy p {
  margin: 0;
  color: #e3ddd0;
  font-size: 1rem;
  line-height: 1.58;
}

.career-proof {
  padding: 1.25rem 0 2rem;
}
.career-proof-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.025);
  box-shadow: var(--shadow);
}
.career-proof-item {
  min-width: 0;
  min-height: 118px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.career-proof-item:last-child { border-right: 0; }
.career-proof-item strong {
  display: block;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  font-weight: 500;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.career-proof-item span {
  display: block;
  margin-top: .48rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .hero-profile { max-width: 620px; width: 100%; margin-inline: auto; }
  .hero-photo-frame { min-height: 620px; }
  .career-proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .career-proof-item:nth-child(3) { border-right: 0; }
  .career-proof-item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .career-proof-item:last-child { grid-column: span 2; }
}

@media (max-width: 680px) {
  .hero { min-height: auto; padding: 6.7rem 0 3rem; }
  .hero-grid { gap: 2rem; }
  .hero-profile { border-radius: 30px; }
  .hero-photo-frame { min-height: 0; aspect-ratio: 4 / 5; }
  .hero-profile .portrait-image { object-position: center 15%; }
  .hero-profile-copy { padding: 1.2rem 1.25rem 1.35rem; }
  .hero-profile-copy p { font-size: .98rem; line-height: 1.5; }
  .career-proof { padding: .7rem 0 1.5rem; }
  .career-proof-grid { grid-template-columns: 1fr; border-radius: 22px; }
  .career-proof-item,
  .career-proof-item:nth-child(3),
  .career-proof-item:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 1rem 1.15rem;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .career-proof-item:first-child { border-top: 0; }
  .career-proof-item strong { font-size: 1.18rem; }
  .career-proof-item span { font-size: .9rem; }
}

/* Personal job-search utility */
.site-nav .job-tool-link { color: var(--gold-2); border: 1px solid rgba(240,219,155,.45); border-radius: 999px; padding: .45rem .75rem; }
.site-nav .job-tool-link:hover, .site-nav .job-tool-link:focus-visible { background: rgba(240,219,155,.1); }
.job-assistant-button { border-color: rgba(240,219,155,.55); color: var(--gold-2); }
.footer-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-actions a:first-child { color: var(--gold-2); }
@media (max-width: 760px) {
  .site-nav .job-tool-link { text-align: center; padding: .7rem .85rem; }
  .footer-actions { justify-content: flex-start; }
}
