/* ==========================================================================
   The Barking Barrel — site styles
   Loads after tokens.css and bootstrap-overrides.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
    /* Anchors would otherwise land underneath the sticky nav. */
    scroll-padding-top: calc(var(--bb-nav-height) + 1rem);
}

body {
    background-color: var(--bb-cream);
    color: var(--bb-text);
    font-family: var(--bb-font-body);
    overflow-x: hidden;
}

::selection {
    background: var(--bb-sage);
    color: #fff;
}

/* Keyboard users must be able to jump the nav. Visible only when focused. */
.bb-skip-link {
    position: absolute;
    top: -100%;
    left: var(--bb-space-4);
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    background: var(--bb-sage-ink);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 var(--bb-radius) var(--bb-radius);
    text-decoration: none;
}

.bb-skip-link:focus {
    top: 0;
    color: #fff;
}

/* Unconfirmed copy — development only. Deliberately conspicuous. */
.bb-placeholder {
    background: repeating-linear-gradient(
        -45deg,
        rgb(199 152 104 / 0.16),
        rgb(199 152 104 / 0.16) 6px,
        transparent 6px,
        transparent 12px
    );
    border-bottom: 1.5px dotted var(--bb-tan-dark);
    cursor: help;
}

/* Pinned bottom-left rather than across the top: the navbar is .fixed-top, so
   a top banner renders underneath it and is never seen. Bottom-left also
   keeps clear of CodeIgniter's debug toolbar button in the bottom-right. */
.bb-placeholder-banner {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1050;
    max-width: min(26rem, calc(100vw - 6rem));
    background: var(--bb-tan-ink);
    color: #fff;
    font-size: var(--bb-text-xs);
    font-weight: 700;
    line-height: 1.4;
    padding: 0.6rem 1rem;
    border-radius: var(--bb-radius-pill);
    box-shadow: var(--bb-shadow-lg);
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.bb-section {
    padding-block: var(--bb-section-y);
    position: relative;
}

.bb-section--deep {
    background: var(--bb-cream-deep);
}

.bb-section__eyebrow {
    font-family: var(--bb-font-script);
    font-size: var(--bb-text-script);
    color: var(--bb-tan-ink);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.bb-section__title {
    font-size: var(--bb-text-3xl);
    margin-bottom: 0.75rem;
}

.bb-section__lead {
    color: var(--bb-text-muted);
    font-size: var(--bb-text-lg);
    max-width: 46ch;
    margin-inline: auto;
}

/* Paw-print divider. One of the two signature touches that separate this from
   a Bootstrap template — the dashes draw outward and the paw settles in. */
.bb-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-block: var(--bb-space-6);
    color: var(--bb-tan);
}

.bb-divider::before,
.bb-divider::after {
    content: "";
    height: 2px;
    width: min(22vw, 8rem);
    background: linear-gradient(90deg, transparent, var(--bb-border-stronger));
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--bb-duration-slow) var(--bb-ease-out);
}

.bb-divider::after {
    background: linear-gradient(90deg, var(--bb-border-stronger), transparent);
    transform-origin: left center;
}

.bb-divider.is-visible::before,
.bb-divider.is-visible::after {
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.bb-nav {
    background: rgb(247 242 231 / 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    min-height: var(--bb-nav-height);
    transition:
        min-height var(--bb-duration) var(--bb-ease-out),
        box-shadow var(--bb-duration) ease,
        border-color var(--bb-duration) ease;
}

/* Shrinks once the page scrolls, reclaiming vertical space on phones. */
.bb-nav.is-scrolled {
    min-height: 3.6rem;
    box-shadow: var(--bb-shadow-sm);
    border-bottom-color: var(--bb-border);
}

.bb-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--bb-sage-ink);
}

.bb-nav__mark {
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    transition: width var(--bb-duration) var(--bb-ease-out),
                height var(--bb-duration) var(--bb-ease-out);
}

.bb-nav.is-scrolled .bb-nav__mark {
    width: 2.2rem;
    height: 2.2rem;
}

.bb-nav__name {
    font-family: var(--bb-font-display);
    font-weight: 800;
    font-size: 1.38rem;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--bb-sage-ink);
    white-space: nowrap;
}

