/* Link Socially module library v1
   Five heroes, nine sections, CSS-only motion. No JavaScript, no inline styles.
   Layout idea: every module reads its look from tokens on the .ls root, so one
   set of markup gives many sites. Switch looks with data attributes on .ls:
   data-mode  = light | dark | accent        data-shape  = sharp | soft | flat
   data-type  = serif | bold | calm          data-rhythm = open | compact
   data-motion = off | subtle | lively
   Per client, override only the color and font tokens below. */

.ls {
  --bg: #f3f5f2; --surface: #ffffff; --ink: #13211c; --muted: #53645d;
  --accent: #0b6b57; --accent-ink: #ffffff; --line: #d5dcd7;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: var(--font-body); --head-weight: 800; --head-track: -0.03em;
  --radius: 18px; --card-bg: var(--surface); --card-border: 0 solid transparent;
  --card-shadow: 0 1px 2px rgba(0,0,0,.06), 0 14px 34px -14px rgba(0,0,0,.22);
  --section: clamp(64px, 9vw, 128px); --gap: clamp(20px, 3vw, 40px);
  --max: 1160px; --shift: 44px; --dur: .8s; --ease: cubic-bezier(.2,.7,.2,1);
  background: var(--bg); color: var(--ink); font-family: var(--font-body);
  line-height: 1.6; overflow-x: clip;
}
.ls[data-mode="dark"] {
  --bg: #0f1614; --surface: #18221f; --ink: #eef3f0; --muted: #a3b3ac;
  --accent: #5fd3b3; --accent-ink: #08110e; --line: #2a3733; color-scheme: dark;
}
.ls[data-mode="accent"] {
  --bg: #0b6b57; --surface: #0f7a64; --ink: #ffffff; --muted: #d3ebe3;
  --accent: #ffd166; --accent-ink: #1a1400; --line: rgba(255,255,255,.28); color-scheme: dark;
}
.ls[data-type="serif"] { --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; --head-weight: 600; --head-track: -0.01em; }
.ls[data-type="bold"]  { --head-weight: 800; --head-track: -0.035em; }
.ls[data-type="calm"]  { --head-weight: 300; --head-track: -0.02em; }
.ls[data-shape="sharp"] { --radius: 0px; --card-border: 1px solid var(--line); --card-shadow: none; }
.ls[data-shape="flat"]  { --radius: 6px; --card-shadow: none; --card-bg: color-mix(in srgb, var(--accent) 11%, var(--bg)); }
.ls[data-rhythm="compact"] { --section: clamp(40px, 5vw, 72px); --gap: clamp(16px, 2vw, 24px); }
.ls[data-motion="subtle"] { --shift: 16px; --dur: .6s; }

