/* ==========================================================================
   Pulse Studios — landing page only.

   Split out of app.css so the studio pages do not ship the marketing page's
   rules: this block is ~15KB a creator at a venue paid for on every screen
   and used on none of them. Linked from Landing.razor through <HeadContent>;
   app.css still loads first and supplies the shell and the tokens these
   rules name.
   ========================================================================== */

/* ==========================================================================
   Landing (kit template templates/studios-landing/StudiosLanding.dc.html).

   The only dark surface in the portal. Everything else is ink on --tp-grey-bg;
   this page is white on plum, because it is the one screen a signed-out visitor
   sees and it carries the brand alone.

   Colours come from tokens, never literals: the template's plum, purple, gold
   and orange are --pulse-plum / --pulse-purple / --tp-accent-gold /
   --tp-accent-orange. The page does NOT use --ps-primary or --ps-accent, which
   arrive per-brand at runtime — this surface is Pulse Studios' own plum whoever
   is signed in, and a runtime brand swap must not repaint a marketing page.

   Gutters are the template's 40px; every section is a 1200px column; the chain
   and footer rules run the full width around their column.
   ========================================================================== */

.ps-landing {
    background: var(--pulse-plum);
    color: var(--tp-white);
    font-family: var(--font-sans);
    /* Full bleed. LandingLayout puts no container around this page, so the section
       max-widths below do the centring rather than a negative margin fighting a
       gutter that is no longer there. */
    min-height: 100vh;
    min-height: 100dvh;
}

.ps-landing__bar,
.ps-landing__hero,
.ps-landing__chain,
.ps-landing__section,
.ps-landing__foot {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- top bar: the 34px lockup inline with the strapline, actions at the right --- */
.ps-landing__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 40px;
}
.ps-landing__logo { height: 34px; width: auto; display: block; }
.ps-landing__part { font-size: 13px; font-weight: var(--fw-medium); color: rgba(255, 255, 255, 0.55); }
.ps-landing__bar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ps-landing__bar .ps-landing__btn--light { padding: 10px 18px; }

/* --- the public pages in the bar and the footer (TP-SPEC-PTV-001): How you earn, About. 44px targets. --- */
.ps-landing__home { display: inline-flex; align-items: center; min-height: 44px; }
.ps-landing__nav { display: flex; align-items: center; gap: 4px; }
.ps-landing__nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--tp-radius-sm);
    color: var(--tp-on-dark-muted);
    font-size: 14px;
    font-weight: var(--fw-semibold);
    text-decoration: none;
}
.ps-landing__nav-link:hover,
.ps-landing__nav-link[aria-current="page"] { color: var(--tp-white); background: var(--tp-on-dark-hover); }
.ps-landing__nav-link:focus-visible,
.ps-landing__foot-nav a:focus-visible { outline: 3px solid var(--ps-focus); outline-offset: 2px; }
.ps-landing__foot-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.ps-landing__foot-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--tp-on-dark-muted);
}
.ps-landing__foot-nav a:hover { color: var(--tp-white); }

/* --- buttons. 44px min target, per the portal's own rule. --- */
.ps-landing__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 16px;
    border-radius: var(--tp-radius-sm);
    font-size: 13.5px;
    font-weight: var(--fw-semibold);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ps-landing__btn--big { font-size: 15px; padding: 14px 24px; }
.ps-landing__btn:active { transform: scale(0.97); }
.ps-landing__btn:focus-visible { outline: 3px solid var(--tp-accent-gold); outline-offset: 3px; }

.ps-landing__btn--ghost { color: var(--tp-white); border-color: rgba(255, 255, 255, 0.25); }
.ps-landing__btn--ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.07); color: var(--tp-white); }

.ps-landing__btn--light { color: var(--pulse-plum); background: var(--tp-white); font-weight: var(--fw-bold); }
.ps-landing__btn--light:hover { background: var(--pulse-lavender); color: var(--pulse-plum); }
/* Only the hero's primary lifts on hover (the template); the bar and the booking card do not. */
.ps-landing__hero .ps-landing__btn--light:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35); }

.ps-landing__btn--gold { color: var(--tp-accent-gold); background: var(--tp-gold-tint); border-color: rgba(255, 209, 102, 0.4); font-weight: var(--fw-bold); }
.ps-landing__btn--gold:hover { background: rgba(255, 209, 102, 0.16); color: var(--tp-accent-gold); }

.ps-landing__btn--outline { color: var(--tp-white); border-color: rgba(255, 255, 255, 0.35); font-weight: var(--fw-bold); }
.ps-landing__btn--outline:hover { background: rgba(255, 255, 255, 0.08); color: var(--tp-white); }

/* --- hero: the template's boxed still. Three layers — the plum gradient that keeps the words
       readable, the purple glow top-right, and the stage photograph confined to the column. --- */
.ps-landing__hero {
    position: relative;
    padding: 72px 40px 96px;
    background:
        linear-gradient(170deg, rgba(46, 0, 87, 0.70) 0%, rgba(46, 0, 87, 0.55) 45%, var(--pulse-plum) 97%),
        radial-gradient(60% 50% at 75% 15%, rgba(74, 0, 168, 0.55), rgba(46, 0, 87, 0)),
        var(--pulse-plum) url('img/tp-artist-stage.jpg') center 30% / cover no-repeat;
}

