:root {
  --page-width: 585px;
  --red: #ef3023;
  --kraft: #d5b08a;
  --ink: #0c0c0c;
  --hero-font: "Black Ops One", "Anton", sans-serif;
  --body-font: "Noto Sans KR", sans-serif;
  --title-font: "Anton", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
}

body {
  color: var(--ink);
  font-family: var(--body-font);
}

a,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

a[x-apple-data-detectors],
a[x-apple-data-detectors]:visited,
a[x-apple-data-detectors]:hover,
a[x-apple-data-detectors]:active {
  color: inherit !important;
  text-decoration: none !important;
  font: inherit !important;
  line-height: inherit !important;
}

img {
  max-width: 100%;
}

button {
  font: inherit;
}

.mobile-frame {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}

.desktop-frame {
  display: none;
}

.panel {
  position: relative;
  width: 100%;
}

.panel-bg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-inner,
.intro-copy,
.box-wrap,
.story-head,
.outro-kicker,
.outro-title,
.receipt-stage,
.contact {
  position: absolute;
  left: 0;
  width: 100%;
}

.hero-inner {
  inset: 0;
}

.eyebrow {
  position: absolute;
  top: 2.55%;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--title-font);
  font-size: clamp(0.95rem, 2.8vw, 1.4rem);
  letter-spacing: 0.02em;
  color: var(--red);
  white-space: nowrap;
  line-height: 1;
}

.hero-title {
  position: absolute;
  top: 8.9%;
  left: 50%;
  width: 78%;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--hero-font);
  font-size: clamp(3rem, 13vw, 7.55rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--red);
  white-space: nowrap;
}

.hero-title span {
  display: block;
  transition: transform 260ms ease;
}

.hero-title:hover span:nth-child(1) {
  transform: translateX(-0.03em);
}

.hero-title:hover span:nth-child(2) {
  transform: translateX(0.03em);
}

.hero-title:hover span:nth-child(3) {
  transform: translateY(0.02em);
}

.seal {
  position: absolute;
  left: 50%;
  bottom: 5.2%;
  width: 96px;
  height: 96px;
  border: 0;
  padding: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: pointer;
}

.seal-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: spin 16s linear infinite;
}

.seal:hover .seal-image {
  animation-duration: 9s;
}

.seal:focus-visible {
  outline: 2px solid rgba(239, 48, 35, 0.55);
  outline-offset: 6px;
  border-radius: 999px;
}

.seal:focus-visible .seal-image {
  animation-duration: 9s;
}

.intro-copy {
  top: 5.3%;
  padding: 0 5.3%;
  font-size: clamp(1.55rem, 6.15vw, 3rem);
  line-height: 1.2;
  font-weight: 900;
  color: var(--red);
  word-break: keep-all;
}

.intro-copy p {
  margin: 0;
  white-space: nowrap;
}

.box-wrap {
  left: 10.8%;
  top: 74.4%;
  width: 78.5%;
  aspect-ratio: 1.34 / 0.55;
}

.box-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 221, 178, 0.42), rgba(255, 221, 178, 0) 62%);
  filter: blur(10px);
}

.box-glow {
  position: absolute;
  inset: 10% 14% 16%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(210, 145, 74, 0.28), rgba(210, 145, 74, 0) 72%);
  animation: pulse 3.6s ease-in-out infinite;
}

.story-head {
  top: 6.2%;
  padding: 0 5.1%;
  z-index: 2;
}

.story-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(3rem, 11vw, 5.7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #090909;
  white-space: nowrap;
}

.story-copy {
  margin: 8.2% 0 0;
  font-size: clamp(1.1rem, 3.45vw, 1.8rem);
  line-height: 1.5;
  font-weight: 800;
  color: #090909;
  word-break: keep-all;
}

.outro-kicker {
  top: 1.5%;
  margin: 0;
  text-align: center;
  font-size: clamp(0.95rem, 3vw, 1.45rem);
  line-height: 1.3;
  font-weight: 900;
  color: var(--red);
  white-space: nowrap;
}

.outro-title {
  top: 5.3%;
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(3.8rem, 12.9vw, 7.1rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--red);
  white-space: nowrap;
}

.receipt-stage {
  left: 11%;
  top: 24%;
  width: 78%;
  aspect-ratio: 1 / 1.06;
}

.receipt-shadow {
  position: absolute;
  inset: 18% 10% 8%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0) 72%);
  transform: translateY(14px);
  filter: blur(18px);
}

.contact {
  top: 74.2%;
  padding: 0 5.1%;
  font-family: var(--title-font);
  font-size: clamp(2.4rem, 9vw, 5.4rem);
  line-height: 0.9;
  color: var(--red);
  word-break: keep-all;
}

.contact p {
  margin: 0;
  white-space: nowrap;
  position: relative;
}

.contact p span {
  display: inline-block;
  background: #fff;
  position: relative;
  z-index: 1;
  padding-right: 0.04em;
}

.reveal {
  opacity: 0;
  transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
}

.visible,
.reveal.visible {
  opacity: 1;
}

