/* ===== Homepage — Prime Haven Market ===== */
.home { --hm-deep: #10231A; --hm-forest: #1A5D3A; --hm-leaf: #4FAF7A; --hm-gold: #F3D27A; }
.hm-wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.hm-section { padding: clamp(72px, 9vw, 128px) 0; }
.hm-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--hm-forest); margin-bottom: 14px; }
.hm-head { text-align: center; margin: 0 auto clamp(36px, 5vw, 60px); max-width: 760px; }
.hm-head.left { text-align: left; margin-left: 0; }
.hm-head h2, .hm-final h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -.035em; color: var(--color-text); margin: 0; }
.hm-btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.hm-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.hm-btn:hover svg { transform: translateX(3px); }
.hm-btn-primary { background: var(--hm-leaf); color: var(--hm-deep); box-shadow: 0 10px 30px rgba(79,175,122,.35); }
.hm-btn-primary:hover { background: #63c48d; transform: translateY(-2px); }
.hm-btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.hm-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.hm-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--hm-forest); text-decoration: none; }
.hm-link svg { width: 18px; height: 18px; transition: transform .2s; } .hm-link:hover svg { transform: translateX(4px); }
.hm-center { text-align: center; margin-top: 28px; }

/* --- Hero --- */
.hm-hero { position: relative; overflow: hidden; background: var(--hm-deep); color: #fff; padding: clamp(56px, 7vw, 96px) 0 0; }
.hm-hero-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 78% 40%, rgba(79,175,122,.28), transparent 70%), radial-gradient(40% 50% at 10% 10%, rgba(26,93,58,.6), transparent 70%); }
.hm-hero-glow::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 60% 40%, #000, transparent); mask-image: radial-gradient(70% 80% at 60% 40%, #000, transparent); }
.hm-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: min(70vh, 640px); }
.hm-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.85); }
.hm-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--hm-leaf); box-shadow: 0 0 0 4px rgba(79,175,122,.25); }
.hm-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 7.2vw, 6.2rem); line-height: .94; letter-spacing: -.045em; margin: 26px 0 22px; color: #fff; }
.hm-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--hm-leaf), #a9e3c1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; color: rgba(255,255,255,.72); max-width: 34em; margin: 0 0 34px; }
.hm-signin { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.55); }
.hm-signin a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }

