:root {
  --bg: #f5f0e8;
  --bg-2: #e8decf;
  --ink: #17202a;
  --muted: #68727d;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-2: rgba(255, 255, 255, 0.52);
  --navy: #101828;
  --navy-2: #17233a;
  --gold: #c69343;
  --gold-2: #f2d39b;
  --green: #154a42;
  --line: rgba(16, 24, 40, 0.12);
  --white-line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(16, 24, 40, 0.16);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(198, 147, 67, 0.32), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(21, 74, 66, 0.22), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(16, 24, 40, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(245, 240, 232, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.12);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--green));
  color: var(--gold-2);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.brand__text strong, .brand__text small { display: block; }
.brand__text strong { line-height: 1.08; }
.brand__text small { color: var(--muted); font-size: 0.76rem; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.nav a {
  border-radius: 999px;
  padding: 10px 13px;
  color: #354052;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: 0.22s ease;
}
.nav a:hover, .nav a:focus-visible { background: var(--navy); color: #fff; }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero, .section {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(255,255,255,0.44));
  box-shadow: var(--shadow);
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: 28px;
  padding: clamp(30px, 6vw, 76px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(198, 147, 67, 0.2);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 8.4vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.085em;
  color: var(--navy);
}
.hero__lead {
  max-width: 690px;
  margin-bottom: 18px;
  color: #1f2a3a;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 850;
  line-height: 1.25;
}
.hero__text, .about__content p, .skill-grid p, .project-card p, .timeline p, .contact p, .music__text p, .song-info p {
  color: var(--muted);
  line-height: 1.75;
}
.hero__text { max-width: 660px; margin-bottom: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--navy), var(--green)); color: white; box-shadow: 0 18px 36px rgba(16, 24, 40, 0.22); }
.btn--secondary { border-color: var(--line); background: rgba(255,255,255,0.66); color: var(--navy); }
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}
.hero__meta div {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255,255,255,0.54);
}
.hero__meta strong, .hero__meta span { display: block; }
.hero__meta strong { color: var(--navy); }
.hero__meta span { margin-top: 4px; color: var(--muted); font-size: 0.88rem; }
.hero__visual { position: relative; isolation: isolate; }
.profile-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 34px;
  background: var(--navy);
  box-shadow: 0 30px 70px rgba(16, 24, 40, 0.22);
}
.profile-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  pointer-events: none;
}
.profile-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; }
.floating-card {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 18px;
  padding: 13px 15px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
}
.floating-card span, .floating-card strong { display: block; }
.floating-card span { color: var(--muted); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.floating-card strong { margin-top: 4px; color: var(--navy); }
.floating-card--top { top: 26px; left: -18px; }
.floating-card--bottom { right: -10px; bottom: 34px; }

.section { margin-top: 28px; padding: clamp(28px, 5vw, 58px); border-radius: var(--radius-xl); }
.section__head { max-width: 760px; margin-bottom: 32px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2, .contact h2, .music h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4.5vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.about__grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.about__photo { overflow: hidden; border-radius: 28px; border: 1px solid rgba(255,255,255,0.74); background: #fff; }
.about__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; }
.info-list { display: grid; gap: 12px; margin-top: 26px; }
.info-list div { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: rgba(255,255,255,0.55); }
.info-list span, .info-list strong { display: block; }
.info-list span { color: var(--gold); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.info-list strong { margin-top: 5px; color: var(--navy); word-break: break-word; }
.skill-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.skill-grid article, .timeline article, .contact__card, .song-info {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.56);
}
.skill-grid article { padding: 24px; transition: 0.22s ease; }
.skill-grid article:hover, .project-card:hover { transform: translateY(-5px); box-shadow: 0 24px 54px rgba(16, 24, 40, 0.12); }
.skill-grid span { display: inline-flex; margin-bottom: 20px; color: var(--gold); font-weight: 950; }
.skill-grid h3 { color: var(--navy); margin-bottom: 8px; }
.skill-grid p { margin-bottom: 0; }
.portfolio__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,0.55); transition: 0.22s ease; }
.project-card--large { grid-column: span 2; }
.project-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-card div { padding: 22px; }
.project-card span { display: inline-flex; margin-bottom: 10px; color: var(--gold); font-size: 0.75rem; font-weight: 950; letter-spacing: 0.14em; text-transform: uppercase; }
.project-card h3 { margin-bottom: 8px; color: var(--navy); font-size: 1.35rem; }
.project-card p { margin-bottom: 0; }
.timeline { display: grid; gap: 14px; }
.timeline article { display: grid; grid-template-columns: 110px 1fr; gap: 22px; padding: 22px; }
.timeline span { color: var(--gold); font-weight: 950; }
.timeline h3 { margin-bottom: 8px; color: var(--navy); }
.timeline p { margin-bottom: 0; }
.music { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(24px, 5vw, 56px); align-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: white; }
.music .eyebrow { color: var(--gold-2); }
.music h2 { color: white; }
.music__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.music__actions span { border: 1px solid var(--white-line); border-radius: 999px; padding: 11px 14px; color: #e7eef8; font-weight: 800; }
.music-player { display: grid; grid-template-columns: 0.72fr 1fr; gap: 18px; align-items: center; border: 1px solid var(--white-line); border-radius: 30px; padding: 24px; background: rgba(255,255,255,0.07); }
.disc { display: grid; aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(from 45deg, var(--gold), var(--green), var(--gold-2), var(--gold)); box-shadow: 0 24px 60px rgba(0,0,0,0.22); }
.disc img { width: 58%; aspect-ratio: 1; border: 8px solid rgba(16,24,40,0.8); border-radius: 50%; object-fit: cover; }
.music-player[data-playing="true"] .disc { animation: spinDisc 8s linear infinite; }
.song-info { padding: 18px; background: rgba(255,255,255,0.08); border-color: var(--white-line); }
.song-info span { color: var(--gold-2); font-size: 0.76rem; font-weight: 950; letter-spacing: 0.16em; text-transform: uppercase; }
.song-info strong { display: block; margin: 8px 0; font-size: clamp(1.2rem, 2.6vw, 1.8rem); }
.song-info p { margin-bottom: 0; color: #cdd6e4; }
.equalizer { grid-column: 1 / -1; display: flex; align-items: end; justify-content: center; gap: 8px; min-height: 64px; border: 1px solid var(--white-line); border-radius: 20px; padding: 14px; background: rgba(0,0,0,0.18); }
.equalizer span { width: 12px; height: 18px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); opacity: 0.44; }
.music-player[data-playing="true"] .equalizer span { opacity: 1; animation: eqPulse 0.9s ease-in-out infinite alternate; }
.music-player[data-playing="true"] .equalizer span:nth-child(2) { animation-delay: 0.12s; }
.music-player[data-playing="true"] .equalizer span:nth-child(3) { animation-delay: 0.24s; }
.music-player[data-playing="true"] .equalizer span:nth-child(4) { animation-delay: 0.36s; }
.music-player[data-playing="true"] .equalizer span:nth-child(5) { animation-delay: 0.48s; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery figure { position: relative; overflow: hidden; min-height: 260px; margin: 0; border: 1px solid rgba(255,255,255,0.7); border-radius: var(--radius-lg); background: #fff; }
.gallery figure:nth-child(1) { grid-row: span 2; }
.gallery figure img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: 0.35s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; border: 1px solid rgba(255,255,255,0.45); border-radius: 16px; padding: 11px 13px; background: rgba(16,24,40,0.72); backdrop-filter: blur(14px); color: white; font-weight: 900; }
.contact { display: grid; grid-template-columns: 1fr 0.9fr; gap: 28px; align-items: center; }
.contact p { margin-bottom: 0; }
.contact__card { display: grid; gap: 14px; padding: 24px; }
.contact__email { color: var(--navy); font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 950; text-decoration: none; word-break: break-word; }
.contact__card span { color: var(--muted); }
.contact__socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.contact__socials a { border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: rgba(255,255,255,0.58); color: var(--navy); font-weight: 850; text-decoration: none; }
.footer { width: min(1180px, calc(100% - 32px)); margin: 28px auto 38px; color: var(--muted); text-align: center; }
@keyframes spinDisc { to { transform: rotate(360deg); } }
@keyframes eqPulse { from { height: 14px; } to { height: 56px; } }
@media (max-width: 1040px) {
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio__grid, .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card--large { grid-column: span 1; }
}
@media (max-width: 860px) {
  .site-header { align-items: flex-start; flex-direction: column; border-radius: 26px; }
  .nav { justify-content: flex-start; }
  .hero, .about__grid, .music, .contact { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; }
  .hero__meta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header, main, .footer { width: min(100% - 22px, 1180px); }
  .site-header { top: 10px; padding: 10px; }
  .brand__mark { width: 42px; height: 42px; }
  .nav a { padding: 8px 10px; font-size: 0.82rem; }
  .hero, .section { border-radius: 24px; padding: 22px; }
  .hero h1 { font-size: 3.15rem; }
  .floating-card { position: static; margin-top: 12px; }
  .about__photo { max-width: 360px; }
  .skill-grid, .portfolio__grid, .gallery__grid { grid-template-columns: 1fr; }
  .timeline article { grid-template-columns: 1fr; gap: 8px; }
  .music-player { grid-template-columns: 1fr; }
  .disc { width: min(240px, 100%); margin: 0 auto; }
  .gallery figure:nth-child(1) { grid-row: auto; }
  .gallery figure, .gallery figure img { min-height: 230px; }
}
