/* Homepage hero, version 2 (template-parts/section-hero-v2.php). Live; the previous hero is at /?hero=v1. */
.hx { position: relative; padding: calc(var(--nav-h, 130px) + 3.5rem) 2rem 0; overflow: hidden; overflow-x: clip; font-family: 'Inter', sans-serif; color: rgba(248, 244, 234, 0.88);
  background:
    radial-gradient(60% 55% at 88% 10%, rgba(201, 164, 74, 0.15) 0%, transparent 58%),
    radial-gradient(55% 50% at 4% 100%, rgba(30, 61, 47, 0.65) 0%, transparent 62%),
    linear-gradient(180deg, #0f172a 0%, #0b1222 100%); }
.hx, .hx * { box-sizing: border-box; }
.hx-inner { max-width: 1240px; margin: 0 auto; }
.hx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; align-items: center; }

/* Copy */
.hx-eyebrow { margin: 0 0 1.3rem; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gildhart-gold, #C9A44A); }
.hx-h1 { margin: 0 0 1.5rem; font-family: 'Inter', 'Outfit', sans-serif; font-size: clamp(2.6rem, 3.95vw, 3.7rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; color: #fdfbf5; text-wrap: balance; }
.hx-h1 span { display: block; }
.hx-h1 span:last-child { color: var(--gildhart-gold, #C9A44A); }
.hx-sub { margin: 0 0 2rem; max-width: 50ch; font-size: 1.125rem; font-weight: 500; line-height: 1.65; color: #dfe2e8; }
.hx-sub b { font-weight: 700; color: #fdfbf5; }
.hx-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem 1.35rem; border-radius: 10px; font-size: 0.9844rem; font-weight: 700; text-decoration: none; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.hx-btn:hover { transform: translateY(-1px); text-decoration: none; }
.hx-btn--gold { background: var(--gildhart-gold, #C9A44A); color: #0f172a; }
.hx-btn--gold:hover { background: #d9b65a; color: #0f172a; }
.hx-btn--ghost { color: #fdfbf5; border: 1px solid rgba(201, 164, 74, 0.55); }
.hx-btn--ghost:hover { color: #fdfbf5; border-color: var(--gildhart-gold, #C9A44A); }

/* Faces: the proof at the point of decision (as on The Agent) */
.hx-faces { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(201, 164, 74, 0.28); }
.hx-faces-stack { display: inline-flex; flex: none; }
.hx-faces-stack img { width: 52px; height: 52px; margin-left: -13px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; background: #1E3D2F; box-shadow: 0 0 0 2px #0e1627, 0 0 0 3.5px rgba(201, 164, 74, 0.6); }
.hx-faces-stack img:first-child { margin-left: 0; }
.hx-faces-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.hx-faces-text strong { display: block; font-family: 'Outfit', 'Inter', sans-serif; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: #fdfbf5; }
.hx-faces-text small { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: #c3c9d4; text-wrap: pretty; }

/* The site: Miles on desktop and phone (as on the case study) */
.hx-visual { position: relative; padding: 0 0 0 2.6rem; }
.hx-devices { position: relative; }
.hx-desk { border-radius: 14px; overflow: hidden; background: #ffffff; box-shadow: 0 0 0 1px rgba(201, 164, 74, 0.4), 0 50px 110px rgba(0, 0, 0, 0.6); }
.hx-desk-bar { display: flex; align-items: center; gap: 0.5rem; height: 34px; padding: 0 0.8rem; background: #f1efe9; border-bottom: 1px solid #e2ddd0; color: #5b6472; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.hx-desk-bar span { flex: 1; padding: 0.22rem 0.75rem; border-radius: 999px; background: #ffffff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #1a2b3c; }
.hx-desk img { display: block; width: 100%; height: auto; }
.hx-phone { position: absolute; left: -2.6rem; bottom: -3rem; width: 27%; border-radius: 22px; overflow: hidden; border: 6px solid #0b1120; background: #0b1120; box-shadow: 0 0 0 1px rgba(201, 164, 74, 0.45), 0 30px 60px rgba(0, 0, 0, 0.6); }
.hx-phone img { display: block; width: 100%; height: auto; aspect-ratio: 360 / 600; object-fit: cover; object-position: top; }

/* Caption under the site */
.hx-cap { margin: 1.1rem 0 0; text-align: right; }
.hx-cap a { font-size: 0.875rem; font-weight: 600; color: #c3c9d4; text-decoration: none; border-bottom: 1px solid rgba(201, 164, 74, 0.5); padding-bottom: 2px; }
.hx-cap a:hover { color: #fdfbf5; border-bottom-color: var(--gildhart-gold, #C9A44A); text-decoration: none; }

/* The results band: big numbers, as on the Miles case study */
.hx-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 4rem; padding: 0; list-style: none; border-top: 1px solid rgba(201, 164, 74, 0.32); }
.hx-proof li + li { border-left: 1px solid rgba(255, 255, 255, 0.09); }
.hx-proof-cell { display: flex; flex-direction: column; height: 100%; padding: 1.8rem 1.8rem 2.4rem; text-decoration: none; transition: background 0.2s ease; }
.hx-proof li:first-child .hx-proof-cell { padding-left: 0; }
.hx-proof-cell:hover { background: rgba(201, 164, 74, 0.05); text-decoration: none; }
.hx-proof-cell b { margin-bottom: 0.6rem; font-family: 'Outfit', 'Inter', sans-serif; font-size: clamp(2rem, 2.9vw, 2.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; color: var(--gildhart-gold, #C9A44A); }
.hx-proof-cell span { max-width: 34ch; font-size: 1rem; font-weight: 500; line-height: 1.5; color: #dfe2e8; text-wrap: pretty; }
.hx-proof-cell em { margin-top: auto; padding-top: 1rem; font-style: normal; font-size: 0.875rem; font-weight: 700; color: var(--gildhart-gold, #C9A44A); }
.hx-proof-cell em i { font-style: normal; display: inline-block; transition: transform 0.2s ease; }
.hx-proof-cell:hover em i { transform: translateX(3px); }

/* Client marks: one colour, one row, closing the hero */
.hx-marks { display: flex; align-items: center; gap: 2.5rem; padding: 1.8rem 0 2.2rem; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.hx-marks-label { flex: none; max-width: 18rem; margin: 0; font-size: 0.875rem; font-weight: 600; line-height: 1.45; color: #aab2bf; }
.hx-marks-row { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.hx-mark img { display: block; width: auto; height: 46px; opacity: 0.86; transition: opacity 0.2s ease; }
.hx-mark img:hover { opacity: 1; }
.hx-mark--slinic img { height: 56px; }
.hx-mark--raylane img { height: 52px; }
.hx-mark--superior img { height: 38px; }

/* Entrance */
@media (prefers-reduced-motion: no-preference) {
  /* Fill 'backwards': the start state holds through each delay, and once
   * done the element drops the animation, so no layer lingers to soften text. */
  .hx-copy > *, .hx-devices, .hx-cap, .hx-proof, .hx-marks { animation: hxRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
  .hx-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hx-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hx-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hx-copy > :nth-child(5) { animation-delay: 0.24s; }
  .hx-devices { animation-delay: 0.2s; }
  .hx-cap { animation-delay: 0.4s; }
  .hx-proof { animation-delay: 0.35s; }
  .hx-marks { animation-delay: 0.45s; }
}
@keyframes hxRise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 1320px) and (min-width: 1101px) {
  .hx-marks { gap: 2rem; }
  .hx-mark img { height: 40px; }
  .hx-mark--slinic img { height: 50px; }
  .hx-mark--raylane img { height: 46px; }
  .hx-mark--superior img { height: 33px; }
}
@media (max-width: 1100px) {
  .hx-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hx-visual { max-width: 720px; }
  .hx-proof { grid-template-columns: 1fr; margin-top: 3.4rem; }
  .hx-proof li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.09); }
  .hx-proof-cell, .hx-proof li:first-child .hx-proof-cell { padding: 1.4rem 0; }
  .hx-proof-cell em { padding-top: 0.7rem; }
  .hx-marks { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .hx-marks-label { max-width: none; }
  .hx-marks-row { width: 100%; }
}
@media (max-width: 760px) {
  .hx { padding: calc(var(--nav-h, 130px) + 2rem) 1.25rem 0; }
  .hx-eyebrow { font-size: 0.6875rem; margin-bottom: 1rem; }
  .hx-h1 { font-size: 2.45rem; letter-spacing: -0.04em; margin-bottom: 1.2rem; }
  .hx-sub { font-size: 1.0313rem; margin-bottom: 1.6rem; }
  .hx-ctas .hx-btn { width: 100%; }
  .hx-faces { margin-top: 1.8rem; padding-top: 1.3rem; }
  .hx-faces-stack img { width: 44px; height: 44px; margin-left: -11px; }
  .hx-faces-text strong { font-size: 1.0625rem; }
  .hx-faces-text small { font-size: 0.8438rem; }
  .hx-grid { gap: 2.4rem; }
  .hx-visual { padding: 0 0 0 1.4rem; }
  .hx-phone { left: -1.4rem; bottom: auto; top: 22%; width: 30%; border-width: 4px; border-radius: 14px; }
  .hx-devices { margin-bottom: 1.2rem; }
  .hx-marks { padding: 1.5rem 0 1.8rem; }
  .hx-marks-row { gap: 0.6rem; }
  .hx-mark img { height: 25px; }
  .hx-mark--slinic img { height: 33px; }
  .hx-mark--raylane img { height: 30px; }
  .hx-mark--superior img { height: 21px; }
  .hx-proof { margin-top: 2.6rem; }
  .hx-cap { margin-top: 0.9rem; }
}
