/* ============================================================
   FONT FACES
   ============================================================ */

/* Montagu Slab — Display font (144pt optical size for large headings) */
@font-face {
  font-family: 'Montagu Slab';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/MontaguSlab/MontaguSlab144pt-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Montagu Slab';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/MontaguSlab/MontaguSlab144pt-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Montagu Slab';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/MontaguSlab/MontaguSlab144pt-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Montagu Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/MontaguSlab/MontaguSlab144pt-Bold.woff2') format('woff2');
}

/* Montagu Slab 16pt — For smaller display uses (subheadings) */
@font-face {
  font-family: 'Montagu Slab Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/MontaguSlab/MontaguSlab16pt-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Montagu Slab Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/MontaguSlab/MontaguSlab16pt-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Montagu Slab Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/MontaguSlab/MontaguSlab16pt-SemiBold.woff2') format('woff2');
}

/* Source Serif 4 — Body font */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/Source-Serif-4/source-serif-4-v14-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Source-Serif-4/source-serif-4-v14-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Source-Serif-4/source-serif-4-v14-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Source-Serif-4/source-serif-4-v14-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Source-Serif-4/source-serif-4-v14-latin-500italic.woff2') format('woff2');
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Colors — warm, editorial palette */
  --bg:           #f9f8f6;
  --surface:      #ffffff;
  --text:         #1a1a1a;
  --text-muted:   #5c5c5c;
  --accent:       #1e3a5f;
  --accent-hover: #2c4a6e;
  --border:       #e8e6e3;
  --focus:        #2563eb;

  /* Spacing scale — generous whitespace */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --content-width: 680px;
  --nav-width:     920px;
  --nav-height:    4.5rem;

  /* Type scale */
  --text-xs:   0.8125rem;
  --text-sm:   0.9rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;
  --text-4xl:  4rem;

  /* Font families */
  --font-display: 'Montagu Slab', Georgia, serif;
  --font-display-text: 'Montagu Slab Text', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font: var(--font-body);
  
  /* Misc */
  --radius:     4px;
  --transition: 180ms ease;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

ul, ol { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -200%;
  left: var(--sp-4);
  background: var(--accent);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 200;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--wide {
  max-width: var(--nav-width);
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: relative;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.site-header .container--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  font-family: var(--font-display-text);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.site-logo:hover { color: var(--text); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Mobile toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-right: -8px;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 620px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 101;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--sp-3) var(--sp-6) var(--sp-4);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.7rem 0;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }
}

/* ============================================================
   MAIN
   ============================================================ */
main {
  padding-bottom: var(--sp-24);
}

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-24) var(--sp-20);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--accent);
}

/* Background photo — set per-page via --hero-bg custom property */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center 60%;
  z-index: 0;
}

/* Contact hero keeps its original crop */
.hero--contact::before {
  background-position: center 38%;
}

/* Contact hero: single column, no headshot grid */
.hero--contact .hero-positioning {
  margin-bottom: var(--sp-4);
}
.hero--contact .hero-confidential {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* Dark navy overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 95, 0.65);
  z-index: 1;
}

/* Contact hero: darker, more opaque overlay for better text contrast */
.hero--contact::after {
  background: rgba(15, 43, 69, 0.5);
}

/* Content sits above overlay */
.hero .container,
.hero .container--wide {
  position: relative;
  z-index: 2;
}

/* Text colours on dark background — improved contrast */
.hero .hero-eyebrow { color: rgba(255, 255, 255, 0.88); }
.hero .hero-name    { color: #ffffff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25); }
.hero .hero-positioning { color: rgba(255, 255, 255, 0.95); }

/* Button overrides on dark background */
.hero .btn-primary {
  background: #ffffff;
  color: var(--accent);
  border-color: #ffffff;
}
.hero .btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
  color: var(--accent);
}
.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}
.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.9);
  color: #ffffff;
}

/* Headshot pops on dark background */
.hero .hero-photo {
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.45);
}

.hero-eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.hero-name {
  font-family: var(--font-display-text);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-4xl));
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: var(--sp-6);
}

.hero-positioning {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: var(--sp-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.625rem var(--sp-4);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: #aaa;
  color: var(--text);
  transform: translateY(-1px);
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section {
  padding-top: var(--sp-20);
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-10);
}

/* ============================================================
   FOCUS AREAS GRID
   ============================================================ */
.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}

.focus-item {
  padding: var(--sp-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.focus-item-title {
  font-family: var(--font-display-text);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}

.focus-item-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 500px) {
  .focus-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROSE / BACKGROUND NARRATIVE
   ============================================================ */
.prose p {
  font-size: var(--text-md);
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  max-width: 560px;
}
.prose p:last-child { margin-bottom: 0; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  padding-block: var(--sp-20) var(--sp-12);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-16);
}

.page-title {
  font-family: var(--font-display-text);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--sp-4);
}

.page-subtitle {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
}

/* ============================================================
   RESUME BLOCKS
   ============================================================ */
.resume-block {
  padding-bottom: var(--sp-10);
  margin-bottom: var(--sp-10);
  border-bottom: 1px solid var(--border);
}

.resume-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.resume-block-title {
  font-family: var(--font-display-text);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--sp-1);
}

.resume-block-org {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.resume-block-dates {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

.resume-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.resume-list li {
  font-size: var(--text-base);
  color: var(--text-muted);
  padding-left: var(--sp-6);
  position: relative;
  line-height: 1.65;
}

.resume-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--border);
  font-weight: 700;
}

/* Skills / expertise tags */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.skill-tag {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.3rem 0.75rem;
}

