:root {
  color-scheme: light;
  --paper: #f7f1ed;
  --paper-soft: #fbf6ef;
  --ink: #242424;
  --muted: #6f6a65;
  --line: #bdb6af;
  --line-soft: rgba(36, 36, 36, 0.12);
  --yellow: #ffe862;
  --blue: #35a9e8;
  --orange: #eb8c55;
  --white: #f7f1ed;
  --font-display: "Gasoek One", "Arial Rounded MT Bold", Pretendard, sans-serif;
  --font-body: "IBM Plex Sans KR", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pointer-x: 0px;
  --pointer-y: 0px;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  max-width: 100%;
}

.scene {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.scene::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(rgba(36, 36, 36, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.34;
  transform: translate3d(calc(var(--pointer-x) * -0.18), calc(var(--pointer-y) * -0.18), 0);
}

.canvas-lines {
  position: absolute;
  inset: 0 clamp(18px, 5vw, 72px);
  pointer-events: none;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  opacity: 0.92;
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.canvas-lines::before,
.canvas-lines::after {
  position: absolute;
  top: 51%;
  width: 13%;
  height: 1px;
  content: "";
  background: var(--line);
}

.canvas-lines::before {
  left: 0;
}

.canvas-lines::after {
  right: 0;
}

.hero-scene {
  display: grid;
  place-items: center;
  background: var(--paper);
}

.hero-center {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  text-align: center;
  transform: translate3d(calc(var(--pointer-x) * 0.35), calc(var(--pointer-y) * 0.24), 0);
  transition: transform 180ms ease-out;
}

.mini-label {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 500;
  animation: rise-in 760ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(70px, 10.4vw, 148px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.012em;
  transform: scaleX(0.94);
  transform-origin: center;
  animation: title-in 900ms 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(980px, 100%);
  margin: 30px auto 0;
  color: var(--ink);
  font-size: clamp(16px, 1.8vw, 24px);
  animation: rise-in 780ms 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-meta::before,
.hero-meta::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--line);
  transform: scaleX(0);
  animation: line-grow 780ms 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-meta span {
  padding: 0 28px;
}

.scribble {
  position: absolute;
  z-index: 1;
  width: clamp(180px, 22vw, 310px);
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw-scribble 1100ms 250ms cubic-bezier(0.22, 1, 0.36, 1) forwards, float-scribble 5.5s 1.4s ease-in-out infinite;
}

.top-scribble {
  top: 13%;
  left: 50%;
  transform: translateX(-50%);
}

.side-badge {
  position: fixed;
  top: 42%;
  right: 0;
  z-index: 20;
  display: grid;
  width: 54px;
  height: 174px;
  place-items: center;
  color: white;
  background: #050505;
  animation: badge-in 680ms 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.side-badge strong {
  font-size: 24px;
  line-height: 1;
}

.side-badge span {
  font-size: 13px;
  font-weight: 800;
  transform: rotate(-90deg);
}

.dark-scene {
  display: grid;
  place-items: center;
  background: var(--ink);
}

.dark-scene::before {
  background-image: radial-gradient(rgba(247, 241, 237, 0.16) 1px, transparent 1px);
}

.dark-scene .canvas-lines {
  border-color: rgba(247, 241, 237, 0.18);
}

.dark-scene .canvas-lines::before,
.dark-scene .canvas-lines::after {
  background: rgba(247, 241, 237, 0.38);
}

.statement {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 40px));
  margin: 0;
  color: rgba(247, 241, 237, 0.38);
  font-family: var(--font-display);
  font-size: clamp(46px, 5.5vw, 78px);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: 0.012em;
  text-align: center;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 780ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.statement strong,
.statement span {
  display: block;
}

.statement strong {
  color: var(--white);
  font-weight: 400;
}

.tilted-icon {
  position: absolute;
  bottom: 18%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: var(--white);
  border: 2px solid rgba(255, 232, 98, 0.78);
  border-radius: 18px;
  font-size: 38px;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-50%) translateY(24px) rotate(-22deg) scale(0.88);
  transition: opacity 700ms 220ms ease, transform 900ms 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-scene {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  padding: clamp(34px, 7vw, 96px);
  background: var(--yellow);
}

.dot-field {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(36, 36, 36, 0.2) 1px, transparent 1px);
  background-size: 18px 18px;
}

.contact-brand,
.contact-mail,
.contact-scene footer {
  position: relative;
  z-index: 1;
}

.contact-brand {
  margin: 0;
  color: rgba(36, 36, 36, 0.28);
  font-family: var(--font-display);
  font-size: clamp(52px, 10vw, 144px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.012em;
  opacity: 0;
  transform: translateY(36px) scaleX(0.94);
  transform-origin: left center;
  transition: opacity 800ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-mail {
  margin-top: auto;
  width: max-content;
  color: var(--ink);
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms 160ms ease, transform 800ms 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-scene footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 120px;
  color: var(--ink);
  font-size: 16px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms 260ms ease, transform 800ms 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scene.is-visible .statement,
.reveal-scene.is-visible .contact-brand,
.reveal-scene.is-visible .contact-mail,
.reveal-scene.is-visible footer {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-scene.is-visible .contact-brand {
  transform: translateY(0) scaleX(0.94);
}

.reveal-scene.is-visible .tilted-icon {
  opacity: 1;
  transform: translateX(-50%) translateY(0) rotate(-14deg) scale(1);
}

@keyframes draw-scribble {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes float-scribble {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }

  50% {
    transform: translateX(-50%) translateY(-8px) rotate(-1deg);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(24px) scaleX(0.91);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleX(0.94);
  }
}

@keyframes line-grow {
  to {
    transform: scaleX(1);
  }
}

@keyframes badge-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 820px) {
  .canvas-lines {
    inset: 0 16px;
  }

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

  h1 {
    font-size: clamp(56px, 14.8vw, 64px);
    transform-origin: left center;
  }

  .hero-meta {
    justify-content: flex-start;
    margin-top: 26px;
    font-size: 18px;
  }

  .hero-meta span {
    padding: 0 18px;
  }

  .side-badge {
    width: 52px;
    height: 150px;
  }

  .statement {
    font-size: clamp(36px, 9.7vw, 44px);
    text-align: left;
  }

  .contact-scene footer {
    flex-direction: column;
  }
}

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

  .statement,
  .tilted-icon,
  .contact-brand,
  .contact-mail,
  .contact-scene footer {
    opacity: 1;
    transform: none;
  }
}
