/* ---------- Fonts: Alfabet family ---------- */
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-Hairline.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-HairlineItalic.otf") format("opentype");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-Thin.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-ThinItalic.otf") format("opentype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-SemiBoldItalic.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-ExtraBoldItalic.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alfabet";
  src: url("../fonts/Alfabet-BlackItalic.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Base ---------- */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --red: #900;
  --header-h: 96px;
  --gutter: clamp(24px, 4vw, 64px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: "Alfabet", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: url("../assets/mars-cursor-32.png") 13 13, auto;
}

a, button {
  cursor: url("../assets/mars-cursor-32.png") 13 13, pointer;
}

/* ---------- Header ---------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: clamp(16px, 2.5vw, 28px) var(--gutter);
  height: var(--header-h);
}

.logo {
  justify-self: start;
}

.logo img {
  height: clamp(34px, 4vw, 48px);
  width: auto;
  display: block;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- Music control (random 29s track, muted until clicked) ---------- */
.music-control {
  justify-self: center;
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font-family: "DM Mono", "Courier New", monospace;
  letter-spacing: 0.01em;
  transition: opacity .2s ease;
}

.music-control:hover {
  opacity: 0.6;
}

.music-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.music-icon-play {
  color: var(--red);
  animation: music-invite 1.8s ease-in-out infinite;
}

.music-control.is-playing .music-icon-play {
  display: none;
}

.music-glyph {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  width: 15px;
  height: 13px;
  flex-shrink: 0;
}

.music-control.is-playing .music-glyph {
  display: flex;
}

.music-glyph span {
  display: block;
  width: 2.5px;
  height: 30%;
  background: currentColor;
  border-radius: 1px;
  transform-origin: bottom;
  animation: music-bar 0.9s ease-in-out infinite;
}

.music-glyph span:nth-child(1) { animation-delay: -0.6s; }
.music-glyph span:nth-child(2) { animation-delay: -0.3s; }
.music-glyph span:nth-child(3) { animation-delay: -0.9s; }
.music-glyph span:nth-child(4) { animation-delay: -0.15s; }

@keyframes music-invite {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: 0.65; }
}

@keyframes music-bar {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}

.music-now-playing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.25;
}

.music-label {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.02em;
  opacity: 0.55;
}

.music-track {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .header-actions {
    gap: 8px;
  }

  .music-control {
    margin-left: 10px;
    gap: 7px;
    height: 36px;
    padding: 0;
  }

  .music-icon {
    width: 12px;
    height: 12px;
  }

  .music-now-playing {
    max-width: 20vw;
  }

  .music-label {
    font-size: 8px;
  }

  .music-track {
    display: block;
    max-width: 100%;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.contact-btn {
  font-family: "Alfabet", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--black);
  text-decoration: none;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  padding: 9px 20px;
  position: relative;
  transition: background-color .3s cubic-bezier(0.16, 1, 0.3, 1),
              color .3s cubic-bezier(0.16, 1, 0.3, 1),
              transform .3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .2s ease-out;
  white-space: nowrap;
}

.contact-btn:hover {
  background: var(--black);
  color: var(--white);
  transform: scale(1.04);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--black);
  border-radius: 12px;
  color: var(--black);
  text-decoration: none;
  position: relative;
  transition: background-color .3s cubic-bezier(0.16, 1, 0.3, 1),
              color .3s cubic-bezier(0.16, 1, 0.3, 1),
              transform .3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .2s ease-out;
  flex-shrink: 0;
}

.social-btn:hover {
  background: var(--black);
  color: var(--white);
  transform: scale(1.06);
}

/* ---------- Proximity glow (Contact Us / Instagram) ----------
   Plain box-shadow, set directly via JS as the cursor moves.
   No CSS mask / background-attachment — both are unreliable in
   Safari, which is why this replaced the earlier mask-based glow. */

/* ---------- Hero ---------- */
html, body {
  height: 100%;
}

