/* Kel Livson site styles. Sizes are measured from the original Squarespace site
   at 1280px and 375px wide and interpolated linearly in between. */

/* Fonts: Lora (official variable font, weights 400-700) and Poppins. Both are
   licensed under the SIL Open Font License; see fonts/OFL-lora.txt and
   fonts/OFL-poppins.txt. */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/lora-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/poppins-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/poppins-300-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-700-italic.woff2') format('woff2');
}

:root {
  --blue: rgb(72, 80, 244);
  --link: rgb(170, 117, 230);
  /* Type scale, same rule as the original: 1rem + (scale - 1) x 1.2vw, capped at
     scale x 1rem (phones use vmax instead of vw). The root size is 16px below 992px
     wide and 17px from 992px. */
  --body: 1rem;
  --small: min(calc(1rem - 0.12vw), 15.32px);
  --h2: min(calc(1rem + 2.16vw), 2.8rem);
  --h3: min(calc(1rem + 1.44vw), 2.2rem);
  --h4: min(calc(1rem + 0.24vw), 1.2rem);
  --logo: min(calc(1rem + 1.2vw), 2rem);
  --gutter: 4vw;
  --gap: 11px;
  --header-h: calc(4vw + 42.73px);
  --container: min(1400px, calc(100vw - var(--gutter) * 2));
  --row: calc(var(--container) * 0.0215);
}
html {
  font-size: 16px;
}
@media (min-width: 992px) {
  html {
    font-size: 17px;
  }
}
@media (max-width: 991px) {
  :root {
    --small: min(calc(1rem - 0.12vw), 0.9rem);
  }
}
@media (max-width: 767px) {
  :root {
    --small: calc(1rem - 0.12vmax);
    --h2: min(calc(1rem + 2.16vmax), 2.8rem);
    --h3: min(calc(1rem + 1.44vmax), 2.2rem);
    --h4: min(calc(1rem + 0.24vmax), 1.2rem);
    --logo: min(calc(1rem + 1.2vmax), 2rem);
    --gutter: 6vw;
    --header-h: 82px;
    --row: 24px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: var(--body);
  line-height: 1.8;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}

/* Text. Like the original, typed spaces are kept exactly (white-space: pre-wrap). */
.t strong,
.t b {
  font-weight: 700;
}
.t p,
.t h1,
.t h2,
.t h3,
.t h4 {
  white-space: pre-wrap;
}
/* Line heights are in em (as on the original), which the browser rounds slightly
   differently from unitless values; this keeps long pages pixel-aligned. */
.t p,
.t li {
  line-height: 1.8em;
}
.t h1,
.t h2,
.t h3,
.t h4 {
  font-family: 'Lora', serif;
  font-weight: 700;
  margin: calc(var(--body) * 2) 0;
}
.t h2 {
  font-size: var(--h2);
  line-height: 1.29919em;
}
.t h3 {
  font-size: var(--h3);
  line-height: 1.3328em;
}
.t h4 {
  font-size: var(--h4);
  line-height: 1.3888em;
}
.t p,
.t ul,
.t ol,
.t blockquote {
  margin: var(--body) 0;
}
.t > :first-child {
  margin-top: 0;
}
.t > :last-child {
  margin-bottom: 0;
}
.t ul,
.t ol {
  padding-left: 40px;
}
/* Bullets sit on the paragraph's own first line (as on the original), so a list
   item is exactly as tall as its text. */
.t li {
  list-style: none;
}
.t li > p {
  margin: 0.5em 0;
}
.t li > p:first-child::before {
  content: '•';
  display: inline-block;
  width: 40px;
  margin-left: -40px;
}
.t li li > p:first-child::before {
  content: '○';
}
.t li > ul,
.t li > ol {
  margin: 0.5em 0;
}
.t a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1px;
}
.t p.small,
.t.small p {
  font-size: var(--small);
}

