/* KKUMHOUSE components. Every colour, shadow, space and radius comes from tokens.css.
   Language: soft structuralism. Floating objects, double-bezel enclosures, pill controls, fluid motion. */

:root {
  --kk-ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
  --kk-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --kk-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --kk-logo: url("/_blob/d8acf78f6d1ae96dafbfdea3c462dc78");
}

/* Font by language. Default and Vietnamese: UVN Bai Sau text, Dela Gothic One headlines. English text: CDA Independence.
   Korean: KCC Hanbit text, Laundry Gothic Bold headlines. */
:lang(en) { --font-sans: var(--font-en); }
:lang(ko) { --font-sans: var(--font-ko); --font-display: var(--font-display-ko); }
:lang(ko).kk-headline, :lang(ko).kk-panel__title, :lang(ko).kk-card__title, :lang(ko) > .kk-headline, .kk-navmodal__links a:lang(ko) { font-weight: 700; }

/* Brand fonts. Declared here for a site that links this sheet from components/; each preview document declares them again
   inline, because a host may load this sheet in a way that breaks relative URLs. Last URL is the uploaded copy. */

@font-face { font-family: "Dela Gothic One"; src: url("../fonts/DelaGothicOne-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Laundry Gothic"; src: url("../fonts/LaundryGothic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Laundry Gothic"; src: url("../fonts/LaundryGothic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "UVN Bai Sau"; src: url("../fonts/UVNBaiSau-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "UVN Bai Sau"; src: url("../fonts/UVNBaiSau-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "CDA Independence"; src: url("../fonts/CDAIndependenceText-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "CDA Independence"; src: url("../fonts/CDAIndependenceText-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "CDA Independence"; src: url("../fonts/CDAIndependenceText-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "KCC Hanbit"; src: url("../fonts/KCC-Hanbit.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "KCC Hanbit"; src: url("../fonts/LaundryGothic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Logo: always the original artwork, never retypeset ---------- */
.kk-logo, .kk-wordmark, .kk-wordmark-slogan, .kk-mark { display: block; background: var(--kk-logo) no-repeat; flex: none; }
/* The full logo is two layers, so that on dark grounds only the lettering flips and the red pin stays untouched. */
.kk-logo { aspect-ratio: 1773 / 1326; background: none; position: relative; }
.kk-logo::before { content: ""; position: absolute; top: 0; left: 30.8%; width: 38.35%; aspect-ratio: 680 / 821; background: var(--kk-logo) no-repeat 50% 0 / 260.74% auto; }
.kk-logo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 1773 / 345; background: var(--kk-logo) no-repeat 0 100% / 100% auto; }
.kk-wordmark { aspect-ratio: 1773 / 207; background-size: 100% auto; background-position: 0 87.67%; }
.kk-wordmark-slogan { aspect-ratio: 1773 / 345; background-size: 100% auto; background-position: 0 100%; }
.kk-mark { aspect-ratio: 680 / 821; background-size: 260.74% auto; background-position: 50% 0; }
[data-theme="dark"] .kk-logo::after, [data-theme="dark"] .kk-wordmark, [data-theme="dark"] .kk-wordmark-slogan,
.kk-on-dark .kk-logo::after, .kk-on-dark .kk-wordmark, .kk-on-dark .kk-wordmark-slogan { filter: invert(1) hue-rotate(180deg); }

/* ---------- Headlines and scroll entry ---------- */
.kk-headline { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
/* Add .kk-reveal, then .is-in from an IntersectionObserver. Content stays visible without script. */
.kk-reveal.is-ready { opacity: 0; transform: translateY(48px); filter: blur(8px); }
.kk-reveal.is-ready.is-in { opacity: 1; transform: none; filter: none; transition: opacity 800ms var(--kk-ease-fluid), transform 800ms var(--kk-ease-fluid), filter 800ms var(--kk-ease-fluid); transition-delay: calc(var(--kk-i, 0) * 70ms); }

/* ---------- Double bezel: an outer tray holding an inner core. Inner radius = shell radius - bezel padding. ---------- */
.kk-bezel { padding: var(--space-bezel); border-radius: var(--radius-shell); background: var(--bezel); box-shadow: inset 0 0 0 1px var(--bezel-ring); display: block; }
.kk-bezel__core { border-radius: var(--radius-inner); background: var(--surface); box-shadow: var(--shadow-highlight), var(--shadow-1); overflow: hidden; }

/* ---------- Icon (Phosphor Light) ---------- */
.kk-icon { width: 20px; height: 20px; flex: none; display: block; fill: currentColor; }
.kk-icon--sm { width: 16px; height: 16px; }
.kk-icon--lg { width: 28px; height: 28px; }

/* ---------- Button: a pill. A trailing arrow sits in its own orb, flush with the inner edge. ---------- */
.kk-btn {
  --orb: 32px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 48px; padding: 0 24px; border: 0; border-radius: var(--radius-pin);
  font-family: var(--font-sans); font-size: 15px; line-height: 1; font-weight: 700; white-space: nowrap;
  text-decoration: none; cursor: pointer; user-select: none; position: relative;
  background: var(--kk-red); color: var(--on-red); box-shadow: var(--shadow-highlight), var(--shadow-cta);
  transition: transform 400ms var(--kk-ease-fluid), background-color 400ms var(--kk-ease-fluid), box-shadow 400ms var(--kk-ease-fluid), color 400ms var(--kk-ease-fluid);
}
.kk-btn:has(> .kk-icon:first-child) { padding-left: 18px; }
.kk-btn:has(> .kk-btn__orb) { padding-right: 8px; gap: var(--space-3); }
.kk-btn__orb { width: var(--orb); height: var(--orb); border-radius: var(--radius-pin); background: var(--orb); display: grid; place-items: center; flex: none; transition: transform 500ms var(--kk-ease-fluid), background-color 400ms var(--kk-ease-fluid); }
.kk-btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.kk-btn:active { transform: scale(0.97); transition-duration: 120ms; }
@media (hover: hover) and (pointer: fine) {
  .kk-btn:hover { background: var(--kk-red-deep); box-shadow: var(--shadow-highlight), var(--shadow-pin); }
  .kk-btn:hover .kk-btn__orb { transform: translate(3px, -1px) scale(1.06); }
  .kk-btn--secondary:hover { background: var(--ink); color: var(--ground); box-shadow: inset 0 0 0 1px var(--ink); }
  .kk-btn--ghost:hover { background: var(--bezel); box-shadow: none; }
  .kk-btn--night:hover { background: var(--night); box-shadow: var(--shadow-highlight), var(--shadow-2); }
}
.kk-btn--secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--bezel-ring), var(--shadow-1); font-weight: 500; }
.kk-btn--secondary .kk-btn__orb, .kk-btn--ghost .kk-btn__orb { background: var(--bezel); }
.kk-btn--ghost { background: transparent; color: var(--ink); box-shadow: none; font-weight: 500; }
.kk-btn--night { background: var(--night); color: var(--on-night); box-shadow: var(--shadow-highlight), var(--shadow-1); font-weight: 500; }
.kk-btn--sm { --orb: 26px; height: 38px; padding: 0 16px; font-size: 13px; }
.kk-btn--sm:has(> .kk-btn__orb) { padding-right: 6px; }
.kk-btn--lg { --orb: 42px; height: 58px; padding: 0 32px; font-size: 17px; }
.kk-btn--lg:has(> .kk-btn__orb) { padding-right: 8px; gap: var(--space-4); }
/* Icon-only buttons: specificity must beat the optical-padding rule above, or the glyph sits off centre. */
.kk-btn.kk-btn--icon, .kk-btn.kk-btn--icon:has(> .kk-icon:first-child), .kk-btn.kk-btn--icon:has(> .kk-icon:last-child) { width: 48px; padding: 0; gap: 0; }
.kk-btn.kk-btn--icon.kk-btn--sm { width: 38px; }
.kk-btn.kk-btn--icon.kk-btn--lg { width: 58px; }
.kk-btn[disabled], .kk-btn[aria-disabled="true"] { background: var(--clay); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }
.kk-btn.is-loading { color: transparent; pointer-events: none; }
.kk-btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: var(--radius-pin);
  border: 2px solid var(--on-red); border-right-color: transparent; animation: kk-spin 600ms linear infinite;
}
.kk-btn.is-done { background: var(--moss); color: var(--surface); box-shadow: none; pointer-events: none; }
.kk-btn.is-done .kk-icon { animation: kk-pop 500ms var(--kk-ease-fluid); }
@keyframes kk-spin { to { transform: rotate(360deg); } }
@keyframes kk-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Text link (Naver) ---------- */
.kk-link {
  display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); font-family: var(--font-sans);
  font-size: 15px; font-weight: 500; text-decoration: none;
}
.kk-link__text { padding-bottom: 2px; background: linear-gradient(var(--kk-red), var(--kk-red)) left bottom / 100% 1px no-repeat; transition: background-size 500ms var(--kk-ease-fluid); }
.kk-link__orb { width: 26px; height: 26px; border-radius: var(--radius-pin); background: var(--bezel); display: grid; place-items: center; transition: transform 500ms var(--kk-ease-fluid), background-color 400ms var(--kk-ease-fluid), color 400ms var(--kk-ease-fluid); }
.kk-link:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-control); }
@media (hover: hover) and (pointer: fine) {
  .kk-link:hover .kk-link__text { background-size: 100% 2px; }
  .kk-link:hover .kk-link__orb { transform: translate(2px, -2px) scale(1.06); background: var(--kk-red); color: var(--on-red); }
  .kk-link--lake:hover .kk-link__orb { background: var(--lake); color: var(--surface); }
}
.kk-link--lake { color: var(--lake); }
.kk-link--lake .kk-link__text { background-image: linear-gradient(var(--lake), var(--lake)); }

/* ---------- Status: coloured text, no container ---------- */
.kk-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-3); margin: 0; font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.kk-status > span { font-weight: 400; color: var(--muted); }
.kk-status--red { color: var(--red-text); }
.kk-status--info { color: var(--lake); }
.kk-status--success { color: var(--moss); }
.kk-status--warning { color: var(--amber); }
.kk-status--lg { font-size: 16px; line-height: 24px; }