main {
  display: block;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

.hero-title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-heading {
  width: max-content;
  max-width: 100%;
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.hero-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(48px, 10.4vw, 210px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-slot-wrap {
  display: inline-block;
  vertical-align: baseline;
  width: 0.84em;
  height: 0.56em;
  margin-right: 0.08em;
  position: relative;
}

/* Expanded past the visible box so hover/click still register just
   around it, not only on the tiny photo itself. */
.hero-slot {
  position: absolute;
  inset: -10px;
  cursor: none;
}

.hero-slot-visual {
  position: absolute;
  inset: 10px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slot:hover .hero-slot-visual {
  transform: scale(1.08);
}

/* Cursor-following artist name tag, shown while hovering the slideshow. */
.slide-name-tag {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  pointer-events: none;
  transform: translate(-50%, -145%);
  padding: 6px 14px;
  background: var(--white);
  color: var(--red);
  border: 1.5px solid var(--red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-family: "DM Mono", "Courier New", monospace;
  font-weight: 500;
  font-size: 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.slide-name-tag.is-visible {
  opacity: 1;
}

.hero-slot-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Proximity glow: lights up as the cursor nears the word. */
.hero-word {
  position: relative;
  display: inline-block;
}

.hero-word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    220px 220px at calc(var(--word-x, -9999) * 1px) calc(var(--word-y, -9999) * 1px),
    hsl(355 80% 55% / 0.32),
    transparent 60%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-slot-visual img.is-visible {
  opacity: 1;
}

.hero-tagline {
  margin: 18px 0 0;
  text-align: right;
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 34px);
  letter-spacing: -0.01em;
}

/* ---------- Bottom row: info widget + copy ---------- */
.hero-bottom-row {
  display: contents;
}

.info-widget {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(16px, 1.6vh, 32px);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.info-icon svg {
  width: 100%;
  height: 100%;
}

.info-sep {
  opacity: 0.4;
}

.hero-copy {
  position: absolute;
  left: 38%;
  bottom: clamp(16px, 1.6vh, 32px);
  max-width: 460px;
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
  color: var(--black);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    padding: clamp(20px, 4vh, 40px) 20px clamp(28px, 5vh, 56px);
    min-height: calc(100vh - var(--header-h));
  }

  .hero-copy {
    position: static;
    order: 1;
    max-width: 100%;
    font-weight: 700;
    font-size: clamp(17px, 4.6vw, 21px);
    line-height: 1.25;
    margin: 0;
  }

  .hero-title-wrap {
    order: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-title {
    display: block;
    font-size: 9.6vw;
  }

  .hero-slot-wrap {
    display: block;
    width: min(29vw, 127px);
    height: auto;
    aspect-ratio: 3 / 2;
    margin: 0 0 18px;
  }

  .hero-tagline {
    text-align: left;
  }

  .info-widget {
    position: static;
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .info-widget .info-sep:has(+ .info-time) {
    display: none;
  }

  .info-widget .info-time {
    flex-basis: 100%;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 18px 20px;
  }

  .contact-btn {
    font-size: 13px;
    padding: 8px 16px;
  }

  .hero {
    padding: 24px 20px 0;
  }
}

/* ---------- Legal corner (bottom-right, mirrors the weather widget) ---------- */
.legal-corner {
  position: fixed;
  right: var(--gutter);
  bottom: clamp(16px, 1.6vh, 32px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.45);
}

.legal-corner-links {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.legal-corner-links a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-corner-links a:hover {
  color: var(--black);
  border-color: currentColor;
}

.legal-corner-copy {
  margin: 0;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .hero-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    order: 3;
    gap: 12px;
    /* On the shared row, not .legal-corner: both columns need the same
       bottom clearance from the home-indicator gesture bar, or align-items:
       flex-end throws them out of sync (legal-corner used to carry this
       alone, which visually shifted it above the weather widget). */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Standalone pages (privacy/cookie/legal notice): full-width, right-aligned block. */
  .legal-corner {
    position: static;
    width: 100%;
    margin: 32px 0 40px;
    padding: 0 20px env(safe-area-inset-bottom, 0px);
  }

  /* Homepage: a flex item sharing a row with the weather widget instead. */
  .hero-bottom-row .legal-corner {
    width: auto;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
  }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  right: var(--gutter);
  bottom: clamp(60px, 9vh, 96px);
  z-index: 100;
  width: min(280px, calc(100vw - 40px));
  background: var(--white);
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.is-eclipsed {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cookie-banner-text {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.85);
}

.cookie-banner-text a {
  color: inherit;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  font-family: "Alfabet", sans-serif;
  font-weight: 600;
  font-size: 12px;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  flex: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cookie-btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(10, 10, 10, 0.25);
}

.cookie-btn-ghost:hover {
  border-color: var(--black);
  background: rgba(10, 10, 10, 0.05);
}

.cookie-btn-solid {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.cookie-btn-solid:hover {
  transform: scale(1.03);
}

@media (max-width: 520px) {
  .cookie-banner {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 72px;
  }
}

/* ---------- Legal pages (privacy / cookie / note legali) ---------- */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 72px) var(--gutter) 80px;
}

.legal-main h1 {
  font-weight: 900;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 8px;
}

.legal-updated {
  font-size: 13px;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.55);
  margin: 0 0 40px;
}

.legal-main h2 {
  font-weight: 800;
  font-size: 20px;
  margin: 40px 0 12px;
}

.legal-main p,
.legal-main li {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--black);
}

.legal-main ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.legal-main a {
  color: var(--black);
}

.legal-main strong {
  font-weight: 800;
}

.legal-placeholder {
  background: hsl(50 100% 88%);
  padding: 1px 6px;
  border-radius: 4px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1.5px solid var(--black);
}

/* ---------- "Our Stand" modal (click anywhere on the page) ---------- */
.stand-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stand-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.stand-modal-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 6px;
  padding: 52px 44px 44px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.16);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.stand-modal.is-open .stand-modal-panel {
  transform: translateY(0);
}

.stand-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-family: "DM Mono", "Courier New", monospace;
  font-size: 22px;
  line-height: 1;
  color: var(--black);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.stand-modal-close:hover {
  transform: rotate(90deg);
  opacity: 0.6;
}

.stand-modal-title {
  font-family: "DM Mono", "Courier New", monospace;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 22px;
  opacity: 0.5;
}

.stand-modal-body p {
  font-family: "DM Mono", "Courier New", monospace;
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0 0 20px;
  color: var(--black);
}

.stand-modal-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .stand-modal-panel {
    padding: 44px 22px 32px;
  }

  .stand-modal-body p {
    font-size: 13.5px;
  }
}

/* ---------- Contact modal (Contact Us button) ---------- */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
}

.contact-modal-panel {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  width: min(90vw, 440px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 44px 26px 28px;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  pointer-events: none;
  cursor: auto;
}

.contact-modal-panel * {
  cursor: auto;
}

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

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: "DM Mono", "Courier New", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.contact-modal-close:hover {
  opacity: 1;
}

.contact-modal-message {
  margin: 0;
  font-family: "Alfabet", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.4;
}

.contact-modal-direct {
  margin: 0;
  font-family: "DM Mono", "Courier New", monospace;
  font-size: 12px;
  opacity: 0.6;
}

.contact-modal-direct a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 520px) {
  .contact-modal-panel {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    padding: 40px 20px 24px;
  }
}

/* ---------- 404 page ---------- */
@keyframes not-found-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes not-found-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes not-found-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-4deg); }
}

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
  gap: 8px;
}

.not-found-logo {
  height: 64px;
  width: auto;
  margin-bottom: 24px;
  opacity: 0;
  animation: not-found-fade-in 0.6s ease-out both,
             not-found-float 4.5s ease-in-out 0.6s infinite;
}

.not-found-code {
  font-weight: 900;
  font-size: clamp(64px, 12vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0;
  opacity: 0;
  animation: not-found-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.not-found-code-glow {
  position: relative;
  display: inline-block;
}

.not-found-code-glow::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    220px 220px at calc(var(--word-x, -9999) * 1px) calc(var(--word-y, -9999) * 1px),
    hsl(355 80% 55% / 0.4),
    transparent 60%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.not-found-text {
  font-weight: 600;
  font-size: 16px;
  color: rgba(10, 10, 10, 0.6);
  margin: 4px 0 28px;
  opacity: 0;
  animation: not-found-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.not-found-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1.5px solid var(--black);
  opacity: 0;
  animation: not-found-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
