:root {
  --bg: #f5f3ef;
  --bg-soft: rgba(255, 255, 255, 0.62);
  --line: rgba(43, 41, 37, 0.2);
  --line-strong: rgba(43, 41, 37, 0.55);
  --text: #171614;
  --muted: rgba(23, 22, 20, 0.62);
  --accent: #785f53;
  --shadow: 0 18px 60px rgba(74, 65, 54, 0.14);
  --menu-font: "Courier New", "American Typewriter", "Noto Sans Mono CJK KR", monospace;
  --kr-font: "Courier New", "American Typewriter", "Noto Sans Mono CJK KR", monospace;
  --hero-image: radial-gradient(circle at 50% 40%, rgba(240, 243, 247, 0.9), rgba(238, 235, 230, 0.25) 40%, rgba(238, 235, 230, 0.92) 100%);
  --cursor-default: url("./cursor1.svg") 6 10, auto;
  --cursor-pointer: url("./%E1%84%8C%E1%85%A1%E1%84%89%E1%85%A1%E1%86%AB%205.svg") 6 10, pointer;
  --cursor-locked: url("./%E1%84%8C%E1%85%A1%E1%84%89%E1%85%A1%E1%86%AB%204.svg") 6 10, not-allowed;
  --brand-rail: clamp(120px, 13vw, 170px);
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  cursor: none;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 239, 233, 0.95)),
    var(--hero-image);
  color: var(--text);
  font-family: var(--kr-font);
  cursor: none;
}

* {
  cursor: none !important;
}

a,
button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
summary,
.draw-card,
.ghost-button {
  -webkit-tap-highlight-color: transparent;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translate(-999px, -999px);
  transition: opacity 120ms ease;
}

.custom-cursor.is-visible {
  opacity: 1;
}

.custom-cursor-image {
  display: block;
  width: 38px;
  height: auto;
}

.site-shell {
  min-height: 100vh;
  padding-left: var(--brand-rail);
}

.floating-nav {
  position: fixed;
  top: 0;
  left: var(--brand-rail);
  right: 0;
  z-index: 20;
  display: block;
  padding: 0.55rem 0.85rem 0 0.85rem;
  background: transparent;
  backdrop-filter: none;
}

.brand {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 21;
  display: block;
  width: var(--brand-rail);
  height: 100vh;
  padding: 0.65rem 0.45rem 0.65rem 0.55rem;
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  font-family: var(--menu-font);
  font-size: clamp(0.896rem, 1.152vw, 1.12rem);
  font-weight: 400;
  line-height: 0.7;
  word-break: break-all;
  overflow-wrap: anywhere;
  overflow: hidden;
  background: transparent;
}

.brand-highlight {
  color: #f5f3ef;
  background: linear-gradient(180deg, transparent 22%, #000f99 22%, #000f99 94%, transparent 94%);
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0 1.5rem;
}

.nav-link {
  border-top: 1px solid var(--line-strong);
  padding: 0.18rem 0 0.38rem;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--menu-font);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  border-color: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 34% 35%, rgba(247, 248, 251, 0.95), transparent 23%),
    radial-gradient(circle at 61% 48%, rgba(217, 228, 242, 0.3), transparent 20%),
    radial-gradient(circle at 78% 34%, rgba(236, 233, 229, 0.9), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(243, 239, 235, 0.92)),
    var(--hero-image);
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-art::before {
  background:
    radial-gradient(circle at 35% 20%, rgba(97, 104, 119, 0.15) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 71% 69%, rgba(126, 81, 61, 0.12) 0 1.2px, transparent 1.2px 100%);
  background-size: 12px 12px, 18px 18px;
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.hero-art::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 22%, transparent 76%, rgba(255, 255, 255, 0.18));
}

.metal,
.sketch {
  position: absolute;
  filter: drop-shadow(0 24px 30px rgba(55, 48, 41, 0.14));
}

.metal {
  border: 1px solid rgba(140, 134, 127, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(210, 208, 203, 0.9) 45%, rgba(248, 246, 243, 0.98) 75%, rgba(175, 170, 162, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(177, 174, 168, 0.9));
  box-shadow:
    inset -10px -12px 24px rgba(103, 100, 95, 0.18),
    inset 12px 12px 22px rgba(255, 255, 255, 0.6);
}

.metal-left {
  left: 6%;
  bottom: 10%;
  width: min(27vw, 360px);
  aspect-ratio: 1 / 1.18;
  border-radius: 18% 14% 16% 18%;
  transform: rotate(-7deg);
}

.metal-center {
  left: 38%;
  top: 18%;
  width: min(14vw, 220px);
  aspect-ratio: 1.5 / 0.7;
  border-radius: 28% 12% 22% 16%;
  transform: rotate(-6deg);
}

.metal-right {
  right: 6%;
  bottom: 7%;
  width: min(24vw, 340px);
  aspect-ratio: 1.45 / 0.95;
  border-radius: 24% 22% 18% 16%;
  transform: rotate(2deg);
}

.sketch {
  border: 1px solid transparent;
}

.sketch::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(110, 108, 106, 0.34);
  border-color: rgba(104, 101, 97, 0.25) transparent transparent transparent;
  border-radius: 44% 56% 68% 32%;
  transform: rotate(8deg);
}