/* ---------- Pin ---------- */
.kk-pin { display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-2); font-family: var(--font-sans); border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); }
.kk-pin__head {
  position: relative; width: 28px; height: 28px; border-radius: var(--radius-pin); background: var(--kk-red);
  box-shadow: var(--shadow-highlight), var(--shadow-pin); display: grid; place-items: center;
  transition: transform 500ms var(--kk-ease-fluid);
}
.kk-pin__head::before { content: ""; width: 10px; height: 10px; border-radius: var(--radius-pin); background: var(--on-red); }
.kk-pin__head::after { content: ""; position: absolute; inset: -6px; border-radius: var(--radius-pin); box-shadow: inset 0 0 0 1px var(--kk-red); opacity: 0; }
.kk-pin.is-active .kk-pin__head::after { animation: kk-ping 1800ms var(--kk-ease-out) infinite; }
@keyframes kk-ping { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }
.kk-pin__label {
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-highlight), var(--shadow-2); border-radius: var(--radius-control);
  padding: 8px 12px; font-size: 13px; font-weight: 700; line-height: 1.25; white-space: nowrap; order: -1; text-align: left;
}
.kk-pin__meta { display: block; font-weight: 400; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kk-pin:focus-visible { outline: none; }
.kk-pin:focus-visible .kk-pin__head { box-shadow: var(--shadow-focus); }
@media (hover: hover) and (pointer: fine) { .kk-pin:hover .kk-pin__head { transform: scale(1.12); } }
.kk-pin:active .kk-pin__head { transform: scale(0.94); transition-duration: 120ms; }
.kk-pin--landmark .kk-pin__head { width: 12px; height: 12px; background: var(--ink); box-shadow: 0 0 0 3px var(--surface), var(--shadow-1); }
.kk-pin--landmark .kk-pin__head::before { display: none; }
.kk-pin--landmark .kk-pin__label { font-weight: 500; box-shadow: var(--shadow-1); padding: 5px 10px; font-size: 12px; border-radius: var(--radius-pin); }
.kk-pin--lake .kk-pin__head { background: var(--lake); }

/* ---------- Nav: a compact island in the top-left corner. The menu opens as a centred modal. ---------- */
.kk-nav {
  position: fixed; z-index: 30; top: calc(var(--space-6) + env(safe-area-inset-top, 0px)); left: max(var(--space-6), env(safe-area-inset-left, 0px));
  display: inline-flex; align-items: center; gap: var(--space-4); height: 52px; padding: 0 4px 0 20px; border-radius: var(--radius-pin);
  background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--bezel-ring), var(--shadow-highlight), var(--shadow-2);
  font-family: var(--font-sans); color: var(--ink); box-sizing: border-box;
}
.kk-nav--static { position: relative; top: auto; left: auto; }
.kk-nav__brand { display: block; line-height: 0; border-radius: var(--radius-control); }
.kk-nav__brand .kk-wordmark { height: 15px; }
.kk-nav__brand:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
/* Menu button: two lines that rotate into an X. Outer pill 52 with 4px padding, so the button is a 44px circle. */
.kk-burger { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: var(--radius-pin); position: relative; background: var(--ink); flex: none; transition: transform 400ms var(--kk-ease-fluid), background-color 400ms var(--kk-ease-fluid); }
.kk-burger__x { position: absolute; inset: 0; pointer-events: none; }
.kk-burger__x::before, .kk-burger__x::after { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--ground); border-radius: 2px; transition: transform 500ms var(--kk-ease-fluid); }
.kk-burger__x::before { transform: translateY(-3.5px); } .kk-burger__x::after { transform: translateY(3.5px); }
.kk-burger[aria-expanded="true"] { background: var(--kk-red); }
.kk-burger[aria-expanded="true"] .kk-burger__x::before { transform: rotate(45deg); background: var(--on-red); } .kk-burger[aria-expanded="true"] .kk-burger__x::after { transform: rotate(-45deg); background: var(--on-red); }
.kk-burger:active { transform: scale(0.92); transition-duration: 120ms; }
.kk-burger:focus-visible { box-shadow: var(--shadow-focus); }

