:root {
  --bg-deep: #0c0a0b;
  --bg-stage: #161214;
  --accent: #e11d48;
  --accent-soft: #fb7185;
  --text: #faf7f5;
  --muted: #a89b9e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(225, 29, 72, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(251, 113, 133, 0.12), transparent 50%),
    var(--bg-deep);
  min-height: 100vh;
  line-height: 1.6;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: rgba(12, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0;
}

.nav-menu li {
  display: flex;
  align-items: center;
}

.nav-menu li:not(:last-child)::after {
  content: "|";
  margin: 0 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--accent-soft);
}

header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5.5rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, var(--bg-deep) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.015) 40px,
      rgba(255, 255, 255, 0.015) 41px
    );
  pointer-events: none;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(6.5rem, 24vw, 14rem);
  letter-spacing: 0.06em;
  line-height: 0.85;
  color: var(--text);
  position: relative;
  animation: rise 0.9s ease-out both;
}

.brand span {
  color: var(--accent);
}

.tagline {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--muted);
  max-width: 28rem;
  position: relative;
  animation: rise 0.9s ease-out 0.15s both;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  animation: pulse 2.2s ease-in-out infinite;
}

main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

section {
  margin-bottom: 4rem;
  animation: rise 0.8s ease-out 0.3s both;
}

h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  color: var(--accent-soft);
}

.intro {
  max-width: 40rem;
}

.intro p {
  font-size: 1.05rem;
  color: var(--muted);
}

.card-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: linear-gradient(160deg, var(--bg-stage) 0%, #1e1619 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 72, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.card-image {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.card:hover .card-image {
  max-height: 11rem;
  opacity: 1;
}

.card-image img {
  display: block;
  width: 100%;
  height: 11rem;
  object-fit: cover;
}

.card-body {
  padding: 1.75rem 1.5rem;
}

.card h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.1rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.video-caption {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-intro {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.news-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.news-card {
  background: linear-gradient(160deg, var(--bg-stage) 0%, #1e1619 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
  border-color: rgba(225, 29, 72, 0.4);
  transform: translateY(-3px);
}

.news-card time {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent-soft);
}

.news-card h3 {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.news-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.news-card a {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card a:hover {
  color: #fecdd3;
}

.contact-text {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.contact-form {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-soft);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(168, 155, 158, 0.7);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: #e11d48;
}

.field-error {
  min-height: 1.1rem;
  font-size: 0.8rem;
  color: #fb7185;
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status.is-success {
  color: #86efac;
}

.form-status.is-error {
  color: #fb7185;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.submit-btn,
.thanks-btn {
  padding: 0.85rem 1.5rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.submit-btn {
  background: var(--accent);
}

.submit-btn:hover {
  background: #be123c;
  transform: translateY(-2px);
}

.thanks-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.thanks-btn:hover {
  border-color: var(--accent-soft);
  background: rgba(225, 29, 72, 0.15);
  transform: translateY(-2px);
}

.submit-btn:active,
.thanks-btn:active {
  transform: translateY(0);
}

body.thanks-open {
  overflow: hidden;
}

.thanks-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 6, 7, 0.78);
  backdrop-filter: blur(8px);
}

.thanks-overlay.is-open {
  display: flex;
}

.thanks-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  overflow: visible;
}

.burst-heart {
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  animation-name: heart-burst;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  text-shadow: 0 0 12px rgba(225, 29, 72, 0.45);
  will-change: transform, opacity;
}

@keyframes heart-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.15) rotate(32deg);
  }
}

.thanks-message {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 28rem;
  width: 100%;
  padding: 2.5rem 2rem;
  background: linear-gradient(165deg, rgba(30, 18, 22, 0.96), rgba(18, 12, 14, 0.98));
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 60px rgba(0, 0, 0, 0.45);
  animation: message-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes message-pop {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(1rem);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.thanks-hearts {
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  color: var(--accent-soft);
  margin-bottom: 0.75rem;
  animation: heart-pulse 1.2s ease-in-out infinite;
}

.thanks-message h2 {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.thanks-close {
  padding: 0.7rem 1.4rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.thanks-close:hover {
  border-color: var(--accent-soft);
  background: rgba(225, 29, 72, 0.15);
}

@keyframes heart-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  main {
    max-width: 44rem;
    padding: 3rem 1.25rem 5rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 5.5rem;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .nav-menu {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-menu li:not(:last-child)::after {
    margin: 0 0.45rem;
  }

  .nav-menu a {
    font-size: 0.82rem;
  }

  header {
    min-height: 85vh;
    padding: 6rem 1rem 2rem;
  }

  .brand {
    font-size: clamp(4.5rem, 22vw, 8rem);
  }

  main {
    padding: 2.5rem 1rem 4rem;
  }

  section {
    margin-bottom: 3rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  /* Touch devices: show images without hover */
  .card-image {
    max-height: 11rem;
    opacity: 1;
  }

  .card-body {
    padding: 1.25rem 1.15rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .submit-btn,
  .thanks-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  header {
    min-height: 80vh;
  }

  .scroll-hint {
    bottom: 1.25rem;
  }
}