.hm-hero-art { position: relative; height: clamp(380px, 46vw, 580px); }
.hm-orb { position: absolute; left: 50%; top: 46%; width: min(92%, 520px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2a7a4b, #165a35 55%, #0c3a22); box-shadow: 0 40px 120px rgba(0,0,0,.45), inset 0 0 60px rgba(0,0,0,.25); }
.hm-orb-ring { position: absolute; inset: 14px; border-radius: 50%; border: 6px solid #ABED3B; opacity: .9; }
.hm-orb-paw { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); width: 64px; height: 64px; color: #ABED3B; opacity: .9; }
.hm-orb-paw svg { width: 100%; height: 100%; fill: #ABED3B; stroke: none; }
.hm-pet { position: absolute; bottom: 21%; height: 62%; width: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); animation: hmPetIn 1s cubic-bezier(.2,1.2,.4,1) both; }
.hm-dog { left: 12%; } .hm-cat { right: 13%; height: 60%; animation-delay: .12s; }
@keyframes hmPetIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.hm-ledge { position: absolute; left: 50%; bottom: 17%; width: min(78%, 440px); height: 22px; transform: translateX(-50%); border-radius: 12px; background: linear-gradient(180deg, #0f3a24, #0a2716); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.hm-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: 13px; animation: hmFloat 6s ease-in-out infinite; }
.hm-chip b { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.hm-chip span { color: rgba(255,255,255,.75); }
.hm-chip svg { width: 18px; height: 18px; color: var(--hm-leaf); }
.hm-chip.c1 { left: 0; top: 10%; } .hm-chip.c2 { right: 0; top: 4%; animation-delay: -2s; } .hm-chip.c3 { left: 50%; bottom: 3%; transform: translateX(-50%); animation: none; white-space: nowrap; }
@keyframes hmFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hm-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(30px, 4vw, 48px) 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.hm-stats div { padding: 26px 0 30px; text-align: left; }
.hm-stats div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.1); }
.hm-stats dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.hm-stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.03em; color: #fff; }

/* --- Brands marquee --- */
.hm-brands { padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--color-border); overflow: hidden; background: #fff; }
[data-theme='dark'] .hm-brands { background: var(--color-surface); }
.hm-overline { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-faint); margin: 0 0 28px; }
.hm-mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hm-mq + .hm-mq { margin-top: 14px; }
.hm-mq-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: hmMq 60s linear infinite; }
.hm-mq.rev .hm-mq-track { animation-direction: reverse; animation-duration: 70s; }
.hm-mq span { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.02em; color: var(--color-text); opacity: .82; white-space: nowrap; }
.hm-mq i { font-style: normal; color: var(--hm-leaf); font-size: 14px; }
.hm-mq:hover .hm-mq-track { animation-play-state: paused; }
@keyframes hmMq { to { transform: translateX(-50%); } }

/* --- Departments --- */
.hm-depts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-dept { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px; min-height: 190px; border-radius: 22px; background: var(--color-surface); border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s, background .25s; }
.hm-dept:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(16,35,26,.1); border-color: var(--hm-leaf); }
.hm-dept-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #e8f3ec; color: var(--hm-forest); margin-bottom: auto; }
[data-theme='dark'] .hm-dept-ic { background: rgba(79,175,122,.14); color: var(--hm-leaf); }
.hm-dept-ic svg { width: 24px; height: 24px; }
.hm-dept-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; margin-top: 26px; }
.hm-dept-n { font-size: 14px; color: var(--color-text-muted); }
.hm-dept-go { position: absolute; right: 22px; bottom: 22px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--hm-deep); color: #fff; opacity: 0; transform: translateX(-6px); transition: all .25s; }
.hm-dept-go svg { width: 16px; height: 16px; }
.hm-dept:hover .hm-dept-go { opacity: 1; transform: none; }
.hm-dept:first-child { grid-column: span 2; background: var(--hm-deep); color: #fff; border-color: var(--hm-deep); }
.hm-dept:first-child .hm-dept-ic { background: rgba(79,175,122,.2); color: var(--hm-leaf); }
.hm-dept:first-child .hm-dept-n { color: rgba(255,255,255,.6); }
.hm-dept:first-child .hm-dept-go { background: var(--hm-leaf); color: var(--hm-deep); }

/* --- Why --- */
.hm-why { background: var(--color-surface-2); }
.hm-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.hm-why-img { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px rgba(16,35,26,.18); }
.hm-why-img > img { width: 100%; height: 100%; object-fit: cover; }
.hm-why-badge { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(16,35,26,.82); backdrop-filter: blur(10px); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; }
.hm-why-badge img { width: 44px; height: 44px; border-radius: 50%; }
.hm-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.hm-points li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.hm-points li > span { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--hm-deep); color: var(--hm-leaf); }
.hm-points svg { width: 24px; height: 24px; }
.hm-points h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 6px; color: var(--color-text); }
.hm-points p { color: var(--color-text-muted); line-height: 1.6; margin: 0; }

/* --- Map --- */
.hm-map .map-zip { margin-bottom: 24px; }

/* --- Journey spacing --- */
.hm-journey { padding-top: clamp(40px, 6vw, 80px) !important; }