/* Header */
.hdr {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--hdr-color, #000);
}
.logo {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: var(--logo);
  line-height: 1.4em;
  text-decoration: none;
  color: inherit;
}
.nav {
  display: flex;
  gap: 4.9vw;
}
.nav a {
  font-size: 1rem;
  line-height: 1.8;
  padding: 0.1em 0;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s ease;
}
.nav a:hover,
.nav a[aria-current='page'] {
  background-size: 100% 1px;
}
.burger {
  display: none;
}
.menu {
  display: none;
}
@media (max-width: 767px) {
  .hdr {
    justify-content: center;
  }

  .nav {
    display: none;
  }
  .burger {
    display: block;
    position: absolute;
    left: calc(28.5px - 6px);
    top: calc(50% - 16px);
    width: 47px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }
  .burger span {
    position: absolute;
    left: 6px;
    width: 35px;
    height: 1px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .burger span:nth-child(1) {
    top: 6.5px;
  }
  .burger span:nth-child(2) {
    top: 16px;
  }
  .burger span:nth-child(3) {
    top: 25.5px;
  }
  .menu-open .burger span:nth-child(1) {
    transform: translate(5.25px, 9.5px) rotate(45deg) scaleX(0.7);
  }
  .menu-open .burger span:nth-child(2) {
    opacity: 0;
  }
  .menu-open .burger span:nth-child(3) {
    transform: translate(5.25px, -9.5px) rotate(-45deg) scaleX(0.7);
  }
  .menu {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 40;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22.5px;
    background: #fff;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .menu a {
    font-size: 31.875px;
    line-height: 1;
    text-decoration: none;
    color: #000;
  }
  .menu-open .menu {
    visibility: visible;
    opacity: 1;
  }
  .menu-open .hdr {
    position: fixed;
    color: #000;
  }
  .menu-open {
    overflow: hidden;
  }
}

/* Sections */
.sec {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: var(--valign, center);
  min-height: var(--minh-d, 0);
  background-color: var(--bg, #fff);
  color: var(--fg, #000);
  overflow: hidden;
}
.sec-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sec-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}
.sec-bg.fx img {
  transform-origin: var(--focal, 50% 50%);
  transform: translate3d(0, var(--fx-ty, 0px), 0) scale(1.081081);
  will-change: transform;
}
.sec-ov {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sec-in {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--pt-d, 0) var(--gutter) var(--pb-d, 0);
}
.sec.first .sec-in {
  padding-top: calc(var(--pt-d, 0px) + var(--header-h));
}
@media (max-width: 767px) {
  .sec {
    min-height: var(--minh-m, var(--minh-d, 0));
  }
  .sec-in {
    padding-top: var(--pt-m, var(--pt-d, 0));
    padding-bottom: var(--pb-m, var(--pb-d, 0));
  }
  .sec.first .sec-in {
    padding-top: calc(var(--pt-m, var(--pt-d, 0px)) + var(--header-h));
  }
}

/* Fluid grid sections */
.sec.grid .sec-in {
  padding-left: 0;
  padding-right: 0;
}
.g {
  display: grid;
  grid-template-columns:
    minmax(calc(var(--gutter) - var(--gap)), 1fr) repeat(24, minmax(0, calc((1400px - var(--gap) * 23) / 24)))
    minmax(calc(var(--gutter) - var(--gap)), 1fr);
  grid-template-rows: repeat(var(--rows-d), minmax(var(--row), auto));
  gap: var(--gap);
}
.g > .b {
  grid-area: var(--d);
  z-index: var(--z, auto);
  display: flex;
  flex-direction: column;
  justify-content: var(--va, flex-start);
  min-width: 0;
}
@media (max-width: 767px) {
  .g {
    grid-template-columns:
      minmax(calc(var(--gutter) - var(--gap)), 1fr) repeat(8, minmax(0, calc((1400px - var(--gap) * 7) / 8)))
      minmax(calc(var(--gutter) - var(--gap)), 1fr);
    grid-template-rows: repeat(var(--rows-m), minmax(var(--row), auto));
  }
  .g > .b {
    grid-area: var(--m);
  }
  .g > .b.hide-m {
    display: none;
  }
}
/* Images fill their grid cells without stretching the rows. */
.b-img {
  position: relative;
}
.b-img > picture,
.b-img > a {
  position: absolute;
  inset: 0;
}
.b-img picture,
.b-img img,
.b-img a {
  display: block;
  width: 100%;
  height: 100%;
}
.b-img img {
  object-fit: var(--fit-d, cover);
  object-position: var(--focal, 50% 50%);
}
@media (max-width: 767px) {
  .b-img img {
    object-fit: var(--fit-m, var(--fit-d, cover));
  }
}

/* Classic column sections */
.wrap {
  max-width: var(--cw, 100%);
  margin: 0 auto;
}
.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 0 -17px;
}
.col {
  grid-column: span var(--span, 12);
  min-width: 0;
}
/* Blocks have 17px side padding. Vertical padding is set per block (--ptd/--pbd on
   desktop, --ptm/--pbm on phones) to match the original exactly. */
.blk {
  padding: var(--ptd, 0) 17px var(--pbd, 0);
}
.blk-spacer::before {
  content: '';
  display: block;
  height: 34px;
}
.vcap > .yt {
  margin-bottom: var(--body);
}
@media (max-width: 767px) {
  .blk {
    padding: var(--ptm, 17px) 17px var(--pbm, 17px);
  }
}
@media (max-width: 767px) {
  .wrap {
    max-width: none;
  }
  .col {
    grid-column: span 12;
  }
  .blk-spacer {
    display: none;
  }
}
.blk-img picture,
.blk-img a {
  display: block;
}
.blk-img img {
  width: 100%;
  height: auto;
}

/* YouTube placeholder: shows the thumbnail and only loads the player on click */
.yt {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding: 0 0 var(--pb, 56.25%);
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.yt img,
.yt iframe,
.yt > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}
/* Thumbnail cover over the player. Once the player is ready, taps pass through it
   to YouTube's player; it is removed when the video starts. */
.yt-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}
.yt-cover.ready {
  pointer-events: none;
}
.yt .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: -11px 0 0 -8px;
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.yt:hover .play {
  opacity: 1;
}

