/* =========================================================
   FINAXIL homepage (EY-style layout)
   Loads after styles.css. Section headings are light weight,
   one gold accent, photo-led dark bands.
   ========================================================= */

.hm { padding-top: 65px; }                      /* clears the fixed 64px nav */
.hm-wrap { max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }

/* shared grade so generated images read as one set */
.hm-ph { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.06) brightness(.92); }

.hm-kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--gold); margin: 0; }
.hm-kicker--ink { color: var(--ink); }
.hm-h2 { font-family: var(--display); font-weight: 300; letter-spacing: -.01em; line-height: 1.15; margin: 0; }

.hm-btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px;
  padding: 13px 26px; border: 1.5px solid currentColor; transition: background .25s, color .25s;
}
.hm-btn--light { color: #fff; }
.hm-btn--light:hover { background: #fff; color: #111117; }
.hm-btn--ink { color: var(--ink); }
.hm-btn--ink:hover { background: var(--ink); color: #fff; }
.hm-btn--fill { background: #fff; color: #111117; border-color: #fff; }
.hm-btn--fill:hover { background: transparent; color: #fff; }
.hm-link { font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.hm-link--light { color: #fff; }

/* ---------- hero ---------- */
.hm-hero { position: relative; height: min(80vh, 660px); min-height: 480px; background: #111117; color: #fff; overflow: hidden; }
.hm-hero .hm-ph { position: absolute; inset: 0; filter: saturate(.62) contrast(1.08) brightness(.7); }
.hm-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,16,.9) 0%, rgba(10,10,16,.5) 55%, rgba(10,10,16,.12) 100%);
}
.hm-hero .hm-wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 48px; }
.hm-hero h1 {
  font-family: var(--display); font-size: clamp(34px, 4.6vw, 56px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.015em; max-width: 19ch; margin: 14px 0 18px; text-wrap: balance;
}
.hm-lead { font-size: clamp(17px, 1.45vw, 20px); font-weight: 300; line-height: 1.5; max-width: 50ch; color: #E6E6EE; margin: 0 0 30px; }
.hm-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.hm-hero__foot {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; color: #B4B4C0;
}
.hm-hero__foot a { color: #E4E4EC; }
.hm-hero__foot a:hover { color: var(--gold); }

/* ---------- dark band with photo cards ---------- */
.hm-band { background: #1C1C24; color: #fff; padding-block: 64px 76px; }
.hm-band .hm-h2 { font-size: clamp(26px, 2.6vw, 34px); color: var(--gold); margin-bottom: 34px; }
.hm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hm-card__frame { aspect-ratio: 16 / 10; overflow: hidden; background: #111117; }
.hm-card .hm-ph { transition: transform .6s ease; }
.hm-card:hover .hm-ph { transform: scale(1.04); }
.hm-card h3 { font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--gold); margin: 20px 0 10px; }
.hm-card p { font-size: 15px; color: #B4B4C0; margin: 0; }
.hm-card .hm-meta { font-size: 12.5px; color: #8C8C9A; margin-top: 14px; }

/* ---------- services as a text list ---------- */
.hm-help { padding-block: 88px; }
.hm-help__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.hm-help .hm-h2 { font-size: clamp(30px, 3.4vw, 44px); margin-top: 12px; }
.hm-help__head p { color: var(--ink-soft); font-size: 17px; max-width: 46ch; margin: 0; }
.hm-svc { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
.hm-svc a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 0; border-top: 1px solid #D9D9E1; }
.hm-svc b { font-size: 19px; font-weight: 500; }
.hm-svc span { grid-column: 1; font-size: 14.5px; color: var(--ink-soft); }
.hm-svc i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-size: 20px; color: var(--ink-soft); transition: transform .25s, color .25s; }
.hm-svc a:hover b { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.hm-svc a:hover i { transform: translateX(4px); color: var(--ink); }

/* ---------- white split (photo | text) ---------- */
.hm-split { display: grid; grid-template-columns: 1fr 1fr; background: #fff; min-height: 520px; }
.hm-split--flip .hm-split__frame { order: 2; }
.hm-split__frame { overflow: hidden; background: #111117; }
.hm-split__txt { padding: clamp(40px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hm-split .hm-h2 { font-size: clamp(28px, 3vw, 40px); max-width: 18ch; }
.hm-split__txt p { color: var(--ink-soft); font-size: 17px; max-width: 46ch; margin: 0; }
.hm-split ul { margin: 4px 0 12px; padding: 0; list-style: none; display: grid; gap: 9px; }
.hm-split li { padding-left: 18px; position: relative; font-size: 15.5px; }
.hm-split li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1.5px; background: var(--ink); }
.hm-split .hm-btn { align-self: flex-start; }

/* ---------- black band (text | photo) ---------- */
.hm-black { background: #000; color: #fff; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 460px; }
.hm-black__txt { padding: clamp(40px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.hm-black .hm-h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; max-width: 22ch; }
.hm-black__txt p { color: #B4B4C0; font-size: 17px; max-width: 48ch; margin: 0; }
.hm-black .hm-btn { align-self: flex-start; margin-top: 10px; }
.hm-black__frame { overflow: hidden; position: relative; }
.hm-black__frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0) 40%); }

/* ---------- how we work ---------- */
/* a numbered path, so it reads as a process rather than a set of cards */
.hm-how { padding-block: 84px; background: #fff; }
.hm-how .hm-h2 { font-size: clamp(28px, 3vw, 40px); margin: 12px 0 52px; max-width: 24ch; }
.hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; position: relative; }
.hm-steps::before {
  content: ""; position: absolute; left: 26px; right: 26px; top: 26px; height: 1px;
  background: repeating-linear-gradient(90deg, #C9C9D4 0 7px, transparent 7px 14px);
}
.hm-step { position: relative; }
.hm-step span {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink);
  font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--ink);
}
.hm-step h3 { font-size: 19px; font-weight: 600; margin: 22px 0 8px; }
.hm-step p { font-size: 15px; color: var(--ink-soft); margin: 0; max-width: 32ch; }

/* ---------- guides (text only) ---------- */
/* a reading list with dividers, deliberately unlike the step markers above */
.hm-guides { padding-block: 84px; background: var(--paper); }
.hm-guides .hm-h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 30px; }
.hm-glist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.hm-glist a {
  display: grid; grid-template-columns: 116px 1fr auto; align-items: baseline; gap: 0 18px;
  padding: 20px 0; border-bottom: 1px solid #D9D9E1;
}
.hm-cat { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.hm-glist h3 { font-size: 18px; font-weight: 400; line-height: 1.4; margin: 0; }
.hm-glist i { font-style: normal; font-size: 18px; color: var(--ink-soft); transition: transform .25s, color .25s; }
.hm-glist a:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.hm-glist a:hover i { transform: translateX(4px); color: var(--ink); }

/* ---------- contact ---------- */
.hm-contact { background: #1C1C24; color: #fff; padding-block: 76px; }
.hm-contact .hm-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.hm-contact .hm-h2 { font-size: clamp(30px, 3.4vw, 44px); max-width: 16ch; margin: 10px 0 16px; }
.hm-contact__lead p { color: #B4B4C0; font-size: 17px; max-width: 44ch; margin: 0; }
.hm-details { display: grid; gap: 14px; margin: 32px 0 0; }
.hm-details dt { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #8C8C9A; }
.hm-details dd { margin: 2px 0 0; font-size: 17px; }
.hm-details a:hover { color: var(--gold); }
.hm-form { display: grid; gap: 18px; background: #111117; padding: clamp(24px, 3vw, 36px); border-top: 2px solid var(--gold); }
.hm-form label { display: block; font-size: 13px; font-weight: 700; color: #B4B4C0; margin-bottom: 6px; }
.hm-form input, .hm-form textarea, .hm-form select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid #3A3A46;
  color: #fff; font: inherit; font-size: 16px; padding: 8px 0;
}
.hm-form select option { background:#111117; color:#fff; }
.hm-form input:focus, .hm-form textarea:focus, .hm-form select:focus { outline: none; border-bottom-color: var(--gold); }
.hm-form .hm-btn { justify-self: start; margin-top: 6px; cursor: pointer; font-family: inherit; }
.hm-form small { color: #8C8C9A; font-size: 12.5px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hm-cards, .hm-svc, .hm-steps { grid-template-columns: 1fr 1fr; }
  .hm-glist { grid-template-columns: 1fr; }
  .hm-steps::before { display: none; }
  .hm-help__head, .hm-split, .hm-black, .hm-contact .hm-wrap { grid-template-columns: 1fr; }
  .hm-split__frame, .hm-black__frame { aspect-ratio: 16 / 10; }
  .hm-split--flip .hm-split__frame { order: 0; }
  .hm-black__frame { order: -1; }
  .hm-black__frame::before { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 45%); }
}
@media (max-width: 600px) {
  .hm-cards, .hm-svc, .hm-glist, .hm-steps { grid-template-columns: 1fr; }
  .hm-glist a { grid-template-columns: 1fr auto; }
  .hm-cat { grid-column: 1 / -1; margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) { .hm-card .hm-ph, .hm-svc i { transition: none; } }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hm-slider { position: relative; height: min(80vh, 680px); min-height: 520px; background: #111117; color: #fff; overflow: hidden; }
.hm-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.hm-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; }
.hm-slide .hm-ph { position: absolute; inset: 0; filter: saturate(.62) contrast(1.08) brightness(.7); transform: scale(1.04); transition: transform 8s ease-out; }
.hm-slide.is-active .hm-ph { transform: scale(1); }
.hm-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,16,.92) 0%, rgba(10,10,16,.55) 55%, rgba(10,10,16,.15) 100%),
              linear-gradient(0deg, rgba(10,10,16,.75) 0%, rgba(10,10,16,0) 35%);
}
.hm-slide__body {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding-bottom: 130px;
}
.hm-slide h1, .hm-slide__title {
  font-family: var(--display); font-size: clamp(32px, 4.4vw, 54px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.015em; max-width: 19ch; margin: 12px 0 18px; text-wrap: balance;
}
.hm-slide .hm-lead { margin-bottom: 28px; }

.hm-slider__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.hm-slider__bar .hm-wrap { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; }
.hm-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); flex: 1; max-width: 1000px; }
.hm-tab {
  position: relative; background: none; border: 0; border-top: 1px solid rgba(255,255,255,.22);
  color: #A4A4B0; font: inherit; font-size: 14px; text-align: left; padding: 16px 18px 26px 0; cursor: pointer;
}
.hm-tab span { display: block; font-size: 12px; color: #8C8C9A; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.hm-tab:hover, .hm-tab.is-active { color: #fff; }
.hm-tab::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--gold);
}
.hm-tab.is-active::before { animation: hm-progress var(--hm-dur, 7s) linear forwards; }
.hm-slider.is-paused .hm-tab.is-active::before { animation-play-state: paused; }
@keyframes hm-progress { from { width: 0; } to { width: calc(100% - 18px); } }

.hm-ctrl { display: flex; align-items: center; gap: 8px; padding-top: 14px; }
.hm-ctrl button {
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.35); background: rgba(10,10,16,.35);
  color: #fff; font-size: 15px; cursor: pointer; display: grid; place-items: center;
}
.hm-ctrl button:hover { border-color: #fff; }

/* =========================================================
   INFOGRAPHIC CARDS
   ========================================================= */
.hm-card__frame--graphic { background: #111117; border: 1px solid #2A2A34; }
.hm-card__frame svg { display: block; width: 100%; height: 100%; }

@media (max-width: 980px) {
  .hm-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hm-tab { font-size: 12.5px; padding-right: 10px; }
  .hm-slide__body { padding-bottom: 150px; }
}
@media (max-width: 600px) {
  .hm-slider { height: auto; min-height: 640px; }
  .hm-tab { font-size: 0; padding: 14px 6px 18px 0; }       /* numbers only on phones */
  .hm-tab span { font-size: 12px; margin: 0; }
  .hm-ctrl button { width: 36px; height: 36px; }
  .hm-slide__body { padding-bottom: 170px; }   /* clears the 52px tab bar */
}
@media (prefers-reduced-motion: reduce) {
  .hm-slide, .hm-slide .hm-ph { transition: none; }
  .hm-tab.is-active::before { animation: none; width: calc(100% - 18px); }
}
