.player__controls {
  width: 100%;
  margin-top: 0.5rem;
}
:root {
  color-scheme: dark;
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.55;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 30px rgba(5, 7, 15, 0.45);
  --max-width: 768px;
  --font-normal: 1rem;
  --font-emphasis: 1.125rem;
  --font-deemphasis: .875rem;
  --line-title: 2.5;



  --bg-light-focus: oklch(0.25 0.085 307);
  --bg-light-focus-more: oklch(0.3 0.085 307);
  --bg-dark: oklch(0.1 0.085 307);
--bg: oklch(0.15 0.085 307);
--bg-light: oklch(0.2 0.085 307);
--text: oklch(0.96 0.1 307);
--text-muted: oklch(0.76 0.1 307);
--highlight: oklch(0.5 0.17 307);
--border: oklch(0.4 0.17 307);
--border-muted: oklch(0.3 0.17 307);
--primary: oklch(0.76 0.17 307);
--secondary: oklch(0.76 0.17 127);
--danger: oklch(0.7 0.17 30);
--warning: oklch(0.7 0.17 100);
--success: oklch(0.7 0.17 160);
--info: oklch(0.7 0.17 260);

  --ff: "Open Sans", sans-serif;
  --h1: 2rem/1.7em var(--ff);
  --h2: 1.5rem/1.4em var(--ff);
  --h3: 1.2rem/1em var(--ff);
  --p: 1rem/1.4em var(--ff);
  --p2: 1rem/1.4em var(--ff);

  --gradient: linear-gradient(0deg, var(--bg) 95%, var(--bg-light));
  --gradient-hover: linear-gradient(0deg, var(--bg), var(--bg-light));
  --shadow-s:
  inset 0 1px 2px #ffffff30,
  0 1px 2px #00000030,
  0 2px 4px #00000015;
  --shadow-m:
  inset 0 1px 2px #ffffff50,
  0 2px 4px #00000030,
  0 4px 8px #00000015;
  --shadow-l:
  inset 0 1px 2px #ffffff70,
  0 4px 6px #00000030,
  0 6px 10px #00000015;
}

:where(#hero, #demos, #studio, #work, #training, #about) {
  scroll-margin-top: 90px;
}

* {
  box-sizing: border-box;
}

p {
  margin-top: 0;
  font: var(--p);
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: var(--bg-dark);
  scroll-behavior: smooth;
}

/* Prevent unwanted scroll behavior on mobile */
@media (max-width: 719px) {
  html {
    scroll-behavior: auto;
  }
  
  /* Prevent momentum scrolling issues */
  body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  
  /* Mobile navigation styles */
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 300ms ease;
    z-index: 1000;
  }
  
  .close-menu {
    display: block !important;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
  }
  
  .nav-links.is-open {
    transform: translateX(0);
  }
  
  .floating-nav__link {
    width: auto;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    text-align: center;
    min-width: 200px;
  }
  
  .floating-nav {
    justify-content: flex-end;
  }
}

h2 {
  font: var(--h2);
}

body {
  position: relative;
}

audio {
  width: 100%;
}

audio::-webkit-media-controls-panel {
  background: var(--bg-light);
  box-shadow: var(--shadow-l);
}

button {
  border: 0;
}

.panel {
  background: var( --gradient);
  border-radius: 40px;
  padding: 20px 10px;
}

.panel-elevated {
  background: var(--bg-light);
  border-radius: 20px;
  box-shadow: var(--shadow-m);
}

.hero h1 {
  font: var(--h1);
  margin: 0;
  text-align:center;
}

.hero h3 {
  color: var(--text-muted);
  font: var(--h3);
  text-align:center;
  margin-top: 0;
}

.hero_text {
  display: flex;
  flex-direction: column;
}

.backdrop {
  display: none;
}

.floating-nav {
  background: var(--bg);
  border-radius: 20px;
  padding: 0.55rem 0.8rem;
  position: sticky;
  top: 1rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(var(--max-width), calc(100vw - 2rem));
  z-index: 10;
}

.floating-nav.is-stuck {
  background: var(--bg);
  box-shadow: var(--shadow-s);
}

.hamburger-menu {
  display: block;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 150ms ease;
}

.hamburger-menu:hover,
.hamburger-menu:focus-visible {
  background: var(--bg-light-focus);
}

.hamburger-menu svg {
  fill: var(--text);
  width: 24px;
  height: 24px;
  display: block;
}

.close-menu {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 150ms ease;
  z-index: 1001;
}

.close-menu:hover,
.close-menu:focus-visible {
  background: var(--bg-light-focus);
}

.close-menu svg {
  fill: var(--text);
  width: 24px;
  height: 24px;
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
  width: 100%;
}

.floating-nav__link {
  background: var(--bg-light);
  color: var(--text);
  width: 46%;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  box-shadow: var(--shadow-s);
  text-transform: uppercase;
}

.floating-nav__link:hover,.section__body
.floating-nav__link:focus-visible,
.floating-nav__link.is-active {
  background: var(--bg-light-focus);
  box-shadow: var(--shadow-l);
}

.hero {
  margin-top: 50px;
  flex-direction: column !important;
  justify-content: center;
  align-items: center;
}

.hero__portrait {
  justify-self: center;
  width: 200px;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-m);
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.email {
  background: var(--bg-light);
  padding: 1rem 1.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-m);
  transition: background 150ms ease;
  color: var(--text);
}

