/* =====================================================
   Home Page — Locate My Table
   Sections: hero (.st-hero), how it works (.st-steps), features (.st-feat), about (.st-about)
   All values use CSS custom properties only.
   ===================================================== */

/* =====================================================
   Hero
   ===================================================== */

.section-hero {
    position: relative;
    background-color: var(--color-bg);
    /* RULE 14: body already offsets the fixed header */
    padding-top: var(--space-16);
    padding-bottom: var(--section-py);
    overflow: hidden;
}

.st-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: var(--space-16);
}

/* ---- Copy ---- */

.st-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
}

.st-hero__eyebrow::before {
    content: "";
    width: var(--space-8);
    height: 1px;
    background-color: var(--color-accent);
}

.st-hero__heading {
    margin-top: var(--space-5);
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.st-hero__highlight {
    font-style: italic;
    color: var(--color-accent-dark);
}

.st-hero__body {
    margin-top: var(--space-6);
    max-width: var(--measure-text);
    font-size: var(--text-body-lg);
    line-height: var(--leading-body);
    color: var(--color-muted);
}

.st-hero__body p + p {
    margin-top: var(--space-4);
}

.st-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-10);
}

/* ---- Guest view illustration ---- */

.st-hero__visual {
    /* Target of the Search by Name button: clear the fixed header */
    scroll-margin-top: calc(var(--header-h) + var(--space-4));
    display: flex;
    justify-content: center;
}

.st-hero__demo {
    position: relative;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 520px;
    padding-top: var(--space-8);
    padding-right: var(--space-8);
}

/* Soft arch behind the phone */
.st-hero__arch {
    position: absolute;
    top: 0;
    right: 0;
    bottom: var(--space-10);
    width: 364px;
    border-radius: 999px 999px var(--radius-xl) var(--radius-xl);
    background-color: rgba(var(--color-accent-rgb), 0.1);
    border: 1px solid rgba(var(--color-accent-rgb), 0.3);
}

.st-hero__arch::after {
    content: "";
    position: absolute;
    inset: var(--space-3);
    border-radius: inherit;
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
}

.st-hero__phone {
    position: relative;
    z-index: var(--z-base);
    width: 300px;
    padding: var(--space-3);
    border-radius: calc(var(--radius-xl) * 2.5);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
}

.st-hero__screen {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-8) var(--space-4) var(--space-4);
    border-radius: calc(var(--radius-xl) * 2);
    background-color: var(--color-bg);
    overflow: hidden;
}

.st-hero__notch {
    position: absolute;
    top: var(--space-3);
    left: 50%;
    width: 72px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: var(--radius-full);
    background-color: var(--color-border);
}

.st-hero__event {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    text-align: center;
}

.st-hero__event-name {
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}

.st-hero__event-meta {
    font-size: var(--text-xs);
    color: var(--color-muted);
}

.st-hero__search-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.st-hero__search-box {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full);
    background-color: var(--color-white);
    border: 1px solid rgba(var(--color-primary-rgb), 0.3);
    box-shadow: 0 0 0 4px rgba(var(--color-accent-rgb), 0.14);
    color: var(--color-muted);
}

.st-hero__query {
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-hero__caret {
    flex-shrink: 0;
    width: 2px;
    height: 1.1em;
    margin-left: calc(var(--space-1) * -1);
    background-color: var(--color-primary);
    animation: st-hero-blink 1.1s steps(1) infinite;
}

.st-hero__result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.st-hero__result-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.st-hero__result-label {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
}

.st-hero__result-name {
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    color: var(--color-text);
}

.st-hero__result-note {
    font-size: var(--text-xs);
    line-height: var(--leading-heading);
    color: var(--color-muted);
}

.st-hero__table-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-accent-rgb), 0.3);
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: var(--fw-semibold);
    color: var(--color-white);
}

/* Floor plan artwork */
.st-hero__plan {
    display: block;
    width: 100%;
    height: auto;
}

.st-hero__plan-room {
    fill: var(--color-white);
    stroke: var(--color-border);
}

.st-hero__plan-head {
    fill: var(--color-tint);
    stroke: var(--color-border);
}

.st-hero__plan-floor {
    fill: rgba(var(--color-accent-rgb), 0.1);
    stroke: rgba(var(--color-accent-rgb), 0.45);
    stroke-dasharray: 3 3;
}

.st-hero__plan-chair {
    fill: rgba(var(--color-text-rgb), 0.16);
}

.st-hero__plan-top {
    fill: var(--color-white);
    stroke: rgba(var(--color-text-rgb), 0.22);
}

.st-hero__plan-table.is-target .st-hero__plan-chair {
    fill: var(--color-accent-dark);
}

.st-hero__plan-table.is-target .st-hero__plan-top {
    fill: var(--color-accent);
    stroke: var(--color-accent-dark);
}

.st-hero__plan-ring {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    animation: st-hero-pulse 2.4s ease-out infinite;
}

/* QR card */
.st-hero__qr {
    position: absolute;
    left: 0;
    bottom: 18%;
    z-index: var(--z-raised);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    max-width: 240px;
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3);
    border-radius: var(--radius-lg);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    animation: st-hero-float 6s ease-in-out infinite;
}

.st-hero__qr-code {
    flex-shrink: 0;
    /* 87px box, 8px padding, 1px border leaves 69px for 23 modules: exactly 3px each,
       so every square is the same size and the code stays sharp. */
    width: 64px;
    height: 64px;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    fill: var(--color-primary);
}

.st-hero__qr-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.st-hero__qr-title {
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    color: var(--color-text);
}

.st-hero__qr-caption {
    font-size: var(--text-xs);
    line-height: var(--leading-heading);
    color: var(--color-muted);
}

@keyframes st-hero-blink {
    50% { opacity: 0; }
}

@keyframes st-hero-pulse {
    0%   { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes st-hero-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(calc(var(--space-2) * -1)); }
}

/* ---- Hero entrance (CSS only, plays once on load) ----
   The text settles in line by line, then the content of the phone is built up: event name, name search (the name types in), table result with
   its number, floor plan tables one by one, and finally the QR card.
   Only animations are added here: every element's resting style is its
   final state, so with animations off (reduced motion) nothing is hidden
   and the layout never changes. */

