/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --ink: #111110;
  --paper: #F2EFE9;
  --vermilion: #E8431E;
  --on-vermilion: #FFF3EE;
  --soft: #E4DED4;
  --rule: rgba(17, 17, 16, 0.16);

  --max-width: 1440px;
  --pad-x: clamp(20px, 5vw, 80px);

  --font-kr: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', 'Playfair Display', serif;

  --fs-display: clamp(56px, 11vw, 180px);
  --fs-section-title: clamp(32px, 5vw, 72px);
  --fs-label: 11px;
  --fs-body: 13px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

body {
  font-family: var(--font-kr);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus {
  left: var(--pad-x);
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 3px;
}

/* ==========================================================================
   Typography primitives
   ========================================================================== */
.label {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.display {
  font-family: var(--font-kr);
  font-size: var(--fs-display);
  letter-spacing: -0.02em;
  line-height: 0.92;
  font-weight: 700;
  margin: 0;
}

.display .en {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.56em;
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
}

.section-title {
  font-family: var(--font-kr);
  font-size: var(--fs-section-title);
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-weight: 700;
  margin: 0;
}

.body-copy {
  font-size: var(--fs-body);
  line-height: 1.75;
  columns: 2;
  column-gap: 40px;
}
@media (max-width: 768px) {
  .body-copy { columns: 1; }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.4s var(--ease-out);
}
.site-nav.on-dark { color: var(--paper); }

.site-nav__group {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
}

.site-nav__group a {
  position: relative;
  padding-bottom: 2px;
}
.site-nav__group a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.site-nav__group a:hover::after,
.site-nav__group a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 768px) {
  .site-nav__group--left li:not(:first-child) { display: none; }
}

/* ==========================================================================
   Placeholder asset box (used until real files are dropped in)
   ========================================================================== */
.placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.placeholder__label {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink);
  opacity: 0.55;
  word-break: break-all;
}

/* ==========================================================================
   Fade-up (JS toggles .is-visible)
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100svh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 72px;
  padding-bottom: 40px;
}

.hero__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
}

.hero__portrait {
  position: relative;
  z-index: 2;
  height: min(62vh, 512px);
  max-width: 100%;
}
.hero__portrait img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.hero__portrait .placeholder {
  aspect-ratio: 3 / 4;
  height: 100%;
  width: auto;
}

.hero__name {
  position: absolute;
  z-index: 1;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
  text-align: center;
  pointer-events: none;
  width: 100%;
}

.hero__name .display { color: var(--vermilion); }

.hero__meta {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 24px;
}

.hero__meta .label { opacity: 0.7; }

@media (max-width: 768px) {
  .hero__portrait { height: min(52vh, 420px); }
  .hero__meta { flex-direction: row; }
}

/* ==========================================================================
   Section stubs (placeholder — filled in next stages)
   ========================================================================== */
.section-stub {
  min-height: 40vh;
  display: flex;
  align-items: center;
  padding-block: 120px;
  border-top: 1px solid var(--rule);
}

/* ==========================================================================
   Introduction
   ========================================================================== */
.intro {
  background: var(--vermilion);
  color: var(--on-vermilion);
  padding-block: clamp(80px, 12vw, 160px);
}

.intro__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: clamp(48px, 8vw, 96px);
}

.intro__head-left .section-title { margin-bottom: 12px; }
.intro__head-left .label { opacity: 0.8; }

.intro__links {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
}
.intro__links a { position: relative; }
.intro__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.intro__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.intro__body {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .intro__head { flex-direction: column; gap: 32px; }
}

/* ==========================================================================
   Metrics
   ========================================================================== */
