:root{
    --bg:#FFFDF8;
    --pink:#FFC1D9;
    --pink-deep:#FF8FB3;
    --turq:#9BE8DC;
    --turq-deep:#5FD4C0;
    --lav:#D9C6F5;
    --lav-light:#F1E9FC;
    --lav-deep:#B79AE8;
    --yellow:#FFE699;
    --yellow-light:#FFF6DC;
    --yellow-deep:#FFD25E;
    --coral:#FFB29B;
    --coral-deep:#FF8C6B;
    --ink:#3D1F5C;
    --ink-soft:#9B3D8A;
    --line:#EDE3F3;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
    color:var(--ink);
    line-height:1.65;
    overflow-x:hidden;
  }
  a{color:inherit;}
  h1,h2,h3{font-family:-apple-system,'SF Pro Rounded','Segoe UI Rounded',BlinkMacSystemFont,'Helvetica Neue',sans-serif; font-weight:700;}
  img{max-width:100%; display:block;}

  /* running-stitch divider */
  .stitch{
    width:100%; height:14px;
    background-repeat:repeat-x;
    background-position:center;
    background-size:26px 14px;
  }
  .stitch.pink{background-image:repeating-linear-gradient(90deg, transparent 0 10px, var(--pink-deep) 10px 20px, transparent 20px 26px);}
  .stitch.turq{background-image:repeating-linear-gradient(90deg, transparent 0 10px, var(--turq-deep) 10px 20px, transparent 20px 26px);}
  .stitch.lav{background-image:repeating-linear-gradient(90deg, transparent 0 10px, var(--lav-deep) 10px 20px, transparent 20px 26px);}
  .stitch.yellow{background-image:repeating-linear-gradient(90deg, transparent 0 10px, var(--yellow-deep) 10px 20px, transparent 20px 26px);}

  /* NAV */
  nav{
    position:sticky; top:0; z-index:100;
    background:rgba(255,253,248,0.92);
    backdrop-filter:blur(6px);
    border-bottom:2px solid var(--line);
    display:flex; align-items:center; justify-content:space-between;
    padding:10px 5vw;
  }
  nav .brand-logo{ height:44px; width:auto; }
  nav .navlinks{
    list-style:none;
    display:flex;
    gap:22px;
  }
  nav .navlinks button.scrollto{
    position:relative;
    text-decoration:none;
    font-family:-apple-system,'SF Pro Rounded','Segoe UI Rounded',BlinkMacSystemFont,'Helvetica Neue',sans-serif;
    font-weight:600;
    font-size:13px;
    color:var(--ink);
    padding:7px 4px;
  }
  nav .navlinks button.scrollto::after{
    content:"";
    position:absolute;
    left:2px; right:2px; bottom:2px;
    height:2px;
    background-image:repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px);
    transform:scaleX(0);
    transform-origin:left center;
    transition:transform .22s steps(6,end);
  }
  nav .navlinks li:nth-child(1) button.scrollto::after{background-image:repeating-linear-gradient(90deg, var(--pink-deep) 0 4px, transparent 4px 8px);}
  nav .navlinks li:nth-child(2) button.scrollto::after{background-image:repeating-linear-gradient(90deg, var(--turq-deep) 0 4px, transparent 4px 8px);}
  nav .navlinks li:nth-child(3) button.scrollto::after{background-image:repeating-linear-gradient(90deg, var(--lav-deep) 0 4px, transparent 4px 8px);}
  nav .navlinks li:nth-child(4) button.scrollto::after{background-image:repeating-linear-gradient(90deg, var(--yellow-deep) 0 4px, transparent 4px 8px);}
  nav .navlinks li:nth-child(5) button.scrollto::after{background-image:repeating-linear-gradient(90deg, var(--coral-deep) 0 4px, transparent 4px 8px);}
  nav .navlinks button.scrollto:hover::after{transform:scaleX(1);}

  .hamburger{
    display:none;
    flex-direction:column;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
    padding:8px;
  }
  .hamburger span{
    width:24px; height:3px;
    background:var(--ink);
    border-radius:2px;
  }

  .mobile-menu{
    display:none;
    flex-direction:column;
    background:var(--bg);
    border-bottom:2px solid var(--line);
    padding:10px 5vw 20px;
  }
  .mobile-menu.open{display:flex;}
  .mobile-menu a{
    text-decoration:none;
    color:var(--ink);
    font-family:-apple-system,'SF Pro Rounded','Segoe UI Rounded',BlinkMacSystemFont,'Helvetica Neue',sans-serif;
    font-weight:600;
    font-size:15px;
    padding:12px 6px;
    border-bottom:1px solid var(--line);
  }

  /* HERO */
  .hero{
    text-align:center;
    padding:56px 6vw 60px;
    background:var(--bg);
    position:relative;
    overflow:hidden;
  }
  .hero .dot{
    position:absolute;
    border-radius:50%;
  }
  .hero .dot.d1{width:70px; height:70px; background:var(--pink); top:8%; left:6%;}
  .hero .dot.d2{width:46px; height:46px; background:var(--turq); top:14%; right:9%;}
  .hero .dot.d3{width:54px; height:54px; background:var(--yellow); bottom:10%; left:12%;}
  .hero .dot.d4{width:38px; height:38px; background:var(--lav); bottom:16%; right:14%;}
  .hero .dot.d5{width:26px; height:26px; background:var(--coral); top:45%; left:3%;}
  .hero .hero-logo{
    width:190px; max-width:55vw;
    margin:0 auto;
  }
  .hero .script{
    font-family:'Snell Roundhand','Bradley Hand','Brush Script MT',cursive;
    font-weight:700;
    font-size:40px;
    color:var(--ink);
    margin-top:2px;
  }
  .hero .tagline{
    font-family:-apple-system,'SF Pro Rounded','Segoe UI Rounded',BlinkMacSystemFont,'Helvetica Neue',sans-serif;
    font-weight:600;
    font-size:12px;
    letter-spacing:3px;
    text-transform:uppercase;
    color:var(--ink-soft);
    margin-top:6px;
  }
  .hero p.lede{
    font-size:16.5px;
    color:var(--ink);
    max-width:440px;
    margin:22px auto 0;
  }
  .hero .cta{
    display:inline-block;
    margin-top:26px;
    padding:14px 34px;
    background:var(--pink-deep);
    color:#fff;
    text-decoration:none;
    font-family:-apple-system,'SF Pro Rounded','Segoe UI Rounded',BlinkMacSystemFont,'Helvetica Neue',sans-serif;
    font-weight:600;
    font-size:13px;
    letter-spacing:.5px;
    border-radius:30px;
    box-shadow:0 6px 0 var(--coral-deep);
    transition:transform .15s;
  }
  .hero .cta:active{transform:translateY(4px); box-shadow:0 2px 0 var(--coral-deep);}

  section{
    padding:56px 6vw;
    max-width:960px;
    margin:0 auto;
  }
  section.full-bleed{max-width:100%; padding-left:0; padding-right:0;}
  section.full-bleed .inner{max-width:960px; margin:0 auto; padding:0 6vw;}

  .divider{
    display:flex; align-items:center; gap:12px;
    margin-bottom:26px;
  }
  .divider .stem{flex:1; height:2px; border-radius:2px;}
  .divider.pink .stem{background:var(--pink);}
  .divider.turq .stem{background:var(--turq);}
  .divider.lav .stem{background:var(--lav);}
  .divider.yellow .stem{background:var(--yellow-deep);}
  .divider .label{
    font-family:-apple-system,'SF Pro Rounded','Segoe UI Rounded',BlinkMacSystemFont,'Helvetica Neue',sans-serif; font-weight:600; font-size:19px;
    color:var(--ink); white-space:nowrap;
  }

  /* CAROUSEL */
  .carousel-wrap{position:relative;}
  .carousel{
    display:flex;
    gap:16px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding-bottom:14px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .carousel::-webkit-scrollbar{display:none;}
  .carousel .slide{
    flex:0 0 78%;
    max-width:320px;
    scroll-snap-align:center;
    aspect-ratio:1;
    border-radius:18px;
    display:flex; align-items:center; justify-content:center;
    font-size:12px; color:var(--ink-soft); text-align:center;
    padding:12px;
    border:3px solid #fff;
    box-shadow:0 8px 20px rgba(56,49,75,0.12);
  }
  .carousel .slide:nth-child(6n+1){background:var(--pink);}
  .carousel .slide:nth-child(6n+2){background:var(--turq);}
  .carousel .slide:nth-child(6n+3){background:var(--yellow);}
  .carousel .slide:nth-child(6n+4){background:var(--lav);}
  .carousel .slide:nth-child(6n+5){background:var(--coral);}
  .carousel .slide:nth-child(6n+6){background:var(--turq);}

  .carousel-btn{
    position:absolute; top:40%; transform:translateY(-50%);
    width:40px; height:40px; border-radius:50%;
    background:#fff; border:2px solid var(--line);
    box-shadow:0 4px 10px rgba(56,49,75,0.15);
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; font-size:16px; font-weight:700; color:var(--ink);
    z-index:2;
  }
  .carousel-btn.prev{left:-6px;}
  .carousel-btn.next{right:-6px;}
  .dots{
    display:flex; justify-content:center; gap:7px; margin-top:12px;
  }
  .dots span{
    width:7px; height:7px; border-radius:50%; background:var(--line);
  }
  .dots span.active{background:var(--pink-deep); width:20px; border-radius:5px; transition:width .2s;}

  /* HOW TO ORDER */
  .order-block{background:var(--lav-light);}
  .order-block .divider .label{color:var(--ink);}
  .steps{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
  }
  .step{
    background:#fff;
    border-radius:16px;
    padding:20px 16px;
    box-shadow:0 4px 12px rgba(56,49,75,0.08);
  }
  .step .num{
    font-family:-apple-system,'SF Pro Rounded','Segoe UI Rounded',BlinkMacSystemFont,'Helvetica Neue',sans-serif; font-weight:700; font-size:20px;
    color:#fff; background:var(--lav-deep);
    width:38px; height:38px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    margin-bottom:10px;
  }
  .step p{font-size:12.5px; color:var(--ink-soft);}

  .qr-box{
    margin-top:24px;
    background:#fff;
    border-radius:18px;
    padding:24px;
    display:flex; gap:20px; align-items:center;
    flex-wrap:wrap;
    box-shadow:0 4px 12px rgba(56,49,75,0.08);
  }
  .qr-ph{
    width:110px; height:110px;
    background:var(--bg);
    border:2px dashed var(--lav-deep);
    border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    font-size:10px; text-align:center; color:var(--ink-soft); padding:8px;
    flex-shrink:0;
  }
  .qr-box .qtext h3{font-size:16px; margin-bottom:6px; color:var(--ink);}
  .qr-box .qtext p{font-size:12.5px; color:var(--ink-soft);}

  /* PRICING */
  table{width:100%; border-collapse:collapse; font-size:13px;}
  th{
    text-align:left; font-family:-apple-system,'SF Pro Rounded','Segoe UI Rounded',BlinkMacSystemFont,'Helvetica Neue',sans-serif; font-size:11px; letter-spacing:.5px; text-transform:uppercase;
    color:var(--pink-deep); padding:9px 6px; border-bottom:3px solid var(--pink);
  }
  td{padding:11px 6px; border-bottom:1px solid var(--line);}
  td.price{text-align:right; font-family:-apple-system,'SF Pro Rounded','Segoe UI Rounded',BlinkMacSystemFont,'Helvetica Neue',sans-serif; color:var(--coral-deep); font-weight:600; white-space:nowrap;}
  td.desc{color:var(--ink-soft); font-size:11.5px;}
  .see-more{
    display:inline-block; margin-top:14px; font-size:12px; color:var(--turq-deep);
    font-weight:600; text-decoration:underline;
  }

  /* TURNAROUND */
  .timeline{display:grid; grid-template-columns:repeat(4,1fr); gap:12px;}
  .tstep{
    background:#fff; border-radius:16px;
    padding:16px 12px; text-align:center;
    box-shadow:0 4px 12px rgba(56,49,75,0.08);
    border-top:4px solid var(--turq-deep);
  }
  .tstep .days{font-family:-apple-system,'SF Pro Rounded','Segoe UI Rounded',BlinkMacSystemFont,'Helvetica Neue',sans-serif; font-weight:700; font-size:17px; color:var(--turq-deep); display:block; margin-bottom:4px;}
  .tstep .what{font-size:11px; color:var(--ink-soft);}

  /* FAQ */
  .faq-item{padding:16px 0; border-bottom:1px solid var(--line);}
  .faq-item:last-child{border-bottom:none;}
  .faq-q{font-family:-apple-system,'SF Pro Rounded','Segoe UI Rounded',BlinkMacSystemFont,'Helvetica Neue',sans-serif; font-weight:600; font-size:14.5px; margin-bottom:6px; color:var(--ink);}
  .faq-q::before{content:"Q  "; color:var(--coral-deep);}
  .faq-a{font-size:12.5px; color:var(--ink-soft); padding-left:18px;}

  /* CONTACT */
  .contact{text-align:center; background:var(--yellow-light);}
  .contact .divider .label{color:var(--ink);}
  .contact p{font-size:13.5px; color:var(--ink); margin-bottom:6px;}
  .contact .signoff{
    font-family:'Snell Roundhand','Bradley Hand','Brush Script MT',cursive; font-weight:700; font-size:32px; color:var(--ink); margin-top:14px; display:block;
  }

  footer{
    text-align:center; padding:22px; font-size:10.5px; color:var(--ink-soft);
    background:var(--bg);
  }

  @media (max-width:760px){
    .navlinks{display:none;}
    .hamburger{display:flex;}
    .steps{grid-template-columns:repeat(2,1fr);}
    .timeline{grid-template-columns:repeat(2,1fr);}
    .carousel .slide{flex:0 0 82%;}
  }

  /* --- Embroidery motion system --- */
  .divider .stem{
    flex:1; height:3px; border-radius:2px;
    transform-origin:left center;
    transform:scaleX(0);
    background-repeat:repeat-x;
    background-size:16px 3px;
  }
  .divider.pink .stem{background-image:repeating-linear-gradient(90deg, var(--pink-deep) 0 8px, transparent 8px 16px);}
  .divider.turq .stem{background-image:repeating-linear-gradient(90deg, var(--turq-deep) 0 8px, transparent 8px 16px);}
  .divider.lav .stem{background-image:repeating-linear-gradient(90deg, var(--lav-deep) 0 8px, transparent 8px 16px);}
  .divider.yellow .stem{background-image:repeating-linear-gradient(90deg, var(--yellow-deep) 0 8px, transparent 8px 16px);}

  .stitch{transform-origin:left center; transform:scaleX(0);}

  .reveal{opacity:0; transform:translateY(16px);}

  body, a, button{cursor:none;}
  #threadCursor{
    position:fixed; top:0; left:0; pointer-events:none; z-index:9999;
  }
  @media (pointer:coarse){
    body, a, button{cursor:auto;}
    #threadCursor{display:none;}
  }


  a.scrollto, button.scrollto{
    background:none; border:none; font:inherit; cursor:pointer;
  }
  button.cta{ font:inherit; border:none; cursor:pointer; }


  html, body{
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    touch-action:manipulation;
  }
  #threadCursor{ touch-action:none; }


  #stitchTransition{
    position:fixed; inset:0; z-index:10000;
    pointer-events:none; opacity:0;
    background:var(--bg);
  }
  #stitchTransition.active{ pointer-events:auto; }


  .hero .cta{ position:relative; overflow:hidden; }
  .hero .cta::after{
    content:"";
    position:absolute; top:0; left:-40%;
    width:30%; height:100%;
    background:rgba(255,255,255,0.35);
    transform:skewX(-18deg);
    transition:left .35s ease-out;
  }
  .hero .cta:hover::after{ left:120%; }


  /* --- vanilla motion states (no external library) --- */
  .hero-logo{opacity:0; transform:translateY(-10px); transition:opacity .4s ease-out, transform .4s ease-out;}
  .hero-logo.in{opacity:1; transform:translateY(0); box-shadow:0 2px 6px rgba(61,31,92,0.18);}
  .hero .script{opacity:0; transform:translateY(8px); transition:opacity .25s ease-out, transform .25s ease-out;}
  .hero .script.in{opacity:1; transform:translateY(0);}
  .hero .tagline{transition:opacity .2s ease-out;}
  .hero .tagline:not(.in){opacity:0;}
  .hero p.lede{opacity:0; transform:translateY(8px); transition:opacity .3s ease-out, transform .3s ease-out;}
  .hero p.lede.in{opacity:1; transform:translateY(0);}
  .hero .cta{opacity:0; transform:scale(.94); transition:opacity .25s ease-out, transform .25s ease-out;}
  .hero .cta.in{opacity:1; transform:scale(1);}

  .divider .stem{transition:transform .5s ease-out;}
  .stitch{transition:transform .6s ease-out;}
  .divider .stem.in, .stitch.in{transform:scaleX(1);}

  .reveal{transition:opacity .35s ease-out, transform .35s ease-out;}
  .reveal.in{opacity:1; transform:none;}

  .letter{transition:opacity .18s ease-out, transform .18s ease-out;}
  .letter.in{opacity:1; transform:translateY(0);}
