/* User-validated desktop values, applied after the established theme. */
@media (min-width: 900px) {
  header { flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 24px; }
  header .logo { order: 0; }
  header nav { order: 1; flex: 1 1 auto; width: auto; flex-wrap: nowrap;
               justify-content: flex-end; gap: 28px; margin: 0 8px 0 0; padding: 0; }
  header a.button { order: 2; margin-left: 0; }
}

.slide-profile .slide-copy { margin-top: 110px; }
.slide-profile .profile-heading { margin-top: 28px; }
.slide-profile .profile-name { font-size: 52px; line-height: 1.1; letter-spacing: 2px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; }
.slide-profile .profile-name .name-tag { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0; }
.slide-profile .naver-profile-link { font-size: 11px; font-weight: 600; letter-spacing: 0;
  border-radius: 6px; height: 22px; min-height: 0; padding: 0 7px 0 5px; margin: 0;
  display: inline-flex; align-items: center; gap: 4px; box-sizing: border-box; }
.slide-profile .naver-profile-link * { line-height: 1; }
.slide-profile .naver-profile-link .naver-link-mark { width: 14px; height: 14px; min-height: 0;
  font-size: 10px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; }
.slide-profile .profile-promise { background: none; padding: 0; border-radius: 0; margin: 18px 0 0; }
.slide-profile .profile-promise h2 { font-size: 33px; line-height: 1.18; font-weight: 800;
  color: #1c302b; letter-spacing: -0.4px; margin: 0 0 8px; }
.slide-profile .profile-promise h2 .l1 { font-size: 50.5px; line-height: 1.05; display: inline-block; letter-spacing: -0.6px; }
.slide-profile .profile-promise h2 .l1 .p { font-size: 33px; font-weight: 800; }
.slide-profile .profile-promise h2 .l2 { display: inline-block; line-height: 1.15; }
.slide-profile .profile-promise h2 .ai { color: #ee852c; }
.slide-profile .profile-promise h2 em { font-style: normal; color: #0f6052; }
.slide-profile .profile-promise p { font-size: 17px; font-weight: 500; color: #58665f; margin: 0;
  padding-left: 16px; border-left: 4px solid #ee852c; line-height: 1.4; }
.slide-profile .profile-facts { list-style: none; padding: 0; margin-top: 34px; gap: 4px; }
.slide-profile .profile-facts li { display: flex; align-items: baseline; gap: 14px; margin: 0; padding: 0; line-height: 1.15; }
.slide-profile .profile-facts li::before, .slide-profile .profile-facts li::marker { content: none; display: none; }
.slide-profile .profile-facts li strong { display: inline-block; flex: 0 0 auto; font-size: 18px; font-weight: 800; color: #0f6052; letter-spacing: 0; }
.slide-profile .profile-facts li span { display: inline; font-size: 16px; font-weight: 600; color: #33403a; letter-spacing: 0.1px; }
.slide-profile .actions { margin-top: 24px; }

header { transition: padding .25s ease, box-shadow .25s ease; }
header .logo-wordmark { transition: font-size .25s ease; }
header .logo-korean { transition: opacity .2s ease, max-height .25s ease; overflow: hidden; max-height: 24px; }
header.is-compact { padding: 8px 28px; box-shadow: 0 2px 12px rgba(28,48,43,.08); }
header.is-compact .logo-wordmark { font-size: 26px; }
header.is-compact .logo-korean { opacity: 0; max-height: 0; }
header.is-compact a.button { padding: 10px 18px; }

/* Clear only inherited presentation that conflicts with the requested layout. */
.slide-profile .profile-facts li strong,
.slide-profile .profile-facts li span { margin-top: 0; line-height: inherit; }
.slide-profile .naver-profile-link { border: 1px solid #bbd3c7; background: #fff; color: #145c3d; white-space: nowrap; }
.slide-profile .naver-link-mark { background: #03a94d; color: #fff; }
header.is-compact .logo { row-gap: 0; }
@media (min-width: 900px) {
  header { height: 100px; }
  header.is-compact { height: 64px; }
}

/* Under 900px retain a second navigation row; keep the desktop values above intact. */
@media (max-width: 899px) {
  header { height: auto; flex-wrap: wrap; align-items: center; }
  header .logo { order: 0; }
  header a.button { order: 1; margin-left: auto; }
  header nav, header nav.open { order: 2; flex: 0 0 100%; width: 100%; display: flex;
    position: static; flex-wrap: nowrap; justify-content: flex-start; gap: 18px;
    margin: 0; padding: 0; border: 0; box-shadow: none; max-height: none;
    overflow-x: auto; overflow-y: hidden; }
  header nav a { flex: 0 0 auto; }
  header .menu-toggle { display: none; }
  .slide-profile .slide-copy { margin-top: 0; }
  .slide-profile .profile-heading { margin-top: 28px; }
  .slide-profile .profile-name { font-size: 40px; gap: 14px; }
  .slide-profile .profile-name .name-tag { font-size: 20px; }
  .slide-profile .profile-promise h2 { font-size: calc(36px * 33 / 50.5); }
  .slide-profile .profile-promise h2 .l1 { font-size: 36px; }
  .slide-profile .profile-promise h2 .l1 .p { font-size: calc(36px * 33 / 50.5); }
  .slide-profile .profile-facts li { flex-wrap: nowrap; }
  .slide-profile .profile-facts li span { min-width: 0; }
}
@media (min-width: 801px) and (max-width: 899px) {
  .slide-profile:not([hidden]) { position: relative; }
  .slide-profile.profile-background .hero-slide-layout { display: block; height: auto; padding-top: 350px; padding-bottom: 135px; }
  .profile-background .profile-copy { width: 100%; max-width: none; }
  .profile-background .profile-scene-shade { background: linear-gradient(180deg,transparent 0%,rgba(255,255,255,.03) 20%,rgba(255,255,255,.92) 36%,rgba(255,255,255,.98) 51%,rgba(255,255,255,.98) 100%); }
}

/* Desktop photo nameplate. Preserve the existing HTML and mobile layout. */
@media (min-width: 900px) {
  /* Anchor the nameplate to the slide, not its copy column or inner wrap. */
  .slide-profile .hero-slide-layout,
  .slide-profile .profile-copy { position: static; }

  .slide-profile .profile-heading {
    position: absolute; right: 48px; bottom: 88px; z-index: 5;
    width: auto; padding: 0 0 0 18px;
    border-left: 3px solid #ee852c;
    background: none; box-shadow: none; transform: none;
  }
  .slide-profile .profile-heading::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    inset: -60px -80px -100px -120px;
    background: radial-gradient(ellipse at 60% 60%, rgba(10,25,20,.55), rgba(10,25,20,0) 70%);
  }
  .slide-profile .profile-name {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0;
    color: #fff; font-size: 34px; line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
  }
  .slide-profile .name-tag { display: contents !important; }
  .slide-profile .name-tag > span:first-child {
    order: -1; margin-bottom: 4px;
    font-size: 14px; font-weight: 500; letter-spacing: .08em; color: #f2a35c;
  }
  .slide-profile .naver-profile-link {
    margin: 4px 0 0; padding: 0; background: none; border: 0; box-shadow: none;
    color: #fff; font-size: 12px; opacity: .9;
  }
  .slide-profile .naver-profile-link > span:not(.naver-link-mark) { color: #fff; }
  .slide-profile .profile-qr { display: none; }
  /* Keep the disclosure above the carousel controls (bottom: 21px, height: 50px). */
  .slide-profile .scene-disclosure { right: auto; left: 32px; bottom: 88px; }
}

/* All slides share one grid track, sized by the tallest content at this width.
   Inactive slides still reserve space, but remain invisible and non-interactive. */
.hero-carousel .hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: auto;
  min-height: 740px;
}
.hero-carousel .hero-slide {
  grid-area: 1 / 1;
  align-self: stretch;
  position: relative;
  inset: auto;
  min-width: 0;
}
/* Every photo fills the same slide frame; retain each photo's focal point. */
.hero-carousel .hero-slide > .scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.hero-carousel .hero-slide[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}
@media (max-width: 899px) {
  .hero-carousel .hero-stage { min-height: 780px; }
}