/* ---------- Base ---------- */
.ls *, .ls *::before, .ls *::after { box-sizing: border-box; }
.ls-wrap { max-width: var(--max); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.ls-section { padding-block: var(--section); }
.ls-section--tint { background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.ls h1, .ls h2, .ls h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: 1.08; text-wrap: balance; margin: 0; }
.ls p { margin: 0; }
.ls-h1 { font-size: clamp(2.25rem, 5.2vw, 4.25rem); }
.ls-h2 { font-size: clamp(1.65rem, 3.1vw, 2.6rem); }
.ls-h3 { font-size: 1.2rem; line-height: 1.25; }
.ls-eyebrow { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.ls-lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.ls-muted { color: var(--muted); }
.ls-head { display: grid; gap: 14px; margin-bottom: var(--gap); max-width: 720px; }
.ls-stack { display: grid; gap: 18px; align-content: start; justify-items: start; }
.ls-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.ls-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ls-btn::after { content: "\2192"; transition: transform .25s var(--ease); }
.ls-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 70%, #000); }
.ls-btn:hover::after { transform: translateX(5px); }
.ls-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.ls-btn--ghost:hover { box-shadow: none; border-color: var(--ink); }
.ls-link { color: var(--ink); font-weight: 700; text-decoration: none; padding-bottom: 3px; background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 2px no-repeat; transition: background-size .3s var(--ease); }
.ls-link:hover { background-size: 35% 2px; }
.ls :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Media. In production the inner element is the <img>; here it is a drawn placeholder. */
.ls-media { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--line); aspect-ratio: 4 / 3; }
.ls-media--45 { aspect-ratio: 4 / 5; }
.ls-media--169 { aspect-ratio: 16 / 9; }
.ls-media--11 { aspect-ratio: 1 / 1; }
.ls-media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease);
  background:
    radial-gradient(120% 80% at 85% 10%, color-mix(in srgb, var(--accent) 40%, #fff) 0, transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 72%, #000), color-mix(in srgb, var(--accent) 30%, #10201b)); }
.ls-media__tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; font: 600 .7rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: #fff; background: rgba(0,0,0,.55); border-radius: 4px; }

.ls-card { background: var(--card-bg); border: var(--card-border); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: clamp(20px, 2.4vw, 32px); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ls-card:hover { transform: translateY(-6px); }
.ls-card:hover .ls-media__img { transform: scale(1.05); }

/* ---------- Hero 1: split ---------- */
.ls-hero { padding-block: clamp(48px, 7vw, 104px); }
.ls-hero--split .ls-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.ls-hero--split .ls-hero__media { position: relative; }
.ls-hero--split .ls-hero__media::before { content: ""; position: absolute; inset: 12% -6% -6% 18%; background: var(--accent); border-radius: var(--radius); animation: ls-slide-in var(--dur) var(--ease) both .15s; }
.ls-hero--split .ls-media { animation: ls-rise var(--dur) var(--ease) both; }

/* ---------- Hero 2: full-width photo ---------- */
.ls-hero--full { position: relative; padding: 0; display: grid; align-items: end; min-height: clamp(440px, 58vw, 660px); color: #fff; overflow: hidden; isolation: isolate; }
.ls-hero--full .ls-media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -2; }
.ls-hero--full::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.28) 55%, rgba(0,0,0,.12)); }
.ls-hero--full .ls-wrap { width: 100%; padding-block: clamp(36px, 6vw, 80px); }
.ls-hero--full .ls-lead { color: rgba(255,255,255,.88); }
.ls-hero--full .ls-eyebrow { color: #fff; }
.ls-hero--full .ls-btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.ls[data-motion="lively"] .ls-hero--full .ls-media__img { animation: ls-kenburns 18s ease-in-out infinite alternate; }

/* ---------- Hero 3: editorial, text only ---------- */
.ls-hero--editorial .ls-h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: .98; max-width: 14ch; }
.ls-hero--editorial .ls-rule { height: 4px; background: var(--accent); margin-block: clamp(24px, 4vw, 48px); transform-origin: left; animation: ls-draw 1.1s var(--ease) both .2s; }
.ls-hero--editorial .ls-hero__foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gap); align-items: end; }
.ls-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ls-facts li { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 2px; font-size: .9rem; color: var(--muted); }
.ls-facts strong { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.6rem; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Hero 4: with a lead form ---------- */
.ls-hero--form .ls-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ls-form { display: grid; gap: 14px; animation: ls-rise var(--dur) var(--ease) both .15s; }
.ls-form:hover { transform: none; }
.ls-field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.ls-field input, .ls-field select { font: inherit; min-height: 48px; padding: 10px 14px; border-radius: calc(var(--radius) / 2); border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.ls-field input:focus, .ls-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.ls-form .ls-btn { justify-content: center; }
.ls-checks { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.ls-checks li { padding-left: 28px; position: relative; }
.ls-checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 9px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

/* ---------- Hero 5: collage ---------- */
.ls-hero--collage { text-align: center; padding-bottom: 0; }
.ls-hero--collage .ls-hero__text { justify-items: center; margin-inline: auto; max-width: 820px; }
.ls-hero--collage .ls-actions { justify-content: center; }
.ls-collage { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(12px, 2.4vw, 28px); align-items: end; margin-top: clamp(32px, 5vw, 64px); }
.ls-collage > * { animation: ls-settle 1s var(--ease) both; box-shadow: var(--card-shadow); }
.ls-collage > :nth-child(1) { --tilt: -4deg; animation-delay: .1s; }
.ls-collage > :nth-child(2) { --tilt: 0deg; animation-delay: .2s; }
.ls-collage > :nth-child(3) { --tilt: 4deg; animation-delay: .3s; }
.ls-collage .ls-media { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ls[data-motion="lively"] .ls-collage > :nth-child(odd) .ls-media__img { animation: ls-float 7s ease-in-out infinite alternate; }

/* Hero text enters line by line. Transform only: text never fades. */
.ls-hero__text > * { animation: ls-rise var(--dur) var(--ease) both; }
.ls-hero__text > :nth-child(2) { animation-delay: .08s; }
.ls-hero__text > :nth-child(3) { animation-delay: .16s; }
.ls-hero__text > :nth-child(4) { animation-delay: .24s; }
.ls-hero__text > :nth-child(5) { animation-delay: .32s; }

/* ---------- Section: feature grid ---------- */
.ls-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.ls-feature { display: grid; gap: 12px; align-content: start; }
.ls-icon { width: 44px; height: 44px; border-radius: calc(var(--radius) / 1.5); background: var(--accent); position: relative; transition: transform .4s var(--ease); }
.ls-icon::after { content: ""; position: absolute; inset: 13px; border: 3px solid var(--accent-ink); border-radius: 50%; }
.ls-card:hover .ls-icon { transform: rotate(-8deg) scale(1.08); }

/* ---------- Section: zigzag rows ---------- */
.ls-zig { display: grid; gap: var(--section); }
.ls-zig__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.ls-zig__row:nth-child(even) .ls-media { order: 2; }

/* ---------- Section: steps ---------- */
.ls-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(24px, 3vw, 40px); position: relative; counter-reset: step; }
.ls-steps::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.ls-steps::after { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: var(--accent); transform-origin: top; }
.ls-steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 20px; position: relative; z-index: 1; }
.ls-steps li::before { content: counter(step); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.ls-steps li > div { display: grid; gap: 6px; padding-top: 8px; }

/* ---------- Section: stats ---------- */
.ls-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.ls-stat { display: grid; gap: 10px; }
.ls-stat strong { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.ls-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.ls-bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transform-origin: left; }
.ls-bar--60 > span { width: 60%; } .ls-bar--80 > span { width: 80%; } .ls-bar--95 > span { width: 95%; }

/* ---------- Section: quote ---------- */
.ls-quote { margin: 0; display: grid; grid-template-columns: 6px 1fr; gap: clamp(20px, 3vw, 40px); }
.ls-quote__rule { background: var(--accent); border-radius: 99px; transform-origin: top; }
.ls-quote blockquote { margin: 0; font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1.2; text-wrap: balance; }
.ls-quote figcaption { margin-top: 18px; color: var(--muted); }

/* ---------- Section: marquee ---------- */
.ls-marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; }
.ls-marquee__track { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin: 0; padding: 0 16px; list-style: none; font-family: var(--font-head); font-weight: var(--head-weight); font-size: clamp(1.1rem, 2vw, 1.6rem); }
.ls-marquee__track li { white-space: nowrap; display: flex; align-items: center; gap: 40px; }
.ls-marquee__track li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ls-marquee__track [aria-hidden="true"] { display: none; }
.ls[data-motion="lively"] .ls-marquee__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 0; animation: ls-marquee 32s linear infinite; }
.ls[data-motion="lively"] .ls-marquee__track [aria-hidden="true"] { display: flex; }
.ls-marquee:hover .ls-marquee__track, .ls-marquee:focus-within .ls-marquee__track { animation-play-state: paused; }

/* ---------- Section: FAQ (no JavaScript) ---------- */
.ls-faq { display: grid; gap: 12px; max-width: 820px; interpolate-size: allow-keywords; }
.ls-faq details { background: var(--card-bg); border: var(--card-border); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 0 24px; }
.ls-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; font-weight: 700; font-size: 1.08rem; }
.ls-faq summary::-webkit-details-marker { display: none; }
.ls-faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--accent), var(--accent)) center / 100% 3px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 3px 100% no-repeat; transition: transform .35s var(--ease); }
.ls-faq details[open] summary::after { transform: rotate(135deg); }
.ls-faq details p { padding-bottom: 22px; color: var(--muted); max-width: 64ch; }
.ls-faq details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.ls-faq details[open]::details-content { block-size: auto; }