.bb-nav__sub {
    display: block;
    font-family: var(--bb-font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bb-tan-ink);
    margin-top: -0.4rem;
}

.bb-nav__link {
    color: var(--bb-brown-muted);
    font-weight: 700;
    font-size: var(--bb-text-sm);
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: var(--bb-radius-pill);
    position: relative;
    transition: color var(--bb-duration-fast) ease,
                background-color var(--bb-duration-fast) ease;
}

.bb-nav__link:hover,
.bb-nav__link:focus-visible {
    color: var(--bb-sage-ink);
    background: rgb(143 168 136 / 0.16);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.bb-hero {
    position: relative;
    padding-top: calc(var(--bb-nav-height) + clamp(1.5rem, 4vw, 3rem));
    padding-bottom: clamp(3rem, 7vw, 5.5rem);
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgb(143 168 136 / 0.15), transparent 70%),
        linear-gradient(180deg, var(--bb-cream) 0%, var(--bb-cream-deep) 100%);
    overflow: hidden;
}

/* Soft hill at the base of the hero, echoing the brand banner. */
.bb-hero__hill {
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 130%;
    transform: translateX(-50%);
    height: clamp(3rem, 8vw, 6rem);
    fill: var(--bb-cream);
    pointer-events: none;
}

.bb-hero__wordmark {
    font-family: var(--bb-font-display);
    font-weight: 800;
    font-size: var(--bb-text-4xl);
    line-height: 0.95;
    letter-spacing: -0.015em;
    color: var(--bb-sage-ink);
    text-transform: uppercase;
    margin: 0;
}

/* "The" — the small tan word above the wordmark in the brand lockup. */
.bb-hero__the {
    font-family: var(--bb-font-display);
    font-weight: 600;
    font-size: clamp(1rem, 0.8rem + 0.9vw, 1.4rem);
    color: var(--bb-tan-ink);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.3rem;
}

.bb-hero__the::before,
.bb-hero__the::after {
    content: "";
    height: 1.5px;
    flex: 1 1 auto;
    max-width: 3.5rem;
    background: var(--bb-tan);
}

.bb-hero__script {
    font-family: var(--bb-font-script);
    font-size: var(--bb-text-script);
    color: var(--bb-tan-ink);
    line-height: 1.1;
    margin-block: 0.9rem 0.4rem;
}

.bb-hero__lead {
    color: var(--bb-text-muted);
    font-size: var(--bb-text-lg);
    max-width: 42ch;
}

.bb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

/* Drifting soap bubbles. Purely decorative, pointer-events off, and paused
   entirely under prefers-reduced-motion. */
.bb-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bb-bubble {
    position: absolute;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.15) 45%, transparent 60%),
        rgb(143 168 136 / 0.13);
    border: 1px solid rgb(255 255 255 / 0.55);
    animation: bb-float linear infinite;
    /* Contained so a long page does not repaint the whole hero each frame. */
    will-change: transform;
}

@keyframes bb-float {
    0% {
        transform: translateY(0) translateX(0) scale(0.85);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    88% {
        opacity: 1;
    }
    100% {
        transform: translateY(-115vh) translateX(var(--bb-drift, 20px)) scale(1.12);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-bubbles {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Hero carousel

   BootstrapVueNext's BCarousel shows one slide at a time and cannot do the
   multi-card peek this needs, so it is a small custom component. The photos
   are portrait 3:4 — a single wide hero image would crop them badly.
   -------------------------------------------------------------------------- */

.bb-carousel {
    position: relative;
    z-index: 1;
}

/* Native scroll-snap rather than a transform-driven track. That buys touch
   swipe, momentum scrolling, keyboard scrolling and correct behaviour at any
   viewport width for free — and without JavaScript the carousel degrades to a
   plain scrollable row of photos rather than a dead, clipped strip. */
.bb-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-block: 0.5rem;
    /* Room for the card hover lift, which would otherwise be clipped. */
    padding-inline: 0.25rem;

    scrollbar-width: none;              /* Firefox */
    -ms-overflow-style: none;           /* legacy Edge */
}

.bb-carousel__viewport::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .bb-carousel__viewport {
        scroll-behavior: auto;
    }
}

.bb-carousel__track {
    display: flex;
    gap: clamp(0.7rem, 1.6vw, 1.15rem);
}

.bb-carousel__item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    /* 1.15 cards on phones so the next one peeks and the row reads as
       swipeable; 3 across on desktop. */
    width: calc(100% / 1.15 - 0.7rem);
}

@media (min-width: 576px) {
    .bb-carousel__item { width: calc(100% / 2 - 0.9rem); }
}

@media (min-width: 992px) {
    .bb-carousel__item { width: calc(100% / 3 - 0.85rem); }
}

.bb-photo-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--bb-radius-xl);
    overflow: hidden;
    background: var(--bb-cream-deep);
    box-shadow: var(--bb-shadow);
    border: 5px solid var(--bb-cream-card);
    transition: transform var(--bb-duration) var(--bb-ease-out),
                box-shadow var(--bb-duration) var(--bb-ease-out);
}