.section-hero {
    --st-hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.st-hero__eyebrow,
.st-hero__actions {
    animation: st-hero-up 0.8s var(--st-hero-ease) both;
}

/* The heading and intro are the page's largest text (its LCP element): they only
   glide into place and are never transparent, so they count as painted at once. */
.st-hero__heading,
.st-hero__body {
    animation: st-hero-rise 0.8s var(--st-hero-ease) both;
}

.st-hero__eyebrow { animation-delay: 0.1s; }
.st-hero__heading { animation-delay: 0.25s; }
.st-hero__body    { animation-delay: 0.55s; }
.st-hero__actions { animation-delay: 0.75s; }

/* "in seconds" fades in a beat after the rest of the heading (opacity only, so wrapping never changes) */
.st-hero__highlight {
    animation: st-hero-fade 0.9s ease-out 0.7s both;
}

/* The phone shape and the arch behind it are never animated: they are on screen from the
   first frame and stay put. Only the content inside the phone (and the QR box) animates. */

/* Inside the phone nothing travels vertically (fade/scale only), so the phone reads as one
   steady object on reload instead of its content sliding up and down. */
.st-hero__event  { animation: st-hero-fade 0.6s ease-out 1s both; }
.st-hero__search { animation: st-hero-fade 0.6s ease-out 1.2s both; }

/* The name types in, then the caret keeps blinking. A white cover with a caret on its
   left edge slides off the name (transform only, so no layout work per step); the
   real caret waits hidden until the cover has gone. */
.st-hero__query {
    position: relative;
}

.st-hero__query::after {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 2px solid var(--color-primary);
    background-color: var(--color-white);
    transform: translateX(100%);
    animation: st-hero-type 1s steps(10, end) 1.6s both;
}

.st-hero__caret {
    opacity: 0;
    animation: st-hero-caret 1.1s steps(1) 2.6s infinite;
}

.st-hero__result {
    animation: st-hero-pop 0.7s var(--st-hero-ease) 2.4s both;
}

.st-hero__table-num {
    animation: st-hero-badge 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 2.8s both;
}

.st-hero__plan-room,
.st-hero__plan-head,
.st-hero__plan-floor {
    animation: st-hero-fade 0.6s ease-out 3s both;
}

/* Tables appear one after another; the guest's table (6th) pops last */
.st-hero__plan-table {
    transform-box: fill-box;
    transform-origin: center;
    animation: st-hero-seat 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.st-hero__plan-table:nth-of-type(1) { animation-delay: 3.1s; }
.st-hero__plan-table:nth-of-type(2) { animation-delay: 3.18s; }
.st-hero__plan-table:nth-of-type(3) { animation-delay: 3.26s; }
.st-hero__plan-table:nth-of-type(4) { animation-delay: 3.34s; }
.st-hero__plan-table:nth-of-type(5) { animation-delay: 3.42s; }
.st-hero__plan-table:nth-of-type(6) { animation-delay: 3.9s; }
.st-hero__plan-table:nth-of-type(7) { animation-delay: 3.5s; }
.st-hero__plan-table:nth-of-type(8) { animation-delay: 3.58s; }
.st-hero__plan-table:nth-of-type(9) { animation-delay: 3.66s; }

/* The pulse ring starts once the guest's table has landed. One animation only (a second
   one on the same element blocks compositing); it stays hidden until the pulse begins. */
.st-hero__plan-ring {
    opacity: 0;
    animation: st-hero-pulse 2.4s ease-out 4.2s infinite;
}

/* The small QR box fades in as one piece at the end of the build, then floats gently up and
   down (translateY only, no scale or rotate, so the code and text are never distorted). */
.st-hero__qr {
    animation:
        st-hero-fade 0.9s ease-out 4s both,
        st-hero-float 6s ease-in-out 4.9s infinite;
}

@keyframes st-hero-up {
    from { opacity: 0; transform: translateY(var(--space-5)); }
}

@keyframes st-hero-rise {
    from { transform: translateY(var(--space-5)); }
}

/* Caret blink once typing ends: the caret is hidden (opacity 0) before that,
   so both states are spelled out here; one animation keeps it composited */
@keyframes st-hero-caret {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
}

@keyframes st-hero-fade {
    from { opacity: 0; }
}

@keyframes st-hero-type {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
}

@keyframes st-hero-pop {
    from { opacity: 0; transform: scale(0.96); }
}

@keyframes st-hero-badge {
    from { opacity: 0; transform: scale(0.3); }
}

@keyframes st-hero-seat {
    from { opacity: 0; transform: scale(0.2); }
}

/* =====================================================
   How It Works: directly below the hero
   Organizer steps, then the guest step with its two
   ways to find a table (#find-your-table).
   ===================================================== */

.section-steps {
    background-color: var(--color-white);
    padding-block: var(--section-py);
    border-bottom: 1px solid var(--color-border);
    scroll-margin-top: var(--header-h);
}

.st-steps__head {
    max-width: var(--measure-text);
    margin-inline: auto;
    text-align: center;
}

.st-steps__heading {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    color: var(--color-text);
}

.st-steps__intro {
    margin-top: var(--space-4);
    font-size: var(--text-body-lg);
    color: var(--color-muted);
}

.st-steps__group {
    margin-top: var(--space-12);
}

.st-steps__group--guest {
    margin-top: var(--space-10);
    /* Clear of the fixed header after a "Find Your Table" menu jump */
    scroll-margin-top: calc(var(--header-h) + var(--space-6));
}

/* Small label above each group, same style as the section eyebrows */
.st-steps__label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
}

.st-steps__label::before {
    content: "";
    width: var(--space-8);
    height: 1px;
    background-color: var(--color-accent);
}

.st-steps__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
}

.st-steps__card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: transform var(--ease-base), box-shadow var(--ease-base);
}

.st-steps__card {
    cursor: pointer;
}

.st-steps__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.st-steps__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background-color: rgba(var(--color-accent-rgb), 0.12);
    color: var(--color-accent-dark);
}

.st-steps__num {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    color: var(--color-accent-dark);
}

.st-steps__title {
    margin-top: var(--space-1);
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}

.st-steps__desc {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-muted);
}

/* ---- Guest step: one soft panel, text left, the two ways right ---- */

.st-steps__guest {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
}

.st-steps__guest-title {
    margin-top: var(--space-1);
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    color: var(--color-text);
}

.st-steps__guest-desc {
    margin-top: var(--space-3);
    color: var(--color-muted);
}

.st-steps__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
}

.st-steps__option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.st-steps__option-title {
    margin-top: var(--space-4);
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}

.st-steps__option .st-steps__desc {
    margin-bottom: var(--space-5);
}

/* Pinned to the bottom so buttons line up when descriptions differ in length */
.st-steps__option-btn {
    margin-top: auto;
}

/* =====================================================
   Features & Services (#features, Features nav link)
   Animated preview panel beside a grid of feature cards.
   home.js cycles the active card; each preview scene
   animates only while its scene is .is-active. Resting
   styles are the final state, so nothing is hidden when
   animations are off.
   ===================================================== */

.section-features {
    --st-feat-dur: 5s; /* time on each card while auto-playing (read by home.js) */

    position: relative;
    overflow-x: clip;
    background-color: var(--color-white);
    padding-block: var(--section-py);
    /* Heading stays clear of the fixed header after a nav jump */
    scroll-margin-top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px));
}

/* Soft decorations, like the floating shapes in the reference */
.st-feat__deco {
    position: absolute;
    pointer-events: none;
}

