/* ==========================================================================
   HEKA — Design B Light · core stylesheet (every page)

   1. Tokens          — colours, type, spacing, motion (and the @font-face
                        rules above: fonts are served from assets/fonts)
   2. Base            — a small reset scoped to .hk
   3. Components      — shell, type, buttons, links, cards, rules, fields
   4. Motion          — entrances, ribbon boxes, glows (compositor-only)
   5. Header · Footer
   6. Home sections   — hero, about, resources, services, values, why, security, contact

   Naming: .hk-block, .hk-block__part, .hk-block--variant. Breakpoints match
   the original design: 640px (sm), 768px (md), 1024px (lg).
   Page-specific styles live in about.css, careers.css and services.css.
   ========================================================================== */

/* Fonts, served from the theme (no request to Google), declared exactly as Google Fonts
   declares them for the design: Inter 400/500/600 and Plus Jakarta Sans 600, latin and latin-ext. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* 1. Tokens ---------------------------------------------------------------- */

:root {
  --hk-ink: #0c0c0c;
  --hk-ink-soft: #2a2a2a;
  --hk-muted: #62605c;
  --hk-paper: #f7f5f2;
  --hk-card: #efebe5;
  --hk-card-soft: #f3f0eb;
  --hk-line: rgba(12, 12, 12, 0.1);
  --hk-accent: #ff5003;
  --hk-white: #fff;

  --hk-font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --hk-font-text: "Inter", system-ui, sans-serif;

  --hk-shell: 76rem;
  --hk-gutter: 1.25rem;
  --hk-radius: 24px;
  --hk-radius-lg: 28px;
  --hk-header: 68px;

  --hk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hk-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  :root {
    --hk-gutter: 2rem;
  }
}

/* 2. Base ------------------------------------------------------------------ */

html[data-hk-js] {
  scroll-behavior: smooth;
}

.hk {
  margin: 0;
  background: var(--hk-paper);
  color: var(--hk-ink);
  font-family: var(--hk-font-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hk *,
.hk *::before,
.hk *::after {
  box-sizing: border-box;
}

.hk :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd) {
  margin: 0;
}

.hk :where(h1, h2, h3, h4) {
  font-size: inherit;
  font-weight: inherit;
}

.hk :where(ul, ol) {
  padding: 0;
  list-style: none;
}

.hk :where(img, svg, canvas, video) {
  display: block;
  max-width: 100%;
}

.hk :where(img) {
  height: auto;
}

.hk :where(a) {
  color: inherit;
  text-decoration: none;
}

.hk :where(button, input, textarea, select) {
  margin: 0;
  font: inherit;
  color: inherit;
}

.hk :where(button) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
  text-transform: none;
}

.hk :focus-visible {
  outline: 2px solid var(--hk-accent);
  outline-offset: 3px;
}

.hk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 3. Components ------------------------------------------------------------ */

.hk-shell {
  width: 100%;
  max-width: var(--hk-shell);
  margin-inline: auto;
  padding-inline: var(--hk-gutter);
}

.hk-section {
  position: relative;
  padding-block: 6rem;
  scroll-margin-top: 5rem;
}

/* Rounded full-width card bands (dark figures, values, security) */
.hk-band {
  padding-inline: 0.75rem;
  scroll-margin-top: 5rem;
}

.hk-band__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--hk-radius-lg);
  background: var(--hk-ink);
  color: var(--hk-white);
}

@media (min-width: 768px) {
  .hk-section {
    padding-block: 8rem;
  }

  .hk-band {
    padding-inline: 1rem;
  }
}

/* Type */
.hk-h1,
.hk-h2,
.hk-h3,
.hk-serif {
  font-family: var(--hk-font-display);
  font-weight: 600;
}

.hk-h1 {
  font-size: clamp(2.4rem, 5.8vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hk-h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hk-h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hk-serif {
  letter-spacing: -0.025em;
}

.hk-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--hk-muted);
}

.hk-accent {
  color: var(--hk-accent);
}

.hk-num {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--hk-accent);
}

/* Eyebrow: the K–A dash from the logo before a short label */
.hk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hk-ink);
}

.hk-eyebrow::before {
  content: "";
  width: 1.1rem;
  height: 0.32rem;
  background: var(--hk-accent);
  clip-path: polygon(0 0, 91.8% 0, 100% 100%, 13.3% 100%);
}

.hk-dark .hk-eyebrow {
  color: var(--hk-white);
}

