/*
Theme Name: HFX Research
Theme URI: https://www.hfx-research.com
Author: HFX Research B.V.
Author URI: https://www.hfx-research.com
Description: A bold, high-tech-on-rough-terrain theme for HFX Research B.V. Built for an R&D company specialising in heavy-equipment engineering, hydraulic installations and large complex hydraulic cylinders. Mobile-first, dependency-free, performance focused. Motto: keep it simple.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hfx-research
Tags: custom-colors, custom-menu, featured-images, sticky-navigation, responsive-layout, one-column, full-width-template
*/

/* =============================================================
   1. DESIGN TOKENS
   ============================================================= */
:root {
  /* Brand palette */
  --hfx-primary: #0E518D;        /* deep engineering blue */
  --hfx-primary-700: #0A3D6B;
  --hfx-primary-900: #072A4A;
  --hfx-secondary: #BF6617;      /* high-force burnt orange */
  --hfx-secondary-600: #A5560F;
  --hfx-neutral: #EDEFF0;        /* background / neutral */
  --hfx-ink: #0B1622;            /* near-black steel */
  --hfx-ink-soft: #16263A;
  --hfx-white: #FFFFFF;
  --hfx-grey-400: #9AA6B2;
  --hfx-grey-600: #5A6B7B;

  /* Typography */
  --hfx-font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --hfx-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & layout */
  --hfx-maxw: 1200px;
  --hfx-gutter: clamp(1.25rem, 4vw, 3rem);
  --hfx-radius: 14px;
  --hfx-radius-sm: 8px;

  /* Effects */
  --hfx-shadow: 0 18px 40px -18px rgba(11, 22, 34, 0.45);
  --hfx-shadow-sm: 0 8px 22px -14px rgba(11, 22, 34, 0.4);
  --hfx-ring: 0 0 0 3px rgba(14, 81, 141, 0.35);
  --hfx-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);

  /* Sticky header height (used for scroll offset) */
  --hfx-header-h: 72px;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hfx-header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--hfx-font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--hfx-ink);
  background-color: var(--hfx-neutral);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--hfx-primary);
  text-decoration: none;
  transition: color var(--hfx-transition);
}
a:hover { color: var(--hfx-secondary); }

h1, h2, h3, h4 {
  font-family: var(--hfx-font-head);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--hfx-ink);
  text-wrap: balance; /* avoid heading widows */
}

/* Interactive elements: remove tap delay, set intentional tap highlight. */
a, button, input, textarea, select, summary {
  touch-action: manipulation;
}
a, button {
  -webkit-tap-highlight-color: rgba(14, 81, 141, 0.18);
}

h1 { font-size: clamp(2.5rem, 1.6rem + 4.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem); }

p { margin: 0 0 1.1em; }

:focus-visible {
  outline: none;
  box-shadow: var(--hfx-ring);
  border-radius: 4px;
}

/* Accessibility helpers */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--hfx-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* =============================================================
   3. LAYOUT PRIMITIVES
   ============================================================= */
.hfx-container {
  width: 100%;
  max-width: var(--hfx-maxw);
  margin-inline: auto;
  padding-inline: var(--hfx-gutter);
}

.hfx-section {
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem);
}

.hfx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hfx-font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hfx-secondary-600); /* AA-compliant orange on light backgrounds */
  margin-bottom: 1rem;
}
.hfx-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
/* Brighter orange reads better (and stays high-contrast) on dark sections. */
.hfx-hero .hfx-eyebrow,
.hfx-cap .hfx-eyebrow,
.hfx-cta .hfx-eyebrow { color: var(--hfx-secondary); }

.hfx-lead {
  font-size: clamp(1.05rem, 1rem + 0.6vw, 1.35rem);
  color: var(--hfx-grey-600);
  max-width: 60ch;
}

/* =============================================================
   4. BUTTONS
   ============================================================= */
