/* ══════════════════════════════════════════════
   HOME.CSS — Homepage-specific styles (v1)
   Extends style.css. Scoped to homepage sections.
══════════════════════════════════════════════ */

/* ── Shared overrides for homepage only ── */
:root {
  --hm-serif: 'Manrope', 'Inter', sans-serif;
  --hm-sans:  'Inter', 'Manrope', sans-serif;
  --hm-canvas: #FCFAF6;
  --hm-line:   #E2DBD2;
  --hm-muted:  #7D756D;
}

/* ── Brand rail ── */
.hm-brand-rail {
  background: var(--espresso);
  color: #C9B5A3;
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; padding: 10px 40px;
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
}
.hm-brand-rail a {
  color: var(--wheat); text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
.hm-brand-rail a:hover { color: #fff; }
.hm-rail-center { display: flex; align-items: center; gap: 10px; }
.hm-rail-center i {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--copper); flex-shrink: 0;
}
@media (max-width: 700px) {
  .hm-brand-rail { display: none; }
}

/* reset section padding for homepage sections */
.hm-section { padding: 108px 0; }
.hm-section-sm { padding: 0; }

/* ── Eyebrow ── */
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 750; font-size: 10px; letter-spacing: .20em;
  line-height: 1.5; color: var(--copper); text-transform: uppercase;
}
.hm-eyebrow-line::before {
  content: ''; display: inline-block;
  width: 36px; height: 1px; background: var(--copper);
}
.hm-eyebrow.light { color: #DAB786; }
.hm-eyebrow.dark  { color: var(--copper-dim); }

/* ── Text link ── */
.hm-text-link {
  display: inline-flex; gap: 15px; align-items: center;
  padding-bottom: 5px; border-bottom: 1px solid var(--copper);
  font-size: 12px; font-weight: 750; color: var(--copper-dim);
  transition: gap .2s; text-decoration: none;
}
.hm-text-link:hover { gap: 24px; }
.hm-text-link.light-link { color: var(--wheat); border-color: var(--wheat); }
.hm-text-link span { font-size: 18px; font-weight: 400; }

/* ── Buttons ── */
.hm-btn {
  display: inline-flex; justify-content: space-between; align-items: center;
  gap: 22px; padding: 15px 20px; min-height: 51px;
  font-size: 13px; font-weight: 700;
  transition: background .2s, border-color .2s, transform .2s;
  border: 1px solid transparent; border-radius: 3px;
  text-decoration: none; cursor: pointer;
}
.hm-btn span { font-size: 19px; font-weight: 400; }
.hm-btn:hover { transform: translateY(-2px); }
.hm-btn.primary { background: var(--copper); color: #fff; }
.hm-btn.primary:hover { background: var(--copper-dim); }
.hm-btn.secondary { border-color: #C6B7A8; color: var(--espresso); }
.hm-btn.secondary:hover { background: #F1EAE1; }
.hm-btn.outline { background: transparent; border-color: #C9B9A7; color: var(--espresso); }
.hm-btn.outline:hover { background: #F3ECE5; }
.hm-btn.bright { background: #DDA75D; color: #2C1A10; }
.hm-btn.bright:hover { background: #F2C381; }

/* ════════════════════════════════════════════
   1. HERO — Cinematic (shortened)
════════════════════════════════════════════ */
.hm-hero {
  position: relative;
  height: clamp(520px, 72vh, 760px);
  overflow: hidden;
  isolation: isolate;
  display: flex; align-items: flex-end;
}

/* Background image layer — no fixed attachment (Safari/iOS breaks with filter+fixed) */
.hm-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  /* filter separated: apply subtle darkness via gradient overlay instead */
  z-index: 0;
}

/* Cinematic overlay: dark vignette bottom-heavy + left fade */
.hm-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right,  rgba(22,10,5,.88) 0%, rgba(22,10,5,.50) 55%, rgba(22,10,5,.18) 100%),
    linear-gradient(to top,    rgba(15,7,3,.95)  0%, rgba(15,7,3,.38) 45%, transparent 75%);
}

/* Subtle film-grain texture */
.hm-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.028'/%3E%3C/svg%3E");
  opacity: .5; pointer-events: none;
}

/* Content wrapper */
.hm-hero-copy {
  position: relative; z-index: 3;
  width: 100%;
  padding: 0 0 clamp(48px, 7vh, 90px);
}

/* Inner layout: left col content + right col meta */
.hm-hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: flex-end;
}

/* ── Left: main text ── */
.hm-hero-text {
  display: flex; flex-direction: column; align-items: flex-start;
}

.hm-hero h1 {
  font-family: var(--hm-serif);
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: 1.0; margin: 20px 0 28px;
  color: #fff;
  letter-spacing: -.048em; font-weight: 400;
}
.hm-hero h1 em {
  color: var(--wheat);
  font-style: normal; font-weight: 800;
}
.hm-hero-summary {
  font-size: 16px; line-height: 1.7; font-weight: 600;
  color: rgba(255,245,235,.82); max-width: 500px; margin-bottom: 10px;
}
.hm-hero-desc {
  color: rgba(255,245,235,.55); font-size: 14px; line-height: 1.85;
  max-width: 480px; margin-bottom: 32px;
}
.hm-hero-buttons {
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* Override button variants for dark bg */
.hm-hero .hm-btn.secondary {
  border-color: rgba(255,235,210,.45);
  color: rgba(255,245,235,.9);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(6px);
}
.hm-hero .hm-btn.secondary:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,235,210,.7);
  color: #fff;
}

/* ── Right: meta panel ── */
.hm-hero-meta {
  display: flex; flex-direction: column; gap: 24px;
  align-items: flex-start;
}
.hm-hero-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 16px;
  border-left: 2px solid rgba(213,174,112,.45);
}
.hm-hero-stat-num {
  font-family: var(--hm-serif);
  font-size: 38px; line-height: 1; font-weight: 800;
  color: var(--wheat); letter-spacing: -.03em;
}
.hm-hero-stat-label {
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,245,235,.5);
}

