/* ==========================================================================
   GÄRY Landingpage - Pixel-Perfect Implementation
   Based on: Gäry_web_vorlage.pdf
   Font: Bunch | Brand Color: #f3743b
   ========================================================================== */

/* --- Font Imports --- */
@font-face {
    font-family: 'Bunch';
    src: url('fonts/Bunch-Regular.eot');
    src: local('Bunch Regular'), local('Bunch-Regular'),
        url('fonts/Bunch-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/Bunch-Regular.woff2') format('woff2'),
        url('fonts/Bunch-Regular.woff') format('woff'),
        url('fonts/Bunch-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bunch';
    src: url('fonts/Bunch-SemiBold.eot');
    src: local('Bunch SemiBold'), local('Bunch-SemiBold'),
        url('fonts/Bunch-SemiBold.eot?#iefix') format('embedded-opentype'),
        url('fonts/Bunch-SemiBold.woff2') format('woff2'),
        url('fonts/Bunch-SemiBold.woff') format('woff'),
        url('fonts/Bunch-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bunch';
    src: url('fonts/Bunch-Bold.eot');
    src: local('Bunch Bold'), local('Bunch-Bold'),
        url('fonts/Bunch-Bold.eot?#iefix') format('embedded-opentype'),
        url('fonts/Bunch-Bold.woff2') format('woff2'),
        url('fonts/Bunch-Bold.woff') format('woff'),
        url('fonts/Bunch-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bunch-Bold';
    src: url('fonts/Bunch-Bold.woff2') format('woff2'),
         url('fonts/Bunch-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bunch-SemiBold';
    src: url('fonts/Bunch-SemiBold.woff2') format('woff2'),
         url('fonts/Bunch-SemiBold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Design Tokens --- */
:root {
    --gaery-color-orange: #f3743b;
    --gaery-color-dark-bg: #c25518;
    --gaery-color-dark: #993f12;
    --gaery-color-beige: #F5EDE4;
    --gaery-color-white: #FFFFFF;
    --gaery-color-text-dark: #2D2D2D;
    --gaery-color-text-muted: #888888;
    --gaery-font-bold: 'Bunch-SemiBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gaery-font-regular: 'Bunch', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gaery-font-weight: 800;
    --gaery-color-text: var(--gaery-color-orange);
    --gaery-color-text-inverse: var(--gaery-color-white);
    --gaery-spacing: clamp(5.12rem, 8vw, 10.24rem);
    --gaery-text-base: clamp(2rem, 2.2vw, 2.4rem);
}

/* Bind the brand orange to inline SVGs whose orange parts use fill="currentColor".
   Single source of truth: change --gaery-color-orange to recolor every orange element. */
.recipe-icon-svg,
.intro-arrow,
.footer-image,
.arrow-icon {
    color: var(--gaery-color-orange);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--gaery-font-regular);
    font-weight: normal;
    color: var(--gaery-color-text-dark);
    background: var(--gaery-color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gaery-color-orange);
    color: var(--gaery-color-white);
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    z-index: 100;
    font-weight: var(--gaery-font-weight);
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

html,
body {
    overflow-x: hidden;
}

.hero-wrapper {
    overflow: hidden;
}

.hero {
    position: relative;
    width: 100%;
    max-width: 2560px;
    margin: 0 auto;
    background: url('images/gaery-hero-background-2560.webp') center/cover no-repeat;
    min-height: clamp(420px, 36.133vw, 925px);
    display: flex;
    align-items: center;
    padding: clamp(40px, 3.91vw, 100px) 0 clamp(50px, 4.69vw, 120px);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.6rem, 3.1vw, 4rem);
    display: block;
}

.hero-text {
    max-width: clamp(320px, 35vw, 540px);
    padding-right: 0;
}

.hero-logo {
    margin-bottom: clamp(1.2rem, 1.5vw, 2.4rem);
    opacity: 0;
    transform: scale(0.3);
    transform-origin: left center;
    animation: heroTitleIn 3s linear 0.3s forwards;
}

.hero-logo svg {
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
}

.hero-subtitle {
    font-family: var(--gaery-font-bold);
    font-weight: var(--gaery-font-weight);
    font-size: 2.4rem;
    color: var(--gaery-color-text-inverse);
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

.hero-description {
    font-family: var(--gaery-font-bold);
    font-weight: var(--gaery-font-weight);
    font-size: var(--gaery-text-base);
    color: var(--gaery-color-text-inverse);
    line-height: 1.6;
    max-width: clamp(320px, 35vw, 540px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

@media (max-width: 767px) {
    .hero {
        background-image: url('images/gaery-hero-background-1403.webp');
        align-items: flex-end;
        padding-bottom: 0;
        overflow: visible;
    }

    .hero-wrapper {
        overflow: visible;
    }

    .hero::before {
        display: none;
    }

    .hero-inner {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        text-align: center;
        padding: 0 clamp(1.2rem, 3vw, 2.4rem);
    }

    .hero-text-box {
        position: relative;
        z-index: 10;
        width: min(540px, 96vw);
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 28px;
        padding: clamp(1.2rem, 3vw, 2.8rem) clamp(2.4rem, 5vw, 4rem) clamp(1.2rem, 3vw, 2.8rem) clamp(2.4rem, 5vw, 4rem);
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
        margin-bottom: -170px;
        border-top: 5px solid var(--gaery-color-orange);
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        gap: 1.6rem;
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-logo {
        margin: 0 auto;
        text-align: center;
        transform-origin: center center;
    }

    .hero-logo svg {
        margin: 0 auto;
    }

    .hero-logo svg path {
        fill: var(--gaery-color-orange);
    }

    .hero-subtitle {
        font-size: 2.4rem;
        color: var(--gaery-color-text);
        margin-bottom: 0;
    }

    .hero-description {
        color: var(--gaery-color-text);
        line-height: 1.55;
        margin-top: 0.4rem;
    }
}

.hero-image {
    opacity: 0;
    transform: translateX(40px);
    animation: slideInRight 0.8s ease-out 0.5s forwards;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes heroTitleIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    15% {
        opacity: 0.4;
        transform: scale(0.37);
    }
    28% {
        opacity: 0.7;
        transform: scale(0.48);
    }
    39% {
        opacity: 0.9;
        transform: scale(0.62);
    }
    48% {
        opacity: 1;
        transform: scale(0.78);
    }
    55% {
        opacity: 1;
        transform: scale(1);
    }
    62% {
        opacity: 1;
        transform: scale(0.7);
    }
    70% {
        opacity: 1;
        transform: scale(0.91);
    }
    78% {
        opacity: 1;
        transform: scale(0.805);
    }
    86% {
        opacity: 1;
        transform: scale(0.855);
    }
    93% {
        opacity: 1;
        transform: scale(0.828);
    }
    100% {
        opacity: 1;
        transform: scale(0.84);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   RECIPE SECTION
   ========================================================================== */
.recipe {
    background: var(--gaery-color-white);
    padding: var(--gaery-spacing);
}

.recipe-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.recipe-headline {
    font-family: var(--gaery-font-bold);
    font-weight: var(--gaery-font-weight);
    font-size: clamp(3.2rem, 4vw, 4.8rem);
    color: var(--gaery-color-text);
    text-align: center;
    letter-spacing: 0.08em;
    margin-bottom: 4.8rem;
}

.recipe-intro {
    font-family: var(--gaery-font-bold);
    font-weight: var(--gaery-font-weight);
    font-size: var(--gaery-text-base);
    line-height: 1.6;
    color: var(--gaery-color-text);
    text-align: center;
    max-width: 1120px;
    margin: 0 auto 7rem;
}

.recipe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 6.4rem;
    row-gap: 3.2rem;
}

.recipe-step {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    justify-items: center;
    align-items: start;
}

.recipe-step-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.4rem;
    width: 100%;
    max-width: 400px;
    align-self: start;
}

.recipe-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    width: 70px;
    height: 70px;
    background: var(--gaery-color-orange);
    color: var(--gaery-color-white);
    font-family: var(--gaery-font-bold);
    font-weight: var(--gaery-font-weight);
    font-size: 3.2rem;
    flex-shrink: 0;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M55,5 C72,4 88,12 93,28 C98,44 96,60 90,72 C84,84 72,93 58,94 C44,95 30,90 20,80 C10,70 4,56 6,42 C8,28 16,16 28,9 C36,5 46,5 55,5 Z' fill='black'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M55,5 C72,4 88,12 93,28 C98,44 96,60 90,72 C84,84 72,93 58,94 C44,95 30,90 20,80 C10,70 4,56 6,42 C8,28 16,16 28,9 C36,5 46,5 55,5 Z' fill='black'/></svg>");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}

.step-blob-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    fill: var(--gaery-color-orange);
}

.recipe-step-text {
    font-family: var(--gaery-font-bold);
    font-weight: var(--gaery-font-weight);
    font-size: var(--gaery-text-base);
    color: var(--gaery-color-text);
    line-height: 1.4;
    text-align: left;
    flex: 1;
}

.recipe-step-icon {
    width: 100%;
    max-width: 360px;
    margin: 0;
    align-self: center;
}

.recipe-step:nth-child(2) .recipe-step-icon {
    max-width: 210px;
}

.recipe-step-icon img,
.recipe-step-icon svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Inline recipe illustrations: overshoot pops must not be clipped, and
   groups need fill-box origins so rotate/scale act on each element's own
   bounds instead of the whole canvas. */
.recipe-icon-svg {
    overflow: visible;
}

.recipe-icon-svg .anim-flour,
.recipe-icon-svg .anim-plus,
.recipe-icon-svg .anim-cup,
.recipe-icon-svg .anim-bread,
.recipe-icon-svg .anim-heart,
.recipe-icon-svg .anim-heart-beat {
    transform-box: fill-box;
    transform-origin: center;
}

/* Hidden until the scroll trigger fires. .anim-ready is JS-armed so the
   no-JS fallback keeps the illustrations visible. Scoped to :not(.recipe-in)
   because the idle loops only animate transform — without the scope the
   hidden opacity would win again once the entrance fill-mode ends. */
.recipe-grid.anim-ready:not(.recipe-in) .anim-flour,
.recipe-grid.anim-ready:not(.recipe-in) .anim-plus,
.recipe-grid.anim-ready:not(.recipe-in) .anim-cup,
.recipe-grid.anim-ready:not(.recipe-in) .anim-bread,
.recipe-grid.anim-ready:not(.recipe-in) .anim-heart {
    opacity: 0;
}

/* Entrance: staggered pop-in, fired once by .recipe-in (recipe-anim.js). */
.recipe-grid.recipe-in .anim-flour {
    animation: recipeSettleIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.recipe-grid.recipe-in .anim-plus {
    animation: recipePlusIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}
.recipe-grid.recipe-in .anim-cup {
    animation: recipeCupIn 0.85s cubic-bezier(0.34, 1.3, 0.64, 1) 0.55s both;
}
.recipe-grid.recipe-in .anim-bread {
    animation: recipeSettleIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}
.recipe-grid.recipe-in .anim-heart {
    animation: recipeHeartIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s both;
}

@keyframes recipeSettleIn {
    0%   { opacity: 0; transform: translateY(12px) scale(0.9); }
    60%  { opacity: 1; transform: translateY(-2px) scale(1.03); }
    80%  { opacity: 1; transform: translateY(1px) scale(0.99); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes recipePlusIn {
    0%   { opacity: 0; transform: scale(0); }
    65%  { opacity: 1; transform: scale(1.18); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes recipeCupIn {
    0%   { opacity: 0; transform: rotate(14deg) translateX(12px); }
    55%  { opacity: 1; transform: rotate(-3deg) translateX(-1px); }
    78%  { opacity: 1; transform: rotate(1.5deg) translateX(0); }
    100% { opacity: 1; transform: rotate(0deg) translateX(0); }
}

@keyframes recipeHeartIn {
    0%   { opacity: 0; transform: translateY(8px) scale(0.5); }
    60%  { opacity: 1; transform: translateY(-2px) scale(1.15); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Idle: continuous subtle life, started via .recipe-idle once the entrance
   finished. Must come after the entrance rules (same specificity). */
.recipe-grid.recipe-idle .anim-cup {
    animation: cupRock 5s ease-in-out infinite;
}
.recipe-grid.recipe-idle .anim-plus {
    animation: plusPulse 3.2s ease-in-out infinite;
}
.recipe-grid.recipe-idle .anim-bread {
    animation: breadBreathe 4.5s ease-in-out infinite;
}
.recipe-grid.recipe-idle .anim-heart {
    animation: heartFloat 3s ease-in-out infinite;
}
.recipe-grid.recipe-idle .anim-heart-beat {
    animation: heartBeat 2.4s ease-in-out infinite;
}

@keyframes cupRock {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-1.5deg); }
    75%      { transform: rotate(1.5deg); }
}

@keyframes plusPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.07); }
}

@keyframes breadBreathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.015); }
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-2.5px); }
}

/* lub-dub: two beats, then rest. */
@keyframes heartBeat {
    0%, 30%, 100% { transform: scale(1); }
    8%  { transform: scale(1.14); }
    16% { transform: scale(1); }
    23% { transform: scale(1.08); }
}

@media (max-width: 767px) {
    .recipe {
        padding-top: calc(170px + 4.8rem);
    }
}

/* ==========================================================================
   PRODUCT SECTION
   ========================================================================== */
.product {
    background: var(--gaery-color-white);
    max-width: 2560px;
    margin: 0 auto;
}

.product-inner {
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    align-items: stretch;
}

.product-image {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
}

/* Keep the image in the DOM (so naturalHeight is readable) but take it
   out of the grid flow: absolute positioning collapses the column, the
   orange box takes the full width. */
.product:not(.image-visible) .product-image {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
}

.product-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 587px;
    object-fit: contain;
}

.product-content {
    display: flex;
    width: 100%;
}

.product-box {
    background: var(--gaery-color-orange);
    padding: 4.8rem 4rem;
    border-radius: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.product-title {
    font-family: var(--gaery-font-bold);
    font-weight: var(--gaery-font-weight);
    font-size: 3.4rem;
    color: var(--gaery-color-white);
    line-height: 1.3;
    margin-bottom: 2.4rem;
    letter-spacing: 0.05em;
}

.product-description {
    font-family: var(--gaery-font-bold);
    font-weight: var(--gaery-font-weight);
    font-size: var(--gaery-text-base);
    color: var(--gaery-color-white);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* .product-cta is just a wrapper; the link inside is the flex container. */
.product-cta {
}

.arrow-icon {
    flex-shrink: 0;
    height: 11rem;
    width: auto;
    overflow: visible;
}

/* Arrow + cup animation groups */
.arrow-icon .anim-arrow,
.arrow-icon .anim-cup {
    transform-box: fill-box;
    transform-origin: center;
}

/* Hidden until scroll trigger fires (JS-armed, no-JS keeps visible) */
.product-cta.anim-ready:not(.product-cta-in) .anim-arrow,
.product-cta.anim-ready:not(.product-cta-in) .anim-cup {
    opacity: 0;
}

/* Entrance: arrow slides in from right, cup pops with overshoot */
.product-cta.product-cta-in .anim-arrow {
    animation: arrowSlideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
.product-cta.product-cta-in .anim-cup {
    animation: cupPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}

@keyframes arrowSlideIn {
    0%   { opacity: 0; transform: translateX(20px) scale(0.8); }
    60%  { opacity: 1; transform: translateX(-3px) scale(1.05); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes cupPopIn {
    0%   { opacity: 0; transform: scale(0.5) rotate(-8deg); }
    60%  { opacity: 1; transform: scale(1.08) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Idle: arrow pulses gently to draw attention, cup floats subtly */
.product-cta.product-cta-idle .anim-arrow {
    animation: arrowPulse 2.8s ease-in-out infinite;
}
.product-cta.product-cta-idle .anim-cup {
    animation: cupFloat 4s ease-in-out infinite;
}

/* Pause idle loops when the container is off-screen (IntersectionObserver).
   Must come after all idle animation rules to win the cascade. */
.recipe-grid.anim-paused .anim-cup,
.recipe-grid.anim-paused .anim-plus,
.recipe-grid.anim-paused .anim-bread,
.recipe-grid.anim-paused .anim-heart,
.recipe-grid.anim-paused .anim-heart-beat,
.product-cta.anim-paused .anim-arrow,
.product-cta.anim-paused .anim-cup {
    animation-play-state: paused;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-3px); }
}

@keyframes cupFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-2px) rotate(1deg); }
}

/* Hover on CTA link: cup does a single 360° spin (wrapper), idle keeps running. */
.arrow-icon .hover-arrow,
.arrow-icon .hover-cup,
.arrow-icon .anim-eye {
    transform-box: fill-box;
    transform-origin: center;
}

@media (hover: hover) {
    .product-link:hover .hover-cup {
        animation: cupSpin 0.8s ease-in-out;
    }
}

@keyframes cupSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 3.2rem;
    font-family: var(--gaery-font-bold);
    font-weight: var(--gaery-font-weight);
    font-size: var(--gaery-text-base);
    color: var(--gaery-color-white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.product-link:hover {
    opacity: 0.85;
}

/* ==========================================================================
   TAGLINE SECTION
   ========================================================================== */
.tagline {
    background: var(--gaery-color-white);
    padding: 6.4rem 3.2rem;
}

.tagline-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.tagline-text {
    display: block;
    height: clamp(4.8rem, 10vw, 12.8rem);
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.tagline-text .lt path {
    fill: var(--gaery-color-orange);
    transform-box: fill-box;
}

/* Hidden state only when JS armed the animation - no-JS keeps letters visible */
.tagline-text.anim-ready .lt .body {
    opacity: 0;
    transform: scale(0);
    transform-origin: 50% 100%;
}

.tagline-text.anim-ready .lt .dot {
    opacity: 0;
    transform: translateY(-14px) scale(0.3);
    transform-origin: 50% 50%;
}

.tagline-text.animate .lt .body {
    animation: tagBodyPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(var(--gaery-i) * 0.2s);
}

.tagline-text.animate .lt .dot {
    animation: tagDotDrop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(var(--gaery-i) * 0.2s + 0.55s);
}

@keyframes tagBodyPop {
    0% { opacity: 0; transform: scale(0) rotate(-8deg); }
    60% { opacity: 1; transform: scale(1.12) rotate(2deg); }
    80% { transform: scale(0.96) rotate(-1deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes tagDotDrop {
    0% { opacity: 0; transform: translateY(-14px) scale(0.3); }
    60% { opacity: 1; transform: translateY(2px) scale(1.15); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .tagline-text .lt .body,
    .tagline-text .lt .dot {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .contact-form input,
    .contact-form select,
    .contact-form textarea,
    .btn-submit {
        transition: none !important;
    }
    .btn-submit:hover:not(:disabled) {
        transform: none !important;
    }
    .recipe-grid.anim-ready .anim-flour,
    .recipe-grid.anim-ready .anim-plus,
    .recipe-grid.anim-ready .anim-cup,
    .recipe-grid.anim-ready .anim-bread,
    .recipe-grid.anim-ready .anim-heart {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .product-cta.anim-ready .anim-arrow,
    .product-cta.anim-ready .anim-cup {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .contact-intro.anim-ready .intro-arrow {
        opacity: 1 !important;
        animation: none !important;
    }
    /* Keep the -50% positioning transform (the animation overrides it).
       Reduced-motion users need the static position, not translateY(0). */
    .contact-intro .intro-arrow {
        transform: translateY(-50%) !important;
    }
    .footer-tagline .anim-eye,
    .footer-tagline .anim-wobble {
        animation: none !important;
        transform: none !important;
    }
    .arrow-icon .anim-eye {
        animation: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact {
    background: var(--gaery-color-white);
    padding: 0 3.2rem 6.4rem;
}

.contact-inner {
    max-width: 680px;
    margin: 0 auto;
}

.contact-intro {
    position: relative;
    margin-bottom: 4rem;
    font-size: var(--gaery-text-base);
}

.intro-arrow {
    position: absolute;
    left: -120px;
    top: 100%;
    transform: translateY(-50%);
    width: 100px;
    height: auto;
    overflow: visible;
}

/* Hidden until scroll trigger fires (JS-armed, no-JS keeps visible) */
.contact-intro.anim-ready:not(.intro-arrow-in) .intro-arrow {
    opacity: 0;
}

/* Entrance: swing down from above with bounce */
.contact-intro.intro-arrow-in .intro-arrow {
    animation: introArrowIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes introArrowIn {
    0%   { opacity: 0; transform: translateY(calc(-50% - 40px)) rotate(-10deg); }
    60%  { opacity: 1; transform: translateY(calc(-50% + 5px)) rotate(3deg); }
    100% { opacity: 1; transform: translateY(-50%) rotate(0deg); }
}

/* Idle: gentle downward pulse to draw the eye to the form */
.contact-intro.intro-arrow-idle .intro-arrow {
    animation: introArrowPulse 3s ease-in-out infinite;
}

@keyframes introArrowPulse {
    0%, 100% { transform: translateY(-50%); }
    50%      { transform: translateY(calc(-50% + 5px)); }
}

/* Pause when off-screen */
.contact-intro.anim-paused .intro-arrow {
    animation-play-state: paused;
}

.contact-intro p {
    font-family: var(--gaery-font-bold);
    font-weight: var(--gaery-font-weight);
    font-size: var(--gaery-text-base);
    line-height: 1.6;
    color: var(--gaery-color-text);
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Textarea with bottom-right char counter: counter sits inside the field
   via flex, textarea reserves bottom padding so text doesn't run under it. */
.form-group--with-counter {
    position: relative;
}

.char-counter {
    position: absolute;
    right: 2rem;
    bottom: 1.4rem;
    font-family: var(--gaery-font-regular);
    font-weight: normal;
    font-size: 1.2rem;
    color: var(--gaery-color-text-muted);
    background: rgba(255, 255, 255, 0.7);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    pointer-events: none;
    transition: color 0.25s ease, background 0.25s ease;
    line-height: 1;
    z-index: 1;
}

.char-counter.is-warn {
    color: var(--gaery-color-dark);
    background: rgba(255, 246, 238, 0.85);
}

.char-counter.is-full {
    color: #B73A1E;
    background: rgba(255, 235, 230, 0.9);
}

.form-group--with-counter textarea {
    padding-bottom: 3.6rem;
}

/* Inline field error: a modern "pill badge" hanging off the top-right
   corner of the field, like a notification indicator. Absolutely
   positioned so it does NOT push the next form row down (no layout
   shift). Pill shape matches the pill inputs, warm gradient fill and
   a small red-circle "!" marker communicate "Achtung" without the
   harsh look of an alert bar. Pop-in animation matches the brand's
   playful overshoot feel (see the tagline pop). */
.field-error {
    position: absolute;
    top: -0.9rem;
    right: 1.2rem;
    max-width: calc(100% - 60px);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.2rem 0.4rem 0.7rem;
    font-family: var(--gaery-font-regular);
    font-weight: normal;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #B73A1E;
    background: linear-gradient(135deg, #FFF6F1 0%, #FFEDE5 100%);
    border: 1px solid rgba(183, 58, 30, 0.22);
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(183, 58, 30, 0.12);
    z-index: 3;
    animation: fieldErrorIn 0.32s cubic-bezier(0.34, 1.4, 0.64, 1) both;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field-error::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    font-size: 1.1rem;
    font-weight: var(--gaery-font-weight);
    color: #FFF;
    background: #B73A1E;
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 1;
}

@keyframes fieldErrorIn {
    from { opacity: 0; transform: translateY(-3px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* When a field is invalid, the input border takes a warm-warning tone,
   the cream focus-fill is overridden to a warm-warning wash, and the
   placeholder text also turns red so the empty field itself signals
   "Achtung, hier fehlt was". */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #B73A1E;
}

.form-group.has-error input::placeholder,
.form-group.has-error textarea::placeholder {
    color: #B73A1E;
    opacity: 0.75;
    font-family: var(--gaery-font-regular);
    font-weight: normal;
}

/* Select has no ::placeholder — the first option's text serves as one.
   Setting color on the select itself only affects the displayed value. */
.form-group.has-error select {
    color: #B73A1E;
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF0EB 100%);
    box-shadow:
        0 0 0 4px rgba(183, 58, 30, 0.18),
        0 6px 20px -6px rgba(183, 58, 30, 0.22);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    font-family: var(--gaery-font-regular);
    font-weight: normal;
    font-size: 1.6rem;
    padding: 1.6rem 2.8rem;
    border: 2px solid var(--gaery-color-orange);
    border-radius: 50px;
    background: var(--gaery-color-white);
    color: var(--gaery-color-text-dark);
    /* Slight inner top-shadow gives the field a "set-in" feel at rest,
       so the focus state can lift it (by clearing the inset shadow). */
    box-shadow: inset 0 1px 3px rgba(45, 45, 45, 0.05);
    transition:
        border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
    width: 100%;
}

.contact-form textarea {
    border-radius: 25px;
    resize: vertical;
    min-height: 140px;
    padding-top: 2rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form select {
    color: var(--gaery-color-text);
    font-weight: normal;
    font-family: var(--gaery-font-regular);
    opacity: 0.85;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.contact-form input:hover:not(:focus):not(:disabled),
.contact-form select:hover:not(:focus):not(:disabled),
.contact-form textarea:hover:not(:focus):not(:disabled) {
    border-color: var(--gaery-color-dark);
    box-shadow:
        inset 0 1px 3px rgba(45, 45, 45, 0.05),
        0 0 0 3px rgba(237, 109, 48, 0.06);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--gaery-color-dark);
    /* Warm cream wash on focus: a sunlit, doughy fill that signals
       "you're in here" without a cold blue ring. */
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF6EE 100%);
    box-shadow:
        0 0 0 4px rgba(237, 109, 48, 0.18),
        0 6px 20px -6px rgba(237, 109, 48, 0.28);
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
    color: var(--gaery-color-text-muted);
    opacity: 0.6;
    font-family: var(--gaery-font-regular);
    font-weight: normal;
    transform: translateX(2px);
}

.contact-form input:disabled,
.contact-form select:disabled,
.contact-form textarea:disabled {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.select-field {
    position: relative;
}

.form-field-label {
    position: absolute;
    top: 0.7rem;
    left: 2.8rem;
    z-index: 1;
    color: var(--gaery-color-orange);
    font-family: var(--gaery-font-bold);
    font-size: 1.05rem;
    font-weight: var(--gaery-font-weight);
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
}

.select-field select {
    appearance: none;
    /* keep stroke hex in sync with --gaery-color-orange (data-URIs can't reference CSS variables) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23f3743b' stroke-width='2.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2.4rem center;
    padding-top: 2.35rem;
    padding-right: 4.8rem;
    cursor: pointer;
}

.select-field:focus-within .form-field-label {
    color: var(--gaery-color-dark);
}

.select-field select:focus {
    border-color: var(--gaery-color-dark);
}

.form-hint {
    font-family: var(--gaery-font-regular);
    font-weight: normal;
    font-size: 1.4rem;
    color: var(--gaery-color-text);
    text-align: center;
    margin-bottom: 0.8rem;
}

.form-actions {
    margin-top: 1.6rem;
}

.btn-submit {
    display: block;
    width: 100%;
    font-family: var(--gaery-font-bold);
    font-weight: var(--gaery-font-weight);
    font-size: 1.8rem;
    color: var(--gaery-color-white);
    background: var(--gaery-color-orange);
    border: none;
    padding: 1.76rem 3.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition:
        background 0.3s ease,
        transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s ease;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
    background: var(--gaery-color-dark-bg);
    transform: translateY(-2px);
}

.btn-submit:active:not(:disabled) {
    background: var(--gaery-color-dark);
    transform: translateY(0);
    transition-duration: 0.08s;
}

.btn-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(237, 109, 48, 0.4);
}

/* Keyboard focus indicator for form fields. The :focus rule above already
   provides a visual state for mouse users; :focus-visible adds a stronger
   outline that only appears for keyboard navigation (WCAG 2.4.7). */
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
    outline: 3px solid var(--gaery-color-orange);
    outline-offset: 2px;
}

/* Keyboard focus for links. */
.product-link:focus-visible {
    outline: 3px solid var(--gaery-color-white);
    outline-offset: 3px;
    border-radius: 2px;
}

.btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: var(--gaery-color-orange);
}

/* FORM FEEDBACK */
.form-feedback {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
    width: 100%;
    min-width: 0;
    margin-top: 2.4rem;
    padding: 3.2rem 2.4rem 2.4rem;
    overflow: hidden;
    background: var(--gaery-color-beige);
    color: var(--gaery-color-text-dark);
}

.form-feedback[hidden] {
    display: none;
}

.form-feedback__seam {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 0.4rem;
    background: var(--gaery-color-orange);
    transform: scaleX(1);
    transform-origin: left center;
}

.form-feedback__copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.form-feedback__title {
    margin: 0 0 1.2rem;
    color: var(--gaery-color-orange);
    font-family: var(--gaery-font-bold);
    font-size: clamp(3.2rem, 8vw, 4.4rem);
    font-weight: var(--gaery-font-weight);
    line-height: 1.05;
    letter-spacing: 0.02em;
}

.form-feedback__message {
    margin: 0;
    overflow-wrap: anywhere;
    color: inherit;
    font-family: var(--gaery-font-regular);
    font-size: clamp(1.8rem, 2.6vw, 2.2rem);
    font-weight: normal;
    line-height: 1.5;
}

.form-feedback__seal {
    display: block;
    width: 9.6rem;
    justify-self: end;
    color: var(--gaery-color-orange);
}

.form-feedback__seal-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.form-feedback__seal-shape {
    fill: currentColor;
}

.form-feedback__check {
    fill: none;
    stroke: var(--gaery-color-white);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 80;
    stroke-dashoffset: 0;
}

.form-feedback--error {
    color: var(--gaery-color-dark);
}

.form-feedback--error .form-feedback__seam {
    background: var(--gaery-color-dark);
}

.form-feedback--error .form-feedback__message {
    max-width: 56rem;
    font-family: var(--gaery-font-bold);
    font-weight: var(--gaery-font-weight);
}

.form-feedback--success.is-animating {
    animation: gaeryFeedbackPanelIn 800ms ease-out both;
}

.form-feedback--success.is-animating .form-feedback__seam {
    animation: gaeryFeedbackSeamIn 800ms ease-out both;
}

.form-feedback--success.is-animating .form-feedback__seal {
    animation: gaeryFeedbackSealIn 800ms cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

.form-feedback--success.is-animating .form-feedback__check {
    animation: gaeryFeedbackCheckIn 800ms ease-out both;
}

@keyframes gaeryFeedbackPanelIn {
    from {
        opacity: 0;
        transform: translateY(1.2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gaeryFeedbackSeamIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes gaeryFeedbackSealIn {
    from {
        opacity: 0;
        transform: translateY(1.2rem) rotate(-5deg) scale(0.86);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0) scale(1);
    }
}

@keyframes gaeryFeedbackCheckIn {
    from {
        opacity: 0;
        stroke-dashoffset: 80;
    }
    to {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

@media (min-width: 768px) {
    .form-feedback {
        grid-template-columns: minmax(0, 1fr) 12.8rem;
        align-items: center;
        gap: 3.2rem;
        padding: 4rem;
    }

    .form-feedback--error {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-feedback__seal {
        width: 12.8rem;
    }
}

@media (min-width: 1200px) {
    .form-feedback {
        padding: 4.8rem 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .form-feedback--success.is-animating,
    .form-feedback--success.is-animating .form-feedback__seam,
    .form-feedback--success.is-animating .form-feedback__seal,
    .form-feedback--success.is-animating .form-feedback__check {
        animation: none !important;
    }

    .form-feedback--success,
    .form-feedback--success .form-feedback__seal {
        opacity: 1;
        transform: none;
    }

    .form-feedback--success .form-feedback__seam {
        transform: scaleX(1);
    }

    .form-feedback--success .form-feedback__check {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

/* FOOTER TAGLINE */
.footer-tagline {
    background: var(--gaery-color-white);
    padding: 0;
    position: relative;
    overflow: hidden;
    max-width: 2560px;
    margin: 0 auto;
}

.footer-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3.2rem;
}

.footer-text {
    font-family: var(--gaery-font-bold);
    font-weight: var(--gaery-font-weight);
    font-size: clamp(3.2rem, 5vw, 10rem);
    color: var(--gaery-color-text);
    line-height: 1.2;
    flex: 1 1 auto;
    /* Padding: top/bottom for breathing room from the edges, left to
       push the text further toward the center (away from the left edge). */
    padding: 6.4rem 0 6.4rem clamp(3.2rem, 6vw, 12rem);
}

/* Footer logo: pinned to the bottom-right, flush against the corner
   (no border, no margin). Stays at 717px max up to viewport ~1500px,
   then shrinks linearly with the viewport. */
.footer-image {
    display: block;
    flex: 0 0 auto;
    width: clamp(180px, 48vw, 717px);
    height: auto;
    overflow: visible;
}

/* Footer GÄRY: blink + wobble */
.footer-image .anim-eye,
.footer-image .anim-wobble {
    transform-box: fill-box;
    transform-origin: center;
}

/* Blink: JS-controlled (random interval 1500-10000ms, duration 600-1500ms).
   The blinkOnce keyframes are applied via inline style.animation by JS. */
@keyframes blinkOnce {
    0%   { transform: scaleY(1); }
    15%  { transform: scaleY(0.05); }
    85%  { transform: scaleY(0.05); }
    100% { transform: scaleY(1); }
}

/* Wobble: JS assigns a random variant + random duration/delay to each
   element so the SVG body and footer text wobble independently. */
.footer-tagline.footer-anim .anim-wobble {
    transform-box: fill-box;
    transform-origin: center;
}

.footer-text {
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes gaeryWobbleA {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25%      { transform: scale(1.015, 0.985) rotate(1.5deg); }
    75%      { transform: scale(0.985, 1.015) rotate(-1.5deg); }
}

@keyframes gaeryWobbleB {
    0%, 100% { transform: scale(1) rotate(0deg); }
    30%      { transform: scale(0.988, 1.012) rotate(-1.2deg); }
    70%      { transform: scale(1.012, 0.988) rotate(1.8deg); }
}

@keyframes gaeryWobbleC {
    0%, 100% { transform: scale(1) rotate(0deg); }
    20%      { transform: scale(1.02, 0.98) rotate(2deg); }
    55%      { transform: scale(0.982, 1.018) rotate(-0.8deg); }
    80%      { transform: scale(1.008, 0.992) rotate(1deg); }
}

/* Pause when off-screen. !important needed because JS sets the animation
   via inline style (higher specificity than a plain class rule). */
.footer-tagline.anim-paused .anim-eye,
.footer-tagline.anim-paused .anim-wobble,
.footer-tagline.anim-paused .footer-text {
    animation-play-state: paused !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 3.2rem;
    }

    .recipe-grid {
        gap: 4rem;
    }
}

@media (max-width: 920px) {
    .intro-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --gaery-spacing: 4rem 2.4rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3.2rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-description {
        max-width: none;
        margin: 0 auto;
    }

    .recipe-grid {
        flex-direction: column;
        gap: 4.8rem;
    }

    .recipe-step-header {
        flex-direction: column;
        text-align: center;
    }

    .recipe-step-text {
        text-align: center;
    }

    .product-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-image {
        order: -1;
    }

    .footer-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 2.4rem;
    }

    .footer-text {
        padding: 4rem 2.4rem 0 2.4rem;
        flex: 0 0 auto;
    }

    .footer-image {
        /* Hold the 768px image size (369px) on smaller viewports so the
           logo stays visually prominent instead of shrinking further. */
        width: 369px;
        align-self: flex-end;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 280px;
    }

    .recipe-headline {
        font-size: 2.8rem;
    }

    .footer-text {
        font-size: 2.8rem;
    }

    .product-box {
        padding: 3.2rem 2.4rem;
    }

    .product-title {
        font-size: 2.4rem;
    }
}


        /* Keep the native control for form semantics while presenting a custom listbox. */
        .gaery-custom-select {
            position: relative;
        }

        .gaery-custom-select > select {
            position: absolute !important;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            pointer-events: none;
            padding: 0 !important;
            border: 0 !important;
        }

        .gaery-select-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            min-height: 6.2rem;
            padding: 1.6rem 2.8rem;
            border: 2px solid var(--gaery-color-orange);
            border-radius: 50px;
            background: var(--gaery-color-white);
            color: var(--gaery-color-text);
            font-family: var(--gaery-font-regular);
            font-size: 1.6rem;
            font-weight: normal;
            line-height: 1.6;
            text-align: left;
            cursor: pointer;
            transition:
                border-color 0.3s ease,
                background 0.3s ease,
                box-shadow 0.3s ease;
        }

        .gaery-select-trigger:hover {
            border-color: var(--gaery-color-dark);
            box-shadow:
                inset 0 1px 3px rgba(45, 45, 45, 0.05),
                0 0 0 3px rgba(237, 109, 48, 0.06);
        }

        .gaery-select-trigger:focus-visible {
            outline: 3px solid var(--gaery-color-orange);
            outline-offset: 2px;
            border-color: var(--gaery-color-dark);
            background: linear-gradient(180deg, #FFFFFF 0%, #FFF6EE 100%);
            box-shadow: 0 6px 20px -6px rgba(237, 109, 48, 0.28);
        }

        .gaery-select-arrow {
            width: 1rem;
            height: 1rem;
            margin-left: 1.6rem;
            border-right: 2px solid var(--gaery-color-orange);
            border-bottom: 2px solid var(--gaery-color-orange);
            transform: translateY(-0.25rem) rotate(45deg);
            transition: transform 0.2s ease, border-color 0.2s ease;
            flex: 0 0 auto;
        }

        .gaery-custom-select.is-open .gaery-select-arrow {
            border-color: var(--gaery-color-dark);
            transform: translateY(0.25rem) rotate(225deg);
        }

        .gaery-select-menu {
            position: absolute;
            top: calc(100% + 0.8rem);
            right: 0;
            left: 0;
            z-index: 20;
            display: grid;
            gap: 0.4rem;
            padding: 0.8rem;
            border: 2px solid var(--gaery-color-orange);
            border-radius: 2.4rem;
            background: var(--gaery-color-white);
            box-shadow: 0 1.2rem 2.8rem rgba(153, 63, 18, 0.18);
            transform-origin: top center;
            animation: gaerySelectMenuIn 0.18s ease-out both;
        }

        .gaery-select-menu[hidden] {
            display: none;
        }

        .gaery-select-option {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            min-height: 4.8rem;
            padding: 0.9rem 1.6rem;
            border: 0;
            border-radius: 1.6rem;
            background: transparent;
            color: var(--gaery-color-text-dark);
            font-family: var(--gaery-font-regular);
            font-size: 1.6rem;
            font-weight: normal;
            line-height: 1.4;
            text-align: left;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .gaery-select-option:hover,
        .gaery-select-option:focus-visible {
            outline: none;
            background: var(--gaery-color-orange);
            color: var(--gaery-color-white);
        }

        .gaery-select-option[aria-selected="true"] {
            background: var(--gaery-color-beige);
            color: var(--gaery-color-orange);
            font-family: var(--gaery-font-bold);
            font-weight: var(--gaery-font-weight);
        }

        .gaery-select-option[aria-selected="true"]::after {
            content: "✓";
            font-size: 1.8rem;
            line-height: 1;
        }

        .gaery-custom-select.has-error .gaery-select-trigger {
            border-color: #B73A1E;
            color: #B73A1E;
        }

        .gaery-custom-select.has-error .gaery-select-arrow {
            border-color: #B73A1E;
        }

        @keyframes gaerySelectMenuIn {
            from {
                opacity: 0;
                transform: translateY(-0.6rem) scale(0.98);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .gaery-select-menu {
                animation: none;
            }
        }

.btn-submit.is-submitting,
.btn-submit:disabled {
    transform: none;
}

.btn-submit.is-submitting::after,
.btn-submit:disabled::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2.8rem;
    width: 1.2em;
    height: 1.2em;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--gaery-color-white);
    border-radius: 50%;
    animation: gaerySubmitSpin 0.8s linear infinite;
}

@keyframes gaerySubmitSpin {
    from { transform: translateY(-50%) rotate(0); }
    to { transform: translateY(-50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-submit.is-submitting::after,
    .btn-submit:disabled::after {
        animation: none;
    }
}