.bb-photo-card img {
    width: 100%;
    height: 100%;
    /* The source photos vary from 1196x2046 to 1773x2047, so cover with a
       high focal point — the dog's head is near the top in most of them. */
    object-fit: cover;
    object-position: center 32%;
    display: block;
}

.bb-photo-card:hover,
.bb-photo-card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--bb-shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
    .bb-photo-card:hover,
    .bb-photo-card:focus-within { transform: none; }
}

/* Controls are Vue-driven, so they must not appear if JavaScript never runs —
   the carousel is still a scrollable row without them. */
html.no-js .bb-carousel__controls {
    display: none;
}

.bb-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.35rem;
}

.bb-carousel__btn {
    width: 2.9rem;
    height: 2.9rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid var(--bb-border-stronger);
    background: var(--bb-cream-card);
    color: var(--bb-sage-ink);
    cursor: pointer;
    transition: all var(--bb-duration-fast) var(--bb-ease-out);
}

.bb-carousel__btn:hover:not(:disabled) {
    background: var(--bb-sage-ink);
    border-color: var(--bb-sage-ink);
    color: #fff;
    transform: scale(1.06);
}

.bb-carousel__btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.bb-carousel__dots {
    display: flex;
    gap: 0.45rem;
}

.bb-carousel__dot {
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: var(--bb-border-stronger);
    cursor: pointer;
    transition: all var(--bb-duration-fast) var(--bb-ease-out);
}

.bb-carousel__dot.is-active {
    background: var(--bb-sage-ink);
    width: 1.6rem;
    border-radius: var(--bb-radius-pill);
}

/* Tap targets must be at least 44px even though the dot is drawn smaller. */
.bb-carousel__dot::after {
    content: "";
    position: absolute;
    inset: -1.1rem;
}

.bb-carousel__dot {
    position: relative;
}

/* --------------------------------------------------------------------------
   Promises
   -------------------------------------------------------------------------- */

.bb-promise {
    text-align: center;
}

.bb-promise__icon {
    width: 4.4rem;
    height: 4.4rem;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bb-cream-card);
    border: 2px solid var(--bb-border);
    color: var(--bb-tan-ink);
    box-shadow: var(--bb-shadow-sm);
    transition: transform var(--bb-duration) var(--bb-ease-spring),
                border-color var(--bb-duration) ease;
}

.bb-promise:hover .bb-promise__icon {
    transform: translateY(-4px) rotate(-6deg);
    border-color: var(--bb-tan);
}

.bb-promise__title {
    font-size: var(--bb-text-xl);
    margin-bottom: 0.35rem;
}

.bb-promise__body {
    color: var(--bb-text-muted);
    font-size: var(--bb-text-sm);
    max-width: 30ch;
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.bb-service {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bb-cream-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    padding: 1.7rem 1.6rem;
    box-shadow: var(--bb-shadow-sm);
    transition: transform var(--bb-duration) var(--bb-ease-out),
                box-shadow var(--bb-duration) var(--bb-ease-out),
                border-color var(--bb-duration) ease;
}

.bb-service:hover {
    transform: translateY(-5px);
    box-shadow: var(--bb-shadow-lg);
    border-color: var(--bb-sage);
}

@media (prefers-reduced-motion: reduce) {
    .bb-service:hover { transform: none; }
}

.bb-service--featured {
    border-color: var(--bb-sage);
    border-width: 2px;
}

.bb-service__head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 0.7rem;
}

