/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-black-latin.woff2") format("woff2");
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #0d0d0d;
  color: #f0f0f0;
  overflow-y: auto;
  min-height: 100vh;
}

:root {
  --gold: #c9a227;
  --chrome-h: 5.5rem;
}

/* Hub page scrolls. Passion subpages never get .site-hub. */
body.site-hub {
  background: #0d0d0d;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

html:has(body.site-hub.menu-open),
html:has(body.site-hub.personal-open),
body.site-hub.menu-open,
body.site-hub.personal-open {
  overflow: hidden;
}

/* ===== Panels ===== */
.panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  z-index: 1;
  background: #0d0d0d;
  overflow-x: hidden;
  overflow-y: auto;
}

.panel.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
  transform: translate(0, 0) !important;
}

.panel.from-left   { transform: translateX(-100%); }
.panel.from-right  { transform: translateX(100%); }
.panel.from-bottom { transform: translateY(100%); }
.panel.from-top    { transform: translateY(-100%); }

.panel.to-left   { transform: translateX(100%); }
.panel.to-right  { transform: translateX(-100%); }
.panel.to-bottom { transform: translateY(-100%); }
.panel.to-top    { transform: translateY(100%); }

/* Landing hero, chrome, and menu live at the end of this file. */

/* ===== Content panels ===== */
.panel-inner {
  max-width: 700px;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.panel-inner h1 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-weight: 600;
}

.panel-inner p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #b0b0b0;
}

.back-btn {
  position: absolute;
  top: -3rem;
  left: 0;
  background: transparent;
  border: 1px solid #444;
  color: #f0f0f0;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== Personal card ===== */
.personal-card {
  display: block;
  max-width: 300px;
  margin: 2rem auto 0;
  text-decoration: none;
  color: inherit;
}

.personal-card img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.personal-card-caption {
  display: block;
  margin-top: 0.7rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #cfcfcf;
  text-align: center;
}

.personal-card:hover img {
  opacity: 0.92;
}

.personal-card:hover .personal-card-caption {
  color: #e8c547;
}

.crew-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: min(40rem, 100%);
  margin: 1.35rem auto 0;
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: #8d8d8d;
}

.crew-mark {
  height: 1.7rem;
  width: auto;
  flex: 0 0 auto;
  filter: invert(1);
  opacity: 0.9;
}

.crew-footer a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.45);
}

.crew-footer a:hover,
.crew-footer a:focus-visible {
  border-bottom-color: var(--gold);
}

#personal .crew-footer {
  margin-top: clamp(4.75rem, 12vh, 7.5rem);
}


/* ===== Professional Timeline (Desktop) ===== */
#professional {
  position: relative;
  background: #0d0d0d;
  overflow: visible;
}

#professional .back-btn {
  position: absolute;
  top: 18%;
  left: 18%;
  transform: translate(-50%, -50%);
  z-index: 50;
}

.professional-inner {
  max-width: none;
  width: 100%;
  margin-inline: auto;
  padding: 4.5rem max(1.5rem, 3vw) 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: 100%;
  justify-content: flex-start;
  box-sizing: border-box;
}

.professional-inner h1 {
  margin-bottom: 0.5rem;
  font-size: 2.1rem;
}

.timeline-intro {
  color: #777;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.prof-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0 2.5rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 220px;
  padding: 0.7rem 1.5rem;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 50px;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}

.action-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: #222;
  transform: translateY(-2px);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease;
}

.action-btn:not(.linkedin-btn):hover .btn-icon {
  filter: invert(27%) sepia(95%) saturate(7471%) hue-rotate(356deg) brightness(91%) contrast(118%);
}

.linkedin-btn:hover {
  border-color: #0a66c2;
  background: #0a66c2;
  color: #fff;
}

.linkedin-btn:hover .btn-icon {
  filter: brightness(0) invert(1);
}

.timeline-wrapper {
  width: min(76rem, calc(100% - clamp(2.5rem, 7vw, 7rem)));
  margin-inline: auto;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.2rem 0.75rem;
  border: 1px solid rgba(201, 162, 39, 0.38);
  border-radius: 16px;
  background: #121212;
  overflow: hidden;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.16) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.timeline-container {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 250px 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.timeline-container::-webkit-scrollbar {
  display: none;
}

.timeline-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #444;
  background: #1a1a1a;
  color: #ccc;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 5;
  user-select: none;
}

.timeline-arrow:hover:not(.disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: #222;
}

.timeline-arrow.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.timeline-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 1500px;
  position: relative;
  height: 4px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #444 4%, #444 96%, transparent);
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 62px;
  height: 0;
  display: flex;
  justify-content: center;
}

