/* 팀 사이트(uqct.kr) 스타일. 디자인 정본: 설계 §4.5 시안. CSP style-src 'self'라 인라인 스타일 없이 이 파일 하나로 둔다. */
@font-face { font-family: "Pretendard"; font-style: normal; font-display: swap; font-weight: 45 920; src: url("/fonts/pretendard.woff2") format("woff2-variations"), url("/fonts/pretendard.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400 600; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); }

/* 색상 — 페이퍼 & 브릭 */
:root {
  --bg: #f1ece2;
  --bg-2: #e9e2d4;
  --ink: #2a1a16;
  --muted: #8c766c;
  --line: #2a1a1633;
  --line-strong: #2a1a16;
  --accent: #b8361f;
  --logo: #b8361f;
  --on-accent: #f1ece2;
  --thumb-bg: #ddd4c3;
  --nav-bg: rgba(241, 236, 226, .9);
  --overlay: rgba(241, 236, 226, .97);
  --grain: .09;
}
:root {
  --sans: "Pretendard", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 2.6vw, 36px);
  --nav-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 19px; height: 19px; display: block; }
em { font-style: normal; color: var(--accent); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

/* 아이콘 묶음: <use>로 부르는 기호만 담는다 */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 종이 질감 */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: var(--grain);
  background-image: url("/grain.svg"); /* img-src에 data:를 열지 않으려고 파일로 뺐다 */
  mix-blend-mode: multiply;
}

/* 로고 */
.logo {
  display: block;
  aspect-ratio: 1200 / 419;
  background: var(--logo);
  -webkit-mask: url("/logo-mask.png") center / contain no-repeat;
          mask: url("/logo-mask.png") center / contain no-repeat;
  transition: background .4s;
}

/* ── Nav ─────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__links { display: flex; gap: 22px; font-weight: 700; font-size: 13px; }
.nav__links a { position: relative; display: flex; gap: 5px; align-items: baseline; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__logo .logo { width: 84px; }
.nav__icons { justify-self: end; display: flex; align-items: center; gap: 16px; }
.nav__clock { color: var(--muted); }
.nav__icons a, .footer__icons a { transition: color .2s, transform .2s; }
.nav__icons a:hover, .footer__icons a:hover { color: var(--accent); transform: translateY(-2px); }

/* ── Intro ───────────────────────── */
.intro { padding: 0 var(--gutter); }
.intro__meta {
  display: flex; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.intro__meta span { padding: 14px 0; color: var(--muted); }
.intro .logo--big { width: 100%; margin-top: clamp(28px, 5vw, 64px); }
.logo--big { animation: rise 1.1s var(--ease) both; }


.intro__bottom {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: end;
  padding: clamp(24px, 3vw, 40px) 0 clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line-strong);
}
.intro__tag {
  font-size: clamp(30px, 4.6vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02;
  animation: rise 1s var(--ease) .2s both;
}
.intro__services { list-style: none; justify-self: end; text-align: right; line-height: 2; }
.intro__services li::before { content: "✦ "; color: var(--accent); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ── Marquee ─────────────────────── */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 16px 0; }
.marquee__track {
  display: flex; width: max-content; gap: 40px; align-items: center;
  animation: marquee 38s linear infinite;
  font-size: clamp(22px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap;
}
.marquee__track b { color: var(--accent); font-size: .55em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Section head ────────────────── */
.section { padding: clamp(72px, 10vw, 140px) var(--gutter) 0; }
.shead {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 14px; margin-bottom: 20px;
}
.shead__title {
  font-size: clamp(64px, 12vw, 184px); font-weight: 900; letter-spacing: -0.065em; line-height: .78;
}


/* ── Grid & cards ────────────────── */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 18px; }
.card { display: flex; flex-direction: column; width: 100%; text-align: left; }
.js a.card { cursor: none; } /* PLAY 커서는 JS가 그린다. JS가 없으면 기본 커서 */
.card--still { cursor: auto; } /* 영상 없는 작업: PLAY 커서·팝업 없음 */
.card__thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--thumb-bg);
  border-radius: 3px;
}
.card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .5s;
}
a.card:hover .card__thumb img { transform: scale(1.06); }
.card__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); mix-blend-mode: multiply; opacity: 0; transition: opacity .4s;
}
a.card:hover .card__thumb::after { opacity: .25; }
.card__meta {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  display: grid; gap: 2px;
}
.card__net { color: var(--muted); text-transform: none; }
.card__title { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; transition: color .25s; }
a.card:hover .card__title { color: var(--accent); }
.card__role { font-size: 12.5px; color: var(--muted); }

