/* =========================================================
   NEXR SOLUTION — base layout & shared components
   테마별 색/타이포는 theme-a.css / theme-b.css 에서 정의
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.28; letter-spacing: -.03em; }
dl, dd, dt { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  padding: 10px 18px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
}

/* ---------------- header ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition: border-color .3s, background .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 72px;
}
@media (max-width: 640px) { .site-header__inner { height: 64px; } }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 26px; height: 26px; flex: none; border-radius: var(--mark-radius, 7px);
  background: var(--accent);
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 38%;
  background: var(--bg); border-radius: 1px;
}
.brand__text {
  font-weight: 800; font-size: 15px; letter-spacing: .06em; line-height: 1;
  display: inline-flex; gap: 6px;
}
.brand__thin { font-weight: 400; opacity: .62; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 11px; font-size: 14px; font-weight: 500;
  color: var(--ink-soft); border-radius: 999px; transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--chip-bg); }
.nav__cta {
  margin-left: 8px; padding: 9px 16px !important;
  background: var(--accent) !important; color: var(--accent-ink) !important;
  font-weight: 700 !important;
}
.nav__cta:hover { filter: brightness(1.08); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 5px; width: 18px; }
.nav-toggle__bars i {
  display: block; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; font-size: 13.5px; }
  .nav__cta { padding: 8px 13px !important; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 64px 0 auto;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 20px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity .22s, transform .22s, visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 13px 4px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 14px 0 0; padding: 13px !important; text-align: center; border-bottom: 0 !important; }
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--btn-radius, 10px);
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--btn-shadow, none); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding-top: 132px; overflow: hidden; }

/* 히어로 배경 사진 (선택) */
.hero__photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  opacity: var(--hero-photo-opacity, .16);
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 92%);
}
html[data-theme="dark"] .hero__photo { opacity: .22; }
html[data-theme="dark"] .hero__photo::after {
  background: linear-gradient(180deg, rgba(7, 9, 13, .35) 0%, #07090d 93%);
}

.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--hero-bg);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-grid, none);
  background-size: var(--hero-grid-size, 64px 64px);
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  opacity: var(--hero-grid-opacity, .5);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
  padding-bottom: clamp(48px, 6vw, 76px);
}
@media (max-width: 980px) {
  .hero { padding-top: 104px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .13em;
  color: var(--ink-mute); text-transform: uppercase; margin-bottom: 22px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero__title { font-size: clamp(2.15rem, 5.1vw, 3.85rem); line-height: 1.16; letter-spacing: -.045em; }
.hero__title-em { color: var(--hero-em, var(--accent)); display: inline-block; }
.hero__lead {
  margin-top: 26px; max-width: 56ch;
  font-size: clamp(1rem, 1.15vw, 1.075rem); color: var(--ink-soft); line-height: 1.8;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__panel {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); backdrop-filter: blur(8px);
}
@media (max-width: 980px) { .hero__panel { max-width: 520px; } }

.panel__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--ink-mute); margin-bottom: 16px;
}
.facts { display: grid; gap: 0; }
.facts__row {
  display: grid; grid-template-columns: 76px 1fr; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px;
}
.facts__row dt { color: var(--ink-mute); font-size: 13px; padding-top: 1px; }
.facts__row dd { color: var(--ink); word-break: keep-all; }
.facts__row dd a { border-bottom: 1px solid var(--line-strong); }
.facts__row dd a:hover { color: var(--accent); border-color: var(--accent); }

.panel__download {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding: 13px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--btn-radius, 10px);
  font-size: 14px; font-weight: 600;
  transition: border-color .2s, background .2s, color .2s;
}
.panel__download:hover { border-color: var(--accent); color: var(--accent); background: var(--chip-bg); }
.panel__download-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-mute); font-weight: 400; }

