/* ==========================================================================
   Melomance DAO — cinematic redesign
   ========================================================================== */

:root {
  --bg: #0d0b10;
  --bg-tint: #13111a;
  --surface: #1a1722;
  --surface-2: #221e2c;
  --line: rgba(239, 230, 220, 0.09);
  --line-strong: rgba(239, 230, 220, 0.18);
  --text: #f1ebe3;
  --muted: #a8a0a4;
  --faint: #6f6870;
  --accent: #f0a45f;
  --accent-ink: #1c120a;
  --accent-soft: rgba(240, 164, 95, 0.14);
  --navy: #142039;

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-serif: "Instrument Serif", "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --z-grain: 50;
  --z-header: 40;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.display {
  font-family: var(--font-serif);
  font-weight: 600; /* Instrument Serif only ships 400; the weight applies to Hangul fallback */
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display em, .hero-title em {
  font-style: italic;
  color: var(--accent);
}
.slash {
  color: var(--faint);
  font-style: normal;
  margin: 0 0.08em;
}

.display-ko {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display-ko.wide { max-width: 22ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -10px rgba(240, 164, 95, 0.7);
}
.btn-accent:hover { background: #f6b778; transform: translateY(-1px); }
.btn-accent:active { transform: translateY(1px) scale(0.98); }
.btn-accent .bi { transition: transform 0.25s var(--ease); }
.btn-accent:hover .bi { transform: translate(2px, -2px); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.icon-btn:active { transform: scale(0.94); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav-shell {
  pointer-events: auto;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled .nav-shell {
  background: rgba(19, 17, 26, 0.72);
  border-color: var(--line);
  box-shadow: 0 18px 40px -20px rgba(5, 3, 10, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}
.nav-links {
  display: none;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.08); }

@media (min-width: 1120px) {
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 72px;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -4% 0 0;
  z-index: -1;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.06);
  animation: heroDrift 24s var(--ease) infinite alternate;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 110%, var(--bg) 18%, transparent 62%),
    linear-gradient(180deg, rgba(13, 11, 16, 0.55) 0%, rgba(13, 11, 16, 0.15) 35%, rgba(13, 11, 16, 0.65) 75%, var(--bg) 100%);
}
@keyframes heroDrift {
  to { transform: scale(1.14) translateY(-1.5%); }
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 13vw, 11.5rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  text-shadow: 0 10px 50px rgba(13, 11, 16, 0.45);
}
.hero-sub {
  max-width: 34ch;
  text-wrap: balance;
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero-scroll {
  margin-top: 56px;
  width: 1px;
  height: 64px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero-scroll span {
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: scrollCue 2.2s var(--ease) infinite;
}
@keyframes scrollCue {
  to { top: 100%; }
}

/* ---------- Intro ---------- */

.intro { padding: clamp(64px, 10vw, 140px) 0; }
.intro-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.intro-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 80px -40px rgba(240, 120, 60, 0.45);
}
.intro-media img { width: 100%; height: 100%; object-fit: cover; }
.intro-copy .display-ko { margin-bottom: 36px; }
.intro-list {
  border-top: 1px solid var(--line);
}
.intro-list li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.intro-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 27px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .intro-media { aspect-ratio: 4 / 5; transform: translateY(-40px); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 150px) 0 clamp(88px, 12vw, 164px); }
.section-tint {
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(20, 32, 57, 0.55), transparent 70%),
    var(--bg-tint);
  border-block: 1px solid var(--line);
}

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.split {
  display: grid;
  gap: 24px;
  align-items: end;
}
.section-head.center { text-align: center; }
.head-aside {
  color: var(--muted);
  max-width: 44ch;
  font-size: 16px;
}
.head-aside p + .rail-controls { margin-top: 24px; }
.head-aside.note {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.head-aside.note .bi { color: var(--accent); }
.rail-controls { display: flex; gap: 10px; }

@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1fr auto; gap: 64px; }
  .head-aside { justify-self: end; }
}

/* ---------- NFT rail ---------- */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 360px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(var(--gutter), calc((100vw - var(--container)) / 2)) 24px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }

.nft-card { scroll-snap-align: start; }
.nft-frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.nft-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.nft-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.nft-card:hover .nft-frame img { transform: scale(1.06); }
.nft-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 4px 0;
}
.nft-no {
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.nft-meta h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- DAO ---------- */

.dao-grid {
  display: grid;
  gap: 24px;
}
.dao-diagram {
  background: #f3efe9;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  place-items: center;
}
.dao-diagram img { width: min(100%, 440px); }

.pillars {
  display: grid;
  gap: 16px;
}
.pillar {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.pillar:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pillar:hover::before { opacity: 1; }
.pillar-no {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 28px;
}
.pillar h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin-bottom: 14px;
}
.pillar h3 .sep { color: var(--faint); font-weight: 400; }
.pillar li {
  color: var(--muted);
  padding: 4px 0;
}
.pillar li::before {
  content: "—";
  color: var(--faint);
  margin-right: 10px;
}

@media (min-width: 640px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .dao-grid { grid-template-columns: 5fr 7fr; gap: 24px; }
  .pillar:nth-child(even) { transform: translateY(32px); }
  .pillar:nth-child(even):hover { transform: translateY(29px); }
}

/* ---------- Governance ---------- */

.gov-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gov-card {
  background: var(--bg-tint);
  padding: clamp(24px, 3vw, 40px);
  transition: background-color 0.3s var(--ease);
}
.gov-card:hover { background: var(--surface); }
.gov-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.gov-top .bi {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 19px;
}
.gov-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.gov-card p {
  color: var(--muted);
  max-width: 52ch;
}
.gov-wide p {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.025em;
  max-width: 40ch;
}

@media (min-width: 768px) {
  .gov-grid { grid-template-columns: repeat(2, 1fr); }
  .gov-wide { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .gov-grid { grid-template-columns: repeat(6, 1fr); }
  .gov-wide { grid-column: span 4; }
  .gov-card:nth-child(2) { grid-column: span 2; }
  .gov-card:nth-child(n+3) { grid-column: span 3; }
}

/* ---------- Funding ---------- */

.fund-list { border-top: 1px solid var(--line-strong); }
.fund-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
  transition: padding-left 0.35s var(--ease);
}
.fund-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}
.fund-row:hover::before { width: 100%; }
.fund-no {
  grid-row: span 2;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  line-height: 1.6;
}
.fund-row h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
.fund-row p { color: var(--muted); }

@media (min-width: 900px) {
  .fund-row {
    grid-template-columns: 80px 1fr 1fr;
    align-items: baseline;
    padding: 44px 0;
  }
  .fund-no { grid-row: auto; }
  .fund-row:hover { padding-left: 16px; }
}

/* ---------- Marketing ---------- */

.mkt-grid {
  display: grid;
  gap: 16px;
}
.mkt-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 200px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mkt-item:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.mkt-item .bi {
  font-size: 28px;
  color: var(--accent);
}
.mkt-item h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.mkt-feature {
  background:
    linear-gradient(160deg, rgba(13, 11, 16, 0.25), rgba(13, 11, 16, 0.85)),
    url(../img/nft-img4.webp) center / cover;
  border-color: transparent;
}
.mkt-feature h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.25;
  max-width: 12ch;
}

