/* ==========================================================
   HavenKey: base + header (classic, no box style)
   Breakpoints: mobile 320-767 | tablet 768-1023 | large 1024-1280
   ========================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

body.menu-open { overflow: hidden; }

ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 12px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Header (sticky) ---------- */
.hk-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--bg);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.hk-header.is-scrolled { box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.28); }

.hk-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

/* ---------- Logo (same markup in header and footer) ---------- */
.hk-logo { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }

.hk-logo__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50px;
  background: var(--logo-bg);
  color: var(--logo-fg);
  font-size: 17px;
}

.hk-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.hk-logo__name {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hk-logo__tag {
  margin-top: 4px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
}

/* ---------- Nav (desktop: 1024px and up) ---------- */
.hk-nav { display: flex; align-items: center; flex: 1; gap: 20px; }
.hk-nav__list { display: flex; align-items: center; gap: 30px; margin-inline: auto; }
.hk-nav__item { position: relative; }

.hk-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color .2s ease;
}
/* thin underline: slides in on hover, stays on the active page */
.hk-nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 3px;
  height: 1.5px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}
.hk-nav__link:hover::after,
.hk-nav__item.is-open > .hk-nav__link::after,
.hk-nav__link.is-active::after { transform: scaleX(1); }
.hk-nav__link.is-active { font-weight: 600; }

.hk-chev { font-size: 11px; transition: transform .25s ease; }
.hk-nav__item.is-open > .hk-nav__link .hk-chev { transform: rotate(180deg); }

/* Dropdown: soft rounded panel, no border */
.hk-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  inset-inline-start: -16px;
  min-width: 220px;
  padding: 8px;
  background: var(--bg-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.hk-dropdown::before { /* hover bridge across the gap */
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -18px;
  height: 18px;
}
.hk-nav__item.is-open > .hk-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.hk-dropdown a {
  display: block;
  padding: 11px 18px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color .2s ease, color .2s ease;
}
.hk-dropdown a:hover { background: var(--border); }
.hk-dropdown a.is-active { background: var(--bg); font-weight: 600; }

/* Actions: theme toggle, RTL toggle, Login (same solid button style) */
.hk-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.hk-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 15px;
  transition: background-color .25s ease, transform .2s ease;
}
.hk-icon-btn:hover { background: var(--btn-bg-hover); }
.hk-icon-btn:active { transform: scale(.94); }

.hk-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  margin-inline-start: 4px;
  padding-inline: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color .25s ease, transform .2s ease;
}
.hk-login i { font-size: 13px; transition: transform .25s ease; }
.hk-login:hover { background: var(--btn-bg-hover); }
.hk-login:hover i { transform: translateX(4px); }
[dir="rtl"] .hk-login:hover i { transform: translateX(-4px); }
.hk-login:active { transform: scale(.97); }
.hk-login.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--btn-bg); }

/* Theme icon swap: moon in light mode, sun in dark mode */
.hk-theme-btn .icon-sun { display: none; }
[data-theme="dark"] .hk-theme-btn .icon-sun { display: inline; }
[data-theme="dark"] .hk-theme-btn .icon-moon { display: none; }

/* Burger / close: plain icon, no button style (hidden on desktop) */
.hk-burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border-radius: 8px;
  color: var(--text);
  font-size: 22px;
}
.hk-burger:hover { background: none; color: var(--text-muted); }
.hk-burger:active { transform: scale(.92); }
.hk-burger .fa-xmark { display: none; }
.hk-burger[aria-expanded="true"] .fa-xmark { display: inline; }
.hk-burger[aria-expanded="true"] .fa-bars { display: none; }

@media (min-width: 1200px) {
  .hk-nav__list { gap: 40px; }
  .hk-nav__link { font-size: 15px; }
  .hk-logo__tag { font-size: 8.5px; }
}

/* ---------- Mobile + tablet menu (up to 1023px): full width & full height ---------- */
@media (max-width: 1023px) {
  .hk-burger { display: inline-grid; margin-inline-start: auto; }

  .hk-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .hk-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  /* Scrollable list */
  .hk-nav__list {
    display: block;
    flex: 1;
    min-height: 0;
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .hk-nav__item { padding: 4px 0; text-align: center; }

  .hk-nav__link { padding: 16px 4px; font-size: 17px; }
  .hk-nav__link::after { bottom: 10px; }

  /* Accordion dropdown */
  .hk-dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 4px 0 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .hk-dropdown::before { display: none; }
  .hk-nav__item.is-open > .hk-dropdown { display: block; }
  .hk-dropdown a { padding: 12px 16px; font-size: 15.5px; color: var(--text-muted); }
  .hk-dropdown a.is-active { background: var(--bg-soft); color: var(--text); font-weight: 600; }

  /* Bottom action bar */
  .hk-actions {
    justify-content: center;
    gap: 14px;
    padding: 18px 16px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    background: var(--bg-soft);
  }
  .hk-actions .hk-icon-btn { width: 44px; height: 44px; font-size: 17px; }
  .hk-login {
    height: 44px;
    margin-inline-start: 6px;
    padding-inline: 30px;
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .hk-logo { gap: 10px; }
  .hk-logo__icon { width: 38px; height: 38px; font-size: 15px; }
  .hk-logo__name { font-size: 19px; }
  .hk-logo__tag { font-size: 7px; letter-spacing: 0.14em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}




/* ==========================================================
   Layout helper
   ========================================================== */
.hk-container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

/* ==========================================================
   Home 1: Hero (image with notch + CTA)
   ========================================================== */
.hk-hero {
  --r: 28px;          /* corner radius */
  --notch-h: 70px;    /* notch height = button 52px + 18px top space */
  padding-block: 24px 40px;
  background: var(--bg);
}

.hk-hero__media {
  position: relative;
  height: clamp(480px, calc(100svh - var(--header-h) - 64px), 760px);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  color: #ffffff; /* text sits on the image, so it stays white in both modes */
  /* skeleton shimmer while the image loads */
  background: linear-gradient(110deg, #262626 30%, #3a3a3a 50%, #262626 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hk-hero__media.is-loaded { animation: none; background: #1a1a1a; }
@keyframes hk-shimmer { to { background-position: -200% 0; } }

/* Bottom-to-top reveal: hidden until GSAP runs (main.js removes .hk-anim) */
.hk-anim .hk-hero__media {
  clip-path: inset(100% 0 0 0 round var(--r));
  /* failsafe: if scripts fail, show the image after 5s */
  animation: hk-shimmer 1.6s linear infinite, hk-reveal-failsafe .01s 5s forwards;
}
@keyframes hk-reveal-failsafe { to { clip-path: inset(0 round var(--r)); } }

.hk-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: opacity .6s ease;
}
.hk-hero__media img.is-loading { opacity: 0; }

/* dark gradient so the text is always readable */
.hk-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .32) 45%, rgba(0, 0, 0, 0) 75%);
  pointer-events: none;
}

.hk-hero__content {
  position: absolute;
  inset-inline-start: 0;
  bottom: calc(var(--notch-h) + 6px);
  max-width: 680px;
  padding: clamp(20px, 3.5vw, 48px);
}

.hk-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.4vw + 18px, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hk-hero__title span { display: block; }

.hk-hero__text {
  margin: 0;
  max-width: 520px;
  font-size: clamp(15px, 0.5vw + 13px, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .92);
}

/* Notch: page-colored cut-out in the bottom-left corner */
.hk-hero__notch {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  display: flex;
  padding: 18px 18px 0 0;
  background: var(--bg);
  border-top-right-radius: var(--r);
  max-width: 100%;
}
/* rounds the bottom-left corner of the image just above the notch */
.hk-hero__notch::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--r) * -1);
  width: var(--r);
  height: var(--r);
  background: radial-gradient(circle at 100% 0, transparent calc(var(--r) - .5px), var(--bg) var(--r));
  pointer-events: none;
}

/* CTA pill (same graphite as the navbar buttons) */
.hk-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding-inline: 30px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color .25s ease, transform .2s ease;
}
.hk-cta i { font-size: 14px; transition: transform .25s ease; }
.hk-cta:hover { background: var(--btn-bg-hover); }
.hk-cta:hover i { transform: translateX(4px); }
.hk-cta:active { transform: scale(.98); }

@media (max-width: 1024px) {
  .hk-hero { --r: 22px; padding-block: 16px 32px; }
  .hk-hero__media { height: clamp(480px, calc(100svh - var(--header-h) - 48px), 640px); }
  .hk-cta { padding-inline: 22px; font-size: 14px; }
}

@media (max-width: 380px) {
  .hk-cta { height: auto; min-height: 52px; padding-block: 8px; padding-inline: 18px; text-align: center; }
}


/* ==========================================================
   Shared section typography
   ========================================================== */
.hk-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 20px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hk-h2 {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 2vw + 18px, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hk-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: gap .25s ease, color .25s ease, border-color .25s ease;
}
.hk-link i { font-size: 13px; }
.hk-link:hover { gap: 16px; color: var(--text-muted); border-color: var(--text-muted); }

/* ==========================================================
   Home 1: About + stats (rounded panel, same radius as hero)
   ========================================================== */
.hk-about {
  --r: 28px;
  padding-block: clamp(8px, 2vw, 24px) clamp(56px, 8vw, 100px);
  background: var(--bg);
}

.hk-about__panel {
  padding: clamp(24px, 4.5vw, 64px);
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hk-about__grid { display: grid; gap: 36px; align-items: center; }

.hk-about__text {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: clamp(15.5px, 0.4vw + 14px, 18px);
  line-height: 1.7;
  color: var(--text-muted);
}

/* Stats: rounded tiles */
.hk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.hk-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg);
}

.hk-stat__num {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.2vw + 14px, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hk-stat__label { max-width: 220px; font-size: 14px; line-height: 1.45; color: var(--text-muted); }

/* Capability pills */
.hk-about__strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(28px, 4vw, 48px);
}
.hk-about__strip li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
}
.hk-about__strip i { font-size: 15px; color: var(--text-muted); }

@media (min-width: 900px) {
  .hk-about__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .hk-stat { min-height: 180px; padding: 28px; }
}

@media (max-width: 1024px) {
  .hk-about { --r: 22px; }
  .hk-about__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 440px) {
  .hk-stats { grid-template-columns: 1fr; }
  .hk-stat { min-height: 0; gap: 12px; }
  .hk-about__strip { grid-template-columns: 1fr; }
}



/* ==========================================================
   Home 1: Services (equal rows + equal-height image)
   ========================================================== */
.hk-services {
  --r: 28px;
  padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 100px);
  background: var(--bg);
}

.hk-services__head { margin-bottom: clamp(28px, 4vw, 48px); }
.hk-services__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}
.hk-services__title-row .hk-h2 { margin: 0; max-width: 620px; }
.hk-services__title-row .hk-link { margin-bottom: 6px; }

.hk-services__body { display: grid; gap: 24px; }

/* List: equal rounded rows */
.hk-svc-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }

.hk-svc {
  --svc-pad: clamp(16px, 2.5vw, 28px);
  --svc-gap: clamp(14px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg-soft);
  color: var(--text);
  transition: background-color .3s ease, color .3s ease;
}
.hk-svc.is-active { background: var(--primary); color: var(--on-primary); }

.hk-svc__row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--svc-gap);
  padding: 18px var(--svc-pad);
  border-radius: inherit;
}

.hk-svc__num {
  min-width: 28px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: .65;
}

.hk-svc__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.hk-svc__title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 1.2vw + 12px, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hk-svc__desc {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 440px;
  font-size: 14.5px;
  line-height: 1.5;
  opacity: .65;
}

.hk-svc__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: background-color .3s ease, color .3s ease;
}
.hk-svc.is-active .hk-svc__arrow { background: var(--on-primary); color: var(--primary); }

/* Image under the row (tablet / mobile): smooth open, no JS measuring */
.hk-svc__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s ease;
}
.hk-svc.is-active .hk-svc__more { grid-template-rows: 1fr; }

.hk-svc__more-inner {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear .35s;
}
.hk-svc.is-active .hk-svc__more-inner { visibility: visible; transition-delay: 0s; }

.hk-svc__more-body { padding: 0 var(--svc-pad) 20px; }

.hk-svc__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--r) - 12px);
  background: linear-gradient(110deg, var(--bg-soft) 30%, var(--border) 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hk-svc__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hk-svc__go { margin-top: 18px; color: inherit; border-color: currentColor; }
.hk-svc__go:hover { color: inherit; opacity: .75; }

/* Large image (desktop) */
.hk-svc-stage {
  display: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r);
  background: linear-gradient(110deg, var(--bg-soft) 30%, var(--border) 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hk-svc-stage.is-loaded { animation: none; }

.hk-svc-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.hk-svc-stage img.is-active { opacity: 1; }

.hk-svc-stage__tag {
  position: absolute;
  inset-inline-start: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.hk-svc-stage__num { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* Desktop: two equal columns, same height, four equal rows */
@media (min-width: 1025px) {
  .hk-services__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    height: clamp(520px, 46vw, 600px);
  }
  .hk-svc-list { height: 100%; grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .hk-svc-stage { display: block; height: 100%; }
  .hk-svc__more { display: none; }
}


@media (max-width: 1024px) {
  .hk-services { --r: 22px; }
  .hk-svc__row { padding-block: 16px; }
  .hk-svc__arrow { width: 40px; height: 40px; }
  .hk-svc__num { min-width: 22px; }
}

/* ==========================================================
   Home 1: Properties (rounded image mosaic)
   ========================================================== */
.hk-props {
  --r: 28px;
  padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 100px);
  background: var(--bg);
}

.hk-props__head {
  max-width: 680px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: center;
}
.hk-props__head .hk-h2 { margin-bottom: 16px; }
.hk-props__text {
  margin: 0;
  font-size: clamp(15.5px, 0.4vw + 14px, 18px);
  line-height: 1.7;
  color: var(--text-muted);
}

/* Mobile first: one column */
.hk-mosaic { display: grid; grid-template-columns: 1fr; gap: 12px; }

.hk-tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg-soft);
}
/* skeleton shimmer only while the image is loading (main.js adds .is-pending) */
.hk-tile.is-pending {
  background: linear-gradient(110deg, var(--bg-soft) 30%, var(--border) 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hk-tile.is-pending img { opacity: 0; }

.hk-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity .5s ease, scale .7s ease;
}
.hk-tile:hover img { scale: 1.05; }

/* small label pill */
.hk-tile__label {
  position: absolute;
  inset-inline-start: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.3;
  transition: transform .3s ease;
}
.hk-tile:hover .hk-tile__label { transform: translateY(-3px); }
.hk-tile__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-tile__meta { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }

.hk-props__action { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

/* Tablet / large phones: 2 columns, tall and wide tiles */
@media (min-width: 480px) {
  .hk-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(140px, 26vw, 200px);
    grid-auto-flow: dense;
    gap: 14px;
  }
  .hk-tile { aspect-ratio: auto; }
  .hk-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .hk-tile:nth-child(2) { grid-row: span 2; }
  .hk-tile:nth-child(5) { grid-column: span 2; grid-row: span 2; }
  .hk-tile:nth-child(6),
  .hk-tile:nth-child(7) { grid-row: span 2; }
}

/* Desktop: 12-column mosaic */
@media (min-width: 1025px) {
  .hk-mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 120px; }
  .hk-tile:nth-child(1) { grid-column: 1 / 6;  grid-row: 1 / 5; }
  .hk-tile:nth-child(2) { grid-column: 6 / 10; grid-row: 1 / 3; }
  .hk-tile:nth-child(3) { grid-column: 10 / 13; grid-row: 1 / 5; }
  .hk-tile:nth-child(4) { grid-column: 6 / 10; grid-row: 3 / 5; }
  .hk-tile:nth-child(5) { grid-column: 1 / 4;  grid-row: 5 / 8; }
  .hk-tile:nth-child(6) { grid-column: 4 / 9;  grid-row: 5 / 8; }
  .hk-tile:nth-child(7) { grid-column: 9 / 13; grid-row: 5 / 8; }
}

@media (max-width: 1024px) {
  .hk-props { --r: 22px; }
  .hk-tile__label { inset-inline-start: 10px; bottom: 10px; padding: 7px 14px; }
}


/* ==========================================================
   Home 1: How it works (four image tiles with numbers)
   ========================================================== */
.hk-how {
  --r: 28px;
  padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 100px);
  background: var(--bg);
}

.hk-how__head { max-width: 620px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.hk-how__head .hk-h2 { margin-bottom: 14px; }
.hk-how__text {
  margin: 0;
  font-size: clamp(15.5px, 0.4vw + 14px, 18px);
  line-height: 1.7;
  color: var(--text-muted);
}

/* Mobile first: one column */
.hk-steps { display: grid; gap: 36px; margin: 0; padding: 0; list-style: none; }

.hk-hstep { display: flex; flex-direction: column; }

.hk-hstep__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  isolation: isolate;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg-soft);
}
.hk-hstep__media.is-pending {
  background: linear-gradient(110deg, var(--bg-soft) 30%, var(--border) 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hk-hstep__media.is-pending img { opacity: 0; }

.hk-hstep__media img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s ease, scale .7s ease;
}
.hk-hstep:hover .hk-hstep__media img { scale: 1.05; }

/* soft top gradient so the number is always readable */
.hk-hstep__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 45%);
  pointer-events: none;
}

.hk-hstep__num {
  position: absolute;
  inset-inline-start: 20px;
  top: 16px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #ffffff; /* sits on the photo, so it stays white in both modes */
}

.hk-hstep__title {
  margin: 20px 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(19px, 0.7vw + 15px, 23px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.hk-hstep__text { margin: 0; max-width: 300px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* Tablet and large phones: two columns, square images */
@media (min-width: 560px) {
  .hk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .hk-hstep__media { aspect-ratio: 1 / 1; }
}

/* Desktop: four equal columns */
@media (min-width: 1025px) {
  .hk-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
}

/* Shared rows: images, titles and texts line up even when a title wraps */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 560px) {
    .hk-steps { row-gap: 0; }
    .hk-hstep {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      row-gap: 0;
      margin-bottom: 40px;
    }
  }
  @media (min-width: 1025px) {
    .hk-hstep { margin-bottom: 0; }
  }
}

@media (max-width: 1024px) {
  .hk-how { --r: 22px; }
  .hk-hstep__num { inset-inline-start: 16px; top: 14px; font-size: 20px; }
}
/* ==========================================================
   Home 1: Why HavenKey (side-by-side comparison)
   ========================================================== */
.hk-why {
  --r: 28px;
  padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 100px);
  background: var(--bg);
}

.hk-why__head {
  max-width: 640px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: center;
}
.hk-why__head .hk-h2 { margin-bottom: 14px; }
.hk-why__lead {
  margin: 0;
  font-size: clamp(15.5px, 0.4vw + 14px, 18px);
  line-height: 1.7;
  color: var(--text-muted);
}

/* Mobile first: panels stack */
.hk-vs { display: grid; gap: 16px; }

.hk-vs__panel {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r);
}
.hk-vs__panel--you { background: var(--bg-soft); color: var(--text); }
.hk-vs__panel--us { background: var(--primary); color: var(--on-primary); }

.hk-vs__title {
  margin: 0 0 28px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 1.2vw + 14px, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hk-vs__list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }

.hk-vs__item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(15.5px, 0.3vw + 14px, 17px);
  line-height: 1.45;
}
.hk-vs__panel--you .hk-vs__item { color: var(--text-muted); }

.hk-vs__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
}
.hk-vs__panel--you .hk-vs__icon { background: var(--bg); color: var(--text-muted); }
.hk-vs__panel--us .hk-vs__icon { background: var(--on-primary); color: var(--primary); }

.hk-why__action { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

/* Tablet and up: two equal panels */
@media (min-width: 768px) {
  .hk-vs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* Shared rows: each pair lines up even when a sentence wraps */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 768px) {
    .hk-vs { grid-template-rows: repeat(6, auto); }
    .hk-vs__panel {
      display: grid;
      grid-row: span 6;
      grid-template-rows: subgrid;
      row-gap: 20px;
    }
    .hk-vs__title { margin-bottom: 8px; }
    .hk-vs__list { display: contents; }
  }
}

@media (max-width: 1024px) {
  .hk-why { --r: 22px; }
}
/* ==========================================================
   Home 1: FAQ (intro + help panel on the left, rounded rows on the right)
   ========================================================== */
.hk-faq {
  --r: 28px;
  padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 100px);
  background: var(--bg);
}

/* Mobile order: intro, questions, help panel */
.hk-faq__grid { display: grid; gap: clamp(28px, 5vw, 40px); }

.hk-faq__intro .hk-h2 { max-width: 520px; }
.hk-faq__lead {
  margin: 0;
  max-width: 460px;
  font-size: clamp(15.5px, 0.4vw + 14px, 18px);
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- Help panel (inverted, rounded) ---------- */
.hk-faq__help {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--r);
  background: var(--primary);
  color: var(--on-primary);
}
.hk-faq__help::after { /* soft decorative circle */
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(128, 128, 128, .25);
  background: color-mix(in srgb, var(--on-primary) 14%, transparent);
}
.hk-faq__help-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--on-primary);
  color: var(--primary);
  font-size: 20px;
}
.hk-faq__help-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 1vw + 16px, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hk-faq__help-text { margin: 0 0 24px; max-width: 400px; font-size: 15.5px; line-height: 1.65; opacity: .75; }

/* button flips with the panel so it always contrasts */
.hk-faq__help .hk-cta { background: var(--on-primary); color: var(--primary); }
.hk-faq__help .hk-cta:hover { opacity: .85; }
.hk-faq__help :focus-visible { outline-color: var(--on-primary); }

