/* 홈 랜딩 h7 — Superdesign v7.
   본문 Pretendard, 제목 NMF Classic(brand.css h1–h3). 최소 글자 13px. */

.hm {
  --ez-body: "Pretendard Variable", Pretendard, "Noto Sans KR", "Inter", system-ui, sans-serif;
  --ez-gold: #d9a441;
  background: var(--ez-canvas);
  color: var(--ez-ink);
  font-family: var(--ez-body);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hm * { box-sizing: border-box; }
.hm a { color: var(--ez-primary); text-decoration: none; }
.hm a:hover { color: var(--ez-primary-press); }
.hm :focus-visible { outline: 2px solid var(--ez-primary); outline-offset: 3px; }
.hm p, .hm h1, .hm h2, .hm h3, .hm h4, .hm span, .hm a, .hm li, .hm label {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hm h1, .hm h2, .hm h3, .hm h4 { text-wrap: balance; }
.hm p { text-wrap: pretty; }
.hm [data-field-lines] { white-space: pre-line; }

.hm-wrap {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}
@media (min-width: 1100px) {
  .hm-wrap { width: min(1280px, calc(100% - 144px)); }
}

.hm-band,
.hm-seed,
.hm-hero,
#brand-story,
#seed-band,
#cases,
#vibe,
#diary, #trust,
#contact, #services, .svc { scroll-margin-top: 96px; }

/* 섹션 패딩: 텍스트 양에 비례 — 글이 많은 섹션(lg)일수록 숨 쉴 공간을 더 준다. 모바일은 한 단계 작게 */
.hm-band { padding: 48px 0; }
.hm-band--lg { padding: 64px 0; }
.hm-band--md { padding: 56px 0; }
.hm-band--sm { padding: 40px 0; }
@media (min-width: 769px) {
  .hm-band { padding: 80px 0; }
  .hm-band--lg { padding: 112px 0; }
  .hm-band--md { padding: 88px 0; }
  .hm-band--sm { padding: 64px 0; }
}

.hm-intro { max-width: 48rem; margin: 0 auto 48px; text-align: center; }
.hm-intro--left { margin-left: 0; margin-right: 0; text-align: left; }
.hm-intro .ez-eyebrow,
.hm-kicker { display: block; margin: 0 0 16px; }
.hm .ez-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ez-primary);
}
.hm-title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-weight: 400;
  color: var(--ez-ink);
}
.hm-title--xl { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.25; word-break: keep-all; }
.hm-lead {
  margin: 0;
  max-width: 36em;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--ez-mute);
}
.hm-muted { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ez-mute); }
.hm-quote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ez-ink); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hm-hero-copy { animation: hmIn .6s cubic-bezier(.23,1,.32,1) both; }
  .hm-picks { animation: hmIn .6s cubic-bezier(.23,1,.32,1) .12s both; }
}
@keyframes hmIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---- Nav ---- */
.hm-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ez-hairline);
}
.hm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 8px 0;
  color: var(--ez-ink);
}
.hm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ez-ink);
  flex: none;
}
.hm-logo:hover { color: var(--ez-ink); }
.hm-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
}
.hm-mark-fallback,
.hm-mark img {
  position: absolute;
  inset: 0;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
}
.hm-mark-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ez-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.hm-mark img { object-fit: cover; z-index: 1; }
.hm-wordmark {
  font-family: var(--ez-display);
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--ez-primary);
}
.hm-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hm-links a {
  color: var(--ez-ink-2);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9999px;
}
.hm-links a:hover { color: var(--ez-ink); background: var(--ez-soft); }

