/* 김은진 포트폴리오 공통 스타일 (시안 4: Presenta 글자 + Baseframe 느낌 + devashish 스크롤 + Eventin 일정표) */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --dark: #262626;
  --dark-2: #1c1c1c;
  --light: #f2f2f0;
  --white: #ffffff;
  --ink: #161616;
  --muted-d: #a3a3a3;
  --muted-l: #6b6b6b;
  --line-d: rgba(255,255,255,.12);
  --line-l: #dcdcd8;
  --accent: #fd4539;
  --max: 1200px;
  --en: "Geist", "Pretendard", sans-serif;
  --ko: "Pretendard", "Geist", -apple-system, "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--dark); color: var(--white); font-family: var(--ko); line-height: 1.65; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.en { font-family: var(--en); }

/* ---------- Header (Baseframe) ---------- */
header.top { position: fixed; inset: 0 0 auto; z-index: 50; mix-blend-mode: difference; }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.mail-top { font-family: var(--en); font-weight: 600; font-size: 15px; letter-spacing: -0.03em; text-decoration: none; color: #fff; }
.menu { display: flex; gap: 26px; font-family: var(--en); font-weight: 600; font-size: 15px; letter-spacing: -0.03em; }
.menu a { text-decoration: none; color: #fff; }
.menu .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; align-self: center; }

/* ---------- Hero (Presenta 글자 + devashish 고정 스크롤) ---------- */
.hero-pin { height: 190vh; position: relative; }
.hero { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; }
.hero-inner { will-change: transform, opacity; padding: 0 20px; }
.pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.pill { font-family: var(--en); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); border: 1px solid var(--line-d); border-radius: 999px; padding: 7px 14px; }
.pill.on { color: var(--white); border-color: var(--accent); }
.pill.on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 7.4vw, 104px); line-height: 1.08; letter-spacing: -0.055em; margin: 0; }
.hero h1 .ac { color: var(--accent); }
.hero h1 .ln { display: block; }
.hero .sub { margin: 28px auto 0; color: var(--muted-d); font-size: 17px; max-width: 34em; }
.hero .sub b { color: var(--white); font-weight: 600; }
.chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.chip { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-d); transition: background .2s; }
.chip:hover { background: rgba(255,255,255,.14); }
.chip i { font-style: normal; font-family: var(--en); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 28px; }
.hero-foot .wrap { display: flex; justify-content: space-between; align-items: center; font-family: var(--en); font-size: 14px; color: var(--muted-d); }
.hero-foot b { color: var(--white); }
.hero-foot .live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; }

/* ---------- Marquee (Baseframe 로고 띠 / Eventin 후원사) ---------- */
.marquee { border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); overflow: hidden; padding: 22px 0; position: relative; z-index: 2; background: var(--dark); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: slide 32s linear infinite; }
.marquee span { font-family: var(--en); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; color: #8c8c8c; white-space: nowrap; }
.marquee span::before { content: "✳"; color: var(--accent); margin-right: 14px; font-size: 14px; vertical-align: 3px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
section { position: relative; z-index: 2; }
.sec { padding: 120px 0; }
.sec.light { background: var(--light); color: var(--ink); }
.sec.white { background: var(--white); color: var(--ink); }
.head { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: end; margin-bottom: 56px; }
.head .no { font-family: var(--en); font-weight: 600; color: var(--accent); font-size: 18px; letter-spacing: -0.02em; }
.head h2 { font-weight: 800; font-size: clamp(32px, 5vw, 64px); line-height: 1.1; letter-spacing: -0.05em; margin: 0; }
.head p { grid-column: 2; margin: 14px 0 0; color: var(--muted-l); max-width: 36em; }
.sec:not(.light):not(.white) .head p { color: var(--muted-d); }

/* ---------- Cases: 쌓이는 카드 (devashish 스크롤 느낌) ---------- */
.stack { display: grid; gap: 28px; }
.card { position: sticky; top: 96px; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 460px; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--white); box-shadow: 0 -18px 50px rgba(0,0,0,.18); transform-origin: top center; }
.card:nth-child(2) { top: 116px; }
.card:nth-child(3) { top: 136px; }
.card .left { padding: 44px; display: flex; flex-direction: column; }
.card .meta { font-family: var(--en); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-l); }
.card h3 { font-weight: 800; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.045em; margin: 16px 0 16px; }
.card p { color: #4a4a4a; margin: 0; }
.card .tags { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.card .tags span { font-size: 13px; font-weight: 600; border: 1px solid var(--line-l); border-radius: 999px; padding: 4px 12px; }
.card .right { background: var(--dark-2); color: var(--white); padding: 44px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.card .big { font-family: var(--en); font-weight: 800; font-size: clamp(64px, 9vw, 128px); line-height: .9; letter-spacing: -0.06em; color: var(--accent); }
.card .big small { display: block; font-family: var(--ko); font-size: 16px; letter-spacing: 0; color: var(--muted-d); font-weight: 500; margin-top: 14px; line-height: 1.5; }
.card .res { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-d); }
.card .res li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-d); font-size: 15px; }
.card .res li b { font-family: var(--en); color: var(--accent); font-weight: 600; min-width: 22px; }
.card .go { position: absolute; top: 36px; right: 36px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-d); display: grid; place-items: center; font-size: 22px; transition: background .2s, transform .2s; }
.card:hover .go { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.flag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px; letter-spacing: 0; }

