/* Silveron Studios — isolated 2026 redesign */
:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-deep: #030408;
  --surface: rgba(17, 19, 29, 0.72);
  --surface-solid: #11131c;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f4f1;
  --text-soft: #b6b6bd;
  --text-faint: #7d7e88;
  --accent: #9b8cff;
  --accent-bright: #b9adff;
  --accent-rgb: 155, 140, 255;
  --cyan: #65d8d0;
  --cyan-rgb: 101, 216, 208;
  --warm: #f2b880;
  --header: rgba(7, 8, 13, 0.7);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.24);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 0.75rem;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --header-height: 5rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f0ea;
  --bg-deep: #e9e6de;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #fbfaf6;
  --surface-soft: rgba(24, 24, 34, 0.045);
  --surface-hover: rgba(24, 24, 34, 0.075);
  --line: rgba(20, 21, 29, 0.13);
  --line-strong: rgba(20, 21, 29, 0.22);
  --text: #151620;
  --text-soft: #555762;
  --text-faint: #686a74;
  --accent: #5b4cc4;
  --accent-bright: #4e40b4;
  --accent-rgb: 91, 76, 196;
  --cyan: #0f706c;
  --cyan-rgb: 15, 112, 108;
  --warm: #9b541f;
  --header: rgba(242, 240, 234, 0.78);
  --shadow: 0 32px 90px rgba(39, 35, 68, 0.14);
  --shadow-soft: 0 18px 50px rgba(39, 35, 68, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  background: var(--bg);
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 2%, rgba(var(--accent-rgb), 0.09), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: url("/assets/silveron/media/texture.svg") repeat;
  content: "";
  opacity: 0.13;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

::selection {
  background: rgba(var(--accent-rgb), 0.34);
  color: var(--text);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

:focus-visible {
  border-radius: 0.2rem;
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

.shell {
  width: min(100% - (2 * var(--gutter)), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1200;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--accent-bright));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.65);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Navigation */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.site-header.is-scrolled,
.menu-open .site-header {
  border-color: var(--line);
  background: var(--header);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.nav-shell {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  filter: drop-shadow(0 0 16px rgba(var(--accent-rgb), 0.22));
}

.brand-name {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 450;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-name b {
  color: var(--text-soft);
  font-weight: 650;
}

.nav-panel,
.primary-nav,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-panel {
  flex: 1;
  justify-content: flex-end;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.primary-nav {
  gap: clamp(1rem, 2.25vw, 2rem);
}

.primary-nav a {
  position: relative;
  padding-block: 0.7rem;
  color: var(--text-soft);
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.085em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.38rem;
  left: 0;
  height: 1px;
  background: var(--accent-bright);
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 220ms ease;
}

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

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-actions {
  gap: 0.7rem;
}

.icon-button,
.menu-toggle {
  display: grid;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  cursor: pointer;
  place-items: center;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.icon-button {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.theme-icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.theme-icon-moon,
:root[data-theme="light"] .theme-icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  gap: 5px;
  border-radius: 50%;
}

.menu-toggle span:not(.sr-only) {
  width: 1rem;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
  transform: translateY(-3px) rotate(-45deg);
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.82rem 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

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

.button-small {
  min-height: 2.6rem;
  padding-inline: 1.05rem;
  font-size: 0.72rem;
}

.button-solid {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.button-solid:hover {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
  color: #09090e;
  box-shadow: 0 14px 34px rgba(var(--accent-rgb), 0.22);
}

.button-ghost {
  background: var(--surface-soft);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.1);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  min-height: max(48rem, 100svh);
  overflow: hidden;
  align-items: center;
  padding: calc(var(--header-height) + 4rem) 0 6rem;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -4;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 44%, rgba(var(--accent-rgb), 0.14), transparent 30%),
    radial-gradient(ellipse at 78% 60%, rgba(var(--cyan-rgb), 0.09), transparent 26%),
    linear-gradient(145deg, transparent 42%, rgba(255, 255, 255, 0.018));
  content: "";
}

.ambient {
  position: absolute;
  z-index: -3;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.26;
  pointer-events: none;
  animation: ambient-drift 16s ease-in-out infinite alternate;
}

.ambient-one {
  top: 5%;
  right: -13rem;
  background: rgba(var(--accent-rgb), 0.62);
}

.ambient-two {
  bottom: -20rem;
  left: 16%;
  background: rgba(var(--cyan-rgb), 0.32);
  animation-delay: -7s;
}

.star-field {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(var(--accent-rgb), 0.5) 0 1px, transparent 1.4px);
  background-position: 4% 14%, 81% 24%;
  background-size: 11rem 11rem, 15rem 15rem;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.hero-grid-lines {
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: -20%;
  width: 64%;
  height: 76%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 4rem 4rem;
  opacity: 0.18;
  transform: perspective(650px) rotateX(62deg) rotateZ(-12deg);
  transform-origin: center bottom;
  mask-image: radial-gradient(ellipse, black 0%, transparent 68%);
}

.hero-layout {
  display: grid;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.82fr);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 47rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.45rem;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow > span {
  display: block;
  width: 1.8rem;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.hero h1 {
  margin-bottom: 1.6rem;
  font-family: var(--display);
  font-size: clamp(4.25rem, 8.6vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -0.068em;
  line-height: 0.78;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  margin-left: clamp(1.5rem, 6vw, 5rem);
  background: linear-gradient(110deg, var(--text) 8%, var(--accent-bright) 47%, var(--cyan) 112%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 400;
}

.hero-lede {
  max-width: 38rem;
  margin-bottom: 0.8rem;
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 430;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.hero-intro {
  max-width: 38rem;
  margin-bottom: 2.25rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.6rem;
  color: var(--text-soft);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.text-link span {
  transition: transform 180ms ease;
}

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

.text-link:hover span {
  transform: translateX(0.25rem);
}

.hero-object {
  position: relative;
  perspective: 1000px;
}

.hero-object::before {
  position: absolute;
  inset: 10% -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 67%);
  content: "";
  filter: blur(20px);
}

.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --reveal-y: 0px;
  transform: perspective(1000px) translateY(var(--reveal-y)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
}

.signal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  transition: transform 220ms ease-out, border-color 220ms ease;
}

.signal-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.08) 45%, transparent 62%);
  content: "";
  opacity: 0.35;
  pointer-events: none;
  transform: translateX(-85%);
  animation: glass-shine 8s ease-in-out infinite;
}

.signal-header,
.signal-footer {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  padding-inline: 1.2rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.signal-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: flex;
  gap: 0.35rem;
}

.window-dots span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-dots span:nth-child(2) {
  background: rgba(var(--accent-rgb), 0.66);
}

.window-dots span:nth-child(3) {
  background: rgba(var(--cyan-rgb), 0.66);
}

.signal-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
}

.signal-live i,
.visualizer-state i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.signal-stage {
  position: relative;
  display: grid;
  min-height: clamp(21rem, 36vw, 29rem);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle, rgba(var(--accent-rgb), 0.13), transparent 60%);
  background-size: 2.5rem 2.5rem, 2.5rem 2.5rem, auto;
  place-items: center;
}

.signal-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 8.5rem;
  height: 8.5rem;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), rgba(7, 8, 13, 0.5) 64%);
  box-shadow: 0 0 55px rgba(var(--accent-rgb), 0.22), inset 0 0 30px rgba(var(--accent-rgb), 0.12);
  place-items: center;
  transform: translateZ(38px);
}

.signal-core img {
  width: 5rem;
  height: 5rem;
}

.signal-orbit {
  position: absolute;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 50%;
}

.signal-orbit::after {
  position: absolute;
  top: 50%;
  left: -0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  content: "";
}

.orbit-a {
  width: 14rem;
  height: 14rem;
  animation: orbit-spin 13s linear infinite;
}

.orbit-b {
  width: 19rem;
  height: 9rem;
  border-color: rgba(var(--cyan-rgb), 0.16);
  transform: rotate(-25deg);
  animation: orbit-ellipse 17s linear infinite;
}

.signal-wave {
  position: absolute;
  right: 0;
  bottom: 1.1rem;
  left: 0;
  width: 100%;
  height: 5rem;
  fill: none;
  opacity: 0.72;
  stroke: var(--accent-bright);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.signal-wave .wave-shadow {
  opacity: 0.26;
  stroke: var(--cyan);
  stroke-width: 8;
  filter: blur(5px);
}

.signal-wave path:not(.wave-shadow) {
  stroke-dasharray: 10 7;
  animation: wave-flow 4s linear infinite;
}

.signal-footer {
  min-height: 4rem;
  justify-content: space-around;
  border-top: 1px solid var(--line);
}

.signal-footer span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.signal-footer b {
  color: var(--accent-bright);
  font-weight: 500;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  width: 1.45rem;
  height: 2.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.scroll-cue i::after {
  position: absolute;
  top: 0.45rem;
  left: calc(50% - 1px);
  width: 2px;
  height: 0.35rem;
  border-radius: 2px;
  background: var(--text-soft);
  content: "";
  animation: scroll-dot 2s ease-in-out infinite;
}

/* Shared sections */
.section {
  position: relative;
  padding: clamp(6.5rem, 10vw, 10rem) 0;
}

.section-heading {
  max-width: 54rem;
  margin-bottom: clamp(3.25rem, 6vw, 5.5rem);
}

.section-heading-split {
  display: grid;
  max-width: none;
  align-items: end;
  gap: clamp(2.5rem, 8vw, 8rem);
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
}

.section h2,
.utility-hero h1 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 5.8vw, 5.7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.heading-copy,
.section-intro {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.heading-copy p:last-child,
.section-intro:last-child {
  margin-bottom: 0;
}

.section-intro {
  max-width: 41rem;
  margin-top: 1.75rem;
}

/* About the studio */
.studio-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.025) 55%, transparent);
}

.studio-frame {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  backdrop-filter: blur(18px);
}

.studio-art {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 52%, rgba(var(--accent-rgb), 0.18), transparent 46%),
    var(--bg-deep);
}