.hm .ez-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hm .ez-btn-primary { background: var(--ez-primary); color: #fff; }
.hm .ez-btn-primary:hover { background: var(--ez-primary-press); color: #fff; }
.hm .ez-btn-secondary {
  background: #fff;
  color: var(--ez-ink);
  border-color: var(--ez-hairline-input);
}
.hm .ez-btn-secondary:hover { background: var(--ez-soft); color: var(--ez-ink); }
.hm-btn-seed { background: var(--ez-seed); color: #fff; border: 0; }
.hm-btn-seed:hover { background: var(--ez-seed-ink); color: #fff; }
.hm-nav .ez-btn-secondary { min-height: 40px; padding: 8px 20px; font-size: 14px; }

/* ---- Hero (centered storytelling) ---- */
.hm-hero-band { position: relative; overflow: hidden; }
.hm-hero {
  position: relative;
  z-index: 1;
  padding: 88px 0 48px;
  text-align: center;
}
.hm-hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.hm-hero-copy {
  max-width: 52rem;
  margin: 0 auto;
}
.hm-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.2;
  word-break: keep-all;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ez-ink);
}
.hm-hero .hm-lead {
  margin: 0 auto 40px;
  max-width: 36em;
}
.hm-hero .hm-lead strong,
.hm-hero .hm-lead .hm-em {
  color: var(--ez-ink);
  font-weight: 700;
}
.hm-picks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hm .ez-brand-pick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--ez-hairline-input);
  color: var(--ez-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
@media (hover: hover) { .hm .ez-brand-pick:hover {
  border-color: var(--ez-primary);
  background: var(--ez-soft);
  color: var(--ez-ink);
  box-shadow: 0 4px 16px var(--ez-shadow);
} }
.hm-pick-no { display: none; }
.hm .ez-brand-pick-ico { font-size: 18px; line-height: 1; flex: none; }
.hm .ez-brand-pick-arrow { color: var(--ez-mute); margin-left: 2px; }
.hm .ez-brand-pick:hover .ez-brand-pick-arrow { color: var(--ez-primary); }
.hm-video:not(:empty) { margin-top: 48px; width: 100%; max-width: 960px; margin-inline: auto; }

@media (min-width: 769px) {
  .hm-hero { padding: 120px 0 72px; }
}

/* ---- Problem → Answer (문제 제기) ----
   정적 2단: 왼쪽 문제, 오른쪽 해답. 모션은 home-motion.js가 충분히 스크롤된 뒤 한 번만 천천히 재생 */
.hm-pairs { display: flex; flex-direction: column; }
.hm-scroll-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--ez-hairline);
}
.hm-scroll-pair:last-child { border-bottom: 1px solid var(--ez-hairline); }
.hm-pair-problem .ez-eyebrow { color: var(--ez-mute); }
.hm-pair-pain {
  margin: 0;
  font-family: var(--ez-body);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ez-mute);
}
.hm-pair-answer .hm-pair-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.3px;
  font-weight: 400;
}
.hm-pair-quote {
  margin: 0 0 12px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ez-ink);
}
.hm-pair-answer .hm-muted { margin: 0 0 20px; max-width: 32em; font-size: 15px; }
.hm-key { color: var(--ez-primary); position: relative; white-space: nowrap; }
.hm-key:empty { display: none; }
.hm-pair-quote br:has(+ .hm-key:empty) { display: none; }
.hm-key::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 1px;
  background: var(--ez-gold);
  transform-origin: left;
  transition: transform .8s cubic-bezier(.23,1,.32,1);
}
.hm-key.is-pending::after { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .hm-key::after { transition: none; } }
@media (min-width: 900px) {
  .hm-scroll-pair {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    padding: 48px 0;
  }
}

/* ---- Seed band ---- */
.hm-seed {
  background: var(--ez-seed-bg);
  border-block: 1px solid var(--ez-seed-bg-2);
  padding: 40px 0;
}
@media (min-width: 769px) {
  .hm-seed { padding: 56px 0; }
}
.hm-seed .seed-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.hm-seed-mark { display: none; }
.hm-seed .ez-eyebrow { color: var(--ez-seed); }
.hm-seed h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--ez-seed-ink);
}
.hm-seed-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ez-seed-body);
  max-width: 36em;
}
.hm-seed .seed-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hm-seed .seed-count-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.hm-seed .seed-count {
  font-family: var(--ez-display);
  font-size: clamp(72px, 10vw, 104px);
  font-weight: 400;
  line-height: 1;
  color: var(--ez-gold);
  font-variant-numeric: tabular-nums;
}
.hm-seed .seed-stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ez-seed);
}
@media (min-width: 900px) {
  .hm-seed .seed-wrap {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 48px;
  }
  .hm-seed .seed-stat {
    align-items: flex-end;
    text-align: right;
  }
}