/* ---------------- stat strip ---------------- */
.stat-strip {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat-strip li {
  padding: 26px 24px 26px 0; display: grid; gap: 6px;
  border-left: 1px solid var(--line); padding-left: 24px;
}
.stat-strip li:first-child { border-left: 0; padding-left: 0; }
.stat-strip strong {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1;
  letter-spacing: -.05em; color: var(--accent); font-family: var(--font-display);
}
.stat-strip span { font-size: 13px; color: var(--ink-mute); line-height: 1.55; }
@media (max-width: 860px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip li { padding: 20px 16px 20px 20px; }
  .stat-strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------------- section ---------------- */
.section { padding: clamp(68px, 8.4vw, 124px) 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.sec-head { max-width: 68ch; margin-bottom: clamp(34px, 4.4vw, 58px); }
.sec-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 16px;
}
.sec-num {
  display: inline-grid; place-items: center; min-width: 26px; height: 20px;
  padding: 0 6px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; letter-spacing: .04em;
}
.sec-title { font-size: clamp(1.6rem, 3.15vw, 2.5rem); letter-spacing: -.04em; }
.sec-desc {
  margin-top: 16px; color: var(--ink-soft); font-size: 1.0125rem;
  line-height: 1.8; max-width: 62ch; word-break: keep-all;
}

.note {
  margin-top: 30px; font-size: 13px; color: var(--ink-mute);
  line-height: 1.7; max-width: 78ch;
  padding-left: 14px; border-left: 2px solid var(--line-strong);
}

/* ---------------- grid / card ---------------- */
.grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid--2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: clamp(22px, 2.3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .25s, transform .25s, box-shadow .25s, background .25s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }

.card__index {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: .1em; margin-bottom: 14px;
}
.card__title { font-size: 1.3rem; margin-bottom: 6px; }
.card__sub { font-size: 13.5px; color: var(--ink-mute); margin-bottom: 18px; }
.card__foot {
  margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--ink-mute); letter-spacing: -.005em;
}

.ticks { display: grid; gap: 9px; }
.ticks li {
  position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink-soft);
  line-height: 1.6; word-break: keep-all;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent); opacity: .85;
}

/* ---------------- compare (AS-IS → TO-BE) ---------------- */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }

.compare__item {
  padding: 30px clamp(18px, 2vw, 28px) 34px;
  border-left: 1px solid var(--line);
  display: grid; align-content: start; gap: 0;
}
.compare__item:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 900px) {
  .compare__item { border-left: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .compare__item:last-child { border-bottom: 0; }
}

.compare__tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--ink-mute); margin-bottom: 10px;
}
.compare__item h3 { font-size: 1.22rem; margin-bottom: 16px; }
.compare__asis {
  font-size: 14px; color: var(--ink-mute); line-height: 1.65;
  padding: 12px 14px; background: var(--chip-bg); border-radius: 8px;
  text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-mute) 45%, transparent);
  word-break: keep-all;
}
.compare__arrow { display: flex; align-items: center; gap: 8px; margin: 14px 0; color: var(--accent); font-size: 15px; }
.compare__arrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.compare__tobe { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.7; word-break: keep-all; }

