/* =========================================================
   SYVEX — Independent Developer
   A quiet, black portfolio with a cinematic background.
   ========================================================= */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('../assets/fonts/instrument-serif-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('../assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --white: #f4f4f1;
  --text: #e8e8e2;
  --muted: #96968f;
  --muted-2: #6c6c66;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --green: #b8f7c7;
  --sans: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --gutter: clamp(20px, 4vw, 44px);
  --radius: 28px;
  --ease: cubic-bezier(0.22, 0.75, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 255, 255, 0.24) #050505;
  scrollbar-width: thin;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.entry-open {
  height: 100svh;
  overflow: hidden;
}

body::-webkit-scrollbar {
  width: 9px;
}

body::-webkit-scrollbar-track {
  background: #050505;
}

body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid #050505;
  border-radius: 999px;
}

::selection {
  background: var(--white);
  color: #050505;
}

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

img {
  height: auto;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--white);
  color: #050505;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: calc(100% - (var(--gutter) * 2));
  max-width: 1180px;
  margin-inline: auto;
}

/* =========================================================
   Background film
   ========================================================= */

.bg-media {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050505 url('../assets/video-poster.jpg') center / cover no-repeat;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.48) brightness(0.72) contrast(1.08);
  transform: scale(1.035);
  opacity: 0.9;
}

.bg-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.36) 58%, rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.26) 32%, rgba(5, 5, 5, 0.38) 65%, rgba(5, 5, 5, 0.88) 100%);
}

.bg-scanlines {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.11) 0,
    rgba(255, 255, 255, 0.11) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: soft-light;
  animation: scanShift 12s linear infinite;
}

.bg-grain {
  position: absolute;
  inset: -20%;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grainShift 0.5s steps(2) infinite;
}

body.video-error .bg-video {
  display: none;
}

/* =========================================================
   Entry screen
   ========================================================= */

.entry {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 50% 43%, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.58) 58%, rgba(0, 0, 0, 0.9) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}

.entry::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.34) 100%);
}

.entry-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(0);
  transition: transform 0.9s var(--ease);
}

.entry-kicker {
  margin: 0 0 26px;
  color: rgba(244, 244, 241, 0.54);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.entry-avatar {
  width: 96px;
  height: 96px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34%;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.025));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.entry-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30%;
  filter: saturate(0.58) contrast(1.04);
}

.entry-title {
  margin: 20px 0 24px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.entry-title span {
  color: rgba(255, 255, 255, 0.46);
}

.entry-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.entry-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.entry-button:hover {
  background: var(--white);
  border-color: var(--white);
  color: #050505;
  transform: translateY(-2px);
}

.entry-button:hover svg {
  transform: translateY(3px);
}

.entry-note {
  margin: 22px 0 0;
  color: rgba(244, 244, 241, 0.38);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entry-note span {
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.22);
}

.entry-foot {
  position: absolute;
  right: var(--gutter);
  bottom: 26px;
  left: var(--gutter);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: rgba(244, 244, 241, 0.35);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.entered .entry {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.entered .entry-inner {
  transform: translateY(-16px) scale(0.985);
}

/* =========================================================
   Top bar
   ========================================================= */

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px var(--gutter);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

body.entered .topbar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.topbar.is-scrolled {
  padding-top: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.68);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.brand {
  color: var(--white);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1;
}

.brand span {
  color: rgba(255, 255, 255, 0.42);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sound-toggle,
.topbar-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 37px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.26);
  color: rgba(244, 244, 241, 0.7);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.sound-toggle:hover,
.topbar-discord:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 14px;
  height: 12px;
}

.sound-bars i {
  display: block;
  width: 2px;
  height: 40%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
}

.sound-bars i:nth-child(2) {
  height: 75%;
}

.sound-bars i:nth-child(3) {
  height: 52%;
}

.sound-bars i:nth-child(4) {
  height: 88%;
}

.sound-toggle.is-active .sound-bars i {
  animation: soundWave 0.9s ease-in-out infinite alternate;
}

.sound-toggle.is-active .sound-bars i:nth-child(2) {
  animation-delay: -0.3s;
}

.sound-toggle.is-active .sound-bars i:nth-child(3) {
  animation-delay: -0.55s;
}

.sound-toggle.is-active .sound-bars i:nth-child(4) {
  animation-delay: -0.15s;
}

.topbar-discord img {
  width: 14px;
  height: 14px;
  filter: grayscale(1) brightness(2.4);
  opacity: 0.8;
}

.topbar-discord svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  padding: clamp(112px, 15vh, 150px) 0 28px;
}

.hero-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 38px;
}

