* {
  box-sizing: border-box;
}

:root {
  --bg: #120606;
  --bg-deep: #070202;
  --gold: #d1a702;
  --title-red: #660909;
  --info-white: #d2c9c9;
  --text: #fff3ea;
  --button-red: #660909;
  --button-yellow: #b06e19;

  --bubble: rgba(8, 3, 3, 0.42);
  --bubble-strong: rgba(8, 3, 3, 0.55);

  --border: rgba(209, 167, 2, 0.75);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.65);

  --title-font: "Cinzel", "Uncial Antiqua", "Goudy Old Style", Georgia, "Palatino Linotype", serif;
  --body-font: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

body.light {
  --bg: #fff7fb;
  --bg-soft: rgba(255, 122, 200, 0.1);
  --card: rgba(255, 255, 255, 0.8);
  --text: #251824;
  --muted: #6f5f71;
  --border: rgba(255, 122, 200, 0.22);
  --shadow: 0 24px 80px rgba(255, 122, 200, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 200, 0.2), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(139, 211, 255, 0.18), transparent 28rem),
    var(--bg);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
}

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

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  opacity: 0.35;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(18px);
  background: rgba(17, 16, 25, 0.65);
  border-bottom: 1px solid var(--border);
}

body.light .site-header {
  background: rgba(255, 247, 251, 0.72);
}

.logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.section {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 1.5rem;
}

.hero-card,
.profile-card,
.content-card,
.project-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--card), rgba(255, 255, 255, 0.04));
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(2rem, 6vw, 4.5rem);
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin: 0 0 0.8rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  margin-bottom: 1.4rem;
}

h1 span {
  color: var(--accent);
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-weight: 750;
  border: 1px solid var(--border);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #160d18;
}

.button.secondary {
  background: var(--bg-soft);
}

.profile-card {
  padding: 1.6rem;
  text-align: center;
}

.avatar {
  width: 9.5rem;
  height: 9.5rem;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(255, 122, 200, 0.95), rgba(139, 211, 255, 0.95));
  color: #201122;
  font-weight: 900;
  font-size: 2.4rem;
}

.profile-card h2 {
  margin-bottom: 0.25rem;
}

.profile-card p {
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #8dffb2;
  box-shadow: 0 0 16px #8dffb2;
}

.section-title {
  margin-bottom: 1.2rem;
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.06em;
  margin-bottom: 0;
}

.content-card {
  padding: clamp(1.4rem, 4vw, 2rem);
  color: var(--muted);
  line-height: 1.8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card {
  padding: 1.4rem;
  min-height: 13rem;
  display: flex;
  flex-direction: column;
}

.project-card p {
  color: var(--muted);
  line-height: 1.65;
}

.project-card a {
  margin-top: auto;
  color: var(--accent);
  font-weight: 750;
}

.links-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.links-list a {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: var(--bg-soft);
  text-align: center;
  font-weight: 750;
}

.links-list a:hover,
.project-card:hover {
  transform: translateY(-3px);
}

.project-card,
.links-list a {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

:root {
  --bg: #120606;
  --bg-deep: #070202;
  --gold: #d1a702;
  --title-red: #660909;
  --info-white: #ababab;
  --text: #f7eeee;
  --button-red: #660909;
  --button-yellow: #b06e19;
  --bubble: rgba(8, 3, 3, 0.25);
  --bubble-strong: rgba(8, 3, 3, 0.38);
  --border: rgba(209, 167, 2, 0.75);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --title-font: Georgia, "Palatino Linotype", "Times New Roman", serif;
  --body-font: "Segoe UI", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body-font);
  font-size: 1.08rem;
  background: var(--bg-deep);
  overflow-x: hidden;
}

/* one fixed background image, no repeating */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;

  background-image: url("./assets/Background.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* dark overlay so text stays readable */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background:
    linear-gradient(rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at top left, rgba(102, 9, 9, 0.18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(176, 110, 25, 0.15), transparent 30rem);
}

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

button {
  font: inherit;
}

.page-darkness {
  display: none;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(7, 2, 2, 0.78);
  border-bottom: 2px solid var(--gold);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.4);
}

.brand {
  font-family: var(--title-font);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 800;
  color: var(--info-white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand span {
  color: var(--gold);
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-buttons a,
.music-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.8rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(102, 9, 9, 0.78), rgba(176, 110, 25, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 241, 150, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-buttons a:hover,
.music-toggle:hover,
.main-button:hover,
.hover-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: 0 12px 28px rgba(176, 110, 25, 0.24);
}

.music-toggle {
  cursor: pointer;
  white-space: nowrap;
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  scroll-margin-top: 7rem;
}

.welcome-section {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 2.5rem);
}

.welcome-content {
  min-width: 0;
}

.text-bubble,
.mini-profile,
.project-card,
.social-card,
.gallery-item {
  position: relative;
  border: 2px solid var(--gold);
  background: var(--bubble);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.text-bubble::before,
.mini-profile::before,
.project-card::before,
.social-card::before,
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  pointer-events: none;
  border: 1px solid rgba(209, 167, 2, 0.38);
}

.text-bubble {
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: 1.6rem 0.6rem 1.6rem 0.6rem;
  color: var(--info-white);
  line-height: 1.85;
}

.hero-bubble {
  background: var(--bubble-strong);
}

.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-family: var(--title-font);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--title-font);
}

h1 {
  margin-bottom: 1rem;
  color: var(--title-red);
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.9;
  text-shadow:
    0 1px 0 var(--gold),
    0 10px 28px rgba(0, 0, 0, 0.65);
}

h1 span {
  color: var(--text);
}

h2 {
  margin-bottom: 0;
  color: var(--title-red);
  font-size: clamp(2.2rem, 5vw, 4rem);
  text-shadow: 0 1px 0 var(--gold);
}

h3 {
  color: var(--text);
  font-size: 1.55rem;
}

.credit-line {
  color: var(--text);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--button-red), var(--button-yellow));
  color: var(--text);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.main-button.ghost {
  background: rgba(8, 3, 3, 0.35);
}