/* ---------- Questions ---------- */
.hk-faq__list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hk-faq__item {
  border-radius: calc(var(--r) - 6px);
  background: var(--bg-soft);
}

.hk-faq__heading { margin: 0; font: inherit; }

.hk-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 18px 18px 26px;
  padding-inline: 26px 18px;
  border-radius: inherit;
  text-align: start;
  font-family: var(--font-heading);
  font-size: clamp(16.5px, 0.5vw + 14px, 19px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hk-faq__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: transform .35s ease, background-color .3s ease, color .3s ease;
}
.hk-faq__q:hover .hk-faq__icon { background: var(--border); }
.hk-faq__q[aria-expanded="true"] .hk-faq__icon {
  transform: rotate(180deg);
  background: var(--btn-bg);
  color: var(--btn-text);
}

/* Answer: shown by default (no JS); the closing animation only runs with JS */
.hk-faq__panel { display: grid; grid-template-rows: 1fr; }
.hk-faq__panel-inner { min-height: 0; overflow: hidden; }
.hk-faq__panel-inner p {
  margin: 0;
  padding-block: 0 24px;
  padding-inline: 26px 84px;
  max-width: 640px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.hk-faq--js .hk-faq__panel {
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.4, 0, .2, 1);
}
.hk-faq--js .hk-faq__panel-inner { visibility: hidden; transition: visibility 0s linear .35s; }
.hk-faq--js .hk-faq__item.is-open .hk-faq__panel { grid-template-rows: 1fr; }
.hk-faq--js .hk-faq__item.is-open .hk-faq__panel-inner { visibility: visible; transition-delay: 0s; }

@media (min-width: 900px) {
  .hk-faq__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 36px;
  }
  .hk-faq__grid { row-gap: 20px; }
  .hk-faq__intro { grid-column: 1; grid-row: 1; }
  .hk-faq__help { padding: 18px; }
  .hk-faq__help-icon { margin-bottom: 12px; }
  .hk-faq__help-text { margin-bottom: 12px; }
  .hk-faq__help { grid-column: 1; grid-row: 2; align-self: start; }
  .hk-faq__list {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-content: start;
  }
}

@media (max-width: 1024px) {
  .hk-faq { --r: 22px; }
  .hk-faq__q { gap: 14px; padding: 14px 14px 14px 20px; padding-inline: 20px 14px; }
  .hk-faq__icon { width: 38px; height: 38px; }
  .hk-faq__panel-inner p { padding-inline: 20px; padding-block: 0 20px; }
}

/* ==========================================================
   Home 1: Final CTA (rounded photo band)
   ========================================================== */
.hk-final {
  --r: 28px;
  padding-block: clamp(24px, 5vw, 64px) clamp(40px, 6vw, 72px);
  background: var(--bg);
}

.hk-final__band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(400px, 48vw, 540px);
  padding: clamp(32px, 6vw, 80px) clamp(20px, 4vw, 48px);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r);
  text-align: center;
  color: #ffffff; /* sits on the photo, so it stays white in both modes */
  background: linear-gradient(110deg, #262626 30%, #3a3a3a 50%, #262626 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hk-final__band.is-loaded { animation: none; background: #1a1a1a; }

.hk-final__band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: opacity .6s ease;
}
.hk-final__band img.is-loading { opacity: 0; }

.hk-final__band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .5));
  pointer-events: none;
}

.hk-final__content { max-width: 720px; }
.hk-final__content .hk-h2 { margin-bottom: 18px; color: #ffffff; }

.hk-final__text {
  margin: 0 auto 32px;
  max-width: 520px;
  font-size: clamp(15.5px, 0.4vw + 14px, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
}

.hk-final__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 32px;
}

/* white pill: the graphite button would be too dark on the photo */
.hk-cta--light { background: #ffffff; color: #0a0a0a; }
.hk-cta--light:hover { background: #e8e8e8; }

.hk-final .hk-link { color: #ffffff; border-color: #ffffff; }
.hk-final .hk-link:hover { color: rgba(255, 255, 255, .75); border-color: rgba(255, 255, 255, .75); }
.hk-final :focus-visible { outline-color: #ffffff; }

.hk-final__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.hk-final__pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 500;
}
.hk-final__pills i { font-size: 14px; }

@media (max-width: 1024px) {
  .hk-final { --r: 22px; }
  .hk-final__pills { margin-top: 28px; }
}

@media (max-width: 380px) {
  .hk-final__actions .hk-cta {
    width: 100%;
    gap: 8px;
    padding-inline: 12px;
    font-size: 13px;
    white-space: nowrap;
  }
}


/* ==========================================================
   Footer (rounded panel + newsletter)
   ========================================================== */
.hk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hk-footer {
  --r: 28px;
  padding-block: 0 clamp(16px, 3vw, 28px);
  background: var(--bg);
}

.hk-footer__panel {
  padding: 60px 40px 60px 40px;
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hk-footer__top { display: grid; gap: clamp(36px, 6vw, 56px); }

.hk-footer__blurb {
  margin: 22px 0 28px;
  max-width: 420px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.hk-footer__label {
  display: block;
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Newsletter ---------- */
.hk-news { max-width: 440px; }

.hk-news__field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--bg);
  transition: box-shadow .2s ease;
}
.hk-news__field:focus-within { box-shadow: 0 0 0 2px var(--focus); }
.hk-news.is-invalid .hk-news__field { box-shadow: 0 0 0 2px var(--error); }

.hk-news input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding-inline: 18px 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.hk-news input::placeholder { color: var(--text-muted); }

.hk-news__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding-inline: 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 14.5px;
  font-weight: 600;
  transition: background-color .25s ease, transform .2s ease;
}
.hk-news__btn:hover { background: var(--btn-bg-hover); }
.hk-news__btn:active { transform: scale(.97); }
.hk-news__btn i { font-size: 13px; }
.hk-news__spin { display: none; }
.hk-news__btn.is-loading { pointer-events: none; opacity: .85; }
.hk-news__btn.is-loading .hk-news__arrow { display: none; }
.hk-news__btn.is-loading .hk-news__spin { display: inline-block; }

/* message chip: sits on the page color so red text keeps AA contrast */
.hk-news__msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--error);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}
.hk-news__msg[hidden] { display: none; }
.hk-news__msg.is-success { color: var(--text); }

/* ---------- Social ---------- */
.hk-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hk-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  transition: background-color .25s ease, color .25s ease, transform .2s ease;
}
.hk-social a:hover { background: var(--btn-bg); color: var(--btn-text); }
.hk-social a:active { transform: scale(.94); }

/* ---------- Link columns ---------- */
.hk-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; align-content: start; }
.hk-footer__col--contact { grid-column: 1 / -1; }

.hk-footer__links { display: grid; gap: 4px; }
.hk-footer__links a {
  display: inline-block;
  padding-block: 5px;
  font-size: 15.5px;
  transition: color .2s ease;
}
.hk-footer__links a:hover { color: var(--text-muted); }

.hk-footer__contact { display: grid; gap: 14px; font-style: normal; font-size: 15.5px; line-height: 1.5; }
.hk-footer__contact a,
.hk-footer__contact > span { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; column-gap: 12px; transition: color .2s ease; }
.hk-footer__contact a:hover { color: var(--text-muted); }
.hk-footer__contact i { width: 18px; margin-top: 3px; font-size: 14px; text-align: center; color: var(--text-muted); }

/* ---------- Bottom pill bar ---------- */
.hk-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 6px;
  padding-inline: 24px 6px;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg);
}
.hk-footer__copy { margin: 0; font-size: 14px; line-height: 1.4; color: var(--text-muted); }
.hk-footer__bar .hk-totop { flex: 0 0 40px; width: 40px; min-width: 40px; }

@media (min-width: 640px) {
  .hk-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hk-footer__col--contact { grid-column: auto; }
  .hk-footer__bar { border-radius: 999px; }
}

@media (min-width: 900px) {
  .hk-footer__top { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
}

@media (max-width: 1024px) {
  .hk-footer { --r: 22px; }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .hk-footer { --r: 22px; }
  .hk-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(36px, 6vw, 56px);
  }
}

@media (min-width: 900px) and (max-width: 1600px) {
  .hk-footer__contact a[href^="mailto:"] bdi {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 421px) and (max-width: 480px) {
  .hk-footer__panel { padding: 40px 16px; }
  .hk-footer__top,
  .hk-footer__brand,
  .hk-footer__cols,
  .hk-news,
  .hk-news__field { min-width: 0; }
  .hk-news,
  .hk-news__field { width: 100%; }
  .hk-footer__bar { gap: 8px; padding-inline: 12px 6px; }
  .hk-footer__copy { flex: 1 1 auto; min-width: 0; font-size: 12.5px; overflow-wrap: anywhere; }
}

@media (max-width: 420px) {
  .hk-footer__panel { padding: 40px 16px; }
  .hk-footer__top,
  .hk-footer__brand,
  .hk-footer__cols,
  .hk-news,
  .hk-news__field { min-width: 0; }
  .hk-news,
  .hk-news__field { width: 100%; }
  .hk-news__btn { padding-inline: 0; width: 46px; }
  .hk-news__label { display: none; }
  .hk-footer__bar { gap: 8px; padding-inline: 12px 6px; }
  .hk-footer__copy { flex: 1 1 auto; min-width: 0; font-size: 12.5px; overflow-wrap: anywhere; }
}




/* ==========================================================
   Home 2: Hero (background video)
   New names: hk2- classes, h2- ids. Shared: .hk-container, .hk-cta, .hk-link
   ========================================================== */
.hk2-hero {
  --r: 28px;
  padding-block: 24px 40px;
  background: var(--bg);
}
 
.hk2-hero__stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: clamp(520px, calc(100svh - var(--header-h) - 64px), 760px);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  color: #ffffff; /* sits on the video, so it stays white in both modes */
  background: linear-gradient(110deg, #262626 30%, #3a3a3a 50%, #262626 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hk2-hero__stage.is-ready { animation: none; background: #1a1a1a; }
 
.hk2-hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}
.hk2-hero__stage.is-ready .hk2-hero__video { opacity: 1; }
 
/* dark gradient so the text is always readable */
.hk2-hero__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .4) 50%, rgba(0, 0, 0, .12) 100%);
  pointer-events: none;
}
 
/* Pause / play (required for motion control) */
.hk2-hero__toggle {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 14px;
  transition: background-color .25s ease, transform .2s ease;
}
.hk2-hero__toggle:hover { background: rgba(255, 255, 255, .3); }
.hk2-hero__toggle:active { transform: scale(.94); }
.hk2-hero__toggle:focus-visible { outline-color: #ffffff; }
.hk2-hero__ico-play { display: none; }
.hk2-hero__stage.is-paused .hk2-hero__ico-pause { display: none; }
.hk2-hero__stage.is-paused .hk2-hero__ico-play { display: inline; }
 
.hk2-hero__content {
  width: 100%;
  max-width: 780px;
  padding: clamp(20px, 3.5vw, 48px);
}
 
.hk2-hero__badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
 
.hk2-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 2.8vw + 18px, 62px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hk2-hero__title span { display: block; }
 
.hk2-hero__text {
  margin: 0 0 28px;
  max-width: 540px;
  font-size: clamp(15px, 0.5vw + 13px, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}
 
.hk2-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}
.hk2-hero .hk-link { color: #ffffff; border-color: #ffffff; }
.hk2-hero .hk-link:hover { color: rgba(255, 255, 255, .75); border-color: rgba(255, 255, 255, .75); }
.hk2-hero :focus-visible { outline-color: #ffffff; }
 
.hk2-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.hk2-hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 500;
}
.hk2-hero__facts i { font-size: 14px; }
 
@media (max-width: 1024px) {
  .hk2-hero { --r: 22px; padding-block: 16px 32px; }
  .hk2-hero__stage { height: clamp(520px, calc(100svh - var(--header-h) - 48px), 680px); }
}
 
@media (max-width: 560px) {
  .hk2-hero__stage { height: 680px; }
  .hk2-hero__facts { margin-top: 24px; }
  .hk2-hero__facts li { font-size: 13px; padding: 7px 14px; }
  .hk2-hero__actions .hk-cta { width: 100%; }
}
 

/* ==========================================================
   Home 2: About (photo + badge, feature rows, stats panel)
   ========================================================== */
.hk2-about {
  --r: 28px;
  padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 100px);
  background: var(--bg);
}

.hk2-about__grid { display: grid; gap: 32px; }

/* Photo */
.hk2-about__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r);
  background: var(--bg-soft);
}
.hk2-about__media.is-pending {
  background: linear-gradient(110deg, var(--bg-soft) 30%, var(--border) 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hk2-about__media.is-pending img { opacity: 0; }
.hk2-about__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s ease;
}

.hk2-about__badge {
  position: absolute;
  inset-inline-start: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg);
  color: var(--text);
}
.hk2-about__badge-num {
  font-family: var(--font-heading);
  font-size: clamp(30px, 1.5vw + 22px, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hk2-about__badge-label { max-width: 130px; font-size: 13.5px; line-height: 1.35; color: var(--text-muted); }

/* Text */
.hk2-about__text {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: clamp(15.5px, 0.4vw + 14px, 18px);
  line-height: 1.7;
  color: var(--text-muted);
}

/* Feature rows */
.hk2-about__list { display: grid; gap: 10px; }
.hk2-feat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg-soft);
}
.hk2-feat__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}
.hk2-feat__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hk2-feat__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.hk2-feat__desc { font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }

/* Stats panel (inverted, flips with the theme) */
.hk2-about__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 28px;
  padding: 20px 8px;
  border-radius: calc(var(--r) - 6px);
  background: var(--primary);
  color: var(--on-primary);
}
.hk2-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-inline: 16px;
}
.hk2-stat + .hk2-stat { border-inline-start: 1px solid color-mix(in srgb, var(--on-primary) 22%, transparent); }
.hk2-stat__num {
  font-family: var(--font-heading);
  font-size: clamp(24px, 1.6vw + 14px, 38px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hk2-stat__label { font-size: 13.5px; line-height: 1.35; opacity: .72; }

@media (min-width: 900px) {
  .hk2-about__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: stretch; }
  .hk2-about__media { aspect-ratio: auto; min-height: 560px; }
  .hk2-about__body { align-self: center; }
}

@media (max-width: 1024px) {
  .hk2-about { --r: 22px; }
}

@media (max-width: 440px) {
  .hk2-about__stats { grid-template-columns: 1fr; gap: 16px; padding: 20px 8px; }
  .hk2-stat + .hk2-stat { border-inline-start: 0; }
  .hk2-feat { padding: 14px 16px; }
}


/* ==========================================================
   Home 2: Services (pinned photo + scrolling text, no cards)
   ========================================================== */
.hk2-svc {
  --r: 28px;
  padding-block: clamp(32px, 6vw, 88px) clamp(56px, 8vw, 100px);
  background: var(--bg);
}
.hk2-svc__head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 56px); }
.hk2-svc__head .hk-h2 { margin: 0; }

.hk2-svc__pin { display: none; }

/* Text blocks (plain, separated by a thin line) */
.hk2-svc__item { padding-block: 32px; border-top: 1px solid var(--border); }

.hk2-svc__fig {
  margin: 0 0 24px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg-soft);
}
.hk2-svc__fig img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease; }

.hk2-svc__fig.is-pending,
.hk2-svc__stage.is-pending {
  background: linear-gradient(110deg, var(--bg-soft) 30%, var(--border) 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hk2-svc__fig.is-pending img,
.hk2-svc__stage.is-pending img { opacity: 0; }

.hk2-svc__num {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--text-muted);
}
.hk2-svc__title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(26px, 1.6vw + 16px, 38px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hk2-svc__desc {
  max-width: 52ch;
  margin: 0 0 22px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.hk2-svc__points { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.hk2-svc__points li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.hk2-svc__points i { flex: none; margin-top: 5px; font-size: 13px; }

.hk2-svc__more { padding-top: 32px; border-top: 1px solid var(--border); }

/* Laptop and up: pinned photo on the left */
@media (min-width: 1025px) {
  .hk2-svc__layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }

  .hk2-svc__pin {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    height: min(calc(100svh - var(--header-h) - 48px), 640px);
  }
  .hk2-svc__stage {
    position: relative;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--r);
    background: var(--bg-soft);
  }
  .hk2-svc__stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity .6s ease, transform 1.2s ease;
  }
  .hk2-svc__stage img.is-active { opacity: 1; transform: none; }
  .hk2-svc__stage.is-pending img { opacity: 0; }

  .hk2-svc__bars {
    position: absolute;
    inset-inline: 16px;
    top: 16px;
    z-index: 2;
    display: flex;
    gap: 6px;
  }
  .hk2-svc__bars span {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .4);
    transition: background .4s ease;
  }
  .hk2-svc__bars span.is-active { background: #ffffff; }

  .hk2-svc__count {
    position: absolute;
    inset-inline-start: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px 10px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--text);
  }
  .hk2-svc__count-num { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
  .hk2-svc__count-label { font-size: 14.5px; font-weight: 600; }

  .hk2-svc__fig { display: none; }

  .hk2-svc__item {
    min-height: min(62svh, 520px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 48px;
    transition: opacity .4s ease;
  }
  .hk2-svc__item:first-child { border-top: 0; }

  /* Dim the other blocks only when JS is running (text stays readable) */
  .hk2-svc.is-live .hk2-svc__item:not(.is-active) { opacity: .5; }
}

@media (max-width: 767px) {
  .hk2-svc { --r: 22px; }
  .hk2-svc__more .hk-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hk2-svc__item,
  .hk2-svc__stage img,
  .hk2-svc__bars span { transition: none; }
}


/* ==========================================================
   Home 2: Owner stories (single image slider)
   ========================================================== */
.hk2-ow {
  --r: 28px;
  padding-block: clamp(32px, 6vw, 88px) clamp(56px, 8vw, 100px);
  background: var(--bg);
}
@media (max-width: 1024px) { .hk2-ow { --r: 22px; } }

.hk2-ow__head { max-width: 640px; margin-bottom: clamp(24px, 4vw, 44px); }
.hk2-ow__head .hk-h2 { margin: 0; }

/* ---------- Stage ---------- */
.hk2-ow__stage {
  --ow-dir: to right;           /* rtl.css flips this */
  position: relative;
  height: clamp(580px, 140vw, 680px);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r);
  background: #1a1a1a;
  color: #ffffff;               /* sits on the photo, so it stays white in both modes */
  touch-action: pan-y;
  outline: 0;
}
.hk2-ow__stage:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

/* Slides sit on top of each other and cross-fade (first slide shows without JS) */
.hk2-ow__slide {
  position: absolute;
  inset: 0;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.hk2-ow__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }

.hk2-ow__slide.is-pending {
  background: linear-gradient(110deg, #262626 30%, #3a3a3a 50%, #262626 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hk2-ow__slide.is-pending img { opacity: 0; }

.hk2-ow__slide img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  -webkit-user-drag: none;
  user-select: none;
  transition: opacity .5s ease, transform 1.4s ease;
}
.hk2-ow__slide.is-active img { transform: none; }

/* dark gradients keep the text and controls readable */
.hk2-ow__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .45) 42%, rgba(0, 0, 0, .1) 80%),
    linear-gradient(to bottom, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 22%);
  pointer-events: none;
}

