:root {
  --ink: #272138;
  --paper: #f8f8fa;
  --accent: #72e682;
  --white: #ffffff;
  --muted-ink: rgba(39, 33, 56, 0.58);
  --muted-white: rgba(255, 255, 255, 0.64);
  --line-dark: rgba(255, 255, 255, 0.18);
  --line-light: rgba(39, 33, 56, 0.16);
  --page-x: clamp(24px, 5.3vw, 76px);
  --top-bar-y: clamp(24px, 4.3vw, 62px);
  --top-label-size: 0.9rem;
  --top-label-color: rgba(255, 255, 255, 0.64);
  --top-label-line-height: 1.5;
  --top-label-letter-spacing: -0.02em;
  --top-label-weight: 400;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

.project-hero {
  min-height: 78svh;
  padding: var(--top-bar-y) var(--page-x) var(--space-6);
  color: var(--white);
  background: var(--ink);
}

.project-inner {
  width: min(100%, 1288px);
  margin: 0 auto;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  color: var(--top-label-color);
  font-size: var(--top-label-size);
}

.project-nav > span {
  color: var(--top-label-color);
  font-size: var(--top-label-size);
  font-weight: var(--top-label-weight);
  line-height: var(--top-label-line-height);
  letter-spacing: var(--top-label-letter-spacing);
}

.project-nav a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  gap: var(--space-1);
  padding-bottom: 24px;
  align-items: flex-start;
  justify-content: flex-end;
  line-height: 20px;
}

.project-home-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("../home.svg") center / contain no-repeat;
  mask: url("../home.svg") center / contain no-repeat;
}

.project-nav a:hover,
.project-nav a:focus-visible {
  color: var(--accent);
}

.project-nav a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.project-nav a:hover {
  outline: none;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(56px, 8vw, 120px);
  min-height: calc(78svh - 112px);
  padding: clamp(var(--space-7), 11vh, 112px) var(--space-5) var(--space-5);
  align-items: center;
}

.hero-index {
  align-self: start;
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 700;
}

.hero-copy {
  display: grid;
  gap: var(--space-4);
}

.hero-kicker {
  margin: 0;
  color: var(--muted-white);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.keep-case {
  text-transform: none;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-summary {
  width: min(100%, 660px);
  margin: 0;
  color: var(--muted-white);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin: 0;
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-white);
  font-size: 0.78rem;
}

.case-body {
  padding: clamp(72px, 9vw, 120px) var(--page-x);
}

.case-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: 0 var(--space-5);
  text-align: left;
}

.section-label {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-heading {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.case-heading--compact {
  font-size: 2rem;
}

.case-description {
  width: min(100%, 640px);
  margin: var(--space-4) 0 0;
  color: var(--muted-ink);
  font-size: 1rem;
  line-height: 1.65;
}

.case-description p {
  margin: 0;
}

.case-description p + p {
  margin-top: 12px;
}

.overview-list {
  display: grid;
  gap: var(--space-1);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.overview-list li {
  position: relative;
  padding-left: 14px;
}

.overview-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "·";
  font-weight: 700;
}

.case-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(var(--space-7), 8vw, 112px);
  border-top: 1px solid var(--line-light);
}

.case-block {
  min-height: 230px;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line-light);
}

.case-block + .case-block {
  border-left: 1px solid var(--line-light);
}

.case-block-number {
  color: var(--muted-ink);
  font-size: 0.75rem;
}

.case-block h2 {
  margin: 72px 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.case-block p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.85rem;
}

.project-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin-top: clamp(var(--space-7), 8vw, 112px);
}

.project-chapter {
  min-width: 0;
  padding: var(--space-5) 0 clamp(var(--space-7), 8vw, var(--space-8));
  border-top: 1px solid var(--line-light);
}

.chapter-header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: baseline;
}

.chapter-header > * {
  min-width: 0;
}

.chapter-number,
.chapter-description {
  color: var(--muted-ink);
  font-size: 0.8rem;
}

.chapter-number {
  line-height: 1;
}

.chapter-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.chapter-description {
  margin: 8px 0 0;
}

.chapter-visual {
  display: grid;
  min-height: clamp(300px, 42vw, 590px);
  margin-top: var(--space-5);
  padding: var(--space-4);
  align-items: end;
  color: var(--muted-ink);
  background: #ececf0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-visual--image {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 8px;
}

.chapter-visual--image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.chapter-visual--image:hover img,
.chapter-visual--image:focus-visible img {
  transform: scale(1.008);
}

