* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  background: var(--page-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .24;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--page-vignette);
  z-index: 5;
}

.audio-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .72;
  z-index: 1;
}

.audio-bg::before,
.audio-bg::after {
  content: "";
  position: absolute;
  inset: -30%;
  background-repeat: repeat;
  background-size: 900px 760px;
  filter: none;
  animation: drift 70s linear infinite;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='760' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3Etext%7Bfont-family:Menlo,Consolas,monospace;font-size:14px;fill:%23ff55d6;fill-opacity:.55%7D .dim%7Bfill:%239b6cff;fill-opacity:.36%7D%3C/style%3E%3Ctext x='60' y='60' class='dim'%3Esonny.aif@deck:~$ prep lesson intake%3C/text%3E%3Ctext x='60' y='96'%3ECDJ / Rekordbox / Ableton / bass music%3C/text%3E%3Ctext x='60' y='132'%3Egoals locked / feedback channel open%3C/text%3E%3Ctext x='60' y='168'%3Eaudio upload ready / student profile captured%3C/text%3E%3Ctext x='420' y='280' class='dim'%3ESonnySounds Lessons%3C/text%3E%3Ctext x='420' y='316'%3Emixing / production / performance%3C/text%3E%3Ctext x='420' y='352'%3Eworkflow audit / next steps%3C/text%3E%3Ctext x='100' y='520' class='dim'%3Etrack feedback queued%3C/text%3E%3Ctext x='100' y='556'%3Erekordbox library check%3C/text%3E%3Ctext x='100' y='592'%3EAbleton session review%3C/text%3E%3C/svg%3E");
}

.audio-bg::after {
  opacity: .24;
  animation-duration: 95s;
  animation-direction: reverse;
  transform: translateX(30%);
}

@keyframes drift {
  from { transform: translate3d(0,-8%,0); }
  to { transform: translate3d(0,14%,0); }
}

.page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: clamp(.8rem, 1.6vw, 1.35rem);
}

.shell {
  width: min(1560px, 100%);
  min-height: calc(100vh - 2.7rem);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: clamp(22px, 3vw, 42px);
  border: var(--shell-border);
  background: var(--shell-bg);
  box-shadow: var(--shell-shadow);
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem clamp(1.1rem, 3vw, 3rem);
  background: var(--header-bg);
  border-bottom: var(--header-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo {
  color: var(--header-logo-main-color);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -.04em;
  font-weight: 900;
}

.logo span {
  color: var(--header-logo-accent-color);
  text-shadow: var(--header-logo-accent-shadow);
}
nav {
  display: flex;
  gap: clamp(.68rem, 1.68vw, 1.42rem);
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: var(--header-nav-link-color);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.17rem;
}

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

.content {
  position: relative;
  min-height: 0;
  padding: clamp(1rem, 2vw, 1.8rem);
  display: grid;
  grid-template-columns: minmax(270px, .42fr) minmax(0, 1.58fr);
  gap: clamp(.85rem, 1.35vw, 1.25rem);
}

.intro-panel,
.form-panel {
  border-radius: 28px;
  border: var(--panel-border);
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.intro-panel {
  padding: clamp(1.2rem, 2.1vw, 2rem);
  display: grid;
  align-content: center;
  min-height: 0;
}

.eyebrow {
  color: var(--hero-eyebrow-color);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: clamp(.62rem, .72vw, .82rem);
  font-weight: 950;
  margin: 0 0 .9rem;
  text-shadow: var(--hero-eyebrow-shadow);
}

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

h1 {
  margin: 0;
  font-size: clamp(2.7rem, min(4.4vw, 6.4vh), 5.7rem);
  line-height: .9;
  letter-spacing: -.060em;
  font-weight: 950;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.white {
  color: var(--hero-title-main-color);
  -webkit-text-fill-color: var(--hero-title-main-color);
  text-shadow: var(--hero-title-main-shadow);
}

.glow {
  background: linear-gradient(120deg, #ff3fc8 0%, #9b26d9 42%, #4411b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: var(--hero-title-emphasis-filter);
}

.accent-line {
  width: 130px;
  height: 4px;
  margin: clamp(1rem, 1.8vw, 1.5rem) 0;
  border-radius: 999px;
  background: var(--accent-line-bg);
  box-shadow: var(--accent-line-shadow);
}

.intro-copy {
  margin-bottom: 0;
  color: var(--card-body-color);
  font-size: clamp(.86rem, .96vw, 1rem);
  line-height: 1.45;
}

.lesson-types {
  display: grid;
  gap: .72rem;
  margin-top: 1.25rem;
}

.type-pill {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--color-logo-white);
  font-size: .84rem;
  font-weight: 850;
  line-height: 1.25;
}

.type-pill strong {
  color: var(--color-logo-white);
}

.type-pill span {
  font-weight: 400;
}

.form-panel {
  padding: clamp(1rem, 1.5vw, 1.35rem);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: .9rem;
}

.form-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.form-head h2 {
  color: var(--color-logo-white);
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 3rem);
  line-height: .95;
  letter-spacing: -.052em;
  font-weight: 950;
}

.form-note {
  max-width: 31rem;
  margin: 0;
  color: rgba(255,194,245,.58);
  font-size: .82rem;
  line-height: 1.35;
  font-weight: 750;
  text-align: right;
}

form {
  min-height: 0;
  overflow: auto;
  padding-right: .45rem;
  display: grid;
  gap: .85rem;
}

form::-webkit-scrollbar {
  width: 8px;
}

form::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}

form::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink), var(--purple));
  border-radius: 999px;
}