/* ── Bottom bar ── */
.hm-hero-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 40px;
  border-top: 1px solid rgba(255,235,210,.10);
  background: rgba(15,7,3,.25); backdrop-filter: blur(8px);
}
.hm-hero-micro {
  font-size: 9px; font-weight: 750; letter-spacing: .18em;
  color: rgba(255,245,235,.45); text-transform: uppercase;
}
.hm-hero-micro b { color: var(--wheat); margin: 0 8px; }
.hm-hero-scroll {
  display: flex; align-items: center; gap: 10px;
  font-size: 9px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,245,235,.45);
  text-decoration: none; transition: color .2s;
}
.hm-hero-scroll:hover { color: var(--wheat); }
.hm-hero-scroll-line {
  width: 28px; height: 1px;
  background: rgba(255,245,235,.3);
  position: relative; overflow: hidden;
}
.hm-hero-scroll-line::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%; background: var(--wheat);
  animation: scrollLine 1.8s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes scrollLine {
  0%   { left: -100%; }
  50%  { left: 0%; }
  100% { left: 100%; }
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .hm-hero {
    height: clamp(420px, 62vh, 620px);
    align-items: flex-end;
  }
  .hm-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hm-hero-meta { display: none; }
  .hm-hero h1 { font-size: clamp(36px, 10vw, 58px); }
  .hm-hero-copy { padding: 0 0 80px; }
  .hm-hero-bottom { padding: 12px 20px; }
}

/* ════════════════════════════════════════════
   2. TRUST STRIP
════════════════════════════════════════════ */
.hm-trust {
  background: #EDE7DE;
  border-bottom: 1px solid #E0D7CB;
}
.hm-trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hm-trust-grid > div {
  display: flex; align-items: center; gap: 19px;
  padding: 24px 22px;
  border-right: 1px solid #D5C8BA;
}
.hm-trust-grid > div:first-child { padding-left: 0; }
.hm-trust-grid > div:last-child  { border: none; }
.hm-trust-grid > div > span:last-child {
  font-size: 12px; color: #73665A; line-height: 1.6;
}
.hm-trust-grid b { display: block; color: var(--espresso); font-size: 14px; }
.hm-trust-icon {
  font-family: var(--hm-serif); font-size: 29px;
  font-style: normal; color: var(--copper); flex-shrink: 0;
}

/* ════════════════════════════════════════════
   2.5. FEATURED PRODUCTS — Carousel
════════════════════════════════════════════ */
.hm-featured {
  background: #FCFAF6;
  border-top: 1px solid #E8E0D4;
  border-bottom: 1px solid #E8E0D4;
  padding: 80px 0;
}

/* Header row */
.hm-featured-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 32px; margin-bottom: 32px;
}
.hm-featured-header h2 {
  font-family: var(--hm-serif);
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.12; margin: 14px 0 0;
  color: var(--espresso); font-weight: 400;
  letter-spacing: -.04em;
}
.hm-featured-header h2 em { color: var(--copper); font-style: normal; font-weight: 800; }

