@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
  img { display: block; max-width: 100%; }
  button, a { font: inherit; }
}

@layer base {
  :root {
    color-scheme: light;
    --ink: #10224a;
    --muted: #53658b;
    --blue: #1557d6;
    --blue-dark: #0b3da7;
    --blue-fill: #1557d6;
    --blue-fill-hover: #0b3da7;
    --blue-soft: #dceaff;
    --sky: #eef5ff;
    --paper: #fffdf8;
    --line: #b9cff4;
    --yellow: #ffc94a;
    --radius: 12px;
    --container: min(1240px, calc(100% - 40px));
    accent-color: var(--blue);
  }

  html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f0f5ff;
    --muted: #b4c3df;
    --blue: #72a7ff;
    --blue-dark: #9bc0ff;
    --blue-fill: #2d68cf;
    --blue-fill-hover: #2459b7;
    --blue-soft: #1b3b68;
    --sky: #10264a;
    --paper: #08142d;
    --line: #31517e;
    --yellow: #ffd466;
  }

  body {
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", "Avenir Next", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    transition: background-color 180ms ease, color 180ms ease;
  }

  h1, h2, h3 { line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
  h1 { font-size: clamp(3.25rem, 7.2vw, 7rem); }
  h2 { font-size: clamp(2.25rem, 4.6vw, 4.5rem); }
  h3 { font-size: clamp(1.5rem, 2.3vw, 2.25rem); }
  p { text-wrap: pretty; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
}

@layer components {
  .skip-link { position: fixed; inset: 12px auto auto 12px; z-index: 10; width: 1px; height: 1px; overflow: hidden; padding: 0; clip-path: inset(50%); background: var(--ink); color: white; white-space: nowrap; }
  .skip-link:focus { width: auto; height: auto; overflow: visible; padding: 10px 14px; clip-path: none; }

  .site-header {
    width: var(--container);
    min-height: 72px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
  }

  .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
  .brand-mark { display: grid; place-items: center; inline-size: 34px; block-size: 34px; background: var(--blue-fill); color: white; border-radius: 8px; font-size: 0.75rem; letter-spacing: -0.06em; }
  .brand-image img { inline-size: auto; block-size: 56px; object-fit: contain; }
  .site-nav { order: 2; margin-left: auto; display: flex; align-items: center; gap: 24px; }
  .site-nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
  .site-nav a:hover, .site-nav a.active { color: var(--blue); }
  .site-nav .nav-cta { padding: 10px 15px; background: var(--blue-fill); color: white; border-radius: 8px; }
  .site-nav .nav-cta:hover { background: var(--blue-fill-hover); color: white; }
  .theme-toggle, .dashboard-text-button { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--sky); color: var(--ink); padding: 7px 11px; font-size: .82rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
  .theme-toggle { position: relative; order: 3; display: grid; place-items: center; inline-size: 40px; block-size: 40px; min-height: 40px; padding: 0; color: var(--blue); }
  .theme-toggle::before { content: ""; inline-size: 21px; block-size: 21px; background: currentColor; -webkit-mask: url("/assets/icon-lightbulb.svg") center / contain no-repeat; mask: url("/assets/icon-lightbulb.svg") center / contain no-repeat; }
  .theme-toggle[data-theme-state="auto"]::after { content: "A"; position: absolute; inset: -4px -4px auto auto; display: grid; place-items: center; inline-size: 16px; block-size: 16px; border: 2px solid var(--paper); border-radius: 50%; background: var(--blue-fill); color: white; font-size: 0.58rem; font-weight: 900; line-height: 1; }
  .theme-toggle:hover, .dashboard-text-button:hover { border-color: var(--blue); color: var(--blue); }
  .menu-button { order: 4; display: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 800; }

  .hero {
    width: var(--container);
    min-height: calc(100dvh - 72px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.25fr);
    align-items: center;
    gap: clamp(30px, 5vw, 72px);
    padding-block: clamp(48px, 7vw, 88px);
  }
  .hero-copy { position: relative; z-index: 1; }
  .hero-kicker { margin-bottom: 16px; color: var(--blue); font-weight: 800; }
  .hero-copy > p:not(.hero-kicker) { max-width: 34ch; margin-top: 24px; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
  .hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
  .button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 9px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
  .button:active { transform: translateY(1px); }
  .button-primary { background: var(--blue-fill); color: white; }
  .button-primary:hover { background: var(--blue-fill-hover); }
  .button-secondary { margin-top: 36px; border-color: var(--blue); color: var(--blue); }
  .button-secondary:hover { background: var(--blue-fill); color: white; }
  .button-light { background: var(--paper); color: var(--blue-dark); }
  .button-light:hover { background: var(--yellow); color: var(--ink); }
  .text-link { color: var(--blue-dark); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .hero-art { overflow: hidden; border-radius: var(--radius); background: var(--sky); aspect-ratio: 1.12; }
  .hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
  .creator-hero h1 { font-size: clamp(2.25rem, 3.5vw, 3.6rem); font-weight: 800; }
  .artist-hero-art { aspect-ratio: 4 / 3; }
  .artist-hero-art img { object-position: 63% center; }
  .creator-hero { min-height: min(650px, calc(100dvh - 72px)); }
  .home-page .hero-copy > p { max-width: 32ch; }
  .home-page .about-section { padding-block: clamp(68px, 8vw, 108px); }

  .section { width: var(--container); margin-inline: auto; padding-block: clamp(80px, 10vw, 140px); }
  .section-heading { max-width: 760px; margin-bottom: 48px; }
  .section-heading p { max-width: 52ch; margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
  .music-page-hero { width: var(--container); margin-inline: auto; padding-block: clamp(70px, 10vw, 130px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr); align-items: center; gap: clamp(48px, 9vw, 130px); border-bottom: 1px solid var(--line); }
  .music-page-hero h1 { font-size: clamp(2.1rem, 5vw, 5rem); white-space: nowrap; }
  .platform-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .music-page-hero .platform-actions { margin-top: 30px; }
  .platform-actions .button-secondary { margin-top: 0; }
  .latest-release-card { overflow: hidden; display: grid; grid-template-columns: 1fr 0.72fr; align-items: center; background: var(--blue-fill); color: white; border-radius: var(--radius); text-decoration: none; }
  .latest-release-card img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
  .latest-release-card > div { padding: 28px; display: grid; gap: 7px; }
  .latest-release-card span { color: var(--yellow); font-weight: 800; }
  .latest-release-card strong { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; }
  .latest-release-card small { color: var(--blue-soft); font-size: 0.95rem; }

  .releases-section { width: var(--container); margin-inline: auto; padding-block: 20px clamp(90px, 12vw, 160px); }
  .releases-heading { max-width: 680px; margin-bottom: 52px; }
  .release-year { display: grid; grid-template-columns: minmax(150px, 0.28fr) 1fr; gap: clamp(30px, 7vw, 100px); padding-block: 36px; border-top: 1px solid var(--line); }
  .release-year h3 { color: var(--blue); font-size: clamp(1.7rem, 3vw, 2.8rem); }
  .song-list { display: grid; }
  .song-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 72px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); transition: background-color 160ms ease; }
  .song-copy { display: grid; grid-template-columns: minmax(150px, 0.75fr) minmax(210px, 1fr); align-items: center; gap: 24px; }
  .song-copy span { font-size: 1.08rem; font-weight: 850; }
  .song-copy small { color: var(--muted); font-size: 0.9rem; }
  .release-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
  .release-links a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue); font-size: 0.8rem; font-weight: 850; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
  .release-links a:hover { border-color: var(--blue-fill); background: var(--blue-fill); color: white; }
  .song-row:hover, .featured-song { background: var(--sky); }
  .song-row:hover span { color: var(--blue); }

  .about-section { display: grid; grid-template-columns: 1fr 0.72fr; align-items: center; gap: clamp(50px, 11vw, 160px); border-top: 1px solid var(--line); }
  .about-copy p { max-width: 52ch; margin-top: 24px; color: var(--muted); font-size: 1.12rem; }
  .home-page .about-copy h2 { font-size: clamp(2.2rem, 3.8vw, 3.6rem); }
  .home-page .about-copy p + p { margin-top: 14px; }
  .about-copy .text-link { display: inline-block; margin-top: 24px; }
  .about-art { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); }
  .about-art img { width: 100%; height: 100%; object-fit: cover; }
  .project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .project-card { container: project / inline-size; overflow: hidden; display: grid; grid-template-rows: auto 1fr; color: var(--ink); background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
  .project-card-wide { grid-column: 1 / -1; grid-template-columns: 1.4fr 0.7fr; grid-template-rows: none; min-height: 470px; }
  .project-card:hover h3 { color: var(--blue); }
  .project-image { min-height: 300px; overflow: hidden; background: var(--blue-soft); }
  .project-image img, .feature-art img { width: 100%; height: 100%; object-fit: cover; transition: scale 600ms cubic-bezier(.16, 1, .3, 1); }
  .project-card:hover img { scale: 1.025; }
  .project-copy { padding: clamp(22px, 4cqi, 42px); align-self: end; }
  .project-copy > p, .project-type { color: var(--blue); font-weight: 800; }
  .project-copy h3 { margin-block: 8px 14px; }
  .project-copy span { display: block; max-width: 40ch; color: var(--muted); }
  .crop-left img { object-position: 10% center; }
  .crop-center img { object-position: 51% center; }
  .crop-right img { object-position: 92% center; }

  .studio-section { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(60px, 10vw, 150px); border-top: 1px solid var(--line); }
  .studio-statement { position: sticky; top: 32px; align-self: start; }
  .studio-statement p { max-width: 42ch; margin-top: 20px; color: var(--muted); font-size: 1.1rem; }
  .principles { display: grid; }
  .principle { padding-block: 30px; border-bottom: 1px solid var(--line); }
  .principle:first-child { padding-top: 0; }
  .principle span { color: var(--blue); font-weight: 850; }
  .principle h3 { margin-block: 12px 10px; }
  .principle p { color: var(--muted); }

  .contact-section { width: var(--container); margin: 20px auto 80px; padding: clamp(34px, 6vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 36px; background: var(--blue-fill); color: white; border-radius: var(--radius); }
  .contact-section p { max-width: 48ch; margin-top: 12px; color: #dceaff; font-size: 1.08rem; }

  .site-footer { width: var(--container); margin-inline: auto; padding-block: 38px; display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); }
  .site-footer > div { display: flex; flex-wrap: wrap; gap: 12px 20px; }
  .site-footer a:not(.brand) { font-weight: 700; text-underline-offset: 4px; }
  .site-footer .footer-links { align-items: center; justify-content: flex-end; gap: 14px; }
  .footer-socials { display: flex; align-items: center; gap: 8px; }
  .site-footer .social-icon { display: grid; place-items: center; inline-size: 42px; block-size: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--sky); text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
  .site-footer .social-icon img { inline-size: 21px; block-size: 21px; }
  .site-footer .social-icon:hover { border-color: var(--blue-fill); background: var(--blue-fill); transform: translateY(-2px); }
  .site-footer .social-icon:hover img { filter: brightness(0) invert(1); }
  .copyright { grid-column: 1 / -1; font-size: 0.9rem; }

  .projects-hero { width: var(--container); margin-inline: auto; padding-block: clamp(64px, 8vw, 108px) 56px; border-bottom: 1px solid var(--line); }
  .projects-hero h1 { max-width: 10ch; font-size: clamp(3.3rem, 6vw, 5.8rem); }
  .projects-hero > p:last-child { max-width: 48ch; margin-top: 22px; color: var(--muted); font-size: 1.18rem; }
  .project-showcase { width: var(--container); margin-inline: auto; padding-block: 24px clamp(90px, 11vw, 150px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .project-preview { overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: var(--sky); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
  .project-preview-wide { grid-column: auto; }
  .project-preview figure { overflow: hidden; aspect-ratio: 16 / 9; background: var(--blue-soft); }
  .project-preview figure img { width: 100%; height: 100%; object-fit: cover; transition: scale 600ms cubic-bezier(.16, 1, .3, 1); }
  .project-preview:hover figure img { scale: 1.02; }
  .project-preview-copy { align-self: stretch; display: grid; grid-template-rows: auto 1fr auto; align-content: start; padding: clamp(24px, 2.2vw, 36px); }
  .project-preview-copy h2 { margin-block: 0 14px; font-size: clamp(2rem, 3vw, 3.5rem); }
  .project-preview-copy > span { display: block; max-width: 42ch; color: var(--muted); }
  .project-preview-copy strong { display: block; align-self: end; margin-top: 24px; color: var(--blue-dark); }
  .project-preview-game figure { min-height: 0; }
  .tanktopia-art { position: relative; isolation: isolate; }
  .project-preview .tanktopia-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
  .project-preview .tanktopia-logo { position: absolute; inset: 50% auto auto 50%; z-index: 1; width: min(78%, 540px); height: auto; object-fit: contain; filter: drop-shadow(0 12px 20px rgb(10 55 100 / .24)); transform: translate(-50%, -50%); }
  .project-preview:hover .tanktopia-logo { scale: 1; transform: translate(-50%, -50%); }
  .project-preview-kixkan { background: var(--sky); color: var(--ink); }
  .project-preview-kixkan .project-preview-copy > span { color: var(--muted); }
  .project-preview-kixkan .project-preview-copy strong { color: var(--blue-dark); }
  .project-preview-kixkan .kixkan-art { aspect-ratio: 16 / 9; background: #02052d; }
  .project-preview-kixkan .kixkan-art img { object-position: center; }
  .project-preview-pixelated .pixelated-art { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; background: linear-gradient(145deg, #0b3da7, #08142d); }
  .project-preview-pixelated .pixelated-art img { width: clamp(74px, 7vw, 110px); height: auto; object-fit: contain; filter: brightness(0) invert(1); }
  .project-preview-pixelated .pixelated-art span { color: white; font-size: clamp(2rem, 3.5vw, 3.6rem); font-weight: 900; letter-spacing: -0.04em; }

  .content-hero { width: var(--container); margin-inline: auto; padding-block: clamp(80px, 11vw, 140px) 70px; display: flex; align-items: end; justify-content: space-between; gap: 40px; border-bottom: 1px solid var(--line); }
  .content-hero h1 { max-width: 10ch; font-size: clamp(3.4rem, 7vw, 6.8rem); }
  .content-hero div > p:last-child { max-width: 48ch; margin-top: 22px; color: var(--muted); font-size: 1.18rem; }
  .content-hero-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; max-width: 510px; }
  .content-hero-actions .button-secondary { margin-top: 0; }
  .video-release-section, .shorts-section { width: var(--container); margin-inline: auto; padding-block: clamp(75px, 10vw, 130px); }
  .shorts-section { border-top: 1px solid var(--line); }
  .content-section-heading { max-width: 680px; margin-bottom: 42px; }
  .content-section-heading p { max-width: 48ch; margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
  .full-video-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; }
  .video-release-feature { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); min-height: 470px; background: var(--blue-fill); color: white; border-radius: var(--radius); text-decoration: none; }
  .full-video-grid .video-release-feature { grid-column: 1 / -1; }
  .video-release-feature img { width: 100%; height: 100%; object-fit: cover; }
  .video-release-feature > div { align-self: end; padding: clamp(30px, 5vw, 60px); }
  .video-release-feature p { color: var(--yellow); font-weight: 800; }
  .video-release-feature h3 { margin-block: 12px 24px; font-size: clamp(2.2rem, 4vw, 4.5rem); }
  .video-release-feature span { color: var(--blue-soft); font-weight: 750; }
  .video-release-card { overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: var(--sky); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
  .video-release-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: scale 600ms cubic-bezier(.16, 1, .3, 1); }
  .video-release-card:hover img { scale: 1.02; }
  .video-release-card > div { padding: clamp(24px, 3.5vw, 38px); }
  .video-release-card p { color: var(--blue); font-size: .9rem; font-weight: 800; }
  .video-release-card h3 { margin-block: 9px 20px; font-size: clamp(1.7rem, 3vw, 2.65rem); }
  .video-release-card span { color: var(--blue-dark); font-weight: 750; }
  .shorts-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
  .short-card { overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; min-height: 250px; background: var(--sky); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
  .short-card-featured { grid-row: span 2; grid-template-columns: 1fr; grid-template-rows: minmax(380px, 1fr) auto; }
  .short-card img { width: 100%; height: 100%; object-fit: cover; }
  .short-card > div { align-self: end; padding: clamp(22px, 3vw, 34px); }
  .short-card span { color: var(--blue); font-size: .88rem; font-weight: 800; }
  .short-card h3 { margin-top: 8px; }
  .content-page .content-hero { padding-block: clamp(64px, 8vw, 108px) 56px; }
  .content-page .content-hero h1 { max-width: none; font-size: clamp(3.3rem, 6vw, 5.8rem); white-space: nowrap; }
  .content-page .video-release-section, .content-page .shorts-section { padding-block: clamp(64px, 8vw, 104px); }

  .support-hero { width: var(--container); margin-inline: auto; padding-block: clamp(54px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(440px, 1.22fr); align-items: center; gap: clamp(44px, 8vw, 110px); }
  .support-hero-copy h1 { max-width: 9ch; font-size: clamp(3.2rem, 5.5vw, 5.7rem); }
  .support-hero-copy > p:last-child { max-width: 38ch; margin-top: 24px; color: var(--muted); font-size: 1.12rem; }
  .support-hero-art { overflow: hidden; aspect-ratio: 4 / 3; background: var(--blue-soft); border-radius: var(--radius); }
  .support-hero-art img { width: 100%; height: 100%; object-fit: cover; }

  .support-layout { width: var(--container); margin-inline: auto; padding-block: clamp(70px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr); align-items: start; gap: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line); }
  .support-form-wrap { padding: clamp(26px, 4vw, 48px); background: #fffefa; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 22px 60px rgb(21 87 214 / .09); }
  .support-form-heading { margin-bottom: 36px; }
  .support-form-heading h2 { max-width: 14ch; font-size: clamp(2.4rem, 4vw, 4rem); }
  .support-form-heading p { max-width: 48ch; margin-top: 14px; color: var(--muted); }
  .support-form { display: grid; gap: 24px; }
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .form-field { display: grid; align-content: start; gap: 8px; }
  .form-field label { color: var(--ink); font-weight: 800; }
  .form-field label span { color: var(--muted); font-weight: 650; }
  .form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #7898cf; border-radius: 9px; background: var(--paper); color: var(--ink); padding: 13px 14px; font: inherit; line-height: 1.4; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
  .form-field input, .form-field select { min-height: 50px; }
  .form-field textarea { resize: vertical; min-height: 170px; }
  .form-field input::placeholder { color: #65779b; opacity: 1; }
  .form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--blue); }
  .form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 0; border-color: var(--blue); background: white; box-shadow: 0 0 0 3px rgb(255 201 74 / .8); }
  .form-field small { color: #465a81; font-size: 0.86rem; }
  .honeypot { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); white-space: nowrap; }
  .support-submit-row { display: flex; align-items: center; gap: 22px; }
  .support-submit-row p { color: var(--muted); font-size: 0.9rem; }
  .support-submit-row a { color: var(--blue-dark); font-weight: 750; }
  .support-form button:disabled { cursor: wait; opacity: 0.68; }
  .form-status { min-height: 28px; font-weight: 750; }
  .form-status:empty { display: none; }
  .form-status-pending { color: var(--blue-dark); }
  .form-status-success { padding: 14px 16px; border-left: 4px solid #168252; background: #e6f6ed; color: #0c5d39; }
  .form-status-error { padding: 14px 16px; border-left: 4px solid #b52a37; background: #fff0f1; color: #84202a; }
  .form-status-error a { font-weight: 850; }

  .support-aside { position: sticky; top: 24px; padding: clamp(28px, 4vw, 42px); background: var(--blue-fill); color: white; border: 1px solid var(--blue-fill-hover); border-radius: var(--radius); }
  .support-aside h2 { max-width: 13ch; font-size: clamp(2rem, 3vw, 3rem); }
  .support-note { padding-block: 22px; border-bottom: 1px solid rgb(220 234 255 / .35); }
  .support-note strong { color: white; font-size: 1.05rem; }
  .support-note p { margin-top: 6px; color: var(--blue-soft); }
  .support-email-block { padding-top: 28px; }
  .support-email-block p { color: var(--blue-soft); }
  .support-email-block a { display: inline-block; margin-top: 5px; color: white; font-weight: 850; overflow-wrap: anywhere; text-underline-offset: 4px; }

  .dashboard-page { min-height: 100dvh; background: var(--paper); }
  .dashboard-header { width: min(1380px, calc(100% - 40px)); min-height: 76px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
  .dashboard-header-actions { display: flex; align-items: center; gap: 10px; }
  .dashboard-header .theme-toggle { order: initial; }
  .dashboard-main { width: min(1380px, calc(100% - 40px)); margin-inline: auto; padding-block: clamp(48px, 7vw, 92px); }
  .dashboard-label { color: var(--blue); font-weight: 850; }
  .dashboard-login { min-height: calc(100dvh - 220px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .62fr); align-items: center; gap: clamp(54px, 10vw, 150px); }
  .dashboard-login-copy h1 { max-width: 10ch; margin-top: 12px; font-size: clamp(3.4rem, 6vw, 6rem); }
  .dashboard-login-copy > p:last-child { max-width: 48ch; margin-top: 22px; color: var(--muted); font-size: 1.1rem; }
  .dashboard-login-form { padding: clamp(28px, 4vw, 46px); display: grid; gap: 22px; background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius); }
  .dashboard-login-form .button { width: 100%; }
  .dashboard-login-form button:disabled { cursor: wait; opacity: .65; }
  .dashboard-content { display: grid; gap: 22px; }
  .dashboard-intro { padding-bottom: 44px; display: flex; align-items: end; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
  .dashboard-intro h1 { margin-top: 7px; font-size: clamp(3rem, 5.5vw, 5.5rem); }
  .dashboard-intro > div:first-child > p:last-child { margin-top: 16px; color: var(--muted); }
  .dashboard-ranges { display: flex; gap: 8px; }
  .dashboard-ranges button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; white-space: nowrap; }
  .dashboard-ranges button:hover, .dashboard-ranges button.active { border-color: var(--blue-fill); background: var(--blue-fill); color: #f8fbff; }
  .dashboard-status { min-height: 0; color: var(--muted); font-weight: 750; }
  .dashboard-status:empty { display: none; }
  .dashboard-status-error { padding: 14px 16px; border-left: 4px solid #d15a67; background: #411c28; color: #ffdfe3; }
  .dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .dashboard-metrics article { min-width: 0; padding: clamp(22px, 3vw, 38px); display: grid; gap: 7px; background: var(--sky); border-right: 1px solid var(--line); }
  .dashboard-metrics article:last-child { border-right: 0; }
  .dashboard-metrics span { color: var(--muted); font-weight: 800; }
  .dashboard-metrics strong { color: var(--ink); font-size: clamp(2.4rem, 4.2vw, 4.8rem); line-height: 1; letter-spacing: -.05em; }
  .dashboard-metrics small { color: var(--muted); }
  .dashboard-panel { padding: clamp(26px, 3.5vw, 44px); background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius); }
  .dashboard-panel-heading { margin-bottom: 28px; }
  .dashboard-panel-heading h2 { font-size: clamp(1.8rem, 3vw, 2.9rem); }
  .dashboard-panel-heading p { margin-top: 8px; color: var(--muted); }
  .dashboard-ticket-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
  .dashboard-ticket-heading > strong { flex: 0 0 auto; padding: 8px 11px; border-radius: 8px; background: var(--blue-fill); color: white; font-size: .82rem; }
  .ticket-list { display: grid; gap: 14px; }
  .ticket-card { padding: 22px; display: grid; gap: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
  .ticket-card-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
  .ticket-card-header > div { min-width: 0; }
  .ticket-card-id { color: var(--blue); font-size: 1.05rem; }
  .ticket-card time, .ticket-card-meta { color: var(--muted); font-size: .86rem; }
  .ticket-card h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
  .ticket-card-message { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
  .ticket-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
  .ticket-card-footer a { color: var(--blue); font-weight: 800; text-underline-offset: 3px; }
  .ticket-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
  .ticket-confirmation { color: #168252; font-size: .82rem; font-weight: 850; }
  .ticket-confirmation-warning { color: #b45309; }
  .dashboard-trend { min-height: 360px; }
  .traffic-chart { min-height: 225px; display: grid; grid-template-columns: repeat(auto-fit, minmax(24px, 1fr)); align-items: end; gap: clamp(4px, .8vw, 10px); }
  .traffic-column { height: 225px; display: grid; grid-template-rows: 24px 170px 31px; align-items: end; text-align: center; }
  .traffic-column > span { color: var(--muted); font-size: .72rem; font-weight: 800; }
  .traffic-column i { width: 100%; height: var(--bar-height); min-height: 3px; display: block; align-self: end; background: var(--blue); border-radius: 5px 5px 2px 2px; }
  .traffic-column small { overflow: hidden; color: var(--muted); font-size: .67rem; white-space: nowrap; text-overflow: ellipsis; }
  .dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .dashboard-list { display: grid; gap: 20px; }
  .dashboard-list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; }
  .dashboard-list-row > div { min-width: 0; display: grid; gap: 8px; }
  .dashboard-list-row strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .dashboard-list-row span { position: relative; height: 5px; display: block; overflow: hidden; background: var(--line); border-radius: 5px; }
  .dashboard-list-row span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--bar-width); background: var(--blue); border-radius: inherit; }
  .dashboard-list-row b { font-size: 1.1rem; }
  .device-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .device-breakdown div { min-width: 0; padding: 20px 14px; display: grid; gap: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
  .device-breakdown strong { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; }
  .device-breakdown span { color: var(--muted); font-size: .85rem; }
  .dashboard-privacy { display: flex; flex-direction: column; justify-content: space-between; background: var(--blue-fill); color: #f8fbff; }
  .dashboard-privacy .dashboard-panel-heading { margin-bottom: 22px; }
  .dashboard-privacy p { max-width: 48ch; color: #e1ecff; }
  .dashboard-empty { color: var(--muted); }

  html[data-theme="dark"] .support-form-wrap { background: #0d1d3d; box-shadow: 0 22px 60px rgb(0 0 0 / .22); }
  html[data-theme="dark"] .form-field input,
  html[data-theme="dark"] .form-field select,
  html[data-theme="dark"] .form-field textarea { border-color: #5576a6; background: #091831; }
  html[data-theme="dark"] .form-field input:focus,
  html[data-theme="dark"] .form-field select:focus,
  html[data-theme="dark"] .form-field textarea:focus { background: #10264a; }
  html[data-theme="dark"] .form-field input::placeholder,
  html[data-theme="dark"] .form-field small { color: #b4c3df; }
}

@layer utilities {
  .reveal { opacity: 1; }
  @media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms cubic-bezier(.16, 1, .3, 1), transform 650ms cubic-bezier(.16, 1, .3, 1); }
    .js .reveal.is-visible { opacity: 1; transform: translateY(0); }
  }

  @media (width <= 900px) {
    :root { --container: min(100% - 32px, 760px); }
    .site-header { position: relative; }
    .menu-button { display: block; }
    .site-nav { display: none; position: absolute; inset: 72px 0 auto; z-index: 4; padding: 18px; align-items: stretch; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 12px 12px; }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 10px; }
    .hero { min-height: auto; grid-template-columns: 1fr; gap: 36px; padding-block: 54px; }
    .hero-art { aspect-ratio: 1.35; }
    .about-section { grid-template-columns: 1fr; }
    .music-page-hero { grid-template-columns: 1fr; }
    .music-page-hero > div { min-width: 0; }
    .support-hero, .support-layout { grid-template-columns: 1fr; }
    .support-hero-art { aspect-ratio: 4 / 3; }
    .support-aside { position: static; }
    .project-showcase { grid-template-columns: 1fr; }
    .project-preview, .project-preview-wide { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .project-preview-wide figure { aspect-ratio: 16 / 9; }
    .project-preview-game figure { min-height: 0; aspect-ratio: 16 / 9; }
    .content-hero { align-items: flex-start; flex-direction: column; }
    .content-hero-actions { justify-content: flex-start; }
    .full-video-grid { grid-template-columns: 1fr; }
    .full-video-grid .video-release-feature { grid-column: auto; }
    .video-release-feature { grid-template-columns: 1fr; }
    .shorts-grid { grid-template-columns: 1fr; }
    .short-card-featured { grid-row: auto; }
    .project-card-wide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; }
    .studio-section { grid-template-columns: 1fr; }
    .studio-statement { position: static; }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .dashboard-login { min-height: auto; grid-template-columns: 1fr; }
    .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-metrics article:nth-child(2) { border-right: 0; }
    .dashboard-metrics article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  }

  @media (width <= 640px) {
    h1 { font-size: clamp(3rem, 15vw, 4.75rem); }
    .music-page-hero h1 { font-size: clamp(2.1rem, 10.5vw, 2.6rem); }
    .content-page .content-hero h1 { max-width: none; font-size: clamp(2rem, 10vw, 2.4rem); white-space: nowrap; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-art { aspect-ratio: 1; }
    .brand-image img { block-size: 38px; }
    .latest-release-card { grid-template-columns: 1fr; }
    .latest-release-card img { min-height: 0; }
    .release-year { grid-template-columns: 1fr; gap: 18px; }
    .song-row { grid-template-columns: 1fr; gap: 10px; padding-block: 14px; }
    .song-copy { grid-template-columns: 1fr; gap: 2px; }
    .release-links { justify-content: flex-start; }
    .project-preview .tanktopia-logo { width: 68%; }
    .short-card, .short-card-featured { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .short-card img, .short-card-featured img { aspect-ratio: 4 / 3; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card-wide { grid-column: auto; }
    .project-image { min-height: 245px; }
    .contact-section { align-items: flex-start; flex-direction: column; }
    .contact-section .button { width: 100%; }
    .site-footer { grid-template-columns: 1fr; }
    .site-footer .footer-links { justify-content: flex-start; }
    .copyright { grid-column: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .support-submit-row { align-items: stretch; flex-direction: column; }
    .support-submit-row .button { width: 100%; }
    .site-header { gap: 8px; }
    .theme-toggle { inline-size: 38px; block-size: 38px; min-height: 38px; }
    .dashboard-header { width: min(100% - 28px, 1380px); }
    .dashboard-main { width: min(100% - 28px, 1380px); padding-block: 36px 64px; }
    .dashboard-header .brand-image img { block-size: 42px; }
    .dashboard-intro { align-items: flex-start; flex-direction: column; }
    .dashboard-ranges { width: 100%; }
    .dashboard-ranges button { flex: 1; }
    .dashboard-ticket-heading, .ticket-card-header { align-items: flex-start; flex-direction: column; }
    .ticket-card { padding: 18px; }
    .dashboard-metrics { grid-template-columns: 1fr; }
    .dashboard-metrics article, .dashboard-metrics article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
    .dashboard-metrics article:last-child { border-bottom: 0; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .traffic-chart { overflow-x: auto; grid-template-columns: repeat(15, minmax(24px, 1fr)); }
    .device-breakdown { grid-template-columns: 1fr; }
  }

  @media (prefers-contrast: more) {
    :root { --muted: #253860; --line: #6f8cc4; }
    .button, .project-card { border-width: 2px; }
  }
}