/* ---- Works bento ---- */
.hm-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.hm-case {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 20px;
  background: var(--ez-soft);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease;
  min-height: 100%;
}
.hm-case:hover { color: inherit; }
.hm-case--outline {
  background: #fff;
  border-color: var(--ez-hairline);
}
.hm-case--wide {
  background: #fff;
  border-color: var(--ez-hairline);
}
a.hm-case:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--ez-shadow);
}
.hm-case-tag {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ez-primary);
}
.hm-case h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.3px;
}
.hm-case .hm-muted { margin: 0; }
.hm-case-media {
  margin-top: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ez-hairline);
  background: #fff;
}
.hm-case-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hm-case-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  background: #f8faf8;
  border-bottom: 1px solid var(--ez-hairline);
}
.hm-case-chrome i {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  display: block;
  background: #ddd;
}
.hm-case-chrome i:nth-child(1) { background: #f5a8a4; }
.hm-case-chrome i:nth-child(2) { background: #f5d08a; }
.hm-case-chrome i:nth-child(3) { background: #9ad4a4; }
.hm-more {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ez-ink);
}
.hm-case:hover .hm-more { color: var(--ez-primary); }
.hm-case--wide .hm-case-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hm-case-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: none;
}
.hm-case-swatches span {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--ez-soft);
}
.hm-case-swatches span:nth-child(2) { background: var(--ez-cream); }
.hm-case-swatches span:nth-child(3) { background: var(--ez-primary-subdued); }
.hm-case-swatches span:nth-child(4) { background: var(--ez-dark); }
.hm-case-swatches span:nth-child(5) { background: var(--ez-soft); display: none; }

@media (min-width: 900px) {
  .hm-bento {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
  }
  .hm-case--hero { grid-column: span 8; padding: 36px; }
  .hm-case--side { grid-column: span 4; padding: 36px; }
  .hm-case--wide {
    grid-column: span 12;
    padding: 36px;
  }
  .hm-case--wide .hm-case-inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
  .hm-case--wide .hm-case-copy { flex: 1; }
  .hm-case-swatches {
    grid-template-columns: repeat(5, 64px);
  }
  .hm-case-swatches span:nth-child(5) { display: block; }
}

/* ---- Vibe / AI coding 8/4 ---- */
.hm-vibe { background: var(--ez-soft); }
.hm-vibe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.hm-vibe-copy .hm-title { margin: 0 0 16px; font-size: clamp(26px, 2.8vw, 32px); }
.hm-vibe-copy p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ez-mute);
}
.hm-vibe-copy p:last-child { margin-bottom: 0; }
.hm-code {
  border-radius: 20px;
  background: var(--ez-term);
  color: var(--ez-term-text);
  box-shadow: 0 16px 40px var(--ez-shadow-dark);
  overflow: hidden;
  order: -1;
}
.hm-code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hm-code-dots { display: flex; gap: 8px; margin-right: 8px; }
.hm-code-dots i {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  display: block;
}
.hm-code-dots i:nth-child(1) { background: var(--ez-mac-red); }
.hm-code-dots i:nth-child(2) { background: var(--ez-mac-yellow); }
.hm-code-dots i:nth-child(3) { background: var(--ez-mac-green); }
.hm-code pre {
  margin: 0;
  padding: 28px;
  min-height: 200px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ez-term-text);
  white-space: pre-wrap;
}
.hm-caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--ez-primary-soft);
  vertical-align: text-bottom;
  animation: ezCaretBlink 1s step-end infinite;
}
@media (min-width: 900px) {
  .hm-vibe-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 40px;
  }
  .hm-code { order: 0; }
}