.studio-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 180ms ease;
}

.image-fallback {
  display: grid;
  min-height: 24rem;
  padding: 2rem;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  place-items: center;
}

.studio-principles {
  display: grid;
}

.studio-principles article {
  position: relative;
  display: grid;
  align-content: center;
  padding: clamp(2rem, 4vw, 3.3rem);
  border-bottom: 1px solid var(--line);
}

.studio-principles article:last-child {
  border-bottom: 0;
}

.studio-principles article > span {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.studio-principles h3 {
  margin-bottom: 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.studio-principles p {
  max-width: 29rem;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.91rem;
}

/* Work */
.work-section {
  overflow: hidden;
}

.work-section::before {
  position: absolute;
  z-index: -1;
  top: 15%;
  left: -12rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: rgba(var(--cyan-rgb), 0.07);
  content: "";
  filter: blur(100px);
}

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

.project-card {
  position: relative;
  min-height: 27rem;
  overflow: hidden;
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 45%),
    var(--surface);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.1);
  transition: transform 180ms ease-out, border-color 220ms ease, background-color 220ms ease, opacity 500ms ease;
}

.project-card::before {
  position: absolute;
  right: -25%;
  bottom: -42%;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.13), transparent 68%);
  content: "";
  transition: transform 500ms ease, opacity 500ms ease;
}