/* Text (bottom start) */
.hk2-ow__text {
  position: absolute;
  z-index: 2;
  inset-inline: 20px;
  bottom: 92px;
  max-width: 640px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.hk2-ow__slide.is-active .hk2-ow__text { opacity: 1; transform: none; transition-delay: .15s; }

.hk2-ow__tag {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hk2-ow__result {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 3vw + 16px, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: #ffffff;
}
.hk2-ow__quote {
  margin: 0 0 16px;
  max-width: 52ch;
  font-size: clamp(15.5px, 0.4vw + 14px, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}
.hk2-ow__by { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.hk2-ow__by strong { font-weight: 600; color: #ffffff; }

/* ---------- Story list ---------- */
.hk2-ow__nav {
  position: absolute;
  z-index: 3;
  top: 14px;
  inset-inline: 16px;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hk2-ow__nav li { flex: 1; }
.hk2-ow__tab {
  width: 100%;
  display: block;
  padding-block: 10px;
  color: rgba(255, 255, 255, .6);
}
.hk2-ow__n { display: none; }
.hk2-ow__line {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  transition: background-color .3s ease, width .3s ease;
}
.hk2-ow__tab.is-on .hk2-ow__line { background: #ffffff; }
.hk2-ow__tab:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; border-radius: 6px; }

/* ---------- Counter + arrows ---------- */
.hk2-ow__ctrl {
  position: absolute;
  z-index: 3;
  inset-inline: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hk2-ow__count {
  margin-inline-end: auto;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hk2-ow__btn {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 15px;
  transition: background-color .25s ease, opacity .25s ease, transform .2s ease;
}
.hk2-ow__btn:hover:not(:disabled) { background: rgba(255, 255, 255, .32); }
.hk2-ow__btn:active:not(:disabled) { transform: scale(.94); }
.hk2-ow__btn:disabled { opacity: .4; cursor: not-allowed; }
.hk2-ow__btn:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .hk2-ow__stage { height: clamp(540px, 58vw, 640px); }
  .hk2-ow__text { inset-inline-start: clamp(28px, 4vw, 48px); inset-inline-end: auto; bottom: 100px; }
  .hk2-ow__ctrl { inset-inline: clamp(28px, 4vw, 48px); bottom: 28px; }
}

/* ---------- Laptop and up: numbered list on the right ---------- */
@media (min-width: 900px) {
  .hk2-ow__slide::after {
    background:
      linear-gradient(var(--ow-dir), rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, 0) 85%),
      linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 55%);
  }

  .hk2-ow__nav {
    top: 50%;
    inset-inline: auto clamp(28px, 4vw, 48px);
    transform: translateY(-50%);
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  .hk2-ow__nav li { flex: none; }
  .hk2-ow__tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-block: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
  }
  .hk2-ow__n { display: block; font-variant-numeric: tabular-nums; transition: color .25s ease; }
  .hk2-ow__tab:hover .hk2-ow__n { color: #ffffff; }
  .hk2-ow__tab.is-active .hk2-ow__n { color: #ffffff; }

  .hk2-ow__tab .hk2-ow__line { width: 28px; height: 1px; background: rgba(255, 255, 255, .4); }
  .hk2-ow__tab.is-active .hk2-ow__line { width: 44px; background: #ffffff; }

  .hk2-ow__count { margin-inline-end: 8px; }
  .hk2-ow__ctrl { inset-inline-start: auto; }
}

@media (min-width: 1025px) {
  .hk2-ow__stage { height: 620px; }
  .hk2-ow__text { bottom: 64px; }
}

@media (max-width: 767px) {
  .hk2-ow__btn { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .hk2-ow__slide,
  .hk2-ow__slide img,
  .hk2-ow__text,
  .hk2-ow__line,
  .hk2-ow__btn { transition: none; }
  .hk2-ow__text { transform: none; }
}
/* ==========================================================
   Home 2: Photo strip (two moving rows + centered message)
   ========================================================== */
.hk2-strip {
  --r: 24px;
  --strip-gap: 14px;
  --strip-h: clamp(170px, 19vw, 250px);
  --strip-dir: 1;
  padding-block: clamp(32px, 6vw, 72px);
  background: var(--bg);
  overflow: hidden;
}

/* Rows: full width, only the very edges fade */
.hk2-strip__row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.hk2-strip__track {
  display: flex;
  width: max-content;
  animation: hk2-strip-move 70s linear infinite;
  will-change: transform;
}
.hk2-strip__track--b { animation-duration: 70s; animation-direction: reverse; }

@keyframes hk2-strip-move {
  to { transform: translateX(calc(var(--strip-dir) * -50%)); }
}

.hk2-strip__set {
  display: flex;
  gap: var(--strip-gap);
  margin: 0;
  padding: 0 var(--strip-gap) 0 0;
  list-style: none;
}
[dir="rtl"] .hk2-strip__set { padding: 0 0 0 var(--strip-gap); }

/* Pause: hover, button, and when off screen */
.hk2-strip__row:hover .hk2-strip__track,
.hk2-strip.is-paused .hk2-strip__track,
.hk2-strip.is-offscreen .hk2-strip__track { animation-play-state: paused; }

/* Tiles */
.hk2-strip__tile {
  position: relative;
  flex: none;
  height: var(--strip-h);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r);
  background: var(--bg-soft);
}
.hk2-strip__tile--wide { aspect-ratio: 3 / 2; }
.hk2-strip__tile--tall { aspect-ratio: 4 / 5; }
.hk2-strip__tile--square { aspect-ratio: 1 / 1; }

.hk2-strip__tile.is-pending {
  background: linear-gradient(110deg, var(--bg-soft) 30%, var(--border) 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hk2-strip__tile.is-pending img { opacity: 0; }

.hk2-strip__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s ease, transform .8s ease;
}
.hk2-strip__tile:hover img { transform: scale(1.05); }

/* Label: white pill, same as the Home 1 property tiles */
.hk2-strip__cap {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  transition: transform .3s ease;
}
.hk2-strip__tile:hover .hk2-strip__cap { transform: translateY(-3px); }
.hk2-strip__cap strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk2-strip__cap span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* Centered message */
.hk2-strip__center {
  max-width: 760px;
  margin: clamp(28px, 4vw, 48px) auto;
  text-align: center;
}
.hk2-strip__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.8vw + 14px, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--text);
}
.hk2-strip__text {
  max-width: 52ch;
  margin: 0 auto 26px;
  font-size: clamp(15.5px, .3vw + 14.5px, 17px);
  line-height: 1.65;
  color: var(--text-muted);
}
.hk2-strip__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hk2-strip__pause {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 14px;
  cursor: pointer;
  transition: background .25s ease, transform .2s ease;
}
.hk2-strip__pause:hover { background: var(--btn-bg-hover); }
.hk2-strip__pause:active { transform: scale(.94); }
.hk2-strip__pause:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hk2-strip__ico-play { display: none; }
.hk2-strip.is-paused .hk2-strip__ico-pause { display: none; }
.hk2-strip.is-paused .hk2-strip__ico-play { display: inline; }

@media (max-width: 767px) {
  .hk2-strip { --r: 18px; --strip-gap: 10px; --strip-h: 150px; }
  .hk2-strip__cap { inset-inline-start: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 12px; font-size: 12px; }
  .hk2-strip__cap span { display: none; }
  .hk2-strip__actions .hk-cta { flex: 1 1 auto; justify-content: center; }
}

/* Less motion: no animation, rows become normal swipeable strips */
@media (prefers-reduced-motion: reduce) {
  .hk2-strip__track { animation: none; }
  .hk2-strip__row {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }
  .hk2-strip__set[aria-hidden="true"] { display: none; }
  .hk2-strip__pause { display: none; }
  .hk2-strip__tile img,
  .hk2-strip__cap { transition: none; }
}


/* ==========================================================
   Home 2: Pricing (three simple rows, popular row inverted)
   ========================================================== */
.hk2-pr {
  --r: 28px;
  padding-block: clamp(32px, 6vw, 88px) clamp(56px, 8vw, 100px);
  background: var(--bg);
}

.hk2-pr__head { max-width: 700px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.hk2-pr__head .hk-h2 { margin-bottom: 16px; }
.hk2-pr__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-muted); }

.hk2-pr__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }

/* Row (mobile: stacked) */
.hk2-pr__row {
  display: grid;
  gap: 20px;
  padding: 28px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--border);
}

.hk2-pr__name {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 1vw + 18px, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hk2-pr__tag { margin: 0; max-width: 30ch; font-size: 15px; line-height: 1.5; color: var(--text-muted); }

.hk2-pr__feats { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hk2-pr__feats li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.45; color: var(--text); }
.hk2-pr__feats i { flex: none; margin-top: 4px; font-size: 13px; }

.hk2-pr__price {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: clamp(48px, 3vw + 30px, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}
.hk2-pr__price span { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }

.hk2-pr__cta { justify-self: start; }

/* Popular row: rounded inverted panel */
.hk2-pr__row--pop {
  margin-block: 10px;
  border-bottom: 0;
  border-radius: var(--r);
  background: var(--primary);
}
.hk2-pr__row--pop .hk2-pr__name,
.hk2-pr__row--pop .hk2-pr__feats li,
.hk2-pr__row--pop .hk2-pr__price { color: var(--on-primary); }
.hk2-pr__row--pop .hk2-pr__tag,
.hk2-pr__row--pop .hk2-pr__price span { color: color-mix(in srgb, var(--on-primary) 72%, transparent); }

.hk2-pr__badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--on-primary);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hk2-pr__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--on-primary);
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  transition: opacity .25s ease, transform .2s ease;
}
.hk2-pr__btn i { font-size: 14px; transition: transform .25s ease; }
.hk2-pr__btn:hover { opacity: .85; }
.hk2-pr__btn:hover i { transform: translateX(4px); }
.hk2-pr__btn:active { transform: scale(.98); }
.hk2-pr__btn:focus-visible { outline: 2px solid var(--on-primary); outline-offset: 3px; }

.hk2-pr__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
}

/* Tablet: name + price on top, features + button below */
@media (min-width: 768px) {
  .hk2-pr__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "info  price"
      "feats cta";
    align-items: center;
    gap: 24px 32px;
    padding-block: 36px;
  }
  .hk2-pr__info { grid-area: info; }
  .hk2-pr__price { grid-area: price; align-items: flex-end; text-align: end; }
  .hk2-pr__feats { grid-area: feats; }
  .hk2-pr__cta { grid-area: cta; justify-self: end; }
  .hk2-pr__row--pop { padding-block: 40px; }
}

/* Laptop: everything on one line */
@media (min-width: 1025px) {
  .hk2-pr__row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(150px, .7fr) 210px;
    grid-template-areas: "info feats price cta";
    gap: 40px;
    padding-block: 44px;
  }
  .hk2-pr__price { align-items: flex-start; text-align: start; }
  .hk2-pr__row--pop { padding-block: 52px; }
}

@media (max-width: 767px) {
  .hk2-pr { --r: 22px; }
  .hk2-pr__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hk2-pr__btn,
  .hk2-pr__btn i { transition: none; }
}

/* Home 2 pricing: all three rows are rounded panels, only Complete is inverted */
.hk2-pr__list {
  display: grid;
  gap: 12px;
  border-top: 0;
}

.hk2-pr__row {
  border-bottom: 0;
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hk2-pr__row--pop {
  margin-block: 0;
  background: var(--primary);
}

/* Same height rhythm for all three rows */
@media (min-width: 768px) {
  .hk2-pr__row,
  .hk2-pr__row--pop { padding-block: 40px; }
}

@media (min-width: 1025px) {
  .hk2-pr__row,
  .hk2-pr__row--pop { padding-block: 48px; }
}


/* ==========================================================
   Home 2: Testimonials (two quote panels)
   ========================================================== */
.hk2-tm {
  --r: 24px;
  padding-block: clamp(32px, 6vw, 88px) clamp(56px, 8vw, 100px);
  background: var(--bg);
}

.hk2-tm__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(24px, 4vw, 44px);
}
.hk2-tm__intro { max-width: 640px; }
.hk2-tm__intro .hk-h2 { margin: 0; }

.hk2-tm__rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--text-muted);
}
.hk2-tm__stars { display: inline-flex; gap: 4px; font-size: 15px; color: var(--text); }

.hk2-tm__grid { display: grid; gap: 16px; }

.hk2-tm__card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hk2-tm__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hk2-tm__mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  font-size: 12px;
  color: var(--text);
}

.hk2-tm__quote { margin: 24px 0 28px; }
.hk2-tm__quote p {
  margin: 0;
  font-size: clamp(16.5px, .5vw + 14px, 19px);
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
}

.hk2-tm__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}
.hk2-tm__avatar {
  flex: none;
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 50%;
  background: var(--btn-bg);
  object-fit: cover;
}
.hk2-tm__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; color: var(--text-muted); }
.hk2-tm__who strong { font-size: 15.5px; font-weight: 600; color: var(--text); }

@media (min-width: 768px) {
  .hk2-tm__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 767px) {
  .hk2-tm { --r: 20px; }
  .hk2-tm__rating { margin-bottom: 0; }
}


/* ==========================================================
   Home 2: Final CTA (inverted panel, arch photo), compact
   ========================================================== */
.hk2-cta {
  --r: 28px;
  padding-block: clamp(16px, 3vw, 40px) clamp(40px, 6vw, 72px);
  background: var(--bg);
}

.hk2-cta__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 28px;
  padding: clamp(28px, 4.5vw, 56px) clamp(20px, 5vw, 64px) 0;
  border-radius: var(--r);
  background: var(--primary);   /* flips with the theme */
  color: var(--on-primary);
}

.hk2-cta__title {
  margin: 0 0 16px;
  max-width: 18ch;
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.2vw + 14px, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hk2-cta__text {
  margin: 0;
  max-width: 440px;
  font-size: clamp(15.5px, 0.3vw + 14.5px, 17px);
  line-height: 1.65;
  color: color-mix(in srgb, var(--on-primary) 76%, transparent);
}

.hk2-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 24px;
}
.hk2-cta .hk2-cta__btn { background: var(--on-primary); color: var(--primary); }
.hk2-cta .hk2-cta__btn:hover { background: var(--on-primary); opacity: .85; }
.hk2-cta .hk-link { color: var(--on-primary); border-color: var(--on-primary); }
.hk2-cta .hk-link:hover { color: var(--on-primary); border-color: var(--on-primary); opacity: .75; }

.hk2-cta__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px;
}
.hk2-cta__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: color-mix(in srgb, var(--on-primary) 82%, transparent);
}
.hk2-cta__facts i { font-size: 14px; }

/* Arch photo rising from the bottom edge */
.hk2-cta__media {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 4 / 5;
  justify-self: center;
  align-self: end;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: color-mix(in srgb, var(--on-primary) 14%, transparent);
}
.hk2-cta__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s ease;
}
.hk2-cta__media.is-pending {
  background: linear-gradient(110deg,
    color-mix(in srgb, var(--on-primary) 10%, transparent) 30%,
    color-mix(in srgb, var(--on-primary) 24%, transparent) 50%,
    color-mix(in srgb, var(--on-primary) 10%, transparent) 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hk2-cta__media.is-pending img { opacity: 0; }

.hk2-cta__pill {
  position: absolute;
  inset-inline: 0;
  bottom: 16px;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

@media (min-width: 900px) {
  .hk2-cta__panel {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 40px;
    align-items: end;
  }
  .hk2-cta__content { padding-bottom: clamp(28px, 4vw, 56px); }
  .hk2-cta__media { width: 100%; max-width: 300px; justify-self: end; }
}

@media (max-width: 1024px) {
  .hk2-cta { --r: 22px; }
}

@media (max-width: 520px) {
  .hk2-cta__actions { flex-direction: column; align-items: stretch; }
  .hk2-cta__actions .hk-cta { width: 100%; }
  .hk2-cta__actions .hk-link { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hk2-cta__media.is-pending { animation: none; }
}

/* The video is decoration: no hover overlay, no native controls */
.hk2-hero__video { pointer-events: none; }
.hk2-hero__video::-webkit-media-controls,
.hk2-hero__video::-webkit-media-controls-enclosure,
.hk2-hero__video::-webkit-media-controls-panel,
.hk2-hero__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

/* ==========================================================
   About page: shared (hka- prefix)
   ========================================================== */
.hka-hero, .hka-story, .hka-history, .hka-team, .hka-cta {
  --r: 28px;
  --hka-pad: clamp(56px, 8vw, 110px);
}
@media (max-width: 1024px) {
  .hka-hero, .hka-story, .hka-history, .hka-team, .hka-cta { --r: 22px; }
}

/* Rounded photo box with skeleton (main.js adds / removes .is-pending) */
.hka-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r);
  background: var(--bg-soft);
}
.hka-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s ease;
}
.hka-media.is-pending {
  background: linear-gradient(110deg, var(--bg-soft) 30%, var(--border) 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hka-media.is-pending img { opacity: 0; }

.hka-text {
  margin: 0 0 1.25em;
  max-width: 62ch;
  font-size: clamp(16px, 0.4vw + 15px, 19px);
  line-height: 1.75;
  color: var(--text-muted);
}

/* ==========================================================
   Home 3: Hero (photo fading into a soft rounded panel)
   New names: hk3- classes, h3- ids. Shared: .hk-container, .hk-eyebrow, .hk-cta
   ========================================================== */
.hk3-hero {
  --r: 28px;
  padding-block: 24px 40px;
  background: var(--bg);
}

.hk3-hero__stage {
  --fade: 90deg;              /* rtl.css flips this */
  --focus: right center;      /* rtl.css flips this */
  position: relative;
  display: grid;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r);
  background: var(--bg-soft);
}

/* Text */
.hk3-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 6vw, 48px) clamp(20px, 4vw, 32px) 24px;
}
.hk3-hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(38px, 3.6vw + 16px, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hk3-hero__title span { display: block; }

.hk3-hero__text {
  margin: 22px 0 30px;
  max-width: 440px;
  font-size: clamp(16px, 0.4vw + 15px, 18px);
  line-height: 1.7;
  color: var(--text-muted);
}

/* Stats with hairline dividers */
.hk3-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(32px, 5vw, 56px);
  max-width: 480px;
}
.hk3-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-inline: 14px;
}
.hk3-stat:first-child { padding-inline-start: 0; }
.hk3-stat + .hk3-stat { border-inline-start: 1px solid var(--border); }
.hk3-stat__num {
  font-family: var(--font-heading);
  font-size: clamp(24px, 1.2vw + 18px, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hk3-stat__label { font-size: 13.5px; line-height: 1.35; color: var(--text-muted); }

/* Photo (stacked under the text on mobile and tablet) */
.hk3-hero__media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  margin: 0 12px 12px;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg);
}
.hk3-hero__media.is-pending {
  background: linear-gradient(110deg, var(--bg) 30%, var(--border) 50%, var(--bg) 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hk3-hero__media.is-pending img { opacity: 0; }
.hk3-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus);
  transition: opacity .5s ease;
}

/* Small vertical tagline (desktop only, decorative) */
.hk3-hero__tag { display: none; }



