/* Live commerce uses the existing brand marks and the original headline rhythm. */
.live-commerce .service-hero .live-hero-headline {
  font-size: clamp(34px, 3.85vw, 72px);
  line-height: 1.12;
  letter-spacing: -.052em;
  word-break: keep-all;
}

.live-commerce .service-hero .live-hero-headline span {
  display: inline;
  margin: 0;
  color: #a8eed6;
  font: inherit;
}

#platforms .platform-logo {
  display: block;
  width: min(100%, 136px);
  height: 48px;
}

#platforms [data-platform="naver"] .platform-logo { width: min(100%, 124px); }
#platforms [data-platform="zigzag"] .platform-logo { width: min(100%, 108px); }
#platforms [data-platform="kurly"] .platform-logo { filter: brightness(1.48); }

/* Real project frames sit next to their service descriptions. */
.ai-content .work-example-grid,
.ai-content .model-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.7vw, 42px);
}

.ai-content .work-example-grid { margin-top: clamp(30px, 5vw, 64px); }
.ai-content .model-case-grid { margin: 0 0 clamp(30px, 4vw, 57px); }

.work-example {
  overflow: hidden;
  border: 1px solid #a5ebcc26;
  border-radius: 17px;
  background: #0c1612;
}

.work-preview {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #070c0a;
}

.work-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

