/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Bungee+Inline&family=Outfit:wght@300;400;500;600&family=Tenor+Sans&display=swap');
/* ── Variables ── */
:root {
  --bg: #F0EBE3;
  --text: #1a1a1a;
  --teal: #2D6E7E;
  --terracotta: #C8866A;
  --grey: #9a9a9a;
  --font-body: 'Outfit', sans-serif;
  --font-display: 'Tenor Sans', sans-serif;
}

/* ── Page transitions ── */
body {
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
}

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

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

/* ── Layout ── */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Pages ── */
.page {
  min-height: 100vh;
  padding: 120px 0 80px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 6%;
}

.nav-name {
  font-size: 5.5rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* "Bryan" — Bungee Inline (striped letterforms), filled terracotta */
.nav-name-first {
  font-family: 'Bungee Inline', sans-serif;
  color: var(--terracotta);
  transition: color 0.3s ease;
}

/* "Tuer" — Bungee (solid block), outlined dark */
.nav-name-last {
  font-family: 'Bungee', sans-serif;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--text);
  transition: -webkit-text-stroke-color 0.3s ease;
}

.nav-name:hover .nav-name-first {
  color: var(--teal);
}

.nav-name:hover .nav-name-last {
  -webkit-text-stroke-color: var(--teal);
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
}

.cursor {
  color: var(--terracotta);
  margin-left: 2px;
  font-weight: 300;
}

.nav-link:hover {
  color: var(--terracotta);
}

.nav-link:hover .cursor {
  color: var(--teal);
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.6) brightness(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(240, 235, 227, 0.85) 0%,
    rgba(240, 235, 227, 0.35) 30%,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0) 65%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-footer {
  position: absolute;
  bottom: 40px;
  left: 6%;
  right: 6%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-credit {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  margin-left: auto;
  opacity: 0.95;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.9),
    0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-credit a {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.9;
}

.hero-credit a:hover {
  opacity: 1;
  color: var(--terracotta);
}

/* ── Hero footer — fixed on inner pages so it always shows above the bg ── */
.hero-page .hero-footer {
  position: fixed;
  bottom: 40px;
  left: 6%;
  right: 6%;
  pointer-events: none;
  z-index: 10;
}

.hero-page .hero-footer a,
.hero-page .hero-footer span {
  pointer-events: auto;
}

/* ── Nav hero override ── */
/* Nameplate is smaller on inner pages so the card is the visual lead. */
.hero-page .nav-name {
  font-size: 3.5rem;
}

.hero-page .nav-name-last {
  -webkit-text-stroke-color: var(--text);
}

.hero-page .nav-name:hover .nav-name-last {
  -webkit-text-stroke-color: var(--teal);
}

.hero-page .nav-link {
  color: var(--teal);
  text-shadow: 0 1px 8px rgba(240, 235, 227, 0.8);
}

.hero-page .cursor {
  color: var(--terracotta);
}

.hero-page .nav-link:hover {
  color: var(--terracotta);
}

.hero-page .nav-link:hover .cursor {
  color: var(--teal);
}
/* ── Shared background (non-home pages) ── */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* Inner-page background: global dim so cards win against the skyline.
   Home's .hero stays bright; only .bg-wrap (inner pages) is darkened. */
.bg-wrap .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.45) brightness(0.55);
}

.bg-wrap .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(240, 235, 227, 0.7) 0%,
    rgba(0, 0, 0, 0.25) 30%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* ── Content card ── */
.content-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 6% 100px;
}

.content-card {
  background: rgba(240, 235, 227, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
  padding: 60px 70px;
  width: 100%;
  max-width: 820px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.12);
}

.card-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--text);
  margin-bottom: 0;
  letter-spacing: 0.04em;
  line-height: 1;
  font-weight: 400;
}
/* ── Timeline ── */

/*
  Architecture: .timeline-frosted is a DOM sibling that sits BEFORE
  .timeline-card in paint order. backdrop-filter lives here — completely
  outside the card's compositing group — so images inside the card are
  never blurred by it.
*/
.timeline-outer {
  position: relative;
  width: 90vw;
  max-width: 1100px;
}

