:root {
  /* Shiny gold + white — text tuned to the gold family */
  --ink: #3f3216;
  --muted: #8a7848;
  --white: #ffffff;
  --gold: #d4af37;
  --gold-soft: #f3e0a8;
  --gold-bright: #ffe9a0;
  --gold-deep: #8f6b16;
  --gold-bronze: #6b5210;
  --accent: #d4af37;
  --accent-soft: #f3e0a8;
  --accent-deep: #8f6b16;
  --accent-dark: #5c4712;
  --metal: linear-gradient(
    115deg,
    #7a5a12 0%,
    #c9a227 18%,
    #f6e27a 32%,
    #fff6d0 42%,
    #e0b84a 55%,
    #a67c1a 72%,
    #d4af37 88%,
    #8a6a18 100%
  );
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(212, 175, 55, 0.35);
  --glass-blur: blur(16px) saturate(1.15);
  --glass-shadow:
    0 16px 40px rgba(44, 36, 24, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --panel-text: #3f3216;
  --coral: #d4af37;
  --coral-light: #f3e0a8;
  --coral-dark: #5c4712;
  --teal: #8f6b16;
  --line: rgba(212, 175, 55, 0.22);
  --shadow: 0 16px 40px rgba(44, 36, 24, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #ffffff;
  font-family: "Sora", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 40% at 10% 8%, rgba(255, 233, 160, 0.45), transparent 55%),
    radial-gradient(ellipse 45% 35% at 90% 10%, rgba(212, 175, 55, 0.22), transparent 50%),
    radial-gradient(ellipse 40% 30% at 80% 85%, rgba(246, 226, 122, 0.2), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fffdf8 45%, #faf4e6 100%);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.4;
  animation: orb-drift 16s ease-in-out infinite;
}

.orb-a {
  width: 34vw;
  height: 34vw;
  top: -8%;
  left: -5%;
  background: radial-gradient(circle, #ffe9a0, transparent 70%);
}

.orb-b {
  width: 28vw;
  height: 28vw;
  top: 8%;
  right: -6%;
  background: radial-gradient(circle, #d4af37, transparent 70%);
  animation-delay: -4s;
}

.orb-c {
  width: 24vw;
  height: 24vw;
  bottom: 12%;
  left: 30%;
  background: radial-gradient(circle, #f6e27a, transparent 70%);
  animation-delay: -7s;
  opacity: 0.28;
}

.orb-d {
  display: none;
}

.shine-flare {
  position: absolute;
  top: -20%;
  left: -30%;
  width: 55%;
  height: 70%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 246, 208, 0.55) 48%,
    rgba(255, 255, 255, 0.35) 52%,
    transparent 65%
  );
  transform: rotate(18deg);
  animation: flare-sweep 7s ease-in-out infinite;
  pointer-events: none;
}

.gold-curves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
}

.gold-curves .curve {
  stroke-linecap: round;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.35));
  animation: curve-drift 14s ease-in-out infinite, curve-glow 5s ease-in-out infinite;
}

.gold-curves .curve-a { animation-duration: 12s, 4.5s; animation-delay: 0s, 0s; }
.gold-curves .curve-b { animation-duration: 16s, 6s; animation-delay: -3s, -1s; opacity: 0.85; }
.gold-curves .curve-c { animation-duration: 15s, 5.5s; animation-delay: -6s, -2s; }
.gold-curves .curve-d { animation-duration: 18s, 7s; animation-delay: -2s, -0.5s; opacity: 0.65; }
.gold-curves .curve-e { animation-duration: 17s, 5s; animation-delay: -5s, -1.5s; opacity: 0.75; }

.gold-dots circle {
  fill: #d4af37;
  opacity: 0.55;
  filter: drop-shadow(0 0 3px rgba(255, 233, 160, 0.8));
  animation: dot-twinkle 3.8s ease-in-out infinite;
}

.gold-dots circle:nth-child(2) { animation-delay: 0.4s; }
.gold-dots circle:nth-child(3) { animation-delay: 0.9s; }
.gold-dots circle:nth-child(4) { animation-delay: 1.3s; }
.gold-dots circle:nth-child(5) { animation-delay: 1.8s; }
.gold-dots circle:nth-child(6) { animation-delay: 0.6s; }
.gold-dots circle:nth-child(7) { animation-delay: 2.1s; }
.gold-dots circle:nth-child(8) { animation-delay: 1.1s; }

.crystal-bubbles .bubble {
  filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.2));
}