.timeline-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  cursor: default;
}

.timeline-item.has-data .timeline-mark {
  cursor: pointer;
}

.hash {
  width: 3px;
  height: 12px;
  background: #555;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.timeline-item.has-data .hash {
  width: 4px;
  height: 16px;
  background: #777;
}

.timeline-item.has-data:hover .hash {
  background: var(--gold);
  height: 20px;
}

.timeline-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 4;
}

.timeline-item.top .timeline-content {
  bottom: 14px;
  flex-direction: column;
}

.timeline-item.bottom .timeline-content {
  top: 14px;
  flex-direction: column-reverse;
}

.timeline-connector {
  width: 2px;
  height: var(--connector-height, 80px);
  background: #555;
  transition: background 0.2s ease;
}

.timeline-item.has-data:hover .timeline-connector {
  background: var(--gold);
}

.timeline-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.timeline-item.has-data:hover .timeline-icon-wrapper {
  transform: scale(1.07);
}

.timeline-icon {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #444;
  background: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  transition: border-color 0.2s ease;
}

.timeline-item.has-data:hover .timeline-icon {
  border-color: var(--gold);
}

.timeline-icon-placeholder {
  width: 100px;
  height: 80px;
  border-radius: 10px;
  border: 2px solid #444;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #777;
}

.year-label {
  font-size: 0.78rem;
  color: #999;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.timeline-item.has-data:hover .year-label {
  color: var(--gold);
}

.mobile-timeline {
  display: none;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.mobile-card {
  display: flex;
  gap: 1.1rem;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  margin-bottom: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-card:hover,
.mobile-card:active {
  border-color: var(--gold);
  background: #1c1c1c;
}

.mobile-card-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
}

.mobile-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #777;
}

.mobile-card-content {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.mobile-card-year {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.mobile-card-title {
  font-size: 0.98rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.mobile-card-role {
  font-size: 0.82rem;
  color: #999;
}

.mobile-card-more {
  font-size: 0.75rem;
  color: var(--gold);
  margin-top: 0.35rem;
}

.timeline-tooltip {
  position: fixed;
  width: 280px;
  background: #161616;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
  pointer-events: auto;
  z-index: 9999;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  max-height: 85vh;
  overflow-y: auto;
}

.timeline-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

.timeline-tooltip.pinned {
  border-color: #555;
}

.timeline-tooltip .tip-year {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.timeline-tooltip h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.timeline-tooltip .role {
  font-size: 0.84rem;
  color: #aaa;
  margin-bottom: 0.55rem;
}

.timeline-tooltip .desc {
  font-size: 0.84rem;
  color: #999;
  line-height: 1.5;
}

.timeline-tooltip .desc ul,
.timeline-tooltip ul {
  margin: 0.6rem 0 0.2rem 0.75rem;
  padding-left: 1.4rem;
  list-style: none !important;
}

.timeline-tooltip .desc ul li,
.timeline-tooltip ul li {
  position: relative;
  margin-bottom: 0.10rem;
  padding-left: 0.3rem;
  color: #999;
  font-size: 0.84rem;
  line-height: 1.45;
  list-style: none !important;
}

.timeline-tooltip .desc ul li::before,
.timeline-tooltip ul li::before {
  content: "•";
  position: absolute;
  left: -1.15rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 1em;
}

.tooltip-gallery {
  position: relative;
  margin-top: 0.9rem;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  touch-action: pan-y;
  user-select: none;
}

.gallery-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  pointer-events: auto;
  cursor: zoom-in;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.65);
  border: none;
  color: white;
  font-size: 1.4rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip-gallery:hover .gallery-prev,
.tooltip-gallery:hover .gallery-next {
  opacity: 1;
}

.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }

.gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.gallery-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

.gallery-dots span.active {
  background: var(--gold);
}

.year-selection {
  position: fixed;
  z-index: 9000;
  background: #161616;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 1.4rem;
  width: 360px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  max-width: 92vw;
}

.year-selection.visible {
  opacity: 1;
  visibility: visible;
}

.selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
}

.selection-year {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
}

.selection-count {
  font-size: 0.8rem;
  color: #888;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 0.85rem;
}

.selection-card {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 0.65rem;
  cursor: pointer;
  text-align: center;
  color: #ddd;
  transition: all 0.2s ease;
}

.selection-card:hover {
  border-color: var(--gold);
  color: #fff;
  background: #252525;
}

.selection-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.45rem;
  display: block;
}

.selection-placeholder {
  width: 100%;
  height: 72px;
  background: #2a2a2a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 0.45rem;
}