.hfx-btn {
  --_bg: var(--hfx-primary);
  --_fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--hfx-font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.6rem;
  border-radius: var(--hfx-radius-sm);
  border: 2px solid transparent;
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  transition: transform var(--hfx-transition), background var(--hfx-transition), box-shadow var(--hfx-transition);
  will-change: transform;
}
.hfx-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--hfx-shadow-sm);
  color: #fff;
}
.hfx-btn--accent { --_bg: var(--hfx-secondary); }
.hfx-btn--accent:hover { background: var(--hfx-secondary-600); }
.hfx-btn--ghost {
  --_bg: transparent;
  --_fg: var(--hfx-ink);
  border-color: rgba(11, 22, 34, 0.25);
}
.hfx-btn--ghost:hover { border-color: var(--hfx-primary); color: var(--hfx-primary); }
.hfx-btn--on-dark.hfx-btn--ghost {
  --_fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.hfx-btn--on-dark.hfx-btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.hfx-btn .hfx-btn__arrow { transition: transform var(--hfx-transition); }
.hfx-btn:hover .hfx-btn__arrow { transform: translateX(4px); }

/* =============================================================
   5. STICKY HEADER / NAV
   ============================================================= */
.hfx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 239, 240, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(11, 22, 34, 0.08);
  transition: background var(--hfx-transition), box-shadow var(--hfx-transition);
}
.hfx-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 24px -16px rgba(11, 22, 34, 0.5);
}
.hfx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hfx-header-h);
}
.hfx-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--hfx-font-head);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--hfx-ink);
}
.hfx-brand:hover { color: var(--hfx-ink); }
.hfx-brand__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--hfx-primary), var(--hfx-primary-900));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.hfx-brand__mark span { display: inline-block; transform: skewX(-8deg); }
.hfx-brand__logo { height: 38px; width: auto; display: block; }
.hfx-footer__brand .hfx-brand__logo { height: 40px; }
.hfx-brand__sub {
  display: block;
  font-family: var(--hfx-font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hfx-grey-600);
}

/* Primary menu */
.hfx-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hfx-nav__list a {
  display: inline-block;
  font-family: var(--hfx-font-head);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--hfx-ink);
  padding: 0.5rem 0.9rem;
  border-radius: 7px;
  position: relative;
}
.hfx-nav__list a:hover,
.hfx-nav__list .current-menu-item > a {
  color: var(--hfx-primary);
  background: rgba(14, 81, 141, 0.07);
}
.hfx-header__actions { display: flex; align-items: center; gap: 0.75rem; }

/* Hamburger */
.hfx-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(11,22,34,0.15);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}
.hfx-burger span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--hfx-ink);
  transition: transform var(--hfx-transition), opacity var(--hfx-transition);
}
.hfx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hfx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hfx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   6. HERO
   ============================================================= */
.hfx-hero {
  position: relative;
  color: #fff;
  background: var(--hfx-ink);
  overflow: hidden;
  isolation: isolate;
}
.hfx-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hfx-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hfx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(7, 42, 74, 0.92) 0%, rgba(11, 22, 34, 0.78) 45%, rgba(11, 22, 34, 0.45) 100%);
}
.hfx-hero__inner {
  padding-block: clamp(5rem, 4rem + 10vw, 9.5rem);
  max-width: 50rem;
}
.hfx-hero h1 { color: #fff; }
.hfx-hero h1 .hfx-accent { color: var(--hfx-secondary); }
.hfx-hero__lead {
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.4rem);
  color: rgba(255,255,255,0.86);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hfx-hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hfx-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hfx-stat__num {
  font-family: var(--hfx-font-head);
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hfx-stat__num .hfx-accent { color: var(--hfx-secondary); }
.hfx-stat__label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
}

/* =============================================================
   7. ABOUT
   ============================================================= */
.hfx-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hfx-about__media {
  position: relative;
  border-radius: var(--hfx-radius);
  overflow: hidden;
  box-shadow: var(--hfx-shadow);
}
.hfx-about__media img { aspect-ratio: 4 / 3; object-fit: cover; }
.hfx-about__badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: var(--hfx-secondary);
  color: #fff;
  font-family: var(--hfx-font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  box-shadow: var(--hfx-shadow-sm);
}
.hfx-feature-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.hfx-feature-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--hfx-ink-soft);
}
.hfx-feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 1.1rem; height: 1.1rem;
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--hfx-primary), var(--hfx-secondary));
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.85);
}

/* =============================================================
   7b. IDEA / KEEP IT SIMPLE (Brainport)
   ============================================================= */