.timeline-frosted {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  /* Solid pane — no backdrop-filter, which was bleeding into child images */
  background: rgba(236, 230, 221, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,       /* top glass highlight */
    0 -1px 0 rgba(200, 190, 178, 0.6) inset,    /* bottom edge shadow */
    0 20px 80px rgba(0, 0, 0, 0.22),
    0 4px 16px rgba(45, 110, 126, 0.1);
  pointer-events: none;
}

.timeline-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.timeline-header {
  padding: 28px 60px 20px;
  border-bottom: 1px solid rgba(45, 110, 126, 0.15);
  position: relative;
  z-index: 1;
}

.timeline-track {
  display: flex;
  flex-direction: row;
  padding: 32px 40px;
  gap: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.timeline-track:active {
  cursor: grabbing;
}

.timeline-track::-webkit-scrollbar {
  height: 2px;
}

.timeline-track::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-track::-webkit-scrollbar-thumb {
  background: rgba(45, 110, 126, 0.25);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  padding: 0 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--teal);
  opacity: 0.25;
}

.timeline-item:first-child::before {
  left: 50%;
}

.timeline-item:last-child::before {
  right: 50%;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 12px;
  opacity: 0.85;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 2px solid rgba(240, 235, 227, 0.8);
  outline: 1px solid var(--terracotta);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.timeline-image {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-image:hover {
  transform: scale(1.06);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.8);
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-image-placeholder {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.3;
}

.timeline-body {
  text-align: center;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.25;
}

.timeline-company {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
}

.timeline-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
  opacity: 0.78;
}

/* ── Contact ── */
.contact-outer {
  position: relative;
  width: 90vw;
  max-width: 600px;
}

.contact-frosted {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(236, 230, 221, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -1px 0 rgba(200, 190, 178, 0.6) inset,
    0 20px 80px rgba(0, 0, 0, 0.22),
    0 4px 16px rgba(45, 110, 126, 0.1);
  pointer-events: none;
}

.contact-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.contact-header {
  padding: 28px 44px 20px;
  border-bottom: 1px solid rgba(45, 110, 126, 0.15);
  position: relative;
  z-index: 1;
}

.contact-body {
  padding: 28px 44px 40px;
  position: relative;
  z-index: 1;
}

/* ── Direct contact links ── */
.contact-links {
  display: flex;
  gap: 12px;
}

.contact-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.22s ease, color 0.22s ease, transform 0.15s ease;
}

.contact-link-email {
  background: var(--terracotta);
  color: var(--bg);
}

.contact-link-email:hover {
  background: #b8724e;
  transform: translateY(-1px);
}

.contact-link-linkedin {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}

.contact-link-linkedin:hover {
  background: var(--teal);
  color: var(--bg);
  transform: translateY(-1px);
}

.contact-link-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.contact-link:hover .contact-link-arrow {
  transform: translateX(3px);
}


.contact-form-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-form-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(45, 110, 126, 0.15);
}

/* ── Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(45, 110, 126, 0.22);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text);
  width: 100%;
  outline: none;
  resize: none;
  transition: border-color 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text);
  opacity: 0.5;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--teal);
}

.form-submit {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--terracotta);
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.form-submit:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

/* ── Play / Bento ── */
.play-outer {
  position: relative;
  width: 90vw;
  max-width: 1100px;
}

.play-frosted {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(236, 230, 221, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -1px 0 rgba(200, 190, 178, 0.6) inset,
    0 20px 80px rgba(0, 0, 0, 0.22),
    0 4px 16px rgba(45, 110, 126, 0.1);
  pointer-events: none;
}

.play-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

/* Asymmetric bento: two tall rows for the image cells, one shorter row
   for the wide text cells at the bottom. Image cells (Baltimore, Family,
   Maya) anchor the upper rows; text cells (Video Games, Other Interests)
   sit wide along the bottom. */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px auto;
  gap: 10px;
  padding: 20px 32px 28px;
  position: relative;
  z-index: 1;
}

.bento-cell {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0; /* let grid rows define height */
}

.bento-cell.span-2 { grid-column: span 2; }
.bento-cell.row-2  { grid-row: span 2; }

.bento-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
}

