:root {
  --font-display: "Fraunces", serif;
  --font-ui: "Space Grotesk", sans-serif;
  --bg: #f5f1ea;
  --bg-alt: #ece4d7;
  --bg-surface: var(--bg);
  --text: #1f2328;
  --muted: #5c6470;
  --accent: #1d4f8f;
  --line: rgba(31, 35, 40, 0.16);
  --panel: rgba(255, 255, 255, 0.65);
  --shadow: 0 24px 60px rgba(31, 35, 40, 0.14);
}

body[data-theme="dark"] {
  --bg: #0b0b0d;
  --bg-alt: #101013;
  --bg-surface: var(--bg);
  --text: #f2f4f7;
  --muted: #b1bac6;
  --accent: #4c7ac7;
  --line: rgba(242, 244, 247, 0.16);
  --panel: rgba(16, 22, 30, 0.7);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

body[data-theme="iu"] {
  --bg: #edebeb;
  --bg-alt: #e6e0d8;
  --bg-surface: var(--bg);
  --text: #1c1616;
  --muted: #5a4747;
  --accent: #990000;
  --line: rgba(153, 0, 0, 0.18);
  --panel: rgba(255, 255, 255, 0.8);
  --shadow: 0 24px 60px rgba(153, 0, 0, 0.18);
}

body[data-theme="dark"] .theme-toggle {
  background: linear-gradient(120deg, rgba(91, 182, 255, 0.32), rgba(194, 75, 255, 0.3));
  border-color: rgba(91, 182, 255, 0.55);
}

body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible {
  background: linear-gradient(120deg, rgba(91, 182, 255, 0.5), rgba(194, 75, 255, 0.45));
  border-color: rgba(91, 182, 255, 0.8);
}

body[data-theme="iu"] .theme-toggle {
  background: linear-gradient(120deg, rgba(153, 0, 0, 0.2), rgba(153, 0, 0, 0.08));
  border-color: rgba(153, 0, 0, 0.45);
}

body[data-theme="iu"] .theme-toggle:hover,
body[data-theme="iu"] .theme-toggle:focus-visible {
  background: linear-gradient(120deg, rgba(153, 0, 0, 0.3), rgba(153, 0, 0, 0.12));
  border-color: rgba(153, 0, 0, 0.7);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg-surface);
  transition: background 0.4s ease, color 0.4s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 85% 15%, rgba(29, 79, 143, 0.2), transparent 55%),
    radial-gradient(800px 600px at 10% 90%, rgba(24, 62, 120, 0.2), transparent 55%),
    linear-gradient(rgba(31, 35, 40, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 35, 40, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  opacity: 0.7;
  pointer-events: none;
  z-index: -2;
}

body[data-theme="dark"]::before {
  background:
    radial-gradient(900px 600px at 80% 10%, rgba(76, 122, 199, 0.28), transparent 60%),
    radial-gradient(800px 600px at 10% 85%, rgba(38, 74, 132, 0.3), transparent 60%),
    linear-gradient(rgba(104, 170, 245, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 170, 245, 0.32) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  opacity: 0.35;
}

body[data-theme="iu"]::before {
  background:
    radial-gradient(900px 600px at 75% 10%, rgba(153, 0, 0, 0.22), transparent 60%),
    radial-gradient(800px 600px at 10% 85%, rgba(120, 20, 20, 0.18), transparent 60%),
    linear-gradient(rgba(153, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 0, 0, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  opacity: 0.55;
}

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

.page {
  position: relative;
  z-index: 2;
}

.iu-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}

body[data-theme="iu"] .iu-decor {
  display: block;
}

.iu-trident {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(153, 0, 0, 0.16);
}

.iu-trident-img {
  width: min(60vw, 520px);
  height: auto;
  opacity: 0.18;
  filter: drop-shadow(0 18px 40px rgba(153, 0, 0, 0.2));
}

.iu-banner {
  position: absolute;
  width: 480px;
  height: 100vh;
  background: url("Pictures_/Banner_Vertical.png") center/contain no-repeat;
  opacity: 0.28;
  filter: drop-shadow(0 16px 32px rgba(153, 0, 0, 0.2));
}

.iu-banner-mark {
  display: none;
}

.iu-banner-left {
  left: -353px;
  top: 0;
}

.iu-banner-right {
  right: -35px;
  top: 0;
}

.iu-banner-bottom {
  display: none;
}

.iu-banner-icon {
  width: 38px;
  height: auto;
}

.iu-easter {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 2.2rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(153, 0, 0, 0.2);
  z-index: 0;
  pointer-events: none;
  text-align: center;
  padding: 0 6vw;
}

body[data-theme="iu"] .iu-easter {
  display: flex;
}

.drift-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.drift-item {
  position: absolute;
  top: -12%;
  opacity: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-shadow: 0 0 10px currentColor;
  animation: driftDown 16s linear forwards;
}

.drift-item.drift-iu {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: 0.22em;
  font-weight: 600;
  background: linear-gradient(120deg, #990000 10%, #edebeb 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 6px rgba(153, 0, 0, 0.25);
  animation-duration: 9s;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.iu-drift-trident {
  width: 26px;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(153, 0, 0, 0.25));
}

.drift-note {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.drift-sql,
.drift-py {
  font-family: "Space Grotesk", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 5vw;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  z-index: 10;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  background: linear-gradient(120deg, rgba(91, 182, 255, 0.95), rgba(194, 75, 255, 0.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  --brand-glow-a: rgba(91, 182, 255, 0.5);
  --brand-glow-b: rgba(194, 75, 255, 0.45);
  transition: text-shadow 0.2s ease, filter 0.2s ease;
}

.brand:hover,
.brand:focus-visible {
  filter: brightness(1.05);
  text-shadow: 0 0 12px var(--brand-glow-a), 0 0 18px var(--brand-glow-b);
}

.brand:active,
.brand:focus-visible {
  text-shadow: 0 0 16px var(--brand-glow-a), 0 0 22px var(--brand-glow-b);
}

body[data-theme="iu"] .brand {
  background: linear-gradient(120deg, rgba(153, 0, 0, 0.98), rgba(76, 0, 0, 0.98));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  --brand-glow-a: rgba(153, 0, 0, 0.6);
  --brand-glow-b: rgba(237, 235, 235, 0.45);
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
}

.site-nav {
  display: flex;
  gap: 1.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  justify-content: flex-end;
}

.site-nav a {
  position: relative;
  padding-bottom: 0.25rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(120deg, rgba(91, 182, 255, 0.18), rgba(194, 75, 255, 0.16));
  border: 1px solid rgba(91, 182, 255, 0.35);
  padding: 0.25rem 0.55rem;
  min-width: 8.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: linear-gradient(120deg, rgba(91, 182, 255, 0.3), rgba(194, 75, 255, 0.28));
  border-color: rgba(91, 182, 255, 0.6);
}


.toggle-track {
  position: relative;
  width: 2rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.toggle-state {
  display: inline-block;
  width: 5ch;
  text-align: left;
}

.toggle-thumb {
  position: absolute;
  top: 50%;
  left: 0.18rem;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  background: var(--text);
  transform: translate(0, -50%);
  transition: transform 0.3s ease;
}

body[data-theme="light"] .toggle-thumb {
  transform: translate(0.55rem, -50%);
}

body[data-theme="iu"] .toggle-thumb {
  transform: translate(1.1rem, -50%);
}

main {
  padding-top: 5.5rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 2.75rem 5vw 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12rem;
  align-items: center;
}

.hero-left {
  justify-self: end;
  max-width: 40rem;
}

.hero-left > * {
  opacity: 0;
  transform: translateY(18px);
}

body.loaded .hero-left > * {
  animation: fadeUp 0.8s ease forwards;
}

body.loaded .hero-left > *:nth-child(1) {
  animation-delay: 0.1s;
}

body.loaded .hero-left > *:nth-child(2) {
  animation-delay: 0.2s;
}

body.loaded .hero-left > *:nth-child(3) {
  animation-delay: 0.3s;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: clamp(3.4rem, 6.6vw, 6.7rem);
  margin: 0.5rem 0 0.8rem;
  color: var(--text);
}

.name span {
  display: inline-block;
  position: relative;
}

.name-first {
  animation: nameGlow 10s ease-in-out infinite;
}

.name-last {
  animation: nameGlow 10s ease-in-out infinite 5s;
}

.name-first::after,
.name-last::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  height: 3px;
  border-radius: 999px;
  opacity: 0.45;
  animation: underlineGlow 10s ease-in-out infinite;
}

.name-first::after {
  background: linear-gradient(90deg, #5bb6ff, #8b6bff);
}

.name-last::after {
  background: linear-gradient(90deg, #8b6bff, #c24bff);
  animation-delay: 5s;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .name-first,
  .name-last {
    background: linear-gradient(120deg, #5bb6ff 10%, #8b6bff 55%, #c24bff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

body[data-theme="iu"] .name {
  color: #990000;
}

body[data-theme="iu"] .name-first {
  animation: nameGlowIU 10s ease-in-out infinite;
}

body[data-theme="iu"] .name-last {
  animation: nameGlowIU 10s ease-in-out infinite 5s;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  body[data-theme="iu"] .name-first,
  body[data-theme="iu"] .name-last {
    background: linear-gradient(120deg, #990000 15%, #b31217 60%, #edebeb 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

body[data-theme="iu"] .name-first::after {
  background: #edebeb;
}

body[data-theme="iu"] .name-last::after {
  background: #edebeb;
}

body[data-theme="iu"] .email-link {
  background: linear-gradient(120deg, #e1d1d1 10%, #b31217 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration-color: rgba(153, 0, 0, 0.5);
}

.tagline {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  max-width: 38rem;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}

.email-link {
  font-weight: 400;
  text-decoration: none;
  background: linear-gradient(120deg, #5bb6ff, #8b6bff 55%, #c24bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 0.2s ease;
  text-decoration: underline;
  text-decoration-color: rgba(139, 107, 255, 0.7);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.email-link:hover,
.email-link:focus-visible {
  filter: brightness(1.2);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 5.6rem;
  transform: translate(-50%, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

.scroll-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--muted);
  animation: float 2s ease-in-out infinite;
}

.hero-right {
  display: flex;
  justify-content: flex-start;
}

.portrait {
  position: relative;
  margin: 0;
  border-radius: 26px;
  padding: 0.45rem;
  max-width: 480px;
  width: 100%;
  background: linear-gradient(135deg, rgba(104, 170, 245, 0.25), rgba(226, 90, 200, 0.18));
  background-size: 200% 200%;
  transition: background 0.3s ease, transform 0.3s ease;
  overflow: visible;
  cursor: pointer;
  touch-action: manipulation;
}

.portrait img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.portrait:hover {
  animation: gradientShift 2.2s linear infinite;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 32px;
  background: radial-gradient(circle at 20% 20%, rgba(91, 182, 255, 0.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(194, 75, 255, 0.35), transparent 45%);
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.portrait:hover::after {
  opacity: 0.7;
}

body[data-theme="iu"] .portrait {
  background: linear-gradient(135deg, rgba(153, 0, 0, 0.35), rgba(237, 235, 235, 0.3));
}

body[data-theme="iu"] .portrait::after {
  background: radial-gradient(circle at 20% 20%, rgba(153, 0, 0, 0.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(237, 235, 235, 0.35), transparent 45%);
}



.portrait.shake {
  animation: shake 0.4s ease-in-out;
}

.portrait .note {
  position: absolute;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  color: var(--note-color, #8b6bff);
  text-shadow: 0 0 12px currentColor;
  animation: floatNote 1.4s ease-out forwards;
  z-index: 2;
}

.portrait .note.wide {
  animation: floatNoteWide 1.8s ease-out forwards;
}

.portrait.pulse {
  transform: scale(1.02);
}

.portrait.pulse::after {
  animation: pulseGlow 0.7s ease;
}

.content {
  padding: 5rem 5vw;
}

.work-showcase {
  padding: 4.5rem 5vw 5.5rem;
}

.content.alt {
  background: var(--bg-alt);
}

.content-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.2rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.section-head .eyebrow {
  margin: 0;
}

.section-head h2 {
  margin: 0;
}

.work-showcase .section-head h2 {
  background: linear-gradient(90deg, #5bb6ff, #8b6bff 35%, #c24bff 70%);
  background-size: 60% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-theme="iu"] .work-showcase .section-head h2 {
  background: linear-gradient(90deg, rgba(153, 0, 0, 0.98), rgba(76, 0, 0, 0.98));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 48rem;
}

.section-head .section-lede {
  margin: 0;
  font-size: 1.1rem;
  max-width: 46rem;
}

.section-head .inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.section-head .inline-link:hover,
.section-head .inline-link:focus-visible {
  text-decoration-thickness: 2px;
}

.feature-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 360px;
  aspect-ratio: 1 / 1;
  --glow-a: rgba(91, 182, 255, 0.4);
  --glow-b: rgba(194, 75, 255, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: -50% -30% auto;
  height: 70%;
  background: radial-gradient(circle, var(--glow-a), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 30px;
  padding: 1px;
  background: conic-gradient(from 0deg, var(--glow-a), var(--glow-b), var(--glow-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
  filter: blur(10px);
  transition: opacity 0.3s ease, filter 0.3s ease;
  animation: ambientSpin 16s linear infinite;
  z-index: 0;
}

.feature-card:nth-child(2) {
  --glow-a: rgba(10, 180, 160, 0.35);
  --glow-b: rgba(26, 108, 186, 0.35);
}

.feature-card:nth-child(3) {
  --glow-a: rgba(38, 141, 255, 0.4);
  --glow-b: rgba(50, 204, 255, 0.32);
}

body[data-theme="iu"] .feature-card {
  --glow-a: rgba(153, 0, 0, 0.35);
  --glow-b: rgba(237, 235, 235, 0.35);
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(31, 35, 40, 0.2), 0 0 22px var(--glow-a), 0 0 34px var(--glow-b);
}

.feature-card:hover::after,
.feature-card:focus-within::after {
  opacity: 0.7;
  filter: blur(12px);
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card-header {
  position: relative;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  min-height: 6.5rem;
}

.feature-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.feature-thumb {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(91, 182, 255, 0.3), rgba(194, 75, 255, 0.24));
  color: var(--text);
  flex-shrink: 0;
}

.feature-thumb.music {
  background: linear-gradient(135deg, rgba(10, 62, 54, 0.9), rgba(26, 108, 186, 0.65));
}

.feature-thumb.arcade {
  background: linear-gradient(135deg, rgba(77, 170, 255, 0.58), rgba(34, 108, 216, 0.5), rgba(36, 56, 165, 0.38));
}

body[data-theme="iu"] .feature-thumb,
body[data-theme="iu"] .feature-thumb.music,
body[data-theme="iu"] .feature-thumb.arcade {
  background: linear-gradient(135deg, rgba(153, 0, 0, 0.6), rgba(237, 235, 235, 0.45));
  border-color: rgba(153, 0, 0, 0.35);
  color: #990000;
}

.feature-thumb svg {
  width: 30px;
  height: 30px;
}

.volume-control {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.volume-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: transparent;
  transform: translate(5px, -5px);
  background: linear-gradient(120deg, rgba(10, 180, 160, 0.9), rgba(26, 108, 186, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 10px rgba(10, 180, 160, 0.2), 0 0 14px rgba(26, 108, 186, 0.15);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.45rem;
  border-radius: 999px;
  background: transparent;
  outline: none;
  --volume-a: rgba(10, 180, 160, 0.65);
  --volume-b: rgba(26, 108, 186, 0.75);
  --volume-bg: #0b0b0d;
  --volume-thumb-a: #0ab4a0;
  --volume-thumb-b: #1a6cba;
  --volume-thumb-border: #0b0b0d;
}

.volume-slider::-webkit-slider-runnable-track {
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--volume-a) 0%,
    var(--volume-b) var(--volume-fill, 0%),
    var(--volume-bg) var(--volume-fill, 0%),
    var(--volume-bg) 100%
  );
  border: 1px solid rgba(26, 108, 186, 0.35);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--volume-thumb-a), var(--volume-thumb-b));
  border: 2px solid var(--volume-thumb-border);
  box-shadow: 0 0 10px rgba(10, 180, 160, 0.45);
  cursor: pointer;
  margin-top: -8px;
}

.volume-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--volume-thumb-a), var(--volume-thumb-b));
  border: 2px solid var(--volume-thumb-border);
  box-shadow: 0 0 10px rgba(10, 180, 160, 0.45);
  cursor: pointer;
}

.volume-slider:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.volume-slider::-moz-range-track {
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--volume-a) 0%,
    var(--volume-b) var(--volume-fill, 0%),
    var(--volume-bg) var(--volume-fill, 0%),
    var(--volume-bg) 100%
  );
  border: 1px solid rgba(26, 108, 186, 0.35);
}

body[data-theme="iu"] .volume-slider {
  --volume-a: rgba(237, 235, 235, 0.85);
  --volume-b: rgba(153, 0, 0, 0.85);
  --volume-bg: #1c1616;
  --volume-thumb-a: #edebeb;
  --volume-thumb-b: #990000;
  --volume-thumb-border: #1c1616;
}

body[data-theme="iu"] .volume-slider::-webkit-slider-thumb {
  box-shadow: 0 0 10px rgba(153, 0, 0, 0.45);
}

body[data-theme="iu"] .volume-slider::-moz-range-thumb {
  box-shadow: 0 0 10px rgba(153, 0, 0, 0.45);
}

body[data-theme="iu"] .volume-label {
  background: linear-gradient(120deg, rgba(153, 0, 0, 0.98), rgba(106, 0, 0, 0.98));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 10px rgba(153, 0, 0, 0.35), 0 0 14px rgba(106, 0, 0, 0.3);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feature-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0;
}

.feature-item:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.feature-item-text h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.feature-item-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 3.2rem;
}

.feature-item-actions {
  display: grid;
  justify-items: end;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.pill-link,
.play-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.55rem 1.15rem;
  min-width: 120px;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  color: var(--text);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 15%, transparent);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pill-link:hover,
.pill-link:focus-visible,
.play-toggle:hover,
.play-toggle:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, var(--panel));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 25%, transparent);
  transform: translateY(-2px);
}

.pill-link:active,
.play-toggle:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.play-toggle {
  cursor: pointer;
}

.play-toggle[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--accent) 80%, transparent);
  background: color-mix(in srgb, var(--accent) 25%, transparent);
}

.play-icon {
  font-size: 0.85rem;
}

.play-toggle.is-playing .play-icon {
  font-size: 0.95rem;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.panel {
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.panel h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.panel p {
  margin-bottom: 0;
}

.work-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.work-grid article {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.work-grid h3 {
  margin-top: 0;
}

.end-links {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 3rem 5vw 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-alt);
  --link-a: rgba(91, 182, 255, 0.95);
  --link-b: rgba(194, 75, 255, 0.95);
  --link-glow-a: rgba(91, 182, 255, 0.45);
  --link-glow-b: rgba(194, 75, 255, 0.35);
}

.end-links::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(120deg, rgba(91, 182, 255, 0.6), rgba(194, 75, 255, 0.6));
  border-radius: 999px;
}

body[data-theme="iu"] .end-links::before {
  background: linear-gradient(120deg, rgba(153, 0, 0, 0.5), rgba(237, 235, 235, 0.4));
}

.copyright {
  padding: 0 5vw 2.5rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-alt);
}

.end-links a {
  position: relative;
  color: inherit;
  background: linear-gradient(120deg, var(--link-a), var(--link-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: text-shadow 0.2s ease, filter 0.2s ease;
}

.end-links a:hover,
.end-links a:focus-visible {
  filter: brightness(1.05);
  text-shadow: 0 0 14px var(--link-glow-a), 0 0 18px var(--link-glow-b);
}

.end-links a:active {
  text-shadow: 0 0 18px var(--link-glow-a), 0 0 22px var(--link-glow-b);
}

.end-links .link-sep {
  color: color-mix(in srgb, var(--muted) 60%, transparent);
}

#about .iu-inline {
  font: inherit;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: text;
}

#about .iu-inline:focus-visible {
  outline: 1px dashed color-mix(in srgb, var(--muted) 70%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

#about {
  position: relative;
}

#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 50% 30%, rgba(91, 182, 255, 0.08), transparent 60%),
    radial-gradient(500px 350px at 30% 70%, rgba(194, 75, 255, 0.06), transparent 60%);
  pointer-events: none;
}

body[data-theme="iu"] #about::before {
  background:
    radial-gradient(600px 400px at 50% 30%, rgba(153, 0, 0, 0.08), transparent 60%),
    radial-gradient(500px 350px at 30% 70%, rgba(237, 235, 235, 0.06), transparent 60%);
}

#about .content-inner {
  text-align: center;
}

.about-panel {
  position: relative;
  padding: 1.75rem 2.5rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}

.about-panel h2 {
  margin-top: 0;
  background: linear-gradient(120deg, rgba(91, 182, 255, 0.95), rgba(194, 75, 255, 0.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-theme="iu"] .about-panel h2 {
  background: linear-gradient(90deg, rgba(153, 0, 0, 0.98), rgba(76, 0, 0, 0.98));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#about .about-text {
  margin: 1.25rem 0 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#about .about-text p {
  margin: 0;
}

.about-break {
  height: 1px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(91, 182, 255, 0.55), rgba(194, 75, 255, 0.55));
  opacity: 0.6;
}

body[data-theme="iu"] .end-links {
  --link-a: rgba(153, 0, 0, 0.9);
  --link-b: rgba(237, 235, 235, 0.9);
  --link-glow-a: rgba(153, 0, 0, 0.6);
  --link-glow-b: rgba(237, 235, 235, 0.45);
}

body[data-theme="iu"] .end-links .link-sep {
  color: rgba(153, 0, 0, 0.35);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes ambientSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes nameGlow {
  0% {
    text-shadow: 0 0 0 rgba(91, 182, 255, 0);
  }
  15% {
    text-shadow: 0 0 18px rgba(91, 182, 255, 0.45), 0 0 36px rgba(194, 75, 255, 0.35);
  }
  35% {
    text-shadow: 0 0 14px rgba(91, 182, 255, 0.25), 0 0 28px rgba(194, 75, 255, 0.2);
  }
  60% {
    text-shadow: 0 0 0 rgba(91, 182, 255, 0);
  }
  100% {
    text-shadow: 0 0 0 rgba(91, 182, 255, 0);
  }
}

@keyframes nameGlowIU {
  0% {
    text-shadow: 0 0 0 rgba(153, 0, 0, 0);
  }
  15% {
    text-shadow: 0 0 18px rgba(153, 0, 0, 0.35), 0 0 32px rgba(237, 235, 235, 0.25);
  }
  35% {
    text-shadow: 0 0 14px rgba(153, 0, 0, 0.2), 0 0 26px rgba(237, 235, 235, 0.18);
  }
  60% {
    text-shadow: 0 0 0 rgba(153, 0, 0, 0);
  }
  100% {
    text-shadow: 0 0 0 rgba(153, 0, 0, 0);
  }
}

@keyframes underlineGlow {
  0% {
    opacity: 0.15;
  }
  15% {
    opacity: 0.75;
  }
  35% {
    opacity: 0.4;
  }
  60% {
    opacity: 0.15;
  }
  100% {
    opacity: 0.15;
  }
}

@keyframes driftDown {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.75;
  }
  70% {
    opacity: 0.55;
  }
  100% {
    transform: translate3d(var(--drift-x, 0px), 55vh, 0);
    opacity: 0;
  }
}

@keyframes shake {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    transform: translate(-6px, 2px) rotate(-1deg);
  }
  40% {
    transform: translate(6px, -2px) rotate(1deg);
  }
  60% {
    transform: translate(-4px, 1px) rotate(-0.6deg);
  }
  80% {
    transform: translate(4px, -1px) rotate(0.6deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes floatNote {
  0% {
    transform: translateY(10px) scale(0.8);
    opacity: 0;
  }
  25% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-120px) scale(1.1);
    opacity: 0;
  }
}

@keyframes floatNoteWide {
  0% {
    transform: translate(0, 10px) scale(0.8);
    opacity: 0;
  }
  25% {
    opacity: 0.9;
  }
  100% {
    transform: translate(10px, -150px) scale(1.15);
    opacity: 0;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulseGlow {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero-left {
    justify-self: stretch;
    max-width: none;
  }

  .hero-right {
    order: 1;
  }

  .hero-left {
    order: 2;
  }

  .scroll-indicator {
    bottom: 4.9rem;
  }

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

  .feature-card {
    aspect-ratio: auto;
    min-height: auto;
  }

  .iu-banner {
    display: none;
  }
}

.feature-card.is-inview::after {
  opacity: 0.6;
  filter: blur(10px);
}

@media (hover: none) {
  .feature-card::after {
    opacity: 0;
  }

  .feature-card::before {
    opacity: 0.35;
  }

  .feature-card.is-inview {
    box-shadow: 0 24px 60px rgba(31, 35, 40, 0.18), 0 0 18px var(--glow-a), 0 0 28px var(--glow-b);
  }

  .feature-card.is-inview::before {
    opacity: 0.7;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    display: flex;
    flex-direction: column;
  }

  .feature-grid .feature-card:nth-child(1) {
    order: 2;
  }

  .feature-grid .feature-card:nth-child(2) {
    order: 1;
  }

  .feature-grid .feature-card:nth-child(3) {
    order: 3;
  }

  #about {
    padding-bottom: 2rem;
  }

  .end-links {
    padding-top: 1.2rem;
  }

  .about-panel {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  #about {
    scroll-margin-top: 7.5rem;
  }

  .scroll-indicator {
    bottom: 0.25rem;
  }

  .site-header {
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 6vw 1rem;
  }

  .brand {
    font-size: 0.9rem;
  }

  .header-right {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .site-nav {
    justify-content: center;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .theme-toggle {
    min-width: 7.2rem;
  }

  main {
    padding-top: 9.25rem;
  }

  .hero {
    padding: 1.85rem 6vw 3rem;
  }

  .hero {
    gap: 1.9rem;
  }

  .eyebrow {
    margin: 0 0 0.35rem;
  }

  .name {
    background: none;
    color: var(--text);
    text-shadow: none;
  }

  .name-first,
  .name-last {
    background: linear-gradient(120deg, #5bb6ff 10%, #8b6bff 55%, #c24bff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .name-first {
    text-shadow: 0 0 12px rgba(91, 182, 255, 0.45), 0 0 18px rgba(139, 107, 255, 0.35);
  }

  .name-last {
    text-shadow: 0 0 12px rgba(139, 107, 255, 0.45), 0 0 18px rgba(194, 75, 255, 0.35);
  }

  body[data-theme="iu"] .name-first,
  body[data-theme="iu"] .name-last {
    background: linear-gradient(120deg, #990000 15%, #b31217 60%, #edebeb 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  body[data-theme="iu"] .name-first {
    text-shadow: 0 0 12px rgba(153, 0, 0, 0.45), 0 0 16px rgba(237, 235, 235, 0.35);
  }

  body[data-theme="iu"] .name-last {
    color: #b31217;
    text-shadow: 0 0 12px rgba(153, 0, 0, 0.45), 0 0 16px rgba(237, 235, 235, 0.35);
  }

  .name-first,
  .name-last {
    animation: nameGlow 10s ease-in-out infinite;
  }

  .name-last {
    animation-delay: 5s;
  }

  .name-first::after,
  .name-last::after {
    animation: underlineGlow 10s ease-in-out infinite;
    opacity: 0.4;
  }

  .name-last::after {
    animation-delay: 5s;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .drift-item {
    display: none;
  }
}