/* Spacing / width helpers used by the section templates */
.hk-mt-3 { margin-top: 0.75rem; }
.hk-mt-4 { margin-top: 1rem; }
.hk-mt-6 { margin-top: 1.5rem; }
.hk-mt-8 { margin-top: 2rem; }
.hk-mt-10 { margin-top: 2.5rem; }
.hk-max-xs { max-width: 20rem; }
.hk-max-md { max-width: 28rem; }
.hk-max-18ch { max-width: 18ch; }
.hk-max-30ch { max-width: 30ch; }
.hk-stack-5 > * + * { margin-top: 1.25rem; }

/* Buttons */
.hk-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s var(--hk-ease);
}

.hk-btn:active {
  transform: scale(0.98);
}

.hk-btn--dark {
  background: var(--hk-ink);
  color: var(--hk-white);
}

.hk-btn--dark:hover {
  background: var(--hk-accent);
  color: var(--hk-white);
}

.hk-btn--line {
  border-color: rgba(12, 12, 12, 0.2);
  color: var(--hk-ink);
}

.hk-btn--line:hover {
  border-color: var(--hk-ink);
  background: var(--hk-ink);
  color: var(--hk-white);
}

.hk-arrow {
  transition: transform 0.4s var(--hk-ease);
}

.hk-btn:hover .hk-arrow {
  transform: translateX(3px);
}

/* Quiet text link (secondary actions) */
.hk-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hk-accent);
  transition: color 0.2s ease;
}

.hk-link:hover {
  color: var(--hk-ink);
}

.hk-link--on-dark:hover {
  color: var(--hk-white);
}

/* Cards */
.hk-card {
  border-radius: var(--hk-radius);
  background: var(--hk-card-soft);
}

.hk-lift {
  transition:
    transform 0.5s var(--hk-ease),
    box-shadow 0.5s var(--hk-ease),
    background-color 0.3s ease;
}

.hk-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(12, 12, 12, 0.18);
}

/* Hairline */
.hk-rule {
  height: 1px;
  background: var(--hk-line);
}

.hk-dark .hk-rule {
  background: rgba(255, 255, 255, 0.14);
}

/* Form field */
.hk-field {
  display: block;
  width: 100%;
  border: 1px solid rgba(12, 12, 12, 0.12);
  border-radius: 14px;
  background: var(--hk-white);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  color: var(--hk-ink);
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hk-field:focus {
  border-color: var(--hk-accent);
  box-shadow: 0 0 0 4px rgba(255, 80, 3, 0.12);
}

textarea.hk-field {
  resize: vertical;
}

/* Text with a small orange dot before it */
.hk-dot-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hk-dot-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hk-accent);
}

/* 4. Motion ----------------------------------------------------------------
   [data-reveal] waits for heka.js to set [data-shown] when it scrolls into
   view; [data-now] and .hk-fade-in start with the first paint. Animations
   (not transitions) with a backwards fill: the hidden state exists only
   before the start, so hover transforms keep working afterwards. Only
   opacity / transform / filter animate, so the compositor runs them.
   [data-hk-js] is set on <html> by an inline script in <head>, so without
   JavaScript nothing is ever hidden. Elements already on screen when the
   script starts get [data-shown="instant"] and simply stay as painted.
   Variables: --delay, --dur, --y, --x, --s, --ease */

