/* =========================================================
   tripleS · COSMO channel — replica stylesheet
   Measurements taken from the live page at 1440×900:
   header 64px / logo 48px @ x=24 / nav gap 32px / 16px·500·-0.03em
   hero 1440×792 (aspect 20:11) / video 1380 wide, 200px top pad
   footer 143px / copyright 12px·700·#68686B
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --black: #000;
  --white: #fff;
  --ink: #0b0b0c;
  --muted: #68686b;
  --line: #e6e6e8;
  --header-h: 64px;
  --page-x: 24px;
  --font: "Pretendard Variable", "Pretendard JP", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", sans-serif;
  --tracking: -0.03em;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .5s;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--tracking);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -60px; left: 12px; z-index: 999;
  padding: 10px 16px;
  background: #fff; color: #000;
  border-radius: 8px;
  font-size: 14px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--page-x);
  background: var(--black);
  color: #fff;
  transition: height .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.brand {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: 0 0 auto;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand:hover { transform: rotate(-6deg) scale(1.04); }

.nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  opacity: .92;
  padding: 4px 0;
  transition: opacity .25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { opacity: 1; }

/* burger */
.burger {
  display: none;
  position: relative;
  z-index: 2;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 10px;
  width: 24px; height: 1.5px;
  background: #fff;
  transition: transform .35s var(--ease), opacity .2s var(--ease), width .35s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; width: 16px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- drawer ---------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 88;
  width: min(420px, 88vw);
  padding: calc(var(--header-h) + 32px) 28px 32px;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
.drawer[hidden] { display: none; }
.drawer.is-open { transform: translateX(0); }

.drawer-nav { display: flex; flex-direction: column; gap: 8px; }
.drawer-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.drawer.is-open .drawer-link { opacity: 1; transform: none; }
.drawer.is-open .drawer-link:nth-child(1) { transition-delay: .06s; }
.drawer.is-open .drawer-link:nth-child(2) { transition-delay: .12s; }
.drawer.is-open .drawer-link:nth-child(3) { transition-delay: .18s; }
.drawer .idx {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #7d7d84;
}
.drawer-foot { font-size: 11px; font-weight: 700; color: #6b6b71; letter-spacing: 0; }

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 87;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.drawer-scrim[hidden] { display: none; }
.drawer-scrim.is-open { opacity: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  aspect-ratio: 20 / 11;
  overflow: hidden;
  background: #111;
}
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.04);
  opacity: 0;
  transition: opacity 1.1s var(--ease), transform 1.6s var(--ease);
}
.hero-media img.is-loaded { opacity: 1; transform: scale(1); }

.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 26%),
    linear-gradient(0deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, 0) 22%);
}

/* ---------- video ---------- */
.video-section {
  background: var(--white);
  padding: 200px 30px 30px;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.video-frame iframe,
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  padding: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.video-poster {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: opacity .5s var(--ease), transform 1.2s var(--ease);
}
.video-facade:hover .video-poster { opacity: 1; transform: scale(1.02); }

.play-btn {
  position: absolute;
  left: 50%; top: 50%;
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
  margin: -37px 0 0 -37px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), background .3s var(--ease);
}
.play-btn svg { margin-left: 2px; }
.video-facade:hover .play-btn { transform: scale(1.08); background: rgba(0, 0, 0, .7); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 40px 0 44px;
}
.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.socials img {
  width: 24px; height: 24px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.socials a:hover { background: #f2f2f4; transform: translateY(-2px); }
.socials a:hover img { filter: none; opacity: 1; }

.copyright {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #000;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: #000; }

/* ---------- reveal utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .video-section { padding: 120px 30px 30px; }
}

@media (max-width: 860px) {
  :root { --header-h: 56px; --page-x: 16px; }

  .nav { display: none; }
  .burger { display: block; }

  .brand { width: 40px; height: 40px; }
  .brand img { width: 40px; height: 40px; }

  .hero {
    aspect-ratio: 4 / 5;
    max-height: calc(100dvh - var(--header-h));
  }
  .hero-media img { object-position: 50% 38%; }

  .video-section { padding: 48px 0 0; }
  .video-frame { max-width: none; }

  .site-footer { padding: 28px 0 32px; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 0 16px;
  }
  .socials a { width: 36px; height: 36px; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 480px) {
  .hero { aspect-ratio: 3 / 4; }
  .play-btn { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-media img { transform: none; }
}