.bb-service__icon {
    width: 3rem;
    height: 3rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: var(--bb-radius);
    background: rgb(143 168 136 / 0.16);
    color: var(--bb-sage-ink);
}

.bb-service__name {
    font-size: var(--bb-text-xl);
    margin: 0;
}

.bb-service__duration {
    font-size: var(--bb-text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bb-brown-faint);
}

.bb-service__body {
    color: var(--bb-text-muted);
    font-size: var(--bb-text-sm);
    flex: 1 1 auto;
    margin-bottom: 1.1rem;
}

.bb-service__price {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--bb-border-strong);
}

.bb-service__amount {
    font-family: var(--bb-font-display);
    font-weight: 800;
    font-size: 1.65rem;
    color: var(--bb-sage-ink);
    line-height: 1;
}

.bb-service__note {
    font-size: var(--bb-text-xs);
    color: var(--bb-brown-faint);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.bb-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: clamp(0.6rem, 1.4vw, 1rem);
}

.bb-gallery__item {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--bb-radius-lg);
    overflow: hidden;
    border: none;
    padding: 0;
    background: var(--bb-cream-deep);
    cursor: zoom-in;
    box-shadow: var(--bb-shadow-sm);
    transition: transform var(--bb-duration) var(--bb-ease-out),
                box-shadow var(--bb-duration) var(--bb-ease-out);
}

.bb-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
    display: block;
    transition: transform var(--bb-duration-slow) var(--bb-ease-out);
}

.bb-gallery__item:hover {
    box-shadow: var(--bb-shadow-lg);
}

.bb-gallery__item:hover img {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .bb-gallery__item:hover img { transform: none; }
}

/* Lightbox */
.bb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgb(59 45 32 / 0.86);
    backdrop-filter: blur(4px);
}

.bb-lightbox__figure {
    margin: 0;
    max-width: min(92vw, 640px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.bb-lightbox__figure img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: var(--bb-radius-lg);
    background: var(--bb-cream);
    box-shadow: var(--bb-shadow-lg);
}

.bb-lightbox__caption {
    color: var(--bb-cream);
    font-size: var(--bb-text-sm);
    text-align: center;
}

.bb-lightbox__close {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1.5rem);
    right: clamp(0.75rem, 2vw, 1.5rem);
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    border: none;
    background: var(--bb-cream-card);
    color: var(--bb-brown);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hours & location
   -------------------------------------------------------------------------- */

.bb-hours {
    background: var(--bb-cream-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    overflow: hidden;
    box-shadow: var(--bb-shadow-sm);
}

.bb-hours__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.4rem;
    border-bottom: 1px solid var(--bb-border);
    font-size: var(--bb-text-sm);
}

.bb-hours__row:last-child {
    border-bottom: none;
}

.bb-hours__row.is-today {
    background: rgb(143 168 136 / 0.13);
    font-weight: 800;
}

.bb-hours__day {
    color: var(--bb-brown-muted);
    font-weight: 700;
}

.bb-hours__row.is-today .bb-hours__day {
    color: var(--bb-sage-ink);
}

.bb-hours__time.is-closed {
    color: var(--bb-brown-faint);
}

/* Open/closed pill — computed server-side in the shop's timezone, so a
   visitor in another timezone is not told the wrong thing. */
.bb-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--bb-radius-pill);
    font-weight: 800;
    font-size: var(--bb-text-sm);
}

.bb-status--open {
    background: rgb(143 168 136 / 0.22);
    color: var(--bb-sage-ink);
}

.bb-status--closed {
    background: rgb(199 152 104 / 0.2);
    color: var(--bb-tan-ink);
}

.bb-status__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: currentColor;
}

.bb-status--open .bb-status__dot {
    animation: bb-pulse 2.4s ease-in-out infinite;
}

@keyframes bb-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.82); }
}

.bb-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: var(--bb-cream-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-lg);
    box-shadow: var(--bb-shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--bb-duration-fast) ease,
                transform var(--bb-duration-fast) var(--bb-ease-out);
}

a.bb-contact-card:hover {
    border-color: var(--bb-sage);
    transform: translateY(-2px);
}

.bb-contact-card__icon {
    color: var(--bb-tan-ink);
    flex: none;
}