/* ---------- Section: CTA band and CTA split ---------- */
.ls-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: clamp(32px, 6vw, 80px); display: grid; gap: 20px; justify-items: start; }
.ls-cta::before, .ls-cta::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: color-mix(in srgb, var(--accent-ink) 12%, transparent); }
.ls-cta::before { width: 340px; height: 340px; right: -80px; top: -120px; }
.ls-cta::after { width: 220px; height: 220px; right: 160px; bottom: -130px; }
.ls[data-motion="lively"] .ls-cta::before { animation: ls-drift 12s ease-in-out infinite alternate; }
.ls[data-motion="lively"] .ls-cta::after { animation: ls-drift 9s ease-in-out infinite alternate-reverse; }
.ls-cta .ls-btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.ls-cta p { max-width: 52ch; }
.ls-cta-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); align-items: center; }
.ls-cta-split__side { border-left: 1px solid var(--line); padding-left: var(--gap); display: grid; gap: 8px; }
.ls-phone { font-family: var(--font-head); font-weight: var(--head-weight); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }

/* ---------- Keyframes ---------- */
@keyframes ls-rise { from { transform: translateY(var(--shift)); } to { transform: none; } }
@keyframes ls-slide-in { from { transform: translate(calc(var(--shift) * -1), var(--shift)); } to { transform: none; } }
@keyframes ls-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ls-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ls-settle { from { transform: translateY(calc(var(--shift) * 2)) rotate(var(--tilt, 0deg)); } to { transform: none; } }
@keyframes ls-kenburns { from { transform: scale(1); } to { transform: scale(1.1) translate(-1.5%, -1.5%); } }
@keyframes ls-float { from { transform: scale(1.06) translateY(-2%); } to { transform: scale(1.06) translateY(2%); } }
@keyframes ls-marquee { to { transform: translateX(-50%); } }
@keyframes ls-drift { to { transform: translate(-40px, 30px) scale(1.15); } }
@keyframes ls-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes ls-pop { from { transform: translateY(var(--shift)) scale(.94); } to { transform: none; } }