/* ---------------- process ---------------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

.process__step {
  position: relative; padding: 26px 24px 28px 0;
  border-top: 2px solid var(--line-strong);
  display: grid; align-content: start; gap: 0;
}
.process__step:not(:first-child) { padding-left: 24px; border-left: 1px solid var(--line); }
.process__step::before {
  content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .5s ease;
}
.process__step.is-visible::before { width: 100%; }
.process__step:not(:first-child)::before { left: 24px; }

.process__num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  color: var(--accent); margin-bottom: 12px;
}
.process__step h3 { font-size: 1.1rem; margin-bottom: 14px; }
.process__step ul { display: grid; gap: 7px; }
.process__step li { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; word-break: keep-all; }
.process__step li + li { border-top: 1px solid var(--line); padding-top: 7px; }
.process__out {
  margin-top: 16px; font-size: 12px; font-weight: 700; color: var(--ink);
  display: inline-block; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); width: fit-content;
}

@media (max-width: 900px) and (min-width: 561px) {
  .process__step:nth-child(3) { border-left: 0; padding-left: 0; }
  .process__step:nth-child(3)::before { left: 0; }
}
@media (max-width: 560px) {
  .process__step { padding: 22px 0 24px; border-left: 0 !important; padding-left: 0 !important; }
  .process__step::before { left: 0 !important; }
}

/* ---------------- tech ---------------- */
.tech-grid .card { display: flex; flex-direction: column; }
.card__kicker {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px;
}
.card--tech h3 { font-size: 1.08rem; line-height: 1.5; margin-bottom: 10px; }
.card--tech p:not(.card__kicker) { font-size: 14px; color: var(--ink-soft); line-height: 1.7; word-break: keep-all; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 18px; }
.chips li {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .01em;
  padding: 5px 10px; border-radius: 6px;
  background: var(--chip-bg); color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* ---------------- timeline ---------------- */
.timeline { border-top: 1px solid var(--line); }
.timeline__item {
  display: grid; grid-template-columns: 120px 1fr; gap: clamp(16px, 3vw, 40px);
  padding: 24px 0; border-bottom: 1px solid var(--line);
  transition: background .25s, padding-left .25s;
}
.timeline__item:hover { background: var(--row-hover); }
.timeline__year {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -.03em; color: var(--accent); line-height: 1.2;
}
.timeline__item--etc .timeline__year { font-size: 1.1rem; color: var(--ink-mute); }
.timeline__body h3 { font-size: 1.05rem; margin-bottom: 7px; }
.timeline__body p { font-size: 14px; color: var(--ink-soft); line-height: 1.72; word-break: keep-all; }
@media (max-width: 640px) {
  .timeline__item { grid-template-columns: 68px 1fr; gap: 14px; padding: 20px 0; }
  .timeline__year { font-size: 1.05rem; }
}

/* ---------------- work / filters ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter {
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter__count { font-family: var(--font-mono); font-size: 11px; opacity: .7; margin-left: 3px; }

.work-grid {
  display: grid; gap: clamp(12px, 1.4vw, 18px);
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
}
.work-card {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .22s, transform .22s, box-shadow .22s;
  animation: cardIn .3s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.work-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.work-card.is-hidden { display: none; }

.work-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.work-card__cat {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--accent); text-transform: uppercase;
}
.work-card__client { font-size: 11.5px; color: var(--ink-mute); text-align: right; line-height: 1.4; }
.work-card h3 { font-size: 1.02rem; line-height: 1.45; letter-spacing: -.025em; }
.work-card__features { display: grid; gap: 5px; margin-top: 2px; }
.work-card__features li {
  position: relative; padding-left: 12px; font-size: 13px;
  color: var(--ink-soft); line-height: 1.6; word-break: keep-all;
}
.work-card__features li::before {
  content: ""; position: absolute; left: 2px; top: .68em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink-mute); opacity: .6;
}
.work-card .chips { padding-top: 12px; margin-top: auto; }

/* ---------------- case studies ---------------- */
.case-wrap {
  display: grid; grid-template-columns: 216px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 34px); align-items: start;
}
@media (max-width: 860px) { .case-wrap { grid-template-columns: 1fr; gap: 18px; } }

.case-tabs {
  display: grid; gap: 2px;
  border-left: 1px solid var(--line-strong);
}
@media (max-width: 860px) {
  .case-tabs {
    display: flex; gap: 8px; overflow-x: auto; border-left: 0;
    padding-bottom: 6px; scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
}

.case-tab {
  position: relative; text-align: left; cursor: pointer;
  padding: 11px 14px; border: 0; background: transparent;
  font-size: 13.5px; font-weight: 600; color: var(--ink-mute);
  letter-spacing: -.015em; line-height: 1.45;
  transition: color .2s, background .2s;
  border-radius: 0 6px 6px 0;
}
.case-tab:hover { color: var(--ink); background: var(--chip-bg); }
.case-tab.is-active { color: var(--ink); background: var(--accent-soft); }
.case-tab.is-active::before {
  content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px;
  width: 2px; background: var(--accent);
}
@media (max-width: 860px) {
  .case-tab {
    flex: 0 0 auto; white-space: nowrap; padding: 9px 15px;
    border: 1px solid var(--line-strong); border-radius: 999px;
    font-size: 13px;
  }
  .case-tab.is-active { border-color: var(--accent); }
  .case-tab.is-active::before { display: none; }
}

.case-panel {
  min-height: 380px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(22px, 2.6vw, 36px);
}
@media (max-width: 860px) { .case-panel { min-height: 0; } }

.case-detail { transition: opacity .32s ease, transform .32s ease; }
.case-detail.is-entering { opacity: 0; transform: translateY(10px); }

.case-detail__kicker {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em;
  color: var(--accent); margin-bottom: 10px;
}
.case-detail__head { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.case-detail__head h3 { font-size: clamp(1.2rem, 2.1vw, 1.55rem); line-height: 1.4; }

.case-detail__body {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(22px, 3vw, 40px);
}
@media (max-width: 700px) { .case-detail__body { grid-template-columns: 1fr; gap: 26px; } }

.case-detail__label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--ink-mute); text-transform: uppercase;
  margin: 0 0 8px;
}
.case-detail__label:not(:first-child) { margin-top: 22px; }
.case-detail__text { font-size: 14px; color: var(--ink-soft); line-height: 1.75; word-break: keep-all; }
.case-detail .ticks { gap: 7px; }
.case-detail .ticks li { font-size: 13.5px; }

