/* ==========================================================================
   cafe-sweets.com  —  monochrome patisserie laboratory
   palette : #ffffff #f4f1ec #c8c8c8 #4a4a4a #1a1a1a #000000
   type    : Jost (display) / Inter (body) / JetBrains Mono (ui)
   motifs  : diagonal slabs, 3D-rendered pastries, sugar drift, shake-error
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --c-white:    #ffffff;
    --c-cream:    #f4f1ec;
    --c-smoke:    #c8c8c8;
    --c-graphite: #4a4a4a;
    --c-charcoal: #1a1a1a;
    --c-black:    #000000;

    --f-display:  "Jost", "Futura", "Helvetica Neue", sans-serif;
    --f-body:     "Inter", "Helvetica Neue", Arial, sans-serif;
    --f-mono:     "JetBrains Mono", "Menlo", "Consolas", monospace;

    --diag-cut:   4vh;
    --slab-pad-y: 18vh;
    --slab-pad-x: 6vw;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-charcoal);
    background: var(--c-white);
    overflow-x: hidden;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
    font-family: var(--f-display);
    letter-spacing: -0.04em;
    text-wrap: balance;
}

p { max-width: 60ch; }

/* ---------- shared monospaced labels ---------- */
.mono-tag {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-graphite);
}

.mono-line {
    display: block;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--c-graphite);
}

/* ---------- particle field ---------- */
.particle-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}
.particle {
    position: absolute;
    bottom: -10vh;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--c-smoke);
    opacity: 0;
    will-change: transform, opacity;
    animation-name: drift;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.particle.dark { background: var(--c-graphite); }
.particle.large { width: 5px; height: 5px; }
.particle.tiny  { width: 2px; height: 2px; }

@keyframes drift {
    0%   { transform: translateY(0)      translateX(0);    opacity: 0; }
    8%   { opacity: 0.7; }
    50%  { transform: translateY(-55vh)  translateX(8px); }
    100% { transform: translateY(-110vh) translateX(-6px); opacity: 0; }
}

.particle-burst {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-black);
    pointer-events: none;
    z-index: 60;
    will-change: transform, opacity;
    animation: burst 600ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes burst {
    0%   { transform: translate(0,0) scale(1); opacity: 1; }
    100% { transform: translate(var(--bx), var(--by)) scale(0.2); opacity: 0; }
}

.confetti {
    position: fixed;
    width: 4px;
    height: 10px;
    background: var(--c-black);
    pointer-events: none;
    z-index: 80;
    will-change: transform, opacity;
}
.confetti.light { background: var(--c-white); border: 1px solid var(--c-charcoal); }

/* ---------- nav ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 6vw;
    mix-blend-mode: difference;
    color: var(--c-white);
    pointer-events: none;
}
.nav > * { pointer-events: auto; }

.logo {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.04em;
    color: var(--c-white);
    display: inline-flex;
    align-items: baseline;
    transform: translateZ(0);
}
.logo-dot { color: var(--c-white); margin-left: 1px; }
.logo.is-shaking { animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

.nav-links {
    display: flex;
    gap: 1.6rem;
}
.nav-link {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-white);
    position: relative;
    padding: 0.25rem 0.1rem;
    transition: transform 0.25s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transition: right 0.3s ease;
}
.nav-link:hover { transform: translateY(-1px); }
.nav-link:hover::after { right: 0; }
.nav-link.is-shaking { animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

/* ---------- hero (the tilted counter) ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--c-cream);
    overflow: hidden;
    transform: rotate(-1.2deg);
    margin-top: -2vh;
    margin-left: -3vw;
    margin-right: -3vw;
    padding: calc(var(--slab-pad-y) + 4vh) calc(var(--slab-pad-x) + 3vw) var(--slab-pad-y);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 6vh));
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 4vw;
    align-items: center;
}

.hero-inner {
    transform: rotate(1.2deg);  /* counter-rotate the content so type stays mostly straight */
    z-index: 2;
    position: relative;
}