.selection-card span {
  font-size: 0.78rem;
  display: block;
  line-height: 1.3;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
  }

  .panel {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    justify-content: flex-start;
  }

  #passion .panel-inner,
  #personal .panel-inner {
    width: 100%;
    padding-top: 4.5rem;
    margin: 0 auto;
  }

  #passion .back-btn,
  #personal .back-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
  }

  #passion .passion-inner {
    padding: 4.5rem 1rem 3rem;
  }

  #professional {
    overflow: visible !important;
  }

  .professional-inner {
    padding: 3.5rem 1rem 2rem;
    height: auto !important;
    min-height: auto;
  }

  .professional-inner h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .timeline-intro {
    font-size: 0.88rem;
    margin-bottom: 1.8rem;
  }

  .action-btn .btn-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .action-btn {
    min-width: 160px;
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-timeline {
    display: block;
  }

  #professional .back-btn {
    top: 1rem;
    left: 1rem;
    transform: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .timeline-tooltip {
    width: 90vw;
    max-width: 340px;
  }

  .year-selection {
    width: 90vw;
    max-width: 340px;
  }

  .gallery-prev,
  .gallery-next {
    display: none !important;
  }
}

/* ===== Passion hands ===== */
#passion .passion-inner {
  max-width: none;
  width: 100%;
  margin-inline: auto;
  padding: 4.5rem max(1.4rem, 4vw) 4rem;
  box-sizing: border-box;
}

.passion-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: min(100%, 52rem);
  margin: 0 auto 1rem;
  text-align: left;
}

.passion-head h1 {
  margin: 0;
  flex: 0 0 auto;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
}

#passion .passion-lead {
  max-width: 26rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #9a9a9a;
  text-align: left;
}

.passion-hands {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 0.85rem clamp(2rem, 8vw, 8rem);
  justify-content: center;
  justify-items: center;
  align-items: start;
  width: 100%;
  margin-inline: auto;
}

.hand {
  width: 320px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.35s ease;
  position: relative;
}

.hand::before {
  content: "";
  position: absolute;
  inset: -70px -55px -45px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

.hand > * {
  position: relative;
  z-index: 1;
}

.hand[data-hand="maker"]::before {
  background: radial-gradient(ellipse at center, rgba(160, 110, 60, 0.30) 0%, transparent 70%);
}

.hand[data-hand="thinker"]::before {
  background: radial-gradient(ellipse at center, rgba(70, 150, 90, 0.28) 0%, transparent 70%);
}

.hand[data-hand="dabbler"]::before {
  background: radial-gradient(ellipse at center, rgba(70, 130, 200, 0.28) 0%, transparent 70%);
}

.hand[data-hand="doer"]::before {
  background: radial-gradient(ellipse at center, rgba(180, 60, 55, 0.28) 0%, transparent 70%);
}

.passion-hands .hand {
  z-index: 1;
}

.passion-hands.has-open .hand:not(.open) {
  opacity: 0.32;
  pointer-events: none;
}

.hand.open { z-index: 12; }

.fan {
  position: relative;
  width: 260px;
  height: 290px;
  margin: 0 auto 0.85rem;
}

.playing-card {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 172px;
  height: 256px;
  margin-left: -80px;
  border-radius: 11px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(201, 162, 39, 0.16), transparent 42%),
    linear-gradient(165deg, #2c2c2c 0%, #161616 55%, #101010 100%);
  border: 1px solid #3d3d3d;
  box-shadow: 0 12px 26px rgba(0,0,0,0.5), inset 0 0 0 4px #1a1a1a;
  transform-origin: 50% 100%;
  transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * 17deg));
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: var(--gold);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem 0.5rem 0.9rem;
  pointer-events: none;
}

.playing-card span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

.hand.open .playing-card {
  pointer-events: auto;
  transform: translateX(calc((var(--i) - (var(--n) - 1) / 2) * 180px)) rotate(0deg);
}

.hand.open .playing-card:hover {
  border-color: var(--gold);
  transform: translateX(calc((var(--i) - (var(--n) - 1) / 2) * 180px)) rotate(0deg) translateY(-8px);
}

.hand-label {
  background: transparent;
  border: 1px solid #333;
  color: #e8e8e8;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.hand.open .hand-label,
.hand-label:hover {
  border-color: var(--gold);
  color: var(--gold);
}

a.back-btn.stub-back {
  position: relative;
  top: auto;
  left: auto;
  display: inline-block;
  margin-bottom: 1.6rem;
}

@media (max-width: 900px) {
  .passion-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    margin-bottom: 3.5rem;
  }

  .passion-head .passion-lead {
    text-align: center;
  }

  .passion-hands { grid-template-columns: 1fr; gap: 2.4rem; }
  .hand {
    width: min(320px, 100%);
  }
  .hand.open .playing-card {
    transform: translateX(calc((var(--i) - (var(--n) - 1) / 2) * 135px)) rotate(0deg);
  }
}