/* --- Final CTA --- */
.hm-final { position: relative; overflow: hidden; background: var(--hm-deep); color: #fff; padding: clamp(64px, 8vw, 110px) 0 0; }
.hm-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 85% 60%, rgba(79,175,122,.25), transparent 70%); }
.hm-final-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 30px; }
.hm-final-grid > div:first-child { padding-bottom: clamp(64px, 8vw, 110px); }
.hm-final h2 { color: #fff; }
.hm-final p { color: rgba(255,255,255,.7); font-size: 1.15rem; margin: 18px 0 30px; max-width: 32em; }
.hm-final-art { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.hm-final-art img { height: clamp(180px, 22vw, 300px); width: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.hm-final-art img + img { margin-left: -24px; height: clamp(170px, 21vw, 285px); }

/* --- Responsive --- */
@media (max-width: 999px) {
  .hm-hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 10px; }
  .hm-hero-copy { text-align: center; } .hm-lead { margin-left: auto; margin-right: auto; } .hm-cta { justify-content: center; }
  .hm-hero-art { height: clamp(320px, 80vw, 460px); }
  .hm-stats { grid-template-columns: repeat(2, 1fr); }
  .hm-stats div:nth-child(3) { padding-left: 0; border-left: 0; } .hm-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .hm-depts { grid-template-columns: repeat(2, 1fr); }
  .hm-why-grid, .hm-final-grid { grid-template-columns: 1fr; }
  .hm-why-img { aspect-ratio: 4 / 3; }
  .hm-final-grid > div:first-child { padding-bottom: 0; text-align: center; } .hm-final p { margin-left: auto; margin-right: auto; }
  .hm-head.left { text-align: center; margin-left: auto; }
}
@media (max-width: 560px) {
  .hm-btn { height: 50px; padding: 0 20px; font-size: 15px; } .hm-cta .hm-btn { flex: 1 1 100%; justify-content: center; }
  .hm-chip { padding: 9px 12px; font-size: 12px; } .hm-chip b { font-size: 18px; } .hm-chip.c3 { font-size: 11.5px; }
  .hm-depts { grid-template-columns: 1fr 1fr; gap: 10px; } .hm-dept { padding: 18px; min-height: 150px; } .hm-dept-name { font-size: 1.05rem; margin-top: 16px; } .hm-dept:first-child { grid-column: span 2; }
  .hm-stats div + div { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .hm-mq-track, .hm-chip, .hm-pet { animation: none; } }

/* --- Centered hero (no artwork) --- */
.hm-hero-grid { grid-template-columns: 1fr; text-align: center; min-height: min(64vh, 620px); }
.hm-hero-copy { max-width: 980px; margin: 0 auto; }
.hm-hero h1 { font-size: clamp(3.2rem, 9vw, 8rem); }
.hm-hero .hm-lead { margin-left: auto; margin-right: auto; max-width: 38em; }
.hm-hero .hm-cta { justify-content: center; }
.hm-hero-glow { background: radial-gradient(55% 60% at 50% 45%, rgba(79,175,122,.24), transparent 70%), radial-gradient(40% 50% at 10% 0%, rgba(26,93,58,.6), transparent 70%), radial-gradient(40% 50% at 90% 100%, rgba(26,93,58,.5), transparent 70%); }
.hm-hero-glow::after { -webkit-mask-image: radial-gradient(70% 80% at 50% 45%, #000, transparent); mask-image: radial-gradient(70% 80% at 50% 45%, #000, transparent); }

/* --- Compact departments row --- */
.hm-depts-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 34px auto 0; padding: 0 20px; max-width: 1100px; }
.hm-depts-row span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-faint); margin-right: 6px; }
.hm-depts-row a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--color-border); font-size: 14px; font-weight: 600; color: var(--color-text); text-decoration: none; transition: border-color .2s, background .2s; }
.hm-depts-row a:hover { border-color: #4FAF7A; background: #e8f3ec; }

/* --- Mascots peeking from the sides of the hero --- */
.hm-hero-grid { position: relative; }
.hm-side-pet { position: absolute; bottom: 0; height: clamp(150px, 19vw, 260px); width: auto; z-index: 1; pointer-events: none; filter: drop-shadow(0 16px 24px rgba(0,0,0,.35)); animation: hmSideIn 1s cubic-bezier(.2,1.2,.4,1) .2s both; }
.hm-side-pet.dog { left: -4%; }
.hm-side-pet.cat { right: -4%; animation-delay: .32s; }
.hm-hero-copy { position: relative; z-index: 2; }
@keyframes hmSideIn { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@media (max-width: 999px) { .hm-side-pet { height: 120px; } .hm-side-pet.dog { left: -4%; } .hm-side-pet.cat { right: -4%; } .hm-hero-grid { padding-bottom: 110px; } }
@media (max-width: 560px) { .hm-side-pet { height: 96px; } .hm-hero-grid { padding-bottom: 90px; } }
@media (prefers-reduced-motion: reduce) { .hm-side-pet { animation: none; } }

/* --- Hero photo layer --- */
.hm-hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; filter: grayscale(.2) contrast(1.05); }
.hm-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,35,26,.55), rgba(16,35,26,.85) 70%, #10231A); }