/* ---------- Strengths: Baseframe 번호 목록 ---------- */
.rows { border-top: 1px solid var(--line-l); }
.rows details { border-bottom: 1px solid var(--line-l); }
.rows summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; padding: 26px 0; transition: background .2s, padding .2s; }
.rows summary::-webkit-details-marker { display: none; }
.rows summary:hover { background: #e8e8e5; padding-left: 12px; }
.rows .n { font-family: var(--en); font-weight: 600; color: var(--muted-l); }
.rows .t { font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.04em; }
.rows .plus { font-size: 28px; font-weight: 300; text-align: right; transition: transform .25s; }
.rows details[open] .plus { transform: rotate(45deg); color: var(--accent); }
.rows .body { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 24px; padding: 0 0 30px; }
.rows .body p { margin: 0; color: #3d3d3d; }
.rows .body .proof { font-size: 14px; color: var(--muted-l); border-left: 2px solid var(--accent); padding-left: 14px; }
.rows .body .proof b { display: block; color: var(--ink); }
.talk { display: inline-block; margin-top: 40px; color: var(--accent); font-family: var(--en); font-weight: 600; text-decoration: none; font-size: 17px; }
.talk:hover { text-decoration: underline; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { border-top: 2px solid var(--white); padding-top: 22px; }
.step .k { font-family: var(--en); font-weight: 600; color: var(--accent); font-size: 14px; letter-spacing: .1em; }
.step h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 10px; line-height: 1.3; }
.step p { color: var(--muted-d); margin: 0 0 18px; }
.step small { font-size: 13px; color: var(--white); font-weight: 600; }

/* ---------- Program: Eventin 일정표 ---------- */
.program { border-top: 1px solid var(--line-l); }
.slot { display: grid; grid-template-columns: 160px 1fr 200px; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-l); align-items: baseline; }
.slot .when { font-family: var(--en); font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.slot .what { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.slot .what small { display: block; font-weight: 400; font-size: 15px; color: var(--muted-l); margin-top: 2px; }
.slot .type { justify-self: end; font-size: 13px; font-weight: 600; color: var(--muted-l); border: 1px solid var(--line-l); border-radius: 999px; padding: 3px 12px; }
.slot .type.ac { color: var(--accent); border-color: var(--accent); }
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; }
.edu div { background: var(--light); border-radius: 16px; padding: 26px; }
.edu small { font-family: var(--en); font-weight: 600; font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.edu b { display: block; font-size: 20px; letter-spacing: -0.03em; margin: 6px 0 2px; }
.edu span { color: var(--muted-l); font-size: 15px; }

/* ---------- Contact: Presenta 모서리 괄호 ---------- */
.contact { padding: 140px 0 60px; text-align: center; }
.frame { position: relative; padding: 80px 24px; }
.frame::before, .frame::after, .frame i::before, .frame i::after { content: ""; position: absolute; width: 26px; height: 26px; border-color: var(--white); border-style: solid; }
.frame::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.frame::after { top: 0; right: 0; border-width: 2px 2px 0 0; }
.frame i::before { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.frame i::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.contact h2 { font-weight: 800; font-size: clamp(34px, 6vw, 84px); line-height: 1.1; letter-spacing: -0.055em; margin: 0 0 30px; }
.contact h2 .ac { color: var(--accent); }
.contact a.mail { font-family: var(--en); font-weight: 600; font-size: clamp(18px, 2.4vw, 26px); text-underline-offset: 8px; overflow-wrap: anywhere; }
.contact p { color: var(--muted-d); margin: 0 0 18px; }
footer { display: flex; justify-content: space-between; color: var(--muted-d); font-family: var(--en); font-size: 13px; padding: 40px 0 0; }

/* ---------- 떠오르는 등장 (devashish) ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-pin { height: auto; } .hero { position: relative; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .mail-top { max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 900px) {
  .card { grid-template-columns: 1fr; position: relative; top: 0 !important; min-height: 0; }
  .card .right { gap: 28px; }
  .rows .body { grid-template-columns: 1fr; padding-left: 0; }
  .rows .body > span { display: none; }
  .process { grid-template-columns: 1fr; gap: 36px; }
  .slot { grid-template-columns: 110px 1fr; }
  .slot .type { grid-column: 2; justify-self: start; }
  .edu { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .menu a.hide-sm, .menu .dot { display: none; }
  .menu { gap: 16px; }
  .mail-top { font-size: 13px; }
  .hero-pin { height: 150vh; }
  .hero h1 { letter-spacing: -0.045em; }
  .hero .sub { font-size: 15px; }
  .hero-foot .wrap span:last-child { display: none; }
  .sec { padding: 80px 0; }
  .head { grid-template-columns: 1fr; gap: 8px; }
  .head p { grid-column: 1; }
  .card .left, .card .right { padding: 26px; }
  .card .go { top: 22px; right: 22px; width: 42px; height: 42px; }
  .rows summary { grid-template-columns: 44px 1fr 28px; }
  .slot { grid-template-columns: 1fr; gap: 4px; }
  .slot .type { grid-column: 1; }
  .frame { padding: 56px 12px; }
  footer { flex-direction: column; gap: 4px; }
}

/* =========================================================
   케이스 상세 페이지 (시안 4 스타일: 차콜 + 레드)
   ========================================================= */
.c-hero { padding: 140px 0 72px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--en); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; color: var(--muted-d); text-decoration: none; margin-bottom: 36px; }
.back:hover { color: var(--white); }
.c-hero .pills { justify-content: flex-start; margin-bottom: 24px; }
.c-hero h1 { font-weight: 800; font-size: clamp(34px, 5.6vw, 76px); line-height: 1.1; letter-spacing: -0.055em; margin: 0 0 24px; max-width: 16em; }
.c-hero h1 .ac { color: var(--accent); }
.c-hero .lead { color: var(--muted-d); font-size: 18px; max-width: 38em; margin: 0; }

.c-info { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); margin: 0; }
.c-info div { padding: 22px 20px 22px 0; }
.c-info div + div { padding-left: 20px; border-left: 1px solid var(--line-d); }
.c-info dt { font-family: var(--en); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); margin-bottom: 6px; }
.c-info dd { margin: 0; font-weight: 600; font-size: 16px; }

.c-out { list-style: none; margin: 0; padding: 72px 0 120px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.c-out li { border-top: 2px solid var(--accent); padding-top: 18px; }
.c-out .n { font-family: var(--en); font-weight: 600; color: var(--accent); font-size: 15px; }
.c-out b { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.25; margin: 8px 0 8px; }
.c-out span { color: var(--muted-d); font-size: 15px; }

.c-body { background: var(--light); color: var(--ink); padding: 110px 0 60px; }
.c-sec { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 0 0 72px; }
.c-sec .lab { position: sticky; top: 96px; align-self: start; }
.c-sec .lab .no { font-family: var(--en); font-weight: 600; color: var(--accent); font-size: 16px; }
.c-sec .lab h2 { font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.045em; line-height: 1.2; margin: 6px 0 0; }
.c-sec .txt { border-top: 1px solid var(--line-l); padding-top: 22px; max-width: 720px; }
.c-sec .txt p { margin: 0 0 16px; font-size: 17px; color: #2b2b2b; }
.c-sec .txt ul { margin: 0 0 16px; padding: 0; list-style: none; }
.c-sec .txt li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line-l); font-size: 17px; color: #2b2b2b; }
.c-sec .txt li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.c-sec .txt strong { color: var(--ink); }
.callout { background: var(--dark); color: var(--white); border-radius: 16px; padding: 26px 28px; margin: 0 0 20px; }
.callout b { display: block; font-size: 20px; letter-spacing: -0.03em; margin-bottom: 6px; }
.callout b::before { content: "✳ "; color: var(--accent); }
.callout { color: #d6d6d6; }
.note { font-size: 14px !important; color: var(--muted-l) !important; }
.sub-band { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-top: 2px solid var(--ink); padding: 20px 0 0; margin: 24px 0 64px; }
.sub-band .k { font-family: var(--en); font-weight: 700; color: var(--accent); font-size: 15px; letter-spacing: .08em; }
.sub-band h2 { margin: 0; font-weight: 800; font-size: clamp(24px, 3.4vw, 42px); letter-spacing: -0.045em; line-height: 1.2; }

.c-next { padding: 110px 0 40px; text-align: center; }
.c-next .en { color: var(--muted-d); font-weight: 600; letter-spacing: .14em; font-size: 13px; text-transform: uppercase; margin: 0 0 18px; }
.c-next a.big { display: inline-block; font-weight: 800; font-size: clamp(32px, 6vw, 80px); line-height: 1.1; letter-spacing: -0.055em; text-decoration: none; transition: color .2s; }
.c-next a.big:hover { color: var(--accent); }
.c-next a.big .arr { color: var(--accent); }
.c-next .alt { display: block; margin-top: 26px; color: var(--muted-d); font-family: var(--en); font-weight: 600; text-decoration: none; }
.c-next .alt:hover { color: var(--white); }

@media (max-width: 900px) {
  .c-info { grid-template-columns: 1fr 1fr; }
  .c-info div:nth-child(3) { padding-left: 0; border-left: 0; }
  .c-info div:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .c-out { grid-template-columns: 1fr; gap: 28px; }
  .c-sec { grid-template-columns: 1fr; gap: 16px; }
  .c-sec .lab { position: static; }
}
@media (max-width: 640px) {
  .c-hero { padding: 104px 0 48px; }
  .c-hero .lead { font-size: 16px; }
  .c-out { padding: 48px 0 80px; }
  .c-body { padding: 72px 0 32px; }
  .c-sec { padding-bottom: 56px; }
  .c-sec .txt p, .c-sec .txt li { font-size: 16px; }
  .c-next { padding: 80px 0 32px; }
}