.sketch-a {
  left: -3%;
  top: 10%;
  width: 32vw;
  height: 18vw;
}

.sketch-b {
  left: 42%;
  top: 8%;
  width: 23vw;
  height: 46vw;
}

.sketch-c {
  right: 3%;
  top: 6%;
  width: 26vw;
  height: 22vw;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 7.5rem 1.2rem 2rem;
  margin-left: auto;
  margin-right: 4vw;
  text-align: right;
}

main {
  position: relative;
}

.eyebrow,
.section-index {
  margin: 0 0 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--menu-font);
  font-size: 0.72rem;
  font-weight: 400;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--menu-font);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-note {
  max-width: 32rem;
  margin: 1rem 0 0 auto;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.content-section {
  position: relative;
  padding: 6rem 1.25rem;
}

.placeholder-section {
  min-height: 54vh;
  display: grid;
  place-items: center;
}

.hats-section {
  min-height: 70vh;
  display: grid;
  place-items: center;
}

.hats-figure {
  position: relative;
  width: min(760px, calc(100vw - var(--brand-rail) - 3rem));
  margin: 0;
}

.hats-image {
  display: block;
  width: 100%;
  height: auto;
}

.hats-caption {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  color: var(--text);
  font-family: var(--menu-font);
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
  pointer-events: none;
}

.hats-caption.is-visible {
  opacity: 1;
}

.section-card,
.draw-panel {
  width: min(1080px, 100%);
  border: 1px solid rgba(23, 22, 20, 0.12);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-card {
  padding: min(8vw, 5rem);
}

.section-card h2,
.draw-heading h2 {
  margin: 0;
  font-family: var(--menu-font);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.section-card p:last-child,
.draw-heading p:last-child,
.draw-status,
.draw-disclaimer {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.draw-section {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.draw-heading {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.draw-panel {
  margin: 0 auto;
  padding: min(5vw, 3rem);
}

.draw-status {
  min-height: 3.5rem;
  margin-bottom: 1.5rem;
}

.draw-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.draw-card {
  display: grid;
  place-items: center;
  gap: 0.2rem;
  min-height: 110px;
  border: 1px solid rgba(23, 22, 20, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.draw-card:hover,
.draw-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
}

.draw-card:disabled {
  transform: none;
  opacity: 0.88;
}

.draw-grid.is-locked .draw-card,
.draw-grid.is-locked .draw-card:disabled,
.draw-grid.is-locked .draw-card:hover,
.draw-grid.is-locked .draw-card:focus-visible {
}

.draw-card.is-selected {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.draw-card.is-losing {
  color: var(--muted);
}

.draw-card.is-winning {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 233, 224, 0.98));
}

.draw-card-number,
.draw-card-label {
  font-family: var(--menu-font);
  text-transform: uppercase;
}

.draw-card-number {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.draw-card-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.ghost-button {
  margin-top: 1rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--menu-font);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.draw-disclaimer {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .site-shell {
    padding-left: 100px;
  }

  .floating-nav {
    left: 100px;
    right: 0;
    padding: 0.5rem 0.75rem 0 0.75rem;
  }

  .nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand {
    width: 100px;
    height: 100vh;
    padding: 0.55rem 0.4rem 0.7rem 0.45rem;
    font-size: 0.832rem;
    line-height: 0.68;
  }

  .hero-copy {
    padding-top: 10rem;
    margin-right: 1.25rem;
  }

  .draw-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding-left: 72px;
  }

  .floating-nav {
    left: 72px;
    right: 0;
    top: 0;
    padding-inline: 0.75rem;
  }

  .brand {
    width: 72px;
    height: 100vh;
    padding: 0.5rem 0.35rem 0.7rem 0.38rem;
    font-size: 0.736rem;
    line-height: 0.64;
  }

  .nav-grid {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .nav-link {
    font-size: 0.64rem;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-copy {
    margin: 0;
    padding: 13.5rem 1rem 2rem;
    text-align: left;
  }

  .hero-note {
    margin-left: 0;
  }

  .metal-left {
    left: -5%;
    bottom: 14%;
    width: 44vw;
  }

  .metal-center {
    left: 46%;
    top: 22%;
    width: 28vw;
  }

  .metal-right {
    right: -7%;
    bottom: 12%;
    width: 42vw;
  }

  .sketch-a,
  .sketch-b,
  .sketch-c {
    opacity: 0.7;
  }

  .content-section {
    padding: 4rem 1rem;
  }

  .draw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draw-card {
    min-height: 92px;
  }
}
