:root {
  --bg: #080808;
  --panel: #111111;
  --panel-2: #171717;
  --line: #2c2c2c;
  --ink: #f8f6f2;
  --muted: #aaa59f;
  --accent: #ff7043;
  --accent-2: #ffbd45;
  --dark-accent: #3d1710;
  --max: 1180px;
  --header: 74px;
}

* { box-sizing: border-box; }

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--accent); color: #111; }

.skip-link {
  position: fixed;
  z-index: 999;
  left: 1rem;
  top: -5rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: #fff;
  color: #000;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.topbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1rem, 4vw, 3.25rem);
  border-bottom: 1px solid #202020;
  background: rgba(5, 5, 5, .96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 9px;
  background: #cbe6fa;
}

.main-nav { display: flex; align-items: stretch; align-self: stretch; gap: 1.8rem; }
.main-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: #d2cfcb;
  text-decoration: none;
  font-size: .98rem;
  font-weight: 500;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active { color: #fff; }
.main-nav a.active::after, .main-nav a:hover::after { transform: scaleX(1); }

.menu-button {
  display: none;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  padding: .55rem .7rem;
  cursor: pointer;
}
.menu-button span { width: 14px; height: 2px; border-radius: 2px; background: #fff; }
.menu-button b { margin-left: .15rem; font-size: .8rem; }

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  display: grid;
  place-items: center;
  padding: calc(var(--header) + 3rem) 1.25rem 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; background: #170b08; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; transform: scale(1.04); }
.hero-bg::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.26), rgba(0,0,0,.62)),
    linear-gradient(90deg, rgba(15,5,3,.72), rgba(0,0,0,.1), rgba(0,0,0,.58));
}
.hero-bg::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(transparent, var(--bg));
}