.case-detail__col--flow {
  padding-left: clamp(18px, 2.4vw, 30px);
  border-left: 1px solid var(--line);
}
@media (max-width: 700px) {
  .case-detail__col--flow { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
}

.flow { display: grid; gap: 0; counter-reset: flow; }
.flow li {
  position: relative; display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 0; font-size: 13.5px; font-weight: 600; color: var(--ink);
  line-height: 1.55; word-break: keep-all;
}
.flow li + li { border-top: 1px dashed var(--line); }
.flow__idx {
  flex: none; display: grid; place-items: center;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  margin-top: 1px;
}
.case-detail__col--flow .chips { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------------- 미디어 밴드 (사진 + 텍스트) ---------------- */
.media-band {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.media-band--flip .media-band__fig { order: 2; }
@media (max-width: 900px) {
  .media-band { grid-template-columns: 1fr; gap: 26px; }
  .media-band--flip .media-band__fig { order: 0; }
}

.media-band__fig {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--chip-bg);
  aspect-ratio: 16 / 11;
}
.media-band__fig img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.media-band__fig:hover img { transform: scale(1.025); }
.media-band__fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 13px; font-size: 11.5px; line-height: 1.5;
  color: #fff; letter-spacing: -.005em;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .66));
}

.media-band__body h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); letter-spacing: -.04em; }
.media-band__body > p {
  margin-top: 16px; font-size: 1rem; color: var(--ink-soft);
  line-height: 1.82; word-break: keep-all;
}
.media-band__body .ticks { margin-top: 20px; }

/* ---------------- 카드 썸네일 ---------------- */
.card__thumb {
  margin: -1px -1px 20px; overflow: hidden;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  aspect-ratio: 16 / 9; background: var(--chip-bg);
}
.card__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.card:hover .card__thumb img { transform: scale(1.035); }
.card--service .card__thumb { margin-bottom: 22px; }

/* ---------------- 갤러리 그리드 ---------------- */
.gallery {
  display: grid; gap: clamp(10px, 1.4vw, 16px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery figure {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--chip-bg);
  position: relative; aspect-ratio: 4 / 3;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 24px 13px 11px; font-size: 11.5px; color: #fff; line-height: 1.45;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .68));
}

/* ---------------- 사진 위 화이트 텍스트 블록 ---------------- */
.photo-quote {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 320px; display: grid; align-content: end;
  padding: clamp(24px, 3.4vw, 44px);
  color: #fff;
}
.photo-quote img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.photo-quote::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .72) 100%);
}
.photo-quote > * { position: relative; z-index: 2; }
.photo-quote blockquote {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 600;
  line-height: 1.5; letter-spacing: -.035em; word-break: keep-all;
}
.photo-quote cite {
  display: block; margin-top: 14px; font-style: normal;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  opacity: .82; text-transform: uppercase;
}

/* ---------------- principles / collab ---------------- */
.principle, .collab__item {
  position: relative; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .25s, transform .25s;
}
.principle:hover, .collab__item:hover { border-color: var(--accent); transform: translateY(-2px); }
.principle__num, .collab__num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1;
  letter-spacing: -.04em; color: var(--accent); opacity: .42; margin-bottom: 16px;
}
.principle h3, .collab__item h3 { font-size: 1.12rem; margin-bottom: 10px; }
.principle p:not(.principle__num), .collab__item p:not(.collab__num) {
  font-size: 14px; color: var(--ink-soft); line-height: 1.75; word-break: keep-all;
}