.subhead {
  margin: clamp(72px, 9vw, 128px) 0 20px;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 12px;
}
.subhead h3 { font-size: clamp(32px, 4vw, 56px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.grid--others { gap: 24px 18px; }

/* ── Producers ───────────────────── */
.producers { list-style: none; }
.producer {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: clamp(14px, 2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
}
.producer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
}
.producer:hover::before { transform: scaleY(1); }
.producer:hover { color: var(--on-accent); }
.producer__name {
  font-size: clamp(40px, 7.5vw, 116px); font-weight: 900; letter-spacing: -0.06em; line-height: .95;
  transition: transform .45s var(--ease);
}
.producer:hover .producer__name { transform: translateX(16px); }
.producer__ig { display: flex; align-items: center; gap: 8px; padding-right: 8px; text-transform: none; }
.producer__ig svg { width: 16px; height: 16px; }
.producers li { position: relative; z-index: 0; }

/* ── Contact ─────────────────────── */
.contact__cta {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: clamp(20px, 3vw, 40px) 0 clamp(36px, 5vw, 64px);
}
.contact__big { font-size: clamp(30px, 7vw, 112px); overflow-wrap: anywhere; font-weight: 900; letter-spacing: -0.055em; line-height: .98; }
.contact__arrow {
  flex: none; width: clamp(64px, 9vw, 128px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; font-size: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line-strong); transition: all .4s var(--ease);
}
.contact__cta:hover .contact__arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(45deg); }
.contact__grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); }
.cell { padding: 18px 18px 22px 0; }
.cell + .cell { padding-left: 18px; border-left: 1px solid var(--line); }
.cell__label { color: var(--muted); margin-bottom: 10px; }
.cell__sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.link { font-weight: 700; font-size: 15px; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; transition: background-size .35s, color .2s; }
.link:hover { color: var(--accent); background-size: 100% 1px; }

/* ── Footer ──────────────────────── */
.footer {
  margin: clamp(96px, 12vw, 160px) var(--gutter) 0;
  padding: 24px 0 36px; border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: end;
}
.footer__logo { width: 120px; }
.footer__info { color: var(--muted); line-height: 1.9; }
.footer__icons { display: flex; gap: 16px; }

/* ── 커서 ────────────────────────── */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  transform: translate(-50%, -50%) scale(0); transition: transform .3s var(--ease);
}
.cursor.is-on { transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .cursor { display: none; } .card { cursor: pointer; } }

/* ── Toast ───────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 70px; z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; font-size: 13px; border-radius: 4px;
  transition: all .25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── Lightbox ────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: var(--overlay);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: var(--gutter);
  animation: fade .3s;
}
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; color: inherit; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: transparent; }
.lightbox__frame { width: min(1100px, 100%); aspect-ratio: 16/9; background: #000; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox__caption { text-align: center; font-weight: 700; }
.lightbox__close { position: absolute; top: 20px; right: var(--gutter); }
@keyframes fade { from { opacity: 0; } }

/* ── Reveal ──────────────────────── */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .grid, .grid--others { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .intro__bottom { grid-template-columns: 1fr; }
  .intro__services { justify-self: start; text-align: left; }
  .producer { grid-template-columns: 1fr; gap: 6px; }
  .producer__ig { font-size: 10px; }
  .contact__grid { grid-template-columns: 1fr; }
  .cell + .cell { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .footer { grid-template-columns: 1fr; }
  .nav { grid-template-columns: auto 1fr auto; gap: 14px; }
  .nav__logo { order: -1; }
  .nav__logo .logo { width: 60px; }
  .nav__links { gap: 12px; font-size: 12px; }
  .nav__clock { display: none; }
}
@media (max-width: 420px) {
  .nav__links { gap: 9px; font-size: 11px; }
  .nav__icons { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