.chapter-visual--image:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.project-chapter:nth-child(even) .chapter-visual {
  background: #e4e4e9;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) 20px;
  margin-top: var(--space-5);
}

.visual-placeholder {
  display: grid;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: var(--space-4);
  align-items: end;
  overflow: hidden;
  color: var(--muted-ink);
  background: #ececf0;
  border-radius: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-placeholder:last-child {
  background: #e3e3e9;
}

.visual-placeholder--image {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.visual-placeholder--image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.visual-card {
  display: block;
  min-width: 0;
}

.visual-card--link .visual-placeholder {
  transition:
    transform 220ms ease-out,
    box-shadow 220ms ease-out;
}

.visual-card--link .visual-placeholder--image img {
  transition: transform 220ms ease-out;
}

.visual-card--link:hover .visual-placeholder,
.visual-card--link:focus-visible .visual-placeholder {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgb(39 33 56 / 12%);
}

.visual-card--link:hover .visual-placeholder--image img,
.visual-card--link:focus-visible .visual-placeholder--image img {
  transform: scale(1.015);
}

.visual-card-caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  margin-top: var(--space-3);
  align-items: baseline;
}

.visual-card-caption span {
  color: var(--muted-ink);
  font-size: 0.75rem;
}

.visual-card-caption h3 {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

/* 출시 전 프로젝트임을 카드에서 바로 알 수 있게 표기한다. */
.visual-card-caption h3 em {
  margin-left: 8px;
  color: var(--muted-ink);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.visual-card--link:hover .visual-card-caption h3,
.visual-card--link:focus-visible .visual-card-caption h3 {
  color: #439d50;
}

.visual-card--link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.next-project {
  display: flex;
  margin-top: clamp(var(--space-7), 8vw, var(--space-8));
  padding: var(--space-3) 0;
  justify-content: space-between;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  font-size: clamp(0.875rem, 1.4vw, 1.05rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.next-project:hover,
.next-project:focus-visible {
  color: #439d50;
  outline: none;
}

.project-footer {
  padding: 28px var(--page-x) 34px;
  color: var(--muted-white);
  background: var(--ink);
  font-size: 0.72rem;
}

.project-footer .project-inner {
  display: flex;
  gap: 14px 28px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.project-footer a:hover,
.project-footer a:focus-visible {
  color: var(--accent);
  outline: none;
}

.embed-page {
  --embed-header-height: 80px;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--paper);
}

.embed-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  height: var(--embed-header-height);
  padding: 0 clamp(12px, 2vw, 28px);
  align-items: center;
  color: var(--white);
  background: var(--ink);
}

.embed-back,
.embed-source {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--muted-white);
  transition: color 160ms ease;
}

.embed-back-arrow {
  font-size: 1.65rem;
  line-height: 1;
  transform: translateY(-1px);
}

.embed-source {
  justify-self: end;
  font-size: 1.45rem;
  line-height: 1;
}

.embed-back:hover,
.embed-back:focus-visible,
.embed-source:hover,
.embed-source:focus-visible {
  color: var(--accent);
  outline: none;
}

.embed-back:focus-visible,
.embed-source:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.embed-title {
  margin: 0;
  overflow: hidden;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.035em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-back-label,
.embed-source-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.case-study-main {
  background: var(--white);
}

.case-study-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(100%, 1288px);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) var(--page-x);
  gap: var(--space-5) clamp(var(--space-5), 5vw, var(--space-7));
  align-items: end;
}

.case-study-overview-copy h2 {
  margin: var(--space-3) 0 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.case-study-overview-copy > p:last-child {
  width: min(100%, 640px);
  margin: var(--space-3) 0 0;
  color: var(--muted-ink);
}

.case-study-live-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: min(100%, 300px);
  min-height: 44px;
  gap: 2px var(--space-2);
  align-items: center;
  color: var(--ink);
  transition: color 180ms ease-out;
}

.case-study-live-link > span:first-child {
  grid-column: 1 / -1;
  color: var(--muted-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-study-live-link strong {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 500;
}

.case-study-live-link:hover,
.case-study-live-link:focus-visible {
  color: #439d50;
  outline: none;
}

.case-study-live-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.case-study-gallery {
  width: min(100%, 1920px);
  margin: 0 auto;
  background: var(--white);
}

.case-study-gallery--flush {
  display: grid;
  gap: 0;
}

.case-study-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.membership-case {
  min-height: calc(100svh - var(--embed-header-height));
  padding-bottom: 0;
  background: #efeff3;
}

.project-info-band {
  color: var(--white);
  background: var(--ink);
}

.project-info {
  width: min(calc(100% - (var(--page-x) * 2)), 1024px);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) 0 clamp(64px, 7vw, 92px);
}

.membership-page .project-info {
  width: min(calc(100% - (var(--page-x) * 2)), 720px);
}

.project-info-list {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.75fr);
  gap: 0 clamp(40px, 6vw, 80px);
  margin: 0;
}

.project-info-list > div {
  display: grid;
  gap: 8px;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line-dark);
}

.project-info-description {
  grid-row: 1 / span 3;
  padding-right: clamp(0px, 2vw, 24px);
}

.project-info-list dt {
  color: var(--muted-white);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-info-list dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.project-info-description dd {
  color: var(--muted-white);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

.project-info-list a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--white);
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}

.project-info-list a:hover,
.project-info-list a:focus-visible {
  color: var(--accent);
  outline: none;
}

.project-info-list a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.brand-case-intro,
.brand-case-process,
.brand-case-output {
  width: min(calc(100% - (var(--page-x) * 2)), 1024px);
  margin: 0 auto;
}

.brand-case-intro {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(64px, 9vw, 128px) 0;
}

/* 인트로 안에 이미지가 오면 라벨 열에 갇히지 않도록 두 열을 모두 차지시킨다. */
.brand-case-intro .brand-case-figure {
  grid-column: 1 / -1;
  margin-top: 0;
}

.brand-case-intro .section-label,
.brand-case-process .section-label,
.brand-case-output .section-label {
  margin: 0;
}

.brand-case-intro-copy h2,
.brand-case-process-heading h2,
.brand-case-output-heading h2 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.brand-case-intro-copy h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.brand-case-intro-copy > p {
  width: min(100%, 680px);
  margin: var(--space-5) 0 0;
  color: var(--muted-ink);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.8;
}

.brand-case-intro-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.brand-case-process {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--line-light);
}