/* Nav modal: a scrim and a centred double-bezel card. */
.kk-navmodal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: var(--space-6); background: var(--glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); opacity: 0; pointer-events: none; transition: opacity 400ms var(--kk-ease-fluid); font-family: var(--font-sans); color: var(--ink); }
.kk-navmodal.is-open { opacity: 1; pointer-events: auto; }
.kk-navmodal--static { position: relative; inset: auto; z-index: auto; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
.kk-navmodal__shell { width: min(560px, 100%); box-sizing: border-box; padding: var(--space-bezel); border-radius: var(--radius-shell); background: var(--bezel); box-shadow: inset 0 0 0 1px var(--bezel-ring), var(--shadow-3); transform: scale(0.96) translateY(12px); transition: transform 500ms var(--kk-ease-fluid); }
.kk-navmodal.is-open .kk-navmodal__shell { transform: none; }
.kk-navmodal__core { border-radius: var(--radius-inner); background: var(--surface); box-shadow: var(--shadow-highlight); padding: var(--space-10) var(--space-10) var(--space-6); display: flex; flex-direction: column; gap: var(--space-10); }
.kk-navmodal__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.kk-navmodal__links a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 34px; line-height: 1.15; opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--kk-ease-fluid), transform 500ms var(--kk-ease-fluid), color 300ms var(--kk-ease-fluid); transition-delay: 0ms; }
.kk-navmodal.is-open .kk-navmodal__links a { opacity: 1; transform: none; transition-delay: calc(var(--kk-i, 0) * 50ms + 80ms), calc(var(--kk-i, 0) * 50ms + 80ms), 0ms; }
.kk-navmodal__links a > span { font-family: var(--font-sans); font-size: 13px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.kk-navmodal__links a[aria-current="page"] { color: var(--red-text); }
.kk-navmodal__links a:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-control); }
@media (hover: hover) and (pointer: fine) { .kk-navmodal__links a:hover { color: var(--red-text); } }
.kk-navmodal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.kk-lang { display: inline-flex; gap: 2px; }
.kk-lang button { all: unset; cursor: pointer; font-family: var(--font-sans); font-size: 13px; font-weight: 500; padding: 8px 12px; color: var(--muted); border-radius: var(--radius-pin); transition: background-color 300ms var(--kk-ease-fluid), color 300ms var(--kk-ease-fluid); }
.kk-lang button[aria-pressed="true"] { color: var(--ink); font-weight: 700; background: var(--bezel); }
.kk-lang button:focus-visible { box-shadow: var(--shadow-focus); }
@media (max-width: 520px) { .kk-navmodal__core { padding: var(--space-6); gap: var(--space-6); } .kk-navmodal__links a { font-size: 24px; } .kk-navmodal__links a > span { display: none; } }