@media (min-width: 640px) {
  .mkt-grid { grid-template-columns: 1fr 1fr; }
  .mkt-feature { grid-column: 1 / -1; min-height: 280px; }
}
@media (min-width: 1024px) {
  .mkt-grid { grid-template-columns: repeat(4, 1fr); }
  .mkt-feature { grid-column: span 2; grid-row: span 2; min-height: 0; }
}

/* ---------- Tools marquee ---------- */

.tools {
  padding: clamp(72px, 9vw, 120px) 0;
  overflow: hidden;
}
.tools-head { margin-bottom: 48px; }
.marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: clamp(34px, 4vw, 48px);
  width: auto;
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease);
}
.marquee-track img:hover { opacity: 1; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- People ---------- */

.people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.person {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--bg);
  transition: background-color 0.3s var(--ease);
}
.person:hover { background: var(--surface); }
.person img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 16px;
  background: var(--surface-2);
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.55;
  padding: 6px;
}
.person h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.person .org {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.person .role {
  margin-top: 2px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}
@media (min-width: 560px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .people { grid-template-columns: repeat(4, 1fr); }
  .person { flex-direction: column; align-items: flex-start; padding: 32px 28px; min-height: 220px; }
  .person img { margin-bottom: 18px; }
}

/* ---------- Timeline ---------- */

.timeline {
  display: grid;
  gap: 0;
  position: relative;
}
.tl-col {
  position: relative;
  padding: 0 0 40px 32px;
  border-left: 1px solid var(--line-strong);
}
.tl-dot {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-tint);
  border: 1.5px solid var(--muted);
}
.tl-col.is-now .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.tl-month {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.tl-items { display: grid; gap: 8px; margin-bottom: 10px; }
.tl-items li {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}
.tl-sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.tl-empty li {
  background: transparent;
  border-style: dashed;
  color: var(--faint);
}
.tl-milestone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.tl-milestone::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

@media (min-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding-top: 36px;
  }
  .timeline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), var(--line-strong) 80%, var(--accent));
  }
  .tl-col { border-left: 0; padding: 0; }
  .tl-dot { left: 0; top: -36px; }
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  isolation: isolate;
  padding: clamp(88px, 12vw, 160px) 0 clamp(64px, 8vw, 100px);
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center 70%;
  opacity: 0.32;
  filter: saturate(0.9);
}
.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13, 11, 16, 0.6) 40%, rgba(13, 11, 16, 0.85) 100%);
}