/* --- Photo bento --- */
.hm-bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 14px; }
.hm-tile { position: relative; overflow: hidden; border-radius: 24px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; text-decoration: none; background: #10231A var(--img) center / cover no-repeat; isolation: isolate; }
.hm-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10,25,17,.85)); transition: opacity .3s; }
.hm-tile::after { content: ""; position: absolute; inset: 0; z-index: -2; background: inherit; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hm-tile:hover::after { transform: scale(1.06); }
.hm-tile.t-big { grid-row: span 2; }
.hm-tile span { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #7ee2a8; }
.hm-tile b { font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.hm-tile.t-big b { font-size: clamp(1.5rem, 2.6vw, 2.2rem); max-width: 14em; }
@media (max-width: 899px) { .hm-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 180px 180px; } .hm-tile.t-big { grid-column: span 2; grid-row: auto; } }

/* --- Testimonials (hidden until real quotes are added) --- */
.hm-testi[hidden] { display: none !important; }
.hm-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hm-quotes figure { margin: 0; padding: 28px; border-radius: 22px; background: var(--color-surface); border: 1px solid var(--color-border); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.hm-quotes blockquote { margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--color-text); }
.hm-quotes figcaption b { display: block; color: var(--color-text); } .hm-quotes figcaption span { font-size: 14px; color: var(--color-text-muted); }
@media (max-width: 899px) { .hm-quotes { grid-template-columns: 1fr; } }

/* --- Why section without image --- */
.hm-why-solo { grid-template-columns: 1fr !important; max-width: 1100px; }
.hm-why-solo .hm-head.left { text-align: center; margin: 0 auto 40px; }
.hm-why-solo .hm-points { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.hm-why-solo .hm-points li { grid-template-columns: 1fr; gap: 14px; }
@media (max-width: 899px) { .hm-why-solo .hm-points { grid-template-columns: 1fr; } .hm-why-solo .hm-points li { grid-template-columns: 52px 1fr; } }

/* --- Hero mascots sit on the stats line and never cover the buttons --- */
.hm-hero-grid { padding-bottom: 0; }
.hm-side-pet { bottom: 0 !important; }
@media (max-width: 999px) {
  .hm-hero-grid { padding-bottom: 104px !important; }
  .hm-side-pet { height: 96px !important; }
  .hm-side-pet.dog { left: 0 !important; } .hm-side-pet.cat { right: 0 !important; }
}
/* mascots removed from homepage: drop reserved space */
@media (max-width: 899px) { .hm-hero .hm-wrap, .hm-hero-grid { padding-bottom: 0 !important; } }
.hm-final-grid { grid-template-columns: 1fr !important; text-align: center; justify-items: center; }
.hm-final-grid p { margin-inline: auto; }
.hm-final-grid .hm-cta { justify-content: center; }
/* breathing room under the final CTA buttons */
.hm-final { padding-bottom: clamp(56px, 8vw, 96px) !important; }
.hm-final-grid > div:first-child { padding-bottom: 0 !important; }
.hm-final { padding-bottom: clamp(64px, 8vw, 110px) !important; }
/* order terms strip */
.hm-terms { display: grid; grid-template-columns: repeat(4, 1fr); margin: 36px 0 0; border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-surface); overflow: hidden; }
.hm-terms div { padding: 18px 22px; } .hm-terms div + div { border-left: 1px solid var(--color-border); }
.hm-terms dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: 6px; }
.hm-terms dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; color: var(--color-text); }
.hm-terms small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0; color: var(--color-text-muted); }
@media (max-width: 699px) { .hm-terms { grid-template-columns: 1fr 1fr; } .hm-terms div:nth-child(3) { border-left: 0; } .hm-terms div:nth-child(n+3) { border-top: 1px solid var(--color-border); } .hm-terms div { padding: 14px 16px; } .hm-terms dd { font-size: 1.3rem; } }
/* warehouse video */
.hm-hero-photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-hero-photo { opacity: .34 !important; }
.hm-film { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 9; background: #10231A; box-shadow: 0 30px 60px rgba(16,35,26,.18); }
.hm-film video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-film::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(16,35,26,.7)); pointer-events: none; }
.hm-film-cap { position: absolute; left: 24px; bottom: 20px; z-index: 1; display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 14px; }
.hm-film-dot { width: 8px; height: 8px; border-radius: 50%; background: #4FAF7A; box-shadow: 0 0 0 4px rgba(79,175,122,.3); }
@media (max-width: 699px) { .hm-film { border-radius: 18px; aspect-ratio: 4 / 3; } .hm-film-cap { left: 14px; bottom: 12px; font-size: 12px; } }
/* How it works: static, on-brand */
.jr-static .jr-track { display: none; }
.jr-static .jr-body { display: block; }
.jr-static .jr-step { opacity: 1; transform: none; }
.jr-static .jr-step .jr-ic { background: #10231A; color: #4FAF7A; }
.jr-static .jr-step .jr-k { color: #1A5D3A; }
@media (max-width: 899px) { .jr-static .jr-steps { grid-template-columns: 1fr 1fr; } .jr-static .jr-step:last-child { grid-column: 1 / -1; } }
.hm-tile.t-top, .hm-tile.t-top::after { background-position: center 12% !important; }
.hm-tile.t-big, .hm-tile.t-big::after { background-position: center 0% !important; }
/* ===== Phone hero animation ===== */
.hm-hero-film { display: none; }
@media (max-width: 699px) {
  .hm-hero.has-film { padding-top: 0; background: linear-gradient(180deg, #16271d 0%, #1b3125 70%, #10231A 100%); }
  .hm-hero.has-film .hm-hero-glow { display: none; }
  .hm-hero.has-film .hm-hero-film { display: block; position: relative; margin: 0 auto; max-width: 520px; }
  .hm-hero.has-film .hm-hero-film video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #16271d;
    -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent); }
  /* the headline is in the video; keep the text for search engines and screen readers */
  .hm-hero.has-film .hm-kicker, .hm-hero.has-film h1, .hm-hero.has-film .hm-lead { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  .hm-hero.has-film .hm-hero-grid { min-height: 0; margin-top: -40px; }
  .hm-hero.has-film .hm-cta, .hm-hero.has-film .hm-stats { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
  .hm-hero.has-film .hm-stats { transition-delay: .15s; }
  .hm-hero.has-film.played .hm-cta, .hm-hero.has-film.played .hm-stats { opacity: 1; transform: none; }
}
@media (max-width: 699px) { .hm-hero.has-film .hm-hero-film video { aspect-ratio: 720 / 1160; object-position: center bottom; } }
/* phone hero: buttons and stats visible from the start */
@media (max-width: 699px) { .hm-hero.has-film .hm-cta, .hm-hero.has-film .hm-stats { opacity: 1 !important; transform: none !important; } }
@media (max-width: 699px) { .hm-hero.has-film .hm-hero-grid { margin-top: 10px !important; } }

/* homepage giving strip */
.hm-give { background: #10231A; color: #fff; padding: clamp(44px, 6vw, 64px) 0; }
.hm-give-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.hm-give b { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 3.8rem); letter-spacing: -.04em; color: #7ee2a8; line-height: 1; font-variant-numeric: tabular-nums; }
.hm-give .hm-give-num span { display: block; margin-top: 6px; color: rgba(255,255,255,.7); }
.hm-give p { margin: 0; max-width: 32em; color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.6; }
.hm-give a { color: #7ee2a8; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hm-give-wrap { flex-direction: column; justify-content: center; text-align: center; gap: 14px; }
.hm-give p { margin: 0 auto; }

/* ---------- Homepage: technology ---------- */
.hm-tech .hm-head p { max-width: 620px; margin: 14px auto 0; color: var(--color-text-muted); font-size: 1.08rem; line-height: 1.65; }
.hm-tech .hm-head h2 em { font-style: normal; color: var(--hm-forest, #1A5D3A); }
[data-theme='dark'] .hm-tech .hm-head h2 em { color: #7ee2a8; }
.ht-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.ht-card { display: flex; flex-direction: column; padding: 22px; border-radius: 26px; background: var(--color-surface); border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text); transition: transform .25s, box-shadow .25s; }
.ht-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(16,35,26,.12); }
.ht-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; margin: 22px 4px 8px; }
.ht-card p { margin: 0 4px 16px; color: var(--color-text-muted); line-height: 1.6; font-size: 15px; }
.ht-link { margin: auto 4px 2px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14.5px; color: #1A5D3A; }
[data-theme='dark'] .ht-link { color: #7ee2a8; }
.ht-link svg { width: 17px; height: 17px; transition: transform .2s; }
.ht-card:hover .ht-link svg { transform: translateX(4px); }
.ht-vis { position: relative; height: 170px; border-radius: 18px; background: #10231A; color: #fff; padding: 22px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.ht-vis::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 90% 0%, rgba(79,175,122,.22), transparent 70%); pointer-events: none; }
.ht-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.ht-row em { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: rgba(232,163,61,.18); color: #F3D27A; }
.ht-row.ht-sm { font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,.55); }
.ht-road { position: relative; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); margin: 10px 4px; }
.ht-fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, #4FAF7A, #e8a33d); animation: htDrive 5s cubic-bezier(.4,0,.2,1) infinite; }
.ht-truck { position: absolute; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 11px; display: grid; place-items: center; background: #e8a33d; border: 2px solid #10231A; animation: htTruck 5s cubic-bezier(.4,0,.2,1) infinite; }
.ht-truck svg { width: 19px; height: 19px; }
@keyframes htDrive { 0% { width: 6%; } 70%, 100% { width: 88%; } }
@keyframes htTruck { 0% { left: 6%; } 70%, 100% { left: 88%; } }
.ht-item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13px; font-weight: 700; }
.ht-item em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #F3D27A; grid-row: 1; grid-column: 2; }
.ht-bar { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; }
.ht-bar i { display: block; height: 100%; border-radius: 5px; background: #e8a33d; animation: htDrain 6s ease-in-out infinite; }
.ht-item.b .ht-bar i { animation-delay: -.8s; }
@keyframes htDrain { 0% { width: 55%; background: #4FAF7A; } 45% { width: 22%; background: #e8a33d; } 60% { width: 22%; background: #e8a33d; } 75%, 100% { width: 90%; background: #4FAF7A; } }
.ht-sent { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(126,226,168,.16); color: #7ee2a8; font-size: 12.5px; font-weight: 800; animation: htSent 6s ease-in-out infinite; }
.ht-sent svg { width: 14px; height: 14px; }
@keyframes htSent { 0%, 45% { opacity: 0; transform: translateY(6px); } 55%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ht-chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ht-chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); font-size: 13.5px; font-weight: 700; color: var(--color-text-muted); }
.ht-chips li:last-child { background: #10231A; border-color: #10231A; color: #7ee2a8; }
@media (max-width: 760px) { .ht-grid { grid-template-columns: 1fr; } .ht-vis { height: 150px; padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .ht-fill, .ht-truck, .ht-bar i, .ht-sent { animation: none; } .ht-fill { width: 70%; } .ht-truck { left: 70%; } .ht-sent { opacity: 1; } }
/* Bigger, easier-to-read tech visuals */
.ht-vis { height: 220px; padding: 26px 28px; gap: 18px; }
.ht-row { font-size: 18px; font-weight: 800; }
.ht-row em { font-size: 14px; padding: 7px 13px; }
.ht-row.ht-sm { font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.7); }
.ht-road { height: 8px; margin: 14px 6px; }
.ht-truck { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 14px; }
.ht-truck svg { width: 24px; height: 24px; }
.ht-item { font-size: 17px; font-weight: 800; gap: 9px 12px; }
.ht-item em { font-size: 14px; }
.ht-bar { height: 8px; }
.ht-sent { font-size: 15px; padding: 9px 15px; }
.ht-sent svg { width: 17px; height: 17px; }
.ht-card h3 { font-size: 1.6rem; }
.ht-card p { font-size: 16.5px; }
@media (max-width: 760px) { .ht-vis { height: 200px; padding: 22px; } .ht-row { font-size: 16.5px; } .ht-item { font-size: 16px; } }
.ht-row span, .ht-row em, .ht-item span { white-space: nowrap; }
@media (max-width: 760px) { .ht-row em { font-size: 13px; padding: 6px 11px; } .ht-row.ht-sm { font-size: 13.5px; } }

/* Section labels: bigger and easier to read everywhere, especially on phones */
.hm-eyebrow, .section-eyebrow { font-size: 13.5px !important; letter-spacing: .14em !important; }
[data-theme='dark'] .hm-eyebrow { color: #7ee2a8; }
.hm-overline { font-size: 14px; }
@media (max-width: 760px) {
  .hm-eyebrow, .section-eyebrow { font-size: 15px !important; letter-spacing: .1em !important; line-height: 1.4; margin-bottom: 12px; }
  .hm-overline { font-size: 14.5px; letter-spacing: .1em; }
  .os-col h3, .vs-headrow > div { font-size: 13px !important; letter-spacing: .1em; }
  .sr-top span, .td-top span, .sr-sum span { font-size: 12.5px; }
}
/* Homepage tech: third card (fulfillment) */
.ht-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1060px) { .ht-grid { grid-template-columns: 1fr 1fr; } .ht-grid > :last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .ht-grid { grid-template-columns: 1fr; } .ht-grid > :last-child { grid-column: auto; } }
.ht-flow { position: relative; display: flex; align-items: center; justify-content: space-between; }
.ht-flow span { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(79,175,122,.14); color: #7ee2a8; animation: htFlow 4.5s infinite; }
.ht-flow span svg { width: 26px; height: 26px; }
.ht-flow .f2 { animation-delay: 1.5s; } .ht-flow .f3 { animation-delay: 3s; }
.ht-flow i { flex: 1; height: 4px; margin: 0 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 8px, transparent 8px 14px); background-size: 28px 100%; animation: htDash 1s linear infinite; }
@keyframes htFlow { 0%, 30% { background: #4FAF7A; color: #10231A; transform: scale(1.08); } 36%, 100% { background: rgba(79,175,122,.14); color: #7ee2a8; transform: none; } }
@keyframes htDash { to { background-position: 28px 0; } }
@media (prefers-reduced-motion: reduce) { .ht-flow span, .ht-flow i { animation: none; } }
