:root {
  --bg: #03050a;
  --panel: #0b1019;
  --panel2: #111927;
  --ink: #f7f9ff;
  --muted: #a5afc2;
  --red: #ff2635;
  --red2: #c50f1c;
  --blue: #00a8ff;
  --cyan: #6de1ff;
  --line: rgba(255,255,255,.12);
  --max: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background:
    radial-gradient(circle at 5% 25%, rgba(255,38,53,.1), transparent 25rem),
    radial-gradient(circle at 95% 55%, rgba(0,168,255,.11), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.eyebrow {
  color: var(--red); font: 700 12px/1 Inter, sans-serif;
  letter-spacing: .24em; text-transform: uppercase;
}
.display {
  font-family: "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase; font-weight: 900; line-height: .88;
  letter-spacing: -.025em;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 20px; background: var(--red);
  color: #fff; font-weight: 800; text-transform: uppercase;
  font-size: 13px; letter-spacing: .08em; transform: skewX(-7deg);
  box-shadow: 6px 6px 0 rgba(0,168,255,.35);
  transition: .2s ease;
}
.btn span { transform: skewX(7deg); }
.btn:hover { background: #fff; color: #07090d; transform: skewX(-7deg) translateY(-2px); }
.btn.dark { background: #101723; border: 1px solid var(--line); box-shadow: none; }

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 80;
  background: rgba(3,5,10,.84); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); box-shadow: 0 0 24px rgba(255,38,53,.32); }
.brand strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 22px; text-transform: uppercase; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav > a:not(.btn) { color: #dce2ed; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nav > a:not(.btn):hover { color: var(--red); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #0c111a; color: #fff; width: 44px; height: 44px; font-size: 22px; }

.hero {
  min-height: 100svh; display: grid; align-items: center; position: relative;
  padding: 130px 0 75px; isolation: isolate; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, #03050a 0%, rgba(3,5,10,.94) 37%, rgba(3,5,10,.42) 70%, rgba(3,5,10,.2));
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 170px; z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}
.hero-lines { position: absolute; inset: 0; z-index: -1; opacity: .18; background: repeating-linear-gradient(120deg, transparent 0 70px, rgba(255,255,255,.08) 71px 72px); }
.hero-content { width: min(750px, 100%); }
.hero h1 { font-size: clamp(64px, 11vw, 138px); margin: 16px 0 19px; text-shadow: 0 8px 30px rgba(0,0,0,.65); }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 2px #fff; display: block; }
.hero h1 .red { color: var(--red); }
.hero-copy { max-width: 630px; color: #d4dbe7; font-size: clamp(16px, 2vw, 20px); }
.hero-actions { display: flex; gap: 17px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 46px; border: 1px solid var(--line); width: fit-content; background: var(--line); }
.hero-stat { min-width: 145px; padding: 14px 18px; background: rgba(3,5,10,.78); }
.hero-stat b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 25px; color: #fff; }
.hero-stat span { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .12em; }
.scroll-mark { position: absolute; right: 24px; bottom: 75px; writing-mode: vertical-rl; color: var(--muted); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

.banner-zone { padding: 20px 0 0; }
.promo {
  position: relative; min-height: 300px; overflow: hidden; display: grid; align-items: end;
  border: 1px solid var(--line); background: var(--panel); isolation: isolate;
}
.promo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,5,10,.95), rgba(3,5,10,.35)); }
.promo-copy { padding: 30px; max-width: 650px; }
.promo h2 { font-size: clamp(38px, 6vw, 70px); margin: 7px 0; }
.promo p { color: #d1d8e4; margin-bottom: 17px; }

.section { padding: 100px 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr .9fr; gap: 50px; align-items: end; margin-bottom: 45px; }
.section-head h2 { font-size: clamp(52px, 7vw, 88px); margin-top: 9px; }
.section-head p { color: var(--muted); font-size: 17px; }
.slash { color: var(--red); }

.principles { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.principle { background: var(--panel); padding: 28px 20px; min-height: 220px; position: relative; overflow: hidden; }
.principle::after { content: attr(data-n); position: absolute; right: -5px; bottom: -35px; color: rgba(255,255,255,.035); font: 900 120px/1 "Barlow Condensed"; }
.principle b { color: var(--red); font-family: "Barlow Condensed"; font-size: 21px; }
.principle h3 { margin: 30px 0 9px; text-transform: uppercase; font: 800 24px/1 "Barlow Condensed"; }
.principle p { color: var(--muted); font-size: 14px; }

.master { background: linear-gradient(135deg, #0b1019, #06080d); overflow: hidden; }
.master-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 590px; }
.master-image { position: relative; min-height: 440px; }
.master-image img { width: 100%; height: 100%; object-fit: cover; }
.master-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #090d14); }
.master-copy { align-self: center; padding: 60px 4vw; }
.master-copy h2 { font-size: clamp(57px, 8vw, 100px); margin: 12px 0 20px; }
.master-copy p { color: var(--muted); max-width: 540px; font-size: 17px; }
.dan-bars { display: flex; gap: 6px; margin-top: 27px; }
.dan-bars i { display: block; width: 38px; height: 8px; background: var(--red); box-shadow: 0 0 12px rgba(255,38,53,.5); }

.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.course { background: var(--panel); border: 1px solid var(--line); overflow: hidden; position: relative; }
.course-media { height: 330px; overflow: hidden; position: relative; }
.course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course:hover .course-media img { transform: scale(1.04); }
.course-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, var(--panel)); }
.course-tag { position: absolute; top: 18px; left: 18px; background: var(--course-accent, var(--red)); color: #fff; padding: 7px 12px; font: 800 12px/1 Inter; text-transform: uppercase; letter-spacing: .1em; }
.course-body { padding: 0 25px 28px; position: relative; margin-top: -30px; z-index: 2; }
.course h3 { font-size: clamp(42px, 5vw, 64px); }
.course-desc { color: var(--muted); margin: 9px 0 20px; }
.course-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.price { font: 900 34px/1 "Barlow Condensed"; }
.price small { display: block; color: var(--muted); font: 500 10px/1 Inter; text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
.schedule { list-style: none; text-align: right; color: #e4e9f2; font-size: 13px; }
.schedule b { color: var(--cyan); display: block; }

.shop { background: #080c14; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.product-media { height: 260px; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-size: clamp(32px, 4vw, 44px); }
.product-body p { color: var(--muted); font-size: 14px; }
.product-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; flex-wrap: wrap; }
.product-bottom .btn { padding: 10px 14px; font-size: 12px; }
.shop-contact { margin: -10px 0 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.events { background: #070b12; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.event { min-height: 390px; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--panel); display: flex; align-items: flex-end; }
.event > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .45s ease; }
.event:hover > img { transform: scale(1.05); }
.event::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(2,4,8,.95)); }
.event-copy { position: relative; z-index: 2; padding: 23px; }
.event time { color: var(--red); text-transform: uppercase; font-size: 11px; letter-spacing: .12em; font-weight: 700; }
.event h3 { font: 800 34px/.95 "Barlow Condensed"; text-transform: uppercase; margin: 8px 0; }
.event p { color: var(--muted); font-size: 14px; }
.empty-events { border: 1px dashed var(--line); padding: 45px; text-align: center; color: var(--muted); }

.gallery-focus { padding-top: 0; }
.gallery-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 25px; }
.gallery-head h2 { font-size: clamp(45px, 6vw, 72px); }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.media { background: var(--panel); border: 1px solid var(--line); overflow: hidden; cursor: pointer; }
.media img, .media video { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media figcaption { padding: 10px 12px; color: var(--muted); font-size: 12px; }

.location { display: grid; grid-template-columns: 1.15fr .85fr; border: 1px solid var(--line); }
.location-visual { min-height: 480px; }
.location-visual img { width: 100%; height: 100%; object-fit: cover; }
.location-copy { padding: clamp(30px, 5vw, 65px); background: var(--panel); align-content: center; }
.location-copy h2 { font-size: clamp(50px, 6vw, 80px); margin: 10px 0 18px; }
.location-copy p { color: var(--muted); margin-bottom: 25px; }

.final { text-align: center; padding: 110px 0; overflow: hidden; position: relative; }
.final::before { content: "태권도"; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); font: 900 clamp(130px,30vw,430px)/1 sans-serif; color: rgba(255,255,255,.02); white-space: nowrap; }
.final h2 { font-size: clamp(64px, 10vw, 125px); position: relative; }
.final p { max-width: 630px; margin: 18px auto 27px; color: var(--muted); position: relative; }
.final .btn { position: relative; }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 12px; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.admin-link { opacity: .5; }

.lightbox { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); padding: 30px; place-items: center; }
.lightbox.open { display: grid; }
.lightbox img, .lightbox video { max-width: min(1200px, 95vw); max-height: 88vh; }
.lightbox-close { position: absolute; right: 20px; top: 15px; color: #fff; background: var(--red); border: 0; width: 44px; height: 44px; font-size: 25px; cursor: pointer; }

@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    background: rgba(3,5,10,.98); border-bottom: 1px solid var(--line);
    padding: 18px 16px 24px; flex-direction: column; align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav .btn { width: 100%; }
  .menu-toggle { display: block; }
  .hero::before { background: linear-gradient(90deg, rgba(3,5,10,.97), rgba(3,5,10,.7)); }
  .hero { min-height: 870px; }
  .hero h1 { font-size: clamp(62px, 19vw, 100px); }
  .hero-stat { min-width: calc(50% - 1px); }
  .section-head, .master-grid, .location { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .master-image::after { background: linear-gradient(transparent 60%, #090d14); }
  .master-copy { padding: 35px 16px 65px; }
  .course-grid, .event-grid, .product-grid { grid-template-columns: 1fr; }
  .event { min-height: 430px; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .scroll-mark { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 22px, var(--max)); }
  .topbar-in { height: 70px; }
  .brand img { width: 45px; height: 45px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 8px; }
  .nav { top: 70px; }
  .hero { padding-top: 105px; min-height: 800px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { width: 100%; }
  .hero-stat { min-width: calc(50% - 1px); padding: 12px; }
  .section { padding: 75px 0; }
  .principles { grid-template-columns: 1fr; }
  .course-media { height: 260px; }
  .course-bottom { align-items: flex-start; flex-direction: column; }
  .schedule { text-align: left; }
  .media-grid { grid-template-columns: 1fr; }
  .promo-copy { padding: 22px; }
}