@media (prefers-reduced-motion: no-preference) {
  [data-hk-js] [data-reveal]:not([data-kind]):not([data-shown]) {
    opacity: 0;
    transform: translate3d(var(--x, 0), var(--y, 22px), 0) scale(var(--s, 1));
  }

  [data-reveal][data-shown]:not([data-kind]),
  [data-now]:not([data-kind]) {
    animation: hk-in var(--dur, 0.9s) var(--ease, var(--hk-ease)) var(--delay, 0s) backwards;
  }

  /* Headings split into .hk-word spans */
  .hk-words .hk-word {
    display: inline-block;
  }

  .hk-words--hero .hk-word,
  .hk-words[data-now] .hk-word,
  .hk-words[data-shown] .hk-word {
    animation: hk-word 1.1s var(--ease, var(--hk-expo)) calc(var(--start, 0.1s) + var(--i, 0) * var(--stagger, 0.045s)) backwards;
  }

  .hk-words--hero {
    --ease: var(--hk-ease);
    --start: 0.08s;
    --stagger: 0.05s;
  }

  [data-hk-js] .hk-words[data-reveal]:not([data-shown]) .hk-word {
    opacity: 0;
  }

  /* Hairlines and the footer wordmark bars draw from the left */
  [data-hk-js] [data-kind="line"]:not([data-shown]) {
    transform: scaleX(0);
  }

  [data-kind="line"][data-shown] {
    animation: hk-draw var(--dur, 1.2s) var(--ease, var(--hk-ease)) var(--delay, 0s) backwards;
  }

  [data-hk-js] [data-kind="logo"]:not([data-shown]) .hk-logo__bar {
    transform: scaleX(0);
  }

  [data-kind="logo"][data-shown] .hk-logo__bar--h {
    animation: hk-draw 1.1s var(--hk-ease) 0.25s backwards;
  }

  [data-kind="logo"][data-shown] .hk-logo__bar--a {
    animation: hk-draw 1.1s var(--hk-ease) 0.5s backwards;
  }

  /* Painted before the script ran: no entrance */
  [data-shown="instant"],
  [data-shown="instant"] .hk-word,
  [data-shown="instant"] .hk-logo__bar {
    animation: none !important;
  }

  /* Loops only run while on screen ([data-live] gets [data-playing]) */
  [data-live]:not([data-playing]),
  [data-live]:not([data-playing]) * {
    animation-play-state: paused !important;
  }

  .hk-fade-in {
    animation: hk-fade 1.2s var(--hk-ease) var(--delay, 0.6s) backwards;
  }
}

[data-kind="line"] {
  transform-origin: left;
}

@keyframes hk-in {
  from {
    opacity: 0;
    transform: translate3d(var(--x, 0), var(--y, 22px), 0) scale(var(--s, 1));
  }
}

@keyframes hk-word {
  from {
    opacity: 0;
    transform: translateY(0.35em);
    filter: blur(8px);
  }
}

@keyframes hk-draw {
  from {
    transform: scaleX(0);
  }
}

@keyframes hk-fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* Ribbon canvas: data-module="ribbon" draws into it from a Web Worker */
.hk-ribbon {
  width: 100%;
  height: 100%;
}

.hk-ribbon canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hk-ribbon-box {
  position: absolute;
  pointer-events: none;
}

.hk-ribbon-box > .hk-fade-in {
  width: 100%;
  height: 100%;
}

.hk-ribbon-box--hero {
  inset: auto 0 0 0;
  height: 68%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 100%);
  mask-composite: intersect;
}

/* Warm glow drifting behind a hero ribbon */
.hk-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  animation: hk-drift 22s ease-in-out infinite alternate;
}

.hk-glow--a {
  left: 8%;
  top: 52%;
  width: 52%;
  height: 38%;
  background: radial-gradient(ellipse closest-side, rgba(255, 80, 3, 0.22) 0%, rgba(255, 140, 60, 0.08) 55%, transparent 100%);
}

.hk-glow--b {
  right: 6%;
  top: 60%;
  width: 36%;
  height: 30%;
  background: radial-gradient(ellipse closest-side, rgba(255, 170, 90, 0.18) 0%, rgba(255, 170, 90, 0.05) 50%, transparent 100%);
  animation-delay: -6s;
}

@keyframes hk-drift {
  from {
    transform: translate3d(-4%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5%, -6%, 0) scale(1.08);
  }
}

/* The HEKA wordmark */
.hk-logo {
  width: 100%;
  height: auto;
  color: var(--hk-ink);
  fill: currentColor;
}

.hk-logo path,
.hk-logo polygon:not(.hk-logo__bar) {
  fill: currentColor;
}

.hk-logo__bar {
  fill: var(--hk-accent);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.6s var(--hk-expo);
}

@media (prefers-reduced-motion: no-preference) {
  .hk-logo-wrap--intro .hk-logo {
    animation: hk-logo-in 0.7s var(--hk-expo) backwards;
  }

  .hk-logo-wrap--intro .hk-logo__bar--h {
    animation: hk-draw 0.75s var(--hk-expo) 0.35s backwards;
  }

  .hk-logo-wrap--intro .hk-logo__bar--a {
    animation: hk-draw 0.95s var(--hk-expo) 0.6s backwards;
  }
}

/* Hover: the dash reaches back toward the K */
.hk-logo-wrap--interactive .hk-logo__bar--a {
  transform-origin: right center;
}