@media (min-width: 900px) {
  .hk3-hero__stage {
    display: block;
    height: clamp(560px, calc(100svh - var(--header-h) - 64px), 720px);
  }

  .hk3-hero__content {
    height: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 0 48px clamp(40px, 5vw, 72px);
  }
  [dir="rtl"] .hk3-hero__content { padding: 48px clamp(40px, 5vw, 72px) 48px 0; }

  .hk3-hero__media {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 68%;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
  }
  .hk3-hero__media { background: transparent; }

  /* fade the photo itself into the panel (no overlay, so no seam) */
  .hk3-hero__media img {
    -webkit-mask-image: linear-gradient(
      var(--fade),
      transparent 0%,
      rgba(0, 0, 0, .08) 20%,
      rgba(0, 0, 0, .30) 35%,
      rgba(0, 0, 0, .58) 50%,
      rgba(0, 0, 0, .82) 65%,
      #000 80%
    );
    mask-image: linear-gradient(
      var(--fade),
      transparent 0%,
      rgba(0, 0, 0, .08) 20%,
      rgba(0, 0, 0, .30) 35%,
      rgba(0, 0, 0, .58) 50%,
      rgba(0, 0, 0, .82) 65%,
      #000 80%
    );
  }
  .hk3-hero__tag {
    position: absolute;
    z-index: 2;
    top: 24px;
    inset-inline-end: 24px;
    display: grid;
    gap: 4px;
    padding: 14px 20px;
    border-radius: calc(var(--r) - 12px);
    background: var(--bg);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .hk3-hero__tag::after { content: ""; width: 24px; height: 1px; margin-top: 8px; background: var(--text-muted); }
}

@media (max-width: 1024px) {
  .hk3-hero { --r: 22px; padding-block: 16px 32px; }
}

@media (max-width: 380px) {
  .hk3-stat { padding-inline: 10px; }
  .hk3-stat__label { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hk3-hero__media.is-pending { animation: none; }
}
/* ==========================================================
   About: Story (centered head, photo, overlapping panel, values)
   Mobile first: 320px up
   ========================================================== */
.hka-tale {
  --r: 28px;
  --ov: clamp(48px, 9vw, 120px);   /* how far the panel overlaps the photo */
  padding-block: clamp(48px, 8vw, 110px);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
@media (max-width: 1024px) { .hka-tale { --r: 22px; } }

.hka-tale__head { max-width: 820px; margin: 0 auto clamp(28px, 5vw, 56px); text-align: center; }
.hka-tale__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.4vw + 14px, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hka-tale__title span { display: block; color: var(--text-muted); }

/* ---------- Photo + badge + circle inset ---------- */
.hka-tale__stage { position: relative; }
.hka-tale__photo { aspect-ratio: 1 / 1; }          /* phones: square */
.hka-tale__photo img { object-position: center 30%; }
@media (min-width: 560px) { .hka-tale__photo { aspect-ratio: 4 / 3; } }
@media (min-width: 900px) { .hka-tale__photo { aspect-ratio: 21 / 9; } }

.hka-tale__badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  inset-inline-start: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg);
  color: var(--text);
}
.hka-tale__badge-num {
  font-family: var(--font-heading);
  font-size: clamp(24px, 1.2vw + 20px, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hka-tale__badge-label { max-width: 76px; font-size: 12.5px; line-height: 1.3; color: var(--text-muted); }

/* phones: small circle in the top corner (never touches the panel) */
.hka-tale__inset {
  position: absolute;
  z-index: 2;
  top: 12px;
  inset-inline-end: 12px;
  width: 64px;
  aspect-ratio: 1;
  border: 4px solid var(--bg);
  border-radius: 50%;
}

@media (min-width: 560px) {
  .hka-tale__badge { top: 16px; inset-inline-start: 16px; padding: 12px 18px; gap: 12px; }
  .hka-tale__badge-label { max-width: 90px; font-size: 13px; }
}

/* tablet and up: circle moves to the bottom corner, just above the panel */
@media (min-width: 768px) {
  .hka-tale__inset {
    top: auto;
    bottom: calc(var(--ov) + 16px);
    inset-inline-end: clamp(14px, 3vw, 36px);
    width: clamp(96px, 12vw, 150px);
    border-width: 6px;
  }
}

/* ---------- Overlapping split panel ---------- */
.hka-tale__panel {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(100% - 24px, 1040px);
  margin: calc(var(--ov) * -1) auto 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
}
@media (min-width: 768px) {
  .hka-tale__panel {
    width: min(100% - 48px, 1040px);
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hka-tale__read { padding: clamp(22px, 4vw, 44px); }
.hka-tale__read p {
  margin: 0 0 1.1em;
  font-size: clamp(15.5px, 0.3vw + 14.5px, 17px);
  line-height: 1.75;
  color: var(--text-muted);
}
.hka-tale__read p:last-child { margin-bottom: 0; }
.hka-tale__read strong { font-weight: 600; color: var(--text); }

.hka-tale__quote {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  overflow: hidden;
  padding: clamp(22px, 4vw, 44px);
  background: var(--primary);
  color: var(--on-primary);
}
.hka-tale__mark { font-size: 24px; opacity: .6; }
.hka-tale__quote blockquote { margin: 0; }
.hka-tale__quote blockquote p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(21px, 1vw + 16px, 30px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.hka-tale__who { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14.5px; line-height: 1.35; }
.hka-tale__who strong { display: block; font-weight: 600; }
.hka-tale__who span span { color: color-mix(in srgb, var(--on-primary) 72%, transparent); }
.hka-tale__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

/* Decorative rings in the quote corner */
.hka-tale__quote::before,
.hka-tale__quote::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--on-primary) 18%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.hka-tale__quote::before { width: 260px; height: 260px; inset-inline-end: -80px; bottom: -110px; }
.hka-tale__quote::after  { width: 160px; height: 160px; inset-inline-end: -30px; bottom: -60px; }

/* ---------- Values ---------- */
.hka-vals {
  list-style: none;
  margin: clamp(32px, 6vw, 72px) 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.hka-vals__item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hka-vals__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: clamp(24px, 4vw, 44px);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
}

/* number sits level with the icon, at the opposite corner */
.hka-vals__n {
  position: absolute;
  top: clamp(22px, 3vw, 32px);
  inset-inline-end: clamp(22px, 3vw, 32px);
  height: 52px;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: clamp(32px, 1.5vw + 24px, 48px);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--text) 22%, transparent);
}

.hka-vals__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(21px, 0.6vw + 18px, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hka-vals__item p {
  margin: 0;
  max-width: 32ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* large phones and small tablets: compact rows (icon left, text right) */
@media (min-width: 560px) and (max-width: 899px) {
  .hka-vals__item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 20px;
    align-content: center;
  }
  .hka-vals__icon { grid-row: 1 / span 2; align-self: start; margin-bottom: 0; }
  .hka-vals__title { align-self: center; margin-bottom: 4px; padding-inline-end: 64px; }
  .hka-vals__item p { max-width: 50ch; }
}

/* laptop and up: three equal panels */
@media (min-width: 900px) {
  .hka-vals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
}
/* ==========================================================
   About: History (year stepper + image slider)
   ========================================================== */
.hka-hs {
  --r: 28px;
  padding-block: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
@media (max-width: 1024px) { .hka-hs { --r: 22px; } }

.hka-hs__head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.hka-hs__head .hk-h2 { margin-bottom: 16px; }
.hka-hs__head .hka-text { margin-inline: auto; }

/* ---------- Year stepper ---------- */
.hka-hs__steps {
  --hs-p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 0 clamp(24px, 4vw, 40px);
  padding: 0;
  list-style: none;
}
/* track + fill run from the first dot to the last dot */
.hka-hs__steps::before,
.hka-hs__steps::after {
  content: "";
  position: absolute;
  top: 7px;
  height: 2px;
  border-radius: 999px;
}
.hka-hs__steps::before {
  inset-inline: calc(100% / 12);
  background: color-mix(in srgb, var(--text) 16%, transparent);
}
.hka-hs__steps::after {
  inset-inline-start: calc(100% / 12);
  width: calc(100% * 5 / 6);
  background: var(--text);
  transform-origin: left;
  transform: scaleX(var(--hs-p));
  transition: transform .5s ease;
}

.hka-hs__dot {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 2px 6px;
  text-align: center;
  border-radius: 12px;
}
.hka-hs__pt {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, var(--text) 35%, transparent);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.hka-hs__step.is-done .hka-hs__pt { border-color: var(--text); background: var(--text); }
.hka-hs__step.is-active .hka-hs__pt {
  border-color: var(--text);
  background: var(--text);
  transform: scale(1.15);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--text) 16%, transparent);
}

.hka-hs__yr {
  font-family: var(--font-heading);
  font-size: clamp(13px, 1.4vw + 7px, 24px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  transition: color .25s ease;
}
.hka-hs__lb {
  display: none;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .25s ease;
}
.hka-hs__dot:hover .hka-hs__yr,
.hka-hs__step.is-active .hka-hs__yr,
.hka-hs__step.is-active .hka-hs__lb { color: var(--text); }

@media (min-width: 640px) { .hka-hs__lb { display: block; } }

/* ---------- Panel ---------- */
.hka-hs__panel {
  position: relative;
  padding: 12px;
  border-radius: var(--r);
  background: var(--bg-soft);
}

/* Without JS every slide is shown one after another */
.hka-hs__stack { display: grid; gap: 12px; }

/* With JS the slides sit on top of each other and cross-fade */
.hka-hs--js .hka-hs__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.hka-hs--js .hka-hs__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.hka-hs__slide { display: grid; }

/* Photo with the big year */
.hka-hs__media {
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--r) - 8px);
}
.hka-hs__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, 0) 62%);
  pointer-events: none;
}
.hka-hs__year {
  position: absolute;
  z-index: 2;
  inset-inline-start: clamp(18px, 3vw, 32px);
  bottom: clamp(14px, 2vw, 26px);
  font-family: var(--font-heading);
  font-size: clamp(60px, 10vw, 128px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #ffffff; /* sits on the photo, so it stays white in both modes */
}

/* Text */
.hka-hs__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 4vw, 32px) 12px 8px;
}
.hka-hs__kicker {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hka-hs__title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 1.8vw + 18px, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hka-hs__text {
  margin: 0 0 24px;
  max-width: 44ch;
  font-size: clamp(15.5px, 0.4vw + 14px, 18px);
  line-height: 1.7;
  color: var(--text-muted);
}
.hka-hs__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
}
.hka-hs__chip i { font-size: 14px; color: var(--text-muted); }

/* Controls */
.hka-hs__ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 6px;
}
.hka-hs__count {
  margin-inline-end: auto;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.hka-hs__btn {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 15px;
  transition: background-color .25s ease, opacity .25s ease, transform .2s ease;
}
.hka-hs__btn:hover:not(:disabled) { background: var(--btn-bg-hover); }
.hka-hs__btn:active:not(:disabled) { transform: scale(.94); }
.hka-hs__btn:disabled { opacity: .4; cursor: not-allowed; }

/* Tablet and up: photo left, text right, controls bottom-right */
@media (min-width: 768px) {
  .hka-hs__slide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hka-hs__media { aspect-ratio: auto; min-height: clamp(400px, 42vw, 540px); }
  .hka-hs__body { padding: 40px clamp(28px, 4vw, 56px) 112px; }

  .hka-hs__ctrl {
    position: absolute;
    inset-inline-end: clamp(28px, 4vw, 56px);
    bottom: clamp(24px, 3vw, 36px);
    padding: 0;
  }
  .hka-hs__count { margin-inline-end: 8px; }
}

@media (max-width: 767px) {
  .hka-hs__btn { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .hka-hs__steps::after,
  .hka-hs__pt,
  .hka-hs--js .hka-hs__slide,
  .hka-hs__btn { transition: none; }
}


/* ==========================================================
   About: Team (portrait cards, glass info panel)
   ========================================================== */
.hka-team {
  padding-block: var(--hka-pad);
  border-top: 1px solid var(--border);
}

.hka-team__head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.hka-team__head .hk-h2 { margin-bottom: 16px; }
.hka-team__head .hka-text { margin-inline: auto; }

.hka-team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 24px);
}
@media (min-width: 560px) { .hka-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) {
  .hka-team__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* taller cards so the open bio never covers the face */
  .hka-pc__media { aspect-ratio: 2 / 3; }
  .hka-pc__info { padding: 14px 16px; }
}


/* Card */
.hka-pc { outline: 0; }
.hka-pc__media {
  aspect-ratio: 3 / 4;
  background: #262626;
  color: #ffffff; /* sits on the photo, so it stays white in both modes */
  transition: box-shadow .3s ease;
}
.hka-pc__media.is-pending {
  background: linear-gradient(110deg, #262626 30%, #3a3a3a 50%, #262626 70%);
  background-size: 200% 100%;
}
.hka-pc__media img { transition: opacity .5s ease, scale .8s ease; }
.hka-pc:hover .hka-pc__media img { scale: 1.04; }

/* dark gradient keeps the text readable */
.hka-pc__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

.hka-pc__num {
  position: absolute;
  z-index: 2;
  top: 14px;
  inset-inline-start: 20px;
  font-family: var(--font-heading);
  font-size: clamp(34px, 3vw + 12px, 46px);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .75);
  font-variant-numeric: tabular-nums;
}

.hka-pc__badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  inset-inline-end: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0a0a;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Glass info panel */
.hka-pc__info {
  position: absolute;
  z-index: 2;
  inset-inline: 12px;
  bottom: 12px;
  margin: 0;
  padding: 16px 20px;
  border-radius: calc(var(--r) - 8px);
  background: rgba(10, 10, 10, .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.hka-pc__name {
  margin: 0 0 2px;
  font-family: var(--font-heading);
  font-size: clamp(19px, 0.5vw + 17px, 23px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hka-pc__role {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

/* Bio + social: always shown without JS, open on the active card with JS */
.hka-pc__more { display: grid; grid-template-rows: 1fr; }
.hka-pc__more-in { min-height: 0; overflow: hidden; }
.hka-pc__bio {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}
.hka-pc__social { display: flex; gap: 8px; margin-top: 14px; }
.hka-pc__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #0a0a0a;
  font-size: 14px;
  transition: background-color .2s ease, transform .2s ease;
}
.hka-pc__social a:hover { background: #dcdcdc; }
.hka-pc__social a:active { transform: scale(.94); }
.hka-pc :focus-visible { outline-color: #ffffff; }

.hka-team--js .hka-pc__more {
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.4, 0, .2, 1);
}
.hka-team--js .hka-pc__more-in { visibility: hidden; transition: visibility 0s linear .4s; }
.hka-team--js .hka-pc.is-active .hka-pc__more { grid-template-rows: 1fr; }
.hka-team--js .hka-pc.is-active .hka-pc__more-in { visibility: visible; transition-delay: 0s; }

/* Active card gets a ring */
.hka-team--js .hka-pc.is-active .hka-pc__media {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text);
}
.hka-pc:focus-visible .hka-pc__media { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }

@media (prefers-reduced-motion: reduce) {
  .hka-pc__media,
  .hka-pc__media img,
  .hka-team--js .hka-pc__more,
  .hka-team--js .hka-pc__more-in { transition: none; }
}

/* dark gradients keep the number (top) and the info panel (bottom) readable */
.hka-pc__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

/* number: same style as the Home 1 "How it works" numbers */
.hka-pc__num {
  position: absolute;
  z-index: 2;
  inset-inline-start: 20px;
  top: 22px;
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 600;
  line-height: 0.5;
  font-variant-numeric: tabular-nums;
  color: #ffffff; /* sits on the photo, so it stays white in both modes */
}

@media (max-width: 1024px) {
  .hka-pc__num { inset-inline-start: 16px; top: 22px; font-size: 20px; }
}

/* ==========================================================
   About: closing CTA (soft panel + outlined key), compact
   ========================================================== */
.hka-cta { padding-block: clamp(16px, 3vw, 40px) clamp(32px, 5vw, 64px); }

.hka-cta__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 72px);
  border-radius: var(--r);
  background: var(--bg-soft);
  text-align: center;
}

.hka-cta__key {
  position: absolute;
  inset-inline-end: -3%;
  top: 50%;
  z-index: -1;
  font-size: clamp(200px, 32vw, 420px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--text) 16%, transparent);
  transform: translateY(-50%) rotate(-28deg);
  pointer-events: none;
}

.hka-cta__title {
  margin: 0 auto 16px;
  max-width: 16ch;
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.4vw + 14px, 58px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hka-cta__text {
  margin: 0 auto;
  max-width: 460px;
  font-size: clamp(15.5px, 0.3vw + 14.5px, 17px);
  line-height: 1.65;
  color: var(--text-muted);
}
.hka-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-top: 26px;
}

.hka-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}
.hka-facts li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.hka-facts i { font-size: 14px; }

@media (max-width: 520px) {
  .hka-cta__actions { flex-direction: column; align-items: stretch; }
  .hka-cta__actions .hk-cta { width: 100%; }
  .hka-cta__actions .hk-link { align-self: center; }
} 


/* ==========================================================
   Services: Hero (photo, headline, proof, service links)
   New names: hks- classes, sHero ids
   ========================================================== */
.hks-hero {
  --r: 28px;
  padding-block: var(--hero-top) var(--sec-y);
  background: var(--bg);
}

.hks-hero__stage {
  --hks-dir: to right;          /* rtl.css flips this */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(620px, calc(100svh - var(--header-h) - 48px), 800px);
  padding: clamp(20px, 3.5vw, 48px);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  color: #ffffff; /* sits on the photo, so it stays white in both modes */
  background: #1a1a1a;
}
.hks-hero__stage.is-pending {
  background: linear-gradient(110deg, #262626 30%, #3a3a3a 50%, #262626 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}

.hks-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  transition: opacity .6s ease;
}
.hks-hero__stage.is-pending .hks-hero__img { opacity: 0; }

/* dark gradient so the text is always readable */
.hks-hero__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .6) 55%, rgba(0, 0, 0, .35) 100%);
  pointer-events: none;
}

/* Text */
.hks-hero__content { max-width: 680px; }

.hks-hero__badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hks-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.6vw + 16px, 68px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hks-hero__title span { display: block; }

.hks-hero__text {
  margin: 0 0 26px;
  max-width: 500px;
  font-size: clamp(15px, 0.5vw + 13px, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
}

.hks-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.hks-hero .hk-link { color: #ffffff; border-color: #ffffff; }
.hks-hero .hk-link:hover { color: rgba(255, 255, 255, .75); border-color: rgba(255, 255, 255, .75); }
.hks-hero :focus-visible { outline-color: #ffffff; }

/* Short owner quote */
.hks-hero__proof { display: grid; gap: 10px; margin: 28px 0 0; max-width: 380px; }
.hks-hero__stars { display: inline-flex; gap: 4px; font-size: 14px; }
.hks-hero__quote { margin: 0; }
.hks-hero__quote p { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.hks-hero__who { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.hks-hero__avatar {
  flex: none;
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

/* Four services: glass bar with links to each section */
.hks-hero__feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 6px;
  border-radius: calc(var(--r) - 6px);
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hks-feat {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: calc(var(--r) - 12px);
  transition: background-color .25s ease;
}
.hks-feat:hover { background: rgba(255, 255, 255, .14); }
.hks-feat__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.hks-feat__title i { font-size: 12px; transition: transform .25s ease; }
.hks-feat:hover .hks-feat__title i { transform: translateX(4px); }
.hks-feat__desc { display: none; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .8); }

@media (min-width: 640px) {
  .hks-feat__desc { display: block; }
  .hks-feat { padding: 18px 20px; }
}

/* Laptop and up: text on the left, lighter photo on the right, four in a row */
@media (min-width: 900px) {
  .hks-hero__stage::after {
    background:
      linear-gradient(var(--hks-dir), rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .4) 45%, rgba(0, 0, 0, .05) 80%),
      linear-gradient(to top, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, 0) 45%);
  }
  .hks-hero__feats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .hks-hero { --r: 22px; }
}

@media (max-width: 639px) {
  .hks-hero__quote { display: none; }
  .hks-hero__actions .hk-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hks-hero__stage.is-pending { animation: none; }
  .hks-hero__img,
  .hks-feat,
  .hks-feat__title i { transition: none; }
}




/* ==========================================================
   Services: shared (rhythm, dividers, text, icon rows)
   New names: hks- classes, s ids. Shared: .hk-container, .hk-eyebrow, .hk-h2, .hk-link, .hka-media
   ========================================================== */
.hks-sc,
.hks-rc,
.hks-mt,
.hks-or {
  --r: 28px;
  --div-pad: clamp(16px, 3vw, 32px);   /* same side padding as .hk-container */
  position: relative;
  padding-block: var(--sec-y);
  background: var(--bg);
  scroll-margin-top: calc(var(--header-h) + 8px);
}
@media (max-width: 1024px) {
  .hks-sc, .hks-rc, .hks-mt, .hks-or { --r: 22px; }
}

/* thin divider at the top, same as Home 1, Home 2 and About */
.hks-sc::before,
.hks-rc::before,
.hks-mt::before,
.hks-or::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  width: min(100% - 2 * var(--div-pad), 1280px - 2 * var(--div-pad));
  height: 1px;
  margin-inline: auto;
  background: var(--border);
  pointer-events: none;
}

.hks-text {
  margin: 0 0 24px;
  max-width: 52ch;
  font-size: clamp(16px, 0.4vw + 15px, 18px);
  line-height: 1.7;
  color: var(--text-muted);
}

/* icon rows: hairlines, no cards */
.hks-rows {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.hks-rows li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-block: 18px;
  border-top: 1px solid var(--border);
}
.hks-rows li:last-child { border-bottom: 1px solid var(--border); }
.hks-rows__i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 16px;
}
.hks-rows strong { display: block; margin-bottom: 2px; font-size: 17px; font-weight: 600; }
.hks-rows p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); }

/* ==========================================================
   Services: Tenant screening (photo + checklist)
   ========================================================== */
.hks-sc__grid { display: grid; gap: 32px; align-items: center; }
.hks-sc__media { position: relative; }
.hks-sc__photo { aspect-ratio: 4 / 3; }

.hks-sc__badge {
  position: absolute;
  inset-inline-start: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 28px);
  margin: 0;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.3;
}
[dir="rtl"] .hks-sc__badge { padding: 10px 10px 10px 18px; }
.hks-sc__badge strong { display: block; font-size: 16px; font-weight: 600; }
.hks-sc__badge-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 15px;
}

.hks-sc__copy .hk-h2 { margin-bottom: 16px; }

@media (min-width: 900px) {
  .hks-sc__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); }
  .hks-sc__photo { aspect-ratio: 5 / 6; }
}

/* ==========================================================
   Services: Rent collection (inverted panel, 3 steps)
   ========================================================== */
.hks-rc__panel {
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px);
  border-radius: var(--r);
  background: var(--primary);          /* flips with the theme */
  color: var(--on-primary);
}
.hks-rc__top { display: grid; gap: 28px; margin-bottom: clamp(36px, 5vw, 64px); }

.hks-rc__title {
  margin: 0 0 16px;
  max-width: 18ch;
  font-family: var(--font-heading);
  font-size: clamp(30px, 2.6vw + 14px, 52px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hks-rc__text {
  margin: 0;
  max-width: 480px;
  font-size: clamp(16px, 0.4vw + 15px, 18px);
  line-height: 1.7;
  color: color-mix(in srgb, var(--on-primary) 76%, transparent);
}

.hks-rc__stat { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.hks-rc__num {
  font-family: var(--font-heading);
  font-size: clamp(72px, 11vw, 148px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.hks-rc__label { font-size: 15px; color: color-mix(in srgb, var(--on-primary) 76%, transparent); }

.hks-rc__steps { list-style: none; margin: 0; padding: 0; display: grid; }
.hks-rc__steps li {
  padding-block: 22px 8px;
  border-top: 1px solid color-mix(in srgb, var(--on-primary) 22%, transparent);
}
.hks-rc__n {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid color-mix(in srgb, var(--on-primary) 45%, transparent);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
}
.hks-rc__steps h3 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 0.6vw + 17px, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hks-rc__steps p {
  margin: 0;
  max-width: 34ch;
  line-height: 1.6;
  color: color-mix(in srgb, var(--on-primary) 76%, transparent);
}

@media (min-width: 768px) {
  .hks-rc__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
  .hks-rc__steps li { padding-block: 28px 0; }
}
@media (min-width: 900px) {
  .hks-rc__top { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
  .hks-rc__stat { align-items: flex-end; text-align: end; }
}

/* ==========================================================
   Services: Maintenance (text + three big numbers, no photo)
   ========================================================== */
.hks-mt__grid { display: grid; gap: 36px; }
.hks-mt__copy .hk-h2 { margin-bottom: 16px; }

.hks-mt__nums { list-style: none; margin: 0; padding: 0; display: grid; }
.hks-mt__nums li { padding-block: 24px; border-top: 1px solid var(--border); }
.hks-mt__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(56px, 5.5vw + 12px, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.hks-mt__lb { display: block; margin: 12px 0 6px; font-size: 15px; font-weight: 600; }
.hks-mt__nums p { margin: 0; max-width: 30ch; font-size: 15px; line-height: 1.55; color: var(--text-muted); }

@media (min-width: 768px) {
  .hks-mt__nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hks-mt__nums li {
    padding: 8px clamp(14px, 2.2vw, 30px);
    border-top: 0;
    border-inline-start: 1px solid var(--border);
  }
}
@media (min-width: 900px) {
  .hks-mt__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
}

/* ==========================================================
   Services: Owner reporting (HTML dashboard preview + features)
   ========================================================== */
.hks-or__grid { display: grid; gap: 36px; align-items: center; }
.hks-or__copy .hk-h2 { margin-bottom: 16px; }

.hks-or__demo { margin: 0; }
.hks-or__demo figcaption { margin-top: 12px; font-size: 13.5px; color: var(--text-muted); }

.hks-or__frame {
  padding: clamp(12px, 2vw, 20px);
  border-radius: var(--r);
  background: var(--bg-soft);
}
.hks-dash {
  padding: clamp(16px, 2.4vw, 28px);
  border-radius: calc(var(--r) - 8px);
  background: var(--bg);
  color: var(--text);
}

.hks-dash__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}
.hks-dash__dots { display: flex; gap: 6px; }
.hks-dash__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 18%, transparent);
}
.hks-dash__name { flex: 1; min-width: 0; }
.hks-dash__chip {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12.5px;
}

.hks-dash__kpi { display: grid; gap: 6px; margin-bottom: 22px; }
.hks-dash__lb { font-size: 13.5px; color: var(--text-muted); }
.hks-dash__val {
  font-family: var(--font-heading);
  font-size: clamp(40px, 4vw + 14px, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.hks-dash__delta { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; }

.hks-dash__chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 16px);
  height: 140px;
  margin-bottom: 22px;
}
.hks-dash__col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.hks-dash__fill {
  display: block;
  width: 100%;
  max-width: 40px;
  height: var(--h);
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 14%, transparent);
  transform-origin: bottom;
}
.hks-dash__col:last-child .hks-dash__fill { background: var(--text); }
.hks-dash__col b { font-size: 11.5px; font-weight: 500; color: var(--text-muted); }

.hks-dash__rows { list-style: none; margin: 0; padding: 0; }
.hks-dash__rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
}
.hks-dash__rows li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .hks-or__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); }
}