/* The copy rises in, staggered: chip, title, lede, then the buttons. */
@keyframes ps-land-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
/* The REC dot blinks at the template's 1.6s, dipping to 0.2. */
@keyframes ps-land-rec {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.ps-landing__rec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--tp-radius-pill);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    animation: ps-land-up 0.7s ease both;
}
.ps-landing__rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tp-accent-orange); animation: ps-land-rec 1.6s ease infinite; }

.ps-landing__title {
    margin: 28px 0 0;
    font-family: var(--font-media);
    font-size: clamp(46px, 7.5vw, 80px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: var(--fw-bold);
    max-width: 760px;
    color: var(--tp-white);
    animation: ps-land-up 0.7s ease 0.1s both;
}
.ps-landing__title-accent { color: var(--tp-accent-gold); }

.ps-landing__lede {
    margin: 24px 0 0;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    animation: ps-land-up 0.7s ease 0.2s both;
}

.ps-landing__cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ps-landing__hero .ps-landing__cta-row { animation: ps-land-up 0.7s ease 0.3s both; }
.ps-landing__cta-row--centre { justify-content: center; margin-top: 28px; }

.ps-landing__slate {
    margin: 64px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
}

/* --- product chain: a full-width band with a rule above and below, the items in the column --- */
.ps-landing__band {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ps-landing__chain {
    padding: 18px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 40px;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}
.ps-landing__chain-item { display: inline-flex; align-items: center; gap: 9px; }
.ps-landing__chain-item b { color: var(--tp-white); }
.ps-landing__chain-icon--gold { stroke: var(--tp-accent-gold); }

/* --- sections. Services 80/24, showreel 72/24, booking 72/88 (the template's own rhythm). --- */
.ps-landing__section { padding: 80px 40px 24px; }
.ps-landing__section--reel { padding-top: 72px; }
.ps-landing__section--book { padding: 72px 40px 88px; }
.ps-landing__eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: var(--fw-bold);
    letter-spacing: 0.14em;
    color: var(--tp-accent-gold);
}
.ps-landing__eyebrow-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ps-landing__count { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; color: rgba(255, 255, 255, 0.45); font-weight: var(--fw-regular); }
.ps-landing__h2 {
    margin: 14px 0 0;
    font-family: var(--font-media);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: var(--fw-bold);
    color: var(--tp-white);
}

/* --- service cards --- */
.ps-landing__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 40px; }
.ps-landing__card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--tp-radius-lg);
    padding: 28px;
    transition: background 0.4s ease, transform 0.4s ease;
}
.ps-landing__card:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-3px); }
.ps-landing__card-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--tp-radius-md);
    background: rgba(74, 0, 168, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--tp-white);
}
.ps-landing__card h3 { margin: 0 0 8px; font-family: var(--font-media); font-size: 20px; font-weight: var(--fw-bold); color: var(--tp-white); }
.ps-landing__card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }

/* --- showreel: three 16:9 stills, 12px radius, the title and slate over the lower edge --- */
.ps-landing__reel { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 40px; }
.ps-landing__reel-item {
    position: relative;
    margin: 0;
    border-radius: var(--tp-radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    /* The plum shows for the instant before the photograph paints. */
    background-color: var(--pulse-plum);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.ps-landing__reel-item:hover { transform: scale(1.02); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45); }
.ps-landing__reel-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ps-landing__reel-item figcaption {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 10, 46, 0.9) 0%, rgba(26, 10, 46, 0) 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
}
.ps-landing__reel-title { font-family: var(--font-media); font-size: 17px; font-weight: var(--fw-bold); color: var(--tp-white); }
.ps-landing__reel-meta { font-family: var(--font-mono); font-size: 11.5px; color: rgba(255, 255, 255, 0.65); margin-top: 4px; }

/* --- booking CTA --- */
.ps-landing__book {
    background: var(--brand-gradient);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--tp-radius-lg);
    padding: 56px 40px;
    text-align: center;
}
.ps-landing__book p { margin: 16px auto 0; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); max-width: 480px; }

/* --- footer: a full-width rule, the row in the column --- */
.ps-landing__foot-band { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ps-landing__foot {
    padding: 26px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
}
.ps-landing__foot-logo { height: 22px; width: auto; display: block; opacity: 0.85; }
.ps-landing__copy { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
    /* The entrance and the blink are decoration; a reader who asked for less motion gets the
       page already in place, the dot steady, and no lift on hover. */
    .ps-landing__rec,
    .ps-landing__title,
    .ps-landing__lede,
    .ps-landing__hero .ps-landing__cta-row { animation: none; }
    .ps-landing__rec-dot { animation: none; opacity: 1; }
    .ps-landing__card:hover,
    .ps-landing__reel-item:hover { transform: none; }
}

@media (max-width: 700px) {
    /* The template has no narrow rule; this is an addition for a phone, not a departure. */
    .ps-landing__bar { flex-wrap: wrap; padding-left: var(--space-4); padding-right: var(--space-4); }
    .ps-landing__bar-actions { margin-left: 0; width: 100%; }
    .ps-landing__nav { order: 3; width: 100%; }
    .ps-landing__hero { padding: 48px var(--space-4) 64px; }
    .ps-landing__section { padding: 56px var(--space-4) 16px; }
    .ps-landing__section--book { padding-bottom: 56px; }
    .ps-landing__book { padding-left: var(--space-5); padding-right: var(--space-5); }
    .ps-landing__chain,
    .ps-landing__foot { padding-left: var(--space-4); padding-right: var(--space-4); }
    .ps-landing__copy { margin-left: 0; }
}
