/* 벨투벨 스튜디오 홈페이지
   색과 글꼴은 brand/README.md 의 정본을 따른다.
   먹 #161616, 크림 #F4ECE4, 울림 주황 #F46736, 회색 #9A9495. 글꼴 Pretendard. */

@font-face {
  font-family: "Pretendard";
  src: url("assets/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --ink: #161616;
  --ink-2: #222120;
  --cream: #F4ECE4;
  --paper: #FAF6F1;
  --orange: #F46736;
  --orange-ink: #D9501F;
  --grey: #9A9495;
  --grey-2: #6E6869;
  --line: rgba(22, 22, 22, 0.14);
  --line-dark: rgba(244, 236, 228, 0.14);

  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --top-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top-h); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss06";
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* 상단 */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  padding-top: env(safe-area-inset-top);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.top.is-dark { background: color-mix(in srgb, var(--ink) 84%, transparent); color: var(--cream); }
.top__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--top-h); display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 38px; height: auto; overflow: visible; }
.brand__name { font-weight: 860; font-size: 15px; letter-spacing: 0.01em; line-height: 1; display: flex; flex-direction: column; gap: 4px; }
.brand__name em { font-style: normal; font-weight: 600; font-size: 9.5px; letter-spacing: 0.58em; color: var(--grey); }

.mark-b1 { fill: var(--ink); transition: fill 0.4s var(--ease); }
.mark-b2, .mark-ring { fill: var(--orange); }
.top.is-dark .mark-b1 { fill: var(--cream); }
.top.is-ringing .mark-ring { animation: ring-flash 0.9s var(--ease) 3; transform-origin: 780px 140px; }

.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; display: flex; align-items: baseline; gap: 7px;
  transition: background 0.2s;
}
.nav a:hover { background: var(--line); }
.top.is-dark .nav a:hover { background: var(--line-dark); }
.nav__r { font-family: var(--mono); font-size: 10.5px; color: var(--grey); font-weight: 500; }
.nav a.is-active .nav__r { color: var(--orange); }

.clock {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  display: flex; gap: 10px; align-items: center;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-variant-numeric: tabular-nums; min-width: 104px; justify-content: center;
}
.top.is-dark .clock { border-color: var(--line-dark); }
.clock__round { color: var(--orange); }
.top__progress { height: 2px; background: transparent; }
.top__progress span { display: block; height: 100%; width: 0; background: var(--orange); transform-origin: left; }

/* 첫 화면 */
.hero { min-height: min(calc(100svh - var(--top-h)), 980px); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(40px, 8vh, 96px) 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-2); margin: 0 0 clamp(20px, 3vw, 36px); display: flex; align-items: center; gap: 14px; }
.eyebrow__sep { width: 32px; height: 1px; background: currentColor; }
.hero__title { margin: 0; font-weight: 900; font-size: clamp(56px, 10.4vw, 168px); line-height: 0.98; letter-spacing: -0.055em; }
.hero__title .line { display: block; }
.hero__title .dot { color: var(--orange); }
.hero__lede { max-width: 30em; margin: clamp(24px, 3vw, 40px) 0 0; font-size: clamp(17px, 1.4vw, 20px); color: var(--grey-2); line-height: 1.65; }

.hero__mark { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bell { border: 0; background: none; padding: 0; cursor: pointer; width: min(100%, 460px); -webkit-tap-highlight-color: transparent; }
.bell svg { width: 100%; height: auto; overflow: visible; }
.bell__swing { transform-origin: 690px 600px; transform-box: view-box; }
.bell__ring { transform-origin: 700px 260px; transform-box: view-box; }
.bell:hover .bell__swing { transform: rotate(-2deg); transition: transform 0.4s var(--ease); }
.bell.is-ringing .bell__swing { animation: swing 0.9s var(--ease); }
.bell.is-ringing .bell__ring { animation: ring-out 0.9s var(--ease); }
.bell__hint { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--grey-2); display: flex; gap: 10px; align-items: center; letter-spacing: 0.04em; }
.bell__count { color: var(--orange); font-variant-numeric: tabular-nums; }

