/* Candidate for the current theme, not installed. Motion never hides content. */
:root {
  --hmk-motion-fast: 180ms;
  --hmk-motion-base: 380ms;
  --hmk-motion-slow: 620ms;
  --hmk-motion-distance: 12px;
  --hmk-motion-ease: cubic-bezier(.22, 1, .36, 1);
}

.hmk-situations { padding: clamp(64px, 8vw, 112px) 0; background: #f4f4f0; color: #031d21; }
.hmk-situations h2 { max-width: 18ch; margin: 0 0 2rem; font-size: clamp(2.2rem, 5vw, 4.7rem); line-height: 1.06; }
.hmk-situations__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid #c8d0cc; background: #c8d0cc; }
.hmk-situations__grid article { display: flex; flex-direction: column; min-width: 0; padding: clamp(1.25rem, 2.5vw, 2.3rem); background: #fff; }
.hmk-situations__grid h3 { margin: 0 0 1rem; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.16; }
.hmk-situations__grid p { margin: 0 0 2rem; }
.hmk-situations__grid a { margin-top: auto; padding-block: .75rem; color: #053e43; font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.hmk-situations__grid a:focus-visible { outline: 3px solid #b99445; outline-offset: 3px; }

.hmk-nav-services { position: relative; }
.hmk-nav-services summary { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; list-style: none; }
.hmk-nav-services summary::-webkit-details-marker { display: none; }
.hmk-nav-services summary::after { content: '⌄'; color: #b99445; }
.hmk-nav-services[open] summary::after { transform: rotate(180deg); }
.hmk-nav-services__panel { position: absolute; z-index: 30; top: 100%; left: 0; width: min(840px, 90vw); display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; padding: 1.5rem; color: #031d21; background: #fff; border: 1px solid #c8d0cc; box-shadow: 0 18px 36px rgba(3,29,33,.15); }
.hmk-nav-services__panel > a { grid-column: 1/-1; font-weight: 800; }
.hmk-nav-services__panel div { display: flex; flex-direction: column; gap: .3rem; }
.hmk-nav-services__panel strong { margin-bottom: .4rem; color: #64552f; }
.hmk-nav-services__panel a { min-height: 36px; padding: .3rem 0; white-space: normal; }
.hmk-nav-services summary:focus-visible, .hmk-nav-services__panel a:focus-visible { outline: 3px solid #b99445; outline-offset: 3px; }

.hmk-packages { padding: clamp(64px, 8vw, 110px) 0; color: #031d21; background: #f4f4f0; }
.hmk-packages h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
.hmk-packages__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin: 2rem 0; }
.hmk-packages article { display: flex; flex-direction: column; padding: 1.5rem; background: white; border-top: 3px solid #b99445; }
.hmk-packages h3 { margin: 0 0 1rem; font-size: 1.6rem; }
.hmk-packages dl { margin: 0 0 1.5rem; }
.hmk-packages dt { margin-top: .75rem; font-weight: 800; }
.hmk-packages dd { margin: .2rem 0 0; }
.hmk-packages article > a { margin-top: auto; padding-block: .6rem; color: #053e43; font-weight: 800; text-decoration: underline; text-underline-offset: .3em; }

.hmk-b2b .page-hero, .hmk-funding .page-hero { padding: clamp(72px, 9vw, 130px) 0; }
.hmk-b2b .page-hero h1, .hmk-funding .page-hero h1 { max-width: 22ch; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.05; }
.hmk-b2b .page-hero__lead, .hmk-funding .page-hero__lead { max-width: 70ch; margin: 1.5rem 0; }
.hmk-b2b__body, .hmk-funding__body { padding: clamp(60px, 8vw, 100px) 0; }
.hmk-b2b__body:nth-child(even), .hmk-funding__body:nth-child(even) { background: #f4f4f0; }
.hmk-b2b__body h2, .hmk-funding__body h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.hmk-b2b__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.hmk-b2b__grid article { padding: 1.5rem; border-top: 3px solid #b99445; background: #fff; }
.hmk-b2b__grid h3 { font-size: 1.5rem; }
.hmk-b2b__body a:not(.button), .hmk-funding__body a:not(.button) { color: #053e43; text-decoration: underline; text-underline-offset: .25em; }
.hmk-funding__body li { margin: 0 0 1rem; }

.hmk-audit-choice { padding: clamp(50px, 7vw, 90px) 0; background: #f4f4f0; color: #031d21; }
.hmk-audit-choice h2 { margin: 0 0 1.5rem; font-size: clamp(2rem, 4vw, 3.5rem); }
.hmk-audit-choice > .shell > div { display: flex; flex-wrap: wrap; gap: .75rem; }
.hmk-audit-choice a { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem 1rem; border: 1px solid #b99445; color: #031d21; text-decoration: none; font-weight: 800; }
.hmk-audit-choice a:hover, .hmk-audit-choice a:focus-visible { background: #d9bc74; }
.hmk-audit-choice h3 { margin: 2rem 0 .75rem; }
.hmk-audit-choice p { max-width: 70ch; }

@media (prefers-reduced-motion: no-preference) {
  .hero-image { animation: hmk-image-in var(--hmk-motion-slow) ease-out both; }
  .hero-drawing { animation: hmk-line-in var(--hmk-motion-base) var(--hmk-motion-ease) 90ms both; }
  .hero h1 { animation: hmk-copy-in var(--hmk-motion-base) var(--hmk-motion-ease) 160ms both; }
  .hero-lead { animation: hmk-copy-in var(--hmk-motion-base) var(--hmk-motion-ease) 240ms both; }
  .hero .actions { animation: hmk-copy-in var(--hmk-motion-base) var(--hmk-motion-ease) 300ms both; }
  .hero-scroll i { animation: none; }

  .hmk-motion-pending { opacity: .94; transform: translateY(var(--hmk-motion-distance)); }
  .hmk-motion-pending.hmk-motion-visible { opacity: 1; transform: none; }
  .hmk-motion-pending, .hmk-motion-visible {
    transition: opacity var(--hmk-motion-base) var(--hmk-motion-ease),
      transform var(--hmk-motion-base) var(--hmk-motion-ease);
  }
  .section-rail i { transform-origin: top; transition: transform var(--hmk-motion-base) var(--hmk-motion-ease); }
  .section:not(.hmk-section-visible) .section-rail i { transform: scaleY(.65); }
  .button span[aria-hidden="true"], .text-link span[aria-hidden="true"] {
    display: inline-block; transition: transform var(--hmk-motion-fast) var(--hmk-motion-ease);
  }
  .button:hover span[aria-hidden="true"], .button:focus-visible span[aria-hidden="true"],
  .text-link:hover span[aria-hidden="true"], .text-link:focus-visible span[aria-hidden="true"] {
    transform: translateX(3px);
  }
  .catalog-card, .service-list article { transition: transform var(--hmk-motion-fast) var(--hmk-motion-ease), box-shadow var(--hmk-motion-fast) ease; }
  @media (hover: hover) and (pointer: fine) {
    .catalog-card:hover, .service-list article:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(3, 29, 33, .08); }
    .project-showcase .kb-media img:hover { transform: scale(1.02); }
  }
}

@keyframes hmk-image-in { from { opacity: .82; } to { opacity: 1; } }
@keyframes hmk-line-in { from { opacity: .25; } to { opacity: 1; } }
@keyframes hmk-copy-in { from { opacity: .86; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* The full process remains readable before JavaScript runs. */
.hmk-process { --hmk-progress: 0; border-top: 1px solid rgba(255,255,255,.3); }
.hmk-process__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 0; list-style: none; }
.hmk-process__steps button { width: 100%; min-height: 48px; padding: .8rem 1rem; text-align: left; cursor: pointer; border: 1px solid currentColor; background: transparent; color: inherit; }
.hmk-process__steps button[aria-selected="true"] { background: #d9bc74; color: #031d21; }
.hmk-process__line { height: 2px; background: rgba(255,255,255,.3); margin: 1rem 0 2rem; }
.hmk-process__line::after { content: ""; display: block; width: 100%; height: 100%; background: #d9bc74; transform: scaleX(var(--hmk-progress)); transform-origin: left; transition: transform var(--hmk-motion-base) var(--hmk-motion-ease); }
.hmk-process__panel { max-width: 42rem; padding: 1rem 0 1.5rem; }
.hmk-process__panel h3 { margin: .5rem 0; }
.hmk-process__panel[hidden] { display: none; }

.hmk-compare { position: relative; }
.hmk-compare__view { position: relative; aspect-ratio: var(--hmk-aspect, 16 / 9); overflow: hidden; background: #031d21; }
.hmk-compare__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hmk-compare__after { clip-path: inset(0 calc(100% - var(--hmk-split, 50%)) 0 0); }
.hmk-compare input[type="range"] { width: 100%; min-height: 44px; margin: .75rem 0; accent-color: #b99445; }
.hmk-compare__labels { display: flex; justify-content: space-between; gap: 1rem; }

.hmk-hotspots__image { position: relative; }
.hmk-hotspots__image img { display: block; width: 100%; height: auto; }
.hmk-hotspots__marker { position: absolute; left: var(--hmk-x); top: var(--hmk-y); transform: translate(-50%, -50%); min-width: 44px; min-height: 44px; border: 2px solid #fff; border-radius: 50%; color: #031d21; background: #d9bc74; cursor: pointer; }
.hmk-hotspots__marker[aria-expanded="true"] { outline: 3px solid #031d21; }
.hmk-hotspots__details { margin: 1rem 0; padding: 1rem; border-left: 3px solid #b99445; background: #f4f4f0; color: #031d21; }
.hmk-hotspots__details[hidden] { display: none; }

@media (max-width: 680px) {
  .hmk-situations__grid { grid-template-columns: 1fr; }
  .hmk-packages__grid { grid-template-columns: 1fr; }
  .hmk-b2b__grid { grid-template-columns: 1fr; }
  .hmk-process__steps { grid-template-columns: 1fr; }
  .hmk-process__line { width: 2px; height: 2rem; }
  .hmk-process__line::after { transform: scaleY(var(--hmk-progress)); transform-origin: top; }
}
@media (max-width: 900px) {
  .hmk-nav-services summary { width: 100%; padding: 1rem 0; font-size: 16px; }
  .hmk-nav-services__panel { position: static; width: 100%; grid-template-columns: 1fr; padding: .5rem 0 1rem; box-shadow: none; border: 0; }
  .hmk-nav-services__panel div { padding: .5rem 0; border-top: 1px solid #c8d0cc; }
  .hmk-nav-services__panel a { min-height: 44px; }
}
@media (min-width: 681px) and (max-width: 1000px) {
  .hmk-situations__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hmk-packages__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hmk-b2b__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-image, .hero-drawing, .hero h1, .hero-lead, .hero .actions, .hero-scroll i { animation: none !important; }
  .hmk-motion-pending, .hmk-motion-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hmk-process__line::after { transition: none; }
}