/* ==========================================================
   Services: Properties (staggered rounded photos, text underneath)
   ========================================================== */
.hks-pr {
  --r: 28px;
  --div-pad: clamp(16px, 3vw, 32px);   /* same side padding as .hk-container */
  position: relative;
  padding-block: var(--sec-y);
  background: var(--bg);
  scroll-margin-top: calc(var(--header-h) + 8px);
}
@media (max-width: 1024px) { .hks-pr { --r: 22px; } }

/* thin divider at the top, same as the other sections */
.hks-pr::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  width: min(100% - 2 * var(--div-pad), 1280px - 2 * var(--div-pad));
  height: 1px;
  margin-inline: auto;
  background: var(--border);
  pointer-events: none;
}

.hks-pr__head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.hks-pr__head .hk-h2 { margin: 0; max-width: 16ch; }
.hks-pr__head .hks-text { margin: 0; }
@media (min-width: 900px) {
  .hks-pr__head { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; gap: 48px; }
}

.hks-pr__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 16px;
  align-items: start;
}
.hks-pr__photo { aspect-ratio: 4 / 5; }

.hks-pr__name {
  margin: 18px 0 4px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 0.6vw + 17px, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hks-pr__item p { margin: 0; max-width: 30ch; font-size: 15px; line-height: 1.55; color: var(--text-muted); }

@media (min-width: 560px) {
  .hks-pr__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .hks-pr__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 28px); }
}

/* closing line with a hairline above */
.hks-pr__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hks-pr__more p { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.6; color: var(--text-muted); }


/* ==========================================================
   Contact: Hero
   ========================================================== */
.hkc-hero {
  --r: 28px;
  padding-block: var(--hero-top) var(--sec-y);
  background: var(--bg);
}

.hkc-hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(460px, 50vw, 600px);
  padding: clamp(24px, 4.5vw, 64px);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r);
  background: var(--bg-soft);
}
.hkc-hero__panel > * { position: relative; z-index: 1; }

/* Big faint envelope in the top corner */
.hkc-hero__panel .hkc-hero__deco {
  position: absolute;
  inset-inline-end: clamp(-60px, -2vw, -20px);
  top: clamp(56px, 6vw, 80px);
  z-index: 0;
  font-size: clamp(170px, 30vw, 420px);
  line-height: 1;
  color: var(--text);
  opacity: .06;
  transform: rotate(-8deg);
  pointer-events: none;
}

/* Breadcrumb */
.hkc-crumbs { margin-bottom: auto; padding-bottom: 32px; }
.hkc-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.hkc-crumbs li + li::before { content: "/"; margin-inline-end: 10px; opacity: .6; }
.hkc-crumbs a { color: var(--text-muted); transition: color .2s ease; }
.hkc-crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.hkc-crumbs a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hkc-crumbs [aria-current="page"] { color: var(--text); }

.hkc-hero .hk-eyebrow { align-self: flex-start; margin-bottom: 20px; background: var(--bg); }

.hkc-hero__title {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: clamp(36px, 7vw + 4px, 96px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--text);
}
.hkc-hero__title span { display: block; }

.hkc-hero__text {
  max-width: 52ch;
  margin: 0;
  font-size: clamp(16px, .5vw + 14px, 18px);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Quick facts */
.hkc-hero__facts {
  display: grid;
  gap: 16px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}
.hkc-hero__facts li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--text-muted); }
.hkc-hero__facts strong { font-weight: 600; color: var(--text); }
.hkc-hero__ico {
  flex: none;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}

@media (min-width: 768px) {
  .hkc-hero__facts { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 24px clamp(32px, 5vw, 72px); }
}

@media (max-width: 767px) {
  .hkc-hero { --r: 22px; }
  .hkc-hero__panel { min-height: 520px; }
}


/* ==========================================================
   Contact: Form section
   ========================================================== */
.hkc-form {
  --r: 28px;
  padding-block: 0 var(--sec-y);
  background: var(--bg);
}

.hkc-form__layout { display: grid; gap: clamp(32px, 5vw, 48px); }

/* Panel */
.hkc-panel {
  padding: clamp(20px, 3.5vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hkc-f__note { margin: 0 0 22px; font-size: 14px; color: var(--text-muted); }
.hkc-req { color: var(--error); }
.hkc-opt { font-weight: 400; color: var(--text-muted); }

.hkc-f__grid { display: grid; gap: 20px; }
.hkc-field { min-width: 0; }
.hkc-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text); }

/* Controls */
.hkc-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hkc-input::placeholder { color: var(--text-muted); opacity: 1; }
.hkc-input:hover { border-color: color-mix(in srgb, var(--text) 32%, var(--border)); }
.hkc-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hkc-input[aria-invalid="true"] { border-color: var(--error); }
textarea.hkc-input { min-height: 150px; resize: vertical; }

.hkc-select { position: relative; }
.hkc-select select { appearance: none; -webkit-appearance: none; padding-inline-end: 48px; cursor: pointer; }
.hkc-select select:has(option[value=""]:checked) { color: var(--text-muted); }
select option { background-color: var(--bg); color: var(--text); }
.hkc-select i {
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.hkc-hint { margin: -2px 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.hkc-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hkc-count { flex: none; margin: 8px 0 0; margin-inline-start: auto; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-muted); }

/* Validation text (red) */
.hkc-err {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 8px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--error);
}
.hkc-err i { margin-top: 2px; }
.hkc-err[hidden] { display: none; }

/* Consent */
.hkc-check { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.hkc-check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--text) 40%, var(--border));
  border-radius: 7px;
  background: var(--bg);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background .2s ease, border-color .2s ease;
}
.hkc-check input:checked {
  border-color: var(--btn-bg);
  background: var(--btn-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hkc-check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hkc-check input[aria-invalid="true"] { border-color: var(--error); }
.hkc-check label { font-size: 15px; color: var(--text); cursor: pointer; }
.hkc-err--check { margin-top: 10px; }

/* Send button */
.hkc-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 24px;
  padding: 17px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, transform .2s ease;
}
.hkc-send:hover:not(:disabled) { background: var(--btn-bg-hover); }
.hkc-send:active:not(:disabled) { transform: scale(.98); }
.hkc-send:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hkc-send:disabled { cursor: progress; opacity: .85; }
.hkc-send__spin { display: none; }
.hkc-send.is-loading .hkc-send__spin { display: inline; }
.hkc-send.is-loading .hkc-send__plane { display: none; }

.hkc-privacy { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--text-muted); }

/* Thank-you state */
.hkc-done { display: flex; flex-direction: column; align-items: center; padding: clamp(24px, 5vw, 56px) 8px; text-align: center; outline: none; }
.hkc-done[hidden] { display: none; }
.hkc-done__ico {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 24px;
}
.hkc-done__title { margin: 0 0 10px; font-family: var(--font-heading); font-size: clamp(26px, 1.4vw + 18px, 34px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.hkc-done__text { max-width: 42ch; margin: 0 0 24px; font-size: 16.5px; line-height: 1.6; color: var(--text-muted); }
.hkc-again {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1.5px solid var(--text);
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
}
.hkc-again:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

/* Right side */
.hkc-aside__text { max-width: 48ch; margin: 0 0 28px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }

.hkc-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg-soft);
}
.hkc-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease; }
.hkc-photo.is-pending {
  background: linear-gradient(110deg, var(--bg-soft) 30%, var(--border) 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hkc-photo.is-pending img { opacity: 0; }

.hkc-points { margin: 24px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--border); }
.hkc-points li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); font-size: 17px; font-weight: 500; color: var(--text); }
.hkc-points i { flex: none; font-size: 20px; }

@media (min-width: 600px) {
  .hkc-f__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hkc-field--full { grid-column: 1 / -1; }
}

@media (min-width: 1025px) {
  .hkc-form__layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
}

@media (max-width: 767px) {
  .hkc-form { --r: 22px; }
  .hkc-photo { aspect-ratio: 5 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  .hkc-input,
  .hkc-send,
  .hkc-check input,
  .hkc-photo img { transition: none; }
}



/* ==========================================================
   Contact: Form fixes (equal columns, photo fill, alert)
   ========================================================== */
.hkc-photo { position: relative; }
.hkc-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Red notice shown above the Send button when validation fails */
.hkc-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--error) 45%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--error) 10%, transparent);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--error);
}
.hkc-alert[hidden] { display: none; }
.hkc-alert i { margin-top: 2px; }

/* Laptop: both columns the same height, photo fills the space */
@media (min-width: 1025px) {
  .hkc-form__layout { align-items: stretch; }

  .hkc-aside { display: flex; flex-direction: column; }

  .hkc-photo {
    flex: 1 1 auto;
    min-height: 260px;
    aspect-ratio: auto;
  }
}


/* ==========================================================
   Contact: Find us (map + address, hours, directions)
   ========================================================== */
.hkc-find {
  --r: 28px;
  --div-pad: clamp(16px, 3vw, 32px);   /* same side padding as .hk-container */
  position: relative;
  padding-block: var(--sec-y);
  background: var(--bg);
  scroll-margin-top: calc(var(--header-h) + 8px);
}
@media (max-width: 1024px) { .hkc-find { --r: 22px; } }

/* thin divider at the top, same as the other sections */
.hkc-find::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  width: min(100% - 2 * var(--div-pad), 1280px - 2 * var(--div-pad));
  height: 1px;
  margin-inline: auto;
  background: var(--border);
  pointer-events: none;
}

.hkc-find__grid { display: grid; gap: 28px; }
.hkc-find__copy { order: -1; }          /* phones: text first, map after */

/* ---------- Map ---------- */
.hkc-map {
  position: relative;
  height: clamp(300px, 78vw, 440px);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r);
  background: var(--bg-soft);
}
.hkc-map.is-pending {
  background: linear-gradient(110deg, var(--bg-soft) 30%, var(--border) 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hkc-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* black and white map to match the site */
  filter: grayscale(1) contrast(1.05);
  transition: opacity .5s ease;
}
[data-theme="dark"] .hkc-map iframe { filter: grayscale(1) invert(1) contrast(.9) brightness(.95); }
.hkc-map.is-pending iframe { opacity: 0; }

.hkc-map__open {
  position: absolute;
  z-index: 2;
  top: 14px;
  inset-inline-start: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  transition: transform .2s ease, opacity .2s ease;
}
.hkc-map__open i { font-size: 12px; }
.hkc-map__open:hover { opacity: .88; }
.hkc-map__open:active { transform: scale(.97); }
.hkc-map__open:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- Text ---------- */
.hkc-find__copy .hk-h2 { margin-bottom: 16px; }
.hkc-find__text {
  margin: 0 0 24px;
  max-width: 52ch;
  font-size: clamp(16px, 0.4vw + 15px, 18px);
  line-height: 1.7;
  color: var(--text-muted);
}

.hkc-info { list-style: none; margin: 0 0 28px; padding: 0; }
.hkc-info > li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-block: 18px;
  border-top: 1px solid var(--border);
}
.hkc-info > li:last-child { border-bottom: 1px solid var(--border); }

.hkc-info__i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 16px;
}
.hkc-info h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.hkc-info p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.hkc-info p + p { margin-top: 4px; }
.hkc-info p strong { font-weight: 600; color: var(--text); }
.hkc-info address { font-style: normal; }

/* Opening hours */
.hkc-hours { list-style: none; margin: 2px 0 0; padding: 0; }
.hkc-hours li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 8px;
  font-size: 15px;
  color: var(--text-muted);
}
.hkc-hours li + li { border-top: 1px dashed var(--border); }
.hkc-hours__day { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.hkc-hours__time { font-variant-numeric: tabular-nums; }

/* "Today" badge: main.js adds .is-today to the right row */
.hkc-hours__badge {
  display: none;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hkc-hours li.is-today .hkc-hours__badge { display: inline-flex; }
.hkc-hours li.is-today .hkc-hours__time { font-weight: 600; color: var(--text); }

.hkc-find__note { margin: 16px 0 0; font-size: 14px; color: var(--text-muted); }
.hkc-find__note a { font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.hkc-find__note a:hover { color: var(--text-muted); }

/* ---------- Tablet / laptop: map left, text right, equal height ---------- */
@media (min-width: 900px) {
  .hkc-find__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 72px);
    align-items: stretch;
  }
  .hkc-find__copy { order: 0; }
  .hkc-map { height: auto; min-height: 520px; }
}

@media (max-width: 520px) {
  .hkc-find__copy .hk-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hkc-map.is-pending { animation: none; }
  .hkc-map iframe,
  .hkc-map__open { transition: none; }
}



/* ==========================================================
   Contact: CTA (inverted panel, text left, two stacked buttons)
   ========================================================== */
.hkc-cta {
  --r: 28px;
  padding-block: var(--sec-y);
  background: var(--bg);
}
@media (max-width: 1024px) { .hkc-cta { --r: 22px; } }

.hkc-cta__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 28px;
  padding: clamp(28px, 4.5vw, 56px) clamp(20px, 4.5vw, 64px);
  border-radius: var(--r);
  background: var(--primary);        /* flips with the theme */
  color: var(--on-primary);
}

/* soft decorative rings in the corner */
.hkc-cta__panel::before,
.hkc-cta__panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--on-primary) 16%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.hkc-cta__panel::before { width: 340px; height: 340px; inset-inline-end: -90px; top: -150px; }
.hkc-cta__panel::after  { width: 200px; height: 200px; inset-inline-end: 20px;  top: -80px; }

.hkc-cta__title {
  margin: 0 0 14px;
  max-width: 22ch;
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.4vw + 16px, 46px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hkc-cta__text {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(15.5px, 0.3vw + 14.5px, 17px);
  line-height: 1.65;
  color: color-mix(in srgb, var(--on-primary) 76%, transparent);
}

/* buttons */
.hkc-cta__actions { display: grid; gap: 12px; align-content: center; }
.hkc-cta__actions .hk-cta { width: 100%; }

.hkc-cta .hkc-cta__call { background: var(--on-primary); color: var(--primary); }
.hkc-cta .hkc-cta__call:hover { background: var(--on-primary); opacity: .85; }
.hkc-cta .hkc-cta__call:hover i { transform: none; }

.hkc-cta .hkc-cta__ghost {
  background: transparent;
  color: var(--on-primary);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on-primary) 45%, transparent);
}
.hkc-cta .hkc-cta__ghost:hover {
  background: color-mix(in srgb, var(--on-primary) 12%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--on-primary);
}
.hkc-cta :focus-visible { outline-color: var(--on-primary); }

/* tablet and up: text left, buttons right */
@media (min-width: 768px) {
  .hkc-cta__panel {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
  }
}


/* ==========================================================
   Log in / Sign up: shared (hkau- prefix)
   Minimal header + one centered card
   ========================================================== */
.hkau-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.hkau {
  --r: 28px;
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: var(--hero-top) var(--sec-y);
  background: var(--bg);
}
.hkau > .hk-container { width: 100%; }
@media (max-width: 1024px) { .hkau { --r: 22px; } }

.hkau__card {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 48px);
  border-radius: var(--r);
  background: var(--bg-soft);
}

/* ---------- Heading ---------- */
.hkau__head { margin-bottom: 28px; text-align: center; }
.hkau__head .hk-eyebrow { gap: 8px; margin-bottom: 18px; background: var(--bg); }
.hkau__head .hk-eyebrow i { font-size: 12px; }

.hkau__title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 2.4vw + 18px, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hkau__title span { color: var(--text-muted); }

.hkau__lead {
  max-width: 40ch;
  margin: 0 auto;
  font-size: clamp(15.5px, 0.3vw + 14.5px, 17px);
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Fields ---------- */
.hkau__fields { display: grid; gap: 20px; }
.hkau__field { min-width: 0; }

.hkau__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.hkau__label { font-size: 14px; font-weight: 600; color: var(--text); }
.hkau__req { color: var(--error); }

.hkau__forgot {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.hkau__forgot:hover { color: var(--text-muted); }

.hkau__control { position: relative; }

.hkau__ico {
  position: absolute;
  inset-inline-start: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.hkau__input {
  width: 100%;
  height: 54px;
  padding-block: 0;
  padding-inline: 48px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hkau__input--pw { padding-inline-end: 56px; }
.hkau__input::placeholder { color: var(--text-muted); opacity: 1; }
.hkau__input:hover { border-color: color-mix(in srgb, var(--text) 32%, var(--border)); }
.hkau__input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hkau__input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 16%, transparent);
}
.hkau__input[aria-invalid="true"]:focus-visible { outline-color: var(--error); }

/* Show / hide password */
.hkau__eye {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  color: var(--text-muted);
  transition: background-color .2s ease, color .2s ease;
}
.hkau__eye:hover { background: var(--bg-soft); color: var(--text); }
.hkau__eye:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.hkau__err {
  margin: 8px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--error);
}
.hkau__err[hidden] { display: none; }

/* ---------- Checkbox ---------- */
.hkau__check { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.hkau__check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--text) 40%, var(--border));
  border-radius: 7px;
  background: var(--bg);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background .2s ease, border-color .2s ease;
}
.hkau__check input:checked {
  border-color: var(--btn-bg);
  background: var(--btn-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hkau__check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hkau__check label { font-size: 15px; color: var(--text); cursor: pointer; }

/* ---------- Submit ---------- */
.hkau__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  margin-top: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s ease, transform .2s ease;
}
.hkau__submit i { font-size: 14px; transition: transform .25s ease; }
.hkau__submit:hover:not(:disabled) { background: var(--btn-bg-hover); }
.hkau__submit:hover:not(:disabled) .hkau__arrow { transform: translateX(4px); }
.hkau__submit:active:not(:disabled) { transform: scale(.98); }
.hkau__submit:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hkau__submit:disabled { cursor: progress; opacity: .85; }
.hkau__spin { display: none; }
.hkau__submit.is-loading .hkau__spin { display: inline; }
.hkau__submit.is-loading .hkau__arrow { display: none; }

/* ---------- Divider + social ---------- */
.hkau__or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 20px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.hkau__or::before,
.hkau__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--text) 14%, transparent);
}

.hkau__social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hkau__sbtn {
  width: 100%;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: background-color .2s ease, transform .2s ease;
}
.hkau__sbtn i { font-size: 16px; }
.hkau__sbtn:hover { background: var(--border); }
.hkau__sbtn:active { transform: scale(.97); }
.hkau__sbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- Switch + back links ---------- */
.hkau__switch { margin: 24px 0 0; text-align: center; font-size: 15px; color: var(--text-muted); }
.hkau__switch a {
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.hkau__switch a:hover { color: var(--text-muted); }

.hkau__back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 16px auto 0;
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color .2s ease;
}
.hkau__back:hover { color: var(--text); }

/* ---------- Success state ---------- */
.hkau__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 4vw, 40px) 0;
  text-align: center;
  outline: none;
}
.hkau__done[hidden] { display: none; }
.hkau__done-ico {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 24px;
}
.hkau__done-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(26px, 1.4vw + 18px, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hkau__done-text { max-width: 38ch; margin: 0 0 24px; font-size: 16.5px; line-height: 1.6; color: var(--text-muted); }
.hkau__again {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0 0 4px;
  border-bottom: 1.5px solid var(--text);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.hkau__again:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

@media (max-width: 380px) {
  .hkau__social { gap: 8px; }
  .hkau__sbtn { gap: 8px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hkau__input,
  .hkau__submit,
  .hkau__submit i,
  .hkau__sbtn,
  .hkau__check input { transition: none; }
}


/* ---------- Sign up extras (hkau-) ---------- */

/* Email + phone side by side from large phones up */
.hkau__two { display: grid; gap: 20px; }
@media (min-width: 560px) {
  .hkau__two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Password strength bar */
.hkau__meter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}
.hkau__meter span {
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 14%, transparent);
  transition: background-color .3s ease;
}
.hkau__meter[data-level="1"] span:nth-child(-n+1) { background: var(--error); }
.hkau__meter[data-level="2"] span:nth-child(-n+2) { background: color-mix(in srgb, var(--text) 55%, transparent); }
.hkau__meter[data-level="3"] span:nth-child(-n+3),
.hkau__meter[data-level="4"] span { background: var(--text); }

.hkau__hint { margin: 8px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--text-muted); }

/* Terms checkbox: text can wrap, links stay readable */
.hkau__check--terms { align-items: flex-start; }
.hkau__check--terms input { margin-top: 1px; }
.hkau__check--terms label { font-size: 14.5px; line-height: 1.5; }
.hkau__check--terms a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.hkau__check--terms a:hover { color: var(--text-muted); }
.hkau__err--check { margin-top: 10px; }
.hkau__check input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 22%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .hkau__meter span { transition: none; }
}