.hk-logo-wrap--interactive:hover .hk-logo__bar--a {
  transform: scaleX(1.22);
}

@keyframes hk-logo-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* 5. Header ---------------------------------------------------------------- */

.hk-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}

.hk-header[data-scrolled],
.hk-header[data-open] {
  background: rgba(247, 245, 242, 0.92);
  box-shadow: 0 1px 0 rgba(12, 12, 12, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hk-header__bar {
  display: flex;
  height: var(--hk-header);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.hk-header__logo .hk-logo {
  width: auto;
  height: 28px;
  transition: height 0.5s var(--hk-ease);
}

@media (min-width: 768px) {
  .hk-header__logo .hk-logo {
    height: 32px;
  }
}

.hk-header[data-scrolled] .hk-header__logo .hk-logo {
  height: 24px;
}

.hk-header__nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.hk-header__link {
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.94rem;
  color: var(--hk-ink-soft);
  transition:
    background-color 0.2s,
    color 0.2s;
}

.hk-header__link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

.hk-header__link[aria-current="page"] {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.hk-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hk-header__cta {
  display: none;
}

.hk-header__burger {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
}

.hk-header__burger-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1px;
  background: #000;
  transition: transform 0.3s;
  transform: translate(-50%, -4px);
}

.hk-header__burger-line + .hk-header__burger-line {
  transform: translate(-50%, 4px);
}

.hk-header[data-open] .hk-header__burger-line {
  transform: translate(-50%, 0) rotate(45deg);
}

.hk-header[data-open] .hk-header__burger-line + .hk-header__burger-line {
  transform: translate(-50%, 0) rotate(-45deg);
}

.hk-header__mobile {
  height: calc(100svh - var(--hk-header));
  overflow-y: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--hk-paper);
}

.hk-header__mobile nav {
  display: flex;
  flex-direction: column;
  padding-block: 1.5rem;
}

.hk-header__mobile-link {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-block: 1rem;
  font-family: var(--hk-font-display);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .hk-header__cta {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .hk-header__nav {
    display: flex;
  }

  .hk-header__burger,
  .hk-header__mobile {
    display: none;
  }
}

/* Footer ------------------------------------------------------------------- */

.hk-footer {
  padding: 0 0.75rem 0.75rem;
}

.hk-footer__card {
  border-radius: var(--hk-radius-lg);
  background: var(--hk-card);
}

.hk-footer__grid {
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
}

.hk-footer__tagline {
  max-width: 16rem;
}

.hk-footer__title {
  font-family: var(--hk-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hk-footer__list {
  margin-top: 1.25rem;
  font-size: 0.98rem;
  color: var(--hk-ink-soft);
}

.hk-footer__list li + li {
  margin-top: 0.75rem;
}

.hk-footer__list a,
.hk-footer__phone {
  transition: color 0.2s;
}

.hk-footer__list a:hover,
.hk-footer__phone:hover {
  color: var(--hk-accent);
}

.hk-footer__hello {
  margin-top: 1.25rem;
  font-size: 0.98rem;
  line-height: 1.625;
  color: var(--hk-muted);
}

.hk-footer__phone {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 500;
}

.hk-footer__mark {
  padding-bottom: 1.5rem;
}

.hk-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-block: 1.5rem;
  font-size: 0.875rem;
  color: var(--hk-muted);
}

.hk-footer__bottom a:hover {
  color: var(--hk-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hk-footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hk-footer__social {
  color: var(--hk-ink);
  transition: opacity 0.2s;
}

.hk-footer__social:hover {
  opacity: 0.6;
}

.hk-footer__social svg {
  width: 1.05rem;
  height: 1.05rem;
}

@media (min-width: 768px) {
  .hk-footer {
    padding: 0 1rem 1rem;
  }

  .hk-footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    padding-block: 5rem;
  }

  .hk-footer__grid > :nth-child(1) { grid-column: span 4; }
  .hk-footer__grid > :nth-child(2) { grid-column: span 3; }
  .hk-footer__grid > :nth-child(3) { grid-column: span 2; }
  .hk-footer__grid > :nth-child(4) { grid-column: span 3; }

  .hk-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Back to top: appears near the end of long pages */
.hk-totop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hk-ink);
  color: var(--hk-white);
  box-shadow: 0 8px 24px rgba(12, 12, 12, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.hk-totop[data-visible] {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.hk-totop svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 768px) {
  .hk-totop {
    right: 1.75rem;
    bottom: 1.75rem;
  }
}

/* 6. Home sections ------------------------------------------------------- */

/* Two-column intro rows: 7 / 5 columns on large screens */
.hk-split {
  display: grid;
  gap: 2.5rem;
}

.hk-split--end {
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .hk-split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3.5rem;
  }

  .hk-split--end {
    align-items: end;
    gap: 1.5rem;
  }

  .hk-split__main { grid-column: span 7; }
  .hk-split__side { grid-column: span 5; }
  .hk-split:not(.hk-split--end) .hk-split__side { padding-top: 3rem; }
  .hk-split--half .hk-split__main,
  .hk-split--half .hk-split__side { grid-column: span 6; }
  .hk-text-end { text-align: right; }
}

/* Hero */
.hk-hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--hk-header);
}

.hk-hero__stage {
  position: relative;
  min-height: max(640px, calc(100svh - var(--hk-header)));
}

.hk-hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12vh;
  text-align: center;
}

.hk-hero__title {
  max-width: 16ch;
}

.hk-hero__subtitle {
  max-width: 36rem;
  margin-top: 1.75rem;
  font-size: 1.125rem;
  color: var(--hk-muted);
}

.hk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hk-hero__cities {
  position: absolute;
  inset: auto 0 1.5rem;
  z-index: 10;
}

.hk-hero__cities-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--hk-muted);
}