/* ---------- Level switch: a locator track. The KK pin sits on the level in view; levels behind it are filled, levels ahead are hollow. ---------- */
.kk-locator { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); padding: 14px 4px 12px; border-radius: var(--radius-shell); background: var(--glass); box-shadow: inset 0 0 0 1px var(--bezel-ring), var(--shadow-highlight), var(--shadow-2); font-family: var(--font-sans); }
.kk-locator__stop { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 12px; text-align: center; color: var(--muted); border-radius: var(--radius-control); }
/* The track segment from this stop to the next one. */
.kk-locator__stop::before { content: ""; position: absolute; top: 11px; left: 50%; width: 100%; height: 2px; margin-top: -1px; background: var(--hairline); border-radius: 2px; }
.kk-locator__stop:last-child::before { display: none; }
.kk-locator__stop.is-passed::before { background: var(--kk-red); }
.kk-locator__dot { position: relative; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; margin-bottom: 6px; }
.kk-locator__dot::before { content: ""; width: 10px; height: 10px; border-radius: var(--radius-pin); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--muted); transition: transform 500ms var(--kk-ease-fluid), background-color 400ms var(--kk-ease-fluid), box-shadow 400ms var(--kk-ease-fluid); }
.kk-locator__stop.is-passed .kk-locator__dot::before { background: var(--kk-red); box-shadow: none; }
/* The level in view: the pin itself, a red disc with a white core. */
.kk-locator__stop[aria-current="true"] .kk-locator__dot::before { width: 22px; height: 22px; background: radial-gradient(circle, var(--on-red) 0 4px, var(--kk-red) 4.5px); box-shadow: var(--shadow-pin); }
.kk-locator__name { font-size: 13px; line-height: 18px; font-weight: 500; white-space: nowrap; transition: color 300ms var(--kk-ease-fluid); }
.kk-locator__scale { font-size: 11px; line-height: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kk-locator__stop[aria-current="true"] .kk-locator__name { color: var(--ink); font-weight: 700; }
.kk-locator__stop.is-passed .kk-locator__name { color: var(--ink); }
.kk-locator__stop[disabled] { cursor: not-allowed; opacity: 0.55; }
.kk-locator__stop:focus-visible { box-shadow: var(--shadow-focus); }
.kk-locator__stop:active:not([disabled]) .kk-locator__dot::before { transform: scale(0.88); transition-duration: 120ms; }
@media (hover: hover) and (pointer: fine) {
  .kk-locator__stop:not([disabled]):hover .kk-locator__name { color: var(--ink); }
  .kk-locator__stop:not([disabled]):not([aria-current="true"]):hover .kk-locator__dot::before { transform: scale(1.3); }
}
/* Vertical variant for the left edge of the viewer on desktop. */
.kk-locator--vertical { grid-auto-flow: row; grid-auto-columns: auto; grid-auto-rows: minmax(64px, auto); padding: 16px 20px 16px 14px; }
.kk-locator--vertical .kk-locator__stop { display: grid; grid-template-columns: 22px auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; align-content: start; justify-items: start; text-align: left; padding: 0; }
.kk-locator--vertical .kk-locator__dot { grid-row: 1 / span 2; margin: 0; }
.kk-locator--vertical .kk-locator__name { align-self: end; padding-top: 2px; }
.kk-locator--vertical .kk-locator__stop::before { top: 11px; left: 11px; width: 2px; height: 100%; margin: 0 0 0 -1px; }

/* ---------- Viewer controls: pill shell, 4px padding, round buttons ---------- */
.kk-controls { display: inline-flex; flex-direction: column; gap: 2px; padding: 4px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--bezel-ring), var(--shadow-highlight), var(--shadow-2); border-radius: var(--radius-pin); }
.kk-controls button {
  all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); border-radius: var(--radius-pin);
  transition: background-color 400ms var(--kk-ease-fluid), transform 400ms var(--kk-ease-fluid);
}
.kk-controls button:active { transform: scale(0.92); transition-duration: 120ms; }
.kk-controls button:focus-visible { box-shadow: var(--shadow-focus); }
@media (hover: hover) and (pointer: fine) { .kk-controls button:hover { background: var(--bezel); } }
.kk-controls--row { flex-direction: row; }