/* Controls: arrows + CTA */
.hm-featured-controls {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.hm-fp-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #D5C8BA;
  color: var(--espresso);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
  flex-shrink: 0;
}
.hm-fp-arrow:hover {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--wheat);
}
.hm-fp-arrow:disabled { opacity: .35; cursor: default; }

/* Scroll-snap container (IS the track) */
.hm-fp-track {
  display: flex;
  gap: 18px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  /* hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hm-fp-track::-webkit-scrollbar { display: none; }

/* Individual card — fixed width */
.hm-fp-card {
  flex: 0 0 calc(25% - 14px);   /* 4 visible on desktop */
  min-width: 220px;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #E5DED5;
  text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.hm-fp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(52,32,20,.10);
  border-color: var(--copper);
}

/* Image */
.hm-fp-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  background: #EDE7DE;
}
.hm-fp-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
  pointer-events: none;
}
.hm-fp-card:hover .hm-fp-img-wrap img { transform: scale(1.05); }
.hm-fp-img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}

/* Badges */
.hm-fp-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 3px; line-height: 1.4;
}
.hm-fp-badge.new  { background: var(--espresso); color: var(--wheat); }
.hm-fp-badge.sale { background: #C0392B; color: #fff; left: auto; right: 10px; }

/* Card body */
.hm-fp-body {
  padding: 18px 16px 20px;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.hm-fp-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  color: var(--copper); text-transform: uppercase;
}
.hm-fp-name {
  font-family: var(--hm-serif);
  font-size: 15px; font-weight: 700;
  color: var(--espresso); line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hm-fp-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.hm-fp-price { font-size: 15px; font-weight: 800; color: var(--copper-dim); }
.hm-fp-orig  { font-size: 12px; color: #B0A49A; text-decoration: line-through; }
.hm-fp-cta {
  margin-top: auto; padding-top: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--espresso); text-transform: uppercase;
  border-top: 1px solid #E8E0D4;
  display: flex; justify-content: space-between; align-items: center;
  transition: color .2s;
}
.hm-fp-card:hover .hm-fp-cta { color: var(--copper); }
.hm-fp-cta b { font-size: 14px; font-weight: 400; }

/* Dot indicators */
.hm-fp-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px;
}
.hm-fp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #D5C8BA;
  border: none; padding: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.hm-fp-dot.active {
  background: var(--copper);
  transform: scale(1.25);
}

/* Responsive — 3 visible on medium */
@media (max-width: 1100px) {
  .hm-fp-card { flex: 0 0 calc(33.333% - 12px); }
}
/* 2 visible on tablet */
@media (max-width: 768px) {
  .hm-fp-card { flex: 0 0 calc(50% - 9px); }
  .hm-featured-header { flex-wrap: wrap; gap: 16px; align-items: flex-start; }
}
/* 1.2 visible on mobile (peek next card) */
@media (max-width: 480px) {
  .hm-featured { padding: 52px 0; }
  .hm-fp-card  { flex: 0 0 calc(84vw); min-width: 0; }
  .hm-fp-track { gap: 12px; }
  .hm-fp-body  { padding: 12px 12px 14px; }
  .hm-fp-name  { font-size: 13px; }
  .hm-fp-price { font-size: 13px; }
  .hm-fp-arrow { display: none; }
  .hm-featured-controls .hm-btn { display: none; }
}

/* ════════════════════════════════════════════
   3. SOLUTIONS — "Hành trình kinh doanh"
════════════════════════════════════════════ */
.hm-solutions { background: #fff; }
.hm-section-header {
  display: flex; justify-content: space-between;
  gap: 50px; align-items: flex-end; margin-bottom: 40px;
}
.hm-section-header h2 {
  font-family: var(--hm-serif);
  font-size: clamp(38px, 4.2vw, 67px);
  line-height: 1.12; margin: 17px 0 0;
  color: var(--espresso); font-weight: 400;
  letter-spacing: -.043em;
}
.hm-section-header h2 em { color: var(--copper); font-style: normal; font-weight: 800; }
.hm-intro-aside { max-width: 330px; padding-bottom: 7px; }
.hm-intro-aside p { color: #736B62; font-size: 14px; line-height: 1.85; margin-bottom: 19px; }

.hm-solutions-grid {
  display: grid;
  grid-template-columns: 1.12fr repeat(3, 1fr);
  gap: 14px;
}
.hm-sol-card {
  min-width: 0; background: #fff;
  border: 1px solid #E5DED5;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none; color: inherit;
}
.hm-sol-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(52,32,20,.11); }
.hm-sol-img { overflow: hidden; height: 188px; background: #d3c0ac; }
.hm-sol-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.81); transition: transform .4s;
}
.hm-sol-card:hover .hm-sol-img img { transform: scale(1.04); }
.hm-sol-card.feature .hm-sol-img { height: 218px; }
.hm-sol-body { padding: 19px 21px 23px; flex: 1; }
.hm-sol-top {
  display: flex; justify-content: space-between;
  align-items: center; gap: 4px; margin-bottom: 24px;
}
.hm-sol-top > span:first-child {
  color: var(--copper); letter-spacing: .15em; font-size: 10px; font-weight: 750;
}
.hm-circle-arrow {
  display: grid; place-items: center;
  border: 1px solid #D9CCBD; border-radius: 50%;
  height: 32px; width: 32px; font-size: 15px; color: var(--copper);
  flex-shrink: 0;
}
.hm-sol-card h3 {
  font-family: var(--hm-serif); font-weight: 400; font-size: 26px;
  line-height: 1.2; color: var(--espresso);
  letter-spacing: -.035em; margin-bottom: 10px;
}
.hm-sol-card p { font-size: 12px; color: #81756B; line-height: 1.7; margin: 0; }

/* ════════════════════════════════════════════
   4. PROCESS SECTION — dark, 5 tabs
════════════════════════════════════════════ */
.hm-process {
  background: var(--espresso-deep);
  color: #fff; position: relative; overflow: hidden;
}
.hm-process::after {
  content: '05'; font-family: var(--hm-serif);
  font-size: 330px; color: rgba(255,255,255,.022);
  position: absolute; right: -15px; top: 70px; pointer-events: none;
}
.hm-process-head { display: flex; justify-content: space-between; gap: 50px; align-items: flex-end; margin-bottom: 0; }
.hm-process-head h2 {
  font-family: var(--hm-serif); font-size: clamp(38px, 4.2vw, 67px);
  line-height: 1.12; font-weight: 400; letter-spacing: -.043em;
  color: #fff; margin: 17px 0 0;
}
.hm-process-head h2 em { color: var(--wheat); font-style: normal; font-weight: 800; }
.hm-process-head > p {
  color: #C3B7AC; line-height: 1.75; font-size: 14px; max-width: 358px;
}
.hm-process-layout {
  display: grid; grid-template-columns: 38% 62%; gap: 0;
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 36px;
}
.hm-process-stages { display: flex; flex-direction: column; }
.hm-process-tab {
  display: grid; grid-template-columns: 60px 1fr 25px;
  gap: 15px; align-items: center; text-align: left; width: 100%;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.13);
  padding: 23px 25px 23px 0; background: transparent;
  color: #AFA29A; font-family: var(--hm-serif); font-size: 25px;
  transition: background .2s, color .2s; cursor: pointer;
}
.hm-process-tab:hover, .hm-process-tab.is-active {
  color: white; background: rgba(255,255,255,.045);
}
.hm-process-tab.is-active { padding-left: 14px; border-left: 2px solid var(--wheat); }
.hm-process-num { font-size: 14px; font-family: var(--hm-sans); color: var(--wheat); }
.hm-process-tab b { font: normal 18px var(--hm-sans); }
.hm-process-detail {
  display: grid; grid-template-columns: 44% 56%;
  min-height: 385px;
  margin: 25px 0 25px 24px;
  background: #EEE7DC; color: var(--espresso);
}
.hm-process-visual {
  display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, #eee5d9, #d7c6af); padding: 35px;
}
.hm-process-visual img {
  width: 85%; height: 240px;
  object-fit: cover; border-radius: 4px;
  filter: saturate(.85) contrast(1.02);
  box-shadow: 0 12px 24px rgba(50,30,20,.18);
}
.hm-process-tag {
  position: absolute; left: 19px; top: 18px;
  letter-spacing: .13em; font-size: 10px; font-weight: 700;
  color: var(--copper-dim);
}
.hm-process-detail-text {
  padding: 60px 35px;
  display: flex; flex-direction: column; justify-content: center;
}
.hm-process-detail-text h3 {
  font-family: var(--hm-serif); font-size: 34px; font-weight: 400;
  line-height: 1.22; letter-spacing: -.03em; margin-bottom: 17px;
}
.hm-process-detail-text p {
  line-height: 1.8; font-size: 13px; color: #6C6058; margin-bottom: 30px;
}
.hm-process-bottom {
  margin-top: 32px;
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  color: #C7A776; font-size: 10px; letter-spacing: .18em; font-weight: 700;
}
.hm-process-bottom .hm-line {
  height: 1px; background: rgba(207,175,124,.34); flex: 1;
}

/* ════════════════════════════════════════════
   5. EQUIPMENT — featured products
════════════════════════════════════════════ */
.hm-equipment { background: var(--hm-canvas); }
.hm-split-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 50px; margin-bottom: 40px;
}
.hm-split-head h2 {
  font-family: var(--hm-serif);
  font-size: clamp(38px, 4.2vw, 67px);
  line-height: 1.12; font-weight: 400; letter-spacing: -.043em;
  color: var(--espresso); margin: 17px 0 0;
}
.hm-split-head h2 em { color: var(--copper); font-style: normal; font-weight: 800; }