.bento-desc {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  opacity: 0.75;
}

/* Image container — grows to fill remaining cell space */
.bento-img {
  flex: 1;
  margin-top: 12px;
  min-height: 80px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: rgba(45, 110, 126, 0.06);
}

/* Placeholder text when no image */
.bento-img:not(:has(img))::after {
  content: 'Photo';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.4;
}

/* Photo images — fill the container */
.bento-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Two logos side by side (Sports cell) */
.bento-img-pair {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex: 1;
  min-height: 120px;
}

.bento-img-pair .bento-img {
  flex: 1;
  margin-top: 0;
}

/* Photo pair images — fill each slot naturally */
.bento-img-pair .bento-img img {
  object-fit: cover;
}

/* Linked bento cell */
.bento-link {
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.bento-link:hover {
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

.bento-cta {
  padding-top: 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  transition: letter-spacing 0.2s ease;
}

.bento-link:hover .bento-cta {
  letter-spacing: 0.2em;
}

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
  white-space: nowrap;
}

.toast-error {
  background: #b85a4a;
}

.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Two-column interest list */
.bento-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 12px;
}

.bento-list li {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  opacity: 0.75;
  padding-left: 14px;
  position: relative;
}

.bento-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-size: 0.7rem;
  top: 2px;
}

/* ════════════════════════════════════════════════════════════════════
   Responsive — desktop-first, additive overrides
   ════════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤768px) ────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav: wrap, smaller nameplate, tighter spacing */
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 5%;
  }

  .nav-name {
    font-size: 3.5rem;
  }

  .nav-links {
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
  }

  .nav-link {
    font-size: 1rem;
    letter-spacing: 0.14em;
  }

  /* Content card padding */
  .content-wrap {
    padding: 200px 5% 120px;
  }

  .content-card {
    padding: 40px 32px;
  }

  /* Card titles */
  .card-title {
    font-size: 2.2rem;
  }

  /* ── Work timeline → vertical stack ── */
  .timeline-track {
    flex-direction: column;
    padding: 24px 28px;
    gap: 28px;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    row-gap: 0;
    padding: 0;
    text-align: left;
  }

  /* Vertical connector line replaces the horizontal one */
  .timeline-item::before {
    top: 28px;
    bottom: -28px;
    left: 27px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .timeline-item:first-child::before {
    top: 28px;
    left: 27px;
  }

  .timeline-item:last-child::before {
    display: none;
  }

  /* Year: column 2, row 1 — sits above the role */
  .timeline-year {
    grid-column: 2;
    grid-row: 1;
    position: static;
    margin: 0 0 4px 0;
    font-size: 0.7rem;
  }

  /* Dot: column 1, row 1 — aligns with the year */
  .timeline-dot {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    margin: 6px 0 0 0;
  }

  /* Image: column 1, row 2 — sits below the dot */
  .timeline-image {
    grid-column: 1;
    grid-row: 2;
    margin: 8px 0 0 0;
    width: 56px;
    height: 56px;
  }

  /* Body: column 2, spans rows 2-3 — role + company + desc all together */
  .timeline-body {
    grid-column: 2;
    grid-row: 2 / span 2;
    text-align: left;
    padding-top: 0;
  }

  .timeline-header {
    padding: 24px 32px 16px;
  }

  /* ── Play bento → 2-column equal-weight ── */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: minmax(180px, auto);
    padding: 16px 24px 24px;
  }

  .bento-cell.span-2,
  .bento-cell.row-2 {
    grid-column: auto;
    grid-row: auto;
  }

  .bento-list {
    grid-template-columns: 1fr;
  }

  /* ── Contact ── */
  .contact-header {
    padding: 24px 32px 16px;
  }

  .contact-body {
    padding: 24px 32px 32px;
  }

  .hero-footer {
    left: 5%;
    right: 5%;
  }
}