.hero-identity {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.4vw, 62px);
  padding: 3vh 0;
}

.avatar {
  position: relative;
  flex: none;
  width: clamp(112px, 14vw, 164px);
  aspect-ratio: 1;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34%;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.025));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  isolation: isolate;
}

.avatar::before {
  content: '';
  position: absolute;
  inset: -9px;
  z-index: -1;
  border-radius: 37%;
  background: conic-gradient(from 20deg, transparent 0%, rgba(255, 255, 255, 0.44) 16%, transparent 34%, transparent 68%, rgba(255, 255, 255, 0.18) 82%, transparent 100%);
  filter: blur(12px);
  opacity: 0.5;
  animation: spin 12s linear infinite;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 29%;
  filter: saturate(0.62) contrast(1.03);
  transition: filter 0.5s ease, transform 0.7s var(--ease);
}

.avatar:hover img {
  filter: saturate(0.85) contrast(1.03);
  transform: scale(1.025);
}

.avatar-status {
  position: absolute;
  right: 9%;
  bottom: 9%;
  width: 13px;
  height: 13px;
  border: 3px solid #050505;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(184, 247, 199, 0.08);
  animation: statusPulse 2.6s ease-in-out infinite;
}

.hero-copy {
  max-width: 790px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: rgba(244, 244, 241, 0.62);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  flex: none;
  background: rgba(255, 255, 255, 0.45);
}

.eyebrow span {
  color: rgba(255, 255, 255, 0.3);
}

.hero-title {
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(5.4rem, 13vw, 10.5rem);
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: -0.035em;
}

.title-dot {
  display: inline-block;
  width: 0.085em;
  height: 0.085em;
  margin-left: 0.08em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.18em;
}

.hero-type {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 1.6em;
  margin: 18px 0 0;
  color: rgba(244, 244, 241, 0.66);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-transform: uppercase;
}

.type-caret {
  display: inline-block;
  width: 1px;
  height: 11px;
  background: var(--white);
  animation: caretBlink 1s step-end infinite;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 27px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 37px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.24);
  color: rgba(244, 244, 241, 0.65);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease);
}

.social-pill:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transform: translateY(-2px);
}

.social-pill img {
  width: 14px;
  height: 14px;
  filter: grayscale(1) brightness(2.4);
  opacity: 0.78;
}

.social-pill svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: rgba(244, 244, 241, 0.52);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.status,
.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status i,
.contact-status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(184, 247, 199, 0.07);
  animation: statusPulse 2.6s ease-in-out infinite;
}

.hero-location {
  justify-self: center;
  color: rgba(244, 244, 241, 0.44);
}

.hero-location span {
  margin: 0 3px;
  color: rgba(255, 255, 255, 0.22);
}

.scroll-cue {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 11px;
  color: rgba(244, 244, 241, 0.56);
  transition: color 0.25s ease;
}

.scroll-cue:hover {
  color: var(--white);
}

.scroll-arrow {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.scroll-cue:hover .scroll-arrow {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(2px);
}

.scroll-arrow svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: scrollNudge 2.4s ease-in-out infinite;
}

/* =========================================================
   Page content
   ========================================================= */

.page-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(42px, 8vh, 92px);
  padding-bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0) 0,
    rgba(5, 5, 5, 0.48) 16vh,
    rgba(5, 5, 5, 0.9) 46vh,
    #050505 72vh
  );
}

/* =========================================================
   Soundtrack panel
   ========================================================= */

.sound-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(22, 22, 22, 0.7), rgba(8, 8, 8, 0.5));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(30px) saturate(1.15);
  -webkit-backdrop-filter: blur(30px) saturate(1.15);
}

.sound-panel::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 28%;
  width: 44%;
  height: 220px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  filter: blur(70px);
  pointer-events: none;
}

.sound-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, 0.9fr) auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 26px);
}

.sound-cover {
  position: relative;
  width: 92px;
  height: 92px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: #111;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.sound-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.45) brightness(0.72) contrast(1.08);
  transition: transform 0.7s var(--ease), filter 0.5s ease;
}

.sound-panel:hover .sound-cover img {
  transform: scale(1.04);
  filter: saturate(0.6) brightness(0.82) contrast(1.08);
}

.sound-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.65) 100%);
}