@keyframes swing {
  0% { transform: rotate(0); }
  18% { transform: rotate(-9deg); }
  40% { transform: rotate(6deg); }
  62% { transform: rotate(-3deg); }
  82% { transform: rotate(1.2deg); }
  100% { transform: rotate(0); }
}
@keyframes ring-out {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  30% { transform: translate(18px, -18px) scale(1.12); opacity: 1; }
  60% { transform: translate(6px, -6px) scale(1.02); opacity: 0.45; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes ring-flash { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }

.hero__meta { margin-top: clamp(48px, 8vh, 96px); }
.hero__meta dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero__meta dl > div { padding: 20px 0 28px; }
.hero__meta dl > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--grey-2); margin-bottom: 6px; }
dd { margin: 0; font-weight: 700; font-size: 17px; }
.hero__meta a { text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; }

/* 구역 머리 */
.sec-head { display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 2px solid currentColor; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head__r { font-family: var(--mono); font-size: 13px; color: var(--orange); }
.sec-head__title { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.03em; }
.sec-head__count { font-family: var(--mono); font-size: 12px; color: var(--grey); }

/* R1 게임 */
.games { background: var(--ink); color: var(--cream); padding: clamp(72px, 10vw, 140px) 0 clamp(72px, 9vw, 120px); }
.game__key { margin: 0; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 8; background: #0b0b0b; }
.game__key img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.game__key.is-in img { transform: scale(1); }
.game__over { position: absolute; left: clamp(20px, 4vw, 56px); top: clamp(20px, 4vw, 52px); display: flex; flex-direction: column; gap: 10px; }
.game__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: rgba(244, 236, 228, 0.7); }
.game__logo { font-weight: 900; font-size: clamp(44px, 8.6vw, 132px); line-height: 0.9; letter-spacing: -0.05em; color: #fff; }

.game__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 5vw, 72px); }
.game__pitch h3 { margin: 0 0 20px; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.15; letter-spacing: -0.04em; font-weight: 850; }
.game__pitch p { margin: 0 0 14px; color: rgba(244, 236, 228, 0.72); max-width: 36em; }
.facts { margin: 0; align-self: start; }
.facts > div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.facts > div:last-child { border-bottom: 1px solid var(--line-dark); }
.facts dt { color: var(--grey); margin: 3px 0 0; }
.facts dd { font-weight: 600; font-size: 16px; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(244, 103, 54, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244, 103, 54, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(244, 103, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 103, 54, 0); } }

.shots { margin-top: clamp(56px, 7vw, 96px); position: relative; }
.shots__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 300px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
  margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter);
}
.shots__rail::-webkit-scrollbar { display: none; }
.shot { margin: 0; scroll-snap-align: start; }
.shot img { border-radius: 16px; aspect-ratio: 9 / 16; object-fit: cover; width: 100%; background: #0b0b0b; transition: transform 0.5s var(--ease); }
.shot:hover img { transform: translateY(-6px); }
.shot figcaption { margin-top: 14px; font-size: 14.5px; font-weight: 600; color: rgba(244, 236, 228, 0.8); display: flex; gap: 10px; }
.shot figcaption b { font-family: var(--mono); font-weight: 500; color: var(--orange); font-size: 12px; padding-top: 2px; }
.shots__ctrl { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.round-btn:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.round-btn svg, .mail svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:disabled { opacity: 0.3; cursor: default; background: transparent; color: inherit; border-color: var(--line-dark); }

/* R2 스튜디오 */
.studio { padding: clamp(80px, 11vw, 160px) 0; background: var(--paper); }
.studio__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); }
.entry { position: sticky; top: calc(var(--top-h) + 32px); align-self: start; }
.entry__word { margin: 0; font-weight: 900; font-size: clamp(48px, 6.4vw, 96px); line-height: 0.95; letter-spacing: -0.05em; }
.entry__pron { margin: 14px 0 22px; font-family: var(--mono); font-size: 13px; color: var(--grey-2); }
.entry__def { margin: 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; line-height: 1.5; letter-spacing: -0.02em; max-width: 20em; }
.entry__ex { margin: 16px 0 0; color: var(--grey-2); font-size: 15px; }
.entry__mascot { width: clamp(150px, 15vw, 210px); margin-top: clamp(32px, 4vw, 56px); }