.crystal-bubbles .bubble-motion {
  transform-box: fill-box;
  transform-origin: center;
  animation: bubble-float 9s ease-in-out infinite;
}

.crystal-bubbles .bubble-body {
  opacity: 0.9;
}

.crystal-bubbles .bubble-shine {
  animation: crystal-spark 3.2s ease-in-out infinite;
}

.crystal-bubbles .crystal-facet {
  animation: crystal-spark 4s ease-in-out infinite;
  animation-delay: 0.6s;
}

.bubble-1 .bubble-motion { animation-duration: 8s; animation-delay: 0s; }
.bubble-2 .bubble-motion { animation-duration: 10s; animation-delay: -1.2s; }
.bubble-3 .bubble-motion { animation-duration: 11s; animation-delay: -2.4s; }
.bubble-4 .bubble-motion { animation-duration: 9s; animation-delay: -0.8s; }
.bubble-5 .bubble-motion { animation-duration: 12s; animation-delay: -3.1s; }
.bubble-6 .bubble-motion { animation-duration: 8.5s; animation-delay: -1.7s; }
.bubble-7 .bubble-motion { animation-duration: 10.5s; animation-delay: -2.8s; }
.bubble-8 .bubble-motion { animation-duration: 9.5s; animation-delay: -0.5s; }
.bubble-9 .bubble-motion { animation-duration: 7.5s; animation-delay: -3.6s; }
.bubble-10 .bubble-motion { animation-duration: 11.5s; animation-delay: -4.2s; }

/* Metallic gold shine surfaces */
.gold-metal {
  position: relative;
  background-image: var(--metal);
  background-size: 220% 100%;
  color: #3d2e12;
  border: 1px solid rgba(255, 246, 208, 0.55);
  box-shadow:
    0 10px 28px rgba(166, 124, 26, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(122, 90, 18, 0.25);
  animation: metal-shine 5.5s ease-in-out infinite;
}

.gold-metal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 48%,
    transparent 62%
  );
  background-size: 220% 100%;
  animation: metal-shine 5.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.gold-rim {
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #8a6a18, #f6e27a 28%, #fff8dc 48%, #d4af37 68%, #8a6a18) border-box;
  box-shadow:
    0 16px 40px rgba(44, 36, 24, 0.07),
    0 0 0 1px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.gold-text {
  background-image: linear-gradient(
    110deg,
    #7a5a12 0%,
    #d4af37 28%,
    #fff1b8 48%,
    #c9a227 68%,
    #8a6a18 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: metal-shine 6s ease-in-out infinite;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.container {
  width: min(1240px, calc(100% - 36px));
  margin-inline: auto;
}

.hero,
.highlights,
.footer,
.modal {
  position: relative;
  z-index: 1;
}

.glass-chip,
.glass-panel,
.portfolio-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  color: var(--panel-text);
  border-radius: 28px;
  border: 1px solid rgba(197, 163, 90, 0.2);
}

.glass-chip {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border-radius: 999px;
  border: 1px solid rgba(197, 163, 90, 0.22);
}

.hero {
  padding: 18px 0 12px;
}

.hero-shell {
  display: grid;
  gap: 16px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.mono-disk {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  color: #3d2e12;
  font: 700 0.78rem/1 "Fraunces", serif;
  text-shadow: 0 1px 0 rgba(255, 246, 208, 0.5);
}

.brand-text {
  font: 650 1.05rem/1 "Fraunces", serif;
  letter-spacing: -0.02em;
  color: var(--gold-bronze);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(197, 163, 90, 0.22);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe9a0, #d4af37);
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.45);
  animation: pulse 2.4s ease-out infinite;
}

.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.hero-copy-wrap {
  position: relative;
  padding: 8px;
}

.hero-copy-glow {
  position: absolute;
  inset: 2px;
  border-radius: 30px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 233, 160, 0.4), rgba(212, 175, 55, 0.1), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: orb-drift 12s ease-in-out infinite;
}

.hero-copy-ring {
  position: absolute;
  z-index: 1;
  inset: 4px;
  border-radius: 28px;
  padding: 1.5px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3vw, 36px);
  border: 2px solid #fff;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 18px rgba(212, 175, 55, 0.22),
    0 14px 30px rgba(44, 36, 24, 0.07);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy,
.section-heading,
.modal-panel {
  color: var(--panel-text);
}

.name-stack {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
}

.name-first {
  font: 700 clamp(2.8rem, 6vw, 4.4rem)/0.95 "Fraunces", serif;
  letter-spacing: -0.04em;
  color: var(--gold-bronze);
}