.metrics {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(72px, 10vw, 140px);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.metrics__number {
  display: block;
  font-family: var(--font-kr);
  font-size: clamp(24px, 3.1vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.metrics__label {
  margin-top: 12px;
  font-size: var(--fs-label);
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.72;
  line-height: 1.5;
  word-break: keep-all;
}

@media (max-width: 900px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}
@media (max-width: 480px) {
  .metrics__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Ventures
   ========================================================================== */
.ventures { background: var(--paper); color: var(--ink); }

.venture {
  padding-block: clamp(64px, 9vw, 128px);
  border-top: 1px solid var(--rule);
}

.venture__head {
  margin-bottom: 20px;
}
.venture__head .label { opacity: 0.55; margin-bottom: 10px; display: block; }
.venture__head .section-title { margin-bottom: 6px; }
.venture__head .subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 20px);
  opacity: 0.6;
}

.venture__period {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.venture__period .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vermilion);
  flex: none;
}

.venture__lead {
  max-width: 780px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.85;
  margin-bottom: 20px;
}

.venture__meta {
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.venture__meta dt {
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  opacity: 0.5;
  margin-bottom: 8px;
}
.venture__meta dd {
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .venture__meta { grid-template-columns: repeat(2, 1fr); }
}

/* ---- shot rows (starproxy screens) ---- */
.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-block: clamp(32px, 5vw, 56px);
}
.shot-row figure { margin: 0; }
.shot-row img,
.shot-row .placeholder { aspect-ratio: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.shot-row figcaption {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.6;
}
@media (max-width: 768px) {
  .shot-row {
    grid-template-columns: repeat(3, 78vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 4px;
  }
  .shot-row figure { scroll-snap-align: start; }
}


/* ---- tech comparison (own block, flipped to vermilion) ---- */
.tech-compare {
  background: var(--vermilion);
  color: var(--on-vermilion);
  padding: clamp(32px, 5vw, 64px);
  margin-block: clamp(40px, 6vw, 72px);
}
.tech-compare__title {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.tc-table { width: 100%; }
.tc-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: end;
  padding-block: 14px;
  border-bottom: 1px solid rgba(255, 243, 238, 0.22);
}
.tc-row--head {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  padding-bottom: 10px;
}
.tc-row--head span:first-child { opacity: 0.4; }
.tc-cell__value {
  display: block;
  font-family: var(--font-kr);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tc-cell--own .tc-cell__value { color: var(--paper); }
.tc-cell__bar {
  height: 1px;
  background: rgba(255, 243, 238, 0.35);
}
.tc-cell--own .tc-cell__bar { background: var(--paper); }
.tc-row__label {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
}
.tech-compare__footnote {
  margin-top: 20px;
  font-size: 11px;
  line-height: 1.7;
  opacity: 0.6;
  max-width: 620px;
}
@media (max-width: 768px) {
  .tc-row { grid-template-columns: 1fr 1fr 1fr; }
  .tc-row > :first-child { grid-column: 1 / -1; }
}

/* ---- cards ---- */
.tech-cards { margin-block: clamp(40px, 6vw, 72px); }
.tech-cards__title {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  margin-bottom: 20px;
}
.tech-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.tech-card {
  background: var(--soft);
  border: 1px solid var(--rule);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tech-card__name { font-size: 14px; font-weight: 700; }
.tech-card__time {
  font-family: var(--font-kr);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tech-card__detail { font-size: 12px; line-height: 1.7; opacity: 0.72; }
.tech-card--own {
  background: var(--vermilion);
  color: var(--on-vermilion);
  border-color: var(--vermilion);
}
.tech-card--own .tech-card__time { font-size: clamp(40px, 5vw, 72px); }
.tech-card--own .tech-card__detail { opacity: 0.85; }

@media (max-width: 768px) {
  .tech-cards__grid { grid-template-columns: 1fr; }
}

/* ---- video block ---- */
.venture-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  margin-block: clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.venture-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.venture-video__fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.venture-video.no-video .venture-video__fallback { display: flex; }
.venture-video.no-video video { display: none; }
.venture-video__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ---- content grid (9:16) ---- */
.venture-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-top: clamp(40px, 6vw, 72px);
}
.venture-grid img,
.venture-grid .placeholder { aspect-ratio: 9 / 16; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .venture-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- episode: phone frames ---- */
.phone-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  margin-block: clamp(32px, 5vw, 56px);
  max-width: 100%;
}
.phone-frame {
  border: 1px solid var(--rule);
  border-radius: 28px;
  padding: 10px;
  background: var(--paper);
}
.phone-frame img,
.phone-frame .placeholder { aspect-ratio: 9 / 19.5; width: 100%; height: auto; border-radius: 18px; object-fit: cover; }
@media (max-width: 900px) {
  .phone-row { grid-template-columns: repeat(3, 1fr); max-width: 720px; }
}
@media (max-width: 600px) {
  .phone-row { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
}
.venture-wide {
  margin-block: clamp(32px, 5vw, 56px);
}
.venture-wide img,
.venture-wide .placeholder { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; }
/* 이미지가 아직 없을 때 빈 회색 블록이 화면을 잡아먹지 않도록 높이 제한 */
.venture-wide .placeholder { max-height: 320px; }

/* ==========================================================================
   Building Now
   ========================================================================== */
.building-now {
  background: var(--soft);
  padding-block: clamp(96px, 14vw, 180px);
}
.building-now .label {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
}
.building-now .section-title { max-width: 720px; margin-bottom: 24px; }
.building-now p {
  max-width: 620px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.85;
  opacity: 0.85;
}

/* ==========================================================================
   Capabilities
   ========================================================================== */
.capabilities {
  background: var(--paper);
  padding-block: clamp(80px, 11vw, 160px);
}
.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.capabilities__col {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.capabilities__col h3 {
  font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 16px;
}
.capabilities__col ul { display: flex; flex-direction: column; gap: 10px; }
.capabilities__col li {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.8;
}
@media (max-width: 768px) {
  .capabilities__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Credentials
   ========================================================================== */
.credentials {
  background: var(--paper);
  padding-block: clamp(80px, 11vw, 160px);
}
.credentials .section-title { margin-bottom: clamp(40px, 6vw, 72px); }
.credentials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.credentials__col h3.label { margin-bottom: 16px; opacity: 0.55; }
.credentials__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding-block: 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.6;
}
.credentials__item:last-child { border-bottom: 1px solid var(--rule); }
.credentials__year { opacity: 0.5; font-variant-numeric: tabular-nums; }
@media (max-width: 768px) {
  .credentials__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   Contact / Footer
   ========================================================================== */
.contact {
  background: var(--vermilion);
  color: var(--on-vermilion);
  padding-top: clamp(64px, 9vw, 100px);
  padding-bottom: clamp(24px, 4vw, 40px);
}
.contact__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(48px, 10vw, 120px);
}
.contact__row a {
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 500;
}
.contact__row a:hover { text-decoration: underline; }
.contact__col { display: flex; flex-direction: column; gap: 6px; }
.contact__signoff {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12vw;
  line-height: 0.9;
  letter-spacing: -0.02em;
  padding-block: 0.02em;
}
@media (max-width: 768px) {
  .contact__row { flex-direction: column; gap: 24px; }
  .contact__signoff { font-size: 15vw; }
}

/* 히어로 한 줄 포지셔닝 — 한글이라 트래킹/대문자 해제 */
.label--ko { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* ---- 콘텐츠 그리드: 9:16 릴스 영상 3개 ---- */
.venture-grid--video { grid-template-columns: repeat(3, 1fr); }
.venture-grid--video .venture-video { aspect-ratio: 9 / 16; margin-block: 0; }
@media (max-width: 768px) {
  .venture-grid--video { grid-template-columns: repeat(3, 1fr); }
}

/* ---- 스타프록시: 세로형 UI 캡처 3열 + 프로세스 플로우 ---- */
.shot-row--tall { gap: clamp(12px, 1.6vw, 20px); }
.shot-row--tall img,
.shot-row--tall .placeholder {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--rule);
}
.venture-flow { margin-block: clamp(32px, 5vw, 56px); }
.venture-flow img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--rule);
}
.venture-flow figcaption {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.6;
}

/* ---- 벤처 제목 아래 사이트 링크 ---- */
.venture__link {
  display: block;
  width: fit-content;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.venture__link:hover,
.venture__link:focus-visible { color: var(--vermilion); border-bottom-color: var(--vermilion); }
.venture__link span { margin-left: 2px; font-size: 11px; }

/* ---- 에피소드: 리뷰 분석 SaaS 대시보드 ---- */
.venture-wide img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--rule);
}
.venture-wide figcaption {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.6;
}
.venture-wide .venture__link { margin-top: 8px; font-size: 11px; }

/* ---- 벤처 내 성과 지표 스트립 ---- */
.venture-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 40px);
  margin-block: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.venture-metrics dt {
  font-family: var(--font-kr);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.venture-metrics dd {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  opacity: 0.6;
}
@media (max-width: 768px) {
  .venture-metrics { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}
