/* =========================================================
  HYE02 PORTFOLIO STYLE
  - 주요 색상/여백/반경/글자 크기는 아래 변수에서 수정하세요.
========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Space+Mono&display=swap");

:root {
  --bg: #F4F5F8;
  --bg-soft: #ECEDF2;
  --text: #0D0E13;
  --ink: #0D0E13;
  --muted: #5B5F6E;
  --sub: #5B5F6E;
  --dim: rgba(13, 14, 19, 0.48);
  --line: rgba(13, 14, 19, 0.12);
  --line-strong: rgba(13, 14, 19, 0.22);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --accent: #3336EE;
  --accent-2: #9B95FF;
  --accent-ink: #FFFFFF;
  --tint: #E6E7FF;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --max: 1600px;
  --section-x: clamp(20px, 4vw, 72px);
  --section-y: clamp(96px, 13vw, 190px);
  --radius-lg: 8px;
  --radius-md: 6px;
  --header-h: 82px;

  --font-display: "Archivo", "Pretendard Variable", Pretendard, sans-serif;
  --font-body: "Pretendard Variable", Pretendard, "Archivo", sans-serif;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0A0B10;
  --bg-soft: #0F1017;
  --text: #F0F0F6;
  --ink: #F0F0F6;
  --muted: #9AA0B2;
  --sub: #9AA0B2;
  --dim: rgba(240, 240, 246, 0.48);
  --line: rgba(240, 240, 246, 0.13);
  --line-strong: rgba(240, 240, 246, 0.26);
  --glass: rgba(20, 21, 30, 0.72);
  --glass-strong: rgba(20, 21, 30, 0.88);
  --accent: #9B95FF;
  --accent-2: #BDB9FF;
  --accent-ink: #0A0B10;
  --tint: #1B1C31;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 18% 12%, rgba(51, 54, 238, 0.10), transparent 26%),
    radial-gradient(circle at 76% 20%, rgba(155, 149, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #F4F5F8 0%, #ECEDF2 52%, #F4F5F8 100%);
}

:root[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(155, 149, 255, 0.14), transparent 26%),
    radial-gradient(circle at 76% 20%, rgba(155, 149, 255, 0.10), transparent 32%),
    linear-gradient(180deg, #0A0B10 0%, #0F1017 52%, #0A0B10 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #08090c;
  background: var(--accent);
  border-radius: 999px;
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
  HEADER
========================================================= */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  width: 100%;
  height: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem max(2.5vw, 20px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Index header shared by archive and sub pages */
body > header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background .5s var(--ease);
}