/* ============================================================
   DOWNLOAD CARD
   ============================================================ */
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
  margin-top: var(--sp-10);
}

.download-card-info strong {
  display: block;
  font-family: var(--font-display-text);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--sp-1);
}

.download-card-info span {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================================
   CAPABILITIES LIST
   ============================================================ */
.capabilities-list {
  display: flex;
  flex-direction: column;
}

.capability-item {
  padding-block: var(--sp-8);
  border-bottom: 1px solid var(--border);
}

.capability-item:first-child { padding-top: 0; }

.capability-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.capability-title {
  font-family: var(--font-display-text);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
}

.capability-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   WORK WITH ME — TWO COLUMN LAYOUT
   ============================================================ */
.work-with-me-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-16);
  align-items: start;
}

.capabilities-column {
  min-width: 0;
}

.use-cases-column {
  position: static;
  top: calc(var(--nav-height) + var(--sp-8));
}

.use-cases-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* Use Case Cards — inspired by jonlamb.com */
.use-case-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.use-case-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  padding: var(--sp-6);
  background: var(--surface);
  overflow: hidden;
}

.use-case-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.use-case-card--aurelius .use-case-logo-wrap {
  background: #000000;
  padding: var(--sp-4);
}

.use-case-card--aurelius .use-case-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.use-case-card--medtronic .use-case-logo-wrap {
  background: #ffffff;
}

.use-case-card--medtronic .use-case-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.use-case-content {
  padding: var(--sp-6);
}

.use-case-title {
  font-family: var(--font-display-text);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.use-case-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  .work-with-me-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
  }
  
  .use-cases-column {
    position: static;
  }
  
  .use-cases-list {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: var(--sp-4);
    padding-bottom: var(--sp-2);
  }
  
  .use-case-card {
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
  }
}

/* Mobile: single-column cards, no horizontal scroll */
@media (max-width: 500px) {
  .use-cases-list {
    flex-direction: column;
    overflow-x: visible;
    gap: var(--sp-4);
  }
  
  .use-case-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    flex-shrink: 1;
  }
}

/* ============================================================
   CONTACT OPTIONS
   ============================================================ */
.contact-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 560px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.contact-card:hover,
.contact-card:focus-within {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-card-label {
  font-family: var(--font-display-text);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
  transition: color var(--transition);
}
.contact-card:hover .contact-card-label,
.contact-card:focus-within .contact-card-label { color: var(--accent); }

.contact-card-detail {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.contact-card:hover .contact-card-detail,
.contact-card:focus-within .contact-card-detail {
  opacity: 1;
  transform: translateX(0);
}

@keyframes link-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.contact-card--link:hover .contact-card-detail,
.contact-card--link:focus-within .contact-card-detail {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #4a90d9 30%, #a8d4ff 50%, #4a90d9 70%, var(--accent) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: link-shimmer 2.5s linear infinite;
}

.contact-card-copy {
  flex-shrink: 0;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms ease, transform 200ms ease,
              background-color var(--transition);
}
.contact-card:hover .contact-card-copy,
.contact-card:focus-within .contact-card-copy {
  opacity: 1;
  transform: translateX(0);
}
.contact-card-copy:hover { background: var(--accent-hover); }
.contact-card-copy.is-copied { background: #2d6a4f; }

@media (max-width: 540px) {
  .contact-card { flex-wrap: wrap; }

  .contact-card-label {
    flex-basis: 100%;
  }

  .contact-card-detail {
    opacity: 1;
    transform: none;
    text-align: left;
    font-size: var(--text-xs);
  }

  .contact-card--link .contact-card-detail {
    flex-basis: 100%;
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, #4a90d9 30%, #a8d4ff 50%, #4a90d9 70%, var(--accent) 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: link-shimmer 2.5s linear infinite;
  }

  .contact-card-copy {
    opacity: 1;
    transform: none;
    align-self: center;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--sp-8);
}

.site-footer .container--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--sp-6);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   SCROLL REVEAL (Phase 6 — motion/polish)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   HERO — TWO-COLUMN WITH PHOTO
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-12);
  align-items: center;
}

.hero-photo-wrap {
  flex-shrink: 0;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  display: block;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.13);
}

@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .hero-photo-wrap {
    max-width: 200px;
  }
}

/* ============================================================
   CITY PHOTO STRIP
   ============================================================ */
.city-photo {
  padding-inline: var(--sp-6);
  max-width: var(--nav-width);
  margin-inline: auto;
  margin-top: var(--sp-10);
}

.city-photo img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 38%;
  border-radius: var(--radius);
  display: block;
}

/* ============================================================
   RESUME PAGE — TIGHTER RHYTHM & HEADER ACTIONS
   ============================================================ */
.resume-intro {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-6);
  max-width: 560px;
}

.resume-header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-2);
}

.resume-updated {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.resume-section {
  margin-top: var(--sp-10);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--border);
}

/* Role header: title + dates on same row */
.resume-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.resume-block-header .resume-block-title { margin-bottom: var(--sp-1); }
.resume-block-header .resume-block-org   { margin-bottom: 0; }
.resume-block-header .resume-block-dates { margin-bottom: 0; white-space: nowrap; flex-shrink: 0; padding-top: 0.25rem; }

/* Tighter block spacing overall */
.resume-block {
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-6);
}

/* Advisory tag pill */
.resume-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(30, 58, 95, 0.08);
  border-radius: 99px;
  padding: 0.15rem 0.6rem;
  margin-left: var(--sp-2);
  vertical-align: middle;
}

/* Prevent sticky nav from obscuring jump targets */
[id] { scroll-margin-top: calc(var(--nav-height) + var(--sp-4)); }
