/* LilyGram home page. Built to feel like a stationery shop: cream paper,
   pressed botanicals, washi tape, hand-lettered script and real cards
   from the app. Loaded after style.css, on the home page only. */

:root {
    --font-script: 'Great Vibes', 'Snell Roundhand', cursive;
    --font-letter: 'Lora', Georgia, serif;
    --blush: #F3D2B3;
    --terra: #C9774A;
    --paper-shadow: 0 1px 1px rgba(63, 61, 56, 0.06), 0 12px 28px rgba(95, 111, 62, 0.16);
}

.home { overflow-x: hidden; }
.home header { background: rgba(255, 253, 249, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.home nav.container { flex-wrap: nowrap; }
.home .nav-links { flex-wrap: nowrap; gap: 4px; }
@media (max-width: 420px) {
    .home .nav-button { padding: 8px 12px; font-size: 0.9rem; min-height: 40px; }
    .home .logo h1 { font-size: 1.5rem; }
}
.home .logo img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 2px 8px rgba(95, 111, 62, 0.18); }

/* Paper grain over a section, drawn with an SVG noise pattern. */
.grain { position: relative; isolation: isolate; }
.grain::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.37 0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.script { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; }

/* ---------- Hero ---------- */
.h-hero {
    background:
        radial-gradient(120% 70% at 50% 0%, #FFFDF9 0%, #FBF7F0 55%, #F4EEE3 100%);
    padding: 34px 0 10px;
    text-align: center;
    position: relative;
}
.h-hero .container { position: relative; z-index: 1; }
.h-hero .hello {
    font-family: var(--font-script);
    color: var(--terra);
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 6px;
}
.h-hero h1 {
    font-size: 3.1rem;
    line-height: 1.04;
    margin: 0 auto 16px;
    max-width: 12em;
    color: var(--text-dark);
}
.h-hero h1 em { font-style: italic; color: var(--olive); }
.h-hero .lede {
    font-size: 1.08rem;
    color: var(--text-soft);
    max-width: 30em;
    margin: 0 auto 22px;
}
.h-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.badge-soon {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--text-dark);
    color: #fff;
    padding: 11px 22px 11px 18px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(63, 61, 56, 0.18);
}
.badge-soon svg { width: 26px; height: 26px; flex: none; }
.badge-soon small { display: block; font-size: 0.72rem; opacity: 0.8; letter-spacing: 0.02em; }
.badge-soon b { display: block; font-size: 1.12rem; line-height: 1.1; }
.h-cta .note { font-size: 0.9rem; color: var(--text-soft); margin: 0; }

/* Pressed flowers drifting around the hero. */
.sprinkle { position: absolute; pointer-events: none; opacity: 0.55; z-index: 0; }
.sprinkle.s1 { width: 120px; left: -34px; top: 40px; transform: rotate(-24deg); }
.sprinkle.s2 { width: 96px; right: -26px; top: 8px; transform: rotate(28deg); }
.sprinkle.s3 { width: 74px; left: 6%; bottom: 120px; transform: rotate(14deg); opacity: 0.45; }
.sprinkle.s4 { width: 86px; right: 4%; bottom: 150px; transform: rotate(-12deg); opacity: 0.5; }

/* ---------- Cards drawn like the app's ---------- */
.lg-card {
    position: relative;
    background: #FFFDF8;
    aspect-ratio: 3 / 4;
    border-radius: 4px;
    box-shadow: var(--paper-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 11% 8% 8%;
    text-align: center;
}
.lg-card::after { /* the fold line on the left edge */
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 7%;
    background: linear-gradient(90deg, rgba(63, 61, 56, 0.07), transparent);
    border-radius: 4px 0 0 4px;
}
.lg-card .t {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.02;
    font-size: 1.5em;
}
.lg-card .t.s { font-family: var(--font-script); font-weight: 400; color: var(--olive); font-size: 1.7em; }
.lg-card .c { font-family: var(--font-letter); font-style: italic; color: var(--text-soft); font-size: 0.62em; margin-top: 4px; }
.lg-card img { width: 78%; margin-top: auto; }

/* Washi tape */
.tape {
    position: absolute;
    width: 38%;
    height: 9%;
    top: -4%;
    left: 31%;
    background: repeating-linear-gradient(45deg, rgba(232, 164, 107, 0.55) 0 6px, rgba(243, 210, 179, 0.6) 6px 12px);
    transform: rotate(-4deg);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    z-index: 2;
}
.tape.sage { background: repeating-linear-gradient(-45deg, rgba(163, 177, 138, 0.6) 0 6px, rgba(221, 227, 208, 0.75) 6px 12px); }

/* The fan of cards under the hero headline */
.fan {
    position: relative;
    height: 262px;
    max-width: 360px;
    margin: 18px auto 22px;
    font-size: 12px;
}
.fan .lg-card { position: absolute; width: 150px; top: 14px; left: calc(50% - 75px); }
.fan .f1 { transform: translateX(-92px) rotate(-11deg); top: 34px; }
.fan .f3 { transform: translateX(92px) rotate(10deg); top: 34px; }
.fan .f2 { z-index: 2; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }

/* ---------- Section heads ---------- */
.h-sec { padding: 64px 0; }
.h-sec .eyebrow { margin-bottom: 4px; }
.h-sec h2 { font-size: 2.4rem; margin-bottom: 10px; }
.h-sec .sub { text-align: center; color: var(--text-soft); max-width: 32em; margin: 0 auto 30px; }
.flourish { display: block; width: 120px; height: 14px; margin: 6px auto 18px; }

/* ---------- The card rack ---------- */
.rack-wrap { background: linear-gradient(#F4EEE3, #FBF7F0); }
.rack {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 18px 24px 30px;
    font-size: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.rack::-webkit-scrollbar { display: none; }
.rack figure { flex: 0 0 150px; scroll-snap-align: center; margin: 0; }
.rack figcaption { text-align: center; font-size: 0.95rem; color: var(--text-soft); margin-top: 10px; font-family: var(--font-letter); font-style: italic; }
.rack .lg-card:nth-child(odd) { transform: rotate(-1.5deg); }
.rack figure:nth-child(even) .lg-card { transform: rotate(1.5deg); }
.rack-rail { height: 3px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 0 24px; }

/* ---------- The flow ---------- */
.flow { background: var(--paper); }
.steps { display: grid; gap: 26px; max-width: 900px; margin: 0 auto; }
.step-c {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 18px;
    align-items: center;
    background: var(--bg-cream);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
}
.step-c .num { font-family: var(--font-script); color: var(--terra); font-size: 1.6rem; line-height: 1; }
.step-c h3 { margin: 2px 0 4px; color: var(--text-dark); font-size: 1.6rem; }
.step-c p { margin: 0; color: var(--text-soft); font-size: 1rem; }
.vignette { position: relative; height: 130px; display: flex; align-items: center; justify-content: center; font-size: 9px; }
.vignette .lg-card { width: 84px; }

/* note paper with handwriting */
.notepaper {
    width: 104px;
    height: 120px;
    background:
        repeating-linear-gradient(#FFFDF8 0 17px, #E8EDDC 17px 18px);
    border-radius: 3px;
    box-shadow: var(--paper-shadow);
    padding: 14px 8px 0;
    font-family: var(--font-script);
    color: var(--olive);
    font-size: 15px;
    line-height: 18px;
    transform: rotate(-3deg);
    text-align: left;
}
.notepaper .pen { animation: write 4s steps(30) infinite; overflow: hidden; display: block; white-space: nowrap; }
@keyframes write { 0% { width: 0; } 60%, 100% { width: 100%; } }

/* a card that opens */
.opener { perspective: 600px; width: 84px; aspect-ratio: 3 / 4; position: relative; }
.opener .inside, .opener .front {
    position: absolute; inset: 0; background: #FFFDF8; border-radius: 3px; box-shadow: var(--paper-shadow);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.opener .inside { font-family: var(--font-letter); font-size: 8px; color: var(--text-dark); padding: 10px; line-height: 1.4; }
.opener .front { transform-origin: left center; animation: openup 5s ease-in-out infinite; backface-visibility: hidden; padding-top: 10px; }
.opener .front img { width: 74%; }
.opener .front .t { font-family: var(--font-script); color: var(--olive); font-size: 14px; }
@keyframes openup { 0%, 25% { transform: rotateY(0); } 50%, 80% { transform: rotateY(-160deg); } 100% { transform: rotateY(0); } }

/* a message bubble */
.bubble-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; width: 120px; }
.bubble-media {
    width: 74px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #FFFDF8;
    box-shadow: var(--paper-shadow); position: relative; display: flex; align-items: center; justify-content: center;
}
.bubble-media img { width: 70%; }
.bubble-media .play {
    position: absolute; width: 24px; height: 24px; border-radius: 50%; background: rgba(63, 61, 56, 0.55);
    display: flex; align-items: center; justify-content: center;
}
.bubble-media .play::after { content: ''; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.bubble {
    background: var(--olive); color: #fff; font-size: 11px; padding: 6px 10px; border-radius: 14px 14px 4px 14px;
    font-family: var(--font-body);
}

/* ---------- Occasions ribbon ---------- */
.ribbon { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 720px; margin: 0 auto; }
.ribbon span {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.ribbon span:nth-child(3n+1) { background: #FBEFE2; }
.ribbon span:nth-child(3n+2) { background: #EEF2E5; }

/* ---------- Reminders, as gift tags ---------- */
.tags { display: grid; gap: 22px; max-width: 760px; margin: 0 auto; grid-template-columns: repeat(3, 1fr); }
.tag {
    position: relative;
    background: #FFFDF8;
    border-radius: 10px 10px 14px 14px;
    padding: 34px 16px 18px;
    text-align: center;
    box-shadow: var(--paper-shadow);
    clip-path: polygon(16% 0, 84% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
}
.tag::before { /* the eyelet */
    content: ''; position: absolute; top: 12px; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%;
    background: var(--bg-cream); box-shadow: inset 0 0 0 2px var(--sage-light);
}
.tag .when { font-family: var(--font-letter); font-style: italic; color: var(--terra); font-size: 0.95rem; }
.tag .what { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; line-height: 1.1; margin-top: 2px; }
.tag img { width: 64px; margin-top: 8px; }
.tag:nth-child(1) { transform: rotate(-2deg); }
.tag:nth-child(3) { transform: rotate(2deg); }

/* ---------- Promise band ---------- */
.promise {
    background: var(--olive);
    color: #fff;
    text-align: center;
    padding: 60px 0 64px;
    position: relative;
    overflow: hidden;
}
.promise .big { font-family: var(--font-script); font-size: 2.9rem; line-height: 1.1; color: var(--yellow-butter); margin-bottom: 14px; }
.promise p { color: #EEF1E6; max-width: 30em; margin: 0 auto 12px; }
.promise .bfly { position: absolute; width: 90px; opacity: 0.9; }
.promise .bfly.a { left: 3%; top: 8px; width: 60px; transform: rotate(-16deg); }
.promise .bfly.b { right: 5%; bottom: 14px; transform: rotate(14deg) scaleX(-1); width: 70px; }

.final { text-align: center; padding: 64px 0 70px; }
.final img.icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 12px 28px rgba(95, 111, 62, 0.22); margin-bottom: 14px; }
.final h2 { margin-bottom: 8px; }
.final p { color: var(--text-soft); }

@media (min-width: 820px) {
    .h-hero { padding: 64px 0 20px; }
    .h-hero h1 { font-size: 4.3rem; }
    .h-hero .hello { font-size: 2.8rem; }
    .fan { height: 440px; max-width: 560px; font-size: 20px; margin: 30px auto 30px; }
    .fan .lg-card { width: 250px; left: calc(50% - 125px); }
    .fan .f1 { transform: translateX(-170px) rotate(-12deg); }
    .fan .f3 { transform: translateX(170px) rotate(11deg); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .rack { justify-content: center; flex-wrap: wrap; overflow: visible; }
    .sprinkle.s1 { width: 190px; left: 2%; }
    .sprinkle.s2 { width: 160px; right: 3%; }
}

@media (max-width: 560px) {
    .sprinkle.s3, .sprinkle.s4 { display: none; }
    .promise { padding-top: 76px; }
    .tags { grid-template-columns: 1fr; max-width: 280px; }
    .h-sec h2 { font-size: 2.1rem; }
    .promise .big { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .fan .f2, .opener .front, .notepaper .pen { animation: none; }
    .notepaper .pen { width: 100%; }
}

/* =====================================================================
   Version 2: real stationery. Coloured papers, letterpress frames, an
   envelope on a linen table, and fewer loose flowers.
   ===================================================================== */

/* Better paper: a layered shadow, a soft sheen and a letterpress frame. */
.lg-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 45%), var(--card-paper, #FFFDF8);
    box-shadow:
        0 1px 1px rgba(63, 61, 56, 0.08),
        0 6px 10px -4px rgba(63, 61, 56, 0.12),
        0 22px 34px -14px rgba(74, 87, 49, 0.32);
    border-radius: 3px;
}
.lg-card::before { /* inner frame, like a printed border */
    content: '';
    position: absolute;
    inset: 5.5%;
    border: 1px solid var(--card-frame, rgba(95, 111, 62, 0.28));
    box-shadow: inset 0 0 0 3px var(--card-paper, #FFFDF8), inset 0 0 0 4px var(--card-frame, rgba(95, 111, 62, 0.16));
    border-radius: 2px;
    pointer-events: none;
}
.lg-card > * { position: relative; z-index: 1; }
.lg-card .tape { position: absolute; z-index: 3; }

.paper-blush  { --card-paper: #F9E6D8; --card-frame: rgba(201, 119, 74, 0.38); }
.paper-sage   { --card-paper: #E9EEDD; --card-frame: rgba(95, 111, 62, 0.38); }
.paper-butter { --card-paper: #FCF1D4; --card-frame: rgba(190, 150, 70, 0.45); }
.paper-gold   { --card-frame: #C8A564; }
.paper-ink    { --card-paper: #4E5C33; --card-frame: rgba(249, 224, 163, 0.6); }
.paper-ink .t, .paper-ink .t.s { color: #F9E0A3; }
.paper-ink .c { color: #DDE3D0; }

/* ---------- The hero flat-lay ---------- */
.h-hero .sprinkle { display: none; }
.flatlay {
    position: relative;
    height: 330px;
    max-width: 380px;
    margin: 18px auto 24px;
    border-radius: 26px;
    background:
        repeating-linear-gradient(0deg, rgba(95, 111, 62, 0.035) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(95, 111, 62, 0.03) 0 1px, transparent 1px 4px),
        radial-gradient(120% 90% at 30% 20%, #F1EBDD, #E6DDC9);
    box-shadow: inset 0 0 40px rgba(120, 100, 60, 0.12);
    overflow: hidden;
    font-size: 11px;
}
.flatlay .lg-card { position: absolute; width: 140px; }
.flatlay .back-l { left: 16px; top: 26px; transform: rotate(-13deg); }
.flatlay .back-r { right: 18px; top: 34px; transform: rotate(11deg); }
.flatlay .hero-card { left: calc(50% - 74px); width: 148px; top: 36px; transform: rotate(3deg); z-index: 3; animation: rise 7s ease-in-out infinite; }
@keyframes rise { 0%, 100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

/* A kraft envelope the card is coming out of. */
.env { position: absolute; width: 236px; height: 132px; left: calc(50% - 118px); bottom: 18px; }
.env-back {
    position: absolute; inset: 0; z-index: 2; border-radius: 4px;
    background: linear-gradient(#D7B88F, #CFAE83);
    box-shadow: 0 18px 26px -12px rgba(90, 70, 40, 0.45);
}
.env-flap {
    position: absolute; left: 0; right: 0; bottom: 100%; height: 70px; z-index: 2;
    background: linear-gradient(#C9A578, #D3B288);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.env-front {
    position: absolute; inset: 0; z-index: 4; border-radius: 4px;
    background: linear-gradient(170deg, #E5CBA5, #DDBF95);
    clip-path: polygon(0 18%, 50% 58%, 100% 18%, 100% 100%, 0 100%);
}
.env-front::after { /* a wax seal */
    content: ''; position: absolute; width: 30px; height: 30px; left: calc(50% - 15px); top: 44%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #D98B5E, #B4613A 70%);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2), inset 0 0 0 4px rgba(255, 255, 255, 0.12);
}
.env-front::before { /* the seal's lily */
    content: '❀'; position: absolute; z-index: 1; width: 30px; left: calc(50% - 15px); top: calc(44% + 3px);
    text-align: center; color: #F6DCC6; font-size: 16px; line-height: 24px;
}

/* A gift tag on twine. */
.gift-tag {
    position: absolute; right: 22px; bottom: 26px; z-index: 5;
    width: 66px; height: 40px; background: #FFFDF8; transform: rotate(-14deg);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 18% 100%, 0 50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    font-family: var(--font-script); color: var(--terra); font-size: 17px;
    display: flex; align-items: center; justify-content: center; padding-left: 10px;
}
.twine { position: absolute; z-index: 5; right: 70px; bottom: 30px; width: 120px; height: 60px; }
.confetti { position: absolute; z-index: 1; width: 9px; height: 9px; border-radius: 50%; background: #E8C27A; opacity: 0.8; }
.confetti.c1 { left: 30px; bottom: 54px; }
.confetti.c2 { left: 64px; bottom: 30px; width: 6px; height: 6px; background: #C9774A; }
.confetti.c3 { right: 40px; top: 18px; width: 7px; height: 7px; }
.confetti.c4 { left: 46%; top: 14px; width: 5px; height: 5px; background: #A3B18A; }

/* ---------- Card rack, now on coloured stock ---------- */
.rack figure { flex: 0 0 160px; }
.rack .lg-card { transition: transform 0.3s ease; }
.rack figure:nth-child(odd) .lg-card { transform: rotate(-2deg); }
.rack figure:nth-child(even) .lg-card { transform: rotate(2deg); }
.rack figure:hover .lg-card { transform: rotate(0) translateY(-6px); }

/* Step vignettes: a little stack instead of a lone card. */
.vignette .lg-card { width: 80px; }
.vignette .stack-b { position: absolute; transform: rotate(-10deg) translate(-14px, 4px); }
.vignette .stack-f { position: absolute; transform: rotate(5deg) translate(8px, 0); }

@media (min-width: 820px) {
    .flatlay { height: 460px; max-width: 640px; font-size: 15px; }
    .flatlay .lg-card { width: 190px; }
    .flatlay .back-l { left: 70px; top: 40px; }
    .flatlay .back-r { right: 70px; top: 50px; }
    .flatlay .hero-card { width: 200px; left: calc(50% - 100px); top: 46px; }
    .env { width: 320px; height: 178px; left: calc(50% - 160px); bottom: 26px; }
    .env-flap { height: 92px; }
    .gift-tag { right: 90px; bottom: 40px; transform: rotate(-14deg) scale(1.2); }
    .twine { right: 150px; bottom: 46px; }
}

/* =====================================================================
   Version 3: a fuller card rack (two rows of seven), more paper colours
   and a mix of lettering styles so it reads like a real card display.
   ===================================================================== */
.f-caps  { font-family: 'Montserrat', var(--font-body) !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.95em !important; line-height: 1.35 !important; }
.f-quick { font-family: 'Quicksand', var(--font-body) !important; font-weight: 700 !important; font-size: 1.25em !important; line-height: 1.15 !important; }
.f-lora  { font-family: var(--font-letter) !important; font-weight: 600 !important; font-size: 1.3em !important; }
.f-lora-i { font-family: var(--font-letter) !important; font-style: italic; font-weight: 500 !important; font-size: 1.4em !important; }
.f-cormi { font-style: italic; font-size: 1.65em !important; }

.paper-sky   { --card-paper: #E4ECF2; --card-frame: rgba(91, 110, 140, 0.4); }
.paper-cream { --card-paper: #FFFDF8; --card-frame: rgba(201, 100, 74, 0.35); }
.paper-navy  { --card-paper: #3F4F6B; }
.paper-navy .t { color: #F3E3B5 !important; }
.paper-navy .c { color: #DCE3EC; }

/* A photo card, drawn as a little polaroid */
.lg-card.polaroid { --card-paper: #FFFFFF; padding: 7% 7% 6%; }
.lg-card.polaroid::before { display: none; }
.polaroid .photo {
    width: 100%; aspect-ratio: 1 / 1; border-radius: 2px;
    background: linear-gradient(160deg, #DCE5EE, #C9D8E6);
    display: flex; align-items: center; justify-content: center; margin-bottom: 10%;
}
.polaroid .photo img { width: 60%; margin: 0; }
.polaroid .t { margin-top: auto; color: var(--text-soft) !important; font-size: 1.05em !important; }

/* Two rows: side-scrolling on phones, seven across on wide screens */
.rack {
    display: grid !important;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: 132px;
    gap: 26px 18px;
    overflow-x: auto;
    justify-content: start;
    padding: 18px 24px 30px;
}
.rack figure { flex: none !important; width: auto; }
@media (min-width: 1180px) {
    .rack {
        grid-auto-flow: row;
        grid-template-rows: none;
        grid-template-columns: repeat(7, 140px);
        justify-content: center;
        overflow: visible;
        gap: 34px 26px;
    }
}

/* The butterfly that follows the page down */
.flutter {
    position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
    width: 46px; margin: -26px 0 0 -23px; will-change: transform;
    filter: drop-shadow(0 6px 8px rgba(120, 80, 30, 0.18));
}
.flutter img { width: 100%; display: block; transform-origin: 18% 50%; animation: flap 0.42s ease-in-out infinite alternate; }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(0.45); } }
@media (min-width: 820px) { .flutter { width: 58px; } }
@media (prefers-reduced-motion: reduce) { .flutter img { animation: none; } }
