/* ==========================================================================
   Knot for Good — styles.css (clean + organized)
   Palette + layout preserved, conflicts removed, hero art -> afghan/blanket vibe
   ========================================================================== */

/* =========================
   1) Design tokens
   ========================= */
   :root{
    --bg: #E6E1E8;
    --ink: #1f1f22;
    --muted: #5f5a5a;
  
    --brand: #DCA6ED;
    --brand2: #8A8484;
  
    --card: rgba(255,255,255,0.82);
    --border: rgba(138,132,132,0.28);
  
    --shadow: 0 12px 32px rgba(0,0,0,0.08);
    --radius: 18px;
    --maxw: 1080px;
  
    /* hero/afghan texture helpers */
    --afg-1: rgba(220,166,237,0.14);
    --afg-2: rgba(138,132,132,0.06);
    --afg-3: rgba(255,255,255,0.35);
  }
  
  /* =========================
     2) Base / reset
     ========================= */
  *{ box-sizing:border-box; }
  html,body{ height:100%; }
  
  body{
    margin:0;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    color: var(--ink);
  
    background:
      radial-gradient(1200px 400px at 10% 0%, rgba(220,166,237,0.35), transparent 65%),
      radial-gradient(1000px 420px at 90% 10%, rgba(220,166,237,0.22), transparent 60%),
      var(--bg);
  }
  
  a{ color: inherit; text-decoration: none; }
  a:hover{ text-decoration: underline; }
  
  .container{
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 18px 16px;
  }
  
  /* =========================
     3) Core components
     ========================= */
  .card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  .kicker{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(220,166,237,0.22);
    border: 1px solid rgba(220,166,237,0.30);
    color: var(--brand2);
    font-weight: 900;
    width: fit-content;
  }
  
  .badge{
    display:inline-flex;
    gap: 8px;
    align-items:center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.62);
    color: var(--brand2);
    font-weight: 900;
  }
  
  .notice{
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(220,166,237,0.35);
    background: rgba(220,166,237,0.14);
    color: #3b2c40;
    font-weight: 850;
  }
  
  /* Buttons */
  .btnrow{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
  
  .btn{
    display:inline-flex;
    gap: 10px;
    align-items:center;
    justify-content:center;
  
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
  
    font-weight: 950;
    cursor:pointer;
    text-decoration:none;
  
    background: rgba(255,255,255,0.62);
    color: var(--brand2);
  
    transition: transform 140ms ease, filter 140ms ease, background 140ms ease;
  }
  
  .btn.primary{
    background: linear-gradient(135deg, rgba(220,166,237,0.90), rgba(220,166,237,0.55));
    color: #2a1a2f;
    border-color: rgba(220,166,237,0.55);
  }
  
  .btn.big{
    padding: 14px 24px;
    font-size: 16px;
  }
  
  .btn:hover{
    transform: translateY(-1px);
    text-decoration:none;
    filter: brightness(1.01);
  }
  .btn:active{ transform: translateY(0px); }
  
  /* =========================
     4) Navigation
     ========================= */
  .nav{
    position: sticky;
    top: 0;
    z-index: 50;
  
    backdrop-filter: blur(10px);
    background: rgba(230,225,232,0.9);
    border-bottom: 1px solid var(--border);
  }
  
  .nav-inner{
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 16px;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .brand{
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }
  
  .brand img{
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  
  .brand-main{
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.5px;
  }
  .brand-sub{
    display: block;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  
  .nav-menu{
    display: flex;
    gap: 20px;
    align-items: center;
  }
  
  .nav-menu a{
    font-weight: 700;
    color: var(--brand2);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
  }
  
  .nav-menu a.active,
  .nav-menu a:hover{
    background: rgba(220,166,237,0.25);
  }
  
  .burger{
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  @media (max-width: 768px){
    .nav-menu{
      position: absolute;
      top: 65px;
      right: 16px;
      flex-direction: column;
  
      background: white;
      padding: 16px;
      border-radius: 14px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.15);
      display: none;
    }
    .nav-menu.open{ display: flex; }
    .burger{ display: block; }
  }
  
  /* =========================
     5) Grids / sections / typography
     ========================= */
  h1{ margin: 14px 0 8px; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.06; }
  .small{ margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }
  
  .grid{ display:grid; gap: 14px; }
  .grid.two{ grid-template-columns: repeat(2, 1fr); }
  .grid.three{ grid-template-columns: repeat(3, 1fr); }
  
  @media (max-width: 900px){ .grid.three{ grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 580px){ .grid.two, .grid.three{ grid-template-columns: 1fr; } }
  
  .section{ margin-top: 16px; }
  .section h2{ margin: 0 0 10px; font-size: 22px; }
  .section p{ color: var(--muted); margin: 0; line-height: 1.6; }
  
  /* =========================
     6) Product cards
     ========================= */
  .bag-card{ overflow:hidden; }
  .bag-img{ width:100%; height: 240px; object-fit: cover; display:block; }
  
  .bag-body{ padding: 14px; }
  .bag-title{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: 10px;
  }
  
  .bag-title h3{ margin:0; font-size: 16px; font-weight: 1000; }
  
  .price{
    font-weight: 1000;
    color: #2a1a2f;
    background: rgba(220,166,237,0.25);
    border: 1px solid rgba(220,166,237,0.35);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
  }
  
  /* =========================
     7) Footer
     ========================= */
  .footer{ margin-top: 26px; padding: 18px 0 30px; color: var(--muted); }
  .footer .row{
    display:flex;
    gap: 10px;
    align-items:center;
    justify-content:space-between;
    flex-wrap: wrap;
  
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
  .footer a{ font-weight: 900; }
  
  /* =========================
     8) Modal / gallery
     ========================= */
  .modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.40);
    display:none;
    z-index: 100;
    padding: 18px;
  }
  .modal.open{ display:flex; align-items:center; justify-content:center; }
  
  .modal-card{
    width: min(980px, 96vw);
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 22px 60px rgba(0,0,0,0.22);
    overflow:hidden;
  }
  
  .modal-head{
    padding: 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 10px;
    border-bottom: 1px solid var(--border);
  }
  .modal-head strong{ font-size: 15px; }
  
  .modal-close{
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(230,225,232,0.65);
    cursor:pointer;
    font-size: 20px;
  }
  
  .modal-body{ padding: 12px; }
  
  .gallery{
    display:grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .gallery img{
    width:100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    object-fit: cover;
  }
  
  /* =========================
     9) Forms
     ========================= */
  .form{ padding: 16px; }
  
  .field{ display:grid; gap: 6px; margin-top: 12px; }
  .field label{ font-weight: 900; color: var(--brand2); }
  
  .field input, .field textarea{
    width:100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.70);
    font-size: 15px;
    outline: none;
  }
  .field textarea{ min-height: 120px; resize: vertical; }
  
  /* =========================
     10) Loading / spinner
     ========================= */
  .spinner-wrap{
    padding: 30px 16px;
    display:grid;
    gap: 14px;
    text-align:center;
    align-items:center;
    justify-items:center;
  }
  
  .spinner{
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 6px solid rgba(138,132,132,0.25);
    border-top-color: rgba(220,166,237,0.95);
    animation: spin 0.9s linear infinite;
  }
  
  @keyframes spin{ to{ transform: rotate(360deg); } }
  
  /* =========================
     11) HERO (index) — hero2 layout
     ========================= */
  .hero2{
    padding: 20px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 16px;
    align-items: start;
  }
  
  @media (max-width: 900px){
    .hero2{ grid-template-columns: 1fr; }
  }
  
  .hero2-title{
    margin: 12px 0 10px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.5px;
  }
  
  .hero2-lead{
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
  }
  
  .hero2-impact{ margin-top: 14px; }
  
  .impact-pill{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(220,166,237,0.22);
    border: 1px solid rgba(220,166,237,0.35);
    font-weight: 900;
    color: #2a1a2f;
  }
  
  .impact-sub{
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    max-width: 520px;
  }
  
  /* =========================
     12) HERO ART CARD (index) — “afghan/blanket” look
     Works with your current HTML:
       .art-card > .art-top + .hero-art (contains .blob, .hook-float, .yarn-svg, .spark, .stitches)
     ========================= */
  .art-card{
    border-radius: 22px;
    padding: 14px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(138,132,132,0.16);
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
  }
  
  .art-top{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 10px;
  }
  
  /* The “blanket” panel */
  .hero-art{
    position: relative;
    height: 260px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(138,132,132,0.14);
  
    /* Afghan/blanket texture:
       - soft base gradient
       - woven grid (horizontal + vertical)
       - gentle yarn flecks */
    background:
      radial-gradient(780px 260px at 15% 0%, rgba(220,166,237,0.20), transparent 60%),
      radial-gradient(700px 280px at 100% 35%, rgba(220,166,237,0.16), transparent 62%),
  
      /* woven grid */
      repeating-linear-gradient(
        0deg,
        var(--afg-2) 0px,
        var(--afg-2) 2px,
        transparent 2px,
        transparent 18px
      ),
      repeating-linear-gradient(
        90deg,
        var(--afg-2) 0px,
        var(--afg-2) 2px,
        transparent 2px,
        transparent 18px
      ),
  
      /* subtle “yarn fleck” / stitch noise effect */
      radial-gradient(circle at 14% 62%, rgba(255,255,255,0.22) 0 2px, transparent 3px),
      radial-gradient(circle at 22% 30%, rgba(255,255,255,0.18) 0 2px, transparent 3px),
      radial-gradient(circle at 35% 48%, rgba(255,255,255,0.16) 0 2px, transparent 3px),
      radial-gradient(circle at 52% 66%, rgba(255,255,255,0.16) 0 2px, transparent 3px),
      radial-gradient(circle at 68% 38%, rgba(255,255,255,0.18) 0 2px, transparent 3px),
      radial-gradient(circle at 78% 58%, rgba(255,255,255,0.18) 0 2px, transparent 3px),
  
      linear-gradient(180deg, rgba(255,255,255,0.86), rgba(230,225,232,0.56));
  }
  
  /* A “folded blanket corner” (replaces the old circle-blob that felt tampon-ish) */
  .hero-art .blob{
    position:absolute;
    right: -120px;
    top: -140px;
    width: 420px;
    height: 320px;
    border-radius: 46px;
  
    background:
      linear-gradient(135deg,
        rgba(220,166,237,0.36),
        rgba(255,255,255,0.0) 68%
      );
  
    transform: rotate(14deg);
    opacity: 0.85;
    animation: blanketFloat 7s ease-in-out infinite;
  }
  
  @keyframes blanketFloat{
    0%,100%{ transform: rotate(14deg) translate(0,0); }
    50%{ transform: rotate(14deg) translate(-10px, 8px); }
  }
  
  /* Hook placement/scale — more “tool” and less “object in space” */
  .hook-float{
    position:absolute;
    right: 26px;
    top: 58px;
    width: 250px;
    height: 130px;
    animation: hookBob 4.4s ease-in-out infinite;
    filter: drop-shadow(0 16px 18px rgba(0,0,0,0.10));
    pointer-events: none;
  }
  
  .hook-svg{ width:100%; height:100%; display:block; }
  
  @keyframes hookBob{
    0%,100%{ transform: translateY(0px) rotate(0deg); }
    50%{ transform: translateY(-7px) rotate(-1deg); }
  }
  
  /* Yarn SVG positioning */
  .yarn-svg{
    position:absolute;
    left: 0;
    bottom: 18px;
    width: 100%;
    height: 178px;
  }
  
  /* Your path classes from the template */
  .stitch-base{
    fill:none;
    stroke: rgba(138,132,132,0.26);
    stroke-width: 12;
    stroke-linecap: round;
  }
  
  .stitch-glow{
    fill:none;
    stroke: rgba(220,166,237,0.92);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 90 700;
    animation: yarnDash 1.9s linear infinite;
    filter: drop-shadow(0 10px 12px rgba(220,166,237,0.18));
    opacity: 0.95;
  }
  
  .stitch-dashes{
    fill:none;
    stroke: rgba(220,166,237,0.22);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 10 18;
    opacity: 0.85;
  }
  
  @keyframes yarnDash{
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -790; }
  }
  
  /* Tiny stitch loops at the bottom */
  .stitches{
    position:absolute;
    left: 42px;
    bottom: 40px;
    display:flex;
    gap: 12px;
    opacity: 0.95;
  }
  
  .stitches span{
    width: 26px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(220,166,237,0.40);
    background: rgba(255,255,255,0.50);
    box-shadow: 0 10px 16px rgba(0,0,0,0.06);
    animation: stitchPop 2.8s ease-in-out infinite;
  }
  
  .stitches span:nth-child(2){ animation-delay: 0.25s; }
  .stitches span:nth-child(3){ animation-delay: 0.5s; }
  .stitches span:nth-child(4){ animation-delay: 0.75s; }
  
  @keyframes stitchPop{
    0%,100%{ transform: translateY(0px); opacity: 0.75; }
    50%{ transform: translateY(-6px); opacity: 1; }
  }
  
  /* Sparkles */
  .spark{
    position:absolute;
    font-weight: 900;
    color: rgba(220,166,237,0.85);
    text-shadow: 0 10px 18px rgba(220,166,237,0.14);
    animation: sparkle 2.8s ease-in-out infinite;
    user-select:none;
  }
  .s1{ left: 22px; top: 18px; font-size: 18px; animation-delay: 0.0s; }
  .s2{ left: 88px; top: 86px; font-size: 14px; animation-delay: 0.7s; opacity: 0.85; }
  .s3{ right: 88px; top: 26px; font-size: 16px; animation-delay: 1.4s; opacity: 0.9; }
  
  @keyframes sparkle{
    0%,100%{ transform: scale(0.98) rotate(0deg); opacity: 0.55; }
    50%{ transform: scale(1.12) rotate(8deg); opacity: 1; }
  }
  
  @media (min-width: 1100px){
    .hero-art{ height: 290px; }
  }
  
  /* Copy under art */
  .thread-copy{ margin-top: 12px; }
  .thread-list{ display:grid; gap: 8px; }
  .thread-item{ color: var(--ink); line-height: 1.35; }
  
  /* =========================
     13) (Legacy) thread-card support
     If any older templates still use .thread-card / .needle-svg, keep them stable.
     ========================= */
  .thread-card{
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  
  .thread-top{
    display:flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .needle-svg{
    width: 100%;
    height: auto;
    display:block;
    margin-top: 10px;
  }
  
  .thread-dash{
    animation: dashMove 2.3s linear infinite;
  }
  @keyframes dashMove{
    from{ stroke-dashoffset: 0; }
    to{ stroke-dashoffset: -600; }
  }
  
  /* =========================
     14) About page (Donna story)
     Clean, single definition (no more stacking overrides)
     ========================= */
  .about-hero{
    padding: 20px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    align-items: start;
    overflow: hidden;
    position: relative;
  }
  
  .about-hero::before{
    content:"";
    position:absolute;
    inset:-40px -80px auto auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(220,166,237,0.22), rgba(220,166,237,0.0) 60%);
    pointer-events:none;
  }
  
  .about-title{
    margin: 12px 0 10px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.6px;
  }
  
  .about-lead{
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
    max-width: 720px;
  }
  
  .about-badges{
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
  }
  
  .pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(138,132,132,0.22);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-weight: 800;
    font-size: 13px;
    color: #2a1a2f;
  }
  
  .about-quote{
    margin-top: 16px;
    padding: 14px 14px 12px;
    border-radius: 18px;
    background: rgba(220,166,237,0.10);
    border: 1px solid rgba(220,166,237,0.28);
    position: relative;
  }
  
  .quote-mark{
    position:absolute;
    top: 8px;
    left: 10px;
    font-size: 44px;
    line-height: 1;
    color: rgba(220,166,237,0.85);
    font-weight: 1000;
  }
  
  .quote-body{
    padding-left: 22px;
    color: #2a1a2f;
    font-weight: 850;
    line-height: 1.55;
    letter-spacing: -0.2px;
  }
  
  .quote-sign{
    margin-top: 8px;
    padding-left: 22px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
  }
  
  /* Donna “workspace” card (kept clean + readable) */
  .about-card-soft{
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(138,132,132,0.18);
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  }
  
  .mini-kicker{
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(138,132,132,0.95);
  }
  
  .scene{
    margin-top: 12px;
    display:flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .scene-row{
    display:flex;
    gap: 10px;
    align-items:flex-start;
    padding: 10px 10px;
    border-radius: 14px;
    background: rgba(230,225,232,0.45);
    border: 1px solid rgba(138,132,132,0.16);
  }
  
  .scene-emoji{ font-size: 22px; line-height: 1; }
  .scene-title{ font-weight: 950; color: #2a1a2f; letter-spacing: -0.2px; }
  
  .scene-sub{
    margin-top: 2px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
  }
  
  .about-mini-note{
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(220,166,237,0.08);
    border: 1px solid rgba(220,166,237,0.22);
    color: #2a1a2f;
    font-weight: 800;
    line-height: 1.5;
  }
  
  /* timeline */
  .about-timeline{
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(138,132,132,0.18);
    position: relative;
    overflow:hidden;
  }
  
  .about-timeline::before{
    content:"";
    position:absolute;
    inset:auto auto -120px -120px;
    width: 300px;
    height: 300px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(199,194,255,0.22), rgba(199,194,255,0.0) 60%);
    pointer-events:none;
  }
  
  .timeline{
    margin-top: 14px;
    display:flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .tl-item{
    display:grid;
    grid-template-columns: 12px 1fr;
    gap: 12px;
    align-items: start;
  }
  
  .tl-dot{
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(220,166,237,0.95);
    margin-top: 6px;
    box-shadow: 0 8px 20px rgba(220,166,237,0.35);
  }
  
  .tl-content{
    padding: 12px;
    border-radius: 16px;
    background: rgba(230,225,232,0.45);
    border: 1px solid rgba(138,132,132,0.16);
  }
  
  .tl-title{ font-weight: 950; color: #2a1a2f; letter-spacing: -0.2px; }
  .tl-sub{ margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
  
  .about-bottom-note{
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(220,166,237,0.10);
    border: 1px solid rgba(220,166,237,0.22);
    color: #2a1a2f;
    font-weight: 850;
    line-height: 1.55;
  }
  
  @media (max-width: 920px){
    .about-hero{ grid-template-columns: 1fr; }
  }
  
  /* ==========================================================================
     END
     ========================================================================== */



/* ==========================================================================
   Index-only hero art using logo_mark.svg
   (Inline here so you don’t have to touch styles.css while testing.)
   If you like it, we can move this into static/css/styles.css later.
   ========================================================================== */

.logo-hero{
  position: relative;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(138,132,132,0.14);
  background:
    radial-gradient(780px 260px at 15% 0%, rgba(220,166,237,0.20), transparent 60%),
    radial-gradient(700px 280px at 100% 35%, rgba(220,166,237,0.16), transparent 62%),
    repeating-linear-gradient(0deg, rgba(138,132,132,0.06) 0px, rgba(138,132,132,0.06) 2px, transparent 2px, transparent 18px),
    repeating-linear-gradient(90deg, rgba(138,132,132,0.06) 0px, rgba(138,132,132,0.06) 2px, transparent 2px, transparent 18px),
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(230,225,232,0.56));
}

.logo-hero-bg{
  position:absolute;
  right:-120px;
  top:-140px;
  width:420px;
  height:320px;
  border-radius:46px;
  background: linear-gradient(135deg, rgba(220,166,237,0.34), rgba(255,255,255,0.0) 68%);
  transform: rotate(14deg);
  opacity: 0.85;
  animation: kfgBlanketFloat 7s ease-in-out infinite;
  pointer-events:none;
}

@keyframes kfgBlanketFloat{
  0%,100%{ transform: rotate(14deg) translate(0,0); }
  50%{ transform: rotate(14deg) translate(-10px, 8px); }
}

.logo-badge{
  position:absolute;
  left: 26px;
  top: 30px;
  width: 170px;
  height: 170px;
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(138,132,132,0.18);
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
  display:grid;
  place-items:center;
  overflow:hidden;
  transform-origin: center;
  animation: kfgBadgeBob 4.2s ease-in-out infinite;
}

@keyframes kfgBadgeBob{
  0%,100%{ transform: translateY(0px) rotate(0deg); }
  50%{ transform: translateY(-6px) rotate(-0.6deg); }
}

.logo-mark{
  width: 92px;
  height: 92px;
  display:block;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.10));
  z-index: 2;
}

.logo-glow{
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(circle at 40% 35%, rgba(220,166,237,0.40), rgba(220,166,237,0.00) 60%);
  opacity: 0.8;
  z-index: 0;
  animation: kfgGlowPulse 3.2s ease-in-out infinite;
}

@keyframes kfgGlowPulse{
  0%,100%{ transform: scale(1); opacity: 0.75; }
  50%{ transform: scale(1.06); opacity: 0.95; }
}

/* stitched border */
.logo-stitches{
  position:absolute;
  inset: 10px;
  border-radius: 20px;
  border: 2px dashed rgba(220,166,237,0.45);
  opacity: 0.9;
  z-index: 1;
  animation: kfgStitchWiggle 2.6s ease-in-out infinite;
}

@keyframes kfgStitchWiggle{
  0%,100%{ transform: rotate(0deg); opacity: 0.78; }
  50%{ transform: rotate(0.5deg); opacity: 0.95; }
}

/* yarn swoosh (simple, not weird) */
.yarn-swoosh{
  position:absolute;
  left: 150px;
  top: 138px;
  width: 70%;
  height: 90px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(220,166,237,0.00),
      rgba(220,166,237,0.55),
      rgba(138,132,132,0.20),
      rgba(220,166,237,0.00)
    );
  filter: blur(0.1px);
  opacity: 0.85;

  /* animated highlight sweep */
  mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 82%, transparent 100%);

  animation: kfgYarnSweep 2.2s linear infinite;
}

@keyframes kfgYarnSweep{
  from{ transform: translateX(-8px); filter: blur(0.2px); }
  to{ transform: translateX(14px); filter: blur(0.2px); }
}

/* sparkles */
.logo-spark{
  position:absolute;
  font-weight: 900;
  color: rgba(220,166,237,0.85);
  text-shadow: 0 10px 18px rgba(220,166,237,0.14);
  animation: kfgSpark 2.8s ease-in-out infinite;
  user-select:none;
}
.logo-spark.s1{ left: 24px; top: 18px; font-size: 18px; }
.logo-spark.s2{ left: 104px; top: 86px; font-size: 14px; animation-delay: 0.7s; opacity: 0.85; }
.logo-spark.s3{ right: 92px; top: 26px; font-size: 16px; animation-delay: 1.4s; opacity: 0.9; }

@keyframes kfgSpark{
  0%,100%{ transform: scale(0.98) rotate(0deg); opacity: 0.55; }
  50%{ transform: scale(1.12) rotate(8deg); opacity: 1; }
}

/* stitch row bottom */
.stitch-row{
  position:absolute;
  left: 42px;
  bottom: 34px;
  display:flex;
  gap: 12px;
  opacity: 0.95;
}

.stitch-row span{
  width: 26px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(220,166,237,0.40);
  background: rgba(255,255,255,0.50);
  box-shadow: 0 10px 16px rgba(0,0,0,0.06);
  animation: kfgLoopPop 2.8s ease-in-out infinite;
}
.stitch-row span:nth-child(2){ animation-delay: 0.25s; }
.stitch-row span:nth-child(3){ animation-delay: 0.5s; }
.stitch-row span:nth-child(4){ animation-delay: 0.75s; }

@keyframes kfgLoopPop{
  0%,100%{ transform: translateY(0px); opacity: 0.75; }
  50%{ transform: translateY(-6px); opacity: 1; }
}

@media (min-width: 1100px){
  .logo-hero{ height: 290px; }
}