.st-feat__deco--ring {
    top: var(--space-16);
    left: var(--space-6);
    width: var(--space-10);
    height: var(--space-10);
    border-radius: var(--radius-full);
    border: 2px solid rgba(var(--color-accent-rgb), 0.55);
    animation: st-feat-drift 9s ease-in-out infinite;
}

.st-feat__deco--dots {
    right: var(--space-6);
    bottom: var(--space-12);
    width: var(--space-24);
    height: var(--space-20);
    background-image: radial-gradient(rgba(var(--color-primary-rgb), 0.16) 1.5px, transparent 2px);
    background-size: var(--space-4) var(--space-4);
    animation: st-feat-drift 11s ease-in-out -4s infinite reverse;
}

/* ---- Heading row ---- */

.st-feat__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.st-feat__head-text {
    max-width: var(--measure-text);
}

/* Read More (Features page) sits at the end of the heading row */
.st-feat__more {
    flex-shrink: 0;
}

.st-feat__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
}

.st-feat__eyebrow::before {
    content: "";
    width: var(--space-8);
    height: 1px;
    background-color: var(--color-accent);
}

.st-feat__heading {
    margin-top: var(--space-4);
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.st-feat__highlight {
    font-style: italic;
    color: var(--color-accent-dark);
}

.st-feat__intro {
    margin-top: var(--space-4);
    font-size: var(--text-body-lg);
    color: var(--color-muted);
}

/* ---- Body: preview + cards ---- */

.st-feat__body {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    align-items: start;
    gap: var(--space-8);
}

/* ---- Preview panel ---- */

.st-feat__showcase {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: var(--space-6);
    border-radius: calc(var(--radius-xl) * 1.5);
    border: 1px solid rgba(var(--color-accent-rgb), 0.3);
    background:
        radial-gradient(ellipse 80% 60% at 50% 60%, rgba(var(--color-accent-rgb), 0.16), transparent 70%),
        linear-gradient(165deg, var(--color-white) 0%, var(--color-tint) 100%);
    box-shadow: var(--shadow-lg);
}

.st-feat__caption {
    display: grid;
    gap: var(--space-1);
    padding-right: var(--space-10);
}

.st-feat__count {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    color: var(--color-accent-dark);
}

.st-feat__caption-title {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    color: var(--color-text);
    transition: opacity var(--ease-base), transform var(--ease-base);
}

.st-feat__caption-title.is-swapping {
    opacity: 0;
    transform: translateY(var(--space-2));
}

.st-feat__pause {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    display: grid;
    place-items: center;
    width: var(--space-8);
    height: var(--space-8);
    border-radius: var(--radius-full);
    border: 1px solid rgba(var(--color-accent-rgb), 0.4);
    color: var(--color-primary);
    background-color: var(--color-white);
    cursor: pointer;
    transition: background-color var(--ease-base), color var(--ease-base);
}

.st-feat__pause[hidden] {
    display: none;
}

.st-feat__pause:hover {
    color: var(--color-white);
    background-color: var(--color-primary);
}

.st-feat__pause svg {
    fill: currentColor;
}

.st-feat__icon-play,
.st-feat__pause[aria-pressed="true"] .st-feat__icon-pause {
    display: none;
}

.st-feat__pause[aria-pressed="true"] .st-feat__icon-play {
    display: block;
}

.st-feat__stage {
    position: relative;
    aspect-ratio: 360 / 260;
    border-radius: var(--radius-xl);
    background-color: var(--color-white);
    background-image: radial-gradient(rgba(var(--color-primary-rgb), 0.06) 1px, transparent 1.5px);
    background-size: var(--space-4) var(--space-4);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.st-feat__scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity var(--ease-slow), transform var(--ease-slow);
}

.st-feat__scene.is-active {
    opacity: 1;
    transform: none;
}

.st-feat__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
}

.st-feat__dot {
    width: var(--space-2);
    height: var(--space-2);
    border-radius: var(--radius-full);
    background-color: rgba(var(--color-primary-rgb), 0.18);
    transition: width var(--ease-slow), background-color var(--ease-slow);
}

.st-feat__dot.is-active {
    width: var(--space-6);
    background-color: var(--color-accent);
}

/* ---- Feature cards ---- */

.st-feat__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    list-style: none;
}

.st-feat__card {
    position: relative;
    overflow: hidden;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    cursor: default;
    transition: transform var(--ease-base), box-shadow var(--ease-base), background-color var(--ease-slow), border-color var(--ease-slow);
}

.st-feat__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Active card: warm tint, like the highlighted card in the reference */
.st-feat__card.is-active {
    background-color: var(--color-tint);
    border-color: rgba(var(--color-accent-rgb), 0.45);
    box-shadow: var(--shadow-md);
}

.st-feat__icon {
    display: grid;
    place-items: center;
    width: var(--space-12);
    height: var(--space-12);
    border-radius: var(--radius-lg);
    color: var(--color-accent-dark);
    background-color: rgba(var(--color-accent-rgb), 0.14);
    transition: color var(--ease-slow), background-color var(--ease-slow), transform var(--ease-base);
}

.st-feat__card:hover .st-feat__icon {
    transform: rotate(-6deg) scale(1.06);
}

.st-feat__card.is-active .st-feat__icon {
    color: var(--color-white);
    background-color: var(--color-primary);
}

.st-feat__num {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-accent-dark); /* AA contrast on white and cream cards */
}

.st-feat__title {
    margin-top: var(--space-5);
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
    color: var(--color-text);
}

.st-feat__desc {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-muted);
}

/* Timer bar on the active card while auto-playing */
.st-feat__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--space-1) * 0.75);
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
}

.st-feat__list.is-playing .st-feat__card.is-active .st-feat__progress {
    animation: st-feat-progress var(--st-feat-dur) linear both;
}

/* Cards rise in one after another when the section scrolls into view
   (keeps the hover and active transitions alongside the reveal) */
.st-js-reveal .st-feat__card.st-reveal {
    transition: opacity var(--ease-slow), transform var(--ease-slow), box-shadow var(--ease-base), background-color var(--ease-slow), border-color var(--ease-slow);
}

.st-js-reveal .st-feat__card.st-reveal.is-visible {
    transition-delay: calc(var(--st-i, 0) * 90ms), calc(var(--st-i, 0) * 90ms), 0s, 0s, 0s;
}

.st-js-reveal .st-feat__card.st-reveal.is-visible:hover {
    transition-delay: 0s;
}

.st-js-reveal .st-feat__card.st-reveal.is-visible:hover {
    transform: translateY(-3px);
}

/* =====================================================
   Preview scenes (artwork, colours from brand tokens)
   ===================================================== */

.st-feat__scene * {
    transform-box: fill-box;
}