.hfx-idea {
  border-top: 1px solid rgba(11, 22, 34, 0.07);
  background:
    radial-gradient(60% 80% at 22% 50%, rgba(255, 196, 84, 0.12) 0%, rgba(255, 196, 84, 0) 70%),
    var(--hfx-neutral);
}
.hfx-idea__inner {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  justify-items: center;
  text-align: center;
}
.hfx-idea__bulb {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.hfx-idea__bulb::before {
  content: "";
  position: absolute;
  width: 135%;
  height: 135%;
  background: radial-gradient(circle, rgba(255, 190, 74, 0.42) 0%, rgba(255, 190, 74, 0) 62%);
  z-index: 0;
}
.hfx-idea__bulb img {
  position: relative;
  z-index: 1;
  width: clamp(140px, 17vw, 210px);
  height: auto;
  animation: hfx-float 6s ease-in-out infinite;
}
@keyframes hfx-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hfx-idea__bulb img { animation: none; }
}
.hfx-idea__text { max-width: 54ch; }

@media (min-width: 760px) {
  .hfx-idea__inner { grid-template-columns: auto 1fr; text-align: left; justify-items: start; }
}

/* =============================================================
   8. CAPABILITIES (cards)
   ============================================================= */
.hfx-cap {
  background: var(--hfx-ink);
  color: #fff;
}
.hfx-cap .hfx-eyebrow { color: var(--hfx-secondary); }
.hfx-cap h2 { color: #fff; }
.hfx-cap__lead { color: rgba(255,255,255,0.78); max-width: 58ch; }
.hfx-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.75rem;
}
.hfx-card {
  background: var(--hfx-ink-soft);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--hfx-radius);
  padding: 1.75rem;
  transition: transform var(--hfx-transition), border-color var(--hfx-transition);
}
.hfx-card:hover { transform: translateY(-4px); border-color: rgba(191, 102, 23, 0.6); }
.hfx-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(14, 81, 141, 0.25);
  color: var(--hfx-secondary);
  margin-bottom: 1.1rem;
}
.hfx-card__icon svg { width: 24px; height: 24px; }
.hfx-card h3 { color: #fff; margin-bottom: 0.4rem; }
.hfx-card p { color: rgba(255,255,255,0.72); margin: 0; font-size: 0.96rem; }

/* =============================================================
   8b. SKILLS / DISCIPLINES
   ============================================================= */
.hfx-skills__head { max-width: 60ch; }
.hfx-skills__grid {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.hfx-skill {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.2rem;
  background: var(--hfx-white);
  border: 1px solid rgba(11, 22, 34, 0.09);
  border-radius: var(--hfx-radius-sm);
  transition: transform var(--hfx-transition), border-color var(--hfx-transition), box-shadow var(--hfx-transition);
}
.hfx-skill:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 81, 141, 0.35);
  box-shadow: var(--hfx-shadow-sm);
}
.hfx-skill__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(14, 81, 141, 0.08);
  color: var(--hfx-primary);
  transition: background var(--hfx-transition), color var(--hfx-transition);
}
.hfx-skill:hover .hfx-skill__icon {
  background: rgba(191, 102, 23, 0.12);
  color: var(--hfx-secondary-600);
}
.hfx-skill__icon svg { width: 24px; height: 24px; }
.hfx-skill__label {
  font-family: var(--hfx-font-head);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
  color: var(--hfx-ink);
}

/* =============================================================
   9. PROJECTS SHOWCASE
   1 main image + 2 side images + text per project
   ============================================================= */
.hfx-projects__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.hfx-project {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(11, 22, 34, 0.1);
}
.hfx-project:first-of-type { border-top: 0; padding-top: 0; }

/* Gallery: 1 main + 2 stacked side images */
.hfx-project__gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  min-height: 320px;
}
.hfx-project__img {
  position: relative;
  overflow: hidden;
  border-radius: var(--hfx-radius);
  box-shadow: var(--hfx-shadow-sm);
}
.hfx-project__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}
.hfx-project__img:hover img { transform: scale(1.06); }
.hfx-project__img--main { grid-row: 1 / span 2; }
.hfx-project__img--main img { min-height: 320px; }

