/* ==========================================================
   STUDIO WOLFTOON — Apple-inspired minimal stylesheet
   ========================================================== */

:root {
  --white: #ffffff;
  --gray: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --night: #000000;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --radius: 28px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 52px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 52px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-inner {
  max-width: 1080px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.nav-logo svg { width: 18px; height: 18px; fill: var(--ink); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 13px; color: var(--ink); opacity: 0.8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; width: 24px; height: 24px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 3px; right: 3px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 9px; }
.nav-toggle span:last-child { top: 15px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 12px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 12px; transform: rotate(-45deg); }

/* ───────── Type ───────── */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.headline { font-size: clamp(36px, 5.5vw, 64px); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; }
.headline-sm { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.lead { font-size: clamp(17px, 1.8vw, 21px); color: var(--ink-2); line-height: 1.6; margin-top: 24px; max-width: 680px; margin-left: auto; margin-right: auto; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 980px;
  font-size: 17px; font-weight: 500; border: 0; cursor: pointer;
  font-family: inherit; transition: background .2s, transform .2s;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #e8e8ed; }
.link-arrow { font-size: 17px; color: var(--link); }
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }
.link-light { color: #2997ff; }

/* ───────── Hero ───────── */
.hero { text-align: center; padding: 120px 24px 56px; }
.hero .eyebrow { font-size: 19px; }
.hero-title { font-size: clamp(44px, 8vw, 96px); font-weight: 700; line-height: 1.04; letter-spacing: -0.045em; }
.hero-sub { font-size: clamp(19px, 2.4vw, 28px); color: var(--ink-2); margin-top: 20px; font-weight: 500; }
.hero-cta { margin-top: 36px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }

.hero-visual { padding: 0 24px 120px; }
.hero-strip {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; align-items: end;
}
.hero-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--radius); }
.hero-strip img:nth-child(2) { aspect-ratio: 3 / 4.2; }

/* ───────── Sections ───────── */
.section { padding: 140px 0; }
.section-gray { background: var(--gray); }

/* Vision pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 100px; }
.pillar { border-top: 1px solid var(--line); padding-top: 28px; }
.pillar-num { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.pillar h3 { font-size: 24px; font-weight: 700; margin: 10px 0 12px; letter-spacing: -0.02em; }
.pillar p { font-size: 17px; color: var(--ink-2); line-height: 1.6; }

/* ───────── Works ───────── */
.feature {
  max-width: 1080px; margin: 80px auto 0; border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; min-height: 560px;
}
.feature-dark { background: #000; color: #f5f5f7; }
.feature-text { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.feature-tag { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; }
.feature-title { font-size: clamp(36px, 4.5vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
.feature-title span { font-size: 0.55em; font-weight: 600; color: #a1a1a6; letter-spacing: -0.02em; }
.feature-copy { font-size: 19px; line-height: 1.6; margin-top: 24px; color: #d2d2d7; }
.feature-facts { margin-top: 28px; display: grid; gap: 8px; }
.feature-facts li { font-size: 14px; color: #a1a1a6; padding-left: 16px; position: relative; }
.feature-facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #e3a33b; }
.feature-cta { margin-top: 36px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.feature-media { position: relative; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.tile {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-align: center; min-height: 600px;
}
.tile-text { padding: 56px 40px 32px; }
.tile-title { font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.tile-copy { font-size: 17px; color: var(--ink-2); margin-top: 14px; line-height: 1.6; }
.tile-meta { font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.tile-media { margin-top: auto; padding: 0 32px; }
.tile-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 18px 18px 0 0; }

.tile-night { background: #050816; color: #f5f5f7; }
.tile-night .tile-copy { color: #a1a1a6; }
.tile-night .tile-media { padding: 0; }
.tile-night .tile-media img { border-radius: 0; }

.tile-type { background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%); }
.tile-coming {
  margin-top: auto; padding: 0 0 72px;
  font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(90deg, #0071e3, #7d5cff, #e8618c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.note { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 40px; }

/* ───────── Craft ───────── */
.craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 80px; }
.craft { background: var(--gray); border-radius: var(--radius); overflow: hidden; }
.craft img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.craft figcaption { padding: 28px 28px 36px; }
.craft h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.craft p { font-size: 15px; color: var(--ink-2); margin-top: 10px; line-height: 1.6; }

/* ───────── Director ───────── */
.director { display: grid; grid-template-columns: 400px 1fr; gap: 72px; align-items: start; }
.director-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.director-role { font-size: 19px; color: var(--ink-2); margin-top: 8px; }
.director blockquote { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.45; letter-spacing: -0.025em; margin: 36px 0 28px; }
.director-bio { font-size: 17px; color: var(--ink-2); line-height: 1.75; }

.history { margin-top: 32px; border-top: 1px solid var(--line); }
.history summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-size: 17px; font-weight: 600; color: var(--link);
  display: flex; justify-content: space-between; align-items: center;
}
.history summary::-webkit-details-marker { display: none; }
.history summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--ink-2); transition: transform .3s var(--ease); }
.history[open] summary::after { transform: rotate(45deg); }
.history ol { display: grid; gap: 14px; padding-bottom: 12px; }
.history li { display: grid; grid-template-columns: 76px 1fr; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.history b { color: var(--ink); font-weight: 600; }

/* ───────── Recognition ───────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.035em; }
.stat span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }

.press-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.press img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 18px; background: var(--gray); }
.press figcaption { font-size: 15px; font-weight: 600; margin-top: 16px; line-height: 1.45; letter-spacing: -0.015em; }
.press figcaption span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }

.video { margin-top: 100px; }
.video video { width: 100%; border-radius: var(--radius); background: #000; display: block; }
.video-caption { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 14px; }

/* ───────── Contact ───────── */
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 56px; }
.contact-card { background: #fff; border-radius: 20px; padding: 28px; text-align: left; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.contact-card span { display: block; font-size: 13px; color: var(--ink-3); }
.contact-card strong { display: block; font-size: 21px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; }

.contact-form { margin-top: 16px; background: #fff; border-radius: 20px; padding: 32px; display: grid; gap: 12px; text-align: left; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font-family: inherit; font-size: 17px; color: var(--ink);
  padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.contact-form select { appearance: none; color: var(--ink-2); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: center; margin-top: 8px; }
.form-hint { text-align: center; font-size: 12px; color: var(--ink-3); }

/* ───────── Footer ───────── */
.footer { background: var(--gray); border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 12px; color: var(--ink-3); }
.footer-brand { font-weight: 700; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 12px; }
.footer-info { display: flex; flex-wrap: wrap; gap: 4px 0; }
.footer-info span:not(:last-child)::after { content: "|"; margin: 0 10px; color: var(--line); }
.footer-copy { margin-top: 12px; }

/* ───────── Reveal animation ───────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
  .feature { grid-template-columns: 1fr; margin-left: 24px; margin-right: 24px; }
  .feature-media img { aspect-ratio: 16 / 11; height: auto; }
  .director { grid-template-columns: 1fr; gap: 48px; }
  .director-photo { max-width: 400px; }
  .press-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 834px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 52px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 24px;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { display: block; font-size: 21px; font-weight: 600; padding: 12px 0; opacity: 1; }

  .section { padding: 100px 0; }
  .pillars, .craft-grid, .duo { grid-template-columns: 1fr; }
  .pillars { gap: 32px; margin-top: 64px; }
  .tile { min-height: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature-text { padding: 48px 32px; }
}

@media (max-width: 600px) {
  .hero { padding-top: 88px; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip img:nth-child(3) { display: none; }
  .press-grid, .contact-cards, .field-row { grid-template-columns: 1fr; }
  .history li { grid-template-columns: 1fr; }
}