.work-media.is-portrait {
  background: radial-gradient(ellipse at 50% 40%, #1d4438, #08110d 74%);
}

.work-media.is-portrait > img { object-fit: contain; }
.work-preview:hover img, .library-card:hover img { transform: scale(1.035); }

.work-play-icon {
  position: absolute;
  display: grid;
  place-items: center;
  bottom: 13px;
  left: 13px;
  width: 38px;
  height: 38px;
  border: 1px solid #eafff283;
  border-radius: 50%;
  background: #0a1d17c4;
  color: #effff5;
  backdrop-filter: blur(8px);
  transition: background .25s ease, transform .25s ease;
}

.work-play-icon svg { width: 18px; fill: currentColor; }
.work-preview:hover .work-play-icon,
.library-card:hover .work-play-icon { background: #32604f; transform: scale(1.08); }

.work-duration {
  position: absolute;
  right: 11px;
  bottom: 11px;
  padding: 4px 7px;
  border-radius: 5px;
  color: #fff;
  background: #05100ce0;
  font: 500 11px/1.2 Pretendard, sans-serif;
  font-variant-numeric: tabular-nums;
}

.work-caption { padding: clamp(15px, 2vw, 24px); }

.work-caption .work-kicker,
.model-case-grid figcaption > span {
  margin: 0 0 9px;
  color: #93cdb4;
  font: 500 11px/1.45 Pretendard, sans-serif;
  letter-spacing: .065em;
}

.work-kicker span { margin-right: 7px; color: #609981; }
.work-caption h3 { margin: 0 0 7px; font-size: clamp(20px, 2vw, 29px); font-weight: 520; letter-spacing: -.045em; }
.work-caption > p:last-child { margin: 0; color: #a8c2b4; font-size: 13px; line-height: 1.65; word-break: keep-all; }

.model-case-grid figure { margin: 0; min-width: 0; }
.model-case-grid .work-media { border: 1px solid #a5ebcc26; border-radius: 15px; }
.model-case-grid figcaption { display: flex; flex-direction: column; align-items: flex-start; padding: 14px 0 0; }
.model-case-grid figcaption > span { margin-bottom: 6px; }
.model-case-grid figcaption > strong { font-size: clamp(15px, 1.5vw, 21px); font-weight: 500; line-height: 1.45; }

.work-preview:focus-visible, .library-filters button:focus-visible, .work-dialog button:focus-visible,
.work-dialog a:focus-visible { outline: 2px solid #a7f4d3; outline-offset: 4px; }

/* Keep the selected category's video list in place. */
.creative-library .library-filters { margin-bottom: 20px; }
.library-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 23px;
  color: #a9c5b7;
  font-size: 12px;
}

.library-list-head p { margin: 0; }
.library-list-head a { color: #9bd8bf; }

.ai-content .creative-space-hero {
  grid-template-columns: minmax(0, 1fr);
  background: #03060a;
}

.creative-space-hero .space-backdrop {
  position: absolute;
  z-index: -4;
  inset: 0;
  background: #03060a url('/assets/brand/universe/creative-orbit.webp') center 45% / cover no-repeat;
}

.creative-space-hero::before,
.creative-space-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.creative-space-hero::before {
  z-index: -2;
  background: linear-gradient(92deg, #03070ae6 0%, #03070ab0 31%, #03070a13 60%, #03070a00 78%),
    linear-gradient(0deg, #0b1010 0%, #03070a00 34%, #03070a00 78%, #03070a82 100%);
}

.creative-space-hero::after {
  z-index: -1;
  background: linear-gradient(0deg, #0b1010, transparent 21%);
}

.creative-space-hero canvas.creative-space { z-index: -3; opacity: 0; transition: opacity .45s ease; }
.creative-space-hero.is-space-rendered canvas.creative-space { opacity: 1; }
.creative-space-hero .hero-copy { max-width: 650px; }
.creative-space-hero .hero-copy h1 { text-shadow: 0 2px 22px #0106098c; }
.creative-space-hero .hero-copy .intro { color: #e0e9e7; max-width: 420px; }

#platforms {
  padding-block: clamp(65px, 7vw, 105px);
  scroll-margin-top: 60px;
}
#platforms .service-section-heading {
  max-width: 920px;
  margin: 0 auto clamp(38px, 5vw, 66px);
  text-align: center;
}
#platforms .service-section-heading h2 {
  margin: 16px 0 0;
  font-size: clamp(28px, 3.45vw, 47px);
  font-weight: 660;
  line-height: 1.22;
  word-break: keep-all;
}
#platforms .platform-heading-break { display: none; }

#platforms .service-platform-grid {
  max-width: 1200px;
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.9vw, 24px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#platforms .service-platform-grid article {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 2.4vw, 31px);
  min-height: 118px;
  padding: 24px clamp(20px, 2.4vw, 32px);
  border: 1px solid #edf4f015;
  border-radius: 8px;
  background: rgba(255, 255, 255, .023);
  transition: border-color .25s ease, background-color .25s ease;
}
#platforms .service-platform-grid article:hover { border-color: #d7fae72d; background-color: rgba(255, 255, 255, .037); }
#platforms .platform-mark { display: grid; min-height: 62px; place-items: center; }
#platforms .platform-copy { position: relative; padding-inline-start: clamp(18px, 2.4vw, 31px); }
#platforms .platform-copy::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 50px;
  transform: translateY(-50%);
  background: linear-gradient(transparent, #e5f8ed37, transparent);
}
#platforms .platform-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e8eeec;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 520;
  line-height: 1.52;
  word-break: keep-all;
}

.live-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid #a2efd43c;
}
.live-results-grid article { padding: clamp(25px, 3.8vw, 51px) clamp(16px, 3.4vw, 47px); }
.live-results-grid article + article { border-inline-start: 1px solid #a2efd427; }
.live-results-grid h3 { margin: 0; color: #9ff9d9; font-size: clamp(15px, 1.8vw, 22px); }
.live-results-grid .live-result-value {
  display: flex;
  align-items: baseline;
  gap: .075em;
  margin: 17px 0 16px;
  color: #f4fff9;
  font: 500 clamp(45px, 6vw, 88px)/1 Aeonik, Pretendard, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
}
.live-result-value strong { font-weight: inherit; }
.live-result-value span { color: #92f9d7; font-size: .49em; }
.live-results-grid article > p:last-child {
  margin: 0;
  color: #adbfba;
  font-size: clamp(13px, 1.35vw, 16px);
  line-height: 1.75;
  word-break: keep-all;
}
.live-results.will-count article {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .82s ease, transform .82s cubic-bezier(.18,.73,.19,1);
  transition-delay: calc(var(--result-order) * 140ms);
}
.live-results.is-counting article { opacity: 1; transform: translateY(0); }

.live-offer-list { display: grid; gap: clamp(30px, 6vw, 86px); }
.live-offer-item {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(24px, 6vw, 90px);
}
.live-offer-item:nth-child(even) { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.live-offer-item:nth-child(even) figure { grid-column: 2; grid-row: 1; }
.live-offer-item:nth-child(even) .live-offer-copy { grid-column: 1; grid-row: 1; }
.live-offer-item figure {
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 0;
  border: 1px solid #a7d5c12a;
  border-radius: 18px;
  background: #101918;
}
.live-offer-item img { display: block; width: 100%; height: auto; object-fit: contain; }
.live-offer-item .is-device-cutout {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.is-device-cutout > svg {
  display: block;
  width: min(93%, 490px);
  height: auto;
  filter: drop-shadow(0 13px 18px #0006);
}
.live-offer-item:first-child .is-device-cutout > svg {
  mask-image: linear-gradient(#000 94%, transparent);
}
.live-offer-copy h3 {
  margin: 13px 0 17px;
  font-size: clamp(25px, 3.4vw, 49px);
  line-height: 1.18;
  letter-spacing: -.042em;
  word-break: keep-all;
}
.live-offer-copy > p:not(.eyebrow) {
  margin: 0;
  color: #bbcfc8;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.75;
  word-break: keep-all;
}
.live-offer-copy ul { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 21px 0 0; padding: 0; }
.live-offer-copy li { padding: 5px 9px; border: 1px solid #abffe233; border-radius: 20px; color: #b9e8d8; font-size: 11px; }

@media (max-width: 970px) {
  #platforms .service-platform-grid { grid-template-columns: 1fr; max-width: 660px; }
}

@media (max-width: 760px) {
  #platforms .platform-heading-break { display: initial; }
  .live-results-grid { grid-template-columns: 1fr; }
  .live-results-grid article + article { border-inline-start: 0; border-block-start: 1px solid #a2efd427; }
  .live-results-grid .live-result-value { margin-block: 12px; }
  .live-offer-item, .live-offer-item:nth-child(even) { grid-template-columns: 1fr; gap: 18px; }
  .live-offer-item:nth-child(even) figure, .live-offer-item:nth-child(even) .live-offer-copy { grid-area: auto; }
  .live-offer-list { gap: 42px; }
}

@media (max-width: 640px) {
  #platforms .service-platform-grid { gap: 12px; }
  #platforms .service-platform-grid article { grid-template-columns: 1fr; gap: 10px; padding: 15px 18px 19px; }
  #platforms .platform-mark { min-height: 42px; }
  #platforms .platform-logo { height: 35px; }
  #platforms .platform-copy { padding-inline-start: 0; text-align: center; }
  #platforms .platform-copy::before { display: none; }
  #platforms .platform-copy ul { gap: 5px; }
  .ai-content .creative-space-hero { justify-content: center; padding-top: 138px; gap: 0; }
  .creative-space-hero .space-backdrop { background-position: 54% 40%; }
  .creative-space-hero::before {
    background: linear-gradient(103deg, #020608d8, #02060868 68%, #0206081a),
      linear-gradient(0deg, #0b1010, transparent 23%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .creative-space-hero canvas.creative-space { transition: none; }
  .live-results.will-count article { opacity: 1; transform: none; transition: none; }
}

.creative-library .library-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.library-entry { min-width: 0; }
.library-entry[hidden] { display: none; }
.library-card { text-decoration: none; height: 100%; }
.library-card .work-media > img { object-fit: cover; }
.library-card .work-media.is-portrait > img { object-fit: contain; }
.library-card .work-play-icon { width: 30px; height: 30px; left: 9px; bottom: 9px; }
.library-card .work-play-icon svg { width: 14px; }
.library-card strong { overflow-wrap: anywhere; word-break: keep-all; }
.library-card > small { line-height: 1.45; }

@media (min-width: 1180px) {
  .creative-library .library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Only the chosen film gets an embed, which is removed when the dialog closes. */
body.work-dialog-open { overflow: hidden; }

.work-dialog {
  box-sizing: border-box;
  width: min(1020px, calc(100vw - 30px));
  max-height: calc(100dvh - 30px);
  margin: auto;
  padding: clamp(14px, 2.2vw, 28px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #416153 #0a1410;
  border: 1px solid #b3f2d459;
  border-radius: 20px;
  background: #0a1410;
  color: #eafaf2;
  box-shadow: 0 22px 90px #0008;
}

.work-dialog.is-portrait { width: min(480px, calc(100vw - 30px)); }
.work-dialog:not([open]) { display: none; }
.work-dialog::backdrop { background: #000b; backdrop-filter: blur(8px); }

.work-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.work-dialog-heading p { color: #9cceb9; margin: 0 0 7px; font-size: 11px; letter-spacing: .09em; }
.work-dialog-heading h2 { margin: 0; font-size: clamp(18px, 2.4vw, 29px); line-height: 1.3; letter-spacing: -.032em; }
.work-dialog-close {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid #adf2ce4d;
  border-radius: 50%;
  background: #152921;
  color: #d4efdf;
  font: 400 23px/1 Pretendard, sans-serif;
  cursor: pointer;
}

.work-dialog-video {
  width: min(100%, calc(var(--work-aspect, 1.7778) * (100dvh - 210px)));
  aspect-ratio: var(--work-aspect, 1.7778);
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  background: #020604;
}

.work-dialog-video iframe, .work-dialog-video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.work-dialog-original { display: inline-block; margin-top: 13px; color: #9bd8bf; font-size: 12px; }

@media (max-width: 640px) {
  .live-commerce .service-hero .live-hero-headline { font-size: clamp(26px, 8.2vw, 48px); }
  #platforms .platform-logo { width: min(100%, 100px); height: 26px; }
  .ai-content .work-example-grid, .ai-content .model-case-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .work-example { border-radius: 13px; }
  .work-caption > p:last-child { font-size: 12px; }
  .library-list-head { font-size: 11px; }
  .library-card .work-play-icon { width: 25px; height: 25px; bottom: 7px; left: 7px; }
  .library-card .work-duration { font-size: 9px; right: 7px; bottom: 7px; }
  .work-dialog, .work-dialog.is-portrait { width: calc(100vw - 20px); border-radius: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .work-media > img, .work-play-icon { transition: none; }
}