.hero-eyebrow { margin-bottom: 1.2rem; }

.hero-title {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(4rem, 12vw, 11rem);
    line-height: 0.86;
    letter-spacing: -0.05em;
    color: var(--c-charcoal);
    margin-bottom: 1.6rem;
}
.hero-line { display: block; }
.hero-bullet {
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    background: var(--c-black);
    border-radius: 50%;
    transform: translateY(-0.05em);
    margin-left: 0.06em;
    animation: bullet-vib 3.7s ease-in-out infinite;
}
@keyframes bullet-vib {
    0%, 90%, 100% { transform: translate(0, -0.05em) scale(1); }
    92% { transform: translate(-2px, -0.05em) scale(1.04); }
    94% { transform: translate(2px, -0.05em) scale(0.96); }
    96% { transform: translate(-1px, -0.05em) scale(1.02); }
    98% { transform: translate(1px, -0.05em) scale(1); }
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--c-charcoal);
    max-width: 38ch;
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.hero-meta .mono-tag {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--c-charcoal);
    color: var(--c-charcoal);
}

.hero-floor {
    position: absolute;
    inset: auto 0 0 0;
    height: 8vh;
    background:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 14px,
            rgba(26,26,26,0.08) 14px,
            rgba(26,26,26,0.08) 15px
        );
    z-index: 0;
}