.st-fs__gold        { fill: var(--color-accent); }
.st-fs__navy        { fill: var(--color-primary); }
.st-fs__stroke-white { stroke: var(--color-white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st-fs__stroke-muted { stroke: var(--color-muted); stroke-width: 1.6; }
.st-fs__card,
.st-fs__paper       { fill: var(--color-white); stroke: var(--color-border); }
.st-fs__line        { fill: var(--color-border); }
.st-fs__line--dark  { fill: var(--color-primary); fill-opacity: 0.7; }
.st-fs__num         { font-family: var(--font-heading); font-size: 12px; font-weight: var(--fw-bold); fill: var(--color-primary); }
.st-fs__num--light  { fill: var(--color-white); }
.st-fs__num--big    { font-size: 18px; }

/* 1. Upload */
.st-fs__zone        { fill: rgba(var(--color-accent-rgb), 0.08); stroke: var(--color-accent); stroke-width: 1.5; stroke-dasharray: 6 5; }
.st-fs__sheet       { filter: drop-shadow(0 var(--space-2) var(--space-3) rgba(var(--color-primary-rgb), 0.12)); }
.st-fs__sheet-head  { fill: rgba(var(--color-primary-light-rgb), 0.18); }
.st-fs__cell--name  { fill: var(--color-border); transform-origin: left center; }
.st-fs__cell--table { fill: var(--color-accent-light); transform-origin: left center; }
.st-fs__badge       { transform-origin: center; }

.st-feat__scene.is-active .st-fs__sheet       { animation: st-fs-drop 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.st-feat__scene.is-active .st-fs__cell        { animation: st-fs-grow 0.45s ease-out both; animation-delay: calc(0.6s + var(--st-i, 0) * 0.12s); }
.st-feat__scene.is-active .st-fs__badge       { animation: st-fs-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s both; }
.st-feat__scene.is-active .st-fs__arrow       { animation: st-fs-bob 1.6s ease-in-out infinite; }

/* 2. Tables */
.st-fs__queue       { fill: rgba(var(--color-accent-rgb), 0.16); stroke: var(--color-accent); stroke-width: 1.5; stroke-dasharray: 4 4; transform-origin: center; }
.st-fs__chair       { fill: var(--color-border); }
.st-fs__chair.is-target { fill: var(--color-accent-light); }
.st-fs__table       { fill: var(--color-white); stroke: var(--color-border); stroke-width: 1.5; }
.st-fs__table.is-target { fill: var(--color-accent-light); stroke: var(--color-accent); }
.st-fs__guest       { fill: var(--color-primary); }

.st-feat__scene.is-active .st-fs__queue       { animation: st-fs-breathe 2s ease-in-out infinite; }
.st-feat__scene.is-active .st-fs__guest       { animation: st-fs-seat 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(0.2s + var(--st-i, 0) * 0.11s); }

/* 3. QR code */
.st-fs__qr          { fill: var(--color-primary); }
.st-fs__bracket     { stroke: var(--color-accent); stroke-width: 3; stroke-linecap: round; }
.st-fs__scan        { fill: var(--color-accent); fill-opacity: 0.7; }
.st-fs__tag         { fill: var(--color-white); stroke: var(--color-border); }

.st-feat__scene.is-active .st-fs__qr          { animation: st-fs-reveal 0.9s ease-out both; }
.st-feat__scene.is-active .st-fs__bracket     { animation: st-fs-fade 0.6s ease-out 0.5s both; }
.st-feat__scene.is-active .st-fs__scan        { animation: st-fs-scan 2.2s ease-in-out 0.9s infinite alternate both; }
.st-feat__scene.is-active .st-fs__tags        { animation: st-fs-rise 0.6s ease-out 1.1s both; }

/* 4. Find */
.st-fs__phone       { fill: var(--color-white); stroke: var(--color-border); stroke-width: 1.5; }
.st-fs__screen      { fill: var(--color-bg); }
.st-fs__field       { fill: var(--color-white); stroke: rgba(var(--color-primary-rgb), 0.18); }
.st-fs__typed       { fill: var(--color-primary); fill-opacity: 0.55; transform-origin: left center; }
.st-fs__result      { transform-origin: center; }
.st-fs__plan        { fill: var(--color-white); stroke: var(--color-border); }
.st-fs__mini        { fill: var(--color-border); }
.st-fs__mini.is-target { fill: var(--color-accent-light); stroke: var(--color-accent); stroke-width: 1.5; }
.st-fs__pin         { transform-origin: center bottom; }
.st-fs__pin-body    { fill: var(--color-accent); stroke: var(--color-white); stroke-width: 1.5; }
.st-fs__pin-face    { fill: var(--color-white); }

.st-feat__scene.is-active .st-fs__typed       { animation: st-fs-grow 1s steps(8, end) 0.3s both; }
.st-feat__scene.is-active .st-fs__result      { animation: st-fs-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s both; }
.st-feat__scene.is-active .st-fs__pin         { animation: st-fs-pin 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s both, st-fs-bob 2.4s ease-in-out 2.6s infinite; }

/* 5. Events */
.st-fs__event       { transform-origin: 50% 100%; filter: drop-shadow(0 var(--space-2) var(--space-3) rgba(var(--color-primary-rgb), 0.1)); }
.st-fs__event.is-left  { transform: translateX(-62px) rotate(-12deg); }
.st-fs__event.is-right { transform: translateX(62px) rotate(12deg); }
.st-fs__event.is-mid   { transform: translateY(-6px); }
.st-fs__chip--navy  { fill: var(--color-primary); }
.st-fs__chip--gold  { fill: var(--color-accent); }
.st-fs__chip--tint  { fill: var(--color-accent-light); }

.st-feat__scene.is-active .st-fs__event       { animation: st-fs-fan 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.st-feat__scene.is-active .st-fs__event.is-mid { animation: st-fs-rise 0.7s ease-out both; }

/* 6. Live updates */
.st-fs__row-bg      { fill: var(--color-bg); stroke: var(--color-border); }
.st-fs__row-bg--plain { opacity: 0.6; }
.st-fs__avatar      { fill: rgba(var(--color-primary-light-rgb), 0.3); }
.st-fs__row--a      { transform: translateY(40px); }
.st-fs__row--b      { transform: translateY(-40px); }
.st-fs__live        { fill: var(--color-accent); transform-origin: center; }
.st-fs__link        { stroke: var(--color-accent); stroke-width: 1.5; stroke-dasharray: 4 5; }
.st-fs__spark       { fill: var(--color-accent); opacity: 0; transform-box: view-box; }
.st-fs__ping        { fill: var(--color-accent); opacity: 0; transform-origin: center; }

.st-feat__scene.is-active .st-fs__live        { animation: st-fs-breathe 1.4s ease-in-out infinite; }
.st-feat__scene.is-active .st-fs__row--a,
.st-feat__scene.is-active .st-fs__row--b      { animation: st-fs-swap 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.7s both; }
.st-feat__scene.is-active .st-fs__link        { animation: st-fs-flow 1s linear infinite; }
.st-feat__scene.is-active .st-fs__spark       { animation: st-fs-travel 1.6s ease-in-out 1.5s infinite; }
.st-feat__scene.is-active .st-fs__ping        { animation: st-fs-ping 1.6s ease-out 2.4s infinite; }

/* Pause button also freezes the scene loops */
.st-feat.is-paused .st-feat__stage * {
    animation-play-state: paused;
}

/* ---- Keyframes ---- */

@keyframes st-feat-drift {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(var(--space-3), calc(var(--space-4) * -1)); }
}

@keyframes st-feat-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes st-fs-drop    { from { opacity: 0; transform: translateY(-24px); } }
@keyframes st-fs-grow    { from { transform: scaleX(0); } }
@keyframes st-fs-pop     { from { opacity: 0; transform: scale(0.4); } }
@keyframes st-fs-fade    { from { opacity: 0; } }
@keyframes st-fs-rise    { from { opacity: 0; transform: translateY(14px); } }
@keyframes st-fs-reveal  { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes st-fs-pin     { from { opacity: 0; transform: translateY(-34px) scale(0.6); } }
@keyframes st-fs-fan     { from { opacity: 0; transform: none; } }
@keyframes st-fs-swap    { from { transform: none; } }
@keyframes st-fs-flow    { to { stroke-dashoffset: -18; } }

@keyframes st-fs-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

@keyframes st-fs-breathe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.12); opacity: 0.6; }
}

@keyframes st-fs-seat {
    from { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.5); }
    30%  { opacity: 1; }
}

