/* Interaction system (owner, 2026-11-22: "버튼 인터액션이 너무 단순하고 슬롭", "아이콘 중심 정렬"). One vocabulary for every
   control, loaded last:
     text links  — a line draws in under the words from the left; the arrow passes through (out right, back in from left)
     pills       — a soft halo ring grows around the pill; the arrow passes through; press sinks the pill
     round icons — the glyph sits on a centred grid; the same halo ring; press sinks; arrows pass through
     chips, tabs — a light tint on hover; press sinks
     photo tiles — a slow zoom inside the frame; press settles the tile
   Every hover has a :focus-visible twin. Only transform, opacity, colour, background-size and box-shadow animate.
   prefers-reduced-motion keeps the colour changes and drops the movement. */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); --t-fast: .18s; --t-med: .35s;
  --halo-navy: rgba(11, 36, 71, .14); --halo-light: rgba(255, 255, 255, .24); }

@keyframes arrow-through {
  0% { transform: translateX(0); opacity: 1; }
  42% { transform: translateX(120%); opacity: 0; }
  43% { transform: translateX(-120%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes arrow-through-back {
  0% { transform: translateX(0); opacity: 1; }
  42% { transform: translateX(-120%); opacity: 0; }
  43% { transform: translateX(120%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* ---------- text links ---------- */
.link { text-decoration: none !important; padding-bottom: 4px;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--rule-blue), var(--rule-blue));
  background-repeat: no-repeat; background-position: 0 100%, 0 100%; background-size: 0 1px, 100% 1px;
  transition: background-size var(--t-med) var(--ease-out), color var(--t-fast) var(--ease-out); }
.link::after { display: inline-block; transition: none !important; }
.link:hover, .link:focus-visible { background-size: 100% 1px, 100% 1px; }
.link:hover::after, .link:focus-visible::after { transform: none !important; animation: arrow-through .5s var(--ease-io); }
.hm-924 .link { background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--rule-light), var(--rule-light)); }
.link:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 2px; } /* scale-exception: focus ring corner */

/* ---------- pills ---------- */
.btn, .btn-go, .ft-contact, .walk-start, .qt-dawn, .cover .play-v3 {
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out), transform var(--t-fast) var(--ease-out) !important; }
.btn, .btn-go, .walk-start, .qt-dawn { box-shadow: 0 0 0 0 var(--halo-navy) !important; }
.btn:hover, .btn-go:hover, .walk-start:hover, .qt-dawn:hover,
.btn:focus-visible, .btn-go:focus-visible, .walk-start:focus-visible, .qt-dawn:focus-visible {
  transform: none !important; box-shadow: 0 0 0 6px var(--halo-navy) !important; }