.nav {
  width: min(1400px, 95vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.logo sup {
  color: var(--accent);
  font-size: .6em;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  font-size: .86rem;
  font-weight: 600;
  color: var(--sub);
}

.nav-links a {
  transition: color .25s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.pill {
  font-size: .78rem;
  font-weight: 700;
  padding: .5rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  transition: all .3s var(--ease);
}

.pill:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.pill.solid {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.pill.solid:hover {
  filter: brightness(1.1);
}

#themeBtn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: transform .4s var(--ease), background .3s;
}

#themeBtn:hover {
  transform: rotate(40deg);
  background: var(--tint);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: -0.03em;
  transition: color 0.25s ease;
}
.brand:hover { color: var(--accent); }

.brand sup {
  color: var(--accent);
  font-size: 0.6em;
}

.brand-mark {
  font-size: 18px;
  font-weight: 800;
}

.brand-sub {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.16em;
}

/* ── GNB 전체 ── */
.gnb {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

/* ── 중앙 메뉴 그룹 ── */
.gnb-center {
  display: flex;
  align-items: center;
}

.gnb-center a {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  position: relative;
  transition: color 0.25s ease;
}

.gnb-center a + a::before {
  display: none;
}

.gnb-center a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.gnb-center a:hover,
.gnb-center a.is-active {
  color: var(--accent);
}

.gnb-center a:hover::after,
.gnb-center a.is-active::after {
  transform: scaleX(1);
}

/* ── 구분선 ── */
.gnb-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 16px;
  flex-shrink: 0;
}

/* ── 우측 메뉴 그룹 ── */
.gnb-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gnb-archive {
  padding: 7px 14px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid rgba(13, 14, 19, 0.22);
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.gnb-archive:hover {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.gnb-aboutme {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  background: var(--accent);
  border-radius: 999px;
  transition: filter 0.25s ease;
}
.gnb-aboutme:hover {
  filter: brightness(1.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle-icon {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.site-header.is-menu-open .menu-toggle-icon {
  transform: rotate(90deg);
}

/* =========================================================
  SHARED ELEMENTS (eyebrow · buttons · placeholders)
========================================================= */
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.empty-image {
  position: relative;
}

.empty-image::before {
  content: "IMAGE AREA";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.32);
  font-size: 12px;
  letter-spacing: 0.18em;
  pointer-events: none;
}

.empty-image::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.work-info span,
.card-label {
  display: inline-block;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, filter 0.25s ease;
}

.btn-primary {
  color: #050607;
  background: var(--accent);
}

/* =========================================================
  COMMON SECTION
========================================================= */
.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: var(--section-y) var(--section-x);
}

.section-head {
  max-width: 860px;
  margin-bottom: clamp(36px, 5vw, 76px);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.065em;
  word-break: keep-all;
}

.glass-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr;
  gap: 18px;
}

.glass-card {
  padding: clamp(24px, 3vw, 42px);
}

.about-main p {
  margin: 0;
  color: rgba(244, 245, 248, 0.82);
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.clean-list,
.tag-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.clean-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(244, 245, 248, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.tool-icon-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.tool-icon-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tool-icon-list img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.tool-icon-list span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* WORKS */
.works-list {
  display: grid;
  gap: clamp(28px, 5vw, 88px);
  margin-top: clamp(64px, 9vw, 140px);
  padding-top: clamp(48px, 7vw, 100px);
  border-top: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 5vw, 86px);
}

.work-row.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.work-row.reverse .work-visual {
  order: 2;
}

.work-visual {
  min-height: clamp(320px, 44vw, 620px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
    radial-gradient(circle at 20% 15%, rgba(91, 79, 207, 0.20), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(140,199,255,0.20), transparent 36%);
}

.work-info h3 {
  margin: 12px 0 14px;
  font-size: clamp(42px, 5vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.work-info p {
  max-width: 460px;
  margin: 0 0 24px;
  color: var(--muted);
  word-break: keep-all;
}

.work-meta {
  list-style: none;
  margin: 0 0 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.work-meta li {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 18px;
}

.work-meta-label {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-meta-value {
  color: var(--text);
  font-size: 15px;
  word-break: keep-all;
}

.work-meta-logos {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

.work-meta-logo-row {
  display: block;
}

.work-meta-logo-row .work-meta-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

/* 모든 로고를 동일한 둥근 타일에 담아 가로로 균형 있게 정렬 */
.work-meta-logos img,
.work-meta-slot {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.work-meta-logos img {
  object-fit: contain;
}

/* 로고를 넣기 전 빈 자리 표시 (이미지 추가 후 자리 표시는 지워도 됩니다) */
.work-meta-slot {
  background: none;
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

@media (max-width: 560px) {
  .work-meta li {
    grid-template-columns: 96px 1fr;
    gap: 12px;
  }

  .work-actions {
    gap: 10px 18px;
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 800;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(5px);
}

/* FEATURED PROJECTS */
.featured-projects {
  padding-top: 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(48px, 7vw, 100px);
  gap: clamp(42px, 6vw, 96px);
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "content visual"
    "details visual";
  align-items: start;
  column-gap: clamp(22px, 4vw, 72px);
  row-gap: clamp(14px, 1.6vw, 24px);
  padding-bottom: clamp(42px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
}

.featured-project:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.featured-project:nth-child(even) {
  grid-template-columns: minmax(480px, 1.12fr) minmax(0, 0.88fr);
  grid-template-areas:
    "visual content"
    "visual details";
}

.featured-project__content {
  grid-area: content;
}

.featured-project__details {
  grid-area: details;
  align-self: start;
}

.featured-project__visual {
  grid-area: visual;
  width: 100%;
  min-width: 0;
  height: clamp(420px, 34vw, 640px);
  min-height: 0;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.featured-project__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.featured-project:hover .featured-project__visual {
  border-color: rgba(255, 255, 255, 0.24);
}

.featured-project:hover .featured-project__visual img {
  transform: scale(1.025);
}

.featured-project__kicker {
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-project h3 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(42px, 5vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  overflow-wrap: anywhere;
}

.featured-project__content p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.72;
  word-break: keep-all;
}

.featured-project__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 22px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.featured-project__meta div {
  min-width: 0;
  padding: clamp(16px, 1.6vw, 24px);
  background: rgba(255, 255, 255, 0.045);
}

.featured-project__meta dt {
  margin: 0 0 10px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.featured-project__meta dd {
  margin: 0;
  color: rgba(244, 245, 248, 0.88);
  font-size: 14px;
  line-height: 1.55;
  word-break: keep-all;
}

.featured-project__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.featured-project__chips::before {
  content: "TOOLS";
  flex: 0 0 100%;
  margin-bottom: 2px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.featured-project__chips--ai::before {
  content: "AI WORKFLOW";
}

.featured-project__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(244, 245, 248, 0.76);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  line-height: 1;
}

.featured-project__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: clamp(22px, 3vw, 36px);
}

.featured-project__primary .material-symbols-rounded {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.featured-project__primary:hover .material-symbols-rounded {
  transform: translateX(5px);
}

.featured-project__link {
  position: relative;
  padding-bottom: 4px;
  color: var(--text);
}

.featured-project__link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.34;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.featured-project__link::after {
  content: "";
}

.featured-project__link:hover {
  color: var(--accent);
}

.featured-project__link:hover::before {
  opacity: 1;
  transform: translateY(-2px);
}

/* PROCESS — 가로 타임라인 */
.process-timeline {
  --dot: 38px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 점들을 잇는 기준선(흐릿한 레일) */
.process-timeline::before {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2);
  left: calc(var(--dot) / 2);
  right: 8px;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

/* 스크롤 진입 시 왼쪽 → 오른쪽으로 그려지는 강조선 (얇고 연하게) */
.process-timeline::after {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2);
  left: calc(var(--dot) / 2);
  right: 8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(91, 79, 207, 0.4), rgba(91, 79, 207, 0.12));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-timeline.is-active::after {
  transform: scaleX(1);
}

.process-step {
  position: relative;
  padding-right: 8px;
}

.process-dot {
  position: relative;
  display: block;
  width: var(--dot);
  height: var(--dot);
  margin-bottom: 26px;
  border-radius: 50%;
  /* 밝은 라임 코어 + 부드러운 외곽 헤일로 (업로드 이미지 톤) */
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(91, 79, 207, 0.08);
  /* 기본값은 '보임' — JS가 실패해도 원이 항상 보이도록 */
  transform: scale(1);
  opacity: 1;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease,
    box-shadow 0.4s ease;
}

/* JS가 준비되면 등장 애니메이션용으로 잠시 숨김 */
.process-timeline.anim-ready .process-dot {
  transform: scale(0);
  opacity: 0;
}

/* 점 밖을 감싸는 외곽 원 — 커졌다 작아졌다 반복 */
.process-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(91, 79, 207, 0.45);
  opacity: 0;
}

.process-timeline.is-active .process-dot {
  transform: scale(1);
  opacity: 1;
}

/* 점이 나타난 뒤 외곽 원이 순서대로 커졌다 작아졌다 반복 */
.process-timeline.is-active .process-dot::after {
  animation: processPulse 2s ease-in-out infinite;
}

/* 순차적으로 등장하도록 단계별 딜레이 */
.process-step:nth-child(1) .process-dot { transition-delay: 0.05s; }
.process-step:nth-child(2) .process-dot { transition-delay: 0.2s; }
.process-step:nth-child(3) .process-dot { transition-delay: 0.35s; }
.process-step:nth-child(4) .process-dot { transition-delay: 0.5s; }
.process-step:nth-child(5) .process-dot { transition-delay: 0.65s; }

/* 외곽 원이 1→2→3→4→5 순서로 커졌다 작아지도록 딜레이 */
.process-step:nth-child(1) .process-dot::after { animation-delay: 0.7s; }
.process-step:nth-child(2) .process-dot::after { animation-delay: 1.0s; }
.process-step:nth-child(3) .process-dot::after { animation-delay: 1.3s; }
.process-step:nth-child(4) .process-dot::after { animation-delay: 1.6s; }
.process-step:nth-child(5) .process-dot::after { animation-delay: 1.9s; }

.process-num {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.process-step h3 {
  margin: 0 0 10px;
  font-size: clamp(19px, 1.6vw, 24px);
  letter-spacing: -0.04em;
}

/* 단계별 핵심 문구(소제목) */
.process-lead {
  margin: 0 0 12px !important;
  color: var(--text) !important;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

/* 마우스를 올린 단계는 강조 */
.process-step:hover .process-dot {
  border-color: rgba(91, 79, 207, 0.55);
  box-shadow: 0 0 0 6px rgba(91, 79, 207, 0.12), 0 16px 40px rgba(91, 79, 207, 0.18);
}

@keyframes processPulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.55); opacity: 0.12; }
}

/* CONTACT */
.contact-section {
  padding-bottom: 90px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 7vw, 86px);
}

.contact-card::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(91, 79, 207, 0.16);
  filter: blur(70px);
}

.contact-card h2 {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 94px);
  line-height: 1;
  letter-spacing: -0.075em;
  word-break: keep-all;
}

.contact-card p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  color: var(--muted);
}

.contact-card .btn {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 26px var(--section-x) 42px;
  color: var(--dim);
  font-size: 13px;
}

/* =========================================================
  RESPONSIVE
========================================================= */
@media (max-width: 1200px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 태블릿: 가로 5칸 → 세로 타임라인으로 전환 */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-timeline::before,
  .process-timeline::after {
    top: calc(var(--dot) / 2);
    bottom: calc(var(--dot) / 2);
    left: calc(var(--dot) / 2);
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-timeline::after {
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(91, 79, 207, 0.35));
    transform: scaleY(0);
    transform-origin: top center;
  }

  .process-timeline.is-active::after {
    transform: scaleY(1);
  }

  .process-step {
    display: grid;
    grid-template-columns: var(--dot) 1fr;
    column-gap: 22px;
    align-items: start;
    padding: 0 0 40px;
  }

  .process-step .process-dot {
    grid-row: 1 / 4;
    margin-bottom: 0;
  }
}

@media (max-width: 860px) {
  .process-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .process-timeline::before,
  .process-timeline::after {
    display: none;
  }

  .process-step {
    display: block;
    min-height: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
  }

  .process-step .process-dot {
    width: 10px;
    height: 10px;
    margin-bottom: 16px;
  }

  .process-dot::after {
    display: none;
  }

  .process-step h3 {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .process-lead {
    margin-bottom: 0 !important;
    font-size: 14px !important;
    line-height: 1.45;
  }

  .process-step p:not(.process-lead) {
    display: none;
  }

  .site-header {
    top: 0;
    height: auto;
    padding: 0.9rem 16px;
    border-radius: 0;
  }

  .brand-sub {
    display: none;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .menu-toggle + .gnb {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 84px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--glass-strong);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 50px rgba(13, 14, 19, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .menu-toggle + .gnb .gnb-center,
  .menu-toggle + .gnb .gnb-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .menu-toggle + .gnb .gnb-divider {
    width: 100%;
    height: 1px;
    margin: 4px 0;
  }

  .menu-toggle + .gnb .gnb-center a + a::before {
    display: none;
  }

  .site-header.is-menu-open .menu-toggle + .gnb {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .gnb a {
    padding: 11px 12px;
    font-size: 15px;
  }

  .about-grid,
  .work-row,
  .work-row.reverse {
    grid-template-columns: 1fr;
  }

  .work-row.reverse .work-visual {
    order: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --section-x: 18px;
    --section-y: 82px;
  }

  .section-head h2,
  .contact-card h2 {
    letter-spacing: -0.055em;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-step {
    padding: 16px;
  }

  .process-step .process-dot {
    margin-bottom: 12px;
  }

  .work-visual {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
  ARCHIVE / PREVIOUS WORKS
  - 대표 프로젝트 외의 기존 작업 파일과 링크를 모아 보여주는 영역입니다.
========================================================= */
.section-desc {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  word-break: keep-all;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.archive-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035)),
    radial-gradient(circle at 20% 0%, rgba(91, 79, 207, 0.12), transparent 34%);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.archive-type {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-card h3 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.archive-card p {
  margin: 0;
  color: var(--muted);
  word-break: keep-all;
}

.archive-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.archive-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: rgba(244,245,248,0.82);
  background: rgba(255,255,255,0.055);
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.archive-links a::after {
  content: "↗";
  color: var(--dim);
}

.archive-links a:hover,
.archive-links a:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.105);
  transform: translateY(-2px);
}

@media (max-width: 1200px) {
  .archive-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .archive-card {
    min-height: auto;
  }
}

/* =========================================================
  EXPERIENCE FLOW / COMPANY WORKS
  - 이전 회사 작업물을 왼쪽 설명 + 오른쪽 흐르는 썸네일 구조로 보여줍니다.
========================================================= */
.company-flow-section {
  padding-top: clamp(110px, 12vw, 180px);
}

.company-flow-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(34px, 5vw, 86px);
  align-items: start;
}

.company-flow-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.company-flow-copy h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 82px);
  line-height: 1;
  letter-spacing: -0.075em;
  word-break: keep-all;
}

.company-flow-copy p:not(.eyebrow) {
  max-width: 480px;
  margin: 24px 0 30px;
  color: var(--muted);
  word-break: keep-all;
}

.company-flow-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 480px;
}

.company-flow-actions .btn {
  flex-shrink: 1;
}

.company-flow-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  min-height: 780px;
  overflow: hidden;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.company-flow-track::before,
.company-flow-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 110px;
  pointer-events: none;
}

.company-flow-track::before {
  top: 0;
  background: linear-gradient(180deg, rgba(6,7,10,0.92), transparent);
}

.company-flow-track::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(6,7,10,0.92), transparent);
}

.flow-column {
  display: grid;
  gap: 18px;
  animation: companyFlowUp 22s linear infinite;
}

.flow-column-b {
  transform: translateY(-90px);
  animation-name: companyFlowDown;
  animation-duration: 26s;
}

.company-flow-track:hover .flow-column {
  animation-play-state: paused;
}

.company-flow-controls {
  display: none;
}

.company-work-card {
  display: block;
  min-height: 330px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035));
  box-shadow: 0 24px 70px rgba(0,0,0,0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  a.company-work-card:hover {
    transform: translateY(-6px);
    border-color: rgba(91, 79, 207, 0.5);
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  }
}

.company-work-card.large {
  min-height: 410px;
}

.company-thumb {
  height: 230px;
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
    radial-gradient(circle at 20% 20%, rgba(91, 79, 207, 0.18), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(140,199,255,0.16), transparent 36%);
}

.company-work-card.large .company-thumb {
  height: 300px;
}

.company-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform-origin: top center;
}

.company-work-card span {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.company-work-card h3 {
  margin: 7px 0 6px;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.company-work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  word-break: keep-all;
}

@keyframes companyFlowUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-260px); }
}

@keyframes companyFlowDown {
  0% { transform: translateY(-260px); }
  100% { transform: translateY(0); }
}

/* =========================================================
  ARCHIVE DETAIL PAGE
  - archive.html 전용 리스트 페이지입니다.
========================================================= */
body.archive-page {
  --archive-bg: #f5f5f1;
  --archive-text: #07080a;
  --archive-muted: rgba(7,8,10,0.58);
  --archive-line: rgba(7,8,10,0.13);
  color: var(--archive-text);
  background: var(--archive-bg);
}

body.archive-page::before {
  display: none;
}

.archive-page .site-header {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-color: var(--line);
  box-shadow: none;
}

.archive-page .brand-sub,
.archive-page .gnb a,
.archive-page .page-kicker,
.archive-page .archive-card-category,
.archive-page .archive-card-year {
  color: var(--archive-muted);
}

.archive-page .gnb-aboutme {
  color: #fff;
}

.archive-page .menu-toggle {
  color: var(--archive-text);
  border-color: var(--archive-line);
  background: rgba(7, 8, 10, 0.05);
}

.archive-page .menu-toggle-icon {
  color: currentColor;
}

@media (max-width: 860px) {
  .archive-page .menu-toggle {
    display: grid;
    color: var(--archive-text);
    border-color: var(--archive-line);
    background: rgba(7, 8, 10, 0.06);
  }

  .archive-page .menu-toggle + .gnb {
    border-color: var(--archive-line);
    background: rgba(245, 245, 241, 0.96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  }

  .archive-page .menu-toggle + .gnb a {
    color: var(--archive-text);
  }

  .archive-page .menu-toggle + .gnb .gnb-aboutme {
    color: #fff;
  }

  .archive-page .gnb-divider {
    background: var(--archive-line);
  }
}

.archive-page-main {
  padding: 128px var(--section-x) 80px;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.archive-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.55fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

.page-number {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
}

.archive-hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.archive-hero p {
  margin: 0;
  color: var(--archive-muted);
  word-break: keep-all;
}

.archive-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.archive-filter-row button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid var(--archive-line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--archive-text);
  background: rgba(255,255,255,0.52);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.archive-filter-row button:hover {
  background: rgba(255,255,255,0.85);
}

.archive-filter-row button.is-active {
  color: #f5f5f1;
  background: #07080a;
  border-color: #07080a;
}

.archive-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.archive-detail-card {
  position: relative;
  display: block;
  padding: 10px 10px 16px;
  border: 1px solid var(--archive-line);
  border-radius: 6px;
  background: rgba(255,255,255,0.54);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.archive-detail-card:hover,
.archive-detail-card:focus-visible {
  transform: none;
  border-color: rgba(7,8,10,0.22);
  box-shadow: 0 22px 50px rgba(0,0,0,0.13);
}

.archive-detail-thumb {
  position: relative;
  height: 210px;
  margin-bottom: 13px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(7,8,10,0.08);
  background:
    linear-gradient(135deg, rgba(7,8,10,0.12), rgba(7,8,10,0.025)),
    radial-gradient(circle at 20% 20%, rgba(255,201,97,0.35), transparent 36%),
    radial-gradient(circle at 84% 72%, rgba(101,152,255,0.23), transparent 38%);
}

.archive-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform-origin: top center;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}

.archive-detail-card:hover .archive-detail-thumb img {
  transform: none;
}

/* 호버 시 우상단 화살표 */
.archive-detail-thumb::after {
  content: "arrow_outward";
  font-family: "Material Symbols Rounded";
  position: absolute;
  top: 10px; right: 10px;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  color: #07080a;
  background: rgba(245,245,241,0.92);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(-4px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.archive-detail-card:hover .archive-detail-thumb::after,
.archive-detail-card:focus-visible .archive-detail-thumb::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 외부 링크(Live) 카드 표시 */
.archive-detail-card[target="_blank"] .archive-detail-thumb::before {
  content: "LIVE";
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #f5f5f1;
  background: #07080a;
}

.archive-detail-card h2 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.archive-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-page-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--section-x) 48px;
  color: var(--archive-muted);
}

/* 필터 개수 배지 */
.archive-filter-row button .filter-count {
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(7,8,10,0.1);
  color: var(--archive-muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.archive-filter-row button.is-active .filter-count {
  background: rgba(245,245,241,0.22);
  color: #f5f5f1;
}

/* 카드 스크롤 등장 */
.archive-detail-card {
  opacity: 0;
  transform: translateY(20px);
}
.archive-detail-card.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.archive-detail-card.is-hidden { display: none; }
@media (prefers-reduced-motion: reduce) {
  .archive-detail-card { opacity: 1; transform: none; }
}

/* 맨 위로 버튼 */
.archive-top-btn {
  position: fixed;
  right: clamp(18px, 3vw, 36px);
  bottom: clamp(18px, 3vw, 36px);
  z-index: 60;
  display: inline-grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: #f5f5f1;
  background: #07080a;
  border: none;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.archive-top-btn.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.archive-top-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 20px 44px rgba(0,0,0,0.3); }
.archive-top-btn .material-symbols-rounded { font-size: 24px; }

/* =========================================================
  WORK DETAIL PAGE (works/work-NN.html)
  - 카드를 클릭하면 열리는 작업물 상세 페이지입니다.
  - 본문(.work-detail-body)의 글은 각 work-NN.html 파일에서 직접 수정합니다.
========================================================= */
.work-detail-main {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 128px var(--section-x) 90px;
}

.work-back {
  display: block;
  width: fit-content;
  margin: 0 0 26px auto;
  padding: 10px 16px;
  border: 1px solid var(--archive-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--archive-muted);
  background: rgba(255,255,255,0.58);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.work-back:hover {
  color: var(--archive-text);
  background: rgba(255,255,255,0.9);
  border-color: rgba(7,8,10,0.22);
}

.work-detail-head {
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--archive-line);
}

.work-detail-title {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.work-detail-tools {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--archive-muted);
}

.work-detail-figure {
  width: 100%;
  margin: 0 auto 44px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.work-detail-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.work-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0 auto 44px;
}

.work-detail-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.work-detail-body {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(7,8,10,0.82);
  word-break: keep-all;
}

.work-detail-body h2 {
  margin: 40px 0 14px;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--archive-text);
}

.work-detail-body h2:first-child {
  margin-top: 0;
}

.work-detail-body p {
  margin: 0 0 16px;
}

.work-detail-body ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.work-detail-body li {
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .work-detail-main {
    padding-top: 116px;
  }
}

@media (max-width: 1200px) {
  .company-flow-layout,
  .archive-hero {
    grid-template-columns: 1fr;
  }

  .company-flow-copy {
    position: relative;
    top: auto;
  }

  .archive-detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .company-flow-track {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    min-height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
  }

  .company-flow-track::before,
  .company-flow-track::after {
    display: none;
  }

  .flow-column,
  .flow-column-b {
    display: contents;
    transform: none;
    animation: none;
  }

  .company-flow-track .company-work-card {
    flex: 0 0 100%;
    min-height: auto;
    scroll-snap-align: start;
  }

  .company-flow-track .company-work-card:hover {
    transform: none;
  }

  .company-flow-track .company-work-card + .company-work-card {
    margin-left: 0;
  }

  .company-flow-track .company-thumb,
  .company-flow-track .company-work-card.large .company-thumb {
    height: clamp(260px, 78vw, 430px);
  }

  .company-flow-track::-webkit-scrollbar {
    display: none;
  }

  .company-flow-controls {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
    margin-left: auto;
  }

  .archive-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-page-main {
    padding-top: 116px;
  }
}

@media (max-width: 560px) {
  .archive-detail-grid {
    grid-template-columns: 1fr;
  }

  .archive-detail-thumb {
    height: 230px;
  }
}

/* =========================================================
  ===== REDESIGN 2026 — HERO · INDEX · CURSOR · INTERACTIONS =====
========================================================= */

/* ---- Custom cursor ---- */
.has-custom-cursor,
.has-custom-cursor * { cursor: none !important; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.has-custom-cursor .cursor-dot,
.has-custom-cursor .cursor-ring { opacity: 1; }

.cursor-dot {
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--accent);
}
.cursor-ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(244, 245, 248, 0.5);
  transition: width 0.28s ease, height 0.28s ease, margin 0.28s ease,
              background 0.28s ease, border-color 0.28s ease;
}
.cursor-ring.is-active {
  width: 62px; height: 62px;
  margin: -31px 0 0 -31px;
  border-color: transparent;
  background: rgba(91, 79, 207, 0.14);
}
.cursor-ring.is-down {
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  background: rgba(91, 79, 207, 0.22);
}

/* ---- Scroll progress ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  width: 100%; height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.scroll-top-btn {
  position: fixed;
  right: clamp(18px, 3vw, 36px);
  bottom: clamp(18px, 3vw, 36px);
  z-index: 190;
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(91, 79, 207, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  filter: brightness(1.08);
}

.scroll-top-btn .material-symbols-rounded {
  font-size: 24px;
}

/* ---- Header refinements ---- */
.site-header { transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  box-shadow: 0 12px 32px rgba(13, 14, 19, 0.08);
}

/* ---- Buttons (override hover transform to avoid magnetic conflict) ---- */
.btn:hover { transform: none; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

/* =========================================================
  INTRO / 3D ROTUNDA
========================================================= */
.intro-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: var(--header-h) var(--section-x);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(480px, 1.25fr) minmax(240px, 0.62fr);
  align-items: center;
  gap: clamp(20px, 3vw, 60px);
  perspective: 1500px;
}

.intro-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.intro-bg .orb { position: absolute; width: 40vw; aspect-ratio: 1; border-radius: 50%; filter: blur(78px); opacity: 0.5; }
.intro-bg .orb-a { left: -14vw; top: 12vh; background: rgba(91, 79, 207, 0.22); }
.intro-bg .orb-b { right: -14vw; bottom: 6vh; background: rgba(109, 135, 255, 0.24); }
.intro-bg .grid-noise {
  position: absolute; inset: 0; opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 76%);
}

.intro-copy { position: relative; z-index: 3; max-width: 560px; }

.intro-title {
  margin: 0;
  font-size: clamp(42px, 5vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.065em;
  font-weight: 900;
}
.intro-title .title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
}
.intro-title .accent {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(244, 245, 248, 0.78);
}
.intro-desc {
  max-width: 430px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
  word-break: keep-all;
}

/* ---- Rotunda 3D ---- */
.rotunda-wrap {
  position: relative;
  z-index: 2;
  height: min(clamp(200px, 18.5vw, 320px), 42vh);
  min-height: 200px;
  transform-style: preserve-3d;
  cursor: grab;
}
.rotunda-wrap:active { cursor: grabbing; }

.rotunda-stage {
  position: absolute;
  left: 50%; top: 50%;
  width: 1px; height: 1px;
  transform-style: preserve-3d;
  will-change: transform;
}

.rotunda-card {
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(300px, 28vw, 500px);
  height: min(clamp(200px, 18.5vw, 300px), 42vh);
  will-change: opacity;
  transform-style: preserve-3d;
}

.card-inner {
  width: 100%; height: 100%;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transform-style: preserve-3d;
}

.project-image {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  background: none;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: translate3d(0, 0, 0);
}

/* ---- Selected panel ---- */
.intro-panel {
  position: relative;
  z-index: 3;
  align-self: end;
  margin-bottom: 11vh;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}
.panel-count { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; font-size: 13px; color: var(--muted); }
.panel-count [data-current] { color: var(--text); font-size: 28px; font-weight: 800; }
.panel-count em { font-style: normal; color: var(--dim); }
.panel-kicker { margin: 0 0 6px; color: var(--accent); font-size: 11px; letter-spacing: 0.2em; }
.intro-panel h2 { margin: 0; font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -0.06em; }
.intro-panel p:not(.panel-kicker) { margin: 12px 0 22px; color: var(--muted); }

/* ---- Control bar ---- */
.intro-control {
  position: absolute;
  left: 50%; bottom: 30px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 8, 12, 0.6);
  backdrop-filter: blur(16px);
}
.intro-control p { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; white-space: nowrap; }
.control-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
}
.control-btn:hover, .control-btn:focus-visible { background: var(--glass-strong); }

@media (min-width: 861px) {
  .intro-copy,
  .rotunda-wrap {
    transform: translateX(-32px);
  }

  .intro-control {
    transform: translateX(calc(-50% - 32px));
  }
}

/* =========================================================
  PROJECT INDEX — interactive hover list
========================================================= */
.index-list { position: relative; margin-top: clamp(20px, 4vw, 48px); }

.index-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 64px 1fr auto 40px;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 2.6vw, 34px) 8px;
  border-top: 1px solid var(--line);
  overflow: hidden;
  transition: opacity 0.35s ease, padding-left 0.4s ease, border-color 0.3s ease;
}
.index-list .index-row:last-of-type { border-bottom: 1px solid var(--line); }

.index-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.25s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.index-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.index-name {
  font-size: clamp(30px, 5.2vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.index-type {
  font-size: clamp(12px, 1.2vw, 15px);
  color: var(--muted);
  text-align: right;
  transition: color 0.3s ease;
}
.index-arrow {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 26px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease, background 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .index-row:hover {
    padding-left: 22px;
    border-color: rgba(91, 79, 207, 0.35);
  }

  .index-row:hover::after {
    opacity: 1;
    transform: translateX(0);
  }

  .index-row:hover .index-type {
    color: rgba(244, 245, 248, 0.82);
  }

  .index-row:hover .index-num {
    color: var(--accent);
    background: transparent;
    transform: none;
  }

  .index-row:hover .index-name {
    transform: translateX(16px) scale(1.045);
    color: var(--accent);
  }

  .index-row:hover .index-arrow {
    transform: translate(8px, -8px) rotate(12deg);
    color: #071008;
    background: var(--accent);
  }
}

/* WORKS visual image fill */
.work-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* visuals that hold a real screenshot follow the image's landscape ratio
   instead of the tall placeholder box, so it fits without heavy cropping */
.work-visual:not(.empty-image) {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

/* =========================================================
  REDESIGN RESPONSIVE
========================================================= */
@media (max-width: 1200px) {
  .intro-section {
    grid-template-columns: 0.95fr 1.1fr;
  }
  /* 옆에 패널이 없는 좁은 화면에서는 갤러리를 다시 가운데로 */
  .rotunda-stage { left: 50%; }
  .intro-panel {
    position: absolute;
    right: var(--section-x);
    bottom: 92px;
    width: min(320px, calc(100% - 40px));
    margin: 0;
  }
}

@media (max-width: 860px) {
  .header-cta { display: none; }
  .gnb { gap: 2px; }
  .site-header .menu-toggle + .gnb { gap: 4px; }

  .intro-section {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .intro-copy { max-width: 100%; }
  /* 모바일에서는 DOM 순서대로 쌓이도록 정렬 초기화 (텍스트 → 갤러리 → 패널) */
  .intro-copy, .rotunda-wrap, .intro-panel { order: 0; }
  .rotunda-wrap { height: 360px; min-height: 360px; }
  .rotunda-card { width: 320px; height: 210px; }
  .intro-panel { position: relative; right: auto; bottom: auto; width: 100%; }
  .intro-control {
    position: relative;
    left: auto; bottom: auto;
    transform: none;
    justify-self: center;
    margin-bottom: 24px;
  }

  .index-row {
    grid-template-columns: 40px 1fr 30px;
    gap: 12px;
  }
  .index-type { display: none; }
  .index-row:hover .index-name { transform: none; }
}

@media (max-width: 560px) {
  .intro-title { font-size: clamp(40px, 13vw, 64px); }
  .intro-desc { font-size: 14px; }
  .rotunda-wrap { height: 300px; min-height: 300px; }
  .rotunda-card { width: 260px; height: 170px; }
  .intro-control p { display: none; }
}

@media (max-width: 980px) {
  .featured-project {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "content"
      "visual"
      "details";
    gap: 22px;
  }

  .featured-project:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "visual"
      "details";
  }

  .featured-project__visual {
    width: 100%;
    min-height: clamp(340px, 54vw, 520px);
    aspect-ratio: 16 / 10;
  }

  .featured-project__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .featured-projects {
    gap: 46px;
    margin-top: 48px;
    padding-top: 40px;
  }

  .featured-project {
    padding-bottom: 46px;
  }

  .featured-project h3 {
    font-size: clamp(38px, 14vw, 58px);
    letter-spacing: -0.055em;
  }

  .featured-project__content p {
    font-size: 15px;
    line-height: 1.66;
  }

  .featured-project__visual {
    min-height: 260px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
  }

  .featured-project__meta {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .featured-project__actions {
    align-items: stretch;
    gap: 12px;
  }

  .featured-project__primary {
    justify-content: center;
    width: 100%;
  }
}

.work-visual.featured-project__visual {
  width: 100%;
  min-width: 0;
  height: clamp(420px, 34vw, 640px);
  min-height: 0;
}

.work-visual.featured-project__visual img {
  object-position: center center;
}

@media (max-width: 980px) {
  .work-visual.featured-project__visual {
    height: clamp(340px, 54vw, 520px);
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .work-visual.featured-project__visual {
    height: auto;
    min-height: 260px;
    aspect-ratio: 4 / 3;
  }
}

/* =========================================================
  CAREER BAR
========================================================= */
.career-bar {
  background: var(--color-surface, #111);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: clamp(28px, 4vw, 48px) var(--section-x, 6vw);
}

.career-bar__list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.career-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  min-width: 140px;
  padding: 20px 32px;
  text-align: center;
  position: relative;
}

.career-bar__item + .career-bar__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.career-bar__icon {
  font-size: 28px;
  color: #fff;
  opacity: 0.55;
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 28;
}

.career-bar__num {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.career-bar__label {
  font-size: clamp(0.68rem, 0.95vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .career-bar__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .career-bar__item::before { display: none; }
  .career-bar__item:nth-child(even)::before { display: block; }
  .career-bar__item:nth-child(3),
  .career-bar__item:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}
