/* =========================================================
   Home page (2026-10-07). Loaded after site.css and forest-theme.css.
   Everything is scoped under body.home. Type and spacing in rem,
   widths in %. The page container (.wrap) is the only width limit.
   ========================================================= */

body.home { --hx-gold: #E0C277; --hx-cream: #FAF8F5; --hx-soft: #F1ECE3; --hx-sage: #E2D9C9; }
body.home main { font-size: 1.25rem; line-height: 1.6; }
body.home main p { color: var(--hx-soft); margin: 0; }

.hx-eyebrow {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--hx-gold); margin: 0;
}
body.home main p.hx-eyebrow { color: var(--hx-gold); }
.hx-h2 {
  font-family: var(--font-display); font-weight: 400; color: var(--hx-cream);
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.2; margin: 1rem 0 0;
}
.hx-h2--sm { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.hx-band { padding-block: clamp(4rem, 8vw, 6.5rem); }
.hx-band--a { background: #102828; }
.hx-band--b { background: #173636; }
.hx-band--c { background: #0A1B1B; }

/* ---------- Hero ---------- */
.hx-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 46rem; }
.hx-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-scrim { position: absolute; inset: 0; background: rgba(10, 27, 27, 0.62); }
.hx-scrim--deep { background: rgba(10, 27, 27, 0.68); }
.hx-light {
  position: absolute; border-radius: 50%; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(closest-side, rgba(240, 226, 170, 0.55), rgba(240, 226, 170, 0));
}
.hx-light--a { width: 46%; height: 70%; left: 48%; top: -12%; }
.hx-light--b { width: 34%; height: 52%; left: 8%; top: 30%; }
.hx-light--c { width: 40%; height: 90%; left: 55%; top: -20%; }
.hx-hero__inner { position: relative; display: flex; flex-direction: column; gap: 1.75rem; padding-block: 5rem 6rem; }
.hx-h1 {
  font-family: var(--font-display); font-weight: 400; color: var(--hx-cream); margin: 0;
  font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.14; letter-spacing: 0.01em;
}
body.home main p.hx-lede { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.55; color: var(--hx-soft); }
.hx-actions { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: 0.5rem; }

/* ---------- What I build ---------- */
.hx-intro { margin-top: 1.25rem; }
body.home main p.hx-intro { color: var(--hx-sage); }
.hx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.hx-card {
  border: 1px solid rgba(226, 217, 201, 0.28); border-radius: 3px; padding: 2.25rem 2rem;
  background: rgba(32, 76, 76, 0.28); display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.hx-card:hover { transform: translateY(-6px); border-color: rgba(226, 217, 201, 0.7); }
.hx-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1.3; color: var(--hx-cream); margin: 0; }
body.home main .hx-card p { font-size: 1.2rem; }

/* ---------- How I work ---------- */
.hx-steps { position: relative; display: flex; flex-direction: column; gap: 3.25rem; padding-left: 4.5rem; margin-top: 3.5rem; }
.hx-steps::before { content: ""; position: absolute; left: 1.2rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: rgba(226, 217, 201, 0.18); }
.hx-trunk { position: absolute; left: 1.2rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--hx-gold); transform-origin: top; }
.hx-step { position: relative; display: flex; flex-direction: column; gap: 0.75rem; }
.hx-step::before {
  content: ""; position: absolute; left: -3.95rem; top: 0.35rem; width: 1.35rem; height: 1.35rem;
  border-radius: 50%; background: #173636; border: 2px solid var(--hx-gold); box-sizing: border-box;
}
.hx-step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.25; color: var(--hx-cream); margin: 0; }

/* ---------- Background ---------- */
.hx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin: 2.5rem 0 2.75rem; }
.hx-fact { border-top: 2px solid var(--hx-gold); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.hx-fact__big { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1.1; color: var(--hx-cream); }
.hx-fact__line { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.25; color: var(--hx-cream); }
.hx-fact__cap { color: var(--hx-sage); font-size: 1.15rem; }
.hx-body p + p { margin-top: 1.25rem; }

/* ---------- When I help ---------- */
.hx-when { list-style: none; margin: 2.25rem 0 0; padding: 0; border-bottom: 1px solid rgba(226, 217, 201, 0.25); }
.hx-when li {
  display: flex; gap: 2rem; align-items: baseline; padding: 1.15rem 0; font-size: 1.2rem; line-height: 1.5;
  color: var(--hx-cream); border-top: 1px solid rgba(226, 217, 201, 0.25);
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}
.hx-when li:hover { background: rgba(250, 248, 245, 0.05); padding-left: 1.25rem; }
.hx-when__n { font-family: var(--font-display); color: var(--hx-gold); flex: 0 0 2.5rem; }

/* ---------- More from the practice ---------- */
.hx-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
body.home main a.hx-link {
  text-decoration: none; border: 1px solid rgba(226, 217, 201, 0.28); border-radius: 3px; padding: 2rem;
  display: flex; flex-direction: column; gap: 0.6rem; color: var(--hx-cream);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
body.home main a.hx-link:hover { transform: translateY(-6px); border-color: rgba(226, 217, 201, 0.7); color: var(--hx-cream); }
.hx-link__t { font-family: var(--font-display); font-size: 1.5rem; }
.hx-link__d { color: var(--hx-sage); font-size: 1.15rem; }

/* ---------- Closing band ---------- */
.hx-close { position: relative; overflow: hidden; padding-block: clamp(5rem, 10vw, 8rem); }
.hx-close__inner { position: relative; display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.hx-close h2 { font-family: var(--font-display); font-weight: 400; color: var(--hx-cream); font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.18; margin: 0; }
body.home main .hx-close p { font-size: clamp(1.15rem, 2vw, 1.4rem); }

/* ---------- Motion ---------- */
@keyframes hx-drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -2%, 0); } }
@keyframes hx-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes hx-light-a { 0%, 100% { transform: translate3d(-6%, -4%, 0) scale(1); opacity: 0.35; } 50% { transform: translate3d(8%, 6%, 0) scale(1.25); opacity: 0.6; } }
@keyframes hx-light-b { 0%, 100% { transform: translate3d(5%, 3%, 0) scale(1.1); opacity: 0.5; } 50% { transform: translate3d(-7%, -5%, 0) scale(0.9); opacity: 0.25; } }
@keyframes hx-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: no-preference) {
  .hx-drift { animation: hx-drift 46s ease-in-out infinite alternate; }
  .hx-light--a { animation: hx-light-a 19s ease-in-out infinite; }
  .hx-light--b, .hx-light--c { animation: hx-light-b 27s ease-in-out infinite; }
  .hx-in1 { animation: hx-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
  .hx-in2 { animation: hx-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both; }
  .hx-in3 { animation: hx-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.65s both; }
  .hx-in4 { animation: hx-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s both; }
  @supports (animation-timeline: view()) {
    .hx-rv { animation: hx-rise linear both; animation-timeline: view(); animation-range: entry 5% entry 45%; }
    .hx-trunk { animation: hx-grow linear both; animation-timeline: view(); animation-range: entry 10% cover 60%; }
  }
}

@media (max-width: 700px) {
  .hx-hero { min-height: 38rem; }
  .hx-steps { padding-left: 3.25rem; }
  .hx-steps::before, .hx-trunk { left: 0.6rem; }
  .hx-step::before { left: -3.3rem; }
  .hx-when li { gap: 1rem; }
}