@keyframes st-fs-scan {
    from { transform: translateY(0); }
    to   { transform: translateY(118px); }
}

@keyframes st-fs-travel {
    0%   { opacity: 0; transform: translate(188px, 130px); }
    15%  { opacity: 1; }
    50%  { transform: translate(221px, 114px); }
    85%  { opacity: 1; }
    100% { opacity: 0; transform: translate(252px, 96px); }
}

@keyframes st-fs-ping {
    from { opacity: 0.45; transform: scale(0.9); }
    to   { opacity: 0; transform: scale(1.7); }
}

/* ---- Responsive ---- */

@media ( max-width: 1024px ) {
    .st-feat__head {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Stacked: the preview sits centred above the cards and scrolls normally */
    .st-feat__body {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-6);
    }

    .st-feat__showcase {
        position: relative;
        top: auto;
        width: 100%;
        max-width: var(--feat-preview-max);
        margin-inline: auto;
    }

    .st-feat__deco {
        display: none;
    }
}

@media ( max-width: 640px ) {
    .st-feat__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .st-feat__showcase {
        padding: var(--space-4);
    }

    .st-feat__pause {
        top: var(--space-4);
        right: var(--space-4);
    }

    .st-feat__card {
        padding: var(--space-5);
    }

    .st-feat__num {
        top: var(--space-5);
        right: var(--space-5);
    }
}

@media ( prefers-reduced-motion: reduce ) {
    .st-feat__deco,
    .st-feat__stage *,
    .st-feat__progress {
        animation: none !important;
    }

    .st-feat__scene,
    .st-feat__card,
    .st-feat__icon,
    .st-feat__caption-title {
        transition: none;
    }

    .st-feat__card:hover,
    .st-feat__card:hover .st-feat__icon {
        transform: none;
    }
}


/* =====================================================
   About Us (#about, About Us nav link)
   Photo in an arch with the mission quote beside the
   story, who it helps and a row of principles.
   ===================================================== */

.section-about {
    position: relative;
    overflow-x: clip;
    background-color: var(--color-bg);
    padding-block: var(--section-py);
    /* Heading stays clear of the fixed header after a nav jump */
    scroll-margin-top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px));
}

.st-about__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: var(--space-16);
}

/* ---- Visual: arch photo + quote card ---- */

.st-about__visual {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: var(--about-arch-max);
    /* Room below the photo so the quote card only overlaps its lower edge */
    padding-bottom: var(--space-20);
}

.st-about__arch {
    position: relative;
    /* Rectangular landscape frame (matches the platform's square/rectangular images);
       the whole place setting (cutlery, plates, glasses, table) stays in view */
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background-color: var(--color-tint);
    box-shadow: var(--shadow-xl);
}

.st-about__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
    transform-origin: 50% 45%;
    transition: transform 8s ease-out;
}

.st-about__visual:hover .st-about__img {
    transform: scale(1.04);
}

.st-about__star {
    position: absolute;
    top: var(--space-6);
    right: calc(var(--space-2) * -1);
    fill: var(--color-accent);
    animation: st-about-twinkle 3.2s ease-in-out infinite;
}

.st-about__quote {
    position: absolute;
    z-index: var(--z-raised);
    left: calc(var(--space-8) * -1);
    right: var(--space-8);
    bottom: 0;
    margin: 0;
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.st-about__quote-mark {
    display: block;
    fill: var(--color-accent);
}

.st-about__quote-text {
    margin: var(--space-3) 0 0;
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    font-style: italic;
    line-height: 1.4;
    color: var(--color-text);
}

.st-about__quote-by {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
}

/* ---- Content ---- */

.st-about__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
}

.st-about__eyebrow::before {
    content: "";
    width: var(--space-8);
    height: 1px;
    background-color: var(--color-accent);
}

.st-about__heading {
    margin-top: var(--space-4);
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.st-about__highlight {
    font-style: italic;
    color: var(--color-accent-dark);
}

.st-about__body {
    margin-top: var(--space-5);
    max-width: var(--measure-text);
    color: var(--color-muted);
}

.st-about__body p + p {
    margin-top: var(--space-4);
}

.st-about__audience {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-8);
    list-style: none;
}

.st-about__who {
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease-base), box-shadow var(--ease-base), border-color var(--ease-base);
}

.st-about__who:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--color-accent-rgb), 0.45);
    box-shadow: var(--shadow-md);
}

.st-about__icon {
    display: grid;
    place-items: center;
    width: var(--space-10);
    height: var(--space-10);
    border-radius: var(--radius-md);
    color: var(--color-accent-dark);
    background-color: rgba(var(--color-accent-rgb), 0.14);
}

.st-about__who-title {
    margin-top: var(--space-3);
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}

.st-about__who-text {
    margin-top: var(--space-1);
    font-size: var(--text-sm);
    color: var(--color-muted);
}

.st-about__values {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-6);
    list-style: none;
}

.st-about__value {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
    border-radius: var(--radius-full);
    border: 1px solid rgba(var(--color-accent-rgb), 0.35);
    background-color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
}

/* Read More (About Us page) below the principles */
.st-about__more {
    margin-top: var(--space-8);
}

.st-about__check {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: var(--space-5);
    height: var(--space-5);
    border-radius: var(--radius-full);
    color: var(--color-white);
    background-color: var(--color-accent-dark);
}

/* ---- Scroll reveal: the arch rises into place, then the quote card rises ---- */