.hm-equip-layout { display: grid; grid-template-columns: 46% 54%; gap: 17px; }
.hm-equip-lead {
  background: var(--espresso); display: flex; flex-direction: column;
}
.hm-equip-lead-img { height: 270px; overflow: hidden; }
.hm-equip-lead-img img {
  height: 100%; width: 100%; object-fit: cover;
  filter: saturate(.78);
}
.hm-equip-lead-body { padding: 30px 35px 33px; color: #fff; }
.hm-equip-lead-body > span {
  font-size: 10px; font-weight: 700; letter-spacing: .15em; color: var(--wheat);
}
.hm-equip-lead-body h3 {
  font-family: var(--hm-serif); font-size: 31px; font-weight: 400;
  letter-spacing: -.035em; margin: 14px 0 10px;
}
.hm-equip-lead-body p { font-size: 13px; line-height: 1.8; color: #CFBFB3; max-width: 430px; }

.hm-equip-cats {
  background: white; border: 1px solid #E3D9CC;
  display: flex; flex-direction: column;
}
.hm-equip-item {
  display: grid; grid-template-columns: 82px 1fr 21px;
  gap: 20px; align-items: center;
  min-height: 118px; padding: 13px 26px 13px 20px;
  border-bottom: 1px solid #E7DED4;
  transition: background .2s; text-decoration: none; color: inherit;
}
.hm-equip-item:last-child { border-bottom: 0; }
.hm-equip-item:hover { background: #F9F4EC; }
.hm-equip-icon {
  height: 76px; width: 82px; background: #F2EBE2;
  display: grid; place-items: center; padding: 8px; flex-shrink: 0;
}
.hm-equip-icon svg { color: var(--copper); }
.hm-equip-item > div:nth-child(2) > span {
  letter-spacing: .13em; font-size: 9px; color: var(--copper); font-weight: 800;
}
.hm-equip-item h3 {
  font-family: var(--hm-serif); font-weight: 400; font-size: 23px;
  letter-spacing: -.02em; color: var(--espresso); margin: 5px 0;
}
.hm-equip-item p { font-size: 12px; color: #8A7E73; margin: 0; }
.hm-equip-item > b { color: var(--copper); font-size: 17px; font-weight: 400; }

/* ════════════════════════════════════════════
   6. STRATEGY SECTION
════════════════════════════════════════════ */
.hm-strategy { background: #EFE8DD; }
.hm-strategy-grid {
  display: grid; grid-template-columns: 48% 52%;
  gap: 67px; align-items: center;
}
.hm-strategy-photo { min-height: 618px; position: relative; }
.hm-strategy-photo img {
  width: 100%; height: 618px; object-fit: cover; filter: saturate(.78);
}
.hm-strategy-photo::after {
  content: ''; position: absolute; inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(27,16,9,.62));
}
.hm-strategy-photo > span {
  position: absolute; bottom: 26px; left: 29px;
  color: #fff; z-index: 1;
  font-size: 13px; letter-spacing: .2em; font-weight: 700;
}
.hm-strategy-content { padding: 15px 25px 15px 0; }
.hm-strategy-content h2 {
  font-family: var(--hm-serif);
  font-size: clamp(38px, 4.2vw, 67px);
  line-height: 1.08; font-weight: 400; letter-spacing: -.043em;
  color: var(--espresso); margin: 20px 0;
}
.hm-strategy-content h2 em { color: var(--copper); font-style: normal; font-weight: 800; }
.hm-strategy-content > p {
  max-width: 510px; line-height: 1.9; font-size: 14px; color: #6E6159;
  margin: 20px 0 27px;
}
.hm-strategy-points { margin: 20px 0 28px; }
.hm-strategy-points > div {
  display: grid; grid-template-columns: 35px 1fr;
  gap: 18px; border-top: 1px solid #D4C7B9; padding: 16px 0;
}
.hm-strategy-points > div > span {
  font: italic 23px var(--hm-serif); color: var(--copper);
}
.hm-strategy-points h3 { font-size: 14px; color: var(--espresso); margin: 0 0 4px; }
.hm-strategy-points p  { font-size: 12px; color: #7D7167; margin: 0; line-height: 1.55; }

/* ════════════════════════════════════════════
   7. ADVISOR / SELECTOR SECTION
════════════════════════════════════════════ */
.hm-selector { background: var(--hm-canvas); }
.hm-selector-shell {
  display: grid; grid-template-columns: 43% 57%;
  background: var(--espresso-deep); color: #fff;
}
.hm-selector-copy {
  padding: 63px 60px;
  background: radial-gradient(ellipse at 0 0, #65402a 0, transparent 72%);
}
.hm-selector-copy h2 {
  font-family: var(--hm-serif); font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.1; font-weight: 400; letter-spacing: -.043em;
  color: #fff; margin: 22px 0;
}
.hm-selector-copy h2 em { color: var(--wheat); font-style: normal; font-weight: 800; }
.hm-selector-copy p { color: #DAC9BB; line-height: 1.86; font-size: 14px; max-width: 350px; }
.hm-selector-copy small {
  color: #B8A395; font-size: 11px; line-height: 1.65;
  display: block; margin-top: 39px;
}
.hm-selector-form {
  padding: 38px 44px 40px;
  border-left: 1px solid rgba(255,255,255,.14);
}
.hm-selector-form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.hm-selector-form legend {
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 14px; margin-bottom: 13px;
}
.hm-selector-form legend span { font: italic 24px var(--hm-serif); color: var(--wheat); }
.hm-choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-choice {
  border: 1px solid #70584D; color: #D4BFB0;
  background: transparent; padding: 13px 15px;
  font-size: 12px; border-radius: 2px;
  cursor: pointer; transition: border-color .2s;
  font-family: inherit;
}
.hm-choice:hover { border-color: var(--wheat); }
.hm-choice.selected {
  background: #E7D3B5; color: var(--espresso);
  border-color: #E7D3B5; font-weight: 700;
}
.hm-selector-submit {
  background: var(--copper); color: #fff;
  width: 100%; margin-top: 2px; border: 0;
  font-family: inherit; cursor: pointer;
}
.hm-selector-submit:hover { background: var(--copper-dim); }
.hm-selector-result {
  margin-top: 20px; padding: 18px 20px;
  border: 1px solid rgba(217,170,108,.5);
  background: rgba(193,130,62,.1);
  line-height: 1.65; font-size: 13px;
}
.hm-selector-result strong { color: #EED3AA; }
.hm-selector-result a {
  display: inline-block; margin-top: 12px; color: var(--wheat);
  text-decoration: underline; text-underline-offset: 4px;
}

/* — Advisor result card (injected by JS) — */
#hmAdvisorResult:not([hidden]) {
  animation: adv-reveal .28s ease;
}
@keyframes adv-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.adv-res-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(213,174,112,.15);
  border: 1px solid rgba(213,174,112,.38);
  border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--wheat); margin-bottom: 13px;
}
.adv-res-title {
  font-family: var(--hm-serif);
  font-size: 19px; font-weight: 700; line-height: 1.28;
  color: #F5E6D0; margin: 0 0 10px; letter-spacing: -.02em;
}
.adv-res-desc {
  font-size: 13px; line-height: 1.75;
  color: #C5B5A4; margin: 0 0 18px;
}
.adv-res-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.adv-res-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 15px;
  border: 1px solid rgba(213,174,112,.42);
  border-radius: 3px; background: transparent;
  color: var(--wheat); font-size: 12px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}
.adv-res-btn:hover {
  background: rgba(213,174,112,.14);
  border-color: var(--wheat); color: #fff;
}
.adv-res-btn.primary {
  background: var(--copper); border-color: var(--copper); color: #fff;
}
.adv-res-btn.primary:hover {
  background: var(--copper-dim); border-color: var(--copper-dim);
}
.adv-res-note {
  font-size: 11px; color: #8A7A6C; font-style: italic;
  margin: 0; line-height: 1.5;
}

/* ════════════════════════════════════════════
   8. KNOWLEDGE / VIDEO SECTION
════════════════════════════════════════════ */
.hm-knowledge { background: #F0EBE3; }
.hm-knowledge-grid {
  display: grid; grid-template-columns: 1.28fr 1fr 1fr; gap: 18px;
}
.hm-know-card {
  min-width: 0; background: #FFFDF9;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.hm-know-media { height: 214px; position: relative; overflow: hidden; }
.hm-know-card.first .hm-know-media { height: 280px; }
.hm-know-media img {
  height: 100%; width: 100%; object-fit: cover;
  filter: saturate(.82); transition: transform .3s;
}
.hm-know-card:hover .hm-know-media img { transform: scale(1.04); }
.hm-know-play {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.7);
  color: white; background: rgba(44,25,15,.4);
  position: absolute; left: 20px; bottom: 18px; font-size: 15px;
}
.hm-know-play.text-arrow { font-size: 26px; }
.hm-know-body {
  padding: 24px 24px 27px; flex: 1;
  display: flex; flex-direction: column;
}
.hm-know-body > span {
  font-size: 10px; letter-spacing: .15em; color: var(--copper); font-weight: 750;
}
.hm-know-body h3 {
  font-family: var(--hm-serif); font-size: 24px;
  color: var(--espresso); letter-spacing: -.024em;
  line-height: 1.27; font-weight: 400; margin: 15px 0 26px;
}
.hm-know-card.first .hm-know-body h3 { font-size: 30px; }
.hm-know-body p {
  border-top: 1px solid var(--hm-line); padding-top: 14px; margin: 0;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--copper-dim); font-weight: 700;
  margin-top: auto;
}
.hm-know-body p b { font-weight: 400; }

/* ════════════════════════════════════════════
   9. CLOSING CTA SECTION
════════════════════════════════════════════ */
.hm-closing {
  padding: 90px 0;
  background: var(--espresso); color: #fff;
}
.hm-closing-grid {
  display: grid; grid-template-columns: 1fr 270px;
  gap: 60px; align-items: flex-end;
}
.hm-closing-grid h2 {
  font-family: var(--hm-serif);
  font-size: clamp(43px, 5vw, 75px);
  line-height: 1.08; font-weight: 400; letter-spacing: -.043em;
  color: white; margin: 24px 0;
}
.hm-closing-grid h2 em { color: var(--wheat); font-style: normal; font-weight: 800; }
.hm-closing-grid > div > p { font-size: 14px; color: #CAB7A8; line-height: 1.85; }
.hm-closing-action {
  display: flex; align-items: flex-start; flex-direction: column;
  gap: 20px; padding-bottom: 9px;
}
.hm-closing-action > span { letter-spacing: .16em; font-size: 9px; color: #D5AD7B; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hm-hero-copy { grid-template-columns: 50% 50%; }
  .hm-hero-text { padding-right: 23px; }
  .hm-solutions-grid { grid-template-columns: repeat(4, 1fr); }
  .hm-strategy-grid { gap: 38px; }
  .hm-strategy-content { padding-right: 0; }
}
@media (max-width: 1020px) {
  .hm-hero-copy { min-height: 595px; }
  .hm-hero-text { padding-top: 76px; }
  .hm-hero h1 { font-size: clamp(46px, 6vw, 67px); }
  .hm-hero-desc { font-size: 14px; }
  .hm-hero-summary { font-size: 17px; }
  .hm-solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-sol-card.feature .hm-sol-img,
  .hm-sol-img { height: 200px; }
  .hm-sol-card h3 { font-size: 27px; }
  .hm-process-layout { grid-template-columns: 40% 60%; }
  .hm-process-detail { grid-template-columns: 1fr; margin-left: 14px; }
  .hm-process-visual img { height: 180px; }
  .hm-process-detail-text { padding: 23px 29px; }
  .hm-process-detail-text h3 { font-size: 27px; }
  .hm-strategy-photo, .hm-strategy-photo img { height: 520px; min-height: 520px; }
  .hm-strategy-content h2 { font-size: 47px; }
  .hm-equip-layout { grid-template-columns: 1fr; }
  .hm-selector-copy { padding: 50px 33px; }
  .hm-selector-form { padding: 38px 26px; }
  .hm-knowledge-grid { gap: 12px; }
  .hm-know-body { padding: 20px; }
  .hm-know-body h3 { font-size: 22px; }
}
@media (max-width: 700px) {
  .hm-section { padding: 68px 0; }
  .hm-hero-copy { display: flex; flex-direction: column; min-height: 0; }
  .hm-hero-text { padding: 52px 0 36px; width: 100%; }
  .hm-hero h1 { font-size: clamp(42px, 10.6vw, 62px); white-space: normal; margin: 22px 0; }
  .hm-hero-summary { font-size: 16px; }
  .hm-hero-desc { font-size: 13px; }
  .hm-hero-buttons { width: 100%; }
  .hm-hero-buttons .hm-btn { flex: 1; min-width: 140px; }
  .hm-hero-media { height: 280px; width: 100%; }
  .hm-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-trust-grid > div { padding: 16px 10px; gap: 10px; border-bottom: 1px solid #D5C8BA; }
  .hm-trust-grid > div:first-child { padding-left: 10px; }
  .hm-trust-grid > div:nth-child(2) { border-right: 0; }
  .hm-trust-grid > div:nth-child(n+3) { border-bottom: 0; }
  .hm-section-header, .hm-split-head { display: block; margin-bottom: 28px; }
  .hm-section-header h2, .hm-split-head h2 { font-size: clamp(36px, 9vw, 47px); margin-top: 13px; }
  .hm-intro-aside { max-width: none; margin-top: 18px; }
  .hm-solutions-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hm-sol-img, .hm-sol-card.feature .hm-sol-img { height: 132px; }
  .hm-sol-body { padding: 13px 12px 16px; }
  .hm-sol-top { margin-bottom: 14px; }
  .hm-sol-card h3 { font-size: 21px; }
  .hm-process-head { display: block; }
  .hm-process-layout { display: block; }
  .hm-process-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hm-process-stages::-webkit-scrollbar { display: none; }
  .hm-process-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.3; padding: 17px 5px; border: 0; border-bottom: 1px solid rgba(255,255,255,.15); white-space: nowrap; scroll-snap-align: start; }
  .hm-process-tab.is-active { padding-left: 5px; border-left: 0; border-bottom: 2px solid var(--wheat); }
  .hm-process-tab b { display: none; }
  .hm-process-num { font-size: 12px; }
  .hm-process-detail { grid-template-columns: 1fr; margin: 10px 0 0; }
  .hm-process-visual { height: 220px; }
  .hm-process-visual img { height: 180px; }
  .hm-process-detail-text { padding: 22px; }
  .hm-process-detail-text h3 { font-size: 26px; }
  .hm-strategy-grid { grid-template-columns: 1fr; gap: 28px; }
  .hm-strategy-photo, .hm-strategy-photo img { height: 330px; min-height: 330px; }
  .hm-strategy-content { padding: 0; }
  .hm-strategy-content h2 { font-size: clamp(38px, 9vw, 50px); }
  .hm-selector-shell { grid-template-columns: 1fr; }
  .hm-selector-copy { padding: 35px 24px 16px; }
  .hm-selector-copy h2 { font-size: 44px; }
  .hm-selector-form { border-left: 0; padding: 22px 24px 30px; }
  .hm-knowledge-grid { grid-template-columns: 1fr 1fr; }
  .hm-know-card.first { grid-column: 1 / -1; }
  .hm-know-media, .hm-know-card.first .hm-know-media { height: 160px; }
  .hm-know-card.first .hm-know-media { height: 225px; }
  .hm-know-body { padding: 15px; }
  .hm-know-body h3, .hm-know-card.first .hm-know-body h3 { font-size: 19px; line-height: 1.3; margin: 9px 0 22px; }
  .hm-know-card.first .hm-know-body h3 { font-size: 24px; }
  .hm-closing { padding: 64px 0; }
  .hm-closing-grid { display: block; }
  .hm-closing-grid h2 { font-size: clamp(38px, 9.4vw, 52px); }
  .hm-closing-action { margin-top: 28px; }
}
/* ── 440 px: very small phones ── */
@media (max-width: 440px) {
  /* Knowledge grid → single column */
  .hm-knowledge-grid { grid-template-columns: 1fr; }
  .hm-know-card.first { grid-column: auto; }
  .hm-know-media,
  .hm-know-card.first .hm-know-media { height: 200px; }

  /* Selector section — tighter padding */
  .hm-selector-copy { padding: 28px 16px 14px; }
  .hm-selector-form { padding: 20px 16px 28px; }
  .hm-selector-copy h2 { font-size: 36px; }

  /* Equipment grid items — allow wrapping */
  .hm-equip-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hm-equip-item { padding: 16px 10px; }
}

@media (max-width: 380px) {
  .hm-solutions-grid { grid-template-columns: 1fr; }
  .hm-sol-img, .hm-sol-card.feature .hm-sol-img { height: 200px; }
  .hm-sol-card h3 { font-size: 25px; }
  .hm-hero-buttons { flex-direction: column; }
  .hm-hero-buttons .hm-btn { width: 100%; }
  /* Trust strip — full width items */
  .hm-trust-grid { grid-template-columns: 1fr; }
  .hm-trust-grid > div { border-right: 0; border-bottom: 1px solid #D5C8BA; }
  .hm-trust-grid > div:last-child { border-bottom: 0; }
}
