/* ===== BALLY JUNIOR — design tokens ===== */
:root {
  --orange: #FF5F14;
  --red: #C90404;
  --pink: #F7BBCB;
  --ink: #1A1919;
  --ink-soft: #232121;
  --ink-card: #201e1e;
  --line: rgba(255, 255, 255, 0.10);
  --white: #F5F2EF;
  --muted: #9c9794;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: "Archivo", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--orange); }
.dot-orange { color: var(--red); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(26, 25, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 18px;
}
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}
.brand-dots { display: inline-flex; gap: 3px; }
.brand-dots i {
  width: 13px; height: 13px; border-radius: 50%; display: block;
}
.brand-dots i:first-child { background: var(--orange); }
.brand-dots i:last-child { background: var(--red); }

.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--orange);
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }
/* Works: visible label but not a link (submenu planned) */
.nav a.nav-static { cursor: default; }

.nav a.nav-cta {
  color: var(--ink);
  background: var(--orange);
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  font-size: 13px;
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover { background: var(--red); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.lang:hover { border-color: var(--orange); color: var(--orange); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  overflow: hidden;
}
/* Slideshow behind hero content */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 6s ease-out;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
/* Dark overlay so headline/text stays readable over photos */
.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(26, 25, 25, 0.88) 0%,
    rgba(26, 25, 25, 0.55) 34%,
    rgba(26, 25, 25, 0.14) 64%,
    rgba(26, 25, 25, 0) 100%
  );
}
/* Slide indicator dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dots button {
  width: 28px; height: 4px;
  border: none; border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.hero-dots button.active { background: var(--orange); width: 44px; }

.hero-glow {
  position: absolute;
  top: 20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(255,95,20,0.28), rgba(201,4,4,0.10) 45%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.hero-marquee {
  position: absolute;
  bottom: 7%; left: 0; right: 0;
  overflow: hidden;
  opacity: 0.07;
  z-index: 0;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  font-family: "Anton", sans-serif;
  font-size: clamp(60px, 12vw, 180px);
  animation: marquee 22s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 22px;
}
.hero-title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(52px, 11vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero-title .line { display: block; }
.hero-sub {
  margin-top: 28px;
  max-width: 520px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
}
.hero-cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--red); color: var(--white); }
.btn-ghost { border: 1px solid var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-lg { padding: 18px 40px; font-size: 17px; }

/* ===== Sections ===== */
.section { padding: 96px 0; position: relative; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.section-link { color: var(--orange); font-weight: 700; font-size: 15px; }
.section-link:hover { color: var(--red); }
.section-desc { color: var(--muted); max-width: 420px; }

/* ===== BALLY NEWS (pink news carousel — SM-benchmarked) ===== */
.bnews {
  background: var(--orange);
  color: var(--ink);
  overflow: hidden;
}
.bnews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.bnews-title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.bnews-arrows { display: flex; gap: 8px; flex-shrink: 0; }
.bnews-arrow {
  width: 52px; height: 52px;
  border: none; border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 30px; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}
.bnews-arrow:hover { background: rgba(26, 25, 25, 0.10); }
.bnews-arrow:active { transform: scale(0.9); }

.bnews-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.bnews-track::-webkit-scrollbar { display: none; }

.bnews-card {
  flex: 0 0 clamp(278px, 38vw, 380px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 296px;
  border-top: 2px solid var(--ink);
  padding-top: 22px;
  color: var(--ink);
}
.bnews-card-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.72em;
}
.bnews-card-body {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.62;
  color: rgba(26, 25, 25, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bnews-card-foot {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bnews-card-go {
  width: 46px; height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.bnews-card:hover .bnews-card-go { background: var(--ink); color: var(--orange); }
.bnews-card-date { font-size: 13px; font-weight: 700; }

/* ===== BALLY NEWS (video + content) ===== */
.news-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
.news-video {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16 / 9;
}
.news-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-content { padding: 8px 0; }
.news-index {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}
.news-title {
  font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  font-weight: 600; /* SemiBold */
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 14px;
  transition: opacity 0.3s var(--ease);
}
.news-body {
  font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  font-weight: 400; /* Regular */
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  transition: opacity 0.3s var(--ease);
}
.news-fading { opacity: 0; }
.news-dots { display: flex; gap: 10px; margin-top: 22px; }
.news-dots button {
  width: 30px; height: 4px;
  border: none; border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer; padding: 0;
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.news-dots button.active { background: var(--orange); width: 46px; }

/* ===== Update cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
  opacity: 0;
  transform: translateY(24px);
}
.card.in { opacity: 1; transform: translateY(0); }
.card:hover { transform: translateY(-6px); border-color: var(--orange); background: var(--ink-soft); }
.card-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255,95,20,0.4);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.card-date { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.card-title { font-size: 20px; font-weight: 800; line-height: 1.25; margin-bottom: auto; }
.card-arrow { margin-top: 20px; color: var(--orange); font-weight: 800; }

/* ===== Works grid ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.work {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  border: 1px solid var(--line);
  isolation: isolate;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.work.in { opacity: 1; transform: translateY(0); }
/* Optional photo layer (bottom-most). Falls back to gradient if absent/fails to load. */
.work-img {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: var(--grad, linear-gradient(135deg, var(--orange), var(--red)));
  transition: transform 0.6s var(--ease);
}
/* When a photo is present, soften the gradient into a brand-color tint over it. */
.work.has-img::before { opacity: 0.62; mix-blend-mode: multiply; }
.work::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(26,25,25,0.92), rgba(26,25,25,0.15) 60%, transparent);
}
.work:hover::before { transform: scale(1.08); }
.work:hover .work-img { transform: scale(1.08); }
.work-num {
  position: absolute; top: 24px; right: 28px;
  font-family: "Anton", sans-serif;
  font-size: 42px;
  color: rgba(255,255,255,0.85);
  z-index: 1;
}
.work-info { position: relative; z-index: 1; }
.work-cat {
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
}
.work-name { font-size: clamp(22px, 3vw, 32px); font-weight: 900; line-height: 1.1; }
.work-go {
  margin-top: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.work:hover .work-go, .work:focus-visible .work-go { opacity: 1; transform: translateY(0); }
@media (hover: none) { .work-go { opacity: 1; transform: none; } }

/* ===== Stats ===== */
.stats { background: var(--ink-soft); border-block: 1px solid var(--line); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: "Anton", sans-serif;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  color: var(--orange);
}
.stat-label { font-size: 14px; color: var(--muted); margin-top: 10px; display: block; }

/* ===== About ===== */
.about-inner { max-width: 820px; }
.about-lead { font-size: clamp(22px, 3.2vw, 36px); font-weight: 800; line-height: 1.3; margin: 24px 0 20px; }
.about-body { font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); }

/* ===== Contact ===== */
.contact { text-align: center; padding: 120px 0; }
.contact-title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(56px, 13vw, 180px);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  padding-bottom: 32px; border-bottom: 1px solid var(--line);
}
.socials { display: flex; gap: 24px; }
.socials a { font-weight: 700; font-size: 14px; color: var(--muted); transition: color 0.25s; }
.socials a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 28px; font-size: 13px; color: var(--muted);
}
.footer-copy { font-size: 11px; color: var(--muted); }
.footer-contact {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-start;
}
.footer-loc { display: flex; flex-direction: column; gap: 4px; max-width: 360px; }
.footer-loc-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange);
}
.footer-contact address { font-style: normal; font-size: 13px; line-height: 1.5; color: var(--muted); }
.footer-tel { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 14px; }
.footer-tel a { font-weight: 800; color: var(--white); transition: color 0.25s; }
.footer-tel a:hover { color: var(--orange); }
.footer-tel span { color: var(--muted); }
.footer-hours { width: 100%; font-size: 13px; color: var(--muted); }
.admin-link { color: var(--orange); font-weight: 700; }
.admin-link:hover { color: var(--red); }

/* While the window is actively resizing, kill all transitions so the
   mobile-nav panel (and other transitioned elements) don't flash/slide
   as breakpoints cross. Re-enabled shortly after resizing stops. */
.is-resizing *,
.is-resizing *::before,
.is-resizing *::after {
  transition: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    /* clear the full panel height PLUS the 72px header offset so the
       bottom item (발리 유소년 CTA) never peeks at the top edge */
    transform: translateY(calc(-100% - 96px));
    /* NO transition while closed: crossing the breakpoint (or resizing)
       must never animate the panel into view. The slide only plays when
       opening the hamburger (see .nav.open below). */
    transition: none;
  }
  .nav.open {
    transform: translateY(0);
    transition: transform 0.35s var(--ease);
  }
  .nav a { padding: 16px 24px; font-size: 16px; }
  .nav a::after { display: none; }
  .menu-toggle { display: flex; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .card-grid { grid-template-columns: 1fr; }
  .news-feature { grid-template-columns: 1fr; gap: 24px; }
  .works-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .section { padding: 72px 0; }
}