.bb-contact-card__label {
    font-size: var(--bb-text-xs);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bb-brown-faint);
    margin-bottom: 0.15rem;
}

.bb-contact-card__value {
    font-weight: 700;
    color: var(--bb-brown);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.bb-form-panel {
    background: var(--bb-cream-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-xl);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--bb-shadow);
}

/* Honeypot. Positioned off-screen rather than display:none — some bots skip
   fields that are display:none, and this keeps it out of the tab order and
   away from screen readers via aria-hidden on the wrapper. */
.bb-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.bb-footer {
    background: var(--bb-cream-deep);
    border-top: 1px solid var(--bb-border);
    padding-block: var(--bb-space-7) var(--bb-space-5);
}

.bb-footer__social {
    display: inline-grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    background: var(--bb-cream-card);
    border: 1px solid var(--bb-border);
    color: var(--bb-sage-ink);
    transition: all var(--bb-duration-fast) var(--bb-ease-out);
}

.bb-footer__social:hover {
    background: var(--bb-sage-ink);
    border-color: var(--bb-sage-ink);
    color: #fff;
    transform: translateY(-3px);
}

.bb-footer__legal {
    font-size: var(--bb-text-xs);
    color: var(--bb-brown-faint);
}

/* --------------------------------------------------------------------------
   Scroll reveal

   Applied by IntersectionObserver in app.js. The no-js and reduced-motion
   fallbacks both leave content fully visible — motion never gates reading.
   -------------------------------------------------------------------------- */

/* Content is visible by DEFAULT. The hidden state is opt-in, applied only
   once JavaScript has confirmed it can observe and reveal these elements
   (html.bb-reveal-ready, set in app.js immediately before observing).

   Written this way round on purpose: hiding by default and relying on an
   observer to undo it means any failure — a bfcache restore, a browser that
   never fires the callback, a script error between paint and observe — leaves
   the page permanently blank. Additive reveal cannot do that. app.js also
   arms a failsafe timer as a second line of defence. */
html.bb-reveal-ready .bb-reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(22px);
}

.bb-reveal {
    transition:
        opacity var(--bb-duration-slow) var(--bb-ease-out),
        transform var(--bb-duration-slow) var(--bb-ease-out);
    transition-delay: var(--bb-reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    .bb-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Under construction

   The holding page reuses the hero's ground, wordmark, bubbles and hill; only
   the centred panel below them is specific to it. It loads no JavaScript, so
   nothing here depends on a class being applied at runtime.
   -------------------------------------------------------------------------- */

.bb-uc {
    /* No fixed navbar on this page, so the hero's allowance for one would
       leave the panel sitting low. Centred in the viewport instead, with the
       hill still clearing the bottom edge. */
    padding-top: clamp(2.5rem, 7vw, 5rem);
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
    /* Less the footer's own height, so a tall viewport shows the whole page
       as exactly one screen rather than one screen plus a footer's worth of
       scroll. */
    min-height: calc(100svh - 4.5rem);
    display: flex;
    align-items: center;
}

.bb-uc__panel {
    max-width: 44rem;
    margin-inline: auto;
}

.bb-uc__mark {
    width: clamp(4rem, 12vw, 6rem);
    height: auto;
    margin-bottom: var(--bb-space-4);
}

/* The lockup's rules run to the container width when centred, which looks
   stretched with nothing beside it. */
.bb-uc .bb-hero__the::before,
.bb-uc .bb-hero__the::after {
    max-width: 2.5rem;
}

.bb-uc__headline {
    font-size: var(--bb-text-2xl);
    margin-block: 0 0.75rem;
}

.bb-uc__lead {
    color: var(--bb-text-muted);
    font-size: var(--bb-text-lg);
    max-width: 42ch;
    margin-inline: auto;
    margin-bottom: 0;
}

.bb-uc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: var(--bb-space-5);
}

.bb-uc__details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    margin-top: var(--bb-space-5);
    margin-bottom: 0;
    color: var(--bb-text-muted);
    font-size: var(--bb-text-sm);
}

.bb-uc__details li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.bb-uc__details .bb-icon {
    color: var(--bb-tan-ink);
    flex-shrink: 0;
}

.bb-uc__footer {
    background: var(--bb-cream);
    padding-block: var(--bb-space-5);
}