/* ---------------- org ---------------- */
.org { display: grid; gap: 20px; justify-items: center; }
.org__ceo {
  padding: 14px 42px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 15px; letter-spacing: -.02em;
  box-shadow: var(--btn-shadow, none);
}
.org__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px);
  width: 100%; position: relative;
}
.org__grid::before {
  content: ""; position: absolute; top: -20px; left: 16.6%; right: 16.6%; height: 20px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  border-radius: 8px 8px 0 0;
}
@media (max-width: 760px) { .org__grid::before { display: none; } }
.org__unit {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.org__unit h3 {
  font-size: 1.02rem; margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.org__unit ul { display: grid; gap: 7px; }
.org__unit li { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; word-break: keep-all; }
@media (max-width: 760px) { .org__grid { grid-template-columns: 1fr; } }

/* ---------------- contact ---------------- */
.section--contact { background: var(--contact-bg); border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } }

.contact__list { display: grid; gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.contact__list > div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em; color: var(--ink-mute); padding-top: 3px; }
.contact__list dd { font-size: 15px; font-weight: 600; word-break: keep-all; }
.contact__list dd a { border-bottom: 1px solid var(--line-strong); }
.contact__list dd a:hover { color: var(--accent); border-color: var(--accent); }

.contact__form {
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  display: grid; gap: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 7px; margin: 0; }
.field label {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: -.005em;
}
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 13px;
  background: var(--input-bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--btn-radius, 8px);
  font-family: inherit; font-size: 14.5px; line-height: 1.5;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field select {
  appearance: none; cursor: pointer; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%),
                    linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%);
  background-position: calc(100% - 17px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field--check { display: flex; align-items: flex-start; gap: 9px; }
.field--check input { width: 17px; height: 17px; flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.field--check label { font-weight: 400; font-size: 13px; color: var(--ink-soft); line-height: 1.55; }

.form-status { font-size: 13.5px; line-height: 1.6; display: none; padding: 11px 13px; border-radius: 8px; }
.form-status.is-shown { display: block; }
.form-status.is-error { color: #ff8b7a; background: color-mix(in srgb, #ff5b45 14%, transparent); border: 1px solid color-mix(in srgb, #ff5b45 34%, transparent); }
.form-status.is-ok { color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); }
.form-hint { font-size: 12px; color: var(--ink-mute); text-align: center; }

/* ---------------- footer ---------------- */
.site-footer { padding: 52px 0 40px; border-top: 1px solid var(--line); background: var(--footer-bg); }
.site-footer__inner { display: grid; gap: 26px; }
.site-footer__brand { display: grid; gap: 6px; }
.site-footer__brand .brand__text { font-size: 16px; margin-bottom: 4px; }
.site-footer__brand p { font-size: 13.5px; color: var(--ink-soft); }
.site-footer__meta { color: var(--ink-mute) !important; font-size: 12.5px !important; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__nav a { font-size: 13.5px; color: var(--ink-soft); }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__copy { font-size: 12px; color: var(--ink-mute); font-family: var(--font-mono); letter-spacing: .02em; }

/* ---------------- theme dock / toast ---------------- */
.theme-dock {
  position: fixed; right: 16px; bottom: 16px; z-index: 120;
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 999px;
  background: var(--dock-bg); border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
}
.theme-dock__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  color: var(--ink-mute); padding: 0 8px 0 10px;
}
.theme-dock button {
  padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink-soft);
  font-size: 12px; font-weight: 700; letter-spacing: -.01em;
  transition: background .2s, color .2s;
}
.theme-dock button:hover { color: var(--ink); }
.theme-dock button.is-active { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 520px) {
  .theme-dock { right: 12px; bottom: 12px; }
  .theme-dock__label { display: none; }
  .theme-dock button { padding: 8px 11px; font-size: 11.5px; }
}

.toast {
  position: fixed; left: 16px; bottom: 16px; z-index: 119;
  max-width: 330px; padding: 13px 40px 13px 15px;
  font-size: 12.5px; line-height: 1.6;
  background: var(--dock-bg); color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
  transition: opacity .3s, transform .3s;
}
.toast strong { color: var(--accent); }
.toast.is-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
.toast__close {
  position: absolute; top: 6px; right: 8px; width: 26px; height: 26px;
  border: 0; background: transparent; color: var(--ink-mute);
  font-size: 17px; line-height: 1; cursor: pointer; border-radius: 6px;
}
.toast__close:hover { color: var(--ink); background: var(--chip-bg); }
@media (max-width: 640px) { .toast { display: none; } }

/* ---------------- reveal ---------------- */
.anim [data-reveal] { opacity: 0; transform: translateY(16px); }
.anim [data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1);
}

/* ---------------- customers (고객사 로고) ---------------- */
.logo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.logo-tile {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  aspect-ratio: 16 / 7; display: grid; place-items: center; padding: 16px 20px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.logo-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.logo-tile img { max-width: 100%; max-height: 54px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 1024px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .logo-tile { padding: 12px 14px; border-radius: 10px; }
  .logo-tile img { max-height: 40px; }
}