.email:hover,
.email:focus-visible {
  background: var(--bg-light-focus);
}

.container {
  display: grid;
  gap: 50px;
  padding: 0 0 clamp(4rem, 8vw, 6rem);
}

.section {
  width: min(var(--max-width), calc(100vw - 2rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 4vw, 2.1rem);
}

.section__title {
  text-align: center;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}

.section__body {
  display: flex;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  font-size: 1.02rem;
}

.work__video {
  display: none !important;
  width: 100%;
  display: flex;
  justify-content: center;
}

.work__video video {
  width: min(100%, 720px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-m);
}

.player {
  display: grid;
  gap: 1.25rem;
  background: var(--bg);
}

.player__playlist {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 0.9rem;
}

.playlist-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 85px;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--bg-light);
  box-shadow: var(--shadow-s);
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 220ms ease,
    transform 220ms ease,
    border-color 200ms ease;
}

.player__controls {
  width: 100%;
  margin-top: 0.5rem;
}

.playlist-item__art {
  position: relative;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-s);
}

.playlist-item__content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  color: var(--text);
}

.playlist-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.playlist-item__title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.playlist-item__status {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-height: 1em;
}

.playlist-item__duration {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.playlist-item:focus-visible {
  outline: none;
}

.playlist-item:is(.is-active, :hover, :focus-visible) {
  background: var(--bg-light-focus-more);
  box-shadow: var(--shadow-l);
  border-color: var(--highlight);
  transform: translateY(-3px);
}

.playlist-item:is(.is-active, :hover, :focus-visible) .playlist-item__content {
  gap: 0.5rem;
}

.playlist-item:is(.is-active, :hover, :focus-visible) .playlist-item__duration {
  color: var(--text);
  opacity: 0.85;
}

.studio {
  padding: clamp(1.25rem, 4vw, 1.8rem);
  display: grid;
  gap: 0.9rem;
}

.studio__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.studio__list span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.studio__sample {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 150ms ease, color 150ms ease;
  background: var(--bg-light-focus);
  padding: 6px 10px;
  box-shadow: var(--shadow-s);
  border-radius: 20px;
}

.studio__sample strong {
  color: var(--text);
  transition: color 150ms ease;
}

.studio__sample:hover,
.studio__sample:focus-visible {
  background: var(--bg-light-focus-more);
  padding: 6px 10px;
  box-shadow: var(--shadow-l);
  border-radius: 20px;
}

.studio__sample:hover strong,
.studio__sample:focus-visible strong {
  color: var(--primary);
}

.about {
  display: grid;
  box-shadow: var(--shadow-s);
  padding: 1.1rem 1.2rem;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.3rem, 4vw, 1.8rem);
}

.training-list {
  display: grid;
  gap: clamp(1.2rem, 4vw, 1.6rem);
}

@media (min-width: 720px) {
  .hero {
    flex-direction: row !important;
    justify-content: center;
  }
  
  .panel {
    padding: 40px;
  }
  
  .training-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floating-nav {
    padding: 0.55rem 0.8rem;
    top: 1.5rem;
    justify-content: center;
  }
  
  .hamburger-menu {
    display: none !important;
  }
  
  .nav-links {
    position: static;
    transform: none;
    background: none;
    flex-direction: row;
    justify-content: center;
    gap: 1.1rem;
    padding: 0;
  }
  
  .close-menu {
    display: none !important;
  }

  .floating-nav__link {
    width: auto;
  }

  .work-gallery__button img {
    width: 160px;
    height: 160px;
  }

  .work-tooltip.is-visible {
    width: auto;
  }
}

.work-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(1.2rem, 4vw, 1.6rem);
  flex-wrap: wrap;
  justify-content: space-around;
}

.work-gallery__item {
  display: flex;
  padding: 0;
}

.work-gallery__button {
  display: block;
  border: none;
  padding: 10px;
  border-radius: 20px;
  background: var(--bg-light);
  box-shadow: var(--shadow-s);
  cursor: pointer;
  overflow: hidden;
  transition: transform 150ms ease;
}

.work-gallery__button:hover {
  background: var(--bg-light-focus);
  box-shadow: var(--shadow-l);
}

.work-gallery__button img {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 150ms ease;
}

.work-gallery__button:hover img,
.work-gallery__button:focus-visible img {
  transform: scale(1.05);
}

.training-card {
  padding: 1.1rem 1.2rem;
  min-height: 220px;
}

.training-card__title {
  margin: 0;
  font-size: var(--font-normal);
  line-height: var( --line-title);
}

.training-card__meta {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--font-deemphasis);
  line-height: 2em;
  text-transform: uppercase;
}

.training-card__description {
  margin: 0;
  font-size: var(--font-normal);
  color: rgba(244, 239, 230, 0.86);
  line-height: 1.5em;
}

.work-tooltip {
  position: absolute;
  z-index: 1500;
  background: var(--bg-light-focus);
  border-radius: 20px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-m);
  display: none;
  width: max-content;
  max-width: min(320px, calc(100vw - 2rem));
}

.work-tooltip.is-visible {
  display: grid;
  width: 200px;
  gap: 0.4rem;
}

.work-tooltip__project {
  margin: 0;
}

.work-tooltip__role {
  margin: 0;
  color: var(--text-muted);
}

.card-item__title {
  
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-item__mentor,
.card-item__role,
.card-item__org {
  margin: 0;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.card-item__desc {
  color: rgba(244, 239, 230, 0.82);
  line-height: 1.6;
}