@media (min-width: 768px) {
  .hk-hero__content {
    padding-top: 14vh;
  }

  .hk-hero__subtitle {
    font-size: 1.25rem;
  }
}

/* About */
.hk-about__grid {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
}

.hk-about__globe-card {
  position: relative;
  overflow: hidden;
}

.hk-about__globe-glow {
  position: absolute;
  left: -25%;
  top: 25%;
  width: 66.67%;
  height: 66.67%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 80, 3, 0.15) 0%, rgba(255, 80, 3, 0.05) 45%, transparent 70%);
  pointer-events: none;
}

.hk-about__globe {
  position: relative;
  aspect-ratio: 4 / 3;
}

.hk-about__globe canvas {
  width: 100%;
  height: 100%;
}

.hk-about__places {
  display: grid;
  gap: 1rem;
}

.hk-about__place {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.hk-about__role {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--hk-muted);
}

@media (min-width: 640px) {
  .hk-about__places {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .hk-about__grid {
    margin-top: 5rem;
  }

  .hk-about__globe {
    aspect-ratio: 16 / 10;
  }

  .hk-about__place {
    padding: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .hk-about__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hk-about__globe-card {
    grid-column: span 8;
  }

  .hk-about__places {
    grid-column: span 4;
    grid-template-columns: 1fr;
  }
}

/* Resources (dark band with figures) */
.hk-ribbon-box--resources {
  inset: 0;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
}

.hk-band__inner {
  position: relative;
  padding-block: 5rem;
}

.hk-stats {
  display: grid;
  column-gap: 2rem;
  margin-top: 3.5rem;
}

.hk-stat {
  padding-bottom: 2.5rem;
  container-type: inline-size;
}

/* Sized against its own column, so a long figure (13,000+) fits; the columns are equal, so the four stay the same size. */
.hk-stat__value {
  margin-top: 2rem;
  font-family: var(--hk-font-display);
  font-size: min(clamp(3.2rem, 6vw, 5rem), 23cqi);
  white-space: nowrap;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.hk-stat__label {
  max-width: 14rem;
  margin-top: 1rem;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 640px) {
  .hk-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .hk-band__inner {
    padding-block: 7rem;
  }

  .hk-stats {
    margin-top: 5rem;
  }
}

@media (min-width: 1024px) {
  .hk-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Services (home index with preview card) */
.hk-svc {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.hk-svc__row {
  display: flex;
  width: 100%;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 1.5rem;
  text-align: left;
}

.hk-svc__num {
  width: 1.75rem;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--hk-muted);
  transition: color 0.2s;
}

.hk-svc__title {
  flex: 1;
  color: rgba(12, 12, 12, 0.45);
  transition:
    color 0.5s var(--hk-ease),
    transform 0.5s var(--hk-ease);
}

.hk-svc__row:hover .hk-svc__title {
  color: var(--hk-ink);
}

.hk-svc__icon {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  color: rgba(0, 0, 0, 0.5);
  transform: rotate(-45deg);
  transition: all 0.5s;
}

.hk-svc__item.is-active .hk-svc__num {
  color: var(--hk-accent);
}

.hk-svc__item.is-active .hk-svc__title {
  color: var(--hk-ink);
  transform: translateX(0.25rem);
}

.hk-svc__item.is-active .hk-svc__icon {
  border-color: var(--hk-accent);
  background: var(--hk-accent);
  color: var(--hk-white);
  transform: none;
}

/* Small screens: the active row opens in place */
.hk-svc__inline {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--hk-ease);
}

.hk-svc__inline > div {
  overflow: hidden;
}

.hk-svc__item.is-active .hk-svc__inline {
  grid-template-rows: 1fr;
}

.hk-svc__inline .hk-body {
  padding: 0 0 1rem 3rem;
}

.hk-svc__more {
  display: inline-flex;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hk-accent);
}

.hk-svc__inline .hk-svc__more {
  margin: 0 0 1.5rem 3rem;
}

.hk-svc__all {
  padding-top: 1.5rem;
}

.hk-svc__preview-col {
  display: none;
}

.hk-svc__preview {
  position: sticky;
  top: 6rem;
}

.hk-svc__card {
  overflow: hidden;
}

.hk-svc__media {
  position: relative;
  aspect-ratio: 4 / 3;
}

.hk-svc__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.7s var(--hk-ease),
    transform 0.7s var(--hk-ease);
}

.hk-svc__img.is-active {
  opacity: 1;
  transform: none;
}

.hk-svc__badge {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.hk-svc__body {
  padding: 1.75rem;
}

.hk-svc__detail.is-active {
  animation: hk-fade 1.2s var(--hk-ease) backwards;
}

@media (min-width: 768px) {
  .hk-svc {
    margin-top: 5rem;
  }

  .hk-svc__row {
    padding-block: 1.75rem;
  }

  .hk-svc__body {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .hk-svc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
  }

  .hk-svc__inline {
    display: none;
  }

  .hk-svc__preview-col {
    display: block;
  }
}

/* Core values (tabs) */
.hk-values {
  border-radius: var(--hk-radius-lg);
  background: var(--hk-card);
  padding-block: 5rem;
}

.hk-values__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.hk-values__tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.hk-values__tab {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  text-align: left;
  transition: background-color 0.3s;
}

.hk-values__tab:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hk-values__tab[aria-selected="true"] {
  background: var(--hk-white);
}

.hk-values__tab-num {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--hk-muted);
}

.hk-values__tab[aria-selected="true"] .hk-values__tab-num {
  color: var(--hk-accent);
}

.hk-values__tab-name {
  font-size: 1.05rem;
  font-weight: 500;
}

/* Autoplay progress: runs on the selected tab while [data-autoplaying] */
.hk-values__progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--hk-accent);
  transform: scaleX(0);
  transform-origin: left;
}