/* Photo reel (horizontal strip that loops). Desktop: the photos are clipped to a box
   59px inside the page gutters with the arrows beside it. Phones: full-width strip
   with the arrows 15px below it. */
.reel {
  position: relative;
  height: 75vh;
  padding: var(--gutter);
}
.reel-wrap {
  position: relative;
  height: 100%;
}
.reel-clip {
  position: absolute;
  inset: 0 59px;
  overflow: hidden;
}
.reel-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.reel-track.anim {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reel-item {
  flex: none;
  height: 100%;
}
.reel-item picture,
.reel-item img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}
.arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 8px;
  border: 0;
  background: none;
  color: #000;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.arrow:hover {
  opacity: 1;
}
.arrow svg {
  display: block;
  width: 28px;
  height: 28px;
  overflow: hidden;
  fill: none;
  stroke: #000;
  stroke-width: 4;
}
.reel .prev {
  left: 0;
}
.reel .next {
  right: 0;
}
@media (max-width: 767px) {
  .reel {
    padding: 0;
  }
  .reel-clip {
    inset: 0 0 59px;
  }
  .reel .arrow {
    top: auto;
    bottom: 0;
    margin-top: 0;
  }
}

/* Testimonial slideshow (fades between images). Box is 80% of the 1400px max width,
   with the image inset 3vw (6.5vw on phones) and each arrow centered in that inset. */
.slides {
  position: relative;
  height: calc(50vh + 8vw);
}
.slides-in {
  position: absolute;
  top: 4vw;
  bottom: 4vw;
  left: calc((100% - min(1120px, 100%)) / 2 + 4vw);
  right: calc((100% - min(1120px, 100%)) / 2 + 4vw);
  --inset: 3vw;
}
.slides-list {
  position: absolute;
  inset: 0 var(--inset);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.slide.on {
  opacity: 1;
  visibility: visible;
}
.slide picture,
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slides .arrow {
  width: 27px;
  height: 32px;
  margin-top: -16px;
  padding: 8px;
}
.slides .arrow svg {
  width: 9px;
  height: 16px;
  stroke-width: 1;
  stroke-miterlimit: 10;
}
.slides .prev {
  left: calc((var(--inset) - 27px) / 2);
}
.slides .next {
  right: calc((var(--inset) - 27px) / 2);
}
@media (max-width: 767px) {
  .slides {
    height: 100vw;
  }
  .slides-in {
    top: 6vw;
    bottom: 6vw;
    left: 6vw;
    right: 6vw;
    --inset: 6.5vw;
  }
}

/* Card carousel (Marketing Funnels). Sizes are fractions of the visible page
   width, measured on the original (28.53% cards with 1.59% gaps on desktop). */
.sec.gal .sec-in {
  padding-left: 0;
  padding-right: 0;
}
.cards {
  position: relative;
  padding: 6.6vmax 0;
  overflow: hidden;
  container-type: inline-size;
}
.cards-track {
  display: flex;
  gap: 1.5913cqw;
  padding-left: 4.047cqw;
  will-change: transform;
}
.cards-track.anim {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.card {
  flex: none;
  width: 28.527cqw;
  padding-bottom: 10px;
  display: block;
}
.card img {
  width: 100%;
  height: auto;
}
.cards-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.cards-nav button {
  position: relative;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: none;
  cursor: pointer;
  transition: opacity 0.3s;
}
.cards-nav .cbg {
  position: absolute;
  inset: 0;
  background: rgb(170, 117, 230);
  opacity: 0.7;
}
.cards-nav svg {
  position: absolute;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  overflow: hidden;
}
.cards-nav .cd {
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cards-nav .cm {
  display: none;
}
@media (max-width: 767px) {
  .cards-track {
    gap: 5.556cqw;
    padding-left: 4.1667cqw;
  }
  .card {
    width: 91.667cqw;
  }
  .cards-nav {
    gap: 10px;
    margin-top: 20px;
  }
  .cards-nav button {
    width: 48px;
    height: 48px;
    border-radius: 0;
    overflow: visible;
  }
  .cards-nav .cbg {
    inset: 4px;
    border-radius: 50%;
    opacity: 1;
  }
  .cards-nav .cd {
    display: none;
  }
  .cards-nav .cm {
    display: block;
    left: 14px;
    top: 14px;
    width: 20px;
    height: 20px;
  }
  .cards-nav .cm .shaft {
    stroke-linecap: square;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}