/* ---------- Spec list ---------- */
.kk-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: var(--space-6) var(--space-10); margin: 0; font-family: var(--font-sans); }
.kk-spec > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-1); min-width: 0; }
.kk-spec dt { font-size: 13px; line-height: 18px; color: var(--muted); }
.kk-spec dd { margin: 0; font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kk-spec dd small { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.kk-spec__lead dd { font-size: 56px; line-height: 56px; letter-spacing: -0.02em; color: var(--red-text); }
.kk-spec--compact dd { font-size: 16px; line-height: 24px; letter-spacing: 0; }
.kk-spec + .kk-spec { margin-top: var(--space-10); }
.kk-coords { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Info panel (double bezel) ---------- */
.kk-panel { width: 372px; max-width: 100%; box-sizing: border-box; padding: var(--space-bezel); border-radius: var(--radius-shell); background: var(--glass); box-shadow: inset 0 0 0 1px var(--bezel-ring), var(--shadow-3); font-family: var(--font-sans); color: var(--ink); }
.kk-panel__core { border-radius: var(--radius-inner); background: var(--surface); box-shadow: var(--shadow-highlight); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-6); }
.kk-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
/* Title = type style "subheading", sub line = "caption". */
.kk-panel__title { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.25; font-weight: 400; letter-spacing: 0; text-wrap: balance; }
.kk-panel__sub { margin: var(--space-1) 0 0; font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 400; color: var(--muted); text-wrap: pretty; }
.kk-panel__foot { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.kk-panel__close { all: unset; cursor: pointer; width: 32px; height: 32px; margin: -4px -4px 0 0; display: grid; place-items: center; color: var(--muted); border-radius: var(--radius-pin); background: var(--bezel); transition: background-color 400ms var(--kk-ease-fluid), color 400ms var(--kk-ease-fluid), transform 400ms var(--kk-ease-fluid); }
.kk-panel__close:focus-visible { box-shadow: var(--shadow-focus); }
.kk-panel__close:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .kk-panel__close:hover { background: var(--clay); color: var(--ink); } }

/* ---------- Project card (double bezel) ---------- */
.kk-card { display: block; width: 100%; max-width: 372px; box-sizing: border-box; padding: var(--space-bezel); border-radius: var(--radius-shell); background: var(--bezel); box-shadow: inset 0 0 0 1px var(--bezel-ring); color: var(--ink); text-decoration: none; font-family: var(--font-sans); transition: transform 600ms var(--kk-ease-fluid); }
.kk-card__core { border-radius: var(--radius-inner); background: var(--surface); box-shadow: var(--shadow-highlight), var(--shadow-1); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 600ms var(--kk-ease-fluid); }
.kk-card__plan { aspect-ratio: 4 / 3; background: var(--ground); position: relative; overflow: hidden; }
.kk-card__plan svg, .kk-card__plan img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 900ms var(--kk-ease-fluid); }
.kk-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.kk-card__title { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.25; font-weight: 400; text-wrap: balance; }
.kk-card__meta { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); text-wrap: pretty; }
.kk-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); }
.kk-card__orb { width: 36px; height: 36px; border-radius: var(--radius-pin); background: var(--bezel); color: var(--ink); display: grid; place-items: center; transition: transform 500ms var(--kk-ease-fluid), background-color 400ms var(--kk-ease-fluid), color 400ms var(--kk-ease-fluid); }
.kk-card:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.kk-card:active { transform: scale(0.985); transition-duration: 120ms; }
@media (hover: hover) and (pointer: fine) {
  .kk-card:hover { transform: translateY(-4px); }
  .kk-card:hover .kk-card__core { box-shadow: var(--shadow-highlight), var(--shadow-2); }
  .kk-card:hover .kk-card__plan svg, .kk-card:hover .kk-card__plan img { transform: scale(1.04); }
  .kk-card:hover .kk-card__orb { transform: translate(3px, -1px) scale(1.06); background: var(--kk-red); color: var(--on-red); }
}
.kk-plan-ground { fill: var(--ground); } .kk-plan-plot { fill: var(--surface); }
.kk-plan-kk { fill: var(--kk-red); } .kk-plan-kk-deep { fill: var(--kk-red-deep); }
.kk-plan-clay { fill: var(--clay); } .kk-plan-water { fill: var(--water); } .kk-plan-park { fill: var(--park); }