.st-js-reveal .st-about__visual.st-reveal:not(.is-visible) {
    transform: none;
}

/* transform only (composited): a clip-path reveal repainted the whole photo every frame */
.st-js-reveal .st-about__visual.st-reveal .st-about__arch {
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.st-js-reveal .st-about__visual.st-reveal:not(.is-visible) .st-about__arch {
    transform: translateY(var(--space-8)) scale(0.96);
}

.st-js-reveal .st-about__visual.st-reveal .st-about__quote {
    transition: opacity var(--ease-slow) 0.7s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s;
}

.st-js-reveal .st-about__visual.st-reveal:not(.is-visible) .st-about__quote {
    opacity: 0;
    transform: translateY(var(--space-5));
}

.st-js-reveal .st-about__who.st-reveal {
    transition: opacity var(--ease-slow), transform var(--ease-slow), box-shadow var(--ease-base), border-color var(--ease-base);
}

.st-js-reveal .st-about__who.st-reveal.is-visible {
    transition-delay: calc(var(--st-i, 0) * 120ms), calc(var(--st-i, 0) * 120ms), 0s, 0s;
}

.st-js-reveal .st-about__who.st-reveal.is-visible:hover {
    transform: translateY(-3px);
    transition-delay: 0s;
}

/* Principle pills settle one after another, with a smaller rise than the cards */
.st-js-reveal .st-about__value.st-reveal:not(.is-visible) {
    transform: translateY(var(--space-2));
}

.st-js-reveal .st-about__value.st-reveal.is-visible {
    transition-delay: calc(var(--st-i, 0) * 80ms);
}

@keyframes st-about-twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.8); }
}

/* ---- Responsive ---- */

/* Stacked below laptop width: arch centred above the story */
@media ( max-width: 1024px ) {
    .st-about__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-12);
    }

    .st-about__visual {
        max-width: var(--about-arch-max-sm);
    }

    .st-about__content {
        max-width: var(--auth-stack-max);
        margin-inline: auto;
    }
}

@media ( max-width: 480px ) {
    .st-about__audience {
        grid-template-columns: minmax(0, 1fr);
    }

    .st-about__quote {
        left: calc(var(--space-2) * -1);
        right: calc(var(--space-2) * -1);
        padding: var(--space-4) var(--space-5);
    }
}

@media ( prefers-reduced-motion: reduce ) {
    .st-about__star {
        animation: none;
    }

    .st-about__img,
    .st-about__who,
    .st-js-reveal .st-about__visual.st-reveal .st-about__arch,
    .st-js-reveal .st-about__visual.st-reveal .st-about__quote {
        transition: none;
    }

    .st-about__visual:hover .st-about__img,
    .st-about__who:hover {
        transform: none;
    }
}
/* =====================================================
   Responsive
   ===================================================== */

@media ( max-width: 1024px ) {
    .st-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--space-10);
    }

    .st-hero__demo {
        padding-right: var(--space-4);
    }

    .st-hero__arch {
        width: 328px;
    }

    .st-hero__phone {
        width: 280px;
    }

    .st-hero__qr {
        max-width: 210px;
    }

    .st-steps__card {
        flex-direction: column;
        padding: var(--space-5);
    }

    .st-steps__guest {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-6);
    }
}

@media ( max-width: 768px ) {
    .section-hero {
        padding-top: var(--space-10);
        padding-bottom: var(--section-py);
    }

    .st-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-12);
    }

    .st-hero__visual {
        justify-content: center;
    }

    .st-steps__list {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-4);
    }

    .st-steps__card {
        flex-direction: row;
    }
}

@media ( max-width: 640px ) {
    .st-hero__actions {
        flex-direction: column;
    }

    .st-hero__actions .btn {
        width: 100%;
    }

    .st-steps__options {
        grid-template-columns: minmax(0, 1fr);
    }

    .st-steps__guest {
        padding: var(--space-5);
    }

    /* Phone centred, QR card tucks under it instead of beside it */
    .st-hero__demo {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
    }

    .st-hero__arch {
        right: auto;
        left: 50%;
        width: min(328px, 100%);
        transform: translateX(-50%);
    }

    .st-hero__phone {
        width: min(280px, 100%);
    }

    .st-hero__qr {
        position: relative;
        left: auto;
        bottom: auto;
        margin-top: calc(var(--space-10) * -1);
    }
}

/* =====================================================
   Reduced motion
   ===================================================== */

@media ( prefers-reduced-motion: reduce ) {
    /* Hero: no entrance, no drift; everything shows in its final place */
    .st-hero__eyebrow,
    .st-hero__heading,
    .st-hero__highlight,
    .st-hero__body,
    .st-hero__actions,
    .st-hero__event,
    .st-hero__search,
    .st-hero__query,
    .st-hero__result,
    .st-hero__table-num,
    .st-hero__plan-room,
    .st-hero__plan-head,
    .st-hero__plan-floor,
    .st-hero__plan-table,
    .st-hero__caret,
    .st-hero__plan-ring,
    .st-hero__qr {
        animation: none;
    }

    .st-hero__plan-ring,
    .st-hero__caret {
        opacity: 1;
    }

    .st-hero__query::after {
        display: none;
    }

    .st-steps__card,
    .st-steps__card:hover {
        transition: none;
        transform: none;
    }
}

/* =====================================================
   Sections below the fold: the browser skips their style,
   layout and paint until they come near the screen, so the
   first paint only has to lay out the top of the page.
   --st-cv-height is a placeholder close to each section's
   real height (keeps the scrollbar steady); "auto" swaps in
   the measured height once a section has been drawn.
   Not used on the hero or How It Works: in-page links
   (#how-it-works, #find-your-table) land there.
   ===================================================== */

.section-features,
.section-about,
.section-videos,
.section-gallery,
.section-cta {
    content-visibility: auto;
    contain-intrinsic-size: auto var(--st-cv-height);
}

.section-features { --st-cv-height: 1120px; }
.section-about    { --st-cv-height: 890px; }
.section-videos   { --st-cv-height: 1030px; }
.section-gallery  { --st-cv-height: 1880px; }
.section-cta      { --st-cv-height: 440px; }

@media ( max-width: 768px ) {
    .section-features { --st-cv-height: 2060px; }
    .section-about    { --st-cv-height: 1570px; }
    .section-videos   { --st-cv-height: 1220px; }
    .section-gallery  { --st-cv-height: 4060px; }
}

/* =====================================================
   Looping animations pause while their section is off
   screen (home.js toggles .st-loops-off on [data-st-loops]),
   so the browser is not redrawing what nobody can see
   ===================================================== */

/* Only the looping elements are named: a catch-all "*" would be tested against
   every element on every style recalculation, including each animation frame. */