/* ---------- 3D macaron tower ---------- */
.tower-stage {
    position: relative;
    transform: rotate(1.2deg);
    perspective: 1500px;
    height: 60vh;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tower {
    position: relative;
    width: 360px;
    height: 360px;
    transform-style: preserve-3d;
    animation: tower-spin 50s linear infinite;
}
@keyframes tower-spin {
    from { transform: rotateX(-12deg) rotateY(0deg); }
    to   { transform: rotateX(-12deg) rotateY(360deg); }
}

.layer {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 280px;
    height: 60px;
    border-radius: 50%;
    transform-style: preserve-3d;
    box-shadow:
        0 12px 0 var(--c-charcoal),
        0 24px 0 var(--c-graphite),
        0 36px 30px rgba(0,0,0,0.18);
}
.layer-1 { background: var(--c-charcoal); transform: translate(-50%, -50%) translateZ(0)   translateY(110px); width: 320px; }
.layer-2 { background: var(--c-cream);    transform: translate(-50%, -50%) translateZ(0)   translateY(70px);  width: 300px; height: 26px; box-shadow: 0 4px 0 var(--c-smoke), 0 8px 14px rgba(0,0,0,0.15); }
.layer-3 { background: var(--c-charcoal); transform: translate(-50%, -50%) translateZ(0)   translateY(20px);  width: 260px; }
.layer-4 { background: var(--c-cream);    transform: translate(-50%, -50%) translateZ(0)   translateY(-20px); width: 220px; height: 22px; box-shadow: 0 4px 0 var(--c-smoke), 0 8px 14px rgba(0,0,0,0.15); }
.layer-5 { background: var(--c-charcoal); transform: translate(-50%, -50%) translateZ(0)   translateY(-65px); width: 180px; height: 50px; }
.layer-6 { background: var(--c-cream);    transform: translate(-50%, -50%) translateZ(0)   translateY(-115px);width: 80px;  height: 16px; box-shadow: 0 4px 0 var(--c-smoke); }

/* ---------- diagonal strata ---------- */
.strata {
    position: relative;
    padding: var(--slab-pad-y) var(--slab-pad-x);
    clip-path: polygon(0 var(--diag-cut), 100% 0, 100% calc(100% - var(--diag-cut)), 0 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    align-items: center;
    margin-top: -3vh;
    transition: transform 0.6s ease;
    will-change: transform;
}
.strata.is-in { transform: translateY(0); }
.strata:nth-of-type(even) {
    clip-path: polygon(0 0, 100% var(--diag-cut), 100% 100%, 0 calc(100% - var(--diag-cut)));
}
.strata--light { background: var(--c-white); color: var(--c-charcoal); }
.strata--dark  { background: var(--c-charcoal); color: var(--c-white); }
.strata--dark .mono-tag,
.strata--dark .mono-line { color: var(--c-smoke); }

.strata-text {
    max-width: 36ch;
    justify-self: center;
}
.strata-text .mono-tag { margin-bottom: 1rem; }
.strata-title {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.92;
    margin-bottom: 1.2rem;
    letter-spacing: -0.05em;
}
.strata-body {
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
}
.strata-meta { display: grid; gap: 0.4rem; }

.strata-pastry {
    position: relative;
    height: 60vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1300px;
}

/* macaron pastry (small version on catalog) */
.pastry { position: relative; transform-style: preserve-3d; }
.pastry-macaron { width: 280px; height: 280px; animation: spin-y 40s linear infinite; }
.pastry-macaron .disc {
    position: absolute;
    left: 50%;
    width: 240px;
    height: 60px;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 8px 0 rgba(0,0,0,0.4), 0 14px 18px rgba(0,0,0,0.15);
}
.pastry-macaron .disc-a { top: 30px;  background: var(--c-charcoal); }
.pastry-macaron .disc-b { top: 110px; background: var(--c-charcoal); width: 220px; left: calc(50% - 110px); transform: none; }
.pastry-macaron .disc-c { top: 190px; background: var(--c-charcoal); }
.pastry-macaron .cream {
    position: absolute;
    left: 50%;
    width: 220px;
    height: 16px;
    transform: translateX(-50%);
    background: var(--c-cream);
    box-shadow: 0 2px 0 var(--c-smoke);
}
.pastry-macaron .cream-a { top: 80px; }
.pastry-macaron .cream-b { top: 160px; width: 200px; }

/* eclair pastry */
.pastry-eclair { width: 360px; height: 200px; animation: spin-y 55s linear infinite; }
.pastry-eclair .capsule {
    position: absolute;
    inset: 60px 0 60px 0;
    background: var(--c-charcoal);
    border-radius: 60px;
    box-shadow:
        inset 0 8px 0 rgba(255,255,255,0.05),
        inset 0 -8px 0 rgba(0,0,0,0.4),
        0 18px 0 var(--c-graphite),
        0 30px 30px rgba(0,0,0,0.25);
}
.pastry-eclair .piping {
    position: absolute;
    height: 12px;
    background: var(--c-cream);
    border-radius: 6px;
    box-shadow: 0 2px 0 var(--c-smoke);
}
.pastry-eclair .piping-1 { top: 80px;  left: 30px;  width: 90px;  transform: rotate(-3deg); }
.pastry-eclair .piping-2 { top: 90px;  left: 140px; width: 90px;  transform: rotate(2deg); }
.pastry-eclair .piping-3 { top: 100px; left: 240px; width: 90px;  transform: rotate(-2deg); }

/* tart pastry */
.pastry-tart { width: 280px; height: 280px; animation: spin-z 60s linear infinite; }
.pastry-tart .tart-base {
    position: absolute;
    inset: 0;
    background: var(--c-charcoal);
    border: 6px solid var(--c-graphite);
    box-shadow:
        inset 0 0 0 14px var(--c-charcoal),
        inset 0 0 0 18px var(--c-cream),
        0 16px 0 var(--c-graphite),
        0 28px 24px rgba(0,0,0,0.22);
}
.pastry-tart .fruit {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-cream);
    box-shadow: inset -6px -6px 0 var(--c-smoke), 0 4px 0 var(--c-charcoal);
}
.pastry-tart .fruit-1 { top: 40px;  left: 40px; }
.pastry-tart .fruit-2 { top: 40px;  left: 112px; background: var(--c-charcoal); box-shadow: inset -6px -6px 0 var(--c-graphite), 0 4px 0 var(--c-graphite); }
.pastry-tart .fruit-3 { top: 40px;  left: 184px; }
.pastry-tart .fruit-4 { top: 112px; left: 40px;  background: var(--c-charcoal); box-shadow: inset -6px -6px 0 var(--c-graphite), 0 4px 0 var(--c-graphite); }
.pastry-tart .fruit-5 { top: 112px; left: 112px; }
.pastry-tart .fruit-6 { top: 112px; left: 184px; background: var(--c-charcoal); box-shadow: inset -6px -6px 0 var(--c-graphite), 0 4px 0 var(--c-graphite); }
.pastry-tart .fruit-7 { top: 184px; left: 40px; }
.pastry-tart .fruit-8 { top: 184px; left: 112px; background: var(--c-charcoal); box-shadow: inset -6px -6px 0 var(--c-graphite), 0 4px 0 var(--c-graphite); }
.pastry-tart .fruit-9 { top: 184px; left: 184px; }

/* layer cake pastry */
.pastry-cake { width: 320px; height: 280px; animation: spin-y 48s linear infinite; }
.pastry-cake .band {
    position: absolute;
    left: 50%;
    width: 280px;
    height: 30px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}
.pastry-cake .band-d { background: var(--c-charcoal); }
.pastry-cake .band-l { background: var(--c-cream); }
.pastry-cake .band:nth-child(1) { top: 30px;  width: 240px; }
.pastry-cake .band:nth-child(2) { top: 60px;  width: 250px; }
.pastry-cake .band:nth-child(3) { top: 90px;  width: 260px; }
.pastry-cake .band:nth-child(4) { top: 120px; width: 270px; }
.pastry-cake .band:nth-child(5) { top: 150px; width: 270px; }
.pastry-cake .band:nth-child(6) { top: 180px; width: 280px; }
.pastry-cake .band:nth-child(7) { top: 210px; width: 280px; box-shadow: 0 12px 0 var(--c-graphite), 0 24px 22px rgba(0,0,0,0.25); }

@keyframes spin-y {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}
@keyframes spin-z {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---------- recipe philosophy: asymmetric grid ---------- */
.philosophy {
    position: relative;
    padding: calc(var(--slab-pad-y) + 4vh) var(--slab-pad-x) var(--slab-pad-y);
    background: var(--c-cream);
    color: var(--c-charcoal);
    clip-path: polygon(0 var(--diag-cut), 100% 0, 100% calc(100% - var(--diag-cut)), 0 100%);
    margin-top: -3vh;
    transition: transform 0.6s ease;
}

.philosophy-head {
    max-width: 800px;
    margin: 0 auto 5vh;
    text-align: left;
}
.philosophy-title {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 0.92;
    margin: 0.6rem 0 1.4rem;
    letter-spacing: -0.05em;
}
.philosophy-lede {
    font-size: 1.15rem;
    color: var(--c-graphite);
    max-width: 50ch;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.recipe {
    background: var(--c-white);
    border: 2px solid var(--c-charcoal);
    padding: 1.6rem 1.5rem;
    transform: rotate(var(--tilt, 0deg));
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    position: relative;
    will-change: transform;
}
.recipe:hover {
    transform: rotate(var(--tilt, 0deg)) translateY(-4px);
    box-shadow: 8px 8px 0 var(--c-charcoal);
}
.recipe.is-shaking {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
.recipe .mono-tag { margin-bottom: 0.6rem; }
.recipe-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
}
.recipe p {
    font-size: 0.98rem;
    color: var(--c-charcoal);
}

.recipe--7 { grid-column: span 7; }
.recipe--4 { grid-column: span 5; }
.recipe--9 { grid-column: span 9; }
.recipe--5 { grid-column: span 3; }
.recipe--8 { grid-column: span 8; }
.recipe--6 { grid-column: span 4; }

/* ---------- order form: shake-error showcase ---------- */
.order {
    position: relative;
    padding: var(--slab-pad-y) var(--slab-pad-x);
    background: var(--c-white);
    color: var(--c-charcoal);
    clip-path: polygon(0 0, 100% var(--diag-cut), 100% 100%, 0 calc(100% - var(--diag-cut)));
    margin-top: -3vh;
    overflow: hidden;
}

.order-head {
    max-width: 720px;
    margin: 0 auto 4vh;
    text-align: center;
}
.order-title {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 0.92;
    margin: 0.6rem 0 1.4rem;
    letter-spacing: -0.05em;
}
.order-lede {
    font-size: 1.05rem;
    color: var(--c-graphite);
    max-width: 60ch;
    margin: 0 auto;
}

.order-form {
    max-width: 640px;
    margin: 0 auto;
    background: var(--c-cream);
    padding: 3rem 2.4rem 2.4rem;
    border: 2px solid var(--c-charcoal);
    transform: rotate(-2deg);
    display: grid;
    gap: 1.2rem;
    box-shadow: 12px 12px 0 var(--c-charcoal);
}
.field {
    position: relative;
    display: flex;
    flex-direction: column;
}
.field--wide { grid-column: 1 / -1; }
.field input,
.field textarea {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--c-graphite);
    padding: 0.85rem 0.2rem;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--c-charcoal);
    width: 100%;
    outline: none;
    resize: none;
    transition: border-color 0.3s ease;
}
.field input::placeholder,
.field textarea::placeholder {
    color: var(--c-smoke);
    font-style: italic;
}
.field input:focus,
.field textarea:focus {
    border-color: var(--c-charcoal);
}
.field.is-error input,
.field.is-error textarea {
    border-color: var(--c-black);
    color: var(--c-black);
}
.field.is-error {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.order-submit {
    margin-top: 0.6rem;
    background: var(--c-charcoal);
    color: var(--c-white);
    border: 2px solid var(--c-charcoal);
    padding: 1rem 1.6rem;
    font-family: var(--f-mono);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    width: 100%;
    max-width: 320px;
    justify-self: center;
    grid-column: 1 / -1;
}
.order-submit:hover {
    background: var(--c-white);
    color: var(--c-charcoal);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--c-charcoal);
}
.order-submit:active { transform: translate(0,0); box-shadow: none; }
.submit-arrow { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }

.order-status {
    grid-column: 1 / -1;
    text-align: center;
    font-family: var(--f-mono);
    font-size: 0.85rem;
    color: var(--c-graphite);
    min-height: 1.2em;
}
.order-status.is-error  { color: var(--c-black); }
.order-status.is-ok     { color: var(--c-charcoal); }

/* ---------- shake keyframes ---------- */
@keyframes shake {
    0%, 100%        { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80%      { transform: translateX(8px); }
}
@keyframes shake-form {
    0%, 100%        { transform: rotate(-2deg) translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-2deg) translateX(-8px); }
    20%, 40%, 60%, 80%      { transform: rotate(-2deg) translateX(8px); }
}
.order-form.is-shaking { animation: shake-form 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

/* ---------- footer slab ---------- */
.footer {
    position: relative;
    background: var(--c-black);
    color: var(--c-white);
    clip-path: polygon(0 var(--diag-cut), 100% 0, 100% 100%, 0 100%);
    margin-top: -3vh;
    padding: calc(var(--slab-pad-y) + 4vh) var(--slab-pad-x) 4vh;
    overflow: hidden;
}

.marquee {
    overflow: hidden;
    margin: 0 -6vw 8vh;
    padding: 2vh 0;
    border-top: 1px solid var(--c-graphite);
    border-bottom: 1px solid var(--c-graphite);
}
.marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee 28s linear infinite;
    padding: 0 2vw;
}
.marquee-word {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--c-white);
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
}
.marquee-word:nth-child(2n)  { transform: translateY(-0.18em); color: var(--c-smoke); }
.marquee-word:nth-child(3n)  { transform: translateY(0.22em); }
.marquee-word:nth-child(4n)  { transform: translateY(-0.1em); color: var(--c-graphite); }
.marquee-word:nth-child(5n)  { transform: translateY(0.05em); }
.marquee-dot { color: inherit; margin-left: 1px; }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.footer-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vw;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 6vh;
    border-bottom: 1px solid var(--c-graphite);
}
.footer-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-smoke);
    margin-top: 0.6rem;
}
.footer-col .mono-tag { color: var(--c-white); }