.tenets { list-style: none; margin: 0; padding: 0; }
.tenets li { display: grid; grid-template-columns: clamp(64px, 8vw, 112px) 1fr; gap: 16px; padding: clamp(28px, 3.4vw, 44px) 0; border-top: 1px solid var(--line); }
.tenets li:last-child { border-bottom: 1px solid var(--line); }
.tenets__n { font-family: var(--mono); font-size: 13px; color: var(--orange); padding-top: 10px; }
.tenets h3 { margin: 0 0 10px; font-size: clamp(26px, 2.8vw, 40px); font-weight: 850; letter-spacing: -0.04em; line-height: 1.15; }
.tenets p { margin: 0; color: var(--grey-2); max-width: 32em; }

/* R3 소식 */
.news { padding: clamp(80px, 10vw, 140px) 0; }
.news__list { list-style: none; margin: 0; padding: 0; }
.news__list li { display: grid; grid-template-columns: 140px 132px 1fr; gap: 16px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); transition: padding 0.3s var(--ease); }
.news__list li:last-child { border-bottom: 1px solid var(--line); }
.news__list li:hover { padding-left: 12px; }
.news__list time { font-family: var(--mono); font-size: 13px; color: var(--grey-2); font-variant-numeric: tabular-nums; }
.news__list p { margin: 0; font-size: 17.5px; }
.tag { justify-self: start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ink); line-height: 1.3; }
.tag--game { background: var(--ink); color: var(--cream); }

/* R4 문의 */
.contact { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); padding: clamp(80px, 10vw, 140px) 0 clamp(120px, 14vw, 200px); }
.contact__arc { position: absolute; width: clamp(420px, 50vw, 820px); right: clamp(-360px, -20vw, -160px); bottom: clamp(-460px, -28vw, -230px); fill: none; stroke: var(--orange); stroke-width: 64; opacity: 0.95; pointer-events: none; }
.contact__inner { position: relative; }
.contact__title { margin: 0; font-weight: 900; font-size: clamp(44px, 7.6vw, 124px); line-height: 1.02; letter-spacing: -0.055em; }
.contact__row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: flex-start; margin-top: clamp(40px, 5vw, 72px); max-width: 860px; }
.contact__row p { margin: 0; color: rgba(244, 236, 228, 0.7); max-width: 26em; }
.mail { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; font-size: 18px; padding: 18px 26px; border-radius: 999px; background: var(--cream); color: var(--ink); text-decoration: none; transition: background 0.2s, color 0.2s; }
a.mail:hover { background: var(--orange); }
.mail--pending { background: transparent; color: var(--cream); border: 1px dashed rgba(244, 236, 228, 0.4); }

/* 바닥 */
.foot { position: relative; background: var(--cream); padding: 0 0 calc(32px + env(safe-area-inset-bottom)); }
.foot__peek { position: absolute; width: clamp(130px, 14vw, 190px); left: clamp(16px, 8vw, 140px); top: 0; transform: translateY(-86%); }
.foot__word { margin: 0; padding-top: clamp(48px, 6vw, 88px); font-weight: 900; font-size: clamp(54px, 15.4vw, 236px); line-height: 0.82; letter-spacing: -0.06em; white-space: nowrap; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(24px, 3vw, 40px); padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--grey-2); }
.foot__row p { margin: 0; }

/* 나타나기 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 반응형 */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { order: -1; align-items: flex-start; }
  .bell { width: min(58vw, 280px); }
  .game__body, .studio__grid { grid-template-columns: 1fr; }
  .entry { position: static; }
  .game__key { aspect-ratio: 4 / 3; }
  .game__key img { object-position: 62% 80%; }
}
@media (max-width: 640px) {
  :root { --top-h: 60px; }
  body { font-size: 16px; }
  .brand__name { font-size: 13px; }
  .hero { padding-top: 32px; }
  .hero__meta dl { grid-template-columns: 1fr; }
  .hero__meta dl > div { padding: 16px 0; }
  .hero__meta dl > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .sec-head { grid-template-columns: 44px 1fr auto; }
  .game__key { border-radius: 14px; aspect-ratio: 1 / 1; }
  .facts > div { grid-template-columns: 72px 1fr; }
  .news__list li { grid-template-columns: 1fr auto; gap: 10px; }
  .news__list li p { grid-column: 1 / -1; }
  .news__list li:hover { padding-left: 0; }
  .shots__rail { grid-auto-columns: 68vw; }
  .mail { width: 100%; justify-content: space-between; }
  .contact__arc { stroke-width: 48; width: 340px; right: -170px; bottom: -250px; }
  .contact { padding-bottom: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