.hero-card {
  position: relative;
  z-index: 3;
  width: min(720px, 100%);
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(10,10,10,.82);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.hero-name { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2rem); }
.hero-name > img {
  flex: 0 0 auto;
  width: clamp(105px, 18vw, 150px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 18px;
  background: #cbe6fa;
  box-shadow: 0 0 0 6px rgba(255,255,255,.06);
}
.hero-name > div > span, .eyebrow {
  color: var(--accent-2);
  font: 500 .76rem/1.2 "DM Mono", monospace;
  letter-spacing: .14em;
}
.hero h1 {
  margin: .35rem 0 .5rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: .9;
  letter-spacing: -.055em;
}
.hero h1 b { color: var(--accent); font-weight: 600; }
.hero-name p { margin: 0; color: #d1ccc6; font-size: clamp(1rem, 2vw, 1.18rem); }

.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.8rem 0; }
.primary-button, .light-button {
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  padding: .8rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, filter .18s ease;
}
.primary-button { background: var(--accent); color: #160805; box-shadow: 0 8px 24px rgba(255,112,67,.16); }
.light-button { background: #f6f3ee; color: #111; }
.primary-button:hover, .light-button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.primary-button:active, .light-button:active { transform: translateY(0); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats div { padding: 1.15rem .9rem 0; }
.hero-stats div + div { border-left: 1px solid rgba(255,255,255,.12); }
.hero-stats strong { display: block; color: #fff; font-size: 1.8rem; line-height: 1; }
.hero-stats span { display: block; margin-top: .3rem; color: var(--muted); font-size: .82rem; }

.scroll-down {
  position: absolute;
  z-index: 3;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  border: 0;
  background: transparent;
  color: #ddd;
  cursor: pointer;
  font-size: .82rem;
}
.scroll-down span { color: var(--accent); font-size: 1.2rem; }

.section { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(5rem, 9vw, 8.5rem) 0; }
.section-heading { max-width: 720px; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.section-heading h2, .about-copy h2, .contact-copy h2 {
  margin: .55rem 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.045em;
}
.section-heading h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 4px;
  background: var(--accent);
}
.section-heading p { margin: 0 auto; max-width: 620px; color: var(--muted); font-size: 1.05rem; }

.work-section { width: min(1320px, calc(100% - 2.5rem)); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  transition: transform .22s ease, border-color .22s ease;
}
.project-card:hover { transform: translateY(-5px); border-color: #555; }
.project-image { position: relative; display: block; aspect-ratio: 1.32; overflow: hidden; background: #181818; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover .project-image img { transform: scale(1.03); }
.project-image span {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  padding: .5rem .65rem;
  border-radius: 8px;
  background: rgba(0,0,0,.82);
  color: #fff;
  font: 500 .68rem "DM Mono", monospace;
}
.project-copy { padding: 1.4rem; }
.project-copy > div { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font: 500 .66rem "DM Mono", monospace; }
.project-copy h3 { margin: .8rem 0 .65rem; font-size: 1.75rem; line-height: 1; }
.project-copy p { min-height: 5.2em; margin: 0; color: #bbb6b0; }
.project-copy ul { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.project-copy li { padding: .36rem .58rem; border: 1px solid #333; border-radius: 999px; color: #ddd; font-size: .72rem; }

.numbers-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: #0d0d0d;
}
.numbers-band div { display: grid; place-items: center; min-height: 180px; padding: 1.5rem; text-align: center; }
.numbers-band div + div { border-left: 1px solid var(--line); }
.numbers-band strong { color: var(--accent-2); font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1; }
.numbers-band span { margin-top: .45rem; color: var(--muted); }

.coding-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .8fr); gap: 1.25rem; align-items: start; }
.language-list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.language-list article { display: grid; grid-template-columns: 46px 180px 1fr; gap: 1rem; align-items: center; min-height: 104px; padding: 1.1rem 1.25rem; background: var(--panel); }
.language-list article + article { border-top: 1px solid var(--line); }
.language-list article:hover { background: #151515; }
.language-list span { color: var(--accent); font: 500 .72rem "DM Mono", monospace; }
.language-list h3 { margin: 0; font-size: 1.28rem; }
.language-list p { margin: 0; color: var(--muted); }

.bot-card { position: sticky; top: calc(var(--header) + 1.25rem); padding: 2rem; border-radius: 16px; background: var(--accent); color: #1f0b05; }
.bot-card .eyebrow { color: #4f1b0e; }
.bot-card h3 { margin: .8rem 0 .65rem; font-size: 2.6rem; line-height: 1; }
.bot-card p { margin: 0 0 1.3rem; font-size: 1.02rem; }
.bot-features { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.6rem; }
.bot-features span { padding: .38rem .55rem; border: 1px solid rgba(40,10,5,.3); border-radius: 999px; font-size: .75rem; font-weight: 600; }
.bot-card > strong { display: block; padding-top: 1.1rem; border-top: 1px solid rgba(40,10,5,.25); }

.about-section { width: min(var(--max), calc(100% - 2.5rem)); }
.about-card { display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.about-visual { position: relative; display: grid; place-items: center; min-height: 580px; padding: 2rem; background: #cbe6fa; }
.about-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, transparent 58%, rgba(255,112,67,.4)); }
.about-visual img { position: relative; z-index: 1; width: min(92%, 390px); }
.about-visual span { position: absolute; z-index: 2; left: 1rem; bottom: 1rem; padding: .55rem .7rem; border-radius: 8px; background: #101010; color: #fff; font: 500 .72rem "DM Mono", monospace; }
.about-copy { align-self: center; padding: clamp(2rem, 5vw, 4rem); }
.about-copy p { margin: 0 0 1rem; color: #bbb6b0; font-size: 1.04rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.about-tags span { padding: .45rem .7rem; border: 1px solid #363636; border-radius: 999px; color: #e2dfda; font-size: .78rem; }

.roblox-story { display: grid; grid-template-columns: .8fr 1.3fr auto; gap: 2rem; align-items: center; margin-top: 1.25rem; padding: 1.6rem 1.8rem; border: 1px solid var(--line); border-radius: 16px; background: #0e0e0e; }
.roblox-story h3 { margin: .4rem 0 0; font-size: 1.45rem; }
.roblox-story p { margin: 0; color: var(--muted); }
.roblox-story a { padding: .75rem 1rem; border-radius: 9px; background: #fff; color: #111; font-weight: 700; text-decoration: none; white-space: nowrap; }

.radio-section { width: min(1280px, calc(100% - 2.5rem)); }
.radio-layout { display: grid; grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr); gap: 1.25rem; align-items: start; }
.radio-player, .radio-library { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.radio-player { position: sticky; top: calc(var(--header) + 1.25rem); padding: 1.5rem; }
.now-playing { display: flex; align-items: center; gap: 1.1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.disc { position: relative; flex: 0 0 auto; width: 92px; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #292929 0 3px, #0d0d0d 4px 8px); }
.disc::before { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: var(--accent); }
.disc::after { content: ""; position: absolute; inset: 47%; border-radius: 50%; background: #111; }
.radio-player.playing .disc { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.now-playing small, .queue-bar small { color: var(--accent); font: 500 .66rem "DM Mono", monospace; letter-spacing: .1em; }
.now-playing h3 { margin: .2rem 0 0; font-size: 1.7rem; line-height: 1.05; }
.now-playing p { margin: .2rem 0 0; color: var(--muted); }

.player-buttons { display: flex; justify-content: center; align-items: center; gap: .85rem; padding: 1.25rem 0; }
.player-buttons button { width: 44px; height: 44px; border: 1px solid #353535; border-radius: 50%; background: #181818; cursor: pointer; font-size: 1.1rem; }
.player-buttons .play-button { width: 58px; height: 58px; border: 0; background: var(--accent); color: #160805; font-size: 1.25rem; }
.player-buttons button:hover { border-color: #666; }

.progress-row, .volume-row { display: grid; grid-template-columns: 44px 1fr 44px; gap: .65rem; align-items: center; color: var(--muted); font: 500 .68rem "DM Mono", monospace; }
.volume-row { grid-template-columns: 62px 1fr 44px; margin-top: .8rem; }
input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.radio-video { position: relative; min-height: 178px; margin-top: 1.2rem; overflow: hidden; border: 1px solid #2f2f2f; border-radius: 12px; background: #090909; }
.radio-video iframe { display: block; width: 100%; min-height: 178px; border: 0; }
.radio-video p { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 1.5rem; color: #777; text-align: center; }
.radio-video.ready p { display: none; }
.spotify-link { display: block; margin-top: .8rem; color: var(--accent-2); font-size: .82rem; font-weight: 600; text-decoration: none; }

.radio-library { overflow: hidden; }
.radio-tools { display: grid; grid-template-columns: 1.3fr .85fr .9fr; gap: .6rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.radio-tools label { display: grid; gap: .3rem; color: var(--muted); font: 500 .62rem "DM Mono", monospace; letter-spacing: .08em; }
.radio-tools input, .radio-tools select { width: 100%; min-width: 0; height: 42px; padding: 0 .7rem; border: 1px solid #383838; border-radius: 8px; outline: 0; background: #0c0c0c; color: #fff; font-size: .8rem; }
.radio-tools input:focus, .radio-tools select:focus { border-color: var(--accent); }
.queue-bar { display: grid; grid-template-columns: 1fr auto auto; gap: .55rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: #13100f; }
.queue-bar span { display: grid; }
.queue-bar button, .search-status button { min-height: 34px; padding: .45rem .65rem; border: 1px solid #444; border-radius: 7px; background: #1c1c1c; cursor: pointer; font-size: .68rem; font-weight: 700; }
.queue-bar button:first-of-type { border-color: var(--accent); background: var(--accent); color: #1e0904; }
.queue-bar button:disabled { opacity: .35; cursor: default; }
.search-status { display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding: .55rem 1rem; color: #888; font: 500 .66rem "DM Mono", monospace; }
.search-status button { border-color: var(--accent); color: var(--accent); }
.music-list { max-height: 554px; overflow-y: auto; border-top: 1px solid var(--line); }
.music-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; min-height: 62px; background: #111; }
.music-row + .music-row { border-top: 1px solid #282828; }
.music-row.active { background: #22120e; }
.track-button { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .65rem; align-items: center; min-width: 0; padding: .7rem 1rem; border: 0; background: transparent; text-align: left; cursor: pointer; }
.track-button > span { color: #666; font: 500 .66rem "DM Mono", monospace; }
.track-button div { min-width: 0; }
.track-button b, .track-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-button b { font-size: .88rem; }
.track-button small { color: #85817d; font-size: .72rem; }
.track-button > time { color: #777; font: 500 .67rem "DM Mono", monospace; }
.queue-button { border: 0; border-left: 1px solid #282828; background: transparent; color: #aaa; cursor: pointer; font-size: 1rem; }
.queue-button[aria-pressed="true"] { color: var(--accent-2); background: #241b0c; }
.empty-message { padding: 2rem; color: #888; text-align: center; }

.guestbook-section { width: min(var(--max), calc(100% - 2.5rem)); }
.guestbook-layout { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr); gap: 1.25rem; align-items: start; }
.guestbook-form, .guestbook-wall { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.guestbook-form { display: grid; gap: .55rem; padding: 1.5rem; }
.guestbook-form > label:not(.anonymous-row) { margin-top: .5rem; color: #aaa; font: 500 .68rem "DM Mono", monospace; letter-spacing: .07em; }
.guestbook-form label small { color: #666; text-transform: none; }
.guestbook-form > input, .guestbook-form textarea { width: 100%; border: 1px solid #363636; border-radius: 9px; outline: 0; background: #0b0b0b; color: #fff; }
.guestbook-form > input { height: 46px; padding: 0 .8rem; }
.guestbook-form textarea { min-height: 125px; resize: vertical; padding: .8rem; }
.guestbook-form > input:focus, .guestbook-form textarea:focus { border-color: var(--accent); }
.anonymous-row { display: flex; align-items: center; gap: .7rem; margin: .4rem 0; cursor: pointer; }
.anonymous-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.anonymous-row span { display: grid; }
.anonymous-row b { font-size: .85rem; }
.anonymous-row small { color: var(--muted); }
.form-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; }
.form-bottom > span { color: #777; font: 500 .68rem "DM Mono", monospace; }
.form-bottom .primary-button { min-width: 130px; }
.form-status { min-height: 1.5em; margin: .2rem 0 0; color: #777; font-size: .78rem; }
.form-status.error { color: #ff8e7a; }

.guestbook-wall { overflow: hidden; }
.wall-top { display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 0 1.25rem; border-bottom: 1px solid var(--line); }
.wall-top h3 { margin: 0; }
.wall-top span { color: #777; font: 500 .68rem "DM Mono", monospace; }
.guestbook-list { display: grid; grid-template-columns: 1fr 1fr; max-height: 500px; overflow-y: auto; }
.guestbook-entry { position: relative; min-height: 150px; padding: 1.2rem; border-bottom: 1px solid var(--line); }
.guestbook-entry:nth-child(odd) { border-right: 1px solid var(--line); }
.guestbook-entry p { margin: 0; color: #d2cec9; overflow-wrap: anywhere; }
.guestbook-entry footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; color: #777; font-size: .72rem; }
.guestbook-entry footer b { color: var(--accent-2); font-weight: 500; }
.guestbook-entry > button { position: absolute; top: .55rem; right: .55rem; width: 28px; height: 28px; border: 1px solid #444; border-radius: 7px; background: #181818; cursor: pointer; }

.contact-section { padding: clamp(5rem, 10vw, 9rem) max(1.25rem, calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--line); background: var(--accent); color: #1f0b05; }
.contact-copy { max-width: 760px; }
.contact-copy .eyebrow { color: #5f2414; }
.contact-copy h2 { margin-top: .5rem; font-size: clamp(4rem, 12vw, 9rem); }
.contact-copy p { max-width: 540px; font-size: 1.1rem; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; border-top: 1px solid rgba(31,11,5,.25); border-left: 1px solid rgba(31,11,5,.25); }
.social-grid a, .social-grid button { display: grid; min-height: 130px; padding: 1.2rem; border: 0; border-right: 1px solid rgba(31,11,5,.25); border-bottom: 1px solid rgba(31,11,5,.25); background: transparent; color: #1f0b05; text-align: left; text-decoration: none; cursor: pointer; transition: background .18s ease; }
.social-grid a:hover, .social-grid button:hover { background: rgba(255,255,255,.16); }
.social-grid span { font: 500 .66rem "DM Mono", monospace; }
.social-grid b { align-self: end; overflow: hidden; text-overflow: ellipsis; font-size: 1.05rem; white-space: nowrap; }
.social-grid i { justify-self: end; font-style: normal; font-size: .72rem; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 110px; padding: 1.5rem clamp(1rem, 4vw, 3.25rem); border-top: 1px solid var(--line); background: #050505; }
.footer p { color: #777; font-size: .8rem; }
.footer button { border: 0; background: transparent; color: #ddd; cursor: pointer; }

.toast { position: fixed; z-index: 200; left: 50%; bottom: 1.2rem; max-width: calc(100% - 2rem); padding: .75rem 1rem; border: 1px solid #3d3d3d; border-radius: 9px; background: #171717; color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .main-nav { gap: 1rem; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr .8fr; }
  .project-card:first-child .project-image { aspect-ratio: auto; }
  .project-copy p { min-height: 0; }
  .coding-layout, .radio-layout { grid-template-columns: 1fr; }
  .bot-card, .radio-player { position: static; }
  .about-card { grid-template-columns: 1fr; }
  .about-visual { min-height: 430px; }
  .roblox-story { grid-template-columns: 1fr; }
  .roblox-story a { justify-self: start; }
  .guestbook-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header: 66px; }
  .topbar { padding-inline: 1rem; }
  .brand img { width: 38px; height: 38px; }
  .menu-button { display: flex; }
  .main-nav { position: fixed; inset: var(--header) 0 auto; display: none; flex-direction: column; gap: 0; padding: .6rem 1rem 1rem; border-bottom: 1px solid var(--line); background: #080808; }
  .main-nav.open { display: flex; }
  .main-nav a { min-height: 48px; justify-content: start; border-bottom: 1px solid #202020; }
  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--accent); }
  .hero { min-height: 830px; padding-inline: 1rem; }
  .hero-name { align-items: flex-start; }
  .hero-name > img { width: 88px; border-radius: 14px; }
  .hero h1 { font-size: clamp(2.3rem, 12vw, 3.8rem); }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-stats div { padding-inline: .55rem; }
  .hero-stats strong { font-size: 1.35rem; }
  .hero-stats span { font-size: .68rem; }
  .section, .work-section, .about-section, .radio-section, .guestbook-section { width: min(100% - 1.25rem, var(--max)); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card:first-child { grid-column: auto; display: block; }
  .project-card:first-child .project-image { aspect-ratio: 1.32; }
  .numbers-band { grid-template-columns: 1fr 1fr; }
  .numbers-band div { min-height: 135px; }
  .numbers-band div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .numbers-band div:nth-child(4) { border-top: 1px solid var(--line); }
  .language-list article { grid-template-columns: 34px 1fr; gap: .7rem; }
  .language-list p { grid-column: 2; }
  .about-visual { min-height: 340px; }
  .radio-tools { grid-template-columns: 1fr 1fr; }
  .radio-tools label:first-child { grid-column: 1 / -1; }
  .music-list { max-height: 470px; }
  .guestbook-list { grid-template-columns: 1fr; }
  .guestbook-entry:nth-child(odd) { border-right: 0; }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-card { padding: 1.15rem; }
  .hero-name { display: grid; }
  .hero-name > img { width: 82px; }
  .section-heading { text-align: left; }
  .section-heading h2::after { margin-left: 0; }
  .project-copy { padding: 1.15rem; }
  .radio-player { padding: 1.1rem; }
  .radio-tools { grid-template-columns: 1fr; }
  .radio-tools label:first-child { grid-column: auto; }
  .track-button { grid-template-columns: 28px minmax(0,1fr) auto; padding-inline: .7rem; }
  .guestbook-form { padding: 1.1rem; }
  .social-grid { grid-template-columns: 1fr; }
  .social-grid a, .social-grid button { min-height: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