.sound-cover-label {
  position: absolute;
  bottom: 7px;
  left: 8px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.sound-copy {
  min-width: 0;
}

.panel-label {
  display: block;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sound-copy h2 {
  margin: 6px 0 3px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.sound-copy p {
  margin: 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sound-copy p span {
  color: rgba(255, 255, 255, 0.22);
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 46px;
  min-width: 140px;
}

.waveform i {
  display: block;
  width: 2px;
  height: var(--h, 12px);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.32);
  transform-origin: center;
  transition: background 0.3s ease;
}

.sound-panel.is-playing .waveform i {
  background: rgba(255, 255, 255, 0.55);
  animation: wave 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -0.045s);
}

.sound-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: #050505;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease;
}

.play-button:hover {
  background: #fff;
  transform: scale(1.05);
}

.play-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.play-button .icon-pause {
  display: none;
}

.sound-panel.is-playing .play-button .icon-play {
  display: none;
}

.sound-panel.is-playing .play-button .icon-pause {
  display: block;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(244, 244, 241, 0.66);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mute-button .muted-icon {
  display: none;
}

.mute-button.is-muted .sound-icon {
  display: none;
}

.mute-button.is-muted .muted-icon {
  display: block;
}

.sound-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.time {
  min-width: 30px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.time:last-of-type {
  text-align: right;
}

input[type='range'] {
  --range-progress: 0%;
  width: 100%;
  height: 2px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: linear-gradient(to right, var(--white) 0 var(--range-progress), rgba(255, 255, 255, 0.14) var(--range-progress) 100%);
  cursor: pointer;
}

input[type='range']::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type='range']:hover::-webkit-slider-thumb {
  transform: scale(1.18);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

input[type='range']::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

input[type='range']::-moz-range-track {
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.audio-seek {
  flex: 1;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 112px;
  margin-left: 10px;
  color: var(--muted-2);
}

.volume-control svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.volume-range {
  width: 72px;
}

/* =========================================================
   Sections
   ========================================================= */

.section {
  padding-top: clamp(96px, 14vh, 160px);
  scroll-margin-top: 92px;
}

.section-head {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 60px);
  margin-bottom: clamp(38px, 6vh, 66px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-label::before {
  content: '';
  width: 22px;
  height: 1px;
  flex: none;
  background: var(--line-strong);
}

.section-head-main {
  max-width: 840px;
}

.section-title {
  max-width: 850px;
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.4vw, 5.15rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-title em {
  color: var(--white);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.section-note {
  max-width: 440px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* =========================================================
   About
   ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: clamp(40px, 6vw, 92px);
}

.about-copy {
  max-width: 660px;
}

.about-copy .lead {
  margin: 0 0 24px;
  color: #ecece7;
  font-size: clamp(1.22rem, 1.9vw, 1.58rem);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.55;
}

.about-copy > p:not(.lead) {
  max-width: 620px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.quote {
  margin: 42px 0 0;
  padding: 2px 0 2px 24px;
  border-left: 1px solid var(--line-strong);
  color: #efefe9;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.28;
}

.quote cite {
  display: block;
  margin-top: 14px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 34px;
}

.about-tags span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-card {
  position: relative;
  overflow: hidden;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.about-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -50px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  filter: blur(50px);
  pointer-events: none;
}

.about-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-mark {
  color: rgba(255, 255, 255, 0.14);
  font-family: var(--serif);
  font-size: 40px;
  font-style: italic;
  line-height: 0.7;
  letter-spacing: -0.04em;
}

.about-card dl {
  margin: 28px 0 0;
}

.about-card dl div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.about-card dt {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.about-card dd {
  margin: 0;
  color: #d2d2cc;
  font-size: 12px;
  line-height: 1.6;
}

.muted {
  color: var(--muted-2);
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}

.discord-link {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  transition: color 0.25s ease;
}

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

.discord-link-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.discord-link-icon img {
  width: 16px;
  height: 16px;
  filter: grayscale(1) brightness(2.4);
  opacity: 0.82;
}

.discord-link-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.discord-link-copy span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.discord-link-copy strong {
  overflow: hidden;
  color: #d8d8d2;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-link-arrow {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 14px;
  transition: transform 0.25s var(--ease), color 0.25s ease;
}

.discord-link:hover .discord-link-arrow {
  color: var(--white);
  transform: translate(2px, -2px);
}

/* =========================================================
   Expertise
   ========================================================= */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.expertise-card {
  position: relative;
  display: flex;
  min-height: 208px;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s var(--ease);
}

.expertise-card::after {
  content: '';
  position: absolute;
  top: -70px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  filter: blur(38px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.expertise-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.038);
  transform: translateY(-4px);
}

.expertise-card:hover::after {
  opacity: 1;
}

.expertise-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.expertise-index {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.expertise-logo {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.expertise-logo img {
  width: 20px;
  height: 20px;
  filter: grayscale(1) brightness(2.5) contrast(0.7);
  opacity: 0.72;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.expertise-card:hover .expertise-logo img {
  filter: grayscale(1) brightness(4) contrast(0.8);
  opacity: 1;
}

.expertise-card h3 {
  margin: 23px 0 3px;
  color: var(--white);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.expertise-cat {
  margin: 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.expertise-desc {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.expertise-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =========================================================
   Contact
   ========================================================= */

.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(130% 160% at 88% 0%, rgba(255, 255, 255, 0.085), transparent 52%),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.contact-panel::before {
  content: 'S.';
  position: absolute;
  right: 2%;
  bottom: -0.32em;
  z-index: -1;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--serif);
  font-size: clamp(18rem, 34vw, 31rem);
  font-style: italic;
  line-height: 0.8;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.contact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-top .section-label {
  padding-top: 0;
}

.contact-status {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-title {
  max-width: 900px;
  margin: 34px 0 0;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(3.8rem, 8.8vw, 8.3rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.contact-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.55fr);
  align-items: end;
  gap: clamp(40px, 7vw, 100px);
  margin-top: clamp(38px, 6vw, 70px);
}

.contact-copy {
  max-width: 560px;
}

.contact-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 27px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.btn-light {
  background: var(--white);
  color: #050505;
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-light:hover svg {
  transform: translate(2px, -2px);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.contact-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: clamp(20px, 3vw, 38px);
  border-left: 1px solid var(--line);
}

.contact-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-mark img {
  width: 32px;
  height: 32px;
  filter: grayscale(1) brightness(2.4);
  opacity: 0.8;
}

.contact-meta {
  margin: 0;
}

.contact-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.contact-meta dt {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.contact-meta dd {
  margin: 0;
  color: #d2d2cc;
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(86px, 12vh, 140px);
  padding: 25px 0;
  border-top: 1px solid var(--line);
  background: #050505;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-center {
  justify-self: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-self: end;
  gap: 17px;
}

.footer-links a {
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--white);
}

/* =========================================================
   Utilities / overlays
   ========================================================= */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.66);
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), background 0.25s ease, color 0.25s ease;
}

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

.back-to-top:hover {
  background: var(--white);
  color: #050505;
}

.back-to-top svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 10000;
  padding: 10px 15px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: var(--white);
  color: #050505;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   Custom cursor
   ========================================================= */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 20px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  transition: opacity 0.2s ease;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
  transform-origin: top left;
  transition: transform 0.2s var(--ease);
}

.cursor.is-hover svg {
  transform: scale(1.12);
}

.trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 9998;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trail-canvas.is-visible {
  opacity: 1;
}

html.cursor-ready,
html.cursor-ready * {
  cursor: none !important;
}

/* =========================================================
   Reveal system
   ========================================================= */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Keyframes
   ========================================================= */

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

@keyframes scanShift {
  to {
    background-position: 0 100%;
  }
}

@keyframes grainShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(-3%, 2%, 0);
  }
  50% {
    transform: translate3d(2%, -3%, 0);
  }
  75% {
    transform: translate3d(-2%, -2%, 0);
  }
  100% {
    transform: translate3d(3%, 1%, 0);
  }
}

@keyframes soundWave {
  from {
    transform: scaleY(0.4);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes wave {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(184, 247, 199, 0.06);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(184, 247, 199, 0.02);
  }
}

@keyframes caretBlink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

@keyframes scrollNudge {
  0%,
  100% {
    transform: translateY(-1px);
  }
  50% {
    transform: translateY(2px);
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .sound-main {
    grid-template-columns: auto minmax(0, 1fr) minmax(130px, 0.7fr) auto;
  }

  .section-head {
    grid-template-columns: 170px minmax(0, 1fr);
  }

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

@media (max-width: 900px) {
  .hero-identity {
    gap: 36px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-label {
    padding-top: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-copy {
    max-width: 700px;
  }

  .about-card {
    max-width: 560px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-aside {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-meta {
    margin-top: -4px;
  }
}

@media (max-width: 820px) {
  .sound-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .waveform {
    display: none;
  }

  .hero-identity {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .hero-copy {
    max-width: 720px;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .hero-foot {
    grid-template-columns: 1fr auto;
    row-gap: 11px;
  }

  .hero-location {
    justify-self: end;
  }

  .scroll-cue {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 3px;
  }

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

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

  .footer-center {
    display: none;
  }
}

@media (max-width: 640px) {
  .entry-kicker {
    margin-bottom: 22px;
  }

  .entry-title {
    font-size: 42px;
  }

  .entry-note {
    font-size: 7px;
  }

  .topbar {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .brand {
    font-size: 12px;
  }

  .sound-toggle,
  .topbar-discord {
    height: 35px;
    padding: 0 11px;
  }

  .sound-label {
    display: none;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 24px;
  }

  .hero-inner {
    gap: 28px;
  }

  .avatar {
    width: 104px;
  }

  .hero-title {
    font-size: clamp(4.6rem, 18vw, 6rem);
  }

  .hero-type {
    justify-content: center;
    font-size: 8px;
    letter-spacing: 0.17em;
  }

  .hero-foot {
    grid-template-columns: 1fr;
    gap: 10px;
    font-size: 7px;
  }

  .hero-location {
    justify-self: start;
  }

  .scroll-cue {
    grid-column: auto;
    justify-self: start;
    margin-top: 2px;
  }

  .scroll-arrow {
    width: 27px;
    height: 27px;
  }

  .page-content {
    padding-top: 38px;
  }

  .sound-panel {
    padding: 17px;
    border-radius: 22px;
  }

  .sound-main {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 15px;
  }

  .sound-cover {
    width: 66px;
    height: 66px;
    border-radius: 15px;
  }

  .sound-copy h2 {
    font-size: 19px;
  }

  .sound-copy p {
    font-size: 7px;
  }

  .sound-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 3px;
  }

  .play-button {
    width: 44px;
    height: 44px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .sound-controls {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 14px;
  }

  .audio-seek {
    order: 1;
    flex: 1 1 calc(100% - 72px);
  }

  .time {
    order: 0;
  }

  .time:last-of-type {
    order: 2;
  }

  .volume-control {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .section {
    padding-top: 88px;
    scroll-margin-top: 78px;
  }

  .section-title {
    font-size: clamp(2.45rem, 10.5vw, 3.6rem);
  }

  .section-note {
    margin-top: 14px;
    font-size: 12px;
  }

  .about-copy .lead {
    font-size: 1.18rem;
  }

  .about-copy > p:not(.lead) {
    font-size: 13px;
  }

  .quote {
    margin-top: 32px;
    padding-left: 18px;
    font-size: 1.55rem;
  }

  .about-card {
    padding: 21px;
  }

  .about-card dl div {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
  }

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

  .expertise-card {
    min-height: 180px;
  }

  .contact-panel {
    padding: 27px 21px;
    border-radius: 24px;
  }

  .contact-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .contact-title {
    margin-top: 28px;
    font-size: clamp(3.1rem, 14vw, 4.7rem);
  }

  .contact-grid {
    margin-top: 34px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .contact-aside {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-mark {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .contact-mark img {
    width: 27px;
    height: 27px;
  }

  .contact-meta div {
    padding: 8px 0;
  }

  .site-footer {
    margin-top: 80px;
    padding: 22px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    font-size: 7px;
  }

  .footer-links {
    justify-self: start;
    gap: 14px;
  }

  .back-to-top {
    right: 17px;
    bottom: 17px;
    width: 41px;
    height: 41px;
  }

  .toast {
    bottom: 20px;
    max-width: calc(100% - 34px);
    text-align: center;
  }
}

@media (max-width: 420px) {
  .entry-foot {
    bottom: 20px;
    font-size: 7px;
  }

  .entry-note {
    max-width: 220px;
    line-height: 1.7;
  }

  .topbar-discord span,
  .topbar-discord svg {
    display: none;
  }

  .topbar-discord {
    width: 35px;
    padding: 0;
  }

  .hero-title {
    font-size: 4.25rem;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.15em;
  }

  .eyebrow::before {
    width: 18px;
  }

  .social-pill {
    height: 35px;
    padding: 0 11px;
  }

  .sound-cover {
    width: 58px;
    height: 58px;
  }

  .sound-copy h2 {
    font-size: 17px;
  }

  .about-card dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .discord-link-copy strong {
    font-size: 8px;
  }

  .contact-meta div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .contact-meta dd {
    text-align: left;
  }
}

@media (max-height: 720px) and (min-width: 821px) {
  .hero {
    padding-top: 102px;
    padding-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(4.8rem, 10vw, 8rem);
  }

  .avatar {
    width: 126px;
  }

  .hero-identity {
    gap: 38px;
    padding: 1vh 0;
  }

  .hero-foot {
    padding-top: 15px;
  }
}

/* =========================================================
   Motion / pointer preferences
   ========================================================= */

@media (pointer: coarse) {
  .cursor,
  .trail-canvas {
    display: none !important;
  }

  html.cursor-ready,
  html.cursor-ready * {
    cursor: auto !important;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor,
  .trail-canvas {
    display: none !important;
  }

  html.cursor-ready,
  html.cursor-ready * {
    cursor: auto !important;
  }

  .bg-grain,
  .bg-scanlines {
    animation: none;
  }
}