.hk-values[data-autoplaying] .hk-values__tab[aria-selected="true"] .hk-values__progress {
  animation: hk-progress var(--autoplay, 6s) linear forwards;
}

@keyframes hk-progress {
  to {
    transform: scaleX(1);
  }
}

.hk-values__panel {
  position: relative;
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: var(--hk-radius);
  background: var(--hk-white);
  padding: 2rem;
}

.hk-ribbon-box--values {
  inset: 0 0 0 auto;
  width: 60%;
  opacity: 0.5;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 35%),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 35%),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
}

.hk-values__count {
  position: relative;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--hk-accent);
}

.hk-values__copy {
  position: relative;
  margin-top: 3rem;
}

.hk-values__text {
  max-width: 36rem;
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

/* Re-played on every change by values.js */
.hk-values [data-anim] {
  animation: hk-fade 1.2s var(--hk-ease) var(--delay, 0s) backwards;
}

@media (min-width: 768px) {
  .hk-values {
    padding-block: 7rem;
  }

  .hk-values__grid {
    margin-top: 4rem;
  }

  .hk-values__panel {
    padding: 3rem;
  }

  .hk-ribbon-box--values {
    width: 44%;
    opacity: 1;
  }
}

@media (min-width: 1024px) {
  .hk-values__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hk-values__tabs {
    grid-column: span 4;
    flex-direction: column;
    overflow: visible;
  }

  .hk-values__panel {
    grid-column: span 8;
  }
}

/* Why work with us */
.hk-why__head {
  display: grid;
  gap: 1.5rem;
}

.hk-why__grid {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
}

.hk-why__card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
}