/* ==========================================================
   404 page (hkn- prefix)
   ========================================================== */
.hkn {
  --r: 28px;
  padding-block: var(--sec-y);
  background: var(--bg);
}
@media (max-width: 1024px) { .hkn { --r: 22px; } }

.hkn__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: clamp(520px, calc(100svh - var(--header-h) - 120px), 720px);
  justify-content: center;
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r);
  background: var(--bg-soft);
  text-align: center;
}

/* Big outlined key in the corner (same idea as the About closing panel) */
.hkn__key {
  position: absolute;
  inset-inline-end: -3%;
  top: 50%;
  z-index: -1;
  font-size: clamp(200px, 32vw, 420px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--text) 16%, transparent);
  transform: translateY(-50%) rotate(-28deg);
  pointer-events: none;
}

.hkn__panel .hk-eyebrow { margin-bottom: 8px; background: var(--bg); }

/* Huge outlined "404" */
.hkn__code {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(120px, 24vw, 280px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--text) 55%, transparent);
  user-select: none;
}

.hkn__title {
  margin: 0 0 14px;
  max-width: 18ch;
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.4vw + 16px, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hkn__text {
  max-width: 44ch;
  margin: 0 0 28px;
  font-size: clamp(15.5px, 0.3vw + 14.5px, 17px);
  line-height: 1.65;
  color: var(--text-muted);
}

.hkn__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
}

/* Quick links */
.hkn__nav { margin-top: clamp(28px, 4vw, 44px); }
.hkn__nav-label { margin: 0 0 14px; font-size: 13.5px; color: var(--text-muted); }

.hkn__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hkn__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  transition: background-color .2s ease, transform .2s ease;
}
.hkn__links i { font-size: 14px; color: var(--text-muted); }
.hkn__links a:hover { background: var(--border); }
.hkn__links a:active { transform: scale(.97); }
.hkn__links a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

@media (max-width: 520px) {
  .hkn__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hkn__actions .hk-cta { width: 100%; }
  .hkn__actions .hk-link { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hkn__links a { transition: none; }
}







/* ==========================================================
   Section rhythm (Home 1, Home 2, About)
   Same padding above and below every section.
   Space between two sections = 2 x --sec-y.
   Change --sec-y in theme.css to tune the whole site.
   ========================================================== */

/* Heroes: a little less space under the sticky header */
.hk-hero,
.hk2-hero,
.hk3-hero {
  padding-block: var(--hero-top) var(--sec-y);
}

/* Every other section */
.hk-about,
.hk-services,
.hk-props,
.hk-how,
.hk-why,
.hk-faq,
.hk-final,
.hk2-about,
.hk2-svc,
.hk2-ow,
.hk2-strip,
.hk2-pr,
.hk2-tm,
.hk2-cta,
.hka-tale,
.hka-hs,
.hka-team,
.hka-cta {
  padding-block: var(--sec-y);
}

/* ==========================================================
   Section dividers (Home 1 and Home 2)
   A thin line at the top of a section, as wide as the content.
   The padding above and below it stays equal (--sec-y).
   ========================================================== */
.hk-services,
.hk-props,
.hk-how,
.hk-why,
.hk-faq,
.hk2-svc,
.hk2-ow,
.hk2-strip,
.hk2-pr,
.hk2-tm {
  --div-pad: clamp(16px, 3vw, 32px);   /* same side padding as .hk-container */
  position: relative;
}

.hk-services::before,
.hk-props::before,
.hk-how::before,
.hk-why::before,
.hk-faq::before,
.hk2-svc::before,
.hk2-ow::before,
.hk2-strip::before,
.hk2-pr::before,
.hk2-tm::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  width: min(100% - 2 * var(--div-pad), 1280px - 2 * var(--div-pad));
  height: 1px;
  margin-inline: auto;
  background: var(--border);
  pointer-events: none;
}

/* ==========================================================
   About page dividers: same style as Home 1 and Home 2
   (replaces the old full-width border-top lines)
   ========================================================== */
.hka-tale,
.hka-hs,
.hka-team {
  --div-pad: clamp(16px, 3vw, 32px);   /* same side padding as .hk-container */
  position: relative;
  border-top: 0;
}

.hka-tale::before,
.hka-hs::before,
.hka-team::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  width: min(100% - 2 * var(--div-pad), 1280px - 2 * var(--div-pad));
  height: 1px;
  margin-inline: auto;
  background: var(--border);
  pointer-events: none;
}


/* Properties mosaic: carry its own radius so the tiles stay rounded on any page */
.hk-mosaic { --r: 28px; }
@media (max-width: 1024px) {
  .hk-mosaic { --r: 22px; }
}
.hk-tile { border-radius: calc(var(--r, 28px) - 6px); }
.hk-props[id] { scroll-margin-top: calc(var(--header-h) + 8px); }


/* ==========================================================
   Services hero: service links on phones (one aligned column)
   ========================================================== */
.hks-feat__title i { flex-shrink: 0; }

@media (max-width: 639px) {
  .hks-hero__feats {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px;
  }

  /* hairline between rows */
  .hks-hero__feats li + li { border-top: 1px solid rgba(255, 255, 255, .16); }

  .hks-feat {
    flex-direction: row;
    align-items: center;
    min-height: 54px;
    padding: 12px 14px;
  }

  .hks-feat__title {
    width: 100%;
    font-size: 16px;
    line-height: 1.3;
  }

  /* arrow in a small circle, always at the end edge */
  .hks-feat__title i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    font-size: 12px;
  }
}

/* Tenant screening: equal columns, photo as tall as the text */
@media (min-width: 900px) {
  .hks-sc__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .hks-sc__media { display: flex; }
  .hks-sc__photo {
    flex: 1;
    aspect-ratio: auto;
    min-height: 480px;
  }
}

/* Owner reporting: equal columns, dashboard as tall as the text */
@media (min-width: 900px) {
  .hks-or__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .hks-or__demo {
    display: flex;
    flex-direction: column;
  }
  .hks-or__frame {
    flex: 1;
    display: flex;
  }
  .hks-dash {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* the chart takes the spare height */
  .hks-dash__chart {
    flex: 1;
    height: auto;
    min-height: 140px;
    grid-template-rows: 1fr;
  }
}


/* Rent collection: step lines that can draw, and a "done" state for each step */
.hks-rc__steps li {
  position: relative;
  border-top-color: transparent;    /* the lines below replace the border */
}
.hks-rc__steps li::before,
.hks-rc__steps li::after {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 1px;
  transform-origin: left center;
}
.hks-rc__steps li::before { background: color-mix(in srgb, var(--on-primary) 22%, transparent); }
.hks-rc__steps li::after  { background: var(--on-primary); transform: scaleX(var(--p, 1)); }
[dir="rtl"] .hks-rc__steps li::after { transform-origin: right center; }

.hks-rc__n { transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
.hks-rc__steps li.is-done .hks-rc__n {
  background: var(--on-primary);
  border-color: var(--on-primary);
  color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  .hks-rc__n { transition: none; }
}


/* Maintenance: dividers that can draw, and numbers sized to fit their columns */
.hks-mt__nums li {
  position: relative;
  border-color: transparent;       /* the drawn line below replaces the border */
}
.hks-mt__nums li::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  background: var(--border);
  transform: scaleX(var(--p, 1));
  transform-origin: left center;
}
[dir="rtl"] .hks-mt__nums li::before { transform-origin: right center; }

@media (min-width: 768px) {
  .hks-mt__nums li::before {
    width: 1px;
    height: 100%;
    transform: scaleY(var(--p, 1));
    transform-origin: center top;
  }
  [dir="rtl"] .hks-mt__nums li::before { transform-origin: center top; }
}

/* number sizes: no more "$500" touching the edge */
.hks-mt__num { font-size: clamp(52px, 12vw, 80px); }
@media (min-width: 768px) and (max-width: 899px) {
  .hks-mt__num { font-size: 68px; }
}
@media (min-width: 900px) {
  .hks-mt__num { font-size: clamp(44px, 4vw + 14px, 76px); }
}


/* Contact form: validation look (red border + red message under the field) */
.hkc-input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 16%, transparent);
}
.hkc-input[aria-invalid="true"]:focus-visible { outline-color: var(--error); }

.hkc-check input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 22%, transparent);
}

.hkc-alert { display: none !important; }



/* ==========================================================
   Dashboards: shared shell (hkd- prefix)
   Sidebar + top bar + switchable views
   Desktop: 1025px and up | Slide-in menu: 1024px and below
   ========================================================== */
.hkd {
  --r: 28px;
  display: grid;
  grid-template-columns: clamp(264px, 24vw, 300px) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
}
@media (max-width: 1024px) { .hkd { --r: 22px; } }

body.hkd-lock { overflow: hidden; }

/* ---------- Sidebar ---------- */
.hkd__side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100svh;
  padding: 12px;
}

.hkd__panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 16px 16px;
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hkd__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 4px;
}
.hkd__close { display: none; }

/* Profile card */
.hkd__prof {
  padding: 16px;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg);
}
.hkd__who { display: flex; align-items: center; gap: 12px; }
.hkd__avatar {
  flex: none;
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.hkd__who-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hkd__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hkd__role { font-size: 13.5px; color: var(--text-muted); }

.hkd__stat { display: grid; gap: 4px; margin: 16px 0 0; }
.hkd__stat-num {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hkd__stat-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Menu */
.hkd__nav {
  flex: 1;
  min-height: 0;
  margin-inline: -4px;
  padding-inline: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.hkd__label {
  margin: 0 0 10px;
  padding-inline: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hkd__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }

.hkd__link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 999px;
  text-align: start;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-muted);
  transition: background-color .2s ease, color .2s ease;
}
.hkd__link i { flex: none; width: 20px; font-size: 16px; text-align: center; }
.hkd__link-text { flex: 1; min-width: 0; }
.hkd__link:hover { background: var(--bg); color: var(--text); }
.hkd__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.hkd__link.is-active { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.hkd__link.is-active:hover { background: var(--primary); color: var(--on-primary); }
.hkd__link.is-active:focus-visible { outline-offset: 3px; }

/* Notification badge (stays visible on every state) */
.hkd__badge {
  flex: none;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding-inline: 7px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s ease, color .2s ease;
}
.hkd__link.is-active .hkd__badge { background: var(--on-primary); color: var(--primary); }

/* Bottom buttons */
.hkd__foot { display: grid; gap: 10px; }
.hkd__fbtn {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: background-color .2s ease, transform .2s ease;
}
.hkd__fbtn i { font-size: 15px; }
.hkd__fbtn:hover { background: var(--border); }
.hkd__fbtn:active { transform: scale(.97); }
.hkd__fbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- Main column + top bar ---------- */
.hkd__main { min-width: 0; }

.hkd__top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding-inline: clamp(16px, 3vw, 32px);
  background: var(--bg);
  transition: box-shadow .3s ease;
}
.hkd__top.is-scrolled { box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.28); }

.hkd__burger { display: none; flex: none; }

.hkd__heading { min-width: 0; }
.hkd__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(20px, 0.8vw + 17px, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hkd__sub {
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hkd__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; flex: none; }

.hkd__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding-inline: 20px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .25s ease, transform .2s ease;
}
.hkd__logout i { font-size: 14px; }
.hkd__logout:hover { background: var(--btn-bg-hover); }
.hkd__logout:active { transform: scale(.97); }
.hkd__logout:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- Content + views ---------- */
.hkd__content {
  width: 100%;
  max-width: 1280px;
  padding: clamp(8px, 1.6vw, 16px) clamp(16px, 3vw, 32px) clamp(32px, 5vw, 56px);
  outline: 0;
}

.hkd-view { outline: 0; }
.hkd-view[hidden] { display: none; }
.hkd-view:not([hidden]) { animation: hkd-in .35s ease; }
@keyframes hkd-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Temporary placeholder panel (replaced section by section) */
.hkd-ph {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: clamp(320px, 52vh, 520px);
  padding: 32px 20px;
  border-radius: var(--r);
  background: var(--bg-soft);
  text-align: center;
}
.hkd-ph__ico {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  font-size: 22px;
}
.hkd-ph__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 1.2vw + 18px, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hkd-ph__text { margin: 0; font-size: 16px; color: var(--text-muted); }

/* ---------- Tablet and phone: slide-in menu ---------- */
.hkd__overlay { display: none; }

@media (max-width: 1023px) {
  .hkd { grid-template-columns: minmax(0, 1fr); }

  .hkd__side {
    --hkd-x: -105%;                 /* rtl.css flips this */
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    z-index: 1100;
    width: min(88vw, 320px);
    height: 100vh;
    height: 100dvh;
    visibility: hidden;
    transform: translateX(var(--hkd-x));
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  .hkd__side.is-open { visibility: visible; transform: none; transition-delay: 0s; }

  .hkd__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .hkd__overlay.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

  .hkd__burger,
  .hkd__close { display: inline-grid; }
}

@media (max-width: 560px) {
  .hkd__sub { display: none; }
  .hkd__top { gap: 12px; }
  .hkd__actions { gap: 8px; }
  .hkd__logout { width: 40px; padding: 0; }
  .hkd__logout-text { display: none; }
}

@media (max-width: 767px) {
  [dir="rtl"] .hkd--user { overflow-x: clip; }
  [dir="rtl"] .hkd--user .hkd__main { padding-top: var(--header-h); }
  [dir="rtl"] .hkd--user .hkd__top {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hkd__side,
  .hkd__overlay,
  .hkd__link,
  .hkd__badge,
  .hkd__fbtn,
  .hkd__logout,
  .hkd__top { transition: none; }
  .hkd-view:not([hidden]) { animation: none; }
}


/* ==========================================================
   User dashboard: Overview (hkdu- prefix)
   ========================================================== */
.hkdu-ov { display: grid; gap: 16px; }

/* ---------- Hero ---------- */
.hkdu-hero {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 48px);
  border-radius: var(--r);
  background: var(--bg-soft);
}
.hkdu-hero__eyebrow {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hkdu-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 2vw + 20px, 50px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hkdu-hero__title span { color: var(--text-muted); }
.hkdu-hero__text {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(15.5px, 0.3vw + 14.5px, 17px);
  line-height: 1.65;
  color: var(--text-muted);
}
.hkdu-hero__text strong { font-weight: 600; color: var(--text); }
.hkdu-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 26px;
}

/* Ring card */
.hkdu-hero__card {
  display: grid;
  gap: 20px;
  padding: 22px;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg);
}
.hkdu-hero__top { display: flex; align-items: center; gap: 20px; }

.hkdu-ring {
  position: relative;
  flex: none;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), color-mix(in srgb, var(--text) 14%, transparent) 0);
}
.hkdu-ring::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--bg);
}
.hkdu-ring__num {
  position: relative;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hkdu-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hkdu-live__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.hkdu-hero__big {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(34px, 1.6vw + 24px, 46px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hkdu-hero__lb { margin: 6px 0 0; font-size: 14px; color: var(--text-muted); }

.hkdu-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.hkdu-hero__facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.hkdu-hero__facts i { font-size: 14px; color: var(--text-muted); }

/* ---------- Key numbers ---------- */
.hkdu-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hkdu-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg-soft);
}
.hkdu-stat__ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 16px;
}
.hkdu-stat__lb { font-size: 14px; color: var(--text-muted); }
.hkdu-stat__num {
  max-width: 100%;
  font-family: var(--font-heading);
  font-size: clamp(26px, 1.2vw + 18px, 36px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hkdu-pill {
  max-width: 100%;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Highlighted tile (inverted, flips with the theme) */
.hkdu-stat--hl { background: var(--primary); color: var(--on-primary); }
.hkdu-stat--hl .hkdu-stat__ico { background: color-mix(in srgb, var(--on-primary) 16%, transparent); color: var(--on-primary); }
.hkdu-stat--hl .hkdu-stat__lb { color: color-mix(in srgb, var(--on-primary) 76%, transparent); }
.hkdu-stat--hl .hkdu-pill { background: color-mix(in srgb, var(--on-primary) 16%, transparent); color: var(--on-primary); }

/* ---------- Panels ---------- */
.hkdu-two { display: grid; gap: 16px; }

.hkdu-panel {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--r);
  background: var(--bg-soft);
}
.hkdu-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.hkdu-panel__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(18px, 0.5vw + 16px, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hkdu-panel__title i { font-size: 16px; color: var(--text-muted); }
.hkdu-panel--payments { display: flex; flex-direction: column; }
.hkdu-panel--payments .hkdu-rows { flex: 1; grid-auto-rows: minmax(0, 1fr); }
.hkdu-panel--payments .hkdu-tag { width: 78px; height: 24px; justify-content: center; padding-inline: 8px; }

.hkdu-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: gap .25s ease, color .25s ease;
}
.hkdu-more i { font-size: 12px; }
.hkdu-more:hover { gap: 12px; color: var(--text-muted); }
.hkdu-more:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

/* ---------- Rows ---------- */
.hkdu-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hkdu-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: calc(var(--r) - 10px);
  background: var(--bg);
}
.hkdu-row__ico {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 16px;
}
.hkdu-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--text-muted);
}
.hkdu-row__main strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.hkdu-row__main strong,
.hkdu-row__main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hkdu-row__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hkdu-amt { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

.hkdu-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}
.hkdu-tag--ok { background: var(--primary); color: var(--on-primary); }

/* ---------- Next inspection ---------- */
.hkdu-insp { display: flex; flex-direction: column; }
.hkdu-insp .hkdu-tag { background: var(--bg); }
.hkdu-insp__photo { aspect-ratio: 16 / 10; margin-bottom: 18px; border-radius: calc(var(--r) - 6px); }
.hkdu-insp__name {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 0.8vw + 18px, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hkdu-insp__when { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.hkdu-insp__text { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.hkdu-insp__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: auto; }

.hkdu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding-inline: 20px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .25s ease, transform .2s ease;
}
.hkdu-btn:hover { background: var(--btn-bg-hover); }
.hkdu-btn:active { transform: scale(.97); }
.hkdu-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- Photos (skeleton while loading) ---------- */
.hkdu-photo { position: relative; margin: 0; overflow: hidden; isolation: isolate; background: var(--bg); }
.hkdu-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s ease, scale .7s ease;
}
.hkdu-photo.is-pending {
  background: linear-gradient(110deg, var(--bg) 30%, var(--border) 50%, var(--bg) 70%);
  background-size: 200% 100%;
  animation: hk-shimmer 1.6s linear infinite;
}
.hkdu-photo.is-pending img { opacity: 0; }

/* ---------- Property tiles ---------- */
.hkdu-props { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hkdu-prop {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg);
}
.hkdu-prop .hkdu-photo { position: absolute; inset: 0; }
.hkdu-prop:hover .hkdu-photo img { scale: 1.05; }

.hkdu-prop__tag { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; background: var(--bg); }
.hkdu-prop__cap {
  position: absolute;
  z-index: 2;
  inset-inline-start: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 9px 16px;
  border-radius: 18px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.3;
  transition: transform .3s ease;
}
.hkdu-prop:hover .hkdu-prop__cap { transform: translateY(-3px); }
.hkdu-prop__cap strong { font-size: 14.5px; font-weight: 600; }
.hkdu-prop__cap span { font-size: 12.5px; color: var(--text-muted); }
.hkdu-prop__cap strong,
.hkdu-prop__cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .hkdu-props { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hkdu-prop { aspect-ratio: 4 / 5; }
}

@media (min-width: 1280px) {
  .hkdu-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 40px; }
  .hkdu-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hkdu-two--wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

@media (max-width: 759px) {
  .hkdu-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .hkdu-hero__actions { flex-direction: column; align-items: stretch; }
  .hkdu-hero__actions .hk-cta { width: 100%; }
  .hkdu-hero__actions .hk-link { align-self: center; }
}

@media (max-width: 440px) {
  .hkdu-row { padding: 12px 14px; }
  .hkdu-row__ico { display: none; }
  .hkdu-hero__top { gap: 16px; }
  .hkdu-ring { width: 92px; height: 92px; }
  .hkdu-ring::before { inset: 10px; }
  .hkdu-ring__num { font-size: 20px; }
}

@media (max-width: 359px) {
  .hkd--user .hkd__content { padding-inline: 12px; }
  .hkdu-stats { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .hkdu-more,
  .hkdu-btn,
  .hkdu-prop__cap,
  .hkdu-photo img { transition: none; }
  .hkdu-photo.is-pending { animation: none; }
}



/* =========================================================
   HAVENKEY USER DASHBOARD — MY PROPERTIES
   ========================================================= */

.hkdup-properties {
  display: block;
  min-width: 0;
}

.hkdup-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.hkdup-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

.hkdup-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.hkdup-description {
  max-width: 540px;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.hkdup-count,
.hkdup-list-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.hkdup-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.hkdup-summary__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hkdup-summary__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 16px;
}

.hkdup-summary__item > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.hkdup-summary__label {
  color: var(--text-muted);
  font-size: 12px;
}

.hkdup-summary__item strong {
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.hkdup-summary__item strong small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.hkdup-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.hkdup-list-head h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.hkdup-list-head p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.hkdup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.hkdup-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hkdup-card__photo {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg);
}

.hkdup-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .4s ease;
}

.hkdup-card:hover .hkdup-card__photo img {
  transform: scale(1.045);
}

.hkdup-status {
  position: absolute;
  z-index: 2;
  top: 13px;
  inset-inline-start: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.hkdup-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43865d;
}

.hkdup-photo-label {
  position: absolute;
  z-index: 2;
  inset-inline-end: 13px;
  bottom: 13px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hkdup-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.hkdup-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 57px;
}

