/* 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) {
  .hero-stage:has(.slide-profile:not([hidden])) { height: auto; min-height: 0; }
  .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%); }
}