.hk-why__bar {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--hk-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--hk-ease);
}

.hk-why__card:hover .hk-why__bar {
  transform: scaleX(1);
}

@media (min-width: 640px) {
  .hk-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .hk-why__grid {
    margin-top: 5rem;
  }

  .hk-why__card {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .hk-why__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hk-why__head > :first-child { grid-column: span 4; }
  .hk-why__head > :last-child { grid-column: span 8; }

  .hk-why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Security (dark) */
.hk-security {
  padding-block: 5rem;
}

.hk-security__grid {
  display: grid;
  gap: 3rem;
}

.hk-security__text {
  max-width: 28rem;
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.6);
}

.hk-security__points {
  display: grid;
  gap: 0.75rem;
  align-self: end;
}

.hk-security__point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.375;
  transition: border-color 0.3s;
}

.hk-security__point:hover {
  border-color: rgba(255, 80, 3, 0.6);
}

.hk-security__point svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--hk-accent);
}

@media (min-width: 640px) {
  .hk-security__points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .hk-security {
    padding-block: 7rem;
  }
}

@media (min-width: 1024px) {
  .hk-security__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4rem;
  }

  .hk-security__intro { grid-column: span 5; }
  .hk-security__points { grid-column: span 7; }
}

/* Contact */
.hk-contact {
  overflow: hidden;
}

.hk-ribbon-box--contact {
  inset: 0 0 auto;
  height: 60%;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 75%, transparent 100%);
}

.hk-contact__grid {
  position: relative;
  display: grid;
  gap: 3rem;
}

.hk-contact__phone {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 2rem;
  transition: color 0.2s;
}

.hk-contact__phone:hover {
  color: var(--hk-accent);
}

.hk-form {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
}

.hk-form__field {
  display: block;
}

.hk-form__field > span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--hk-muted);
}

.hk-form__notice {
  font-size: 0.875rem;
  color: var(--hk-muted);
}

.hk-form__notice:not(:empty) {
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .hk-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hk-form__wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .hk-form {
    padding: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hk-contact__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4rem;
  }

  .hk-contact__intro { grid-column: span 5; }
  .hk-form { grid-column: span 7; }
}

/* 7. Page 404 (Not Found) -------------------------------------------------- */

.hk-404-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--hk-header) + 2.5rem);
  padding-bottom: 5.5rem;
  min-height: calc(100svh - 100px);
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 50% 25%, rgba(255, 80, 3, 0.05) 0%, transparent 60%);
}

.hk-ribbon-box--404 {
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 48%, #000 45%, transparent 95%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 48%, #000 45%, transparent 95%);
}

.hk-404__stage {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Status Pill */
.hk-404__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  /* Opaque enough to read over the ribbon: no live blur, which the GPU would redo every frame. */
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(12, 12, 12, 0.08);
  box-shadow: 0 4px 18px rgba(12, 12, 12, 0.04);
  margin-bottom: 1.5rem;
  transition: transform 0.3s var(--hk-ease), border-color 0.3s var(--hk-ease), box-shadow 0.3s var(--hk-ease);
}

.hk-404__pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 80, 3, 0.35);
  box-shadow: 0 6px 22px rgba(255, 80, 3, 0.12);
}

.hk-404__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hk-accent);
  box-shadow: 0 0 10px rgba(255, 80, 3, 0.85);
  animation: hk-pulse 2s infinite ease-in-out;
}

@keyframes hk-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.6;
  }
}

.hk-404__pill .hk-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--hk-ink-soft);
  text-transform: uppercase;
  margin: 0;
}

/* 404 Sculpture / Number Display */
.hk-404__glyph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0.5rem;
  transition: transform 0.4s var(--hk-expo);
}

.hk-404__glyph:hover {
  transform: scale(1.03);
}

.hk-404__digit {
  font-family: var(--hk-font-display);
  font-size: clamp(6.5rem, 16vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--hk-ink);
  text-shadow: 0 12px 36px rgba(12, 12, 12, 0.08);
}

.hk-404__zero {
  position: relative;
  width: clamp(5rem, 12vw, 8.5rem);
  height: clamp(5rem, 12vw, 8.5rem);
  margin: 0 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hk-404__zero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px dashed rgba(255, 80, 3, 0.6);
  animation: hk-spin 28s linear infinite;
}