.hkdup-card__top h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.hkdup-card__top p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.hkdup-card__top p i {
  font-size: 11px;
}

.hkdup-card__type {
  flex: none;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

.hkdup-card__rent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 0;
  border-top: 0;
  border-bottom: 0;
  background: transparent;
}

.hkdup-card__rent > div {
  display: grid;
  gap: 5px;
}

.hkdup-card__rent > div > span {
  color: var(--text-muted);
  font-size: 12px;
}

.hkdup-card__rent strong {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.hkdup-card__rent strong small {
  margin-inline-start: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.hkdup-rent-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}

.hkdup-card__tenant {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 13px;
  border-radius: calc(var(--r) - 10px);
  background: var(--bg);
}

.hkdup-avatar {
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.hkdup-card__tenant > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.hkdup-card__tenant > div > span {
  color: var(--text-muted);
  font-size: 10px;
}

.hkdup-card__tenant > div > strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hkdup-card__tenant > i {
  flex: none;
  color: var(--text-muted);
  font-size: 14px;
}

.hkdup-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.hkdup-note i {
  margin-top: 3px;
}

/* Tablet */
@media (max-width: 1023px) {
  .hkdup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hkdup-summary__item {
    padding: 16px;
  }

  .hkdup-card__body {
    padding: 17px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hkdup-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hkdup-summary {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 28px;
  }

  .hkdup-summary__item {
    padding: 14px 16px;
  }

  .hkdup-summary__icon {
    width: 40px;
    height: 40px;
  }

  .hkdup-summary__item > div {
    flex: 1;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .hkdup-summary__item strong {
    font-size: 20px;
  }

  .hkdup-list-head {
    align-items: flex-start;
  }

  .hkdup-list-head h3 {
    font-size: 19px;
  }

  .hkdup-list-count {
    padding: 8px 10px;
    font-size: 10px;
  }

  .hkdup-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .hkdup-card__photo {
    aspect-ratio: 16 / 9;
  }

  .hkdup-card__body {
    padding: 18px;
  }

  .hkdup-card__top h3 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hkdup-card__photo img {
    transition: none;
  }
}



/* =========================================================
   HAVENKEY — USER DASHBOARD / STATEMENTS
   ========================================================= */

.hkds {
  min-width: 0;
  color: var(--text);
}

.hkds__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.hkds__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

.hkds__heading {
  margin: 0;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.2;
}

.hkds__description {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.hkds__count {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 600;
}

.hkds__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.hkds__metric {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 13px;
  row-gap: 7px;
  padding: 20px;
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hkds__metric-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 15px;
}

.hkds__metric-label {
  color: var(--text-muted);
  font-size: 12px;
}

.hkds__metric strong {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hkds__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}

.hkds__toolbar-copy h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.hkds__toolbar-copy p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.hkds__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.hkds__search,
.hkds__filter {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--bg-soft);
}

.hkds__search {
  min-width: 220px;
}

.hkds__search i {
  color: var(--text-muted);
  font-size: 12px;
}

.hkds__search input,
.hkds__filter select {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.hkds__search input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.hkds__filter select {
  cursor: pointer;
}

.hkds__search:focus-within,
.hkds__filter:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.hkds__table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--r);
  background: var(--bg-soft);
  scrollbar-width: thin;
}

.hkds__table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
  text-align: start;
}

.hkds__table th {
  padding: 17px 18px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-align: start;
  white-space: nowrap;
}

.hkds__table td {
  padding: 17px 18px;
  font-size: 12px;
  vertical-align: middle;
}

.hkds__table tbody tr {
  transition: background-color .2s ease;
}

.hkds__table tbody tr:hover {
  background: var(--bg);
}

.hkds__table tbody tr + tr td {
  border-top: 0;
}

.hkds__table td time {
  color: var(--text-muted);
  white-space: nowrap;
}

.hkds__ref,
.hkds__period {
  display: block;
}

.hkds__ref {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.hkds__period {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 11px;
}

.hkds__property {
  font-weight: 500;
  white-space: nowrap;
}

.hkds__amount {
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hkds__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.hkds__status--paid::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: #43865d;
}

.hkds__status--pending::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: #b58a37;
}

.hkds__empty {
  padding: 28px 16px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.hkds__empty i {
  margin-inline-end: 7px;
}

.hkds__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 11px;
}

@media (max-width: 1023px) {
  .hkds__summary {
    gap: 9px;
  }

  .hkds__metric {
    padding: 16px;
    column-gap: 10px;
  }

  .hkds__metric-icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 600px) {
  .hkds__intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hkds__summary {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 28px;
  }

  .hkds__metric {
    grid-template-columns: 40px 1fr auto;
    grid-template-rows: auto;
    padding: 14px 16px;
  }

  .hkds__metric-icon {
    grid-row: auto;
  }

  .hkds__metric-label {
    grid-column: 2;
  }

  .hkds__metric strong {
    grid-column: 3;
    grid-row: 1;
    font-size: 21px;
  }

  .hkds__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hkds__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(115px, auto);
  }

  .hkds__search {
    min-width: 0;
  }

  .hkds__table-wrap {
    border-radius: calc(var(--r) - 6px);
  }

  .hkds__foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hkds__table tbody tr {
    transition: none;
  }
}



/* =========================================================
   HAVENKEY USER DASHBOARD — REPAIRS
   ========================================================= */

.hkdr {
  min-width: 0;
  color: var(--text);
}

.hkdr__intro,
.hkdr__toolbar,
.hkdr__form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hkdr__intro {
  align-items: flex-end;
  margin-bottom: 26px;
}

.hkdr__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

.hkdr__heading {
  margin: 0;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.2;
}

.hkdr__description {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.hkdr__primary,
.hkdr__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 19px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s ease, background-color .2s ease;
}

.hkdr__primary {
  background: var(--btn-bg);
  color: #fff;
}

.hkdr__secondary {
  background: var(--bg-soft);
  color: var(--text);
}

.hkdr__primary:hover,
.hkdr__secondary:hover {
  opacity: .8;
}

.hkdr__primary:focus-visible,
.hkdr__secondary:focus-visible,
.hkdr__close:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.hkdr__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.hkdr__metric {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 13px;
  padding: 20px;
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hkdr__metric-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 15px;
}

.hkdr__metric-label {
  color: var(--text-muted);
  font-size: 12px;
}

.hkdr__metric strong {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.hkdr__toolbar {
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hkdr__toolbar h3,
.hkdr__form-heading h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.hkdr__toolbar > div:first-child > p,
.hkdr__form-heading > div > p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.hkdr__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hkdr__search,
.hkdr__filter {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--bg-soft);
}

.hkdr__search {
  min-width: 205px;
}

.hkdr__search i {
  color: var(--text-muted);
  font-size: 12px;
}

.hkdr__search input,
.hkdr__filter select {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.hkdr__search input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.hkdr__filter select {
  cursor: pointer;
}

.hkdr__search:focus-within,
.hkdr__filter:focus-within,
.hkdr__field input:focus,
.hkdr__field select:focus,
.hkdr__field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.hkdr__list {
  display: grid;
  gap: 10px;
}

.hkdr__request {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  min-width: 0;
  padding: 21px;
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hkdr__request-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 17px;
}

.hkdr__request-main {
  flex: 1;
  min-width: 0;
}

.hkdr__request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.hkdr__id {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.hkdr__status,
.hkdr__priority {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 10px;
  font-weight: 600;
}

.hkdr__status::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.hkdr__status--pending {
  color: #b58a37;
}

.hkdr__status--progress {
  color: var(--text);
}

.hkdr__status--completed {
  color: #43865d;
}

.hkdr__request-main h4 {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.hkdr__property {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.hkdr__description-small {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}

.hkdr__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 15px;
}

.hkdr__meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 11px;
}

.hkdr__priority {
  color: var(--text-muted);
}

.hkdr__priority--high {
  color: #b58a37;
}

.hkdr__empty,
.hkdr__note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.hkdr__empty {
  padding: 24px 12px;
  text-align: center;
}

.hkdr__note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0 0;
}

.hkdr__note i {
  margin-top: 3px;
}

/* Repair form */

.hkdr__form-wrap {
  margin-top: 26px;
  padding: 25px;
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hkdr__form-heading {
  align-items: flex-start;
  margin-bottom: 24px;
}

.hkdr__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}

.hkdr__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hkdr__field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
}

.hkdr__field > span > b {
  color: #b58a37;
}

.hkdr__field--full {
  grid-column: 1 / -1;
}

.hkdr__field input,
.hkdr__field select,
.hkdr__field textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 0;
  border-radius: calc(var(--r) - 12px);
  outline: 1px solid transparent;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
}

.hkdr__field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.hkdr__field input::placeholder,
.hkdr__field textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.hkdr__field small {
  min-height: 0;
  color: #b94b4b;
  font-size: 11px;
  font-weight: 400;
}

.hkdr__field small:empty {
  display: none;
}

.hkdr__field [aria-invalid="true"] {
  outline: 1px solid #b94b4b;
}

.hkdr__form-message {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-radius: calc(var(--r) - 12px);
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
}

.hkdr__form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hkdr [hidden] {
  display: none !important;
}

@media (max-width: 1023px) {
  .hkdr__metric {
    padding: 16px;
    gap: 6px 10px;
  }

  .hkdr__metric-icon {
    width: 36px;
    height: 36px;
  }

  .hkdr__request {
    padding: 18px;
  }
}

@media (max-width: 600px) {
  .hkdr__intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .hkdr__summary {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 28px;
  }

  .hkdr__metric {
    grid-template-columns: 40px 1fr auto;
    grid-template-rows: auto;
    padding: 14px 16px;
  }

  .hkdr__metric-icon {
    grid-row: auto;
  }

  .hkdr__metric strong {
    font-size: 21px;
  }

  .hkdr__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hkdr__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  }

  .hkdr__search {
    min-width: 0;
  }

  .hkdr__request {
    gap: 12px;
    padding: 15px;
    border-radius: calc(var(--r) - 6px);
  }

  .hkdr__request-icon {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .hkdr__request-main h4 {
    font-size: 14px;
  }

  .hkdr__form-wrap {
    padding: 18px;
  }

  .hkdr__form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .hkdr__field--full {
    grid-column: auto;
  }

  .hkdr__form-actions {
    flex-direction: column-reverse;
  }

  .hkdr__form-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hkdr__primary,
  .hkdr__secondary {
    transition: none;
  }
}


/* =========================================================
   HAVENKEY USER DASHBOARD — DOCUMENTS
========================================================= */

.hkddoc {
  color: var(--text);
  width: 100%;
  min-width: 0;
}

.hkddoc [hidden] {
  display: none !important;
}

.hkddoc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.hkddoc-eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hkddoc-head h2 {
  margin: 0 0 8px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 650;
}

.hkddoc-head p,
.hkddoc-summary p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.hkddoc-total {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  padding: 13px 17px;
  border-radius: var(--r);
  background: var(--bg-soft);
  font-size: 13px;
}

.hkddoc-total > i {
  font-size: 19px;
}

.hkddoc-total strong {
  font-size: 17px;
  margin-right: 3px;
}

.hkddoc-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hkddoc-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}

.hkddoc-search > i {
  color: var(--text-muted);
  font-size: 14px;
}

.hkddoc-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.hkddoc-search input::placeholder {
  color: var(--text-muted);
}

.hkddoc-filter-label {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.hkddoc-toolbar select {
  min-height: 48px;
  max-width: 220px;
  padding: 0 35px 0 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.hkddoc-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hkddoc-summary-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--bg);
  font-size: 18px;
}

.hkddoc-summary strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.hkddoc-summary p {
  font-size: 12px;
}

.hkddoc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hkddoc-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--r);
  background: var(--bg-soft);
  transition: background .2s ease, transform .2s ease;
}

.hkddoc-item:hover {
  transform: translateY(-1px);
}

.hkddoc-file-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 15px;
  background: var(--bg);
  font-size: 21px;
}

.hkddoc-file-icon--lease {
  color: #a06b6b;
}

.hkddoc-file-icon--receipt {
  color: #648b75;
}

.hkddoc-file-icon--inspection {
  color: #a17c4f;
}

.hkddoc-file-icon--property {
  color: #7186a0;
}

.hkddoc-info {
  min-width: 0;
}

.hkddoc-info h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hkddoc-info > p {
  margin: 0 0 9px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.hkddoc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.hkddoc-meta span {
  color: var(--text-muted);
  font-size: 10px;
}

.hkddoc-meta span + span::before {
  content: "·";
  margin-inline-end: 7px;
}

.hkddoc-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.hkddoc-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.hkddoc-action:hover {
  background: var(--btn-bg);
  color: var(--on-primary);
}

.hkddoc-action i {
  font-size: 12px;
}

.hkddoc-empty {
  padding: 42px 20px;
  text-align: center;
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hkddoc-empty > i {
  font-size: 28px;
  color: var(--text-muted);
}

.hkddoc-empty h3 {
  margin: 14px 0 6px;
  font-size: 16px;
}

.hkddoc-empty p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.hkddoc-feedback {
  min-height: 20px;
  margin: 14px 2px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.hkddoc-dialog {
  width: min(460px, calc(100% - 32px));
  max-width: 460px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text);
}

.hkddoc-dialog::backdrop {
  background: rgb(0 0 0 / 55%);
  backdrop-filter: blur(4px);
}

.hkddoc-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.hkddoc-dialog-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
}

.hkddoc-dialog h3 {
  margin: 0 0 20px;
  font-size: 21px;
  line-height: 1.4;
}

.hkddoc-preview {
  padding: 28px 20px;
  border-radius: 20px;
  background: var(--bg-soft);
  text-align: center;
}

.hkddoc-preview > i {
  display: block;
  margin-bottom: 15px;
  font-size: 38px;
}

.hkddoc-preview strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.hkddoc-preview p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.8;
}

.hkddoc-primary {
  width: 100%;
  min-height: 46px;
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.hkddoc button:focus-visible,
.hkddoc input:focus-visible,
.hkddoc select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .hkddoc-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
  }

  .hkddoc-total {
    padding: 10px 14px;
  }

  .hkddoc-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .hkddoc-filter-label {
    margin-top: 3px;
  }

  .hkddoc-toolbar select {
    max-width: none;
    width: 100%;
  }

  .hkddoc-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    padding: 15px;
  }

  .hkddoc-file-icon {
    width: 42px;
    height: 46px;
    border-radius: 13px;
    font-size: 18px;
  }

  .hkddoc-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 4px;
  }

  .hkddoc-action {
    flex: 1;
    min-height: 40px;
  }

  .hkddoc-summary {
    padding: 15px;
  }

  .hkddoc-dialog {
    padding: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hkddoc-item,
  .hkddoc-action {
    transition: none;
  }
}


/* =========================================================
   HAVENKEY USER DASHBOARD — PROFILE & SETTINGS
========================================================= */

.hkdu-set {
  width: 100%;
  min-width: 0;
  color: var(--text);
}

.hkdu-set [hidden] {
  display: none !important;
}

.hkdu-set-heading {
  margin-bottom: 27px;
}

.hkdu-set-eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hkdu-set-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 650;
}

.hkdu-set-heading > p,
.hkdu-set-panel-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.hkdu-set-panel {
  padding: 24px;
  margin-bottom: 17px;
  border-radius: var(--r);
  background: var(--bg-soft);
}

.hkdu-set-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hkdu-set-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 15px;
  background: var(--bg);
  font-size: 17px;
}

.hkdu-set-panel-head h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 650;
}

.hkdu-set-panel-head p {
  font-size: 12px;
}

.hkdu-set-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hkdu-set-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
}

.hkdu-set-field label {
  font-size: 12px;
  font-weight: 600;
}

.hkdu-set-field input {
  width: 100%;
  min-width: 0;
  min-height: 47px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  transition: border-color .2s ease;
}

.hkdu-set-field input::placeholder {
  color: var(--text-muted);
  opacity: .8;
}

.hkdu-set-field input:focus {
  border-color: var(--focus);
}

.hkdu-set-field input[aria-invalid="true"] {
  border-color: #c45b5b;
}

.hkdu-set-error {
  min-height: 0;
  color: #c45b5b;
  font-size: 11px;
  line-height: 1.5;
}

.hkdu-set-error:empty {
  display: none;
}

.hkdu-set-preference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
}

.hkdu-set-preference + .hkdu-set-preference {
  margin-top: 3px;
}

.hkdu-set-preference strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.hkdu-set-preference p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.hkdu-set-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.hkdu-set-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hkdu-set-switch > span:first-of-type {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #888;
  transition: background .2s ease;
}

.hkdu-set-switch > span:first-of-type::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}

.hkdu-set-switch input:checked + span:first-of-type {
  background: var(--btn-bg);
}

.hkdu-set-switch input:checked + span:first-of-type::after {
  transform: translateX(20px);
}

.hkdu-set-switch input:focus-visible + span:first-of-type {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.hkdu-set-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hkdu-set-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 2px 20px;
}

.hkdu-set-message {
  flex: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.hkdu-set-message.is-success {
  color: #43815c;
}

.hkdu-set-message.is-error {
  color: #c45b5b;
}

.hkdu-set-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}

.hkdu-set-save:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.hkdu-set button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .hkdu-set-heading {
    margin-bottom: 22px;
  }

  .hkdu-set-panel {
    padding: 18px;
    margin-bottom: 13px;
  }

  .hkdu-set-panel-head {
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .hkdu-set-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .hkdu-set-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hkdu-set-preference {
    align-items: flex-start;
    gap: 12px;
  }

  .hkdu-set-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hkdu-set-save {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hkdu-set-field input,
  .hkdu-set-switch > span:first-of-type,
  .hkdu-set-switch > span:first-of-type::after,
  .hkdu-set-save {
    transition: none;
  }
}


/* ==========================================================
   HAVENKEY ADMIN DASHBOARD: SHELL (hkda- prefix)
   Sidebar + top bar + switchable sections + toasts
   Desktop: 1024px and up | Slide-in menu: 1023px and below
   ========================================================== */
.hkda {
  --r: 28px;
  display: grid;
  grid-template-columns: clamp(264px, 24vw, 300px) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
}
@media (max-width: 1024px) { .hkda { --r: 22px; } }

body.hkda-lock { overflow: hidden; }

/* ---------- Sidebar ---------- */
.hkda__side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100svh;
  padding: 12px;
}
.hkda__panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 16px 16px;
  border-radius: var(--r);
  background: var(--bg-soft);
}
.hkda__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 4px;
}
.hkda__close { display: none; }

/* Menu */
.hkda__nav {
  flex: 1;
  min-height: 0;
  margin-inline: -4px;
  padding-inline: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.hkda__label {
  margin: 0 0 10px;
  padding-inline: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hkda__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }

.hkda__link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 999px;
  text-align: start;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-muted);
  transition: background-color .2s ease, color .2s ease;
}
.hkda__link i { flex: none; width: 20px; font-size: 16px; text-align: center; }
.hkda__link-text { flex: 1; min-width: 0; }
.hkda__link:hover { background: var(--bg); color: var(--text); }
.hkda__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hkda__link.is-active { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.hkda__link.is-active:hover { background: var(--primary); color: var(--on-primary); }
.hkda__link.is-active:focus-visible { outline-offset: 3px; }

.hkda__badge {
  flex: none;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding-inline: 7px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s ease, color .2s ease;
}
.hkda__badge[hidden] { display: none; }
.hkda__link.is-active .hkda__badge { background: var(--on-primary); color: var(--primary); }

/* Admin profile + logout (bottom of the sidebar) */
.hkda__foot { display: grid; gap: 10px; }
.hkda__me {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg);
}
.hkda__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.hkda__avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.hkda__me-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hkda__me-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hkda__me-role { font-size: 13px; color: var(--text-muted); }

.hkda__signout {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 15px;
  font-weight: 600;
  transition: background-color .25s ease, transform .2s ease;
}
.hkda__signout i { font-size: 15px; }
.hkda__signout:hover { background: var(--btn-bg-hover); }
.hkda__signout:active { transform: scale(.97); }
.hkda__signout:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hkda__signout:disabled { opacity: 1; cursor: progress; transform: none; }

/* ---------- Main column + top bar ---------- */
.hkda__main { min-width: 0; }

.hkda__top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding: 8px clamp(16px, 3vw, 32px);
  background: var(--bg);
  transition: box-shadow .3s ease;
}
.hkda__top.is-scrolled { box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.28); }

.hkda__burger { display: none; flex: none; }

.hkda__heading { min-width: 0; }
.hkda__crumbs ol {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--text-muted);
}
.hkda__crumbs li + li::before { content: "/"; content: "/" / ""; margin-inline-end: 6px; opacity: .6; }
.hkda__crumbs li[aria-current] { color: var(--text); font-weight: 500; }