.hfx-project__body { max-width: 46ch; }
.hfx-project__tag {
  display: inline-block;
  font-family: var(--hfx-font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hfx-secondary-600);
  background: rgba(191, 102, 23, 0.1);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.hfx-project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(11,22,34,0.15);
}
.hfx-project__meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hfx-grey-600);
}
.hfx-project__meta dd {
  margin: 0.15rem 0 0;
  font-family: var(--hfx-font-head);
  font-weight: 600;
  color: var(--hfx-ink);
}
/* Alternate image/text sides on wide screens */
.hfx-project--reverse .hfx-project__gallery { order: 2; }

/* =============================================================
   10. CONTACT / CTA
   ============================================================= */
.hfx-cta {
  position: relative;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(191,102,23,0.18) 0%, transparent 45%),
    linear-gradient(135deg, var(--hfx-primary) 0%, var(--hfx-primary-900) 100%);
  color: #fff;
  overflow: hidden;
}
.hfx-cta__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hfx-cta h2 { color: #fff; }
.hfx-cta p { color: rgba(255,255,255,0.85); max-width: 52ch; }
.hfx-cta__form {
  display: grid;
  gap: 0.85rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--hfx-radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  backdrop-filter: blur(6px);
}
.hfx-field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.35rem;
}
.hfx-field input,
.hfx-field textarea {
  width: 100%;
  font-family: var(--hfx-font-body);
  font-size: 1rem;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  transition: border-color var(--hfx-transition), background var(--hfx-transition);
}
.hfx-field input::placeholder,
.hfx-field textarea::placeholder { color: rgba(255,255,255,0.5); }
.hfx-field input:focus,
.hfx-field textarea:focus {
  outline: none;
  border-color: var(--hfx-secondary);
  background: rgba(255,255,255,0.12);
}

/* =============================================================
   11. FOOTER
   ============================================================= */
.hfx-footer {
  background: var(--hfx-ink);
  color: rgba(255,255,255,0.75);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}
.hfx-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hfx-footer__brand .hfx-brand { color: #fff; }
.hfx-footer__brand p { margin-top: 1rem; font-size: 0.95rem; max-width: 36ch; }
.hfx-footer h4 {
  font-family: var(--hfx-font-head);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.hfx-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.hfx-footer__menu a { color: rgba(255,255,255,0.72); font-size: 0.96rem; }
.hfx-footer__menu a:hover { color: var(--hfx-secondary); }
.hfx-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
}
.hfx-footer__motto {
  font-family: var(--hfx-font-head);
  font-style: italic;
  color: var(--hfx-secondary);
}

/* =============================================================
   12. UTILITIES & MOTION
   ============================================================= */
.hfx-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0, 0.2, 1);
}
.hfx-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hfx-reveal { opacity: 1; transform: none; }
}

/* =============================================================
   13. RESPONSIVE (mobile-first → up)
   ============================================================= */
@media (min-width: 560px) {
  .hfx-skills__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .hfx-cards { grid-template-columns: repeat(2, 1fr); }
  .hfx-cta__inner { grid-template-columns: 1.1fr 1fr; }
  .hfx-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .hfx-skills__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  .hfx-about__grid { grid-template-columns: 1fr 1fr; }
  .hfx-cards { grid-template-columns: repeat(4, 1fr); }
  .hfx-project { grid-template-columns: 1.15fr 1fr; }
  .hfx-project--reverse { grid-template-columns: 1fr 1.15fr; }
  .hfx-project--reverse .hfx-project__body { order: 1; }
  .hfx-skills__grid { grid-template-columns: repeat(6, 1fr); }
}

/* Mobile nav */
@media (max-width: 899px) {
  .hfx-burger { display: flex; }
  .hfx-nav {
    position: fixed;
    inset: var(--hfx-header-h) 0 auto 0;
    background: var(--hfx-white);
    border-bottom: 1px solid rgba(11,22,34,0.1);
    box-shadow: var(--hfx-shadow);
    transform: translateY(-120%);
    transition: transform var(--hfx-transition);
    padding: 1rem var(--hfx-gutter) 1.5rem;
    max-height: calc(100vh - var(--hfx-header-h));
    overflow-y: auto;
  }
  .hfx-nav.is-open { transform: translateY(0); }
  .hfx-nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .hfx-nav__list a { padding: 0.85rem 0.9rem; font-size: 1.05rem; }
  .hfx-header__cta-desktop { display: none; }
}

/* Desktop: nav always visible, mobile drawer styles reset. */
@media (min-width: 900px) {
  .hfx-nav { display: block !important; transform: none !important; }
}