.hk-404__zero-ring--outer {
  inset: -10px;
  border: 1px solid rgba(12, 12, 12, 0.1);
  animation: hk-spin 42s linear infinite reverse;
}

.hk-404__zero-core {
  width: 44%;
  height: 44%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hk-accent) 0%, rgba(255, 80, 3, 0.45) 60%, transparent 100%);
  filter: blur(2px);
  animation: hk-pulse 3s infinite ease-in-out;
}

@keyframes hk-spin {
  to { transform: rotate(360deg); }
}

/* Headings & Text */
.hk-404__title {
  max-width: 20ch;
  margin-top: 0.75rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--hk-ink);
}

.hk-404__subtitle {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--hk-muted);
}

/* Action Buttons */
.hk-404__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hk-btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--hk-ink);
  font-weight: 500;
  font-size: 0.9375rem;
  border: 1px solid var(--hk-line);
  cursor: pointer;
  transition: all 0.25s var(--hk-ease);
}

.hk-btn--ghost:hover {
  background: #ffffff;
  border-color: rgba(12, 12, 12, 0.2);
  transform: translateY(-1px);
}

/* Pathways Grid (Quick Nav) */
.hk-404__pathways {
  width: 100%;
  margin-top: 4.5rem;
  text-align: left;
}

.hk-404__pathways-label {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hk-muted);
  margin-bottom: 1.5rem;
}

.hk-404__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hk-404__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hk-404__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hk-404__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--hk-radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hk-line);
  box-shadow: 0 4px 18px rgba(12, 12, 12, 0.02);
  text-decoration: none;
  color: var(--hk-ink);
  transition: transform 0.35s var(--hk-expo), box-shadow 0.35s var(--hk-expo), border-color 0.35s var(--hk-expo), background-color 0.35s var(--hk-expo);
}

.hk-404__card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  border-color: rgba(255, 80, 3, 0.4);
  box-shadow: 0 16px 36px rgba(12, 12, 12, 0.08);
}

.hk-404__card-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--hk-card-soft);
  color: var(--hk-accent);
  margin-bottom: 1.1rem;
  transition: transform 0.3s var(--hk-ease), background-color 0.3s var(--hk-ease), color 0.3s var(--hk-ease);
}

.hk-404__card:hover .hk-404__card-icon {
  transform: scale(1.1);
  background: rgba(255, 80, 3, 0.12);
  color: var(--hk-accent);
}

.hk-404__card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--hk-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hk-ink);
  margin-bottom: 0.45rem;
}

.hk-404__card-arrow {
  display: inline-block;
  color: var(--hk-accent);
  transition: transform 0.3s var(--hk-ease);
}

.hk-404__card:hover .hk-404__card-arrow {
  transform: translateX(5px);
}

.hk-404__card-desc {
  font-size: 0.875rem;
  color: var(--hk-muted);
  line-height: 1.48;
  margin: 0;
}

/* Reduced motion: no transitions or loops anywhere in the theme */
@media (prefers-reduced-motion: reduce) {
  html[data-hk-js] {
    scroll-behavior: auto;
  }

  .hk *,
  .hk *::before,
  .hk *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* Skip link: hidden until a keyboard user reaches it. */
.hk-skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--hk-ink);
  color: var(--hk-paper);
  font-size: 0.9rem;
}

/* Lite mode -------------------------------------------------------------------
   html[data-hk-lite] is set in <head> on weak devices (4 CPU cores or fewer, 4 GB
   memory or less, data saver), or later by the ribbon when it finds the device slow.
   Same design, lighter on the GPU: no live blur behind the header, the hero glows
   hold still, and the canvases draw fewer frames (assets/js). */

[data-hk-lite] .hk-header[data-scrolled],
[data-hk-lite] .hk-header[data-open] {
  background: rgba(247, 245, 242, 0.97);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

[data-hk-lite] .hk-glow {
  animation: none;
  will-change: auto;
}


/* Lite mode, continued: headline words rise without the blur, and the small
   looping details (careers illustrations, the about clock dots) hold still. */
@keyframes hk-word-lite {
  from {
    opacity: 0;
    transform: translateY(0.35em);
  }
}

[data-hk-lite] .hk-words .hk-word {
  animation-name: hk-word-lite;
}

[data-hk-lite] .cr-pulse,
[data-hk-lite] .cr-spin-origin,
[data-hk-lite] .cr-fan,
[data-hk-lite] .ab-blink {
  animation: none;
}