.st-loops-off .st-hero__caret,
.st-loops-off .st-hero__plan-ring,
.st-loops-off .st-hero__qr,
.st-loops-off .st-feat__deco,
.st-loops-off .st-fs__arrow,
.st-loops-off .st-fs__queue,
.st-loops-off .st-fs__scan,
.st-loops-off .st-fs__pin,
.st-loops-off .st-fs__live,
.st-loops-off .st-fs__link,
.st-loops-off .st-fs__spark,
.st-loops-off .st-fs__ping,
.st-loops-off .st-about__star {
    animation-play-state: paused !important;
}

/* =====================================================
   Scroll reveal (home.js adds .st-js-reveal only when
   motion is allowed, so content is never hidden without JS)
   ===================================================== */

.st-js-reveal .st-reveal {
    opacity: 0;
    transform: translateY(var(--space-5));
    transition: opacity var(--ease-slow), transform var(--ease-slow);
}

.st-js-reveal .st-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* How It Works, guest step: the panel eases in slowly with a very small rise, then its text and
   the two option cards settle one after another. Long ease-out curve, no overshoot, so it reads
   as one calm motion instead of everything popping in at once. */
.st-js-reveal .st-steps__guest.st-reveal {
    --st-guest-ease: cubic-bezier(0.33, 1, 0.68, 1);
    transition: opacity 1.4s var(--st-guest-ease), transform 1.4s var(--st-guest-ease);
}

.st-js-reveal .st-steps__guest.st-reveal:not(.is-visible) {
    transform: translateY(var(--space-3));
}

.st-js-reveal .st-steps__guest.st-reveal .st-steps__guest-text,
.st-js-reveal .st-steps__guest.st-reveal .st-steps__option {
    transition: opacity 1.2s var(--st-guest-ease), transform 1.2s var(--st-guest-ease);
}

.st-js-reveal .st-steps__guest.st-reveal:not(.is-visible) .st-steps__guest-text,
.st-js-reveal .st-steps__guest.st-reveal:not(.is-visible) .st-steps__option {
    opacity: 0;
    transform: translateY(var(--space-2));
}

.st-js-reveal .st-steps__guest.st-reveal.is-visible .st-steps__guest-text {
    transition-delay: 0.25s;
}

.st-js-reveal .st-steps__guest.st-reveal.is-visible .st-steps__option:nth-child(1) {
    transition-delay: 0.45s;
}

.st-js-reveal .st-steps__guest.st-reveal.is-visible .st-steps__option:nth-child(2) {
    transition-delay: 0.65s;
}

/* Section containers drop in from above, top to bottom */
.st-js-reveal .st-reveal--down:not(.is-visible) {
    transform: translateY(calc(var(--space-5) * -1));
}

/* Final call-to-action: a slow, plain fade-in */
.st-js-reveal .st-reveal--fade {
    transition: opacity 1.2s ease;
}

.st-js-reveal .st-reveal--fade:not(.is-visible) {
    transform: none;
}

/* How It Works cards slide in from outside: left, right, and the middle one rises.
   Clipping x keeps cards waiting off-screen from widening the page. */
.section-steps {
    overflow-x: clip;
}

.st-js-reveal .st-steps__card.st-reveal {
    --st-slide: 1s cubic-bezier(0.22, 1, 0.36, 1);
    transition: opacity var(--st-slide), transform var(--st-slide), box-shadow var(--ease-base);
}

/* Stagger the cards; the delay is dropped on hover so the lift stays instant */
.st-js-reveal .st-steps__card.st-reveal.is-visible:nth-child(2) {
    transition-delay: 0.15s;
}

.st-js-reveal .st-steps__card.st-reveal.is-visible:nth-child(3) {
    transition-delay: 0.3s;
}

.st-js-reveal .st-steps__card.st-reveal.is-visible:hover {
    transition-delay: 0s;
}

.st-js-reveal .st-steps__card.st-reveal:not(.is-visible):nth-child(3n + 1) {
    transform: translateX(calc(var(--space-12) * -1));
}

.st-js-reveal .st-steps__card.st-reveal:not(.is-visible):nth-child(3n) {
    transform: translateX(var(--space-12));
}

.st-js-reveal .st-steps__card.st-reveal:not(.is-visible):nth-child(3n + 2) {
    transform: translateY(var(--space-12));
}

.st-js-reveal .st-steps__card.st-reveal.is-visible:hover {
    transform: translateY(-3px);
}

/* Gallery tiles scale softly into place, staggered by --st-i, photo settling inside */
.st-js-reveal .st-gallery__item.st-reveal {
    transition-delay: calc(var(--st-i, 0) * 80ms);
}

.st-js-reveal .st-gallery__item.st-reveal:not(.is-visible) {
    transform: translateY(var(--space-5)) scale(0.94);
}

.st-js-reveal .st-gallery__item.st-reveal:not(.is-visible) .st-gallery__img {
    transform: scale(1.1);
}

/* =====================================================
   Event Videos — deep navy band, featured clip layout
   ===================================================== */

.section-videos {
    background-color: var(--color-text);
    color: var(--color-on-dark);
    padding-block: var(--section-py);
    scroll-margin-top: var(--header-h);
}

.st-videos__head,
.st-gallery__head {
    max-width: var(--measure-text);
    margin-inline: auto;
    text-align: center;
}

.st-videos__eyebrow,
.st-gallery__eyebrow {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.st-videos__eyebrow {
    color: var(--color-accent-light);
}

.st-videos__heading,
.st-gallery__heading {
    margin-top: var(--space-4);
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
}

.st-videos__heading {
    color: var(--color-white);
}

.st-videos__intro,
.st-gallery__intro {
    margin-top: var(--space-4);
    font-size: var(--text-body-lg);
}

.st-videos__intro {
    color: var(--color-on-dark);
}

/* ---- Grid: first clip featured, the rest stacked beside it ---- */
.st-videos__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-10);
}

.st-videos__grid--2 {
    align-items: start;
}

.st-videos__grid--3 .st-videos__item:first-child {
    grid-row: span 2;
}

.st-video {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.st-video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-color: var(--color-primary-dark);
    box-shadow: var(--shadow-lg);
}

/* The featured clip fills the height of the two stacked clips */
.st-video--featured .st-video__frame {
    flex: 1;
}

.st-video__poster,
.st-video__player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-video__poster {
    transition: transform var(--ease-slow);
}

/* Show the whole frame while playing; the featured frame is taller than 16:9 */
.st-video__player {
    object-fit: contain;
    background-color: var(--color-primary-dark);
}

.st-video__frame:not(.is-playing)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(var(--color-text-rgb), 0.55), transparent 60%);
    pointer-events: none;
}

.st-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: var(--z-base);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    border-radius: var(--radius-full);
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 0 0 8px rgba(var(--color-accent-rgb), 0.35), var(--shadow-lg);
    transition: transform var(--ease-base), box-shadow var(--ease-base);
}

/* Optical centring of the triangle */
.st-video__play svg {
    margin-left: var(--space-1);
}

.st-video--featured .st-video__play {
    width: 80px;
    height: 80px;
}