/* ── Phone (≤480px) ─────────────────────────────────────────────── */
@media (max-width: 480px) {

  /* Nav container scrolls in flow; .nav-links is lifted to a fixed
     bottom-bar below, which is why the nav itself is absolute (not fixed). */
  .nav {
    position: absolute;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px 5%;
    gap: 0;
    background: transparent;
  }

  /* Stack "Bryan" / "Tuer" — keep size big */
  .nav-name {
    font-size: 3rem;
    line-height: 0.95;
    display: inline-flex;
    flex-direction: column;
  }

  .nav-name-first,
  .nav-name-last {
    display: block;
  }

  /* Nav links → sticky bottom bar */
  .nav-links {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 14px 5%;
    background: rgba(240, 235, 227, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(45, 110, 126, 0.18);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    gap: 0;
    flex-wrap: nowrap;
    z-index: 100;
  }

  .nav-links li {
    flex: 1;
    text-align: center;
  }

  .nav-link {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  /* Don't double-shadow nav links inside the bottom-bar pane */
  .hero-page .nav-link {
    text-shadow: none;
  }

  /* ── Content card paddings: shrink hard ── */
  .content-wrap {
    padding: 140px 4% 100px;  /* leave room for sticky nav at bottom */
  }

  .content-card {
    padding: 32px 22px;
  }

  .card-title {
    font-size: 1.8rem;
  }

  /* Work timeline phone tweaks */
  .timeline-track {
    padding: 20px 18px;
    gap: 24px;
  }

  .timeline-header {
    padding: 20px 22px 14px;
  }

  .timeline-item::before {
    left: 27px;
  }

  .timeline-image {
    width: 48px;
    height: 48px;
  }

  .timeline-year {
    font-size: 0.65rem;
  }

  .timeline-role {
    font-size: 1.05rem;
  }

  .timeline-desc {
    font-size: 0.85rem;
  }

  /* Play → 1 column */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 10px;
    padding: 14px 18px 22px;
  }

  .bento-cell {
    padding: 18px;
  }

  .bento-img,
  .bento-img-pair {
    min-height: 160px;
  }

  /* Contact: stack the email/linkedin buttons vertically */
  .contact-links {
    flex-direction: column;
    gap: 10px;
  }

  .contact-header {
    padding: 20px 22px 14px;
  }

  .contact-body {
    padding: 20px 22px 28px;
  }

  .hero-credit {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  /* Home credit: clear the sticky bottom-bar nav, center align */
  .hero-footer {
    bottom: 76px;
    justify-content: center;
  }

  .hero .hero-credit {
    margin-left: 0;
    text-align: center;
  }

  /* Inner pages: tighten content height so credit sits naturally above the nav */
  .content-wrap {
    min-height: auto;
    padding: 140px 4% 32px;
  }

  .hero-page .hero-footer {
    position: static;
    padding: 20px 5%;
    margin-bottom: 64px;  /* clear the sticky nav-links bar */
    text-align: center;
  }

  .hero-page .hero-credit {
    color: var(--bg);
    opacity: 0.9;
    margin-left: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  }

  .hero-page .hero-credit a {
    color: var(--bg);
  }
}

/* ════════════════════════════════════════════════════════════════════
   Card stagger fade-in
   Fires after the body fade (0.35s) completes, then ~80ms between cards.
   ════════════════════════════════════════════════════════════════════ */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Work timeline cards */
.timeline-item {
  opacity: 0;
  animation: fade-up 0.45s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.40s; }
.timeline-item:nth-child(2) { animation-delay: 0.48s; }
.timeline-item:nth-child(3) { animation-delay: 0.56s; }
.timeline-item:nth-child(4) { animation-delay: 0.64s; }
.timeline-item:nth-child(5) { animation-delay: 0.72s; }
.timeline-item:nth-child(6) { animation-delay: 0.80s; }

/* Play bento cards */
.bento-cell {
  opacity: 0;
  animation: fade-up 0.45s ease forwards;
}

.bento-cell:nth-child(1) { animation-delay: 0.40s; }
.bento-cell:nth-child(2) { animation-delay: 0.48s; }
.bento-cell:nth-child(3) { animation-delay: 0.56s; }
.bento-cell:nth-child(4) { animation-delay: 0.64s; }
.bento-cell:nth-child(5) { animation-delay: 0.72s; }
.bento-cell:nth-child(6) { animation-delay: 0.80s; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .timeline-item,
  .bento-cell {
    opacity: 1;
    animation: none;
  }
}