.partner {
  display: grid;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(19, 17, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 50px 100px -50px rgba(5, 3, 10, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.partner-logo {
  display: grid;
  place-items: center;
  padding: 40px;
  background: #f3efe9;
}
.partner-logo img { width: min(100%, 300px); }
.partner-body {
  padding: clamp(28px, 4vw, 52px);
  color: var(--muted);
}
.partner-lead {
  color: var(--text);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.services {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.services li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
@media (min-width: 960px) {
  .partner { grid-template-columns: 4fr 8fr; }
}

.signoff {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  gap: 28px;
  align-items: center;
  justify-items: start;
}
.signoff-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.signoff-brand img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
}
.signoff-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.signoff-tag { color: var(--muted); font-size: 15px; }
.signoff-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14px;
  color: var(--muted);
}
.signoff-info span, .signoff-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.signoff-info .bi { color: var(--accent); }
.signoff-info a { color: var(--text); transition: color 0.2s var(--ease); }
.signoff-info a:hover { color: var(--accent); }

@media (min-width: 1024px) {
  .signoff { grid-template-columns: auto 1fr auto; gap: 48px; }
  .signoff-info { justify-content: center; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer p { font-size: 13px; color: var(--faint); }
.to-top {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.to-top:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (min-width: 1024px) {
  .js .pillar.reveal:nth-child(even).is-in { transform: translateY(32px); }
}

/* ---------- Mobile ---------- */

@media (max-width: 520px) {
  .brand span { font-size: 15px; }
  .site-header .btn { padding: 9px 14px; font-size: 14px; }
  .hero { padding-bottom: 56px; }
}

@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;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Language switch ---------- */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 11, 16, 0.35);
}
.lang-switch a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .nav-shell { padding-left: 10px; }
}

/* ---------- The film ---------- */

.film {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.film-glow {
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  left: -300px;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 120, 60, 0.18), transparent 65%);
  pointer-events: none;
}

.film-grid {
  display: grid;
  gap: 24px;
}
.film-poster {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  max-height: 760px;
  box-shadow: 0 50px 100px -50px rgba(240, 120, 60, 0.55);
}
.film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 16, 0) 30%, rgba(13, 11, 16, 0.92) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-radius: inherit;
}
.film-poster figcaption {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
}
.film-year {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.film-title {
  font-family: "Instrument Serif", serif;
  font-size: clamp(4rem, 9vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-top: 6px;
}
.film-title-ko {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.4em;
  margin: 10px 0 24px;
  color: rgba(241, 235, 227, 0.85);
}
.film-award {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 10px 16px 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(240, 164, 95, 0.45);
  background: rgba(13, 11, 16, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.film-award svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

.film-body {
  display: grid;
  gap: 16px;
  align-content: start;
}
.award-card {
  position: relative;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(240, 164, 95, 0.28), transparent 55%),
    var(--surface);
  border: 1px solid rgba(240, 164, 95, 0.3);
  overflow: hidden;
}
.award-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.award-title {
  margin: 8px 0 6px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.award-title span {
  display: block;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 0.62em;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-top: 4px;
}
.award-desc { font-size: 15px; color: var(--muted); }

.film-facts {
  margin: 0;
  padding: 8px clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.film-facts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.film-facts div:last-child { border-bottom: 0; }
.film-facts dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--faint);
  padding-top: 2px;
}
.film-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.film-synopsis {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
}
.film-synopsis h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.film-synopsis p { color: var(--muted); }

.film-story {
  margin-top: clamp(56px, 8vw, 104px);
}
.film-story-title {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.3;
  max-width: 20ch;
  margin-bottom: 32px;
  text-wrap: balance;
}
.film-points {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.film-points p {
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg);
  color: var(--muted);
}
.film-points strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.025em;
}

.journey {
  margin-top: 24px;
  display: grid;
  gap: 8px;
  counter-reset: j;
}
.journey li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.j-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.j-text { font-weight: 600; letter-spacing: -0.02em; }
.journey .is-peak {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.journey .is-peak .j-date { color: var(--accent-ink); opacity: 0.75; }

.film-sources {
  margin-top: 28px;
  font-size: 13px;
  color: var(--faint);
}
.film-sources a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.film-sources a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .film-points { grid-template-columns: repeat(3, 1fr); }
  .journey { grid-template-columns: repeat(4, 1fr); }
  .journey li:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translate(50%, -50%);
    z-index: 1;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    font-size: 11px;
    color: var(--muted);
  }
}
@media (min-width: 1024px) {
  .film-grid { grid-template-columns: 5fr 7fr; gap: 24px; }
  .film-poster { aspect-ratio: auto; height: 100%; min-height: 620px; }
}

/* ---------- Language-specific type ---------- */

html[lang="ja"] {
  --font-sans: "Pretendard JP Variable", "Pretendard JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-serif: "Instrument Serif", "Pretendard JP Variable", "Hiragino Sans", "Yu Gothic", serif;
}
html[lang="ja"] body {
  word-break: normal;
  line-break: strict;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}
html[lang="en"] body { word-break: normal; }
html[lang="en"] .display-ko,
html[lang="ja"] .display-ko { letter-spacing: -0.02em; }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.faq-no {
  grid-row: span 2;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--accent);
}
.faq-q {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
  text-wrap: balance;
}
.faq-a {
  color: var(--muted);
  max-width: 62ch;
}

@media (min-width: 900px) {
  .faq-item {
    grid-template-columns: 64px 5fr 7fr;
    gap: 32px;
    padding: 36px 0;
    align-items: baseline;
  }
  .faq-no { grid-row: auto; }
}