.name-last {
  font: italic 550 clamp(1.6rem, 3.4vw, 2.3rem)/1 "Fraunces", serif;
}

.intro {
  max-width: 36rem;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid rgba(210, 230, 220, 0.55);
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #7aab98 0%, #5f8f7c 45%, #3f6b5c 100%);
  color: #f7fffb;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(63, 107, 92, 0.3),
    inset 0 1px 0 rgba(220, 240, 230, 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 36px rgba(63, 107, 92, 0.38),
    inset 0 1px 0 rgba(220, 240, 230, 0.5);
}

.ghost-link {
  color: var(--gold-deep);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.45);
  padding-bottom: 2px;
}

.ghost-link:hover {
  color: var(--gold-bronze);
  border-color: var(--gold-bronze);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border-color: rgba(197, 163, 90, 0.25);
}

.contact-chip:hover {
  background: #fff;
  color: var(--gold-deep);
  border-color: rgba(197, 163, 90, 0.45);
}

.portrait-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  padding: 28px 10px 36px;
}

.portrait-glow {
  position: absolute;
  inset: 10% 2% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 160, 0.65), rgba(212, 175, 55, 0.25), transparent 70%);
  filter: blur(14px);
  animation: orb-drift 12s ease-in-out infinite;
}

.portrait-ring {
  position: absolute;
  z-index: 1;
  inset: 18px 14px 26px;
  border-radius: 50%;
  padding: 4px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 1;
  margin: 22px 18px 30px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(160deg, #fff8e8, #f3e0a8);
  box-shadow:
    0 0 24px rgba(212, 175, 55, 0.35),
    0 18px 36px rgba(44, 36, 24, 0.1);
}

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

.float-chip {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid transparent;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(120deg, #8a6a18, #f6e27a, #d4af37, #8a6a18);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 18px rgba(166, 124, 26, 0.15);
}

.chip-top {
  top: 8px;
  left: 0;
}

.chip-bpm {
  top: 18%;
  right: -8px;
  display: grid;
  gap: 2px;
  border-radius: 18px;
  text-align: right;
}

.chip-bpm .chip-label {
  opacity: 0.75;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chip-bpm strong {
  font: 700 1.05rem/1 "Fraunces", serif;
}

.chip-bottom {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.highlights {
  padding: 10px 0 36px;
}

.section-heading {
  margin-bottom: 16px;
  padding: 20px 24px;
}

.section-heading h2 {
  margin-bottom: 8px;
  font: 700 clamp(1.9rem, 3.5vw, 2.6rem)/1.05 "Fraunces", serif;
  color: var(--gold-bronze);
}

.section-support {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  border: 1px solid transparent;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(135deg, #8a6a18, #f6e27a 35%, #fff8dc 50%, #d4af37 70%, #8a6a18);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  box-shadow:
    0 18px 36px rgba(166, 124, 26, 0.18),
    0 0 0 1px rgba(212, 175, 55, 0.15);
}

.card-art {
  position: relative;
  height: 140px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #fff8e4, #f3e0a8 45%, #d4af37);
}

.card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 65%
  );
  background-size: 220% 100%;
  animation: metal-shine 6s ease-in-out infinite;
  pointer-events: none;
}

.card-art.has-image {
  background: #1f180c;
}

.card-art.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 280ms ease;
}

.portfolio-card:hover .card-art.has-image img,
.portfolio-card:focus-visible .card-art.has-image img {
  transform: scale(1.04);
}

.card-art.has-image::after {
  background: linear-gradient(
    to top,
    rgba(40, 28, 8, 0.45) 0%,
    transparent 55%
  );
  animation: none;
}

.card-resume .card-art {
  background: linear-gradient(145deg, #fff8e4, #f3e0a8 40%, #d4af37 85%);
}

.art-mark {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.75);
  font: 700 clamp(2.2rem, 3.5vw, 3rem)/1 "Fraunces", serif;
  text-shadow: 0 6px 16px rgba(122, 90, 18, 0.25);
}

.art-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-deep);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 14px 12px 16px;
  border-top: 1px solid rgba(197, 163, 90, 0.14);
  background: #fff;
}

.card-number {
  color: rgba(166, 124, 26, 0.4);
  font: 600 1.2rem/1 "Fraunces", serif;
}