/* Desktop: title sits beside the lead, and the hands fit one viewport.
   Shorter windows scale the cards down just enough to keep the labels in view. */
@media (min-width: 901px) {
  body.site-hub #passion {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #passion .passion-head {
    margin-bottom: 6rem;
  }

  #passion .passion-hands {
    grid-template-columns: repeat(2, max-content);
    gap: 3.25rem 8.25rem;
    width: max-content;
    max-width: 100%;
  }

  #passion .fan {
    margin-bottom: 0.4rem;
  }
}

#passion .crew-footer {
  margin-top: clamp(7.5rem, 18vh, 11rem);
}

@media (min-width: 901px) and (max-height: 860px) {
  #passion .fan {
    width: 236px;
    height: 248px;
    margin-bottom: 0.3rem;
  }

  #passion .playing-card {
    width: 152px;
    height: 218px;
    margin-left: -76px;
  }

  #passion .hand {
    width: 300px;
  }
}

.playing-card img {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: cover;
  border-radius: 7px;
  z-index: 0;
}

.playing-card span {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(10, 10, 10, 0.72);
  padding: 0.35rem 0.2rem;
  border-radius: 4px;
}

html.page-slide,
html.page-slide body {
  overflow-x: hidden;
}

body.page-exit {
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

body.page-enter {
  transform: translateX(100%);
}

body.page-enter-active {
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

#personal.panel {
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 40;
  background: #0d0d0d;
}

#passion,
#professional {
  position: relative;
  background: #0d0d0d;
}

#passion .back-btn,
#personal .back-btn {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 20;
}

/* ===== Landing hero ===== */
#landing {
  display: block;
  background: #0d0d0d;
  color: #f0f0f0;
}

.hero {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: #0d0d0d;
}

.hero-name {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 1.2vw;
  text-align: center;
  pointer-events: none;
  user-select: none;
  transform: none;
}

.hero-name-back { z-index: 1; }
.hero-name-front { z-index: 5; }

.hero-name-back .glyph.front,
.hero-name-back .glyph.prime {
  color: transparent;
  text-shadow: none;
}

.hero-name-front .glyph.back {
  color: transparent;
  text-shadow: none;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%, rgba(13, 13, 13, 0.28) 0%, transparent 62%);
}

.hero-name .line {
  display: block;
  width: max-content;
  max-width: none;
  margin-inline: auto;
  font-family: "Archivo Black", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.045em;
  color: var(--gold);
  white-space: nowrap;
}

.glyph {
  position: relative;
  display: inline;
  text-shadow:
    0 0 14px rgba(13, 13, 13, 0.95),
    0 2px 22px rgba(13, 13, 13, 0.9);
}

.glyph.back { z-index: 1; }
.glyph.front { z-index: 4; }
.glyph.prime { z-index: 6; }

.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.flow-row {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  overflow: hidden;
}

.flow-row-top {
  top: calc(var(--chrome-h) * 0.28);
}

.flow-row-mid {
  top: 31vh;
}

.flow-row-low {
  top: 56vh;
}

.flow-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: max-content;
  animation-name: flow-ltr;
  animation-duration: 13s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running;
  will-change: transform;
}

.flow-set {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  --flow-gap: clamp(22rem, 44vw, 52rem);
  gap: var(--flow-gap);
  padding-right: var(--flow-gap);
}

.flow-row-mid .flow-track {
  animation-duration: 19s;
  animation-delay: -6s;
}

.flow-row-mid .flow-set {
  --flow-gap: clamp(28rem, 60vw, 68rem);
}

.flow-row-low .flow-track {
  animation-duration: 26s;
  animation-delay: -11s;
}

.flow-row-low .flow-set {
  --flow-gap: clamp(24rem, 49.6vw, 58rem);
}

@keyframes flow-ltr {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.flow-frame {
  flex: 0 0 auto;
  width: var(--fw, 18vw);
  height: var(--fh, 26vh);
  margin-top: var(--oy, 0vh);
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.45);
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
  pointer-events: auto;
  appearance: none;
}

.flow-frame:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.flow-frame.sz-s { --fw: 12vw; --fh: 17vh; }
.flow-frame.sz-m { --fw: 17vw; --fh: 25vh; }
.flow-frame.sz-l { --fw: 23vw; --fh: 33vh; }
.flow-frame.sz-t { --fw: 14vw; --fh: 38vh; }
.flow-frame.oy-up { --oy: 0vh; }
.flow-frame.oy-mid { --oy: 6vh; }
.flow-frame.oy-dn { --oy: 13vh; }