/* ---------- Field and form messages ---------- */
.kk-field { display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font-sans); max-width: 360px; }
.kk-field label { font-size: 14px; font-weight: 700; color: var(--ink); padding-left: 2px; }
.kk-field input, .kk-field select, .kk-field textarea {
  height: 48px; padding: 0 16px; border: 0; border-radius: var(--radius-control); box-sizing: border-box; width: 100%;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; box-shadow: inset 0 0 0 1px var(--muted), var(--shadow-inset);
  transition: box-shadow 400ms var(--kk-ease-fluid);
}
.kk-field textarea { height: 104px; padding: 12px 16px; resize: vertical; }
.kk-field input::placeholder, .kk-field textarea::placeholder { color: var(--muted); }
.kk-field input:focus-visible, .kk-field select:focus-visible, .kk-field textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow-focus); }
.kk-field__help { font-size: 13px; line-height: 18px; color: var(--muted); padding-left: 2px; }
.kk-field.is-error input { box-shadow: inset 0 0 0 1.5px var(--red-text), var(--shadow-inset); }
.kk-field.is-error .kk-field__help { color: var(--red-text); font-weight: 500; }
.kk-alert { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-control); font-family: var(--font-sans); font-size: 14px; line-height: 20px; background: var(--red-tint); color: var(--ink); }
.kk-alert .kk-icon { color: var(--red-text); }
.kk-alert--success { background: var(--success-tint); }
.kk-alert--success .kk-icon { color: var(--moss); }
.kk-alert strong { display: block; }