.card-tag {
  margin: 0 0 4px;
  color: var(--gold-deep);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-body > div {
  min-width: 0;
}

.card-body h3 {
  margin: 0;
  font: 650 clamp(0.88rem, 1.1vw, 1rem)/1.3 "Fraunces", serif;
  color: var(--gold-bronze);
  overflow-wrap: normal;
  word-break: normal;
}

.card-body h3 br {
  display: block;
}

.card-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff4cc, #d4af37);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #3d2e12;
  font-size: 0.9rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-card:hover .card-arrow {
  box-shadow: 0 6px 14px rgba(166, 124, 26, 0.35);
  transform: translate(2px, -2px);
}

.footer {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto 28px;
  padding: 16px 22px;
  text-align: center;
  border-radius: 999px;
  color: #f7fffb;
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #3f6b5c 0%, #5f8f7c 48%, #4a7a68 100%);
  border: 1px solid rgba(210, 230, 220, 0.4);
  box-shadow:
    0 12px 28px rgba(63, 107, 92, 0.22),
    inset 0 1px 0 rgba(220, 240, 230, 0.35);
}

.footer p { margin: 0; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 52, 40, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  padding: 34px;
  color: var(--panel-text);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 168, 74, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--panel-text);
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--gold-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-panel h2 {
  margin-bottom: 10px;
  padding-right: 48px;
  font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.1 "Fraunces", serif;
  color: var(--gold-bronze);
}

#modal-description {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.modal-content { display: grid; gap: 16px; }

.modal-empty {
  padding: 20px 16px;
  border: 1px dashed rgba(201, 168, 74, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
}

.modal-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-bronze);
  font: 650 1.1rem/1.3 "Fraunces", serif;
}

.modal-doc-grid,
.modal-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.modal-doc-grid:has(.modal-doc-card:only-child) {
  grid-template-columns: minmax(0, 300px);
}

.modal-doc-card,
.modal-project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(201, 168, 74, 0.16);
  background: rgba(255, 255, 255, 0.85);
}

.modal-doc-main {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.modal-doc-logo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 120px;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.modal-doc-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-doc-logo.is-cover {
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #1f180c;
}

.modal-doc-logo.is-cover img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.modal-doc-logo.is-contain {
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 22px;
  box-sizing: border-box;
  background: #fffaf0;
  overflow: hidden;
}

.modal-doc-logo.is-contain img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.modal-doc-mark {
  font: 700 1.2rem/1 "Fraunces", serif;
  color: var(--gold-deep);
}

.modal-doc-label,
.modal-project-label {
  margin: 0;
  color: var(--gold-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-doc-title,
.modal-project-title {
  margin: 0;
  font: 650 1rem/1.3 "Fraunces", serif;
  color: var(--gold-bronze);
}

.modal-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.modal-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f7f1e2;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.modal-chip-link.is-coral,
.modal-chip-link:hover {
  background-image: var(--metal);
  background-size: 220% 100%;
  color: #3d2e12;
  border: 1px solid rgba(255, 246, 208, 0.5);
}

.reveal-hero,
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--delay, 0s);
}

.reveal-hero {
  animation: rise 780ms ease forwards;
  animation-delay: var(--delay, 0s);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -14px) scale(1.06); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@keyframes metal-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes flare-sweep {
  0%, 100% { transform: translateX(0) rotate(18deg); opacity: 0.35; }
  50% { transform: translateX(35%) rotate(18deg); opacity: 0.7; }
}

@keyframes curve-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -8px); }
}

@keyframes curve-glow {
  0%, 100% {
    opacity: 0.5;
    filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.25));
  }
  50% {
    opacity: 0.95;
    filter: drop-shadow(0 0 8px rgba(255, 233, 160, 0.55));
  }
}

@keyframes dot-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 0.9; transform: scale(1.25); }
}

@keyframes bubble-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  35% { transform: translate(4px, -7px) scale(1.04); }
  70% { transform: translate(-3px, -3px) scale(0.98); }
}

@keyframes crystal-spark {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .gold-curves .curve,
  .gold-dots circle,
  .crystal-bubbles .bubble-motion,
  .crystal-bubbles .bubble-shine,
  .crystal-bubbles .crystal-facet,
  .shine-flare,
  .gold-metal,
  .gold-metal::after,
  .gold-text,
  .card-art::after {
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .hero-board {
    grid-template-columns: 1fr;
  }

  .portrait-stage {
    order: -1;
    max-width: 280px;
  }

  .chip-bpm { right: 0; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1240px); }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 22px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .modal-doc-grid,
  .modal-project-grid {
    grid-template-columns: 1fr;
  }

  .modal-panel { padding: 28px 18px; }

  .footer {
    width: min(100% - 28px, 1240px);
    border-radius: 22px;
  }
}