.project-card:nth-child(2)::before,
.project-card:nth-child(3)::before {
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.12), transparent 68%);
}

.project-card:hover {
  border-color: rgba(var(--accent-rgb), 0.34);
}

.project-card:hover::before {
  opacity: 1.4;
  transform: scale(1.25);
}

.project-topline {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-topline i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line), transparent);
}

.project-icon {
  display: grid;
  width: 4.8rem;
  height: 4.8rem;
  margin: clamp(3.2rem, 7vw, 5.6rem) 0 2.25rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgba(var(--accent-rgb), 0.065);
  color: var(--accent-bright);
  place-items: center;
  transform: translateZ(24px);
}

.project-card:nth-child(2) .project-icon,
.project-card:nth-child(3) .project-icon {
  background: rgba(var(--cyan-rgb), 0.065);
  color: var(--cyan);
}

.project-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.project-card h3 {
  margin-bottom: 0.7rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.project-card > p {
  max-width: 31rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.6rem;
}

.tag-row span,
.role-list span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Music and audio */
.music-section {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-deep);
  isolation: isolate;
}

.music-glow {
  position: absolute;
  z-index: -1;
  top: -18rem;
  left: 42%;
  width: 48rem;
  height: 48rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  filter: blur(120px);
}

.audio-studio {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(0, 0.88fr) minmax(28rem, 1.12fr);
  backdrop-filter: blur(20px);
}

