/* ==================================================================
 * Liafon Home (Corporate) ? page-home.php styles
 * The classic light Liafon landing design: pink/peach hero gradient,
 * rotating dashed rings around the portrait, airy naturally-scrolling
 * sections. No cinematic background on this page (the home-automation
 * tour page keeps its own).
 * ================================================================== */

.lfh-root { position: relative; background: #fff; color: #1f0644;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; }
.lfh-root h1, .lfh-root h2, .lfh-root h3, .lfh-head {
  font-family: 'Outfit', system-ui, sans-serif; }
.lfh-container { width: min(1200px, 92vw); margin-inline: auto; }
.lfh-root section[id] { position: relative; }
.lfh-sec { padding-block: clamp(3rem, 7vh, 5.5rem); }
.lfh-badge { display: inline-flex; align-items: center; gap: .45rem;
  border-radius: 999px; background: rgba(127,46,248,.1); color: #7f2ef8;
  padding: .4rem .95rem; font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; }
.lfh-badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 999px; background: #7f2ef8; }
.lfh-h2 { font-size: clamp(1.5rem, 2.6vw + .8vh, 2.55rem); font-weight: 800; line-height: 1.1; margin: .7rem 0 .6rem; }
.lfh-h2 em, .lfh-hero-h1 em { font-style: normal;
  background: linear-gradient(90deg, #7f2ef8, #a35cff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lfh-p { color: #616161; line-height: 1.55; margin: 0 0 clamp(.5rem, 1.4vh, 1rem); }
.lfh-btn { display: inline-flex; align-items: center; gap: .55rem;
  border-radius: 999px; background: linear-gradient(135deg, #7f2ef8, #6a1fe0);
  color: #fff; font-weight: 700; padding: .85rem 1.7rem; text-decoration: none;
  box-shadow: 0 18px 40px -14px rgba(127,46,248,.65);
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s cubic-bezier(.22,1,.36,1); }
.lfh-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -14px rgba(127,46,248,.8); }
.lfh-btn:active { transform: translateY(0); }
.lfh-btn-ghost { background: rgba(31,6,68,.06); color: #1f0644; box-shadow: none; }
.lfh-sec-head { text-align: center; margin-bottom: clamp(.9rem, 2.6vh, 2rem); }

/* ---------------- hero ---------------- */
.lfh-hero { background: linear-gradient(178deg, #ffc8dc 0%, #ffd9c9 38%, #ffe6cd 72%, #f6efff 100%); }
.lfh-hero-grid { display: grid; gap: clamp(1.2rem, 2.4vw, 2.5rem); align-items: center; }
@media (min-width: 64rem) { .lfh-hero-grid { grid-template-columns: 1.05fr .95fr; } }
.lfh-hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(.6rem, 1.6vh, 1.2rem); }
.lfh-hero-h1 { font-size: clamp(2rem, 3.4vw + 1.6vh, 3.6rem); font-weight: 800; line-height: 1.04; margin: 0 0 .8rem; }
.lfh-hero-h1 span, .lfh-hero-h1 em { display: block; }
.lfh-hero-sub { color: #4a3a63; font-weight: 600; margin: 0 0 clamp(.8rem, 2.2vh, 1.6rem); font-size: clamp(.85rem, 1vw + .3vh, 1.02rem); }
.lfh-hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }
.lfh-hero-art { position: relative; }
.lfh-hero-art::before { content: ""; position: absolute; right: -8%; top: 8%;
  width: 420px; height: 420px; border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,154,80,.4) 0%, rgba(255,205,160,.18) 45%, transparent 70%);
  animation: lfh-pulse 7s ease-in-out infinite; }
.lfh-hero-art::after { content: ""; position: absolute; left: -6%; bottom: -4%;
  width: 380px; height: 380px; border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle, rgba(127,46,248,.22) 0%, transparent 68%);
  animation: lfh-pulse 7s ease-in-out infinite; animation-delay: 2s; }
@keyframes lfh-pulse { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
.lfh-rings { position: relative; }
.lfh-ring { position: absolute; border-radius: 999px; pointer-events: none; }
/* keep the decorative rings inside the viewport on phones */
.lfh-hero-art { overflow: visible; }
/* keep the decorative rings inside the viewport on phones and tablets
   (the rotating dashed rings extend past the art box ? clip at hero) */
@media (max-width: 63.99rem) { .lfh-hero { overflow: hidden; } }
.lfh-ring-a { inset: -14px; border: 2px dashed rgba(127,46,248,.55); animation: lfh-spin 26s linear infinite; }
.lfh-ring-b { inset: 22px; border: 1px dashed rgba(127,46,248,.25); animation: lfh-spin-rev 34s linear infinite; }
@keyframes lfh-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes lfh-spin-rev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
.lfh-rings img { position: relative; width: 100%; height: auto; border-radius: 999px;
  box-shadow: 0 40px 80px -30px rgba(31,6,68,.5); }

/* ---------------- about ---------------- */
.lfh-about { background: linear-gradient(180deg, #f3eaff 0%, #f8f3ff 40%, #fff 100%); }
.lfh-about-grid { display: grid; gap: clamp(1.2rem, 2.2vw, 2.5rem); align-items: center; }
@media (min-width: 64rem) { .lfh-about-grid { grid-template-columns: .92fr 1.08fr; } }
.lfh-collage { display: grid; grid-template-columns: 1.35fr 1fr; border-radius: 1.4rem; overflow: hidden;
  border: 4px solid #fff; box-shadow: 0 30px 60px -24px rgba(127,46,248,.45); }
.lfh-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lfh-stat-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid rgba(127,46,248,.1); border-top: 0; padding: clamp(.55rem, 1.4vh, 1.1rem) 1rem; background: #fff; }
.lfh-stat-n { font-size: clamp(1.5rem, 2.2vh, 2.2rem); font-weight: 800; color: #7f2ef8; }
.lfh-stat-t { margin: .15rem 0 0; font-size: .85rem; color: #616161; }
.lfh-star { font-size: 1.6rem; color: #7f2ef8; }
.lfh-skill { margin-top: clamp(.5rem, 1.4vh, 1rem); }
.lfh-skill-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.lfh-skill-row .lfh-head { font-weight: 700; font-size: .95rem; }
.lfh-skill-pct { border-radius: 999px; background: #7f2ef8; color: #fff;
  font-size: .75rem; font-weight: 700; padding: .25rem .7rem; }
.lfh-skill-track { height: clamp(.5rem, 1vh, .85rem); border-radius: 999px; background: rgba(31,6,68,.08); overflow: hidden; }
.lfh-skill-track i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #7f2ef8, #a35cff); }

/* ---------------- services ---------------- */
.lfh-services { background: #fff; }
.lfh-services-grid { display: grid; gap: clamp(1.2rem, 2.2vw, 2.5rem); }
@media (min-width: 64rem) { .lfh-services-grid { grid-template-columns: .92fr 1.08fr; align-items: start; } }
.lfh-services-frame { position: relative; height: 460px; border-radius: 1.4rem; overflow: hidden;
  box-shadow: 0 36px 80px -30px rgba(31,6,68,.5); }
.lfh-services-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s; }
.lfh-services-frame img.on { opacity: 1; }
.lfh-services-frame-tint { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,6,68,.92), rgba(31,6,68,.25) 55%, transparent); }
.lfh-svc-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem;
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  border-bottom: 1px solid rgba(31,6,68,.1); padding: clamp(.45rem, 1.2vh, .8rem) 1rem; transition: background .25s; }
.lfh-svc-row:hover, .lfh-svc-row.on { background: rgba(127,46,248,.05); }
.lfh-svc-n { font-size: clamp(1.1rem, 1.8vh, 1.4rem); font-weight: 800; color: rgba(31,6,68,.35); }
.lfh-svc-row.on .lfh-svc-n { color: #7f2ef8; }
.lfh-svc-t { display: block; font-weight: 800; font-size: 1.02rem; }
.lfh-svc-d { display: block; color: #616161; font-size: .88rem; margin-top: .15rem; }
.lfh-svc-arrow { color: #7f2ef8; opacity: 0; transform: translateX(-4px); transition: all .25s; }
.lfh-svc-row.on .lfh-svc-arrow { opacity: 1; transform: none; }

/* ---------------- portfolio ---------------- */
.lfh-portfolio { background: #fff; }
.lfh-chips { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-bottom: clamp(.5rem, 1.4vh, 1.2rem); }
.lfh-chip { border: 1px solid rgba(31,6,68,.14); background: #fff; color: #1f0644;
  border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .25s; }
.lfh-chip.on, .lfh-chip:hover { background: #7f2ef8; border-color: #7f2ef8; color: #fff; }
.lfh-works { display: grid; gap: clamp(.6rem, 1.2vh, 1.2rem); grid-template-columns: repeat(2, 1fr); align-content: center; }
@media (min-width: 48rem) { .lfh-works { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .lfh-works { grid-template-columns: repeat(4, 1fr); }
  .lfh-works .lfh-work-img img { aspect-ratio: 16/8.5; }
  .lfh-work-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.lfh-work { display: block; border-radius: 1.6rem; overflow: hidden; background: #fff;
  border: 1px solid rgba(31,6,68,.08); text-decoration: none; color: inherit;
  box-shadow: 0 24px 50px -30px rgba(31,6,68,.35); transition: transform .3s; }
.lfh-work:hover { transform: translateY(-4px); }
.lfh-work.hide { display: none; }
.lfh-work-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.lfh-work-body { padding: clamp(.5rem, 1.1vh, .9rem) .8rem clamp(.55rem, 1.2vh, 1.1rem); }
.lfh-work-cat { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7f2ef8; }
.lfh-work-body h3 { margin: .3rem 0; font-size: clamp(.88rem, 1.25vh, 1.05rem); font-weight: 800; }
.lfh-work-body p { margin: 0 0 .55rem; color: #616161; font-size: clamp(.78rem, 1.05vh, .88rem); line-height: 1.45; }
.lfh-work-cta { color: #7f2ef8; font-weight: 700; font-size: .88rem; }

/* ---------------- advisory ---------------- */
.lfh-advisory { background: #f6efff; }
.lfh-advisory-grid { display: grid; gap: clamp(1.2rem, 2.2vw, 2.5rem); align-items: center; }
@media (min-width: 64rem) { .lfh-advisory-grid { grid-template-columns: 1.05fr .95fr; } }
.lfh-skills { display: flex; flex-direction: column; gap: clamp(.55rem, 1.5vh, 1.1rem); margin-top: clamp(.7rem, 1.8vh, 1.4rem); }
.lfh-advisory-art { display: flex; align-items: center; }
.lfh-advisory-art img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 1.4rem; box-shadow: 0 36px 80px -34px rgba(31,6,68,.5); }

/* ---------------- team ---------------- */
.lfh-team { background: #fff; }
.lfh-team-grid { display: grid; gap: clamp(.7rem, 1.4vh, 1.3rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .lfh-team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .lfh-team-grid { grid-template-columns: repeat(6, 1fr); } }
.lfh-member { text-align: center; border: 1px solid rgba(31,6,68,.08); border-radius: 1.2rem;
  padding: clamp(.7rem, 1.6vh, 1.5rem) .6rem; background: #fff; transition: transform .3s; }
.lfh-member:hover { transform: translateY(-4px); }
.lfh-member-ava { width: clamp(3rem, 5.4vh, 4.2rem); height: clamp(3rem, 5.4vh, 4.2rem); margin: 0 auto clamp(.4rem, 1.2vh, .9rem); display: flex; align-items: center;
  justify-content: center; border-radius: 999px; font-size: 1.3rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #7f2ef8, #6a1fe0); }
.lfh-member h3 { margin: 0 0 .15rem; font-size: clamp(.85rem, 1.3vh, 1.05rem); font-weight: 800; }
.lfh-member p { margin: 0; color: #7f2ef8; font-size: clamp(.72rem, 1vh, .85rem); font-weight: 600; }

/* ---------------- testimonials ---------------- */
.lfh-testimonials { background: #faf8ff; }
.lfh-tst-grid { display: grid; gap: clamp(.8rem, 1.6vh, 1.4rem); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .lfh-tst-grid { grid-template-columns: repeat(3, 1fr); } }
.lfh-tst { margin: 0; border: 1px solid rgba(31,6,68,.08); border-radius: 1.2rem; padding: clamp(.8rem, 1.8vh, 1.5rem); background: #fff; }
.lfh-tst blockquote { margin: clamp(.5rem, 1.3vh, 1rem) 0 clamp(.6rem, 1.4vh, 1.2rem); color: #4a3a63; line-height: 1.5; font-size: clamp(.8rem, 1.15vh, .95rem); }
.lfh-tst figcaption { display: flex; align-items: center; gap: .8rem; }
.lfh-tst-ava { width: clamp(2.2rem, 3.6vh, 2.8rem); height: clamp(2.2rem, 3.6vh, 2.8rem); display: flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #a35cff, #7f2ef8); }
.lfh-tst figcaption b { display: block; font-size: .95rem; }
.lfh-tst figcaption i { font-style: normal; color: #616161; font-size: .82rem; }

/* ---------------- blog ---------------- */
.lfh-blog { background: #fff; }
.lfh-blog-grid { display: grid; gap: clamp(.8rem, 1.6vh, 1.4rem); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .lfh-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .lfh-blog-grid { grid-template-columns: repeat(3, 1fr); }
  .lfh-blog-grid .lfh-post:nth-child(n+4) { display: none; } }
.lfh-post { display: block; text-decoration: none; color: inherit; border: 1px solid rgba(31,6,68,.08);
  border-radius: 1.6rem; overflow: hidden; background: #fff;
  box-shadow: 0 10px 30px -18px rgba(31,6,68,.18);
  transition: transform .32s cubic-bezier(.22,1,.36,1), box-shadow .32s cubic-bezier(.22,1,.36,1); }
.lfh-post:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -20px rgba(31,6,68,.3); }
.lfh-post-img { position: relative; overflow: hidden; }
.lfh-post-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1); }
.lfh-post:hover .lfh-post-img img { transform: scale(1.05); }
@media (min-width: 64rem) { .lfh-post-img img { aspect-ratio: 16/7.5; } }
.lfh-post-cat { position: absolute; left: 1rem; top: 1rem; background: #fff; color: #7f2ef8;
  border-radius: 999px; padding: .3rem .8rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.lfh-post-body { padding: clamp(.6rem, 1.4vh, 1.1rem) .9rem clamp(.7rem, 1.5vh, 1.3rem); }
.lfh-post-body h3 { margin: 0 0 .45rem; font-size: clamp(.85rem, 1.25vh, 1rem); font-weight: 800; line-height: 1.3; }
.lfh-post-meta { display: flex; gap: .5rem; color: #616161; font-size: .8rem; margin-bottom: .8rem; }
.lfh-post-cta { color: #7f2ef8; font-weight: 700; font-size: .88rem; }

/* ---------------- cta ---------------- */
.lfh-cta { background: linear-gradient(120deg, #00152d 0%, #062148 100%); color: #fff; }
.lfh-cta .lfh-h2 em { background: linear-gradient(90deg, #a35cff, #c9a4ff); -webkit-background-clip: text; background-clip: text; }
.lfh-cta-flex { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.lfh-cta h2 { font-size: clamp(1.6rem, 2.8vw + 1vh, 2.7rem); font-weight: 800; margin: 0; }

/* ---------------- contact ---------------- */
.lfh-contact { background: #f6efff; }
.lfh-contact-grid { display: grid; gap: clamp(.7rem, 1.4vh, 1.3rem); grid-template-columns: 1fr; margin-bottom: clamp(.8rem, 2vh, 1.6rem); }
@media (min-width: 48rem) { .lfh-contact-grid { grid-template-columns: repeat(3, 1fr); } }
.lfh-ccard { display: block; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid rgba(31,6,68,.08); border-radius: 1.2rem; padding: clamp(.7rem, 1.6vh, 1.5rem); transition: transform .3s; }
.lfh-ccard:hover { transform: translateY(-4px); }
.lfh-ccard-ic { display: inline-flex; width: clamp(2.2rem, 3.8vh, 3rem); height: clamp(2.2rem, 3.8vh, 3rem); align-items: center; justify-content: center;
  border-radius: .8rem; background: rgba(127,46,248,.1); color: #7f2ef8; font-size: 1.1rem; margin-bottom: clamp(.4rem, 1vh, .9rem); }
.lfh-ccard h3 { margin: 0 0 .4rem; font-size: 1.05rem; font-weight: 800; }
.lfh-ccard p { margin: 0; color: #616161; font-size: .88rem; line-height: 1.55; }
.lfh-map { border-radius: 1.6rem; overflow: hidden; border: 1px solid rgba(31,6,68,.1); }
.lfh-map iframe { width: 100%; height: 380px; border: 0; display: block; }


/* ------------- right-edge section nav lines (light page) --------- */
.lfh-scrolllines { position: fixed; right: 1.1rem; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: .8rem; }
/* phones/tablets: compact rail ? still visible so every screen can jump */
@media (max-width: 63.99rem) {
  .lfh-scrolllines { right: .55rem; gap: .5rem; }
  .lfh-scrolllines button { gap: .35rem; padding: .15rem 0; }
  .lfh-scrolllines button span { font-size: .6rem; letter-spacing: .1em; }
  .lfh-scrolllines button i { width: 1.15rem; height: 2.5px; }
  .lfh-scrolllines button.on i { width: 1.7rem; }
  /* touch devices show the ACTIVE label over content ? give it a chip */
  .lfh-scrolllines button span { padding: .18rem .45rem; border-radius: .45rem;
    background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}
.lfh-scrolllines button { display: flex; align-items: center; justify-content: flex-end; gap: .6rem;
  background: none; border: 0; padding: .2rem 0; cursor: pointer; }
.lfh-scrolllines button span { white-space: nowrap; font-size: .6rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #1f0644; opacity: 0; transform: translateX(.4rem);
  transition: opacity .35s, transform .35s; }
.lfh-scrolllines button:hover span, .lfh-scrolllines button.on span { opacity: 1; transform: none; }
.lfh-scrolllines button i { display: block; width: 2.2rem; height: 3px; border-radius: 999px;
  background: rgba(31,6,68,.22); overflow: hidden; position: relative; transition: width .35s; }
.lfh-scrolllines button.on i { width: 3.2rem; }
.lfh-scrolllines button i b { position: absolute; inset-block: 0; left: 0; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #c9a4ff, #7f2ef8); box-shadow: 0 0 12px rgba(127,46,248,.9); }

/* cross-page link row (Home Automation) ? same rail rhythm, link styling */
.lfh-scrolllines-link { display: flex; align-items: center; justify-content: flex-end; gap: .6rem;
  background: none; border: 0; padding: .2rem 0; cursor: pointer; text-decoration: none; }
.lfh-scrolllines-link span { white-space: nowrap; font-size: .6rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #7f2ef8; opacity: 0; transform: translateX(.4rem);
  transition: opacity .35s, transform .35s; display: inline-flex; align-items: center; gap: .45rem; }
.lfh-scrolllines-link span em { font-style: normal; font-size: .55rem; letter-spacing: .08em;
  padding: .14rem .4rem; border-radius: .4rem; color: #fff;
  background: linear-gradient(120deg, #7f2ef8, #b48bff); }
.lfh-scrolllines-link:hover span { opacity: 1; transform: none; }
.lfh-scrolllines-link i { display: block; width: 2.2rem; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(127,46,248,.35), rgba(127,46,248,.75)); overflow: hidden;
  position: relative; transition: width .35s; }
.lfh-scrolllines-link:hover i { width: 3.2rem; }
.lfh-scrolllines-link i b { position: absolute; inset-block: 0; left: 0; width: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #c9a4ff, #7f2ef8); box-shadow: 0 0 12px rgba(127,46,248,.9);
  animation: lfh-link-pulse 2.6s ease-in-out infinite; }
@keyframes lfh-link-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (max-width: 63.99rem) {
  .lfh-scrolllines-link { gap: .35rem; padding: .15rem 0; }
  .lfh-scrolllines-link span { font-size: .6rem; letter-spacing: .1em; padding: .18rem .45rem; border-radius: .45rem;
    background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  .lfh-scrolllines-link i { width: 1.15rem; height: 2.5px; }
  .lfh-scrolllines-link:hover i { width: 1.7rem; }
}

/* --------------------- reveal-on-scroll -------------------------- */
.lfh-reveal { opacity: 1; transform: none;
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); will-change: opacity, transform; }
.lfh-reveal.lfh-in { opacity: 1; transform: none; }
/* slightly smaller travel for big cards */
.lfh-collage.lfh-reveal, .lfh-services-preview.lfh-reveal, .lfh-advisory-art.lfh-reveal, .lfh-map.lfh-reveal { transform: translateY(36px) scale(.985); }
@media (prefers-reduced-motion: reduce) {
  .lfh-reveal { opacity: 1; transform: none; transition: none; }
}

/* smooth anchor scrolling for nav-line jumps */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ------------- one-section-per-screen snap (desktop) --------------
 * Sibling of sectionFit() in home.js: sections are sized to one
 * viewport by JS; this makes wheel steps settle on exactly one
 * section. Mobile keeps natural scrolling. */
html:has(.lfh-root) { scroll-snap-type: y proximity; }
@media (max-width: 63.99rem) { html { scroll-snap-type: none; } }
@media (min-width: 64rem) {
  .lfh-root section[id] {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}


/* === #services 5-item centering, larger typography & compact bottom spacing === */
#services.lfh-sec {
  padding-bottom: clamp(1.5rem, 3vh, 2.75rem);
  min-height: auto;
}
#services .lfh-container {
  margin-inline: auto;
}
#services .lfh-services-grid {
  align-items: center;
  justify-items: center;
  margin-inline: auto;
  margin-bottom: 0;
  padding-bottom: 0;
}
@media (min-width: 64rem) {
  #services .lfh-services-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.15fr);
    align-items: center;
  }
}
#services .lfh-services-preview {
  width: 100%;
  display: flex;
  justify-content: center;
}
#services .lfh-services-frame {
  width: 100%;
  max-width: 520px;
  height: clamp(340px, 46vh, 440px);
  margin-inline: auto;
}
#services .lfh-services-list {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#services .lfh-svc-row {
  padding: clamp(0.65rem, 1.3vh, 1rem) 1.1rem;
  gap: 1.15rem;
}
#services .lfh-svc-n {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}
#services .lfh-svc-t {
  font-size: clamp(1.18rem, 1.65vw, 1.42rem);
  line-height: 1.25;
}
#services .lfh-svc-d {
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.45;
  margin-top: 0.25rem;
}
#services .lfh-services-list .lfh-svc-row:last-child {
  border-bottom: 0;
}


/* === Center photo frame & align venture progress bars === */
#services .lfh-services-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
}
#services .lfh-services-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 320px;
  max-height: 460px;
  margin-inline: auto;
  border-radius: 1.4rem;
  overflow: hidden;
}
#services .lfh-services-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
#advisory .lfh-skills {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* === True circular rotating rings + circular portrait in #home === */
#home.lfh-sec {
  scroll-margin-top: 80px;
}
#home .lfh-rings {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 440px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
#home .lfh-rings .lfh-ring {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
#home .lfh-rings .lfh-ring-a {
  inset: -14px;
  border: 2px dashed rgba(127, 46, 248, .55);
  animation: lfh-spin 26s linear infinite;
}
#home .lfh-rings .lfh-ring-b {
  inset: 22px;
  border: 1px dashed rgba(127, 46, 248, .25);
  animation: lfh-spin-rev 34s linear infinite;
}
#home .lfh-rings img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px !important;
  object-fit: cover !important;
  object-position: 50% 0% !important;
  transform: none !important;
  box-shadow: 0 40px 80px -30px rgba(31, 6, 68, .5);
}

/* === Testimonial section styled as blog cards with full width & no clipped text === */
.lfh-testimonials {
  background: #faf8ff;
}

.lfh-testimonials .lfh-container {
  width: min(1200px, 92vw);
  max-width: 1200px;
  margin-inline: auto;
  overflow: visible;
}

.lfh-tst-grid {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  grid-template-columns: 1fr;
  width: 100%;
  overflow: visible;
}

@media (min-width: 48rem) {
  .lfh-tst-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .lfh-tst-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lfh-tst {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  border: 1px solid rgba(31, 6, 68, .08);
  border-radius: 1.6rem;
  padding: clamp(1.1rem, 1.8vw, 1.5rem);
  background: #fff;
  box-shadow: 0 10px 30px -18px rgba(31, 6, 68, .18);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s cubic-bezier(.22, 1, .36, 1);
  overflow: visible;
  box-sizing: border-box;
}

.lfh-tst:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px -20px rgba(31, 6, 68, .3);
}

.lfh-tst blockquote {
  flex: 1 1 auto;
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(31, 6, 68, .08);
  color: #4a3a63;
  line-height: 1.6;
  font-size: clamp(.9rem, 1.05vw, 1rem);
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
}

.lfh-tst figcaption {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-top: .25rem;
}

.lfh-tst-ava {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #a35cff, #7f2ef8);
}

.lfh-tst figcaption b {
  display: block;
  font-size: .95rem;
  color: #1f0644;
}

.lfh-tst figcaption i {
  display: block;
  font-style: normal;
  color: #616161;
  font-size: .82rem;
}

.lfh-testimonials *,
.lfh-tst * {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.lfh-testimonials a,
.lfh-testimonials button,
.lfh-testimonials span,
.lfh-testimonials p {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
}

/* === Compact centered testimonial blog cards + centered Get Quote (#cta) === */
#testimonials.lfh-testimonials,
.lfh-testimonials {
  background: #faf8ff;
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
}

#testimonials .lfh-container,
.lfh-testimonials .lfh-container {
  width: min(1200px, 92vw) !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
  transform: none !important;
  overflow: visible !important;
}

#testimonials .lfh-tst-grid,
.lfh-tst-grid {
  display: grid !important;
  gap: 1.25rem !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-content: center !important;
  justify-items: stretch !important;
  width: 100% !important;
  margin-inline: auto !important;
  overflow: visible !important;
}

@media (min-width: 48rem) {
  #testimonials .lfh-tst-grid,
  .lfh-tst-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 64rem) {
  #testimonials .lfh-tst-grid,
  .lfh-tst-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

#testimonials .lfh-tst,
.lfh-tst {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: .8rem !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  border: 1px solid rgba(31, 6, 68, .08) !important;
  border-radius: 1.35rem !important;
  padding: 1.15rem 1.2rem !important;
  background: #fff !important;
  box-shadow: 0 12px 28px -18px rgba(31, 6, 68, .18) !important;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s cubic-bezier(.22, 1, .36, 1) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

#testimonials .lfh-tst:hover,
.lfh-tst:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px -18px rgba(31, 6, 68, .28) !important;
}

#testimonials .lfh-tst .lfh-badge,
.lfh-tst .lfh-badge {
  align-self: flex-start !important;
  padding: .28rem .72rem !important;
  font-size: .7rem !important;
}

#testimonials .lfh-tst blockquote,
.lfh-tst blockquote {
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding-bottom: .8rem !important;
  border-bottom: 1px solid rgba(31, 6, 68, .08) !important;
  color: #4a3a63 !important;
  line-height: 1.56 !important;
  font-size: .92rem !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
}

#testimonials .lfh-tst figcaption,
.lfh-tst figcaption {
  display: flex !important;
  align-items: center !important;
  gap: .7rem !important;
  padding-top: .15rem !important;
}

#testimonials .lfh-tst-ava,
.lfh-tst-ava {
  flex: 0 0 auto !important;
  width: 2.35rem !important;
  height: 2.35rem !important;
  font-size: .95rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #a35cff, #7f2ef8) !important;
}

#testimonials .lfh-tst figcaption b,
.lfh-tst figcaption b {
  display: block !important;
  font-size: .92rem !important;
  color: #1f0644 !important;
}

#testimonials .lfh-tst figcaption i,
.lfh-tst figcaption i {
  display: block !important;
  font-style: normal !important;
  color: #616161 !important;
  font-size: .8rem !important;
}

#cta.lfh-sec.lfh-cta,
#cta.lfh-cta,
.lfh-cta {
  width: 100% !important;
  min-height: auto !important;
  height: auto !important;
  padding-block: clamp(2.5rem, 5vh, 4rem) !important;
  overflow: visible !important;
}

#cta .lfh-container,
.lfh-cta .lfh-container {
  width: min(1200px, 92vw) !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
  transform: none !important;
  overflow: visible !important;
}

#cta .lfh-cta-flex,
.lfh-cta .lfh-cta-flex {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 1.15rem !important;
  width: 100% !important;
  margin-inline: auto !important;
}

#cta .lfh-cta-flex h2,
.lfh-cta .lfh-cta-flex h2 {
  margin: 0 auto !important;
  text-align: center !important;
  max-width: 100% !important;
}

#cta .lfh-cta-flex .lfh-btn,
.lfh-cta .lfh-cta-flex .lfh-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

#testimonials *,
#cta *,
.lfh-testimonials *,
.lfh-cta * {
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

#testimonials a,
#testimonials button,
#testimonials span,
#testimonials p,
#cta a,
#cta button,
#cta span,
#cta p,
#cta h2 {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
}

/* === Reduced image size & centered full photo === */
#home .lfh-rings {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(100%, 340px) !important;
  max-width: 340px !important;
  aspect-ratio: 1 / 1 !important;
  margin-inline: auto !important;
}

#home .lfh-rings img {
  width: 100% !important;
  max-width: 320px !important;
  max-height: 320px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin-inline: auto !important;
}

.lfh-hero-art img,
.lfh-advisory-art img,
.lfh-collage img {
  max-width: 100% !important;
  max-height: 360px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin-inline: auto !important;
}


/* === Responsive Device Fit Lock (Desktop, Tablet, Mobile) === */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.lfh-root section[id],
.lfh-sec {
  width: 100%;
  overflow-x: clip;
}

.lfh-container {
  width: min(1200px, 92vw) !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
}

/* Mobile (up to 767px) */
@media (max-width: 47.99rem) {
  .lfh-container {
    width: 92vw !important;
    padding-inline: 0.25rem !important;
  }

  .lfh-tst-grid,
  .lfh-grid,
  .lfh-cards {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #cta .lfh-cta-flex,
  .lfh-cta .lfh-cta-flex {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  #home .lfh-rings {
    width: min(82vw, 280px) !important;
    max-width: 280px !important;
  }

  #home .lfh-rings img {
    max-width: 260px !important;
    max-height: 260px !important;
  }
}

/* Tablet (768px to 1023px) */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .lfh-container {
    width: 92vw !important;
  }

  #testimonials .lfh-tst-grid,
  .lfh-tst-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #home .lfh-rings {
    width: min(44vw, 310px) !important;
    max-width: 310px !important;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 64rem) {
  #testimonials .lfh-tst-grid,
  .lfh-tst-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}


/* === Full Section Width & Unclipped Text Fix === */
.lfh-root,
.lfh-root section,
.lfh-sec {
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
}

.lfh-container {
  width: min(1200px, 92vw) !important;
  max-width: 1200px !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin-inline: auto !important;
  overflow: visible !important;
}

.lfh-root section > *,
.lfh-container > *,
.lfh-grid > *,
.lfh-cards > *,
.lfh-tst-grid > *,
.lfh-cta-flex > * {
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

.lfh-root h1,
.lfh-root h2,
.lfh-root h3,
.lfh-root h4,
.lfh-root p,
.lfh-root li,
.lfh-root blockquote,
.lfh-root figcaption,
.lfh-root span,
.lfh-root a,
.lfh-root button {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  max-height: none !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

.lfh-root .lfh-btn,
.lfh-root a.lfh-btn,
.lfh-root button.lfh-btn {
  white-space: nowrap !important;
  max-width: 100% !important;
}

@media (max-width: 47.99rem) {
  .lfh-root .lfh-btn,
  .lfh-root a.lfh-btn,
  .lfh-root button.lfh-btn {
    white-space: normal !important;
  }
}


/* === Starting Section Centered Full Text === */
#home,
#home .lfh-container,
#home .lfh-hero,
#home .lfh-hero-copy {
  width: 100% !important;
  max-width: min(1100px, 92vw) !important;
  margin-inline: auto !important;
  text-align: center !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

#home h1,
#home h2,
#home p,
#home span,
#home a {
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: auto !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow-wrap: break-word !important;
}

#home .lfh-hero-actions,
#home .lfh-cta-row,
#home .lfh-btns {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

/* Expand first hero section width and scale content */
#home > section:first-of-type,
main > section:first-of-type,
.hero-section,
.hero {
  max-width: 1440px !important;
  width: 96% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(28px, 4vw, 64px) !important;
  padding-right: clamp(28px, 4vw, 64px) !important;
  min-height: clamp(540px, 74vh, 780px);
}

#home > section:first-of-type h1,
main > section:first-of-type h1,
.hero-section h1,
.hero h1 {
  font-size: clamp(2.75rem, 4.8vw, 4.5rem) !important;
  line-height: 1.08 !important;
}