.st-video__frame:hover .st-video__poster {
    transform: scale(1.04);
}

.st-video__frame:hover .st-video__play,
.st-video__play:focus-visible {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 0 12px rgba(var(--color-accent-rgb), 0.4), var(--shadow-xl);
}

.st-video__caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
    margin-top: var(--space-3);
}

.st-video__title {
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-white);
}

.st-videos__note,
.st-gallery__note {
    max-width: var(--measure-text);
    margin: var(--space-10) auto 0;
    font-size: var(--text-xs);
    text-align: center;
}

.st-videos__note {
    color: var(--color-on-dark);
}

/* =====================================================
   Event Gallery — masonry + lightbox
   ===================================================== */

.section-gallery {
    background-color: var(--color-white);
    padding-block: var(--section-py);
    scroll-margin-top: var(--header-h);
}

.st-gallery__eyebrow {
    color: var(--color-accent-dark);
}

.st-gallery__heading {
    color: var(--color-text);
}

.st-gallery__intro {
    color: var(--color-muted);
}

.st-gallery__filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.st-gallery__filters[hidden] {
    display: none;
}

.st-gallery__filter {
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    cursor: pointer;
    transition: background-color var(--ease-base), border-color var(--ease-base), color var(--ease-base);
}

.st-gallery__filter:hover {
    border-color: var(--color-accent);
}

.st-gallery__filter.is-active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Masonry via CSS columns: natural image heights, no JS layout */
.st-gallery__grid {
    columns: 3;
    column-gap: var(--space-5);
    margin-top: var(--space-10);
}

.st-gallery__item {
    break-inside: avoid;
    margin-bottom: var(--space-5);
}

.st-gallery__item[hidden] {
    display: none;
}

.st-gallery__open {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-tint);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--ease-base);
}

.st-gallery__img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform var(--ease-slow);
}

.st-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4);
    background: linear-gradient(to top, rgba(var(--color-text-rgb), 0.7), transparent 55%);
    opacity: 0;
    transition: opacity var(--ease-base);
}

.st-gallery__caption {
    font-family: var(--font-heading);
    font-size: var(--text-body);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    color: var(--color-white);
    transform: translateY(var(--space-2));
    transition: transform var(--ease-base);
}

.st-gallery__zoom {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: var(--color-white);
    color: var(--color-primary);
}

.st-gallery__open:hover,
.st-gallery__open:focus-visible {
    box-shadow: var(--shadow-lg);
}

.st-gallery__open:hover .st-gallery__img,
.st-gallery__open:focus-visible .st-gallery__img {
    transform: scale(1.04);
}

.st-gallery__open:hover .st-gallery__overlay,
.st-gallery__open:focus-visible .st-gallery__overlay {
    opacity: 1;
}

.st-gallery__open:hover .st-gallery__caption,
.st-gallery__open:focus-visible .st-gallery__caption {
    transform: none;
}

/* Touch screens have no hover: keep captions visible */
@media ( hover: none ) {
    .st-gallery__overlay {
        opacity: 1;
    }

    .st-gallery__caption {
        transform: none;
    }
}

.st-gallery__note {
    color: var(--color-muted);
}

/* ---- Lightbox ---- */
.st-lightbox {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: var(--space-6);
    border: 0;
    /* Dim on the full-viewport dialog itself: older Chrome does not pass
       custom properties into ::backdrop, so a var() there is dropped. */
    background-color: rgba(var(--color-text-rgb), 0.94);
    color: var(--color-on-dark);
}

.st-lightbox::backdrop {
    background-color: transparent;
}

.st-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-lightbox__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    max-width: var(--container-max);
    width: 100%;
    height: 100%;
}

.st-lightbox__figure {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
}

.st-lightbox__img {
    max-width: 100%;
    max-height: calc(100% - var(--space-16));
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transition: opacity var(--ease-base);
}

.st-lightbox.is-loaded .st-lightbox__img {
    opacity: 1;
}

.st-lightbox__meta {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
    margin-top: var(--space-4);
    text-align: center;
}

.st-lightbox__caption {
    font-family: var(--font-heading);
    font-size: var(--text-body-lg);
    color: var(--color-white);
}

.st-lightbox__count {
    font-size: var(--text-xs);
    color: var(--color-accent-light);
    letter-spacing: 0.08em;
}

.st-lightbox__btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-primary-light);
    background-color: transparent;
    color: var(--color-white);
    cursor: pointer;
    transition: background-color var(--ease-base), border-color var(--ease-base);
}

.st-lightbox__btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-accent);
}

.st-lightbox__close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: var(--z-raised);
}

.st-lightbox.is-single .st-lightbox__nav {
    visibility: hidden;
}

/* ---- Responsive ---- */
@media ( max-width: 1024px ) {
    .st-gallery__grid {
        columns: 2;
    }
}

@media ( max-width: 768px ) {
    .st-videos__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .st-videos__grid .st-videos__item:first-child {
        grid-row: auto;
    }

    .st-video--featured .st-video__frame {
        flex: none;
    }
}

@media ( max-width: 640px ) {
    .st-gallery__grid {
        column-gap: var(--space-3);
    }

    .st-gallery__item {
        margin-bottom: var(--space-3);
    }

    .st-lightbox {
        padding: var(--space-4) var(--space-2);
    }

    /* Arrows move below the image on small screens */
    .st-lightbox__inner {
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
    }

    .st-lightbox__figure {
        order: -1;
        flex-basis: 100%;
        height: auto;
    }

    .st-lightbox__img {
        max-height: 70vh;
    }
}

@media ( max-width: 480px ) {
    .st-gallery__grid {
        columns: 1;
    }
}

@media ( prefers-reduced-motion: reduce ) {
    .st-video__poster,
    .st-video__play,
    .st-gallery__img,
    .st-gallery__caption,
    .st-lightbox__img {
        transition: none;
    }

    .st-video__frame:hover .st-video__poster,
    .st-gallery__open:hover .st-gallery__img,
    .st-gallery__open:focus-visible .st-gallery__img {
        transform: none;
    }
}

/* =====================================================
   CTA Banner: directly above the footer
   No box: content sits directly on the ivory section so the
   dark footer right after it does not feel heavy.
   ===================================================== */

.section-cta {
    background-color: var(--color-bg);
    padding-block: var(--section-py);
}

.st-cta__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.st-cta__heading {
    max-width: 24ch; /* micro-measure: keeps a long banner heading to two lines */
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-heading);
    color: var(--color-text);
}

.st-cta__body {
    margin-top: var(--space-5);
    max-width: var(--measure-text);
    font-size: var(--text-body-lg);
    color: var(--color-muted);
}

.st-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-10);
}

@media ( max-width: 640px ) {
    .st-cta__actions {
        flex-direction: column;
        align-self: stretch;
    }

    .st-cta__actions .btn {
        width: 100%;
    }
}