.visualizer-panel {
  position: relative;
  min-height: 43rem;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--accent-rgb), 0.18), transparent 38%),
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.05), rgba(var(--cyan-rgb), 0.025));
}

.visualizer-topline {
  position: absolute;
  z-index: 4;
  top: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visualizer-state {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
}

.audio-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.visualizer-grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3.2rem 3.2rem;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.now-playing {
  position: absolute;
  z-index: 4;
  right: 1.7rem;
  bottom: 1.9rem;
  left: 1.7rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  pointer-events: none;
}

.now-playing p {
  margin-bottom: 0.35rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.now-playing h3 {
  margin-bottom: 0.25rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.now-playing > span {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.player-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.4rem, 3.5vw, 2.7rem);
}

.native-audio {
  width: 100%;
  margin-bottom: 1.5rem;
}

.audio-enhanced .native-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.custom-controls {
  display: none;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.audio-enhanced .custom-controls {
  display: flex;
}

.transport-controls,
.timeline,
.volume-control {
  display: flex;
  align-items: center;
}

.transport-controls {
  gap: 0.5rem;
}

.player-button,
.volume-button {
  display: grid;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.player-button {
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.player-button svg,
.volume-button svg,
.back-to-top svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.player-button .play-symbol {
  margin-left: 0.12rem;
  fill: currentColor;
  stroke: none;
}

.player-button .pause-symbol {
  display: none;
  fill: currentColor;
  stroke: none;
}

.player-button-play {
  width: 3.6rem;
  height: 3.6rem;
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.audio-studio.is-playing .player-button-play .play-symbol {
  display: none;
}

.audio-studio.is-playing .player-button-play .pause-symbol {
  display: block;
}

.player-button:hover,
.volume-button:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.1);
  transform: translateY(-1px);
}

.timeline {
  min-width: 9rem;
  flex: 1;
  gap: 0.7rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.volume-control {
  width: 7.2rem;
  gap: 0.5rem;
}

.volume-button {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
}

.volume-button .volume-off,
.is-muted .volume-button .volume-on {
  display: none;
}

.is-muted .volume-button .volume-off {
  display: block;
}

.range-control {
  --range-value: 0%;
  width: 100%;
  height: 1rem;
  margin: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.range-control::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-bright) var(--range-value), var(--line-strong) var(--range-value));
}

.range-control::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: var(--line-strong);
}

.range-control::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: var(--accent-bright);
}

.range-control::-webkit-slider-thumb {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: -0.34rem;
  border: 2px solid var(--surface-solid);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--text);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.range-control::-moz-range-thumb {
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.player-status,
.player-note {
  margin: 0.8rem 0 0;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.player-status.is-error {
  color: var(--warm);
}

.track-list {
  margin: auto 0 0;
  padding: 1.35rem 0 0;
  list-style: none;
}

.track-list li {
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto;
}

.track-list li:last-child {
  border-bottom: 0;
}

.track-list button {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0.5rem 0.9rem 0;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  text-align: left;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  transition: color 180ms ease;
}

.track-list button:hover,
.track-list .is-current button {
  color: var(--text);
}

.track-number,
.track-length,
.track-file {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.is-current .track-number {
  color: var(--accent-bright);
}

.track-name {
  min-width: 0;
}

.track-name b,
.track-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-name b {
  font-size: 0.83rem;
  font-weight: 620;
}

.track-name small {
  margin-top: 0.08rem;
  color: var(--text-faint);
  font-size: 0.67rem;
}

.track-file {
  padding: 0.45rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.track-file:hover {
  border-color: var(--line);
  color: var(--text);
}

/* Ron */
.ron-layout {
  display: grid;
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
  grid-template-columns: minmax(20rem, 0.78fr) minmax(0, 1fr);
}

.portrait-frame {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 5;
  max-height: 40rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50% 50% 1.5rem 1.5rem;
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.19), transparent 54%),
    linear-gradient(24deg, rgba(var(--cyan-rgb), 0.08), var(--surface-solid));
  box-shadow: var(--shadow);
  place-items: center;
  transition: transform 180ms ease-out, opacity 500ms ease;
}

.portrait-frame::before,
.portrait-frame::after {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.portrait-frame::before {
  width: 77%;
  aspect-ratio: 1;
}

.portrait-frame::after {
  width: 53%;
  aspect-ratio: 1;
  border-color: rgba(var(--accent-rgb), 0.25);
}

.portrait-glow {
  position: absolute;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.27);
  filter: blur(48px);
}

.portrait-monogram {
  position: relative;
  z-index: 2;
  background: linear-gradient(120deg, var(--text), var(--accent-bright));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(5rem, 11vw, 9rem);
  font-style: italic;
  letter-spacing: -0.1em;
  line-height: 1;
  transform: translateZ(35px) translateX(-0.08em);
}

.portrait-caption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portrait-caption i {
  height: 1px;
  flex: 1;
  background: var(--line-strong);
}

.ron-copy h2 {
  margin-bottom: 2.3rem;
}

.ron-copy > p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.ron-copy .ron-lede {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.2rem;
}

/* Contact */
.contact-section {
  overflow: hidden;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 7vw, 6.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(125deg, rgba(var(--accent-rgb), 0.12), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact-panel::after {
  position: absolute;
  right: 7%;
  bottom: -22%;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(var(--cyan-rgb), 0.14);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 4rem rgba(var(--accent-rgb), 0.025), 0 0 0 8rem rgba(var(--accent-rgb), 0.018);
}

.contact-orb {
  position: absolute;
  top: -10rem;
  right: -7rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  filter: blur(85px);
}

.contact-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin-bottom: 2rem;
}

.contact-panel > p:not(.eyebrow):not(.contact-note) {
  position: relative;
  z-index: 1;
  max-width: 39rem;
  color: var(--text-soft);
}

.contact-email {
  position: relative;
  z-index: 2;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.1rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.22rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(var(--accent-rgb), 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
  transition: color 180ms ease;
}

.contact-email:hover {
  color: var(--accent-bright);
}

.contact-email span {
  color: var(--cyan);
  font-family: var(--sans);
  font-size: 0.6em;
}

.contact-note {
  position: relative;
  z-index: 2;
  margin: 1.3rem 0 0;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  padding: 3.2rem 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  align-items: end;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.9fr auto;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-grid > div > p,
.footer-meta {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.72rem;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
}

.footer-grid nav a {
  color: var(--text-soft);
  font-size: 0.71rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.footer-meta {
  text-align: right;
}

.back-to-top {
  position: fixed;
  z-index: 60;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--header);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  place-items: center;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
  backdrop-filter: blur(12px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--surface-solid);
}

/* Utility pages: contact and 404 */
.utility-page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.utility-page main {
  display: grid;
  flex: 1;
  align-items: center;
  padding: calc(var(--header-height) + 5rem) 0 6rem;
}

.utility-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 7vw, 6rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 5%, rgba(var(--accent-rgb), 0.18), transparent 34%),
    var(--surface);
  box-shadow: var(--shadow);
}

.utility-hero::before {
  position: absolute;
  right: -9rem;
  bottom: -12rem;
  width: 27rem;
  height: 27rem;
  border: 1px solid rgba(var(--cyan-rgb), 0.15);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 4rem rgba(var(--accent-rgb), 0.025), 0 0 0 8rem rgba(var(--accent-rgb), 0.018);
}

.utility-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin-bottom: 1.8rem;
}

.utility-copy {
  position: relative;
  z-index: 1;
  max-width: 43rem;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.utility-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.error-code {
  position: absolute;
  z-index: 0;
  top: -0.2em;
  right: 0.06em;
  color: rgba(var(--accent-rgb), 0.075);
  font-family: var(--display);
  font-size: clamp(12rem, 34vw, 30rem);
  line-height: 1;
  pointer-events: none;
}

/* JS progressive enhancement */
.reveal-prep:not(.tilt-card) {
  opacity: 0;
  transform: translateY(1.5rem);
}

.reveal-prep:not(.tilt-card).is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.72, 0.24, 1);
}

.tilt-card.reveal-prep {
  --reveal-y: 1.5rem;
  opacity: 0;
}

.tilt-card.reveal-prep.is-visible {
  --reveal-y: 0px;
  opacity: 1;
}

@keyframes ambient-drift {
  from { transform: translate3d(-2rem, -1rem, 0) scale(0.92); }
  to { transform: translate3d(2rem, 2rem, 0) scale(1.08); }
}

@keyframes glass-shine {
  0%, 60% { transform: translateX(-85%); }
  82%, 100% { transform: translateX(110%); }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit-ellipse {
  from { transform: rotate(-25deg) rotate(0deg); }
  to { transform: rotate(-25deg) rotate(360deg); }
}

@keyframes wave-flow {
  to { stroke-dashoffset: -34; }
}

@keyframes scroll-dot {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(0.7rem); }
}

@media (hover: hover) and (pointer: fine) {
  .project-card,
  .portrait-frame,
  .signal-card {
    will-change: transform;
  }
}

@media (max-width: 1100px) {
  .hero-layout {
    gap: 3rem;
    grid-template-columns: minmax(0, 1.02fr) minmax(21rem, 0.78fr);
  }

  .hero h1 {
    font-size: clamp(4rem, 8.6vw, 6.8rem);
  }

  .audio-studio {
    grid-template-columns: minmax(20rem, 0.75fr) minmax(25rem, 1.25fr);
  }

  .custom-controls {
    flex-wrap: wrap;
  }

  .timeline {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .volume-control {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 4.5rem;
  }

  .nav-shell {
    flex-wrap: wrap;
  }

  html:not(.js) .site-header {
    position: relative;
    border-color: var(--line);
    background: var(--header);
  }

  html:not(.js) .nav-shell {
    padding-block: 0.8rem;
  }

  html:not(.js) .hero {
    padding-top: 4rem;
  }

  html:not(.js) .utility-page main {
    padding-top: 4rem;
  }

  .utility-page[data-page="error"] .nav-shell {
    flex-wrap: nowrap;
  }

  .nav-panel {
    width: 100%;
    flex-basis: 100%;
    padding-bottom: 1rem;
  }

  .js .menu-toggle {
    display: flex;
    flex-direction: column;
  }

  .js .nav-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
    padding: 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-0.6rem) scale(0.985);
    transform-origin: top center;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .js .nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .primary-nav {
    flex: 1;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 5rem);
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 45rem;
  }

  .hero h1 {
    font-size: clamp(4.5rem, 15vw, 7.5rem);
  }

  .hero-object {
    width: min(100%, 38rem);
    margin: 1rem auto 2rem;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading-split,
  .studio-frame,
  .ron-layout {
    grid-template-columns: 1fr;
  }

  .section-heading-split {
    align-items: start;
    gap: 2.2rem;
  }

  .heading-copy {
    max-width: 42rem;
  }

  .studio-art {
    min-height: 26rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .studio-principles article {
    min-height: 14rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .studio-principles article:last-child {
    border-right: 0;
  }

  .audio-studio {
    grid-template-columns: 1fr;
  }

  .visualizer-panel {
    min-height: 28rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .player-panel {
    min-height: 37rem;
  }

  .ron-layout {
    gap: 4.5rem;
  }

  .ron-portrait {
    width: min(100%, 30rem);
    margin-inline: auto;
  }

  .ron-copy {
    max-width: 46rem;
  }

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

  .footer-meta {
    text-align: left;
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav-panel,
  .primary-nav,
  .nav-actions {
    align-items: stretch;
  }

  .nav-panel {
    flex-direction: column;
    gap: 0.75rem;
  }

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

  .primary-nav a {
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    text-align: center;
  }

  .primary-nav a::after {
    display: none;
  }

  .nav-actions {
    justify-content: space-between;
  }

  .hero {
    padding-top: calc(var(--header-height) + 4rem);
  }

  .hero h1 {
    font-size: clamp(4rem, 19vw, 6.4rem);
  }

  .hero h1 em {
    margin-left: 0.45em;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .hero-actions .text-link {
    flex-basis: 100%;
  }

  .signal-stage {
    min-height: 22rem;
  }

  .section {
    padding-block: 6.5rem;
  }

  .studio-principles,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .studio-principles article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .studio-principles article:last-child {
    border-bottom: 0;
  }

  .project-card {
    min-height: 24rem;
  }

  .project-icon {
    margin-top: 3.5rem;
  }

  .audio-studio {
    border-radius: var(--radius);
  }

  .player-panel {
    min-height: 0;
  }

  .contact-panel {
    border-radius: var(--radius);
  }

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

  .footer-meta {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 0.73rem;
    letter-spacing: 0.09em;
  }

  .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .hero {
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 19vw, 5rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .signal-stage {
    min-height: 18rem;
  }

  .signal-core {
    width: 6.5rem;
    height: 6.5rem;
  }

  .signal-core img {
    width: 3.8rem;
    height: 3.8rem;
  }

  .orbit-a {
    width: 11rem;
    height: 11rem;
  }

  .orbit-b {
    width: 15rem;
    height: 7rem;
  }

  .signal-header > span:nth-child(2) {
    display: none;
  }

  .signal-footer {
    padding-inline: 0.5rem;
  }

  .section h2,
  .utility-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .studio-art {
    min-height: 19rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .visualizer-panel {
    min-height: 23rem;
  }

  .now-playing {
    right: 1.2rem;
    bottom: 1.35rem;
    left: 1.2rem;
  }

  .player-panel {
    padding: 1.15rem;
  }

  .custom-controls {
    gap: 0.7rem;
  }

  .player-button-secondary {
    width: 2.45rem;
    height: 2.45rem;
  }

  .player-button-play {
    width: 3.2rem;
    height: 3.2rem;
  }

  .volume-control {
    width: 6.2rem;
  }

  .track-list button {
    gap: 0.55rem;
    grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  }

  .track-name b {
    font-size: 0.76rem;
  }

  .track-length {
    display: none;
  }

  .contact-email {
    display: block;
  }

  .contact-email span {
    display: none;
  }

  .back-to-top {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .utility-hero {
    padding: 2rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .tilt-card {
    --tilt-x: 0deg !important;
    --tilt-y: 0deg !important;
  }

  .reveal-prep,
  .reveal-prep.is-visible {
    --reveal-y: 0px !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {
  .site-header,
  .scroll-progress,
  .back-to-top,
  .scroll-cue,
  .ambient,
  .star-field,
  .hero-grid-lines {
    display: none !important;
  }

  body,
  .music-section {
    background: #fff;
    color: #111;
  }

  .hero,
  .section {
    min-height: auto;
    padding: 2rem 0;
  }
}