/* ---------- Scroll-linked reveals. Browsers without support show the finished state. ---------- */
@supports (animation-timeline: view()) {
  .ls-reveal { animation: ls-pop linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  .ls-grid > .ls-reveal:nth-child(2), .ls-stats > .ls-reveal:nth-child(2) { animation-range: entry 10% cover 34%; }
  .ls-grid > .ls-reveal:nth-child(3), .ls-stats > .ls-reveal:nth-child(3) { animation-range: entry 20% cover 40%; }
  .ls-bar > span, .ls-reveal-draw { animation: ls-draw linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  .ls-steps::after, .ls-quote__rule { animation: ls-grow-y linear both; animation-timeline: view(); animation-range: entry 30% cover 70%; }
  .ls[data-motion="lively"] .ls-zig .ls-media { animation: ls-wipe linear both; animation-timeline: view(); animation-range: entry 5% cover 35%; }
}

/* ---------- Motion off: the switch, and every visitor who asks for reduced motion ---------- */
.ls[data-motion="off"] *, .ls[data-motion="off"] *::before, .ls[data-motion="off"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .ls *, .ls *::before, .ls *::after { animation: none !important; transition: none !important; }
  .ls .ls-marquee__track { flex-wrap: wrap; justify-content: center; width: auto; padding: 0 16px; }
  .ls .ls-marquee__track [aria-hidden="true"] { display: none; }
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 820px) {
  .ls-hero--split .ls-wrap, .ls-hero--form .ls-wrap, .ls-hero--editorial .ls-hero__foot, .ls-zig__row, .ls-cta-split { grid-template-columns: 1fr; }
  .ls-grid, .ls-stats { grid-template-columns: 1fr; }
  .ls-zig__row:nth-child(even) .ls-media { order: 0; }
  .ls-cta-split__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--gap); }
  .ls-hero--split .ls-media--45 { aspect-ratio: 4 / 3; }
  .ls-facts { grid-template-columns: 1fr 1fr 1fr; }
  .ls-collage { grid-template-columns: 1fr 1fr; }
  .ls-collage > :nth-child(3) { display: none; }
}