.mini-profile {
  justify-self: end;
  width: 100%;
  padding: 1.25rem;
  border-radius: 0.7rem 1.7rem 0.7rem 1.7rem;
  text-align: center;
  animation: profileSlide 0.8s ease both;
}

.profile-frame {
  width: 190px;
  height: 190px;
  margin: 0 auto 1rem;
  padding: 0.55rem;
  border: 2px solid var(--gold);
  background:
    linear-gradient(135deg, rgba(102, 9, 9, 0.85), rgba(176, 110, 25, 0.6));
  clip-path: polygon(8% 0, 92% 0, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0 92%, 0 8%);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inherit;
  display: block;
}

.mini-profile h2 {
  font-size: 2rem;
}

.mini-profile p {
  color: var(--info-white);
}

.profile-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-badges span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(102, 9, 9, 0.38);
  color: var(--text);
  font-size: 0.9rem;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.project-card {
  min-height: 15rem;
  padding: 1.5rem;
  border-radius: 1.4rem 0.6rem 1.4rem 0.6rem;
  color: var(--info-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.project-card strong {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold);
}

.card-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.social-card {
  min-height: 8rem;
  padding: 1.35rem;
  border-radius: 1.2rem 0.6rem 1.2rem 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--info-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.social-card span {
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.social-card strong {
  color: var(--text);
  word-break: break-word;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  min-height: 240px;
  padding: 0;
  border-radius: 1.1rem 0.5rem 1.1rem 0.5rem;
  cursor: pointer;
  overflow: hidden;
  color: var(--text);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(8, 3, 3, 0.72);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.12);
}

.small-note {
  margin-top: 1rem;
  color: var(--info-white);
}

.small-note code {
  color: var(--gold);
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.contact-box p {
  margin-bottom: 0;
  font-size: 1.12rem;
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--info-white);
  text-align: center;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.86);
}

.image-modal.open {
  display: grid;
}

.image-modal img {
  max-width: min(100%, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
}

.modal-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(135deg, var(--button-red), var(--button-yellow));
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes profileSlide {
  from {
    opacity: 0;
    transform: translateX(70px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .top-bar {
    grid-template-columns: 1fr auto;
  }

  .nav-buttons {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  .welcome-section {
    grid-template-columns: 1fr;
  }

  .mini-profile {
    justify-self: start;
    max-width: 420px;
  }

  .social-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 260px;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 1rem, 1120px);
  }

  .top-bar {
    padding: 0.75rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .music-toggle,
  .nav-buttons a {
    min-height: 2.2rem;
    font-size: 0.88rem;
  }

  .text-bubble {
    padding: 1.1rem;
  }

  .profile-frame {
    width: 150px;
    height: 150px;
  }
}

.welcome-section {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
}

.welcome-content {
  width: 100%;
}

.hero-bubble {
  width: 100%;
  background: rgba(8, 3, 3, 0.38);
}

.merged-welcome {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.merged-profile {
  text-align: center;
  padding-right: clamp(1rem, 3vw, 2rem);
  border-right: 1px solid rgba(209, 167, 2, 0.45);
}

.merged-profile h2 {
  margin: 0.8rem 0 0.25rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.merged-profile p {
  margin-bottom: 1rem;
  color: var(--info-white);
}

.welcome-copy {
  min-width: 0;
}

.welcome-copy h1 {
  max-width: 760px;
}

@media (max-width: 860px) {
  .merged-welcome {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .merged-profile {
    padding-right: 0;
    padding-bottom: 1.5rem;
    border-right: 0;
    border-bottom: 1px solid rgba(209, 167, 2, 0.45);
  }

  .hero-actions {
    justify-content: center;
  }

  .page-title-image {
    margin-inline: auto;
  }
}

.merged-welcome {
  grid-template-columns: 320px minmax(0, 1fr);
}

.merged-profile {
  min-width: 0;
  overflow: hidden;
}

.merged-profile h2 {
  max-width: 100%;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.1;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
}

.merged-profile .profile-frame {
  width: min(190px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
}

.profile-badges {
  max-width: 100%;
}

.profile-badges span {
  font-size: 0.82rem;
  padding: 0.32rem 0.58rem;
}

.site-frame {
  position: fixed;
  inset: 8px;
  z-index: 999;
  pointer-events: none;
  border: 3px solid var(--gold);
  border-radius: 0.4rem;
  box-shadow:
    inset 0 0 0 2px rgba(102, 9, 9, 0.8),
    inset 0 0 0 6px rgba(209, 167, 2, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.75),
    0 0 28px rgba(209, 167, 2, 0.28);
}

.site-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(209, 167, 2, 0.55);
  border-radius: 0.25rem;
}

.site-frame::after {
  content: "";
  position: absolute;
  inset: -3px;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 90px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 4px 90px no-repeat,

    linear-gradient(var(--gold), var(--gold)) top right / 90px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 4px 90px no-repeat,

    linear-gradient(var(--gold), var(--gold)) bottom left / 90px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 4px 90px no-repeat,

    linear-gradient(var(--gold), var(--gold)) bottom right / 90px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 4px 90px no-repeat;
}

body {
  position: relative;
}

.site-frame {
  position: absolute;
  top: var(--topbar-height, 64px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;

  border-left: 4px solid var(--gold);
  border-right: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  border-top: 4px solid var(--gold);

  box-shadow:
    inset 0 0 0 2px rgba(102, 9, 9, 0.85),
    inset 0 0 0 10px rgba(209, 167, 2, 0.13),
    0 0 32px rgba(209, 167, 2, 0.25);
}

.site-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(209, 167, 2, 0.55);
}

.site-frame::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(var(--gold), var(--gold)) top left / 90px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 4px 90px no-repeat,

    linear-gradient(var(--gold), var(--gold)) top right / 90px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 4px 90px no-repeat,

    linear-gradient(var(--gold), var(--gold)) bottom left / 90px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 4px 90px no-repeat,

    linear-gradient(var(--gold), var(--gold)) bottom right / 90px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 4px 90px no-repeat;
}

.top-bar {
  z-index: 50;
}

main,
.site-footer {
  position: relative;
  z-index: 10;
}

h1 {
  font-family: "Uncial Antiqua", "Cinzel", Georgia, serif;
  letter-spacing: 0.01em;
}

h2,
h3,
.brand,
.section-kicker {
  font-family: "Cinzel", Georgia, serif;
}

p,
a,
button,
span {
  font-family: var(--body-font);
}

.nav-buttons a,
.music-toggle,
.main-button,
.profile-badges span {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
}

.text-bubble,
.project-card,
.social-card,
.gallery-item {
  background: rgba(8, 3, 3, 0.52);
}

.hero-bubble {
  background: rgba(8, 3, 3, 0.62);
}

.content-card,
.contact-box {
  background: rgba(8, 3, 3, 0.52);
}

p {
  color: var(--info-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.hero-bubble {
  overflow: hidden;
}

.merged-welcome {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.welcome-copy {
  min-width: 0;
  max-width: 100%;
}

.welcome-copy h1 {
  max-width: 100%;
  font-size: clamp(3.2rem, 5.8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.welcome-copy p {
  max-width: 680px;
}

.merged-profile {
  min-width: 0;
}

@media (max-width: 1100px) {
  .merged-welcome {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .welcome-copy h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
  }
}

@media (max-width: 860px) {
  .merged-welcome {
    grid-template-columns: 1fr;
  }

  .welcome-copy h1 {
    font-size: clamp(2.7rem, 13vw, 4.5rem);
  }
}

.profile-frame {
  width: 165px;
  height: 165px;
}

.merged-profile h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

/* Visible by default, animation only if JS adds support */
.reveal {
  opacity: 1;
  transform: none;
}

body.animations-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

body.animations-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}