:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #f0f2f4;
  --text: #111418;
  --muted: #5f6875;
  --line: #d8dde3;
  --accent: #ec8932;
  --accent-hover: #1859bc;
  --max-width: 1120px;
  --content-width: 1080px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(17, 20, 24, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.site-shell {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0 5rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 2.5rem;
}

.site-mark {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

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

.game-page {
  display: grid;
  gap: 2.75rem;
}

.content-width {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.hero {
  padding: 2rem 0 0.5rem;
}

.hero-centered {
  text-align: center;
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hook {
  max-width: 38rem;
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.intro-section h2,
.gallery-section h2,
.extra-section h2,
.cv-section h2,
.section-heading h2 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.intro-section p,
.extra-section p,
.cv-block p,
.cv-section p,
.feature-card p,
.text-block p,
.home-lead,
.cv-simple-item p,
.site-footer p {
  color: black;
}

.intro-section p,
.extra-section p,
.text-block p {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.button-row,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button-row {
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  border-color: var(--text);
  color: #ffffff;
}

.button-primary:hover {
  background: #000000;
  border-color: #000000;
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-2);
  border-color: #c7cfd8;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.gallery-item {
  flex: 0 1 340px;
  margin: 0;
  overflow: hidden;
  padding: 5px;
  border: 1px solid rgba(17, 20, 24, 0.14);
  border-radius: 0;
  background: #ffffff;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transition: filter 0.2s ease;
}

.gallery-item:hover img {
  filter: brightness(1.32);
}

.cv-page {
  display: grid;
  gap: 2.25rem;
}

.cv-hero {
  padding-bottom: 0;
}

.cv-contact {
  padding-top: 0.25rem;
}

.cv-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

.cv-label {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cv-contact-grid p,
.cv-block p,
.cv-section p,
.site-footer p,
.cv-simple-item p {
  margin: 0;
}

.cv-section {
  padding-top: 0.25rem;
}

.cv-block {
  display: grid;
  gap: 0.5rem;
}

.cv-entry {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.cv-entry:first-of-type {
  padding-top: 0.25rem;
  border-top: 0;
}

.cv-entry-head {
  margin-bottom: 0.65rem;
}

.cv-entry h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.cv-meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cv-entry ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.cv-entry li + li {
  margin-top: 0.45rem;
}

.cv-section p.cv-reference {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-style:italic;
}

.cv-simple-list {
  display: grid;
  gap: 0.9rem;
}

.cv-simple-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.cv-simple-item:first-child {
  padding-top: 0.25rem;
  border-top: 0;
}

.cv-year {
  color: var(--muted);
  font-weight: 700;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skills-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.home-page {
  display: grid;
  gap: 2.5rem;
}

.home-hero {
  padding-bottom: 0;
}

.home-intro {
  padding-top: 0.25rem;
}

.home-lead {
  margin: 0;
  font-size: 1.08rem;
}

.section-block {
  display: grid;
  gap: 1rem;
}

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

.feature-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: #c7cfd8;
}

.feature-label {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.image-button {
  display: inline-block;
  height: 46px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.image-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.image-button img {
  display: block;
  height: 100%;
  width: auto;
}

.hero-link-list {
  display: grid;
  gap: 1rem;
}

.hero-link-card {
  position: relative;
  display: block;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease;
}

.hero-link-card:hover {
  border-color: #c7cfd8;
}

.hero-link-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 24, 0.34);
  transition: background 220ms ease;
}

.hero-link-card:hover::after {
  background: rgba(17, 20, 24, 0.68);
}

.hero-link-overlay {
  position: relative;
  z-index: 1;
  min-height: 180px;
  padding: 1.5rem;
  color: #ffffff;
}

.hero-link-content {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 132px;
}



.hero-link-card h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: transform 220ms ease;

  text-shadow:
          -2px -2px 0 rgb(0 0 0  / 25%),
          2px -2px 0 rgb(0 0 0  / 25%),
          -2px 2px 0 rgb(0 0 0  / 25%),
          2px 2px 0 rgb(0 0 0  / 25%);

}

.hero-link-card p {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 42rem);
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -10%);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.hero-link-card:hover h2 {
  transform: translate(-50%, -130%);
}

.hero-link-card:hover p {
  opacity: 1;
  transform: translate(-50%, 10%);
}

.music-page {
  display: grid;
  gap: 2rem;
}

.music-page .hero {
  text-align: center;
}

.music-hook {
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

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

.music-card {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  grid-template-areas:
    "main cover"
    "player player";
  gap: 1rem;
  align-items: center;
  padding: 1.125rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.music-card-1 {
  background: #aeb8c9;
}

.music-card-2 {
  background: #b9caa6;
}

.music-card-3 {
  background: #a36f73;
}

.music-card-4 {
  background: #c7b68a;
}

.music-card-5 {
  background: #8fa394;
}

.music-card-6 {
  background: #6f7f9f;
}

.music-card-7 {
  background: #b99ca5;
}

.music-card-8 {
  background: #a58b5f;
}

.music-card-main {
  grid-area: main;
  text-align: left;
}

.music-card-top {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.music-card-index {
  color: rgba(34, 34, 34, 0.88);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(31, 29, 26, 0.18);
}

.music-card-length {
  color: var(--muted);
  font-size: 0.92rem;
}

.music-card-title {
  margin: 0 0 0.625rem;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.music-card-desc {
  max-width: 34ch;
  margin: 0 0 0.875rem;
  color: rgba(31, 29, 26, 0.72);
  font-size: 0.96rem;
  line-height: 1.55;
}

.music-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
}

.music-tag {
  padding: 0.375rem 0.625rem;
  border: 1px solid rgba(31, 29, 26, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  color: rgba(31, 29, 26, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.music-cover {
  grid-area: cover;
  width: 160px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(31, 29, 26, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
  justify-self: center;
}

.music-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-player {
  grid-area: player;
  width: 100%;
}

.music-player audio {
  display: block;
  width: 100%;
  opacity: 0.4;
}

.music-player audio.is-playing {
  opacity: 1;
}

.site-footer {
  margin: 4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .music-card {
    grid-column: span 12;
  }
}

@media (max-width: 800px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .cv-contact-grid {
    grid-template-columns: 1fr;
  }

  .cv-simple-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

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

@media (max-width: 640px) {
  .music-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "cover"
      "player";
  }

  .music-cover {
    width: 100%;
    max-width: 220px;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-link-card {
    min-height: 150px;
  }

  .hero-link-overlay {
    min-height: 150px;
    padding: 1.25rem;
  }

  .hero-link-content {
    min-height: 100px;
  }

  .hero-link-card h2 {
    font-size: 1.25rem;
  }
}

.music-card:not(:has(.music-cover)) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "main"
    "player";
}

.music-card-no-cover {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "main"
    "player";
}

.content-img {
  display: block;
  width: auto;
  max-width: min(100%, 420px);
  height: auto;
  margin: 1.5rem auto 0;
  padding: 5px;
  border: 1px solid rgba(17, 20, 24, 0.14);
  background: #ffffff;
}