﻿/* The selected letter opens in place. Neighbouring glyphs flow sideways; a
   fixed row hit area prevents typography movement from changing hover intent. */
.hero #hero-title.wordmark-measured,
.hero.desert-hero:not([data-desert-custom="true"]) #hero-title.wordmark-measured {
  font-size: var(--wordmark-font-size);
  width: var(--wordmark-row-width);
  min-height: var(--wordmark-base-height);
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 1;
  transition: font-size .58s cubic-bezier(.22,.8,.2,1);
}
.hero #hero-title.wordmark-measured > .wordmark-letter,
.hero.desert-hero:not([data-desert-custom="true"]) #hero-title.wordmark-measured > .wordmark-letter {
  display: block;
  flex: 0 0 auto;
  width: var(--wordmark-width);
  overflow: visible;
  transition: width .58s cubic-bezier(.22,.8,.2,1);
}
.hero #hero-title.wordmark-brand,
.hero.desert-hero:not([data-desert-custom="true"]) #hero-title.wordmark-brand { gap: .045em; }
.hero #hero-title .wordmark-control {
  display: flex; align-items: flex-start; justify-content: flex-start; position: relative; width: 100%; padding: 0; margin: 0; border: 0;
  border-radius: 0; background: none; color: inherit; font: inherit;
  height: var(--wordmark-base-height,1em); min-width: 0; min-height: 0; line-height: inherit; letter-spacing: inherit;
  text-align: left; white-space: nowrap; cursor: pointer; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.hero #hero-title .wordmark-control > .wordmark-glyph,
.hero.desert-hero #hero-title .wordmark-control > .wordmark-glyph {
  display: block; width: auto; transform: none; translate: none; animation: none;
  line-height: 1; overflow: visible; opacity: 1; pointer-events: none;
}
.hero #hero-title .wordmark-control:after { content: none; }
.hero #hero-title.wordmark-brand .wordmark-control:before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 1em;
  background: currentColor;
  -webkit-mask-image: var(--wordmark-mask);
  mask-image: var(--wordmark-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
}
.hero #hero-title.wordmark-brand .wordmark-control[aria-expanded="false"] > .wordmark-glyph { opacity: 0; }
.hero #hero-title.wordmark-brand .wordmark-control[aria-expanded="true"]:before { content: none; }
.hero #hero-title.wordmark-brand[data-meaning-active] .wordmark-control:before {
  top: var(--wordmark-logo-top,.055em); height: var(--wordmark-logo-height,.88em);
}
.hero #hero-title .wordmark-control:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.hero #hero-title:focus-within,
.hero.desert-hero #hero-title:focus-within { opacity: 1; }
.hero[data-desert-light="shade"] #hero-title:focus-within { color: #f5f1e6; text-shadow: 0 1px 7px #172e2280; }

/* The explanation belongs to the wordmark, directly underneath its expanded
   row. It is text on the scene, with a keyboard-accessible path for long copy. */
.hero .hero-meaning-panel {
  position: absolute; z-index: 5;
  margin: 0; padding: 0 2px 2px;
  color: #243429; background: transparent;
  border: 0; border-radius: 0; box-shadow: none;
  text-align: left; overflow-x: hidden; overflow-y: auto;
  scrollbar-width: none; overscroll-behavior: contain;
  touch-action: pan-y;
  transition: top .58s cubic-bezier(.22,.8,.2,1);
}
.hero .hero-meaning-panel::-webkit-scrollbar { display: none; width: 0; height: 0; }
.hero .hero-meaning-panel:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.hero .hero-meaning-panel[hidden] { display: none; }
.hero .hero-meaning-name { font-family: var(--type-body); }
.hero .hero-meaning-copy {
  margin: 0;
  color: inherit;
  font-family: var(--type-body,'Noto Sans KR',sans-serif);
  font-size: clamp(13px,1vw,15px);
  font-weight: 400; line-height: 1.75; letter-spacing: -.025em;
  word-break: keep-all; overflow-wrap: anywhere; white-space: pre-line;
}
.hero[data-desert-light="shade"] .hero-meaning-panel { color: #f5f1e6; text-shadow: 0 1px 7px #172e2260; }
.hero[data-desert-custom="true"] .hero-meaning-panel { color: var(--site-text); text-shadow: 0 1px 7px rgba(0,0,0,.25); }
@media(max-width:760px) {
  .hero .hero-meaning-copy { font-size: 12px; line-height: 1.7; }
}
@media(max-height:540px) {
  .hero .hero-meaning-copy { font-size: 12px; line-height: 1.6; }
}
@media(prefers-reduced-motion:reduce) {
  .hero #hero-title.wordmark-measured,
  .hero #hero-title.wordmark-measured > .wordmark-letter,
  .hero .hero-meaning-panel { transition: none!important; }
}
body:is([data-motion=off],[data-effects=off]) .hero #hero-title.wordmark-measured,
body:is([data-motion=off],[data-effects=off]) .hero #hero-title.wordmark-measured > .wordmark-letter,
body:is([data-motion=off],[data-effects=off]) .hero .hero-meaning-panel { transition: none!important; }
@media(forced-colors:active) {
  .hero .hero-meaning-panel { color: CanvasText; text-shadow: none; }
  .hero #hero-title.wordmark-brand .wordmark-control:before { background: CanvasText; }
}