/* ---------- Viewer frame (double bezel), loading and error states ---------- */
.kk-viewer { box-sizing: border-box; width: 100%; padding: var(--space-bezel); border-radius: var(--radius-shell); background: var(--bezel); box-shadow: inset 0 0 0 1px var(--bezel-ring), var(--shadow-model); font-family: var(--font-sans); color: var(--ink); }
.kk-viewer__core { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-inner); background: var(--ground); box-shadow: var(--shadow-highlight), var(--shadow-inset); overflow: hidden; display: grid; place-items: center; }
.kk-viewer__state { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; padding: var(--space-6); max-width: 320px; }
.kk-viewer__state p { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); text-wrap: balance; }
.kk-viewer__state strong { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.kk-viewer__state > .kk-icon { color: var(--red-text); }
.kk-progress { width: 160px; height: 3px; background: var(--hairline); border-radius: var(--radius-pin); overflow: hidden; }
.kk-progress > span { display: block; height: 100%; background: var(--kk-red); border-radius: var(--radius-pin); transform-origin: left; transition: transform 500ms var(--kk-ease-fluid); }
.kk-skeleton { background: var(--clay); position: relative; overflow: hidden; border-radius: var(--radius-control); }
.kk-skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--surface), transparent); opacity: 0.6; transform: translateX(-100%); animation: kk-shimmer 1400ms linear infinite; }
@keyframes kk-shimmer { to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .kk-btn, .kk-btn__orb, .kk-link__text, .kk-link__orb, .kk-pin__head, .kk-card, .kk-card__core, .kk-card__orb, .kk-card__plan svg, .kk-card__plan img, .kk-locator__dot::before, .kk-controls button, .kk-burger, .kk-burger__x::before, .kk-burger__x::after, .kk-navmodal, .kk-navmodal__shell, .kk-navmodal__links a { transition-duration: 1ms; transition-delay: 0ms; }
  .kk-btn:active, .kk-card:hover, .kk-card:active, .kk-pin:hover .kk-pin__head, .kk-card:hover .kk-card__plan svg { transform: none; }
  .kk-pin.is-active .kk-pin__head::after { animation: none; opacity: 0.5; }
  .kk-btn.is-loading::after { animation-duration: 1200ms; }
  .kk-btn.is-done .kk-icon, .kk-skeleton::after { animation: none; }
  .kk-reveal.is-ready { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .kk-nav, .kk-locator, .kk-controls, .kk-panel, .kk-navmodal, .kk-navmodal__shell { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