/* ---- Diary ---- */
.hm-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hm-diary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.hm-post {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 20px;
  background: var(--ez-soft);
  border: 1px solid transparent;
  height: 100%;
}
.hm-post--side {
  background: #fff;
  border-color: var(--ez-hairline);
  padding: 28px;
}
.hm-post image-slot,
.hm-post img {
  display: none;
}
.hm-date {
  font-size: 13px;
  color: var(--ez-mute);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.hm-post h3 {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  font-weight: 400;
}
.hm-post--side h3 { font-size: 18px; margin-bottom: 12px; }
.hm-post .hm-muted { margin: 0 0 16px; }
.hm-post a[id^="diary-a"],
.hm-post .hm-more {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--ez-ink);
}
.hm .ez-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.hm .ez-blog-grid > a:first-child {
  background: var(--ez-soft);
  border-radius: 20px;
}
@media (min-width: 900px) {
  .hm-diary {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 24px;
  }
  .hm-diary-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .hm .ez-blog-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .hm .ez-blog-grid > a:first-child { grid-row: span 2; }
}

/* ---- Contact ---- */
.hm-contact-band { background: var(--ez-soft); border-top: 1px solid var(--ez-hairline); }
.hm-contact {
  display: grid;
  gap: 36px;
  align-items: start;
}
.hm-contact h2 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.hm-contact .hm-lead { margin: 0 0 12px; font-size: 18px; }
.hm-mail { margin: 20px 0 0; font-size: 13px; color: var(--ez-mute); }
.hm-mail a { display: inline-block; padding: 8px 0; font-size: 16px; }
.hm-form {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--ez-hairline);
  box-shadow: 0 1px 3px var(--ez-shadow);
}
.hm-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.hm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ez-ink-2);
}
.hm .ez-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--ez-hairline-input);
  border-radius: 6px;
  background: var(--ez-soft);
  color: var(--ez-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.hm textarea.ez-input { min-height: 160px; resize: vertical; }
.hm .ez-input:focus-visible {
  outline: 2px solid var(--ez-primary);
  outline-offset: 2px;
  border-color: var(--ez-primary);
  background: #fff;
}
.hm-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ez-mute);
}
.hm-check input { margin: 3px 0 0; accent-color: var(--ez-primary); flex: none; }
.hm-check a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.hm-form .ez-btn { width: 100%; margin-top: 4px; min-height: 52px; font-size: 17px; }
.hm-status { margin: 0; min-height: 20px; font-size: 14px; color: var(--ez-ink-2); }
.hm-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 900px) {
  .hm-contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
  .hm-form { padding: 40px; }
  .hm-form-row { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ---- Footer ---- */
.hm-foot {
  background: var(--ez-term);
  color: var(--ez-term-text);
  padding: 24px 0;
}
@media (min-width: 769px) {
  .hm-foot { padding: 28px 0; }
}
.hm-foot a { color: #fff; }
.hm-foot a:hover { color: var(--ez-primary-subdued); }
.hm-foot :focus-visible { outline-color: #fff; }
.hm-foot-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hm-foot-brand {
  font-family: var(--ez-display);
  font-size: 28px;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0;
}
.hm-foot-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  opacity: 0.75;
}
.hm-foot-copy { margin: 0 0 12px; font-size: 13px; opacity: 0.85; }
.hm-foot .ezer-biz { margin-top: 4px; font-size: 13px; line-height: 1.8; opacity: 0.85; }
.hm-foot .ezer-biz a { display: inline-block; padding: 8px 0; font-weight: 500; }
@media (min-width: 769px) {
  .hm-foot-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  body { overflow-x: clip; }
  .hm-nav { flex-wrap: wrap; row-gap: 4px; gap: 12px; min-height: 64px; }
  .hm-links { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; }
  .hm-links a { padding: 8px; }
  .hm-picks { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .hm .ez-brand-pick { justify-content: center; }
  #brand-story .hm-scroll-pair p + p { display: block !important; }
  .hm-seed .seed-stat { align-items: flex-start; text-align: left; }
  /* brand.css 모바일 시드 카운터 32px 규칙을 이긴다 — h7은 큰 숫자를 유지 */
  #seed-band .seed-count,
  .hm-seed .seed-count { font-size: clamp(64px, 18vw, 88px) !important; }
  #seed-band .seed-wrap { display: grid !important; gap: 24px !important; }
}
@media (hover: none) {
  a.hm-case:hover { transform: none; }
}

/* ==== 2026-10-27 스테인드글라스 히어로 · 다섯 가지 섬김 (PLAN.md §4.1, §6) ==== */
.hm-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hm .hm-btn-lg { min-height: 48px; padding: 14px 24px; font-size: 15px; font-weight: 500; text-decoration: none; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
@media (hover: hover) { .hm .hm-btn-lg:hover { transform: translateY(-1px); box-shadow: 0 6px 18px var(--ez-shadow); } }
.hm-hero-glass { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; }
.sg { position: relative; width: min(76vw, 300px); aspect-ratio: 1; --glow: transparent; }
.sg-img, .sg-light { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sg::before { content: ""; position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.sg[data-z]::before { opacity: 1; }
.sg--hero { border-radius: 50%; box-shadow: 0 20px 40px rgba(31, 42, 68, .12); }
.sg-light { pointer-events: none; }
.sg-w { opacity: 0; fill: #0f1a2e; transition: opacity .6s ease; }
.sg[data-z] .sg-w { opacity: .36; }
.sg[data-z="0"] .sg-w0, .sg[data-z="1"] .sg-w1, .sg[data-z="2"] .sg-w2, .sg[data-z="3"] .sg-w3, .sg[data-z="4"] .sg-w4 { opacity: 0; }
.sg[data-z="0"] { --glow: rgba(46, 90, 172, .55); } .sg[data-z="1"] { --glow: rgba(62, 142, 90, .55); } .sg[data-z="2"] { --glow: rgba(107, 79, 160, .55); }
.sg[data-z="3"] { --glow: rgba(179, 38, 62, .5); } .sg[data-z="4"] { --glow: rgba(224, 160, 48, .6); }
.sg-keys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 520px; }
.sg-key { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ez-hairline); border-radius: 999px; background: #fff; color: var(--ez-ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.sg-key i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.sg-key[aria-pressed="true"], .sg-key:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); box-shadow: 0 4px 14px color-mix(in srgb, var(--c) 22%, transparent); }
.sg-card { min-height: 92px; width: min(100%, 420px); padding: 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, .86); border: 1px solid var(--ez-hairline); box-shadow: 0 8px 24px var(--ez-shadow); text-align: center; }
.sg-card-item { animation: sgIn .35s cubic-bezier(.23, 1, .32, 1) both; }
.sg-card-en { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--c); }
.sg-card-name { margin: 0 0 6px; font-family: var(--ez-display); font-size: 19px; color: var(--ez-ink); }
.sg-card-hint { margin: 0; font-size: 14px; color: var(--ez-mute); }
.sg-card-link { display: inline-block; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--ez-primary); text-decoration: none; }
@keyframes sgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1024px) {
  .hm-hero { text-align: left; padding: 96px 0 72px; }
  .hm-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
  .hm-hero-copy { margin: 0; }
  .hm-hero .hm-lead { margin-left: 0; }
  .hm-hero-cta { justify-content: flex-start; }
  .sg--hero { width: min(36vw, 480px); }
  .hm-video:not(:empty) { grid-column: 1 / -1; }
}

/* 다섯 가지 섬김: 왼쪽 고정 창(스크롤에 따라 빛이 돎) + 오른쪽 서비스 5개 */
.hm-svc { background: linear-gradient(180deg, #fff 0%, var(--ez-soft) 18%, var(--ez-soft) 82%, #fff 100%); }
.hm-svc-intro { text-align: center; max-width: 44rem; margin: 0 auto 40px; }
.hm-svc-intro .hm-lead { margin: 16px auto 0; color: var(--ez-ink-2); }
.hm-svc-grid { display: grid; gap: 24px; }
.hm-svc-rail { position: sticky; top: 64px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin: 0 -12px; background: #f3f7f4; border-radius: 0 0 14px 14px; }
.sg--rail { width: 56px; flex: none; }
.hm-svc-now { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--ez-display); font-size: 18px; color: var(--ez-ink); }
.hm-svc-now-i { width: 10px; height: 10px; border-radius: 50%; background: var(--now, #2E5AAC); transition: background .4s ease; }
.hm-svc-list { display: grid; gap: 48px; }
.svc { display: grid; gap: 20px; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--ez-hairline); border-top: 4px solid var(--c); box-shadow: 0 8px 24px var(--ez-shadow); transition: box-shadow .3s ease, transform .3s ease; }
.svc.is-lit { box-shadow: 0 12px 36px color-mix(in srgb, var(--c) 20%, transparent); }
.svc-tag { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: color-mix(in srgb, var(--c) 82%, #000); }
.svc-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.svc-name { margin: 0 0 4px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; color: var(--ez-ink); }
.svc-one { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--ez-ink-2); }
.svc-desc { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: var(--ez-ink-2); word-break: keep-all; }
.svc-points { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.svc-points li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ez-ink); }
.svc-points li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--c); opacity: .85; }
.svc-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: color-mix(in srgb, var(--c) 80%, #000); text-decoration: none; }
.svc-link span { transition: transform .2s ease; }
.svc-link:hover span { transform: translateX(4px); }
.svc-media { margin: 0; }
.svc-frame { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--ez-hairline); background: #f6f7f6; padding-top: 22px; }
.svc-dots { position: absolute; top: 7px; left: 10px; display: flex; gap: 5px; }
.svc-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d5dbd7; }
.svc-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: #eef1ef; }
.svc-media figcaption { margin-top: 8px; font-size: 13px; color: var(--ez-mute); }
@media (min-width: 1024px) {
  .hm-svc-grid { grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
  .hm-svc-rail { top: 120px; flex-direction: column; gap: 16px; padding: 0; margin: 0; background: none; backdrop-filter: none; }
  .sg--rail { width: 320px; }
  .sg--rail { border-radius: 50%; box-shadow: 0 16px 32px rgba(31, 42, 68, .1); }
  .hm-svc-now { font-size: 22px; }
  .svc { grid-template-columns: 1fr 1.15fr; align-items: center; padding: 32px; gap: 32px; }
  .hm-svc-list { gap: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-w, .sg-img, .svc, .sg-key, .hm-svc-now-i { transition: none !important; }
  .sg-card-item { animation: none !important; }
}
/* CLS: 모바일 햄버거가 붙기 전부터 헤더를 한 줄(64px)로 고정 */
@media (max-width: 768px) {
  html.mnav-pre .hm-nav { flex-wrap: nowrap; height: 64px; }
  html.mnav-pre .hm-nav > :not(.hm-logo):not(.ezer-burger) { display: none !important; }
  html.mnav-pre .hm-nav::after { content: ""; width: 44px; height: 44px; margin-left: auto; flex: none; }
  html.mnav-pre .hm-nav:has(.ezer-burger)::after { display: none; }
}

.hm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 성능: 화면 밖 섹션은 보일 때 레이아웃·페인트(첫 로딩 레이아웃 비용 감소) */
#brand-story, #cases, #vibe, #diary { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.hm-pairs-more { margin: 40px auto 0; max-width: 40rem; text-align: center; font-size: 15px; color: var(--ez-ink-2); word-break: keep-all; }
.hm-pairs-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ez-primary); }
.svc-link--sub { margin-left: 16px; font-weight: 500; color: var(--ez-mute); text-decoration: underline; text-underline-offset: 3px; }
/* 히어로 카드: 항목을 한 칸에 겹쳐 높이 고정(들썩임 방지). 바뀌는 건 투명도만 */
.sg-card { display: grid; align-items: center; }
.sg-card > .sg-card-item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; animation: none; }
.sg-card > .sg-card-item.is-on { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.sg-keys { padding: 0 4px; }
.sg-key { transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
html:not(.js) .sg-card > .sg-card-item.is-default { opacity: 1; visibility: visible; }
/* 스튜디오: 테마 20종 흐르는 띠(두 줄, 반대 방향). 화면에 보일 때만 흐르고, 마우스·포커스를 올리면 멈춤, 움직임 줄이기면 손으로 넘기는 가로 목록 */
.svc-media--themes { min-width: 0; }
.tm { display: grid; gap: 12px; overflow: hidden; border-radius: 16px; padding: 12px 0; background: #fff; border: 1px solid var(--ez-hairline); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tm-row { overflow: hidden; }
.tm-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; animation: tmScroll 70s linear infinite; animation-play-state: paused; }
.tm-row--rev .tm-track { animation-direction: reverse; }
.tm.is-in .tm-track { animation-play-state: running; }
.tm:hover .tm-track, .tm:focus-within .tm-track { animation-play-state: paused; }
@keyframes tmScroll { to { transform: translateX(calc(-50% - 6px)); } }
.tm-card { display: block; width: 168px; color: var(--ez-ink); text-decoration: none; }
.tm-card img { display: block; width: 168px; height: 105px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--ez-hairline); background: var(--ez-soft); transition: opacity .2s ease; }
.tm-card:hover img { opacity: .85; }
.tm-name { display: flex; flex-direction: column; padding: 6px 2px 0; font-size: 13px; font-weight: 600; }
.tm-name small { font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--ez-mute); }
.tm-all { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; font-weight: 600; color: var(--ez-primary); }
@media (prefers-reduced-motion: reduce) {
  .tm { -webkit-mask-image: none; mask-image: none; }
  .tm-row { overflow-x: auto; scroll-snap-type: x mandatory; }
  .tm-track { animation: none; }
  .tm-track li { scroll-snap-align: start; }
  .tm-track li:has([aria-hidden="true"]) { display: none; }
}
@media (max-width: 640px) { .tm-card, .tm-card img { width: 140px; } .tm-card img { height: 88px; } }

/* ===== 에제르를 믿을 수 있는 이유 (#trust) — 탭 3개. JS 없으면 탭 바 숨김 + 세 패널 모두 표시 ===== */
.hm-trust { padding: 64px 0 56px; background: var(--ez-canvas); }
@media (min-width: 900px) { .hm-trust { padding: 104px 0 88px; } }
.tr-head { margin-bottom: 24px; }
.tr-head .hm-title { margin: 0 0 8px; }
.tr-sum { margin: 0; font-size: 17px; color: var(--ez-mute); }
.tr-tabs {
  display: flex; gap: 4px; padding: 4px; margin: 0 0 28px;
  background: var(--ez-soft); border: 1px solid var(--ez-hairline); border-radius: 999px;
  width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.tr-tabs::-webkit-scrollbar { display: none; }
.tr-tabs[hidden] { display: none; }
.tr-tabs [role="tab"] {
  flex: 0 0 auto; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ez-ink); font: 600 16px/1 var(--ez-body);
  cursor: pointer; white-space: nowrap; scroll-snap-align: start;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tr-tabs [role="tab"]:hover { background: rgba(0,0,0,.05); }
.tr-tabs [role="tab"][aria-selected="true"] { background: var(--ez-ink); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.hm .tr-tabs [role="tab"] span { color: inherit; }
@media (max-width: 560px) {
  .tr-tabs { width: 100%; }
  .tr-tabs [role="tab"] { flex: 1 0 auto; padding: 0 16px; }
}
/* 패널: 선택한 패널만 표시, 높이는 JS가 부드럽게 이어 줌(아래 내용만 움직이고 위쪽은 그대로) */
.tr-panels { display: grid; gap: 48px; }
.tr-panel:focus-visible { outline-offset: 6px; border-radius: 8px; }
html.js .tr-panels.is-tabs { gap: 0; }
html.js .tr-panels.is-tabs > .tr-panel { display: none; }
html.js .tr-panels.is-tabs > .tr-panel.is-on { display: block; animation: trFade .3s ease; }
@keyframes trFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html.js .tr-panels.is-tabs > .tr-panel, html.js .tr-panels.is-tabs > .tr-panel.is-on { transition: none; animation: none; }
  .tr-tabs [role="tab"] { transition: none; }
}
.tr-ph { margin: 0 0 20px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; font-weight: 400; }
.tr-tag { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ez-mute); }
.tr-body { margin: 0 0 12px; font-size: 17px; line-height: 1.75; }
.tr-work { display: grid; gap: 20px; }
@media (min-width: 900px) { .tr-work { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.hm a.tr-case {
  display: flex; flex-direction: column; padding: 16px 16px 24px; border-radius: 20px;
  background: #fff; border: 1px solid var(--ez-hairline); color: var(--ez-ink);
  transition: border-color .2s ease, transform .2s ease;
}
.hm a.tr-case:hover { border-color: var(--ez-ink); color: var(--ez-ink); }
.tr-case picture { display: block; border-radius: 12px; overflow: hidden; margin-bottom: 18px; background: var(--ez-soft); aspect-ratio: 16 / 10; }
.tr-case img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tr-case .tr-tag, .tr-case .tr-name, .tr-case .tr-desc, .tr-case .tr-go { padding-inline: 8px; }
.tr-name { display: block; font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.tr-desc { display: block; font-size: 16px; color: var(--ez-mute); margin-bottom: 14px; }
.tr-go { font-size: 16px; font-weight: 600; margin-top: auto; }
.tr-seed { display: grid; gap: 28px; padding: 32px 24px; border-radius: 24px; background: var(--ez-soft); }
@media (min-width: 900px) { .tr-seed { grid-template-columns: 1.6fr 1fr; align-items: center; padding: 56px; } }
.tr-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tr-stat .seed-count { font-size: clamp(64px, 8vw, 104px); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ez-primary); letter-spacing: -.02em; }
.tr-meter { display: block; width: min(100%, 260px); height: 8px; margin: 10px 0 2px; border-radius: 99px; background: color-mix(in srgb, var(--ez-primary) 14%, transparent); overflow: hidden; }
.tr-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ez-gold), var(--ez-primary)); transform-origin: left; }
.tr-stat > span:not(.tr-meter) { font-size: 16px; color: var(--ez-ink-2); }
.hm a.tr-btn { display: inline-flex; align-items: center; min-height: 48px; margin-top: 14px; padding: 0 22px; border-radius: 999px; background: var(--ez-ink); color: #fff; font-weight: 600; }
.hm a.tr-btn span { color: #fff; }
.tr-proc { display: grid; gap: 32px; }
@media (min-width: 900px) { .tr-proc { grid-template-columns: 1fr 1fr; gap: 56px; } }
.tr-blog .hm-diary { gap: 12px; }
.tr-blog .hm-post { padding: 22px 24px; }
.tr-blog .hm-post h3, .tr-blog .hm-post--side h3 { font-size: 18px; margin-bottom: 10px; }
.tr-blog .hm-post .hm-muted { display: none; }
.tr-blog .hm-diary-side { display: grid; gap: 12px; }
.hm a.tr-all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 600; font-size: 16px; }

/* 블로그 글 제목은 실시간으로 바뀌어 홈 전용 서체(부분 글꼴)에 없는 글자가 섞임 → 본문 서체로 통일 */
.hm .tr-blog .hm-post h3 { font-family: var(--ez-body) !important; font-weight: 700 !important; letter-spacing: -.01em; }
.tr-blog .hm-post .hm-post-thumb { display: block; margin: -22px -24px 18px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px 20px 0 0; background: var(--ez-hairline); }
.tr-blog .hm-post .hm-post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.23,1,.32,1); }
.tr-blog .hm-post:hover .hm-post-thumb img { transform: scale(1.04); }
.tr-blog .hm-post:not(.hm-post--side) h3 { font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .tr-blog .hm-post .hm-post-thumb img { transition: none; } }
/* 히어로 키: 위 3개 · 아래 2개 */
.sg-keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: min(100%, 540px); max-width: none; }
.sg-keys > li { grid-column: span 2; display: flex; justify-content: center; }
.sg-keys > li:nth-child(4) { grid-column: 2 / span 2; }
.sg-keys > li:nth-child(5) { grid-column: 4 / span 2; }
.sg-keys .sg-key { width: 100%; justify-content: center; }
@media (max-width: 480px) { .sg-keys { gap: 6px; } .sg-keys .sg-key { padding: 8px 4px; font-size: 14px; letter-spacing: -.02em; white-space: nowrap; border-color: color-mix(in srgb, var(--c) 45%, var(--ez-hairline)); } .sg-keys .sg-key i { display: none; } }