fieldset {
  margin: 0;
  padding: clamp(.9rem, 1.25vw, 1.15rem);
  border-radius: 22px;
  border: 1px solid rgba(255,91,220,.15);
  background: rgba(255,255,255,.035);
}

legend {
  padding: 0 .45rem;
  color: #ffb8ef;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: .75rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: .35rem;
  color: var(--color-logo-white);
  font-size: .82rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(4,4,12,.62);
  color: var(--text);
  outline: none;
  padding: .72rem .82rem;
  font: inherit;
  font-size: .88rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.4;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255,63,200,.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,194,245,.35);
}

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

.check-card {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  padding: .62rem .7rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  color: var(--color-logo-white);
  font-weight: 850;
  font-size: .82rem;
}

.check-card input {
  width: auto;
  min-height: auto;
  accent-color: #ff3fc8;
}

.upload-box {
  border-radius: 18px;
  border: 1px dashed rgba(255,91,220,.34);
  background: rgba(255,255,255,.035);
  padding: 1rem;
}

.upload-box input {
  background: rgba(0,0,0,.18);
}

.upload-help {
  margin: .55rem 0 0;
  color: rgba(255,194,245,.56);
  font-size: .78rem;
  line-height: 1.35;
  font-weight: 750;
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  color: var(--button-text-color);
  text-decoration: none;
  font-weight: 950;
  font-size: .88rem;
  box-shadow: none;
  cursor: pointer;
}

.button.primary {
  background-color: var(--button-primary-bg-color);
  background-image: var(--button-primary-bg-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-color: var(--button-primary-border-color);
  color: var(--button-text-color);
  box-shadow: none;
  overflow: hidden;
}

.disabled-note {
  margin: 0;
  color: rgba(255,194,245,.55);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.35;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .95rem clamp(1.1rem, 3vw, 3rem);
  border-top: var(--footer-border);
  background: var(--footer-bg);
  color: var(--footer-text-color);
  backdrop-filter: blur(8px);
  font-size: .88rem;
}

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

  .form-note {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .content { padding: 1rem; }

  .intro-panel,
  .form-panel {
    border-radius: 22px;
  }

  .grid-2,
  .grid-3,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .form-head {
    display: grid;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5.4rem);
  }

  .eyebrow {
    letter-spacing: .18em;
    line-height: 1.6;
  }

}

@media (prefers-reduced-motion: reduce) {
  .audio-bg::before,
  .audio-bg::after {
    animation: none;
  }
}

@media (min-width: 981px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .page {
    height: 100svh;
    min-height: 100svh;
    padding: clamp(.45rem, .9vw, .95rem);
    display: grid;
  }

  .shell {
    height: calc(100svh - clamp(.9rem, 1.8vw, 1.9rem));
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  header {
    padding-block: clamp(.48rem, .75vh, .78rem);
  }

  nav a {
    font-size: clamp(.95rem, 1vw, 1.17rem);
  }

  .logo {
    font-size: clamp(.9rem, .9vw, 1.05rem);
  }

  .content {
    min-height: 0;
    height: 100%;
    padding:
      clamp(.75rem, 1.35vw, 1.55rem)
      clamp(.9rem, 2.25vw, 2.6rem);
  }

  .intro-panel,
  .form-panel {
    min-height: 0;
    height: 100%;
  }

  footer {
    padding-block: clamp(.5rem, .8vh, .8rem);
    font-size: clamp(.72rem, .8vw, .88rem);
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .content {
    gap: clamp(.65rem, 1vw, 1rem);
  }

  h1 {
    font-size: clamp(2.35rem, min(3.8vw, 5.7vh), 4.7rem);
  }

  .intro-copy,
  .type-pill {
    font-size: clamp(.76rem, .85vw, .9rem);
  }

  .lesson-types {
    gap: .4rem;
  }

  .type-pill {
    padding: .55rem .65rem;
  }

  fieldset {
    padding: .8rem;
  }

  textarea {
    min-height: 78px;
  }
}

@media (min-width: 981px) and (max-height: 690px) {
  .shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  footer {
    display: none;
  }

  .lesson-types {
    display: none;
  }
}

@media (max-width: 980px) {
  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  form {
    overflow: visible;
  }
}