.hkda__title {
  margin: 2px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(20px, 0.8vw + 17px, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hkda__sub {
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hkda__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; flex: none; }
.hkda__actions .hk-icon-btn { width: 44px; height: 44px; }

/* Pop-ups (notifications + admin menu) */
.hkda__pop { position: relative; }
.hkda__bell { position: relative; }
.hkda__dot {
  position: absolute;
  top: 9px;
  inset-inline-end: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--error);
  box-shadow: 0 0 0 2px var(--btn-bg);
}
.hkda__dot[hidden] { display: none; }

.hkda__user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding-inline: 4px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s ease;
}
.hkda__user i { font-size: 11px; color: var(--text-muted); transition: transform .2s ease; }
.hkda__user[aria-expanded="true"] i { transform: rotate(180deg); }
.hkda__user:hover { background: var(--border); }
.hkda__user:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.hkda__menu {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 70;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.hkda__menu[hidden] { display: none; }
.hkda__menu--notes { width: min(360px, calc(100vw - 32px)); }

.hkda__menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 10px;
}
.hkda__menu-title { margin: 0; font-size: 15px; font-weight: 600; }
.hkda__textbtn {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hkda__textbtn:hover { color: var(--text-muted); }
.hkda__textbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.hkda__textbtn:disabled { color: var(--text-muted); text-decoration: none; cursor: default; }

.hkda__notes { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hkda__note { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; }
.hkda__note.is-unread { background: var(--bg-soft); }
.hkda__note.is-unread::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-inline-start: auto;
  border-radius: 50%;
  background: var(--primary);
}
.hkda__note-ico {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 14px;
}
.hkda__note.is-unread .hkda__note-ico { background: var(--bg); }
.hkda__note-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hkda__note-text strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.hkda__note-text span { font-size: 12.5px; color: var(--text-muted); }

.hkda__menu-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 18px 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.hkda__menu-empty[hidden] { display: none; }

.hkda__menu-who { display: grid; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.hkda__menu-who strong { font-size: 15px; }
.hkda__menu-who span { font-size: 13px; color: var(--text-muted); }

.hkda__items { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hkda__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  text-align: start;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: background-color .2s ease;
}
.hkda__item i { flex: none; width: 18px; text-align: center; color: var(--text-muted); }
.hkda__item:hover { background: var(--bg-soft); }
.hkda__item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.hkda__item:disabled { opacity: .6; cursor: progress; }

/* ---------- Content + sections ---------- */
.hkda__content {
  width: 100%;
  max-width: 1280px;
  padding: clamp(8px, 1.6vw, 16px) clamp(16px, 3vw, 32px) clamp(32px, 5vw, 56px);
  outline: 0;
}
.hkda-section { outline: 0; }
.hkda-section[hidden] { display: none; }
.hkda-section:not([hidden]) { animation: hkda-in .35s ease; }
@keyframes hkda-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Temporary placeholder (each later step replaces its own) */
.hkda-ph {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: clamp(320px, 52vh, 520px);
  padding: 32px 20px;
  border-radius: var(--r);
  background: var(--bg-soft);
  text-align: center;
}
.hkda-ph__ico {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  font-size: 22px;
}
.hkda-ph__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 1.2vw + 18px, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hkda-ph__text { margin: 0; font-size: 16px; color: var(--text-muted); }

/* ---------- Toasts ---------- */
.hkda__toasts {
  position: fixed;
  inset-block-end: 16px;
  inset-inline-end: 16px;
  z-index: 1200;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.hkda__toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-lg);
  animation: hkda-toast .25s ease;
}
.hkda__toast.is-error { border-inline-start: 5px solid var(--error); }
.hkda__toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.hkda__toast > i { flex: none; margin-top: 2px; font-size: 16px; }
.hkda__toast-msg { flex: 1; min-width: 0; margin: 0; font-size: 14.5px; line-height: 1.45; }
.hkda__toast-x {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  opacity: .8;
}
.hkda__toast-x:hover { opacity: 1; background: rgba(128, 128, 128, .3); }
.hkda__toast-x:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@keyframes hkda-toast {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Tablet and phone: slide-in menu ---------- */
.hkda__overlay { display: none; }

@media (max-width: 1023px) {
  .hkda { grid-template-columns: minmax(0, 1fr); }

  .hkda__side {
    --hkda-x: -105%;                /* rtl.css flips this */
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    z-index: 1100;
    width: min(88vw, 320px);
    height: 100vh;
    height: 100dvh;
    visibility: hidden;
    transform: translateX(var(--hkda-x));
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  .hkda__side.is-open { visibility: visible; transform: none; transition-delay: 0s; }

  .hkda__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .hkda__overlay.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

  .hkda__burger,
  .hkda__close { display: inline-grid; }
}

@media (max-width: 767px) {
  .hkda__user {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
  }
  .hkda__user-name,
  .hkda__user > i { display: none; }
}

@media (max-width: 560px) {
  .hkda__sub,
  .hkda__crumbs { display: none; }
  .hkda__title { margin-top: 0; }
  .hkda__top { gap: 12px; }
  .hkda__actions { gap: 8px; }

  /* pop-ups use the full width so they never run off the screen */
  .hkda__pop { position: static; }
  .hkda__menu,
  .hkda__menu--notes {
    position: fixed;
    inset-block-start: calc(var(--header-h) + 6px);
    inset-inline: 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hkda__side,
  .hkda__overlay,
  .hkda__link,
  .hkda__badge,
  .hkda__signout,
  .hkda__user,
  .hkda__user i,
  .hkda__item,
  .hkda__top { transition: none; }
  .hkda-section:not([hidden]),
  .hkda__toast { animation: none; }
  .hkda__toast.is-leaving { transition: none; }
}

/* ==========================================================
   Admin dashboard: Overview (hkdao- prefix)
   Reuses hkdu- hero, stats, panels, rows, tags and photo tiles
   ========================================================== */

/* Text must always be fully visible: wrap instead of cutting off */
.hkdao .hkdu-row__main strong,
.hkdao .hkdu-row__main span,
.hkdao .hkdu-prop__cap strong,
.hkdao .hkdu-prop__cap span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
.hkdao .hkdu-panel__head { flex-wrap: wrap; row-gap: 8px; }
.hkdao .hkdu-tag { white-space: normal; text-align: center; line-height: 1.3; }
.hkdao .hkdu-row { flex-wrap: wrap; }
.hkdao .hkdu-row__main { flex: 1 1 160px; }
.hkdao .hkdu-hero__top { flex-wrap: wrap; }
.hkdao .hkdu-hero__nums { flex: 1 1 130px; min-width: 0; }

/* Key numbers: 3 columns (6 tiles) */
.hkdao-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Overdue / urgent tag: uses the theme error colour, readable in both modes */
.hkdao-tag--late { background: transparent; color: var(--error); box-shadow: inset 0 0 0 1.5px currentColor; }
.hkdao-tag--bg { background: var(--bg); }
.hkdao-time { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.hkdao-ini { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.hkdao-ini--photo { display: block; object-fit: cover; }

/* ---------- Quick actions ---------- */
.hkdao-qa {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hkdao-qa li { display: flex; min-width: 0; }
.hkdao-qa__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: calc(var(--r) - 6px);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color .25s ease, color .25s ease, transform .2s ease;
}
.hkdao-qa__ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  font-size: 16px;
  color: var(--text);
  transition: background-color .25s ease, color .25s ease;
}
.hkdao-qa__item:hover { background: var(--primary); color: var(--on-primary); }
.hkdao-qa__item:hover .hkdao-qa__ico { background: color-mix(in srgb, var(--on-primary) 16%, transparent); color: var(--on-primary); }
.hkdao-qa__item:active { transform: scale(.98); }
.hkdao-qa__item:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- Rent chart ---------- */
.hkdao-chart {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 16px);
  height: 250px;
  margin: 0;
  padding: 30px 0 0;
  list-style: none;
}
.hkdao-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; height: 100%; }
.hkdao-bar__plot { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.hkdao-bar__col {
  position: relative;
  width: min(100%, 48px);
  height: calc(var(--h) * 1%);
  min-height: 8px;
  border-radius: 12px 12px 6px 6px;
  background: color-mix(in srgb, var(--text) 18%, transparent);
  animation: hkdao-grow .7s ease both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.hkdao-bar.is-now .hkdao-bar__col { background: var(--primary); }
.hkdao-bar__val {
  position: absolute;
  bottom: 100%;
  inset-inline: 50%;
  width: max-content;
  margin-bottom: 6px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.hkdao-bar__mo { font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.hkdao-bar.is-now .hkdao-bar__mo { color: var(--text); font-weight: 600; }
@keyframes hkdao-grow { from { height: 0; } }

.hkdao-sums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.hkdao-sums li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: calc(var(--r) - 10px);
  background: var(--bg);
}
.hkdao-sums span { font-size: 13px; color: var(--text-muted); }
.hkdao-sums strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Occupancy bars ---------- */
.hkdao-occ { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hkdao-occ__row { padding: 14px 18px; border-radius: calc(var(--r) - 10px); background: var(--bg); }
.hkdao-occ__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 10px; }
.hkdao-occ__head strong { font-size: 16px; font-weight: 600; }
.hkdao-occ__head span { font-size: 14px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hkdao-occ__track { height: 10px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.hkdao-occ__track span { display: block; height: 100%; width: calc(var(--w) * 1%); border-radius: inherit; background: var(--primary); }

/* ---------- Date badge ---------- */
.hkdao-date {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-content: center;
  gap: 3px;
  border-radius: 16px;
  background: var(--bg-soft);
  text-align: center;
  line-height: 1;
}
.hkdao-date span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.hkdao-date b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }

/* ---------- Breakpoints ---------- */
@media (min-width: 760px) {
  .hkdao-qa { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .hkdao-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .hkdao .hkdu-row__side { flex: 1 0 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .hkdao-chart { height: 220px; }
}
@media (max-width: 440px) {
  .hkdao .hkdu-hero__big { font-size: clamp(28px, 7.5vw, 34px); }
  .hkdao-occ__row { padding: 12px 14px; }
  .hkdao-bar__val { font-size: 11px; }
}
@media (max-width: 359px) {
  .hkdao-stats { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hkdao-bar__col { animation: none; }
  .hkdao-qa__item, .hkdao-qa__ico { transition: none; }
}

/* ==========================================================
   Admin dashboard: Properties, Owners, Applications, Payments,
   Maintenance & Reports, Settings (hkdas- prefix)
   Uses the existing theme tokens only (theme.css)
   ========================================================== */

.hkdas [hidden] { display: none !important; }

/* Text must always be fully visible: wrap instead of cutting off */
.hkdas strong, .hkdas span, .hkdas p, .hkdas h4, .hkdas label, .hkdas li { overflow-wrap: anywhere; }
.hkdas .hkdu-tag { white-space: normal; text-align: center; line-height: 1.3; }
.hkdas .hkdu-panel__head { flex-wrap: wrap; row-gap: 8px; }

/* ---------- Entrance animation (staggered) ---------- */
.hkdas-rise { animation: hkdas-rise .55s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes hkdas-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes hkdas-flash {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); }
  100% { box-shadow: 0 0 0 14px transparent; }
}
@keyframes hkdas-fill { from { width: 0; } }
.hkdas .hkdao-occ__track span { animation: hkdas-fill .9s cubic-bezier(.22, 1, .36, 1) backwards; }

/* ---------- Toolbar ---------- */
.hkdas-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hkdas-search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color .2s ease;
}
.hkdas-search:focus-within { border-color: var(--text); outline: 2px solid var(--focus); outline-offset: 2px; }
.hkdas-search > i { color: var(--text-muted); font-size: 14px; }
.hkdas-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.hkdas-search input::placeholder { color: var(--text-muted); }
.hkdas-sel select {
  min-height: 48px;
  max-width: 100%;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.hkdas-sel select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hkdas-bar .hkdu-btn { height: 48px; gap: 8px; padding-inline: 22px; }
.hkdas-count { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ---------- Filter tabs ---------- */
.hkdas-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.hkdas-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .2s ease;
}
.hkdas-tab span { min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--bg); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.hkdas-tab:hover { background: var(--border); }
.hkdas-tab:active { transform: scale(.97); }
.hkdas-tab.is-active { background: var(--primary); color: var(--on-primary); }
.hkdas-tab.is-active span { background: color-mix(in srgb, var(--on-primary) 18%, transparent); color: var(--on-primary); }
.hkdas-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- Cards (properties, owners) ---------- */
.hkdas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hkdas-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--r); background: var(--bg-soft); transition: transform .3s ease, box-shadow .3s ease; }
.hkdas-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hkdas-card .hkdu-photo { width: 100%; aspect-ratio: 4 / 3; }
.hkdas-card:hover .hkdu-photo img { scale: 1.05; }
.hkdas-card__body { display: grid; gap: 12px; padding: 16px 18px 18px; }
.hkdas-card--plain .hkdas-card__body { padding: 20px; }
.hkdas-card__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }
.hkdas-card__name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--text); }
.hkdas-card__sub { margin: 2px 0 0; font-size: 14px; color: var(--text-muted); }
.hkdas-card .hkdas-chips li { background: var(--bg); }
.hkdas-meter__lb { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-bottom: 8px; font-size: 13px; color: var(--text-muted); }
.hkdas-who { display: flex; align-items: center; gap: 14px; min-width: 0; }

/* ---------- Avatar, chips, buttons ---------- */
.hkdas-ava {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}
.hkdas-ava--photo { display: block; object-fit: cover; }
.hkdas-card .hkdas-ava { background: var(--bg); width: 48px; height: 48px; }
.hkdas-ava--lg { width: 64px; height: 64px; font-size: 20px; background: var(--bg); }
.hkdas-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hkdas-chips li { padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--text); font-size: 13px; line-height: 1.3; }
.hkdas-chips .hkdas-chip--warn { color: var(--error); background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.hkdas-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hkdas-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .2s ease;
}
.hkdas-mini:hover { background: var(--primary); color: var(--on-primary); }
.hkdas-mini:active { transform: scale(.96); }
.hkdas-mini:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hkdas-mini:disabled { opacity: .7; cursor: progress; }
.hkdas-mini--solid { background: var(--btn-bg); color: var(--btn-text); box-shadow: none; }
.hkdas-mini--solid:hover { background: var(--btn-bg-hover); color: var(--btn-text); }
.hkdas-mini--danger { color: var(--error); box-shadow: inset 0 0 0 1.5px currentColor; background: transparent; }
.hkdas-mini--danger:hover { background: var(--error); color: var(--bg); }

/* ---------- Rows (applications, payments, maintenance) ---------- */
.hkdas-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hkdas-item { display: grid; gap: 12px; padding: 16px 18px; border-radius: calc(var(--r) - 10px); background: var(--bg); transition: transform .25s ease, box-shadow .25s ease; }
.hkdas-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hkdas-item.is-flash { animation: hkdas-flash .9s ease-out; }
.hkdas-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.hkdas-main { flex: 1 1 160px; min-width: 0; display: grid; gap: 2px; }
.hkdas-main strong { font-size: 16px; font-weight: 600; color: var(--text); }
.hkdas-main span { font-size: 14px; color: var(--text-muted); }
.hkdas-amt { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.hkdas-empty { display: grid; justify-items: center; gap: 8px; padding: 36px 20px; border-radius: var(--r); background: var(--bg-soft); text-align: center; animation: hkdas-rise .5s ease backwards; }
.hkdas-empty i { font-size: 26px; color: var(--text-muted); }
.hkdas-empty strong { font-size: 17px; color: var(--text); }
.hkdas-empty span { font-size: 14px; color: var(--text-muted); }

/* ---------- Forms ---------- */
.hkdas-formpanel { animation: hkdas-rise .45s cubic-bezier(.22, 1, .36, 1) backwards; }
.hkdas-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hkdas-field { display: grid; gap: 6px; min-width: 0; }
.hkdas-field label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.hkdas-field input, .hkdas-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease;
}
.hkdas-field input::placeholder { color: var(--text-muted); }
.hkdas-field input:focus-visible, .hkdas-field select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--text); }
.hkdas-field.is-invalid input, .hkdas-field.is-invalid select { border-color: var(--error); }
.hkdas-err { min-height: 0; font-size: 13px; color: var(--error); }
.hkdas-form__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hkdas-form__foot .hkdu-btn { height: 46px; padding-inline: 24px; }
.hkdas-btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border); }
.hkdas-btn--ghost:hover { background: var(--bg-soft); }
.hkdas-span2 { grid-column: 1 / -1; }

/* ---------- Switches (settings) ---------- */
.hkdas-opts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hkdas-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: calc(var(--r) - 10px); background: var(--bg); }
.hkdas-opt__txt { display: grid; gap: 2px; min-width: 0; }
.hkdas-opt__txt strong { font-size: 15px; font-weight: 600; color: var(--text); }
.hkdas-opt__txt span { font-size: 13.5px; color: var(--text-muted); }
.hkdas-switch { position: relative; flex: none; display: inline-block; width: 50px; height: 30px; }
.hkdas-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hkdas-switch__ui { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--text) 22%, transparent); transition: background-color .25s ease; }
.hkdas-switch__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), background-color .25s ease;
}
.hkdas-switch input:checked + .hkdas-switch__ui { background: var(--primary); }
.hkdas-switch input:checked + .hkdas-switch__ui::after { transform: translateX(20px); background: var(--on-primary); }
.hkdas-switch input:focus-visible + .hkdas-switch__ui { outline: 2px solid var(--focus); outline-offset: 3px; }
.hkdas-me { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }

/* ---------- Reports ---------- */
.hkdas-report { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; border-radius: calc(var(--r) - 10px); background: var(--bg); }
.hkdas-report .hkdas-ava { font-size: 16px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .hkdas-form--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .hkdas-bar .hkdu-btn { width: 100%; }
  .hkdas-sel, .hkdas-sel select { width: 100%; }
  .hkdas-actions .hkdas-mini { flex: 1 1 130px; }
  .hkdas-form__foot .hkdu-btn { flex: 1 1 130px; }
}
@media (max-width: 440px) {
  .hkdas-item { padding: 14px; }
  .hkdas-opt { padding: 12px 14px; gap: 12px; }
  .hkdas-card__body, .hkdas-card--plain .hkdas-card__body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hkdas-rise, .hkdas-formpanel, .hkdas-empty, .hkdas-item.is-flash, .hkdas .hkdao-occ__track span { animation: none; }
  .hkdas-card, .hkdas-item, .hkdas-tab, .hkdas-mini, .hkdas-switch__ui, .hkdas-switch__ui::after { transition: none; }
}


/* ===== User dashboard: 320px mobile spacing ===== */
@media (max-width: 360px) {

  /* even outer margin, left and right */
  .hkd__content {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* cards: less inner padding so text gets more width */
  .hkdu-hero,
  .hkdu-panel,
  .hkdu-stat {
    padding: 16px 14px;
  }

  .hkdu-hero { gap: 18px; }

  /* panel title + "View all" fit on one line */
  .hkdu-panel__head { gap: 8px; margin-bottom: 12px; }
  .hkdu-panel__title { font-size: 17px; gap: 8px; }
  .hkdu-more { font-size: 11px; white-space: nowrap; }

  /* repair / document rows */
  .hkdu-rows { gap: 8px; }
  .hkdu-row {
    padding: 10px 12px;
    gap: 10px;
  }
  .hkdu-row__main { flex: 1 1 0; min-width: 0; }
  .hkdu-row__main strong { font-size: 14px; }
  .hkdu-row__main span { font-size: 12px; }

  /* smaller status tags so titles are not cut as much */
  .hkdu-row__side .hkdu-tag {
    padding: 5px 9px;
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }

  /* property cards */
  .hkdu-prop__cap { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; }
}

/* Statements table: equal-size Paid / Pending badges */
.hkds__status {
  min-width: 96px;          /* same width for every badge */
  box-sizing: border-box;
  justify-content: center;  /* dot + text stay centered */
}

/* Statements table: fill full width, balanced left / right */
.hkds__table {
  table-layout: fixed;
  width: 100%;
}

/* column widths (total 100%) */
.hkds__table th:nth-child(1),
.hkds__table td:nth-child(1) { width: 24%; }   /* Statement  */
.hkds__table th:nth-child(2),
.hkds__table td:nth-child(2) { width: 22%; }   /* Property   */
.hkds__table th:nth-child(3),
.hkds__table td:nth-child(3) { width: 20%; }   /* Issue date */
.hkds__table th:nth-child(4),
.hkds__table td:nth-child(4) { width: 18%; }   /* Amount     */
.hkds__table th:nth-child(5),
.hkds__table td:nth-child(5) { width: 16%; }   /* Status     */

/* last column sits on the right edge, mirroring the left padding */
.hkds__table th:last-child,
.hkds__table td:last-child {
  text-align: end;
  padding-inline-end: 24px;
}
.hkds__table th:first-child,
.hkds__table td:first-child {
  padding-inline-start: 24px;
}

/* Status column: heading and badges centered */
.hkds__table th:last-child,
.hkds__table td:last-child {
  text-align: center;
  padding-inline-end: 18px;
}


.hkdu-two--wide > .hkdu-panel:has(.hkdao-chart) {
  display: flex;
  flex-direction: column;
}
.hkdu-two--wide > .hkdu-panel:has(.hkdao-chart) .hkdao-sums {
  margin-top: auto;   /* pushes the boxes to the bottom edge */
}
/* Repair costs: graph expands to fill the card */
.hkdu-two--wide > .hkdu-panel:has(.hkdao-chart) .hkdao-chart {
  flex: 1;              /* take all free height */
  height: auto;         /* remove the fixed 250px */
  min-height: 250px;    /* never smaller than before */
}

/* Repair costs: space between the chart and the summary boxes */
.hkdu-two--wide > .hkdu-panel:has(.hkdao-chart) .hkdao-chart {
  margin-bottom: 24px;   /* adjust: 20px - 32px */
}


/* Preferences: rows grow to fill the card, no empty bottom space */
.hkdu-panel[aria-labelledby="hkdasPrefT"] {
  display: flex;
  flex-direction: column;
}

.hkdu-panel[aria-labelledby="hkdasPrefT"] .hkdas-opts {
  flex: 1;                              /* list takes the free height */
  grid-auto-rows: 1fr;                  /* every row gets equal height */
}

.hkdu-panel[aria-labelledby="hkdasPrefT"] .hkdas-opt {
  padding-block: 18px;                  /* minimum row size */
}