/* 메인 — 시안(docs/design/2026-10-23-dark-editorial/site.html) 의 메인 전용 규칙. 공통 규칙(구역 머리·목록·과정·재단선·버튼·@keyframes rise)은 base.css */

/* ---------- 첫 화면 ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 128px) clamp(64px, 8vw, 112px); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 12) 120px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); opacity: .55; pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; right: -12vw; top: -18vw; background: radial-gradient(circle, rgba(61, 107, 255, .35) 0%, rgba(61, 107, 255, .08) 40%, transparent 70%); filter: blur(20px); pointer-events: none; -webkit-mask-image: linear-gradient(#000 45%, transparent 85%); mask-image: linear-gradient(#000 45%, transparent 85%); }
.hero .in { position: relative; z-index: 1; }
.hero__meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: clamp(18px, 3vw, 36px); }
.hero__h1 { margin: 0; }
.big { margin: 0; font-family: var(--f-dis); font-stretch: 62%; font-weight: 800; font-size: clamp(68px, 15.5vw, 236px); line-height: .84; letter-spacing: -0.015em; text-transform: uppercase; }
.big .ln { display: block; overflow: hidden; padding-bottom: .02em; }
.big .ln > span { display: inline-block; animation: rise 1.1s cubic-bezier(.2, .7, .1, 1) both; }
.big .ln:nth-child(2) > span { animation-delay: .12s; }
.big .ln:nth-child(3) > span { animation-delay: .24s; }
.big .wide { font-stretch: 125%; font-weight: 200; letter-spacing: -0.03em; }
.big .dot { display: inline-block; width: .28em; height: .28em; border-radius: 50%; background: var(--blue); vertical-align: .12em; margin-right: .1em; box-shadow: 0 0 40px rgba(61, 107, 255, .8); }
.big .period { color: inherit; }
.big .ko { font-family: var(--f-ko); font-stretch: 100%; font-size: .17em; font-weight: 500; letter-spacing: -0.04em; text-transform: none; vertical-align: .9em; margin-left: .4em; color: var(--sub); white-space: nowrap; }
.hero__foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); align-items: end; }
.hero__foot h2 { grid-column: 1 / span 5; margin: 0; font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.2; }
.hero__foot p { grid-column: 7 / span 4; margin: 0; color: var(--sub); font-size: 14.5px; }
.hero__foot .scroll { grid-column: 12; justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll i { width: 1px; height: 46px; background: linear-gradient(var(--ink), transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 흐르는 띠 ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding-block: clamp(22px, 3vw, 36px); }
.marquee__track { display: inline-flex; animation: run 70s linear infinite; }
.marquee span { font-family: var(--f-dis); font-size: clamp(22px, 3.2vw, 44px); font-weight: 300; font-stretch: 125%; letter-spacing: -0.02em; padding-inline: 26px; display: inline-flex; align-items: center; gap: 52px; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1px var(--ink); font-weight: 600; font-stretch: 62%; letter-spacing: 0; text-transform: uppercase; }
.marquee span::after { content: "✦"; color: var(--blue); font-size: .5em; -webkit-text-stroke: 0; }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- 작업 ---------- */
.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(56px, 7vw, 104px) clamp(20px, 2.4vw, 36px); }
.work { display: block; }
.work:nth-child(1) { grid-column: 1 / span 7; }
.work:nth-child(2) { grid-column: 9 / span 4; margin-top: clamp(40px, 10vw, 160px); }
.work:nth-child(3) { grid-column: 1 / span 4; }
.work:nth-child(4) { grid-column: 6 / span 7; margin-top: clamp(-120px, -6vw, -40px); }
.work figure { margin: 0 0 20px; overflow: hidden; border-radius: 3px; position: relative; aspect-ratio: 5 / 4; background: var(--bg2); }
.work:nth-child(2) figure, .work:nth-child(3) figure { aspect-ratio: 4 / 5; }
.work img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .9s cubic-bezier(.2, .7, .1, 1), filter .5s; filter: saturate(.85) brightness(.92); }
.work:hover img { transform: scale(1.08); filter: none; }
/* 재단선(.crop)은 base.css. 위 .work figure 의 아래 여백을 재단선 안에서는 지운다 (시안 그대로) */
.work .crop figure { margin: 0; }
.work .work__meta { margin-top: 6px; }
.work__meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.work h3 { margin: 0; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.04em; font-weight: 700; }

/* ---------- 가치 ---------- */
.value { background: var(--bg2); border-block: 1px solid var(--line); }
.statement { margin: 0; grid-column: 1 / -1; font-size: clamp(28px, 4.4vw, 64px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.28; }
/* --dim 은 대비가 낮다 — 밝아지기 전 상태에만 쓴다 (시안 그대로) */
.statement .w { color: var(--dim); transition: color .3s; }
.statement .w.lit { color: var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(80px, 10vw, 152px); }
.pillar { border-top: 1px solid var(--line2); padding-top: 18px; }
.pillar h4 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.04em; }
.pillar p { margin: 0; color: var(--sub); font-size: 14px; }

/* ---------- 인사이트 ---------- */
/* 시안의 분류 칸(.cat)은 메인에서 뺐다 — 제목이 그 자리까지 이어진다 */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line2); }
.posts a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: baseline; padding-block: clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--line); transition: color .2s; }
.posts a:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.posts .date { grid-column: 1 / span 2; }
.posts h3 { grid-column: 3 / span 9; margin: 0; font-size: clamp(19px, 2.2vw, 28px); letter-spacing: -0.045em; font-weight: 600; }
.posts .go { grid-column: 12; justify-self: end; }

/* ---------- 문의 (버튼 .contact__btns·.cta 는 base.css) ---------- */
.contact { position: relative; overflow: hidden; }
.contact::after { content: ""; position: absolute; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; left: 50%; bottom: -55%; transform: translateX(-50%); background: radial-gradient(circle, rgba(61, 107, 255, .35), transparent 65%); filter: blur(30px); pointer-events: none; }
.contact .in { position: relative; z-index: 1; }
.contact .big { font-size: clamp(76px, 17vw, 260px); }
.contact__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 7vw, 104px); align-items: end; }
.contact__row h3 { grid-column: 1 / span 5; margin: 0; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.045em; line-height: 1.3; }
.contact__info { grid-column: 7 / span 3; display: grid; gap: 4px; font-size: 14px; }
.contact__info b { font-family: var(--f-ko); font-weight: 400; font-size: 12.5px; color: var(--sub); display: block; margin-top: 8px; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 960px) {
  .hero__foot h2, .hero__foot p { grid-column: 1 / -1; }
  .hero__foot .scroll { display: none; }
  .big .ko { display: block; margin: 12px 0 0; font-size: 18px; vertical-align: 0; }
  .works { grid-template-columns: minmax(0, 1fr); }
  .work:nth-child(n) { grid-column: 1; margin-top: 0; }
  .work:nth-child(n) figure { aspect-ratio: 4 / 3; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .posts a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; }
  .posts .date, .posts h3 { grid-column: 1; }
  /* 시안은 화살표가 날짜·제목·분류 세 줄 가운데(= 제목 줄)에 온다. 분류가 없어 제목 줄에 맞춘다 */
  .posts .go { grid-column: 2; grid-row: 2; align-self: center; }
  .contact__row h3, .contact__info { grid-column: 1 / -1; }
}
