/* Home renewal: the reference home's CI, capabilities, partners and cases. */

html,
body {
  overflow-x: clip;
}

.typo-section {
  position: relative;
  min-height: 606px;
  padding: 0 calc(max(0px, 50% - 640px) + clamp(20px, 5vw, 40px)); /* 다른 섹션과 같은 콘텐츠 밴드 */
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
  color: #0b0c0f;
}

.typo-layout {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.84fr) minmax(420px, 1.16fr);
  align-items: center;
  gap: clamp(80px, 9vw, 150px);
}

.typo-stage {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.typo-row {
  width: max-content;
  color: #08090b;
  font-size: clamp(54px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.typo-open {
  align-self: flex-start;
}

.typo-cube {
  align-self: flex-end;
  margin-top: 18px;
  color: #2865e8;
}

.typo-cube em {
  font-style: normal;
}

.typo-copy {
  position: relative;
  z-index: 2;
  color: #202329;
  font-size: 21px;
  line-height: 1.75;
}

.typo-copy p {
  margin: 0;
  white-space: normal;
}

.typo-copy b {
  font-weight: 700;
}

.typo-copy a {
  width: max-content;
  margin-top: 30px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #11151b;
  border-radius: 999px;
  color: #11151b;
  font-size: 15px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.typo-copy a:hover,
.typo-copy a:focus-visible {
  background: #11151b;
  color: #fff;
}

.typo-copy a img {
  width: 14px;
  height: 14px;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.typo-copy a:hover img,
.typo-copy a:focus-visible img {
  filter: brightness(0) invert(1);
  transform: translateX(3px);
}

.js .typo-open,
.js .typo-cube,
.js .typo-copy {
  opacity: 0;
  transition:
    opacity 0.85s ease,
    transform 0.95s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.js .typo-open {
  transform: translateX(-30%) scale(0.72);
  transform-origin: left center;
}

.js .typo-cube {
  transform: translateX(30%) scale(0.72);
  transform-origin: right center;
}

.js .typo-copy {
  transform: translateY(36px);
}

.js .typo-section.is-visible .typo-open,
.js .typo-section.is-visible .typo-cube {
  opacity: 1;
  transform: translateX(0) scale(1.15);
}

.js .typo-section.is-visible .typo-copy {
  opacity: 1;
  transform: none;
  transition-delay: 0.16s;
}

.capabilities-section {
  position: relative;
  min-height: 1258px;
  padding: 147px calc(max(0px, 50% - 640px) + clamp(20px, 5vw, 40px));
  display: grid;
  grid-template-columns: minmax(360px, 535px) minmax(520px, 662px);
  justify-content: center;
  align-items: start;
  column-gap: clamp(40px, 6vw, 86px);
  background: #f5f5f4 url("home-refresh/capabilities-background.png") center top / cover no-repeat;
}

.capabilities-head {
  position: sticky;
  top: 108px;
  align-self: start;
  padding-top: 4px;
}

.capabilities-head .section-label,
.global-tech-copy .section-label {
  margin: 0 0 16px;
  color: #135fe6;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.capabilities-head h2 {
  margin: 0;
  font-size: 45px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.055em;
}

.capabilities-head > p:last-child {
  margin: 61px 0 0;
  color: #171717;
  font-size: 21px;
  line-height: 1.65;
}

.capabilities-grid {
  display: flex;
  flex-direction: column;
  gap: 29px;
}

.capability-card {
  min-height: 300px;
  padding: 48px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #171717;
  box-shadow: 0 12px 36px rgba(30, 45, 70, 0.04);
  transition:
    background 0.45s ease,
    color 0.45s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.capability-card.is-active {
  background: #2f63e5;
  color: #fff;
  box-shadow: 0 24px 58px rgba(31, 77, 190, 0.22);
  transform: translateX(-10px);
}

.capability-card.is-active h3 {
  color: #fff;
}

.capability-title-row,
.capability-title,
.capability-title-row a {
  display: flex;
  align-items: center;
}

.capability-title-row {
  justify-content: space-between;
  gap: 24px;
}

.capability-title {
  gap: 24px;
}

.capability-title > img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.capability-card h3 {
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.capability-title-row a {
  gap: 10px;
  color: #1762dd;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.capability-title-row a img {
  width: 24px;
  height: 24px;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.capability-title-row a:hover img,
.capability-title-row a:focus-visible img {
  transform: translateX(4px);
}

.capability-card.is-active .capability-title-row a {
  color: #fff;
}

.capability-card.is-active .capability-title-row a img {
  filter: brightness(0) invert(1);
}

.capability-card > p {
  margin: 37px 0 0;
  color: #5b5b5b;
  font-size: 19px;
  line-height: 1.55;
  /* pretty 는 마지막 줄 고아만 막을 뿐 균등 분할은 안 한다 — 523/177 → 342/358 */
  text-wrap: balance;
}

.capability-card.is-active > p {
  color: rgba(255, 255, 255, 0.9);
}

.capability-chips {
  margin: 43px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.capability-chips span {
  padding: 11px 14px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #333;
  font-size: 15px;
  line-height: 1;
}

/* 활성 카드(파란 배경 rgb(47,99,229)) 위의 칩.
   흰색 틴트(0.18)는 배경을 rgb(85,127,234)로 밝혀 흰 글자 대비가 3.74:1 로 AA(4.5) 미달이었다.
   틴트 방향을 잉크 쪽으로 뒤집으면 알약 모양·절제된 톤을 유지하면서 대비 5.95:1 로 통과한다. */
.capability-card.is-active .capability-chips span {
  background: rgba(14, 22, 38, 0.1);
  color: #fff;
}

.global-tech-section {
  min-height: 727px;
  padding: 150px calc(max(0px, 50% - 640px) + clamp(20px, 5vw, 40px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  color: #090a0d;
  text-align: center;
  overflow: hidden;
}

.global-tech-copy h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.global-tech-copy > p:last-child {
  margin: 45px 0 0;
  color: #22252a;
  font-size: 21px;
  line-height: 1.65;
  letter-spacing: -0.025em;
}

.global-tech-logos {
  width: min(1278px, 100%);
  margin-top: 120px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
}

.global-tech-logos a {
  height: 62px;
  display: grid;
  place-items: center;
}

.global-tech-logos img {
  display: block;
  width: 100%;
  height: 62px;
  max-width: 126px;
  object-fit: contain;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.global-tech-logos a:hover img,
.global-tech-logos a:focus-visible img {
  opacity: 0.76;
  transform: translateY(-3px);
}

.js .global-tech-copy,
.js .global-tech-logos a {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.js .global-tech-section.is-visible .global-tech-copy,
.js .global-tech-section.is-visible .global-tech-logos a {
  opacity: 1;
  transform: none;
}

.js .global-tech-section.is-visible .global-tech-logos a:nth-child(2) { transition-delay: 0.06s; }
.js .global-tech-section.is-visible .global-tech-logos a:nth-child(3) { transition-delay: 0.12s; }
.js .global-tech-section.is-visible .global-tech-logos a:nth-child(4) { transition-delay: 0.18s; }
.js .global-tech-section.is-visible .global-tech-logos a:nth-child(5) { transition-delay: 0.24s; }
.js .global-tech-section.is-visible .global-tech-logos a:nth-child(6) { transition-delay: 0.3s; }

.home-cases-section.bcase {
  position: relative;
  height: calc(100vh + 550px);
  padding: 0;
  overflow: clip;
  background: #fff;
  color: #11151b;
}

.home-cases-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: #fff;
}

.home-case-opening {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
  pointer-events: none;
  opacity: var(--case-opening-opacity, 1);
}

.home-case-opening h2 {
  max-width: 1200px;
  margin: 0;
  color: #11151b;
  font-size: clamp(38px, 3.7vw, 52px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.home-cases-panel {
  position: absolute;
  z-index: 2;
  top: 64%;
  left: 50%;
  width: min(800px, 63%);
  height: calc(100% - 40px);
  overflow: hidden;
  border-radius: 16px;
  background: #2464e9;
  color: #fff;
  transform: translateX(-50%);
  will-change: top, width, height, border-radius;
}

.home-cases-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("home-refresh/cases-background.png") center / cover no-repeat;
  opacity: var(--case-bg-opacity, 0);
  pointer-events: none;
}

.home-cases-panel .bcase-head,
.home-cases-panel .bcase-mq,
.home-cases-panel .bcase-more {
  position: relative;
  z-index: 1;
}

.home-cases-panel .bcase-head {
  opacity: var(--case-head-opacity, 0);
  transform: translateY(var(--case-head-y, 16px));
}

.home-cases-panel .bcase-mq,
.home-cases-panel .bcase-more {
  opacity: var(--case-content-opacity, 0);
  transform: translateY(var(--case-content-y, 20px));
}

.home-cases-panel .bcase-head {
  width: min(960px, calc(100% - 80px));
  margin: 0 auto 30px;
  padding-top: clamp(58px, 7vh, 96px);
}

.home-cases-panel .bcase-head .eb {
  margin-bottom: 12px;
}

.home-cases-panel .bcase-head h2 {
  font-size: clamp(38px, 4vw, 48px);
}

.home-cases-panel .bcase-head .eb,
.home-cases-panel .bcase-head h2 {
  text-shadow: 0 3px 22px rgba(7, 31, 92, 0.2);
}

.home-cases-panel .bcase-head p {
  max-width: 620px;   /* 1줄 폭 1065px → 두 줄로 균등 분할되도록 제한 */
  margin: 24px auto 0;
  font-size: 21px;
  line-height: 1.6;
  text-wrap: balance;
}

.home-cases-panel .bcase-mq {
  overflow: visible;
}

.home-cases-panel .bcase-track {
  gap: 22px;
  margin-left: 16.5vw;
  padding-bottom: 0;
}

.home-cases-panel .bcase-row {
  gap: 22px;
}

.home-cases-panel .bcase-card {
  width: 540px;
  height: clamp(480px, 56vh, 585px);
  min-height: 0;
  padding: 30px;
  border-radius: 6px;
  box-shadow: none;
  color: #121419;
}

.home-cases-panel .bcase-card:hover {
  box-shadow: 0 18px 42px rgba(5, 25, 70, 0.22);
  transform: scale(1.015);
}

.home-cases-panel .bcase-visual {
  height: clamp(190px, 24vh, 260px);
  margin-bottom: 20px;
  border-radius: 5px;
  background: #fff;
}

.home-cases-panel .bcase-visual::after,
.home-cases-panel .bcase-card .cat {
  display: none;
}

.home-cases-panel .bcase-visual img {
  object-fit: cover;
}

.home-cases-panel .bcase-card h3 {
  font-size: 26px;
}

.home-cases-panel .bcase-card .sum {
  min-height: 50px;
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.5;
}

.home-cases-panel .bcase-card ul {
  margin-top: 20px;
  padding-top: 18px;
  gap: 6px;
}

.home-cases-panel .bcase-card li {
  gap: 7px;
  font-size: 16px;
  line-height: 1.35;
}

.home-cases-panel .bcase-card li i {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: url("home-refresh/check-blue.svg") center / contain no-repeat;
  color: transparent;
}

.home-cases-panel .bcase-row .bcase-card:nth-child(2) li i {
  background-image: url("home-refresh/check-purple.svg");
}

.home-cases-panel .bcase-row .bcase-card:nth-child(3) li i {
  background-image: url("home-refresh/check-green.svg");
}

.home-cases-panel .bcase-row .bcase-card:nth-child(4) li i {
  background-image: url("home-refresh/check-dark.svg");
}

.home-cases-panel .bcase-more {
  margin-top: clamp(22px, 3vh, 36px);
  font-size: 16px;
}

@media (min-width: 1101px) and (max-height: 800px) {
  .home-cases-panel .bcase-head {
    margin-bottom: 18px;
    padding-top: 34px;
  }

  .home-cases-panel .bcase-head h2 {
    font-size: 36px;
  }

  .home-cases-panel .bcase-head p {
    margin-top: 12px;
    font-size: 18px;
  }

  .home-cases-panel .bcase-card {
    height: 400px;
    padding: 20px;
  }

  .home-cases-panel .bcase-visual {
    height: 142px;
    margin-bottom: 12px;
  }

  .home-cases-panel .bcase-card h3 {
    font-size: 20px;
  }

  .home-cases-panel .bcase-card .sum {
    min-height: 40px;
    margin-top: 6px;
    font-size: 14px;
  }

  .home-cases-panel .bcase-card ul {
    margin-top: 8px;
    padding-top: 10px;
    gap: 3px;
  }

  .home-cases-panel .bcase-card li {
    font-size: 13px;
  }

  .home-cases-panel .bcase-more {
    margin-top: 14px;
  }
}

@media (max-width: 1100px) {
  .typo-section {
    padding: 90px clamp(20px, 5vw, 40px);
  }

  .typo-layout {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .typo-stage {
    width: min(480px, 100%);
    margin: 0 auto;
  }

  .typo-copy {
    width: min(700px, 100%);
    margin: 0 auto;
  }

  .typo-copy p {
    white-space: normal;
  }

  .capabilities-section {
    min-height: auto;
    padding: 100px clamp(20px, 5vw, 40px);
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .capabilities-head {
    position: relative;
    top: auto;
  }

  .capabilities-head > p:last-child {
    margin-top: 28px;
  }

  .capabilities-grid {
    width: min(760px, 100%);
    margin: 0 auto;
  }

  .capability-card.is-active {
    transform: none;
  }

  .global-tech-section {
    min-height: auto;
    padding: 100px clamp(20px, 5vw, 40px);
  }

  .global-tech-logos {
    margin-top: 70px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .home-cases-section.bcase {
    height: auto;
    background: #2464e9;
  }

  .home-cases-sticky {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .home-case-opening {
    position: relative;
    min-height: 360px;
    background: #fff;
  }

  .home-cases-panel {
    position: relative;
    top: auto !important;
    left: auto;
    width: 100% !important;
    height: auto !important;
    padding: 64px 0 72px;
    border-radius: 0 !important;
    transform: none;
  }

  .home-cases-panel::before,
  .home-cases-panel .bcase-head,
  .home-cases-panel .bcase-mq,
  .home-cases-panel .bcase-more {
    opacity: 1;
    transform: none;
  }

  .home-cases-panel .bcase-head {
    padding-top: 0;
  }

  .home-cases-panel .bcase-mq {
    overflow: hidden;
  }

  .home-cases-panel .bcase-card {
    height: 560px;
  }
}

@media (max-width: 720px) {
  .typo-section {
    min-height: 650px;
    padding: 80px clamp(20px, 5vw, 40px);
  }

  .typo-layout {
    gap: 48px;
  }

  .typo-stage {
    min-height: 145px;
  }

  .typo-row {
    font-size: clamp(46px, 15vw, 66px);
  }

  .typo-copy {
    font-size: 15px;
  }

  .typo-copy br {
    display: none;
  }

  .capabilities-section {
    padding: 82px clamp(20px, 5vw, 40px);
  }

  .capabilities-head h2 {
    font-size: 36px;
  }

  .capabilities-head > p:last-child {
    font-size: 16px;
  }

  .capability-card {
    height: auto;
    min-height: 286px;
    padding: 30px 24px;
  }

  .capability-title {
    gap: 14px;
  }

  .capability-title-row {
    align-items: flex-start;
  }

  .capability-title-row > a {
    font-size: 0;
  }

  .capability-card > p {
    margin-top: 30px;
    font-size: 16px;
  }

  .capability-chips {
    margin-top: 32px;
    gap: 8px;
  }

  .capability-chips span {
    padding: 9px 12px;
    font-size: 13px;
  }

  .global-tech-section {
    padding: 84px clamp(20px, 5vw, 40px) 76px;
  }

  .global-tech-copy h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .global-tech-copy > p:last-child {
    margin-top: 30px;
    font-size: 15px;
  }

  .global-tech-logos {
    margin-top: 52px;
    gap: 28px 18px;
  }

  .global-tech-logos img {
    max-width: 96px;
    max-height: 34px;
  }

  .home-case-opening {
    min-height: 320px;
    padding: 64px clamp(20px, 5vw, 40px);
  }

  .home-case-opening h2 {
    font-size: 34px;
  }

  .home-cases-panel {
    padding-top: 58px;
  }

  .home-cases-panel .bcase-head {
    width: calc(100% - 40px);
  }

  .home-cases-panel .bcase-head h2 {
    font-size: 36px;
  }

  .home-cases-panel .bcase-head p {
    font-size: 16px;
  }

  .home-cases-panel .bcase-track {
    margin-left: 20px;
  }

  .home-cases-panel .bcase-card {
    width: 84vw;
    height: 545px;
    padding: 22px;
  }

  .home-cases-panel .bcase-visual {
    height: 210px;
  }

  .home-cases-panel .bcase-card .sum {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typo-open,
  .typo-cube,
  .typo-copy,
  .global-tech-copy,
  .global-tech-logos a {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .home-cases-section.bcase {
    height: auto;
  }

  .home-cases-sticky {
    position: relative;
    height: auto;
  }

  .home-case-opening {
    display: none;
  }

  .home-cases-panel {
    position: relative;
    top: auto !important;
    left: auto;
    width: 100% !important;
    height: auto !important;
    padding: 70px 0;
    border-radius: 0 !important;
    transform: none;
  }

  .home-cases-panel::before,
  .home-cases-panel .bcase-head,
  .home-cases-panel .bcase-mq,
  .home-cases-panel .bcase-more {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Reference home: hero, case links and contact footer
   The header intentionally uses the shared site GNB.
   ========================================================= */

.home-page .fab-stack,
.home-page .scroll-progress {
  display: none;
}

.home-page .hero {
  position: relative;
  height: 145vh;
  min-height: 145vh;
  padding: 0;
  display: block;
  overflow: visible;
  background: #020a15;
}

.home-hero-shell {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #020a15;
}

.js .home-hero-shell {
  opacity: 0;
}

.js .home-hero-shell.is-entered {
  opacity: 1;
  transition: opacity 0.8s ease;
}

.home-scroll-motion .typo-open,
.home-scroll-motion .typo-cube,
.home-scroll-motion .typo-copy,
.home-scroll-motion .global-tech-copy,
.home-scroll-motion .global-tech-logos a {
  transition: none;
  will-change: opacity, transform;
}

.home-page .hslides {
  position: absolute;
  inset: 0;
}

.home-page .hslide video,
.home-page .home-hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.94) contrast(1.06);
}

.home-page .hveil {
  background:
    radial-gradient(circle at 50% 46%, rgba(3, 19, 41, 0.03) 0 25%, rgba(1, 9, 21, 0.2) 58%, rgba(1, 7, 16, 0.64) 100%),
    linear-gradient(180deg, rgba(1, 7, 16, 0.28) 0%, rgba(1, 8, 18, 0.03) 38%, rgba(1, 7, 16, 0.62) 100%);
}

.home-page .hslide > .wrap {
  position: absolute;
  z-index: 3;
  top: 37.5%;
  left: 50%;
  width: min(1120px, calc(100vw - 120px));
  max-width: none;
  padding: 0;
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
}

.home-page .h-support {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.home-page .h-title {
  width: 100%;
  max-width: none;
  min-height: 2.56em;
  margin: 0;
  color: #fff;
  font-size: 64px;
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-page .hslide .h-support,
.home-page .hslide .h-title {
  opacity: 0;
}

.home-page .hslide.on .h-support {
  opacity: 1;
  animation: home-hero-copy-in 0.65s ease both;
}

.home-page .hslide.on .h-title {
  opacity: 1;
  animation: none;
}

.typewriter-character {
  opacity: 0;
}

.typewriter-character.is-visible {
  opacity: 1;
}

.typewriter-character.is-current {
  position: relative;
}

.typewriter-caret {
  position: absolute;
  right: -7px;
  bottom: 0.1em;
  width: 2px;
  height: 0.86em;
  background: #fff;
  animation: home-caret-blink 0.8s steps(1) infinite;
}

.home-page .hero-ctrl {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.home-page .hero-ctrl > .wrap {
  position: static;
  width: 100%;
  max-width: none;
  padding: 0;
}

.home-page .hctrl {
  position: absolute;
  right: max(clamp(20px, 5vw, 40px), calc((100vw - 1280px) / 2 + 40px));
  bottom: 126px;
  display: flex;
  gap: 16px;
  pointer-events: auto;
}

.home-page .hnav {
  width: 18px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
}

.home-page .hnav:hover,
.home-page .hnav:focus-visible {
  color: #fff;
  transform: scale(1.08);
}

.home-page .hpag {
  position: absolute;
  right: auto;
  bottom: 64px;
  left: 50%;
  width: min(1280px, 100%);
  padding: 0 clamp(20px, 5vw, 40px);
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: auto;
}

/* 비활성 페이지네이션도 클릭 가능한 컨트롤이라 라벨이 AA(4.5)를 넘어야 한다.
   opacity 0.34 는 4개 슬라이드 배경 전부에서 2.17~2.28:1 로 크게 미달 → 0.72(최악 슬라이드 5.1:1).
   활성 항목은 opacity 1 + 흰 진행바라 위계 구분은 그대로 유지된다. */
.home-page .hpag-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 4px;
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.home-page .hpag-item:hover,
.home-page .hpag-item:focus-visible,
.home-page .hpag-item.on {
  opacity: 1;
}

/* 진행 바(트랙) — site2.css 의 border-top rgba(255,255,255,.28) 은 항목 opacity .72 를 곱하면
   유효 .20 이라 4개 슬라이드 전부 1.72~1.91:1 로 비텍스트 기준(3:1) 미달.
   .55 로 올려 3.6~3.8:1. (활성 항목의 흰 채움 바 i 는 그대로) */
.home-page .hpag-item {
  border-top-color: rgba(255, 255, 255, 0.55);
}

.home-page .hpag-item i {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(255, 255, 255, 0.36);
}

.home-page .hpag-item.on i {
  background: #fff;
  animation-duration: 6500ms;
}

.home-page .hpag-item span,
.home-page .hpag-item b {
  justify-self: start;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.home-case-link {
  display: block;
  flex: 0 0 auto;
  border-radius: 6px;
  color: inherit;
  transform-origin: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.home-case-link:hover {
  z-index: 2;
  box-shadow: 0 18px 42px rgba(5, 25, 70, 0.22);
  transform: scale(1.025);
}

.home-case-link:hover .bcase-card {
  transform: none;
}

.home-cases-panel .bcase-row .home-case-link:nth-child(2) .bcase-card li i {
  background-image: url("home-refresh/check-purple.svg");
}

.home-cases-panel .bcase-row .home-case-link:nth-child(3) .bcase-card li i {
  background-image: url("home-refresh/check-green.svg");
}

.home-cases-panel .bcase-row .home-case-link:nth-child(4) .bcase-card li i {
  background-image: url("home-refresh/check-dark.svg");
}

.home-case-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.home-cases-panel .bcase-mq:hover .bcase-track,
.home-cases-panel .bcase-mq:focus-within .bcase-track {
  animation-play-state: paused;
}

/*
 * Reference home desktop case choreography
 * The panel itself expands during the 550px pinned scroll range. Keep the
 * completed layout on the same absolute coordinates as the source home so
 * the headline and cards land in the same place at every viewport pass.
 */
@media (min-width: 1101px) {
  .home-cases-panel .bcase-head {
    width: min(960px, calc(100% - 80px));
    margin: 0 auto;
    padding-top: 150px;
  }

  .home-cases-panel .bcase-head p {
    margin-top: 38px;
  }

  .home-cases-panel .bcase-mq {
    position: absolute;
    top: 390px;
    right: 0;
    left: 0;
    overflow: visible;
  }

  .home-cases-panel .bcase-card {
    width: 540px;
    height: 585px;
    padding: 30px;
  }

  .home-cases-panel .bcase-visual {
    height: 260px;
    margin-bottom: 0;
  }

  .home-cases-panel .bcase-card h3 {
    margin-top: 22px;
    font-size: 24px;
  }

  .home-cases-panel .bcase-card .sum {
    min-height: 54px;
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.55;
  }

  .home-cases-panel .bcase-card ul {
    margin-top: 30px;
    padding-top: 0;
    border-top: 0;
    gap: 7px;
  }

  .home-cases-panel .bcase-card li {
    font-size: 18px;
  }

  .home-cases-panel .bcase-card li i {
    width: 24px;
    height: 24px;
  }

  .home-cases-panel .bcase-more {
    position: absolute;
    top: 1075px;
    left: 50%;
    margin: 0;
    font-size: 18px;
    transform: translateX(-50%);
  }
}

@keyframes home-hero-copy-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes home-caret-blink {
  0%, 52% { opacity: 1; }
  53%, 100% { opacity: 0; }
}

.home-page footer.contact {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
  background: transparent;
  color: #fff;
  text-align: left;
}

.home-page footer.contact > .contact-inner {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: #111;
  box-shadow: none;
}

.home-page footer.contact .contact-shell {
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto;
  padding: 135px 0 120px;
}

.home-page footer.contact .contact-top {
  padding-bottom: 110px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: start;
}

.home-page footer.contact .contact-copy .section-label,
.home-page footer.contact .contact-button {
  display: none;
}

.home-page footer.contact .contact-copy h2 {
  max-width: 1000px;
  margin: 0;
  color: #fff;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

/* 리드가 타 메뉴 Contact(fcta-p, 54~65자) 수준이라 520px 에선 2줄이 된다.
   좌측 열이 실제로 956px 까지 허용하므로 790px 로 넓혀 한 줄에 수용(문구 실측 739px). */
.home-page footer.contact .contact-description {
  max-width: 790px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
}

.home-page footer.contact .contact-badge {
  position: relative;
  width: 104px;
  height: 104px;
  margin: -20px 0 0;
}

.home-page footer.contact .contact-badge-core {
  position: absolute;
  inset: 0;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2861e6;
  color: #fff;
  transform: none;
  transition:
    background 0.2s,
    transform 0.2s;
}

.home-page footer.contact .contact-badge-core:hover {
  background: #174dcc;
  transform: scale(1.05);
}

.home-page footer.contact .contact-badge-core svg {
  width: 28px;
  height: 28px;
}

.home-page footer.contact .contact-info {
  padding-top: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(620px, 1.22fr);
  gap: 60px;
  border-top: 0;
}

/* 상호(OCUBE CO.,LTD.)는 본문이 아니라 보조 정보지만 장식이 아니라 읽는 텍스트다.
   알파 0.28 은 rgb(17,17,17) 배경에서 2.48:1 로 AA(4.5) 크게 미달 → 0.48 로 올려 5.00:1.
   옆의 로고 이미지도 같은 알파로 맞춰야 한 쌍으로 보인다(텍스트만 밝히면 어긋나 보임). */
.home-page .contact-company-brand-home {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 16px;
  font-weight: 600;
}

.home-page .contact-company-brand-home img {
  width: 104px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.48;
}

.home-page .contact-company-brand-home span {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.home-page footer.contact .contact-company dl {
  margin: 26px 0 0;
  display: grid;
  gap: 11px;
}

.home-page footer.contact .contact-company dl > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: baseline;
}

.home-page footer.contact .contact-company dt,
.home-page footer.contact .contact-company dd,
.home-page footer.contact .contact-links p,
.home-page footer.contact .contact-links a {
  font-size: 14px;
}

.home-page footer.contact .contact-company dt {
  color: #7f8ba0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.home-page footer.contact .contact-company dd {
  margin: 0;
  color: #c3cad6;
  line-height: 1.5;
}

.home-page footer.contact .contact-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
}

.home-page footer.contact .contact-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.home-page footer.contact .contact-links p {
  margin: 0 0 4px;
  color: #7f8ba0;
  font-weight: 800;
}

.home-page footer.contact .contact-links a {
  color: #c3cad6;
  line-height: 1.3;
  transition: color 0.2s;
}

.home-page footer.contact .contact-links a:hover {
  color: #fff;
}

.home-page footer.contact .contact-legal {
  margin-top: 70px;
  padding-top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  border-top: 0;
  color: #7f8ba0;
  font-size: 11px;
}

.home-page footer.contact .contact-legal a {
  color: #aeb8c8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-page footer.contact .contact-legal a:first-of-type {
  margin-left: auto;
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .home-page .gnb,
  .home-page .gnb.scrolled,
  .home-page .gnb.gnb-mega {
    height: 72px;
    background: rgba(24, 28, 37, 0.96);
    color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-page .gnb .nav {
    padding: 0 20px;
  }

  /* HOME 은 모바일에서 스크롤 후에도 헤더가 계속 다크(rgba(24,28,37,.96))인데
     site2.css 의 .gnb.scrolled .m-toggle 이 글자를 var(--fg)(#141414)로 바꿔
     다크 위 다크 = 1.20:1 로 버튼이 사라졌다(사용자 제보 화면). 흰 글자로 되돌린다.
     ⚠️ :not(.m-lock) 필수 — 메뉴를 열면 site2.css 의 body.m-lock .gnb 가 헤더를 흰색으로 바꾸므로
     그때는 흰 글자를 강제하면 안 된다(흰 위 흰 = 1.00). m-lock 상태는 site2 의 다크 글자 규칙에 맡긴다. */
  .home-page:not(.m-lock) .gnb.scrolled .m-toggle,
  .home-page:not(.m-lock) .gnb.gnb-mega .m-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.1);
  }

  .home-page .gnb .logo img,
  .home-page .gnb.scrolled .logo img,
  .home-page .gnb.gnb-mega .logo img {
    width: auto;                                          /* 공통 height:34px 를 그대로 따르게 */
    filter: brightness(0) invert(1);
  }

  .home-page .home-sitemap-toggle,
  .home-page .gnb.scrolled .home-sitemap-toggle {
    width: 54px;
    height: 54px;
    margin-left: auto;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
  }

  .home-page .home-sitemap-toggle span {
    width: 24px;
    height: 24px;
    display: block;
    background: radial-gradient(circle, currentColor 1.5px, transparent 2px) 0 0 / 8px 8px;
  }
}

@media (max-width: 1100px) {
  .home-page footer.contact .contact-shell {
    width: calc(100% - 64px);
    padding: 96px 0 72px;
  }

  .home-page footer.contact .contact-top {
    padding-bottom: 72px;
  }

  .home-page footer.contact .contact-copy h2 {
    font-size: clamp(44px, 7vw, 60px);
  }

  .home-page footer.contact .contact-info {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .home-page .hero {
    height: 100vh;
    min-height: 100vh;
  }

  .home-page .hslide > .wrap {
    top: 47%;
    width: calc(100vw - 40px);
  }

  .home-page .h-support {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .home-page .h-title {
    font-size: clamp(29px, 8vw, 38px);
    line-height: 1.25;
  }

  .home-page .hpag {
    bottom: 30px;
    width: calc(100vw - 40px);
    padding: 0;
    gap: 6px;
  }

  .home-page .hpag-item span {
    font-size: 11px;
  }

  .home-page .hpag-item b {
    display: none;
  }

  .home-page .hctrl {
    right: 20px;
    bottom: 72px;
  }

  .home-page footer.contact .contact-shell {
    width: calc(100% - 48px);
    padding: 72px 0 48px;
  }

  .home-page footer.contact .contact-top {
    display: block;
    padding-bottom: 64px;
  }

  .home-page footer.contact .contact-copy h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .home-page footer.contact .contact-description {
    font-size: 16px;
  }

  .home-page footer.contact .contact-badge {
    display: none;
  }

  .home-page footer.contact .contact-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .home-page footer.contact .contact-legal {
    margin-top: 48px;
  }

  .home-page footer.contact .contact-legal a:first-of-type {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-character {
    opacity: 1;
  }

  .typewriter-caret {
    display: none;
  }
}
