/* Home: single-screen landing on the shared about.css theme; line-art railway glides into "Lewisville" on load */
.hm-page .ab-veil { background: linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.1) 75%); }
.hm-shell { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 86px clamp(16px, 4vw, 56px) 0; }
.hm-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: 1fr auto; gap: 18px 48px;
  max-width: 1360px; width: 100%; margin: 0 auto; align-items: center; }

/* entrance: staggered rise */
.hm-in { opacity: 0; transform: translateY(26px); filter: blur(6px); animation: hm-in .9s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 150ms); }
@keyframes hm-in { to { opacity: 1; transform: none; filter: none; } }

.hm-title { font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: .98; font-weight: 900; letter-spacing: -.04em; margin: 0 0 18px; }
.hm-title span { display: inline-block; }
.hm-title em { font-style: normal; color: var(--red); }
.hm-lead { color: var(--body); line-height: 1.65; font-size: 1.02rem; margin: 0 0 22px; max-width: 62ch; }
.hm-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.hm-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem;
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(22,25,28,.06); transition: transform .3s var(--ease), box-shadow .3s, background .2s, color .2s; }
.hm-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(22,25,28,.12); color: var(--red); }
.hm-btn.is-primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 12px 28px rgba(227,30,36,.3); }
.hm-btn.is-primary:hover { background: var(--red-dark); color: #fff; }
.hm-btn.is-primary span { transition: transform .3s var(--ease); }
.hm-btn.is-primary:hover span { transform: translateX(4px); }

.hm-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 640px; }
.hm-products a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; text-decoration: none; font-weight: 500; font-size: .9rem; line-height: 1.25;
  background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 6px 18px rgba(22,25,28,.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.hm-products a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.hm-products a:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(22,25,28,.12); }
.hm-products a:hover::after { transform: scaleX(1); }
.hm-products b { color: var(--red); font-size: .78rem; letter-spacing: .1em; }

/* photo deck: 3D stacked cards that rotate through */
.hm-deck { position: relative; height: min(52vh, 440px); perspective: 1400px; }
.hm-card { position: absolute; inset: 0; margin: 0; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(22,25,28,.18);
  transform-origin: 50% 100%; transition: transform 1s var(--ease), opacity 1s var(--ease), filter 1s; }
.hm-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; }
.hm-card.is-on img { transform: scale(1); }
.hm-card figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.94); font-size: .85rem; font-weight: 500;
  border-left: 3px solid var(--red); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.hm-card[data-pos="0"] { transform: translate3d(0,0,0) rotateY(-6deg); z-index: 3; }
.hm-card[data-pos="1"] { transform: translate3d(34px,-26px,-90px) rotateY(-10deg); z-index: 2; opacity: .85; filter: saturate(.6) brightness(1.05); }
.hm-card[data-pos="2"] { transform: translate3d(66px,-50px,-180px) rotateY(-14deg); z-index: 1; opacity: .6; filter: saturate(.3) brightness(1.1); }
.hm-card.is-leaving { transform: translate3d(-60px,40px,120px) rotateY(8deg) rotateZ(-4deg) !important; opacity: 0 !important; z-index: 4; }
.hm-dots { position: absolute; right: 16px; bottom: 16px; z-index: 5; display: flex; gap: 6px; }
.hm-dots button { width: 26px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: rgba(255,255,255,.7); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: background .3s, width .3s; }
.hm-dots button[aria-selected="true"] { background: var(--red); width: 40px; }

/* bottom strip */
.hm-strip { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto auto; gap: 22px; align-items: center; padding: 16px 22px; border-radius: 22px;
  background: rgba(255,255,255,.86); box-shadow: 0 1px 2px rgba(22,25,28,.05), 0 16px 40px rgba(22,25,28,.09); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hm-strip p { margin: 0; color: var(--body); font-size: .9rem; line-height: 1.55; }
.hm-since { padding-right: 22px; border-right: 1px solid var(--line); }
.hm-since b { display: block; font-size: 2rem; font-weight: 900; color: var(--red); line-height: 1; letter-spacing: -.02em; }
.hm-since span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hm-follow { display: flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hm-follow a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); background: #fff; transition: all .2s; }
.hm-follow a:hover { background: var(--red); border-color: var(--red); color: #fff; }

.hm-foot { max-width: 1360px; width: 100%; margin: 12px auto 0; padding: 12px 0 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); }
.hm-foot a { text-decoration: none; } .hm-foot a:hover { color: var(--red); }

@media (max-width: 1100px) { .hm-strip { grid-template-columns: auto 1fr; } .hm-strip .hm-btn, .hm-follow { grid-column: auto; } }
@media (max-width: 900px) {
  .hm-grid { grid-template-columns: 1fr; }
  .hm-deck { height: 300px; order: -1; margin-top: 8px; }
  .hm-products { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .hm-strip { grid-template-columns: 1fr; } .hm-since { border: 0; padding: 0; } .hm-foot { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .hm-in { animation: none; opacity: 1; transform: none; filter: none; } .hm-card, .hm-card img { transition: none; } }
@media (min-width: 901px) and (max-height: 800px) {
  .hm-shell { padding-top: 74px; }
  .hm-title { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 10px; }
  .hm-lead { font-size: .9rem; line-height: 1.5; margin-bottom: 14px; }
  .hm-cta { margin-bottom: 12px; } .hm-btn { padding: 9px 16px; }
  .hm-products a { padding: 10px 12px; font-size: .84rem; }
  .hm-deck { height: min(46vh, 360px); }
  .hm-strip { padding: 10px 18px; } .hm-strip p { font-size: .82rem; line-height: 1.45; } .hm-since b { font-size: 1.6rem; }
  .hm-foot { margin-top: 6px; padding: 8px 0 10px; }
}

/* ---- video hero (first screen), then the landing below ---- */
.hm-hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #0d0f11; }
.hm-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 72%, rgba(0,0,0,.45) 100%); }
.hm-hero-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.hm-hero-mouse { width: 26px; height: 42px; border: 2px solid #fff; border-radius: 14px; position: relative; }
.hm-hero-mouse::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--red);
  animation: ab-wheel 1.8s var(--ease) infinite; }
/* floating header over the video: no background, white tabs */
.ab-nav.is-onvideo, .ab-nav.is-onvideo.is-solid { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
.ab-nav.is-onvideo .ab-brand span, .ab-nav.is-onvideo .ab-links > a, .ab-nav.is-onvideo .ab-drop > a { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.ab-nav.is-onvideo .ab-links a:hover { color: #fff; background: rgba(255,255,255,.16); }
.ab-nav.is-onvideo .ab-links a.is-current { background: var(--red); text-shadow: none; }
.ab-nav.is-onvideo .ab-brand img { background: none; padding: 0; filter: drop-shadow(0 1px 6px rgba(0,0,0,.55)); }
.ab-nav.is-onvideo .ab-burger span { background: #fff; }
@media (max-width: 767px) { .ab-nav.is-onvideo .ab-links a { color: var(--ink); text-shadow: none; } }
/* landing entrance waits until it scrolls into view */
.has-hero .hm-in { animation-play-state: paused; }
.has-hero.hm-landing-in .hm-in { animation-play-state: running; }
/* over the video, phones keep the company name beside the logo too */
@media (max-width: 991px) { .ab-nav.is-onvideo .ab-brand span { display: inline; font-size: .82rem; line-height: 1.2; max-width: 130px; } }