.flow-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.site-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72vh;
  padding: 16vh clamp(1.25rem, 2.5vw, 2.75rem) 18vh;
  background: #0d0d0d;
}

.site-summary p {
  max-width: none;
  width: 100%;
  margin: 0;
  text-align: center;
  color: var(--gold);
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  line-height: 1.45;
  font-weight: 500;
}

.site-chrome {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--chrome-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.45rem, env(safe-area-inset-top)) max(1.1rem, env(safe-area-inset-right)) 0.35rem max(1.1rem, env(safe-area-inset-left));
  pointer-events: none;
}

body.site-hub .site-chrome {
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.94) 62%, rgba(13, 13, 13, 0));
}

.site-chrome > * {
  pointer-events: auto;
}

.site-logo {
  display: block;
  height: 4.35rem;
  width: auto;
  line-height: 0;
}

.site-logo img {
  display: block;
  height: 100%;
  width: auto;
}

body.site-hub .site-logo img {
  filter: invert(1);
}

body.site-hub.menu-open .site-logo img {
  filter: none;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #f4efe8;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

body.menu-open .menu-toggle {
  color: #14110c;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before { top: -7px; }
.burger::after { top: 7px; }

.menu-toggle[aria-expanded="true"] .burger {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  background: var(--gold);
  color: #14110c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--chrome-h) + 1.5rem) 7vw max(11rem, calc(env(safe-area-inset-bottom) + 10rem));
}

.site-menu[hidden] {
  display: none !important;
}

.site-menu:not([hidden]) {
  animation: menu-in 0.22s ease;
}

@keyframes menu-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.menu-open .site-chrome {
  background: transparent;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15em;
  width: min(100%, 72rem);
}

.menu-nav a {
  font-family: "Archivo Black", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: #14110c;
  text-decoration: none;
  white-space: nowrap;
}

.menu-nav a:hover,
.menu-nav a:focus-visible {
  color: #000;
}

.menu-social {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(1.35rem, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
}

.menu-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  overflow: hidden;
}

.menu-social img {
  width: 96px;
  height: 96px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* LinkedIn’s view box is mostly empty, so the mark is scaled up
   inside the same 96px box the other icons already fill. */
.menu-social a[title="LinkedIn"] img {
  width: 184px;
  height: 184px;
}

.site-logo:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.menu-open .site-logo:focus-visible,
body.menu-open .menu-toggle:focus-visible,
.menu-nav a:focus-visible,
.menu-social a:focus-visible {
  outline: 2px solid #14110c;
  outline-offset: 3px;
}

@media (max-width: 820px) {
  :root {
    --chrome-h: 4.55rem;
  }

  .site-logo {
    height: 3.35rem;
  }

  .hero-name {
    padding: 0 2vw;
  }

  .site-summary {
    min-height: 64vh;
    padding: 14vh 1.15rem 16vh;
  }

  .site-summary p {
    font-size: 1.35rem;
    line-height: 1.45;
  }

  .flow-frame.sz-s { --fw: 32vw; --fh: 16vh; }
  .flow-frame.sz-m { --fw: 42vw; --fh: 21vh; }
  .flow-frame.sz-l { --fw: 54vw; --fh: 27vh; }
  .flow-frame.sz-t { --fw: 36vw; --fh: 32vh; }
  .flow-frame.oy-mid { --oy: 3vh; }
  .flow-frame.oy-dn { --oy: 7vh; }

  .flow-row-mid { top: 30vh; }
  .flow-row-low { top: 54vh; }

  .menu-nav a {
    font-size: clamp(2.4rem, 12vw, 4.2rem);
  }
}

@media (max-height: 700px) and (min-width: 821px) {
  .flow-frame.sz-s { --fh: 15vh; }
  .flow-frame.sz-m { --fh: 20vh; }
  .flow-frame.sz-l { --fh: 26vh; }
  .flow-frame.sz-t { --fh: 30vh; }
  .site-summary { min-height: 56vh; }
}

@media (prefers-reduced-motion: reduce) {
  .burger,
  .burger::before,
  .burger::after {
    transition: none;
  }

  .site-menu:not([hidden]) {
    animation: none;
  }

  .flow-track {
    animation-duration: 52s;
    animation-play-state: running;
  }

  .flow-row-mid .flow-track { animation-duration: 76s; }
  .flow-row-low .flow-track { animation-duration: 104s; }
}