.brand-case-process-heading {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: baseline;
}

.brand-case-process-heading h2,
.brand-case-output-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.brand-process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 56px);
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.brand-process-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line-light);
}

.brand-process-list li > span {
  color: var(--muted-ink);
  font-size: 0.72rem;
  line-height: 1.5;
}

.brand-process-list h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.brand-process-list p {
  margin: 5px 0 0;
  color: var(--muted-ink);
  font-size: 0.85rem;
  line-height: 1.6;
}

.brand-case-output {
  padding: clamp(64px, 9vw, 128px) 0 clamp(72px, 10vw, 144px);
  border-top: 1px solid var(--line-light);
}

.brand-case-output-heading {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: var(--space-3) clamp(32px, 6vw, 96px);
  align-items: baseline;
}

.brand-case-output-heading > p:last-child {
  grid-column: 2;
  max-width: 560px;
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.86rem;
}

.brand-case-figure {
  margin: clamp(40px, 6vw, 80px) 0 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 8px;
}

.brand-case-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-case-figure + .brand-case-figure {
  margin-top: var(--space-3);
}

.membership-intro {
  width: min(100%, 720px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
}

.membership-intro img {
  display: block;
  width: 100%;
  height: auto;
}

.membership-tabs {
  position: sticky;
  top: var(--embed-header-height);
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--line-light);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.membership-tab {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 64px;
  gap: 7px;
  padding: 10px 12px;
  align-items: center;
  justify-content: center;
  appearance: none;
  color: var(--muted-ink);
  background: transparent;
  border: 0;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.membership-tab::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.25);
  transform-origin: left;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.membership-tab > span {
  color: var(--muted-ink);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.membership-tab > strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-tab:hover {
  color: var(--ink);
}

.membership-tab.is-active {
  color: var(--ink);
}

.membership-tab.is-active > span {
  color: #3d974b;
}

.membership-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.membership-tab:focus-visible {
  z-index: 1;
  outline: 2px solid var(--ink);
  outline-offset: -6px;
}

.membership-panels,
.membership-panel {
  width: min(100%, 720px);
  margin: 0 auto;
  background: var(--white);
}

.membership-panels {
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.membership-panel[hidden] {
  display: none;
}

.membership-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.membership-note {
  margin: 20px 16px 18px;
  padding: 22px 26px;
  color: var(--white);
  background: linear-gradient(90deg, #258779 0%, #65b07c 100%);
  border-radius: 14px;
}

.membership-note .note-label {
  margin: 0 0 5px;
  color: rgb(255 255 255 / 76%);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.membership-note h3 {
  margin: 0 0 9px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.membership-note p {
  margin: 0;
  color: rgb(255 255 255 / 88%);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* 이미지 상단에 그려진 기존 보라색 설명 블록을 잘라낸다.
   퍼센트 마진은 컨테이너 너비 기준이라 이미지가 줄어도 비율이 유지된다. */
.membership-crop {
  overflow: hidden;
}

#membership-panel-input .membership-crop img {
  margin-top: -29.17%;
}

#membership-panel-dashboard .membership-crop img {
  margin-top: -29.31%;
}

#membership-panel-info .membership-crop img {
  margin-top: -25.4%;
  margin-bottom: -28.7%; /* 기존 분기 리포트 카드는 아래 HTML로 다시 만든다 */
}

.membership-report {
  padding: 0 0 26px;
  background: #ffffff;
}

/* 그림자 값은 위 이미지 속 카드에서 측정한 값(가장 진한 지점 약 10%, 퍼짐 4px)에 맞췄다. */
.membership-report-card {
  margin: 0 3.5%;
  padding: 22px 24px 24px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgb(39 33 56 / 8%);
}

.membership-report h4 {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 9px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.membership-report h4 span {
  padding: 3px 9px;
  color: #1f7263;
  background: #e4f1ec;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.membership-report > p {
  margin: 0 0 16px;
  color: var(--muted-ink);
  font-size: 0.82rem;
  line-height: 1.6;
}

.membership-report img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.membership-panel.is-active {
  animation: membership-panel-in 220ms ease-out both;
}

@keyframes membership-panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .project-hero {
    min-height: auto;
    padding-top: var(--top-bar-y);
  }

  .hero-content,
  .case-intro {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding-inline: 0;
  }

  .hero-content {
    min-height: 68svh;
    padding-top: var(--space-7);
    align-content: center;
  }

  .hero-index {
    margin: 0;
  }

  .hero-copy {
    gap: var(--space-4);
  }

  .hero-title {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }

  .case-body {
    padding-block: var(--space-7);
  }

  .case-blocks,
  .visual-grid,
  .project-chapters {
    grid-template-columns: 1fr;
  }

  .case-block {
    min-height: 170px;
    padding-inline: 0;
  }

  .case-block + .case-block {
    border-left: 0;
  }

  .case-block h2 {
    margin-top: 42px;
  }

  .project-chapter {
    padding-bottom: var(--space-7);
  }

  .chapter-header {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: var(--space-1);
  }

  .chapter-title {
    font-size: 1.6rem;
  }

  .chapter-visual {
    min-height: 240px;
    margin-top: var(--space-4);
  }

  .chapter-visual--image {
    width: 100%;
    min-width: 0;
    min-height: 0;
  }

  .visual-placeholder {
    min-height: 0;
  }

  .visual-placeholder--image img {
    min-height: 0;
  }

  .visual-grid {
    row-gap: var(--space-6);
  }

  .next-project {
    margin-top: 56px;
  }

  .project-footer .project-inner {
    justify-content: flex-start;
  }

  .embed-page {
    --embed-header-height: 72px;
  }

  .embed-header {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    padding-inline: 8px;
  }

  .embed-back,
  .embed-source {
    width: 44px;
    height: 44px;
    justify-content: center;
  }

  .embed-back-arrow {
    font-size: 1.45rem;
  }

  .embed-title {
    font-size: 1.15rem;
  }

  .case-study-overview {
    grid-template-columns: 1fr;
    padding-block: var(--space-5);
    align-items: start;
  }

  .case-study-live-link {
    min-width: 0;
  }

  .membership-case {
    padding-bottom: 0;
  }

  .project-info {
    width: 100%;
    padding: 40px 20px 64px;
  }

  .project-info-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-info-description {
    grid-row: auto;
    padding-right: 0;
  }

  .project-info-list dd,
  .project-info-description dd {
    font-size: 0.9rem;
  }

  .brand-case-intro,
  .brand-case-process,
  .brand-case-output {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  .brand-case-intro,
  .brand-case-process-heading,
  .brand-case-output-heading {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .brand-case-intro-copy h2 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
  }

  .brand-case-intro-copy > p {
    margin-top: var(--space-4);
    font-size: 0.95rem;
  }

  .brand-process-list {
    grid-template-columns: 1fr;
    margin-top: var(--space-5);
  }

  .brand-case-output-heading > p:last-child {
    grid-column: 1;
  }

  .brand-case-figure {
    margin-top: var(--space-5);
  }

  .membership-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
  }

  .membership-tab {
    min-width: 0;
    min-height: 60px;
    gap: 0;
    padding: 8px 4px;
  }

  .membership-tab::after {
    right: 6px;
    left: 6px;
  }

  .membership-tab > span {
    display: none;
  }

  .membership-tab > strong {
    overflow: visible;
    font-size: clamp(0.7rem, 3vw, 0.8rem);
    line-height: 1.25;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
  }

  .membership-panels {
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .visual-card--link .visual-placeholder,
  .visual-card--link .visual-placeholder--image img {
    transition: none;
  }

  .visual-card--link:hover .visual-placeholder,
  .visual-card--link:focus-visible .visual-placeholder,
  .visual-card--link:hover .visual-placeholder--image img,
  .visual-card--link:focus-visible .visual-placeholder--image img {
    transform: none;
  }

  .membership-tab,
  .membership-tab::after {
    transition: none;
  }

  .membership-panel.is-active {
    animation: none;
  }
}

/* ============ 슬로우리 케이스 스터디 ============ */

.case-principle {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(24px, 4vw, 36px);
  background: var(--white);
  border-left: 3px solid #e2673c;
  border-radius: 4px 14px 14px 4px;
}

.case-principle h3 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.case-principle > p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.95rem;
  line-height: 1.7;
}

.case-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.case-rules li {
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}

.case-rules strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.case-rules span {
  color: var(--muted-ink);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* ============ 슬로우리 유저 플로우 ============ */
.user-flow {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(26px, 4vw, 40px) clamp(20px, 3vw, 34px);
  background: var(--white);
  border-radius: 16px;
}

.uf-group + .uf-group {
  margin-top: clamp(34px, 4.5vw, 52px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line-light);
}

.uf-group-title {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin: 0 0 var(--space-4);
  color: var(--muted-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.uf-group-title::after {
  height: 1px;
  flex: 1;
  background: var(--line-light);
  content: "";
}

.uf-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.uf-row {
  display: flex;
  gap: 0;
  align-items: center;
  width: max-content;
  min-width: 100%;
}

.uf-branch {
  flex: 0 0 auto;
  width: 96px;
  margin-right: 18px;
  padding: 10px 12px;
  color: var(--white);
  background: #b85430;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: center;
}

.uf-step {
  flex: 0 0 auto;
  width: 156px;
}

.uf-label {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.uf-num {
  display: grid;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  place-items: center;
  color: var(--white);
  background: #b85430;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 700;
}

.uf-step img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 12px;
}

.uf-arrow {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 1.5px;
  margin-top: 14px;
  background: rgb(39 33 56 / 32%);
}

.uf-arrow::after {
  position: absolute;
  top: -3.5px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid rgb(39 33 56 / 32%);
  border-right: 1.5px solid rgb(39 33 56 / 32%);
  content: "";
  transform: rotate(45deg);
}

.uf-end {
  flex: 0 0 auto;
  width: 150px;
  margin: 14px 0 0 18px;
  color: var(--muted-ink);
  font-size: 0.8rem;
  line-height: 1.6;
}

.case-flow-note {
  margin: var(--space-4) 0 0;
  color: var(--muted-ink);
  font-size: 0.86rem;
  line-height: 1.7;
}

.case-flow-note strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 720px) {
  .uf-branch {
    width: 78px;
    margin-right: 12px;
    font-size: 0.72rem;
  }

  .uf-step {
    width: 132px;
  }

  .uf-arrow {
    width: 30px;
  }
}

/* ============ 언어 전환 ============ */
/* 어느 배경 위로 스크롤되든 읽히도록 반투명 잉크 칩 위에 얹는다. */
.lang-toggle {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: rgb(255 255 255 / 34%);
  font-size: 0.85rem;
  line-height: 1;
}

.lang-btn {
  padding: 2px;
  color: var(--muted-white);
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 160ms ease;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-btn.is-active {
  color: var(--accent);
  font-weight: 600;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-nav-label {
  display: flex;
  gap: 9px;
  align-items: center;
}

/* 오른쪽 끝에 있을 때 쓰던 여백을 지우고 라벨과 같은 줄에 맞춘다.
   탭 영역은 padding 으로 확보하고 음수 margin 으로 레이아웃 폭은 되돌린다. */
.project-nav-label a {
  min-width: 0;
  min-height: 0;
  padding: 7px;
  margin: -7px;
  align-items: center;
  justify-content: center;
  line-height: 0;
}



.embed-header-right {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}