.fade-up {
  transform: translateY(24px);
}

.visible.fade-up,
.fade-up.visible {
  transform: translateY(0);
}

.float-up {
  transform: translateY(40px) scale(0.96);
}

.visible.float-up,
.float-up.visible {
  transform: translateY(0) scale(1);
}

.clip-up {
  transform: translateY(32px);
  clip-path: inset(100% 0 0 0);
}

.clip-up.visible {
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}

.lines p {
  transform: translateX(-10px);
  opacity: 0;
  transition: transform 550ms ease, opacity 550ms ease;
}

.lines.visible p {
  transform: translateX(0);
  opacity: 1;
}

.lines.visible p:nth-child(1) { transition-delay: 40ms; }
.lines.visible p:nth-child(2) { transition-delay: 80ms; }
.lines.visible p:nth-child(3) { transition-delay: 120ms; }
.lines.visible p:nth-child(4) { transition-delay: 160ms; }
.lines.visible p:nth-child(5) { transition-delay: 200ms; }
.lines.visible p:nth-child(6) { transition-delay: 240ms; }
.lines.visible p:nth-child(7) { transition-delay: 280ms; }
.lines.visible p:nth-child(8) { transition-delay: 320ms; }
.lines.visible p:nth-child(9) { transition-delay: 360ms; }
.lines.visible p:nth-child(10) { transition-delay: 400ms; }

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

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: translateY(6px) scale(0.96); }
  50% { opacity: 0.72; transform: translateY(0) scale(1.03); }
}

@media (min-width: 768px) {
  html,
  body {
    min-height: 100vh;
  }

  body {
    display: flex;
    justify-content: center;
    background:
      linear-gradient(90deg, #000 calc(50% - 292.5px), transparent calc(50% - 292.5px), transparent calc(50% + 292.5px), #000 calc(50% + 292.5px)),
      #000;
  }

  .mobile-frame {
    display: none;
  }

  .desktop-frame {
    display: block;
    width: min(100%, 1536px);
    margin: 0 auto;
    background: #fff;
  }

  .desktop-panel {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .desktop-bg {
    display: block;
    width: 100%;
    height: auto;
  }

  .desktop-hero-copy,
  .desktop-seal,
  .desktop-intro-copy,
  .desktop-story-head,
  .desktop-outro-copy,
  .desktop-contact {
    position: absolute;
    z-index: 2;
  }

  .desktop-hero-copy {
    top: 9.5%;
    left: 8.3%;
    color: var(--red);
  }

  .desktop-eyebrow {
    margin: 0 0 28px;
    font-family: var(--title-font);
    font-size: 28px;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .desktop-hero-title {
    margin: 0;
    font-family: var(--hero-font);
    font-size: clamp(110px, 8vw, 146px);
    line-height: 0.88;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .desktop-hero-title span {
    display: block;
  }

  .desktop-seal {
    left: 50%;
    bottom: 7%;
    width: 120px;
    height: 120px;
    transform: translateX(-50%);
  }

  .desktop-intro-copy {
    top: 11%;
    left: 50%;
    width: 100%;
    padding: 0 8%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--red);
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.25;
    font-weight: 900;
    word-break: keep-all;
  }

  .desktop-intro-copy p {
    margin: 0;
    white-space: nowrap;
  }

  .desktop-story {
    background: #fff;
    padding-top: 60px;
  }

  .desktop-story-head {
    top: 6.8%;
    left: 5.5%;
    width: 89%;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 48px;
  }

  .desktop-story-title {
    margin: 0;
    font-family: var(--title-font);
    font-size: clamp(66px, 5vw, 92px);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: #0b0b0b;
    white-space: nowrap;
  }

  .desktop-story-copy {
    max-width: 760px;
    margin: 0;
    font-size: clamp(19px, 1.4vw, 26px);
    line-height: 1.45;
    font-weight: 800;
    color: #0b0b0b;
    text-align: right;
    word-break: keep-all;
  }

  .desktop-story-bg {
    margin-top: 140px;
  }

  .desktop-outro {
    background: #fff;
  }

  .desktop-outro-copy {
    top: 9.5%;
    left: 8.4%;
    color: var(--red);
  }

  .desktop-outro-kicker {
    margin: 0 0 22px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    white-space: nowrap;
  }

  .desktop-outro-title {
    margin: 0;
    font-family: var(--title-font);
    font-size: clamp(94px, 7vw, 132px);
    line-height: 0.88;
    letter-spacing: -0.03em;
    white-space: nowrap;
  }

  .desktop-contact {
    left: 8.5%;
    bottom: 10.5%;
    color: var(--red);
    font-family: var(--title-font);
    font-size: clamp(38px, 3vw, 58px);
    line-height: 0.9;
    word-break: keep-all;
  }

  .desktop-contact p {
    margin: 0;
    white-space: nowrap;
  }

  .desktop-contact p span {
    display: inline-block;
    background: #fff;
    padding-right: 0.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .lines p {
    opacity: 1 !important;
    transform: none !important;
    clip-path: inset(0 0 0 0) !important;
    filter: none !important;
  }
}
