/* Cinematic portfolio — navy, gold, teal */

:root {
  --navy: #071422;
  --navy-2: #0c2238;
  --ink: #e8eef6;
  --muted: #93a4bb;
  --gold: #e8a54b;
  --gold-soft: rgba(232, 165, 75, 0.16);
  --teal: #3ec8c8;
  --teal-soft: rgba(62, 200, 200, 0.14);
  --card: #10263c;
  --line: rgba(232, 238, 246, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Fraunces", "Times New Roman", serif;
  --nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + -40px);
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  padding-top: var(--nav-h);
  font-family: var(--font);
  color: var(--ink);
  background: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(62, 200, 200, 0.18), transparent 55%),
    radial-gradient(700px 480px at 90% 8%, rgba(232, 165, 75, 0.16), transparent 50%),
    linear-gradient(180deg, #071422 0%, #0a1b2e 45%, #071422 100%);
}

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

a {
  color: var(--teal);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 6vw;
  background: rgba(7, 20, 34, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: #071422;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.05rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-download {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700 !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 10px 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6vw 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.05;
  margin: 0 0 8px;
  font-weight: 700;
}

.hero-role {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--teal);
  font-weight: 600;
}

.hero-tagline {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #f0c27a);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.resume-updated {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
}

.hero-visual {
  position: relative;
}

.hero-illustration {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #081018;
}

.hero-illustration img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-portrait-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 0 18px;
}

.hero-portrait {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.portrait-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.7;
  pointer-events: none;
}

.band {
  padding: 28px 0 56px;
  scroll-margin-top: calc(var(--nav-h) + -40px);
}

.band-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.band-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
}

.band-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.about-layout {
  display: grid;
  gap: 28px;
}

.about-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 100%;
}

.studio-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #081018;
}

.studio-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 901px) {
  .about-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 40px;
    align-items: center;
  }

  .studio-frame {
    display: flex;
    justify-content: center;
    padding: 16px 18px;
  }

  .studio-frame img {
    width: auto;
    max-width: min(100%, 720px);
    max-height: 380px;
  }
}

.catalog {
  position: relative;
  padding: 12px 56px 8px;
  touch-action: pan-y;
  overflow: hidden;
  max-width: 100%;
}

.catalog-stage {
  position: relative;
  height: min(70vh, 560px);
  min-height: 420px;
  overflow: hidden;
  perspective: 1400px;
}

.catalog-fit {
  padding-left: 0;
  padding-right: 0;
}

.catalog-fit .catalog-stage {
  height: auto;
  min-height: 0;
  perspective: none;
}

.catalog-fit .catalog-card {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  max-width: 680px;
  height: auto;
  margin: 0 auto;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto;
}

.catalog-fit .catalog-card-scroll {
  flex: 0 0 auto;
  overflow: visible;
}

.catalog-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(680px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(-50%) translateX(calc(var(--offset, 0) * 42%))
    scale(var(--scale, 1))
    rotateY(calc(var(--offset, 0) * -12deg));
  opacity: var(--opacity, 1);
  z-index: var(--z, 1);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(62, 200, 200, 0.08), transparent 28%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  box-shadow: var(--shadow);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.catalog-card-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 22px 20px 28px;
}

.card-more {
  position: relative;
  flex: 0 0 72px;
  z-index: 6;
  height: 72px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 20px 20px;
  background: var(--card);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.card-more[hidden] {
  display: none;
}

.card-more i {
  font-size: 2.35rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(7, 20, 34, 0.72);
  border: 2px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  animation: more-bounce 1.15s ease-in-out infinite;
}

.card-more.is-up i {
  animation: none;
  transform: rotate(180deg);
}

@keyframes more-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.catalog-card.is-active {
  pointer-events: auto;
}

.catalog-card[hidden] {
  display: none;
}

.card-index {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.catalog-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.card-meta,
.card-summary {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.catalog-details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-details > li {
  position: relative;
  padding: 8px 0 8px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.catalog-details > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.catalog-details ul {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.catalog-arrow {
  position: absolute;
  top: 46%;
  z-index: 12;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(7, 20, 34, 0.75);
  color: var(--ink);
  cursor: pointer;
}

.catalog-arrow.is-prev {
  left: 0;
}

.catalog-arrow.is-next {
  right: 0;
}

.catalog-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.catalog-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.catalog-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
}

.catalog-dots button.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

.media-thumb {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #081018;
  cursor: pointer;
}

.media-thumb img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  margin: 0 auto;
}

.catalog-card-media h3 {
  font-size: 1.15rem;
}

.skill-title {
  margin: 8px 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.skill-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 22px;
}

.skill-pills li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid rgba(62, 200, 200, 0.28);
  font-size: 0.86rem;
}

.skill-pills-soft li {
  background: var(--gold-soft);
  border-color: rgba(232, 165, 75, 0.3);
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 6vw 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-actions a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 10, 18, 0.72);
  overflow: auto;
  padding: 4vh 4vw;
}

.modal.is-open {
  display: block;
}

.spmodal-content,
.modal-content {
  position: relative;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.spmodal-content {
  width: min(440px, 100%);
}

.modal-content {
  width: min(720px, 100%);
}

.modal img {
  width: 100%;
}

.close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-portrait-wrap {
    width: 108px;
    height: 108px;
    margin-bottom: 14px;
  }

  .hero-portrait {
    width: 108px;
    height: 108px;
  }

  .catalog {
    padding: 8px 44px 0;
  }

  .catalog-stage {
    height: min(75vh, 620px);
  }

  .catalog-card {
    width: 100%;
    transform: translateX(-50%);
  }

  .catalog-fit {
    padding-left: 0;
    padding-right: 0;
  }

  .catalog-fit .catalog-stage {
    height: auto;
    min-height: 0;
  }

  .catalog-fit .catalog-card {
    transform: none !important;
    height: auto;
  }

  .catalog-arrow.is-prev {
    left: 2px;
  }

  .catalog-arrow.is-next {
    right: 2px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 6vw 20px;
    background: rgba(7, 20, 34, 0.96);
    border-bottom: 1px solid var(--line);
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .catalog-card {
    transition: none;
  }

  .card-more i {
    animation: none;
  }
}