.ft-contact { text-shadow: none !important; filter: none !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 0 0 0 var(--halo-light) !important; }
.ft-contact:hover, .ft-contact:focus-visible { box-shadow: inset 0 0 0 1px #fff, 0 0 0 6px var(--halo-light) !important; }
.cover .play-v3 { box-shadow: 0 0 0 0 var(--halo-light); }
.cover:hover .play-v3, .cover:focus-visible .play-v3 { box-shadow: 0 0 0 6px var(--halo-light); }
.btn-go svg, .ft-contact svg, .qt-dawn svg { transition: none !important; }
.btn-go:hover svg, .btn-go:focus-visible svg, .ft-contact:hover svg, .ft-contact:focus-visible svg,
.qt-dawn:hover svg, .qt-dawn:focus-visible svg { transform: none !important; animation: arrow-through .5s var(--ease-io); }
.cover .play-v3 svg { transition: transform var(--t-med) var(--ease-out); }
.cover:hover .play-v3 svg, .cover:focus-visible .play-v3 svg { transform: scale(1.18); }
.btn:active, .btn-go:active, .ft-contact:active, .walk-start:active, .qt-dawn:active, .cover:active .play-v3 { transform: scale(.97) !important; }
.btn:focus-visible, .btn-go:focus-visible, .ft-contact:focus-visible, .walk-start:focus-visible, .qt-dawn:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

/* ---------- round icon buttons: the glyph is centred by the grid, never by a font's baseline ---------- */
.cover-play, .strip-btn, .ft-icon { display: grid !important; place-items: center; padding: 0 !important; line-height: 0 !important;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out), transform var(--t-fast) var(--ease-out) !important; }
.cover-play > svg, .strip-btn > svg, .ft-icon > svg { display: block; margin: 0 !important; }
.strip-btn > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.strip-btn { box-shadow: 0 0 0 0 var(--halo-navy); }
#mountain .strip-btn { box-shadow: 0 0 0 0 var(--halo-light); }
.strip-btn:not([disabled]):hover, .strip-btn:not([disabled]):focus-visible { box-shadow: 0 0 0 6px var(--halo-navy); }
#mountain .strip-btn:not([disabled]):hover, #mountain .strip-btn:not([disabled]):focus-visible { box-shadow: 0 0 0 6px var(--halo-light); }
.strip-btn.next:not([disabled]):hover svg, .strip-btn.next:not([disabled]):focus-visible svg { animation: arrow-through .5s var(--ease-io); }
.strip-btn.prev:not([disabled]):hover svg, .strip-btn.prev:not([disabled]):focus-visible svg { animation: arrow-through-back .5s var(--ease-io); }
.strip-btn[disabled]:active { transform: none !important; }
.cover-play { box-shadow: 0 0 0 0 var(--halo-light); }
.cover-play:hover, .cover-play:focus-visible { box-shadow: 0 0 0 6px var(--halo-light); }
.ft-icon { box-shadow: 0 0 0 0 var(--halo-light); }
.ft-icon:hover, .ft-icon:focus-visible { background: #fff !important; color: var(--night) !important; box-shadow: 0 0 0 5px var(--halo-light); }
.cover-play:active, .strip-btn:active, .ft-icon:active { transform: scale(.92) !important; }
.strip-btn:focus-visible, .cover-play:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

/* the admin key turns, as a key does */
.ft-admin svg { transition: transform var(--t-med) var(--ease-out); }
.ft-admin:hover svg, .ft-admin:focus-visible svg { transform: rotate(-35deg); }

/* ---------- chips and tabs ---------- */
.subnav a, .album-bar button, .sc-tabs button, .map-modes button, .qt-size button, .al-rest {
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out) !important; }
.subnav a:not([aria-current]):hover, .album-bar button:not([aria-pressed="true"]):not([aria-selected="true"]):hover,
.sc-tabs button:not([aria-selected="true"]):hover, .map-modes button:not([aria-pressed="true"]):hover, .qt-size button:hover, .al-rest:hover {
  background-color: rgba(11, 36, 71, .06); color: var(--ink); }
.subnav a:active, .album-bar button:active, .sc-tabs button:active, .map-modes button:active, .qt-size button:active, .al-rest:active { transform: scale(.96); }
.subnav a:focus-visible, .album-bar button:focus-visible, .sc-tabs button:focus-visible, .map-modes button:focus-visible,
.qt-size button:focus-visible, .al-rest:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- photo tiles: a slow zoom inside the frame ---------- */
.mtn-v3 a, .ph-open { overflow: hidden; isolation: isolate; transition: transform var(--t-fast) var(--ease-out); }
.mtn-v3 a img, .ph-open img, .cover img { transition: transform .9s var(--ease-out) !important; }
.mtn-v3 a:hover img, .mtn-v3 a:focus-visible img, .ph-open:hover img, .ph-open:focus-visible img { transform: scale(1.04); }
.mtn-v3 a:active, .ph-open:active, .cover:active { transform: scale(.99); }
.mtn-v3 a:focus-visible, .ph-open:focus-visible, .cover:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .link:hover::after, .link:focus-visible::after, .btn-go:hover svg, .ft-contact:hover svg, .qt-dawn:hover svg,
  .strip-btn:hover svg, .strip-btn:focus-visible svg { animation: none !important; }
  .btn:active, .btn-go:active, .ft-contact:active, .walk-start:active, .qt-dawn:active, .cover-play:active, .strip-btn:active,
  .ft-icon:active, .subnav a:active, .album-bar button:active, .sc-tabs button:active, .map-modes button:active,
  .qt-size button:active, .al-rest:active, .mtn-v3 a:active, .ph-open:active, .cover:active { transform: none !important; }
  .mtn-v3 a:hover img, .ph-open:hover img, .cover:hover img, .ft-admin:hover svg, .cover:hover .play-v3 svg { transform: none !important; }
  .link, .btn, .btn-go, .ft-contact, .walk-start, .qt-dawn, .cover-play, .strip-btn, .ft-icon { transition-duration: .01s !important; }
}