.footer-link {
    color: var(--c-white);
    border-bottom: 1px solid var(--c-graphite);
    transition: border-color 0.3s ease, color 0.3s ease;
}
.footer-link:hover { border-color: var(--c-white); color: var(--c-white); }

.footer-base {
    max-width: 1100px;
    margin: 4vh auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-base .mono-tag { color: var(--c-graphite); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    :root { --diag-cut: 3vh; --slab-pad-y: 14vh; }

    .hero {
        grid-template-columns: 1fr;
        gap: 2vh;
        padding: calc(var(--slab-pad-y) + 6vh) 6vw var(--slab-pad-y);
    }
    .tower-stage { height: 44vh; min-height: 320px; }
    .tower { width: 280px; height: 280px; }
    .layer { width: 220px; height: 48px; }

    .strata { grid-template-columns: 1fr; gap: 4vh; }
    .strata-pastry { height: 44vh; min-height: 280px; order: 2; }
    .strata-text { order: 1; max-width: 100%; }
    .strata:nth-of-type(even) .strata-pastry { order: 2; }
    .strata:nth-of-type(even) .strata-text   { order: 1; }

    .recipe-grid {
        grid-template-columns: 1fr;
    }
    .recipe--7, .recipe--4, .recipe--9,
    .recipe--5, .recipe--8, .recipe--6 { grid-column: 1 / -1; }

    .order-form { transform: rotate(-1deg); padding: 2rem 1.4rem 1.6rem; box-shadow: 6px 6px 0 var(--c-charcoal); }
    @keyframes shake-form {
        0%, 100%        { transform: rotate(-1deg) translateX(0); }
        10%, 30%, 50%, 70%, 90% { transform: rotate(-1deg) translateX(-6px); }
        20%, 40%, 60%, 80%      { transform: rotate(-1deg) translateX(6px); }
    }

    .footer-meta { grid-template-columns: 1fr; gap: 4vh; }
    .nav-links { gap: 1rem; }
    .nav-link  { font-size: 0.7rem; }
}

@media (max-width: 560px) {
    .hero-title { font-size: clamp(3rem, 14vw, 6rem); }
    .nav { padding: 1rem 5vw; }
    .marquee-word { font-size: clamp(2.4rem, 9vw, 4rem); }
    .pastry-eclair { width: 280px; height: 160px; }
    .pastry-tart { width: 220px; height: 220px; }
    .pastry-tart .fruit { width: 40px; height: 40px; }
    .pastry-tart .fruit-1 { top: 30px;  left: 30px; }
    .pastry-tart .fruit-2 { top: 30px;  left: 90px; }
    .pastry-tart .fruit-3 { top: 30px;  left: 150px; }
    .pastry-tart .fruit-4 { top: 90px;  left: 30px; }
    .pastry-tart .fruit-5 { top: 90px;  left: 90px; }
    .pastry-tart .fruit-6 { top: 90px;  left: 150px; }
    .pastry-tart .fruit-7 { top: 150px; left: 30px; }
    .pastry-tart .fruit-8 { top: 150px; left: 90px; }
    .pastry-tart .fruit-9 { top: 150px; left: 150px; }
    .pastry-cake { width: 240px; height: 220px; }
    .pastry-cake .band { width: 200px !important; }
}