/* ---------- link arrows: drawn icons, never typed characters (owner, 2026-11-22: "화살표 아이콘도 너무 슬롭") ----------
   A link inside the site ends with a right arrow; a link that opens a new window ends with a north-east arrow. Both are
   24-unit keyline strokes (1.75, round caps), the same drawing as the pill and circle arrows, tinted by currentColor. */
.link::after, .text-link::after, .route-video::after {
  content: "" !important; display: inline-block; flex: none; width: 16px; height: 16px; margin-left: 4px; vertical-align: -2px;
  background: currentColor; opacity: 1 !important;
  -webkit-mask: url("icons/arrow-right.svg") center / contain no-repeat; mask: url("icons/arrow-right.svg") center / contain no-repeat; }
.link[target="_blank"]::after, .text-link[target="_blank"]::after, .route-video::after {
  -webkit-mask-image: url("icons/arrow-out.svg"); mask-image: url("icons/arrow-out.svg"); }
.route-video { display: inline-flex; align-items: center; gap: 8px; }
.route-video:hover::after, .route-video:focus-visible::after, .text-link:hover::after, .text-link:focus-visible::after { animation: arrow-through .5s var(--ease-io); }
.link[target="_blank"]:hover::after, .link[target="_blank"]:focus-visible::after,
.route-video:hover::after, .route-video:focus-visible::after { animation: arrow-out .5s var(--ease-io); }
@keyframes arrow-out {
  0% { transform: translate(0, 0); opacity: 1; }
  42% { transform: translate(110%, -110%); opacity: 0; }
  43% { transform: translate(-110%, 110%); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .link::after, .text-link::after, .route-video::after { animation: none !important; } }
/* the route film link uses the same drawn line as every other text link */
.route-video { text-decoration: none !important; padding-bottom: 4px;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--rule-blue), var(--rule-blue));
  background-repeat: no-repeat; background-position: 0 100%, 0 100%; background-size: 0 1px, 100% 1px;
  transition: background-size var(--t-med) var(--ease-out), color var(--t-fast) var(--ease-out); }
.route-video:hover, .route-video:focus-visible { background-size: 100% 1px, 100% 1px; }

/* ---------- cover control (owner, 2026-11-22: "먼가 좀 그렇다", "티나지 않게"): a quiet glyph and a row of thin segments ----------
   No circle and no border: the pause/play glyph sits on the photo with a soft shadow so it reads on light and dark frames,
   inside a full 44px target. One segment per photo; the current one fills over its hold time and stops when paused. */
.hm-hero .cover-play { width: 44px !important; height: 44px !important; padding: 0 !important; border: 0 !important; border-radius: 8px !important;
  background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; opacity: .82; transition: opacity var(--spring-quick-dur) var(--spring-quick), transform var(--spring-quick-dur) var(--spring-quick) !important; }
.hm-hero .cover-play:hover, .hm-hero .cover-play:focus-visible { opacity: 1; box-shadow: none !important; }
.hm-hero .cover-play svg { width: 20px !important; height: 20px !important; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.hm-hero .cover-play .i-line { stroke: #fff !important; }
.hm-hero .cover-play .i-fill { fill: #fff !important; stroke: #fff !important; }
.hm-hero .cover-ticks { position: absolute; z-index: var(--z-float); left: calc(var(--margin) + 52px); bottom: calc(var(--s4) + 21px); display: flex; gap: 4px; width: auto; height: 2px; }
.hm-hero .cover-ticks .cov-seg { position: relative; display: block; flex: none; width: 24px; height: 2px; border-radius: 1px; overflow: hidden;
  background: rgba(255,255,255,.35); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.hm-hero .cover-ticks .cov-seg-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #fff; transform-origin: left center; transform: scaleX(0); }
.hm-hero .cover-ticks .cov-seg.seg-done .cov-seg-fill { transform: scaleX(1); }
.hm-hero .cover-ticks .cov-seg.seg-now .cov-seg-fill { animation: tick-fill 5s linear forwards; }
.hm-hero:not(.is-playing) .cover-ticks .cov-seg.seg-now .cov-seg-fill { animation-play-state: paused; }
@keyframes tick-fill { to { transform: scaleX(1); } }
@media (max-width: 760px) { .hm-hero .cover-ticks .cov-seg { width: 16px; } }
@media (prefers-reduced-motion: reduce) { .cover-ticks { display: none; } }

/* ---------- one icon set: drawn on the 24-unit keylines (assets/icons/*.svg), one stroke ---------- */
.i-line { fill: none !important; stroke: currentColor; stroke-width: 1.75 !important; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: currentColor; stroke-width: 1.75 !important; stroke-linejoin: round; }
/* icon boxes come in 20, 24 or 28 only; the gap to a label is 8 */
.btn-go svg, .cover .play-v3 svg, .route-film i svg, .ft-contact svg { width: 20px !important; height: 20px !important; }
.qtc-v2 .qtc-btn svg { width: 24px !important; height: 24px !important; }
.btn-go, .ft-contact, .cover .play-v3 { gap: 8px !important; }
.link::after, .text-link::after, .route-video::after { width: 20px !important; height: 20px !important; margin-left: 0 !important; vertical-align: -4px; }
.link { gap: 8px !important; }
/* the segments run long (owner, 2026-11-22: "진짜 길게"): across the left half of the cover, clear of the verse at right;
   on a phone, to the right margin */
.hm-hero .cover-ticks { width: calc(50% - var(--margin) - 52px); gap: 4px; }
.hm-hero .cover-ticks .cov-seg { flex: 1 1 0; width: auto; min-width: 0; }
@media (max-width: 760px) { .hm-hero .cover-ticks { gap: 4px; } }
/* on a phone the verse spans the width, so it rises one row and the control sits beneath it */
@media (max-width: 1100px) {   /* below this the verse is too wide to share the line: it rises, the control has its own row */
  .hm-hero .hm-id { bottom: calc(var(--s4) + 44px) !important; } .hm-hero .cover-play { bottom: var(--s2) !important; }
  .hm-hero .cover-ticks { bottom: calc(var(--s2) + 21px); width: calc(100% - 2 * var(--margin) - 52px); } }

/* ---------- arrows, redrawn (owner, 2026-11-23: "화살표 너무 슬롭 … 전체적으로 다시"; "폰트 사이즈 다 다르고") ----------
   One rule for the whole site: a link to another page ends in a small chevron, a link that opens a new window in a small
   north-east arrow; both are sized to the text (0.8em) and drawn with a 2.25 stroke so they stay crisp small. No grey
   rule under links at rest: the line draws in only on hover. A link takes the size of the text it sits in. */
.link, .text-link, .route-video { gap: .3em !important; background-size: 0 1px, 0 0 !important; padding-bottom: 0 !important; }
.link:hover, .link:focus-visible, .text-link:hover, .route-video:hover, .route-video:focus-visible { background-size: 100% 1px, 0 0 !important; }
.link::after, .text-link::after, .route-video::after {
  width: .8em !important; height: .8em !important; margin-left: 0 !important; vertical-align: -.04em !important;
  -webkit-mask: url("icons/go.svg") center / contain no-repeat !important; mask: url("icons/go.svg") center / contain no-repeat !important; }
.link[target="_blank"]::after, .text-link[target="_blank"]::after, .route-video::after {
  -webkit-mask-image: url("icons/out.svg") !important; mask-image: url("icons/out.svg") !important; }
dt .link, dd .link, p .link, li .link { font: inherit !important; color: var(--blue); }
/* no diagonal arrows anywhere (owner, 2026-11-23: "대각선 화살표가 너무 슬롭 … 폰에도"): a link that opens a new window uses the
   same chevron; a YouTube link shows a small play triangle, because that is what happens */
.link[target="_blank"]::after, .text-link[target="_blank"]::after, .route-video::after {
  -webkit-mask-image: url("icons/go.svg") !important; mask-image: url("icons/go.svg") !important; }
.link[href*="youtube"]::after, .link[href*="youtu.be"]::after, .route-video::after {
  -webkit-mask-image: url("icons/play-line.svg") !important; mask-image: url("icons/play-line.svg") !important; width: .85em !important; height: .85em !important; }   /* keyline, like every other link mark */
.link[href*="youtube"]:hover::after, .link[href*="youtube"]:focus-visible::after, .route-video:hover::after { animation: none !important; transform: scale(1.15) !important; transition: transform var(--spring-quick-dur) var(--spring-quick) !important; }
/* many cover photos: a single thin line that fills as the show goes round */
.hm-hero .cover-ticks.is-line .cov-seg { flex: 1 1 auto; }
.hm-hero .cover-ticks.is-line .cov-seg-fill { animation: none !important; transform: scaleX(var(--pos, 0)); transition: transform var(--spring-smooth-dur) var(--spring-smooth); }
