/* =========================================================
   MYFUNADS — INNER PAGES
   Shared system for pages/*.html (About, Advertisers,
   Publishers, Contact, Login). Loaded after style.css,
   navbar.css and footer.css. Behaviour: js/pages.js.
========================================================= */


/* =====================================================
   TOKENS
===================================================== */

:root {
    --mf-orange: #f47b20;
    --mf-orange-deep: #d9600c;
    --mf-coral: #ff6b4f;
    --mf-ink: #111111;
    --mf-ink-soft: #2b2a2c;
    --mf-muted: #5d5c63;
    --mf-faint: #8b8a91;
    --mf-line: rgba(17, 17, 17, .09);
    --mf-line-strong: rgba(17, 17, 17, .16);
    --mf-surface: #ffffff;
    --mf-surface-2: #f7f6f3;
    --mf-surface-3: #efede8;
    --mf-dark: #0d0b0b;
    --mf-dark-2: #171313;

    --mf-accent-text: linear-gradient(100deg, #f47b20 0%, #ff6b4f 100%);

    --mf-radius-xl: 40px;
    --mf-radius-lg: 30px;
    --mf-radius: 22px;
    --mf-radius-sm: 14px;

    --mf-shadow-sm: 0 10px 30px rgba(17, 17, 17, .06);
    --mf-shadow: 0 30px 80px rgba(17, 17, 17, .10);
    --mf-shadow-dark: 0 40px 110px rgba(0, 0, 0, .45);

    --mf-ease: cubic-bezier(.16, 1, .3, 1);

    --pg-gutter: 40px;
}

@media (max-width: 700px) {
    :root {
        --pg-gutter: 16px;
    }
}


/* =====================================================
   BASE
===================================================== */

.pg-page {
    color: var(--mf-ink);
    line-height: 1.5;
}

.pg-main {
    position: relative;
    overflow-x: clip;
}

.pg-container {
    width: min(1240px, calc(100% - (var(--pg-gutter) * 2)));
    margin-inline: auto;
}

.pg-section {
    position: relative;
    padding: clamp(84px, 11vw, 150px) 0;
}

.pg-section--tight {
    padding: clamp(56px, 7vw, 96px) 0;
}

.pg-section--flush-top {
    padding-top: 0;
}

.pg-skip {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100010;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--mf-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    translate: 0 -200%;
    transition: translate .3s var(--mf-ease);
}

.pg-skip:focus {
    translate: 0 0;
}

/* V1 release: sections kept in the markup for later but not
   shown yet (e.g. About > Our Team). Remove the class from the
   element to restore it. Visual hide only, not a security measure. */
.pg-page .is-hidden-v1 {
    display: none !important;
}

.pg-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.pg-page :focus-visible {
    outline: 2px solid var(--mf-orange);
    outline-offset: 3px;
}


/* =====================================================
   TYPOGRAPHY
===================================================== */

.pg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--mf-ink);
}

.pg-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mf-orange);
    box-shadow: 0 0 0 5px rgba(244, 123, 32, .14);
}

.pg-eyebrow--light {
    color: rgba(255, 255, 255, .72);
}

.pg-display {
    margin: 0;
    font-size: clamp(44px, 6.1vw, 90px);
    line-height: .93;
    letter-spacing: -.06em;
    font-weight: 700;
}

.pg-h2 {
    margin: 0;
    font-size: clamp(36px, 4.8vw, 70px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 700;
}

.pg-h3 {
    margin: 0;
    font-size: clamp(21px, 1.9vw, 26px);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 700;
}

.pg-accent {
    background: var(--mf-accent-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /*
     * Gradient text only paints inside the span's own box. With
     * negative tracking and line-height < 1 that box is tighter
     * than the glyph ink, which shaved the last letter (the "e"
     * in "measurable") and could clip tall glyphs. Padding gives
     * the ink room; the equal negative margin keeps layout
     * unchanged, and "clone" applies it to every wrapped line.
     */
    padding: .14em .1em .1em 0;
    margin-right: -.1em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.pg-lead {
    max-width: 600px;
    margin: 26px 0 0;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.65;
    color: var(--mf-muted);
}

.pg-body {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: var(--mf-muted);
}

.pg-body + .pg-body {
    margin-top: 18px;
}

.pg-section-head {
    max-width: 760px;
    margin-bottom: clamp(44px, 6vw, 76px);
}

.pg-section-head--center {
    margin-inline: auto;
    text-align: center;
}

.pg-section-head--center .pg-lead {
    margin-inline: auto;
}


/* =====================================================
   BUTTONS
===================================================== */

.pg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.pg-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: 58px;
    padding: 12px 12px 12px 24px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition:
        transform .35s var(--mf-ease),
        scale .18s ease,
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        box-shadow .35s ease;
}

.pg-btn span,
.pg-btn b {
    position: relative;
    z-index: 2;
}

.pg-btn b {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 15px;
    transition: transform .35s var(--mf-ease), background .3s ease, color .3s ease;
}

.pg-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .26) 50%, transparent 70%);
    translate: -120% 0;
    transition: translate .9s var(--mf-ease);
}

.pg-btn:hover {
    transform: translateY(-3px);
}

.pg-btn:hover::before {
    translate: 120% 0;
}

.pg-btn:hover b {
    transform: rotate(45deg);
}

.pg-btn:active {
    scale: .97;
}

.pg-btn--primary {
    background: var(--mf-ink);
    color: #fff;
    box-shadow: 0 14px 34px rgba(17, 17, 17, .18);
}

.pg-btn--primary b {
    background: var(--mf-orange);
    color: #fff;
}

.pg-btn--primary:hover {
    background: var(--mf-orange);
    box-shadow: 0 18px 44px rgba(244, 123, 32, .32);
}

.pg-btn--primary:hover b {
    background: #fff;
    color: var(--mf-ink);
}

.pg-btn--ghost {
    background: rgba(255, 255, 255, .7);
    border-color: var(--mf-line-strong);
    color: var(--mf-ink);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pg-btn--ghost b {
    background: rgba(17, 17, 17, .07);
}

.pg-btn--ghost:hover {
    background: var(--mf-ink);
    border-color: var(--mf-ink);
    color: #fff;
}

.pg-btn--ghost:hover b {
    background: rgba(255, 255, 255, .14);
}

.pg-btn--light {
    background: #fff;
    color: var(--mf-ink);
}

.pg-btn--light b {
    background: var(--mf-orange);
    color: #fff;
}

.pg-btn--light:hover {
    background: var(--mf-orange);
    color: #fff;
}

.pg-btn--light:hover b {
    background: #fff;
    color: var(--mf-ink);
}

.pg-btn--outline-light {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pg-btn--outline-light b {
    background: rgba(255, 255, 255, .12);
}

.pg-btn--outline-light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--mf-ink);
}

.pg-btn--outline-light:hover b {
    background: rgba(17, 17, 17, .08);
}

.pg-btn[disabled],
.pg-btn[aria-disabled="true"] {
    opacity: .6;
    pointer-events: none;
}

.pg-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mf-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    border-bottom: 1px solid var(--mf-line-strong);
    padding-bottom: 4px;
    transition: color .3s ease, border-color .3s ease, gap .3s var(--mf-ease);
}

.pg-link:hover {
    color: var(--mf-orange-deep);
    border-color: var(--mf-orange);
    gap: 14px;
}

.pg-link--light {
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
}

.pg-link--light:hover {
    color: var(--mf-orange);
}


/* =====================================================
   PAGE HERO
===================================================== */

.pg-hero {
    position: relative;
    padding: 176px 0 clamp(80px, 9vw, 130px);
    /* horizontal clip only: contains the wide 3D visuals
       without ever cutting the headline vertically. clip (not
       hidden) also keeps position: sticky working inside. */
    overflow-x: clip;
}

.pg-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(40px, 5vw, 80px);
}

.pg-hero-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mf-faint);
}

.pg-hero-topline a {
    display: inline-block;
    padding: 6px 0;
    margin: -6px 0;
    color: inherit;
    text-decoration: none;
    transition: color .3s ease;
}

.pg-hero-topline a:hover {
    color: var(--mf-orange);
}

.pg-hero-topline span[aria-hidden] {
    opacity: .5;
}

.pg-hero--dark {
    color: #fff;
    background:
        radial-gradient(circle at 82% 38%, rgba(244, 123, 32, .22), transparent 34%),
        radial-gradient(circle at 12% 92%, rgba(255, 107, 79, .14), transparent 34%),
        linear-gradient(160deg, #141010 0%, #0b0909 55%, #070606 100%);
    border-radius: 0 0 var(--mf-radius-xl) var(--mf-radius-xl);
}

.pg-hero--dark .pg-lead {
    color: rgba(255, 255, 255, .66);
}

.pg-hero--dark .pg-hero-topline {
    color: rgba(255, 255, 255, .42);
}

/* fine dotted texture for the dark hero */
.pg-hero--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}

.pg-hero > .pg-container {
    position: relative;
    z-index: 2;
}

.pg-hero-note {
    margin-top: 26px;
    font-size: 12px;
    color: var(--mf-faint);
}

.pg-hero--dark .pg-hero-note {
    color: rgba(255, 255, 255, .4);
}


/* =====================================================
   HERO ENTRANCE (CSS only, plays once on load)
===================================================== */

@media (prefers-reduced-motion: no-preference) {

    .pg-hero [data-enter] {
        animation: pgEnter 1.1s var(--mf-ease) backwards;
        animation-delay: calc(var(--enter, 0) * 110ms + 150ms);
    }

    .pg-hero [data-enter="visual"] {
        animation: pgEnterVisual 1.6s var(--mf-ease) .35s backwards;
    }
}

/* no blur on text: blurring gradient (background-clip) text
   can render it clipped while the effect is applied */
@keyframes pgEnter {
    from {
        opacity: 0;
        translate: 0 26px;
    }
}

@keyframes pgEnterVisual {
    from {
        opacity: 0;
        scale: .9;
        filter: blur(10px);
    }
}


/* =====================================================
   SCROLL REVEAL
   Hidden state only applies once js/pages.js has run
   (html.pg-js), so content never disappears without JS.
===================================================== */

.pg-js [data-reveal] {
    transition:
        opacity .9s var(--mf-ease),
        translate 1.1s var(--mf-ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}

.pg-js [data-reveal]:not(.is-in) {
    opacity: 0;
    translate: 0 34px;
}

@media (prefers-reduced-motion: reduce) {

    .pg-js [data-reveal],
    .pg-js [data-reveal]:not(.is-in) {
        opacity: 1;
        translate: none;
        filter: none;
        transition: none;
    }
}


/* =====================================================
   3D TILT (pointer driven via --tx / --ty in pages.js)
===================================================== */

[data-tilt] {
    --tx: 0;
    --ty: 0;
    perspective: 1400px;
}

[data-tilt] > .pg-tilt-inner {
    transform-style: preserve-3d;
    transform:
        rotateX(calc(var(--ty) * -7deg))
        rotateY(calc(var(--tx) * 9deg));
    transition: transform .2s linear;
}


/* =====================================================
   GLASS CHIP (floating labels in hero visuals)
===================================================== */

.pg-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.pg-chip i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mf-orange);
    box-shadow: 0 0 12px rgba(244, 123, 32, .9);
}

.pg-chip--light {
    color: var(--mf-ink);
    background: rgba(255, 255, 255, .78);
    border-color: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 44px rgba(120, 60, 20, .14), inset 0 1px 0 #fff;
}


/* =====================================================
   ABOUT — ECOSYSTEM ORBIT (3D)
===================================================== */

.pg-eco {
    position: relative;
    width: min(560px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;
}

.pg-eco .pg-tilt-inner {
    position: absolute;
    inset: 0;
}

.pg-eco-plane {
    position: absolute;
    inset: 4%;
    transform-style: preserve-3d;
    transform: rotateX(64deg) rotateZ(-18deg);
}

.pg-eco-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    translate: -50% -50%;
    border: 1px solid rgba(17, 17, 17, .14);
}

.pg-eco-ring.r1 {
    width: 100%;
    height: 100%;
    border-color: rgba(244, 123, 32, .38);
    box-shadow: 0 0 60px rgba(244, 123, 32, .12), inset 0 0 60px rgba(244, 123, 32, .08);
}

.pg-eco-ring.r2 {
    width: 70%;
    height: 70%;
    border-style: dashed;
}

.pg-eco-ring.r3 {
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(244, 123, 32, .22), transparent 70%);
    border-color: rgba(244, 123, 32, .3);
}

.pg-eco-spin {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.pg-eco-spin span {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mf-orange);
    box-shadow: 0 0 18px rgba(244, 123, 32, .9);
}

.pg-eco-spin span:nth-child(1) { left: calc(50% - 6px); top: -6px; }
.pg-eco-spin span:nth-child(2) { left: calc(85% - 6px); top: calc(85% - 6px); width: 8px; height: 8px; background: var(--mf-ink); box-shadow: none; }
.pg-eco-spin span:nth-child(3) { left: calc(15% - 6px); top: calc(85% - 6px); width: 9px; height: 9px; }

@media (prefers-reduced-motion: no-preference) {

    .pg-eco-spin {
        animation: pgSpin 26s linear infinite;
    }

    .pg-eco-spin--slow {
        animation-duration: 40s;
        animation-direction: reverse;
    }

    .is-paused .pg-eco-spin {
        animation-play-state: paused;
    }
}

.pg-eco-spin--slow {
    inset: 15%;
}

@keyframes pgSpin {
    to {
        rotate: 360deg;
    }
}

.pg-eco-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 132px;
    height: 132px;
    translate: -50% -50%;
    transform: translateZ(70px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .2), transparent 38%),
        linear-gradient(150deg, #241c1a, #0c0a0a);
    box-shadow:
        0 30px 70px rgba(17, 17, 17, .35),
        0 0 0 10px rgba(255, 255, 255, .5),
        0 0 70px rgba(244, 123, 32, .3);
    text-align: center;
}

.pg-eco-core strong {
    display: block;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -.08em;
    line-height: 1;
}

.pg-eco-core small {
    display: block;
    margin-top: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .24em;
    color: var(--mf-orange);
}

.pg-eco-node {
    position: absolute;
    min-width: 172px;
    padding: 15px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 24px 60px rgba(90, 45, 15, .16), inset 0 1px 0 #fff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pg-eco-node small {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    color: var(--mf-orange-deep);
}

.pg-eco-node strong {
    display: block;
    margin-top: 6px;
    font-size: 19px;
    letter-spacing: -.035em;
}

.pg-eco-node span {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--mf-muted);
}

.pg-eco-node.n1 { left: -2%; top: 16%; transform: translateZ(120px); }
.pg-eco-node.n2 { right: -4%; top: 40%; transform: translateZ(150px); }
.pg-eco-node.n3 { left: 10%; bottom: 8%; transform: translateZ(95px); }


/* =====================================================
   SPLIT / STATEMENT
===================================================== */

.pg-split {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 7vw, 110px);
    align-items: start;
}

.pg-split-label {
    position: sticky;
    top: 130px;
}

.pg-index {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    color: var(--mf-orange-deep);
}

.pg-statement {
    margin: 0;
    font-size: clamp(28px, 3.3vw, 46px);
    line-height: 1.14;
    letter-spacing: -.04em;
    font-weight: 600;
    color: var(--mf-ink);
}

.pg-statement mark {
    background: linear-gradient(transparent 62%, rgba(244, 123, 32, .28) 62%);
    color: inherit;
    padding: 0 .04em;
}

.pg-statement-body {
    margin-top: 34px;
    max-width: 620px;
}

.pg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.pg-tags span {
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid var(--mf-line-strong);
    background: rgba(255, 255, 255, .6);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}


/* =====================================================
   BRAND BAND (official logo, dimensional)
===================================================== */

.pg-brand {
    position: relative;
    overflow: hidden;
    border-radius: var(--mf-radius-xl);
    background:
        radial-gradient(circle at 50% 120%, rgba(244, 123, 32, .35), transparent 50%),
        linear-gradient(180deg, #050404, #0b0808);
    box-shadow: var(--mf-shadow-dark);
    padding: clamp(46px, 7vw, 90px) clamp(22px, 5vw, 70px);
    text-align: center;
    color: #fff;
}

.pg-brand-logo {
    position: relative;
    width: min(760px, 100%);
    margin: 0 auto;
}

.pg-brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    transform: translateZ(40px);
    -webkit-mask-image: radial-gradient(ellipse 78% 74% at 50% 46%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 78% 74% at 50% 46%, #000 62%, transparent 100%);
}

.pg-brand-caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 34px;
    margin-top: 28px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .24em;
    color: rgba(255, 255, 255, .5);
}

.pg-brand-caption span:nth-child(2) {
    color: var(--mf-orange);
}


/* =====================================================
   ROLE FLOW (Advertisers → MyFunAds → Publishers)
===================================================== */

.pg-flow {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.pg-flow-col {
    position: relative;
    z-index: 2;
    padding: 34px 30px;
    border-radius: var(--mf-radius-lg);
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--mf-line);
    box-shadow: var(--mf-shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform .5s var(--mf-ease), box-shadow .5s ease, border-color .4s ease;
}

.pg-flow-col:hover {
    transform: translateY(-6px);
    box-shadow: var(--mf-shadow);
    border-color: rgba(244, 123, 32, .35);
}

.pg-flow-col--core {
    color: #fff;
    background:
        radial-gradient(circle at 80% 0%, rgba(244, 123, 32, .3), transparent 50%),
        linear-gradient(160deg, #1b1514, #0c0a0a);
    border-color: rgba(255, 255, 255, .1);
    box-shadow: var(--mf-shadow-dark);
}

.pg-flow-col--core .pg-flow-list li {
    color: rgba(255, 255, 255, .78);
    border-color: rgba(255, 255, 255, .1);
}

.pg-flow-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    color: var(--mf-orange-deep);
}

.pg-flow-col--core .pg-flow-kicker {
    color: var(--mf-orange);
}

.pg-flow-col .pg-h3 {
    margin-top: 14px;
}

.pg-flow-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.pg-flow-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--mf-line);
    font-size: 14.5px;
    color: var(--mf-muted);
}

.pg-flow-list li::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--mf-orange);
}

.pg-flow-line {
    position: absolute;
    top: 50%;
    left: 6%;
    right: 6%;
    z-index: 1;
    height: 2px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(244, 123, 32, .1), rgba(244, 123, 32, .45), rgba(244, 123, 32, .1));
}

.pg-flow-line::after {
    content: "";
    position: absolute;
    top: 0;
    width: 22%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--mf-orange), transparent);
}

@media (prefers-reduced-motion: no-preference) {

    .pg-flow-line::after {
        animation: pgPulse 3.4s var(--mf-ease) infinite;
    }

    .is-paused .pg-flow-line::after {
        animation-play-state: paused;
    }
}

@keyframes pgPulse {
    from { left: -25%; }
    to { left: 105%; }
}


/* =====================================================
   EDITORIAL ROWS (principles)
===================================================== */

.pg-rows {
    border-top: 1px solid var(--mf-line-strong);
}

.pg-row {
    position: relative;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.3fr) 48px;
    gap: 28px;
    align-items: center;
    padding: 34px 18px;
    border-bottom: 1px solid var(--mf-line-strong);
    transition: background .45s ease, padding .45s var(--mf-ease);
}

.pg-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    height: 2px;
    width: 0;
    background: var(--mf-orange);
    transition: width .7s var(--mf-ease);
}

.pg-row:hover {
    background: rgba(255, 255, 255, .7);
    padding-left: 30px;
}

.pg-row:hover::before {
    width: 100%;
}

.pg-row-num {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    color: var(--mf-orange-deep);
}

.pg-row-title {
    margin: 0;
    font-size: clamp(22px, 2.3vw, 32px);
    letter-spacing: -.04em;
    line-height: 1.08;
    font-weight: 700;
}

.pg-row-text {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--mf-muted);
}

.pg-row-glyph {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--mf-line-strong);
    color: var(--mf-orange-deep);
    font-size: 16px;
    transition: background .35s ease, color .35s ease, transform .5s var(--mf-ease), border-color .35s ease;
}

.pg-row:hover .pg-row-glyph {
    background: var(--mf-ink);
    border-color: var(--mf-ink);
    color: #fff;
    transform: rotate(45deg);
}


/* =====================================================
   DUO PANELS (value for each side)
===================================================== */

.pg-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.pg-duo-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    padding: clamp(30px, 4vw, 52px);
    border-radius: var(--mf-radius-xl);
    border: 1px solid var(--mf-line);
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--mf-shadow-sm);
    transition: transform .6s var(--mf-ease), box-shadow .6s ease;
}

.pg-duo-panel:hover {
    transform: translateY(-6px);
    box-shadow: var(--mf-shadow);
}

.pg-duo-panel--dark {
    color: #fff;
    border-color: rgba(255, 255, 255, .08);
    background:
        radial-gradient(circle at 100% 0%, rgba(244, 123, 32, .28), transparent 45%),
        linear-gradient(160deg, #1a1414, #0b0909);
    box-shadow: var(--mf-shadow-dark);
}

.pg-duo-panel--dark .pg-duo-list li {
    color: rgba(255, 255, 255, .78);
    border-color: rgba(255, 255, 255, .1);
}

.pg-duo-panel > :not(.pg-duo-mark) {
    position: relative;
    z-index: 1;
}

.pg-duo-mark {
    position: absolute;
    z-index: 0;
    right: -10px;
    bottom: -38px;
    font-size: clamp(120px, 15vw, 210px);
    font-weight: 900;
    letter-spacing: -.08em;
    line-height: 1;
    color: rgba(17, 17, 17, .04);
    pointer-events: none;
    user-select: none;
}

.pg-duo-panel--dark .pg-duo-mark {
    color: rgba(255, 255, 255, .04);
}

.pg-duo-panel .pg-h2 {
    font-size: clamp(32px, 3.6vw, 52px);
}

.pg-duo-list {
    list-style: none;
    margin: 30px 0 34px;
    padding: 0;
}

.pg-duo-list li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid var(--mf-line);
    font-size: 15px;
    line-height: 1.55;
    color: var(--mf-muted);
}

.pg-duo-list li b {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--mf-orange);
    padding-top: 3px;
}

.pg-duo-panel .pg-actions {
    margin-top: auto;
}


/* =====================================================
   TEAM
   Reusable profile cards (pages/about.html). Contact
   buttons are real links only when a URL exists; until
   then they render as disabled, non-interactive items.
===================================================== */

.pg-team-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 48px;
    align-items: end;
    margin-bottom: clamp(36px, 5vw, 60px);
}

.pg-team-head .pg-lead {
    margin: 0;
}

.pg-team-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 18px;
}

.pg-team-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 28px 26px;
    border-radius: var(--mf-radius-lg);
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--mf-line);
    box-shadow: var(--mf-shadow-sm);
    transition: transform .5s var(--mf-ease), box-shadow .5s ease, border-color .35s ease;
}

.pg-team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mf-shadow);
    border-color: rgba(244, 123, 32, .3);
}

.pg-team-card.is-placeholder {
    border: 1.5px dashed rgba(17, 17, 17, .2);
    background: rgba(255, 255, 255, .6);
    box-shadow: none;
}

.pg-team-card.is-placeholder:hover {
    transform: none;
    box-shadow: none;
}

.pg-team-flag {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--mf-surface-3);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mf-muted);
}

.pg-team-avatar {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.04em;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .25), transparent 45%),
        linear-gradient(150deg, #f47b20, #d9531f);
    box-shadow: 0 0 0 6px rgba(244, 123, 32, .12);
}

.pg-team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.is-placeholder .pg-team-avatar {
    background: var(--mf-surface-3);
    color: var(--mf-faint);
    box-shadow: 0 0 0 6px rgba(17, 17, 17, .04);
}

.is-placeholder .pg-team-avatar svg {
    width: 44px;
    height: 44px;
}

.pg-team-name {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.pg-team-role {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mf-orange-deep);
}

.pg-team-intro {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--mf-muted);
}

.is-placeholder .pg-team-name,
.is-placeholder .pg-team-role,
.is-placeholder .pg-team-intro {
    color: var(--mf-faint);
}

.pg-team-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 0;
    padding: 22px 0 0;
}

.pg-team-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--mf-line-strong);
    background: #fff;
    color: var(--mf-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .3s ease, color .3s ease, border-color .3s ease, scale .15s ease;
}

.pg-team-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

a.pg-team-link:hover {
    background: var(--mf-ink);
    border-color: var(--mf-ink);
    color: #fff;
}

a.pg-team-link:active {
    scale: .96;
}

.pg-team-link.is-disabled {
    cursor: not-allowed;
    border-style: dashed;
    background: transparent;
    color: var(--mf-faint);
}

.pg-team-note {
    margin: 22px 0 0;
    font-size: 13.5px;
    color: var(--mf-muted);
}

@media (max-width: 960px) {
    .pg-team-head {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pg-team-card:hover {
        transform: none;
    }
}


/* =====================================================
   BENEFIT CARDS (bento grid)
===================================================== */

.pg-bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.pg-card {
    position: relative;
    overflow: hidden;
    grid-column: span 2;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border-radius: var(--mf-radius-lg);
    border: 1px solid var(--mf-line);
    background: rgba(255, 255, 255, .84);
    box-shadow: var(--mf-shadow-sm);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        transform .55s var(--mf-ease),
        box-shadow .55s ease,
        border-color .4s ease;
}

.pg-card::after {
    content: "";
    position: absolute;
    left: 32px;
    right: 32px;
    top: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--mf-accent-text);
    scale: 0 1;
    transform-origin: 0 50%;
    transition: scale .7s var(--mf-ease);
}

.pg-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--mf-shadow);
    border-color: rgba(244, 123, 32, .28);
}

.pg-card:hover::after {
    scale: 1 1;
}

.pg-card--wide {
    grid-column: span 3;
}

.pg-card--tall {
    grid-row: span 2;
}

.pg-card--dark {
    color: #fff;
    border-color: rgba(255, 255, 255, .08);
    background:
        radial-gradient(circle at 90% 10%, rgba(244, 123, 32, .3), transparent 46%),
        linear-gradient(160deg, #1b1515, #0c0a0a);
    box-shadow: var(--mf-shadow-dark);
}

.pg-card--dark .pg-card-text {
    color: rgba(255, 255, 255, .68);
}

.pg-card--accent {
    color: #fff;
    border-color: transparent;
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .25), transparent 40%),
        linear-gradient(140deg, #f47b20, #e85d2a 70%, #d94b2b);
    box-shadow: 0 30px 70px rgba(244, 123, 32, .3);
}

.pg-card--accent .pg-card-text {
    color: rgba(255, 255, 255, .85);
}

.pg-card--accent .pg-card-icon {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.pg-card--accent::after {
    background: #fff;
}

.pg-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: auto;
    padding-bottom: 34px;
}

.pg-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 19px;
    font-weight: 800;
    color: var(--mf-orange-deep);
    background: rgba(244, 123, 32, .1);
    border: 1px solid rgba(244, 123, 32, .22);
}

.pg-card--dark .pg-card-icon {
    color: var(--mf-orange);
    background: rgba(244, 123, 32, .12);
}

.pg-card-num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--mf-faint);
}

.pg-card--dark .pg-card-num,
.pg-card--accent .pg-card-num {
    color: rgba(255, 255, 255, .5);
}

.pg-card-text {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--mf-muted);
}

.pg-card-models {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.pg-card-models span {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
}


/* =====================================================
   PROCESS STORY (sticky screen + scrolling steps)
===================================================== */

.pg-story {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(34px, 6vw, 90px);
}

.pg-story-steps {
    position: relative;
    padding-left: 34px;
}

.pg-story-rail {
    position: absolute;
    left: 6px;
    top: 8vh;
    bottom: 8vh;
    width: 2px;
    border-radius: 2px;
    background: var(--mf-line-strong);
}

.pg-story-rail span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(var(--story-progress, 0) * 100%);
    border-radius: inherit;
    background: linear-gradient(180deg, var(--mf-orange), var(--mf-coral));
    transition: height .6s var(--mf-ease);
}

.pg-story-step {
    position: relative;
    min-height: 66vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: .3;
    transition: opacity .6s ease;
}

.pg-story-step:first-child {
    min-height: 56vh;
}

.pg-story-step.is-active {
    opacity: 1;
}

.pg-story-step::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 50%;
    width: 14px;
    height: 14px;
    translate: 0 -50%;
    border-radius: 50%;
    background: var(--mf-surface);
    border: 2px solid var(--mf-line-strong);
    transition: border-color .4s ease, background .4s ease, box-shadow .4s ease;
}

.pg-story-step.is-active::before {
    background: var(--mf-orange);
    border-color: var(--mf-orange);
    box-shadow: 0 0 0 6px rgba(244, 123, 32, .16);
}

.pg-story-num {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2em;
    color: var(--mf-orange-deep);
}

.pg-story-step .pg-h2 {
    margin-top: 14px;
    font-size: clamp(32px, 3.6vw, 54px);
}

.pg-story-step .pg-body {
    max-width: 470px;
    margin-top: 20px;
}

.pg-story-points {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.pg-story-points li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 14.5px;
    color: var(--mf-ink-soft);
}

.pg-story-points li::before {
    content: "→";
    color: var(--mf-orange);
    font-weight: 800;
}

.pg-story-media {
    display: none;
}

.pg-story-visual {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
}

.pg-device {
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #141112;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow:
        0 50px 120px rgba(17, 17, 17, .26),
        0 0 0 10px rgba(255, 255, 255, .55);
}

.pg-device-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 42px;
    padding: 0 16px;
}

.pg-device-dots {
    display: flex;
    gap: 6px;
}

.pg-device-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
}

.pg-device-dots span:first-child {
    background: var(--mf-coral);
}

.pg-device-url {
    flex: 1;
    max-width: 340px;
    margin-inline: auto;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    font-size: 10px;
    letter-spacing: .06em;
    text-align: center;
    color: rgba(255, 255, 255, .45);
}

.pg-device-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    color: var(--mf-orange);
}

.pg-device-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f2f2f4;
}

.pg-device-screen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    scale: 1.03;
    transition: opacity .7s ease, scale 1.1s var(--mf-ease);
}

.pg-device-screen img.is-active {
    opacity: 1;
    scale: 1;
}


/* =====================================================
   MODELS (tabs)
===================================================== */

.pg-models {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: stretch;
}

.pg-models-list {
    display: grid;
    gap: 10px;
}

.pg-model-tab {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 14px 20px 14px 14px;
    border: 1px solid var(--mf-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, .7);
    color: var(--mf-ink);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .35s ease, border-color .35s ease, transform .45s var(--mf-ease), box-shadow .35s ease, scale .15s ease;
}

.pg-model-tab:hover {
    transform: translateX(6px);
    border-color: rgba(244, 123, 32, .35);
}

.pg-model-tab:active {
    scale: .985;
}

.pg-model-tab b {
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
    background: var(--mf-surface-3);
    transition: background .35s ease, color .35s ease;
}

/* two codes in one badge (e.g. CPC / CPM) */
.pg-model-tab b.is-pair {
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
}

.pg-model-tab span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.pg-model-tab i {
    font-style: normal;
    color: var(--mf-faint);
    transition: transform .4s var(--mf-ease), color .3s ease;
}

.pg-model-tab[aria-selected="true"] {
    background: var(--mf-ink);
    border-color: var(--mf-ink);
    color: #fff;
    box-shadow: 0 20px 44px rgba(17, 17, 17, .18);
}

.pg-model-tab[aria-selected="true"] b {
    background: var(--mf-orange);
    color: #fff;
}

.pg-model-tab[aria-selected="true"] i {
    color: var(--mf-orange);
    transform: translateX(4px);
}

.pg-model-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(30px, 4vw, 50px);
    border-radius: var(--mf-radius-xl);
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(244, 123, 32, .32), transparent 42%),
        linear-gradient(160deg, #1b1515, #0b0909);
    box-shadow: var(--mf-shadow-dark);
}

.pg-model-panel[hidden] {
    display: none;
}

.pg-model-panel.is-entering {
    animation: pgPanelIn .6s var(--mf-ease);
}

@keyframes pgPanelIn {
    from {
        opacity: 0;
        translate: 18px 0;
    }
}

.pg-model-code {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 900;
    background: radial-gradient(circle at 35% 30%, #ffa25a, var(--mf-orange) 55%, #d9531f);
    box-shadow: 0 20px 50px rgba(244, 123, 32, .4), inset 0 2px 0 rgba(255, 255, 255, .3);
}

.pg-model-code--pair {
    font-size: 17px;
    line-height: 1.1;
    text-align: center;
}

.pg-model-panel .pg-h2 {
    margin-top: 30px;
    font-size: clamp(30px, 3.4vw, 48px);
}

.pg-model-panel .pg-body {
    margin-top: 16px;
    max-width: 520px;
    color: rgba(255, 255, 255, .7);
}

.pg-model-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: auto;
    padding-top: 34px;
}

.pg-model-details div {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
}

.pg-model-details span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .45);
}

.pg-model-details strong {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: .06em;
}


/* =====================================================
   NUMBERED STEPS (getting started)
===================================================== */

.pg-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    counter-reset: pgstep;
}

.pg-step {
    position: relative;
    padding: 30px 28px 34px;
    border-radius: var(--mf-radius-lg);
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--mf-line);
    transition: transform .5s var(--mf-ease), box-shadow .5s ease;
}

.pg-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--mf-shadow);
}

.pg-step-num {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 40px;
    border-radius: 50%;
    background: var(--mf-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.pg-step:nth-child(2) .pg-step-num {
    background: var(--mf-orange);
}

.pg-step .pg-card-text {
    margin-top: 10px;
}


/* =====================================================
   CTA BAND
===================================================== */

.pg-cta {
    --gx: 70%;
    --gy: 20%;
    position: relative;
    overflow: hidden;
    padding: clamp(46px, 7vw, 100px) clamp(24px, 6vw, 90px);
    border-radius: var(--mf-radius-xl);
    color: #fff;
    background:
        radial-gradient(520px circle at var(--gx) var(--gy), rgba(244, 123, 32, .34), transparent 60%),
        radial-gradient(circle at 0% 100%, rgba(255, 107, 79, .16), transparent 40%),
        linear-gradient(160deg, #1a1414, #080707);
    box-shadow: var(--mf-shadow-dark);
}

.pg-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px);
    background-size: 24px 24px;
    mask-image: linear-gradient(90deg, transparent, #000 60%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}

.pg-cta > * {
    position: relative;
}

.pg-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    gap: 40px;
    align-items: end;
}

.pg-cta .pg-h2 {
    font-size: clamp(38px, 5.4vw, 80px);
}

.pg-cta .pg-lead {
    color: rgba(255, 255, 255, .64);
}

.pg-cta .pg-actions {
    justify-content: flex-end;
    margin-top: 0;
}


/* =====================================================
   ADVERTISERS — CAMPAIGN CONSOLE (3D hero visual)
===================================================== */

.pg-console {
    position: relative;
    width: min(560px, 100%);
    margin-inline: auto;
}

/* The brief's own content sets the height (a fixed-aspect box
   let rows spill out of the card at mid widths); the chips sit
   in this padding around it. */
.pg-console .pg-tilt-inner {
    position: relative;
    padding: 58px 7% 72px 3%;
}

.pg-console-back {
    position: absolute;
    inset: 6% 2% 10% 10%;
    border-radius: 30px;
    transform: translateZ(-60px) rotate(-5deg);
    background:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(150deg, rgba(244, 123, 32, .35), rgba(244, 123, 32, .02) 60%);
    border: 1px solid rgba(255, 255, 255, .1);
}

.pg-console-card {
    position: relative;
    transform: translateZ(30px);
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(38, 31, 30, .92), rgba(16, 13, 13, .94));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 50px 100px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.pg-console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.pg-console-head small {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .22em;
    color: rgba(255, 255, 255, .45);
}

.pg-console-head strong {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    letter-spacing: -.03em;
}

.pg-console-status {
    display: inline-flex;
    flex-shrink: 0;
    white-space: nowrap;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(244, 123, 32, .14);
    color: var(--mf-orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.pg-console-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pg-console-rows {
    display: grid;
    gap: 2px;
    margin-top: 10px;
}

.pg-console-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .08);
    font-size: 13px;
}

.pg-console-row span {
    color: rgba(255, 255, 255, .45);
}

.pg-console-row strong {
    font-weight: 600;
    text-align: right;
}

.pg-console-pipe {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: auto;
    padding-top: 22px;
}

.pg-console-pipe span {
    position: relative;
    padding-top: 14px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
}

.pg-console-pipe span::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .1);
}

.pg-console-pipe span.is-done {
    color: #fff;
}

.pg-console-pipe span.is-done::before {
    background: var(--mf-orange);
}

.pg-console-pipe span.is-now::before {
    background: linear-gradient(90deg, var(--mf-orange) 50%, rgba(255, 255, 255, .1) 50%);
}

.pg-console .pg-chip {
    position: absolute;
}

.pg-console .c1 { left: -4%; top: 30px; transform: translateZ(110px); }
.pg-console .c2 { right: -2%; top: 0; transform: translateZ(140px); }
.pg-console .c3 { left: 6%; bottom: 14px; transform: translateZ(90px); }

.pg-illustrative {
    position: absolute;
    right: 10%;
    /* in the padding below the card, never over a row */
    bottom: 26px;
    transform: translateZ(10px);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .28);
}


/* =====================================================
   PUBLISHERS — LAYER STACK (3D hero visual)
===================================================== */

.pg-hero--warm {
    background:
        radial-gradient(circle at 78% 42%, rgba(244, 123, 32, .2), transparent 38%),
        radial-gradient(circle at 10% 10%, rgba(255, 210, 170, .5), transparent 40%);
}

.pg-stack {
    position: relative;
    width: min(560px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;
}

.pg-stack .pg-tilt-inner {
    position: absolute;
    inset: 0;
}

.pg-stack-scene {
    position: absolute;
    inset: 8% 6%;
    transform-style: preserve-3d;
    transform: rotateX(58deg) rotateZ(-38deg);
}

.pg-stack-layer {
    position: absolute;
    inset: 12%;
    border-radius: 34px;
    transform-style: preserve-3d;
    transition: transform .8s var(--mf-ease);
}

.pg-stack-layer.l1 {
    transform: translateZ(0);
    background:
        linear-gradient(rgba(17, 17, 17, .06) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(90deg, rgba(17, 17, 17, .06) 1px, transparent 1px) 0 0 / 22px 22px,
        rgba(255, 255, 255, .7);
    border: 1px solid rgba(17, 17, 17, .1);
    box-shadow: 0 40px 80px rgba(120, 60, 20, .18);
}

.pg-stack-layer.l2 {
    transform: translateZ(70px);
    background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .2));
    border: 1px solid rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 30px 70px rgba(120, 60, 20, .14);
}

.pg-stack-layer.l3 {
    transform: translateZ(140px);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .4), transparent 50%),
        linear-gradient(135deg, #f8933f, #f47b20 45%, #e2572a);
    box-shadow: 0 30px 80px rgba(244, 123, 32, .45);
}

.pg-stack:hover .pg-stack-layer.l2 { transform: translateZ(90px); }
.pg-stack:hover .pg-stack-layer.l3 { transform: translateZ(185px); }

.pg-stack-dots {
    position: absolute;
    inset: 22%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12%;
}

.pg-stack-dots i {
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(17, 17, 17, .14);
}

.pg-stack-dots i:nth-child(3n) {
    background: rgba(244, 123, 32, .55);
}

.pg-stack-bars {
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 20%;
    height: 50%;
    display: flex;
    align-items: flex-end;
    gap: 9%;
}

.pg-stack-bars i {
    flex: 1;
    border-radius: 8px 8px 3px 3px;
    background: rgba(255, 255, 255, .85);
}

.pg-stack-bars i:nth-child(1) { height: 30%; }
.pg-stack-bars i:nth-child(2) { height: 48%; }
.pg-stack-bars i:nth-child(3) { height: 66%; }
.pg-stack-bars i:nth-child(4) { height: 92%; }

.pg-stack-label {
    position: absolute;
    min-width: 170px;
    padding: 13px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid #fff;
    box-shadow: 0 22px 50px rgba(120, 60, 20, .16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pg-stack-label small {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    color: var(--mf-orange-deep);
}

.pg-stack-label strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    letter-spacing: -.03em;
}

.pg-stack-label.s1 { left: -2%; bottom: 14%; transform: translateZ(60px); }
.pg-stack-label.s2 { right: -4%; top: 44%; transform: translateZ(120px); }
.pg-stack-label.s3 { left: 6%; top: 8%; transform: translateZ(180px); }


/* =====================================================
   CONTACT
===================================================== */

.pg-contact {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(36px, 6vw, 90px);
    align-items: start;
}

.pg-contact-aside {
    position: sticky;
    top: 130px;
}

.pg-contact-direct {
    display: grid;
    gap: 12px;
    margin-top: 40px;
}

.pg-contact-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--mf-line);
    text-decoration: none;
    color: var(--mf-ink);
    transition: transform .45s var(--mf-ease), border-color .3s ease, box-shadow .4s ease;
}

.pg-contact-line:hover {
    transform: translateX(6px);
    border-color: rgba(244, 123, 32, .4);
    box-shadow: var(--mf-shadow-sm);
}

.pg-contact-line small {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    color: var(--mf-faint);
}

.pg-contact-line strong {
    display: block;
    margin-top: 5px;
    font-size: 16px;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.pg-contact-line b {
    color: var(--mf-orange);
    transition: transform .4s var(--mf-ease);
}

.pg-contact-line:hover b {
    transform: rotate(45deg);
}

.pg-tip {
    margin-top: 34px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(244, 123, 32, .07);
    border: 1px dashed rgba(244, 123, 32, .35);
}

.pg-tip strong {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    color: var(--mf-orange-deep);
}

.pg-tip ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--mf-muted);
    font-size: 14px;
    line-height: 1.8;
}


/* =====================================================
   FORMS
===================================================== */

.pg-form-card {
    position: relative;
    padding: clamp(26px, 4vw, 48px);
    border-radius: var(--mf-radius-xl);
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--mf-line);
    box-shadow: var(--mf-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.pg-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.pg-form-head p {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--mf-muted);
}

.pg-req {
    font-style: normal;
    color: var(--mf-orange-deep);
}

.pg-form-step {
    flex-shrink: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--mf-surface-3);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    color: var(--mf-muted);
}

.pg-fieldset {
    margin: 0 0 26px;
    padding: 0;
    border: 0;
}

.pg-legend,
.pg-label {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mf-ink-soft);
}

.pg-label em,
.pg-legend em {
    font-style: normal;
    color: var(--mf-orange-deep);
}

.pg-label .pg-optional {
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: none;
    color: var(--mf-faint);
}

.pg-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pg-choice {
    position: relative;
    cursor: pointer;
}

.pg-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pg-choice-body {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 16px;
    border-radius: 18px;
    border: 1.5px solid var(--mf-line);
    background: var(--mf-surface-2);
    transition: border-color .3s ease, background .3s ease, transform .4s var(--mf-ease), box-shadow .3s ease;
}

.pg-choice:hover .pg-choice-body {
    transform: translateY(-2px);
    border-color: var(--mf-line-strong);
}

.pg-choice-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: var(--mf-orange-deep);
    font-weight: 800;
    transition: background .3s ease, color .3s ease;
}

.pg-choice-body strong {
    display: block;
    font-size: 14.5px;
    letter-spacing: -.02em;
}

.pg-choice-body small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--mf-faint);
}

.pg-choice input:checked + .pg-choice-body {
    border-color: var(--mf-ink);
    background: #fff;
    box-shadow: 0 14px 30px rgba(17, 17, 17, .08);
}

.pg-choice input:checked + .pg-choice-body .pg-choice-icon {
    background: var(--mf-orange);
    color: #fff;
}

.pg-choice input:focus-visible + .pg-choice-body {
    outline: 2px solid var(--mf-orange);
    outline-offset: 3px;
}

.pg-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pg-field {
    display: flex;
    flex-direction: column;
}

.pg-field--full {
    grid-column: 1 / -1;
}

.pg-field[hidden] {
    display: none;
}

.pg-input {
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    border: 1.5px solid transparent;
    border-radius: 16px;
    background: var(--mf-surface-2);
    color: var(--mf-ink);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.pg-input::placeholder {
    color: #a3a2a8;
}

.pg-input:hover {
    background: var(--mf-surface-3);
}

.pg-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--mf-orange);
    box-shadow: 0 0 0 5px rgba(244, 123, 32, .14);
}

textarea.pg-input {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

select.pg-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 46px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--mf-ink) 50%),
        linear-gradient(135deg, var(--mf-ink) 50%, transparent 50%);
    background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.pg-field.is-invalid .pg-input {
    border-color: #d9480f;
    background: #fff7f3;
}

.pg-error {
    min-height: 0;
    margin: 7px 2px 0;
    font-size: 12.5px;
    color: #c2410c;
}

.pg-error:empty {
    display: none;
}

.pg-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--mf-muted);
    cursor: pointer;
}

.pg-check input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin: 1px 0 0;
    accent-color: var(--mf-orange);
}

.pg-form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--mf-line);
}

.pg-form-foot .pg-btn {
    margin-left: auto;
}

.pg-form-hint {
    max-width: 330px;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--mf-faint);
}

.pg-status {
    display: none;
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.pg-status.is-visible {
    display: block;
}

.pg-status--info {
    background: rgba(244, 123, 32, .08);
    border: 1px solid rgba(244, 123, 32, .3);
    color: var(--mf-ink-soft);
}

.pg-status--success {
    background: #f0faf3;
    border: 1px solid #b7e4c7;
    color: #1d5c34;
}

.pg-status--error {
    background: #fff4f0;
    border: 1px solid #f5c2ae;
    color: #9a3412;
}

.pg-status a {
    color: inherit;
    font-weight: 700;
}


/* =====================================================
   LOGIN
===================================================== */

.pg-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: calc(100vh - 40px);
    margin: 20px;
    border-radius: var(--mf-radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--mf-shadow);
}

.pg-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 150px clamp(28px, 5vw, 70px) 50px;
    color: #fff;
    background:
        radial-gradient(circle at 50% 60%, rgba(244, 123, 32, .28), transparent 50%),
        linear-gradient(170deg, #0b0909, #050404);
    overflow: hidden;
}

.pg-auth-brand .pg-brand-logo img {
    transform: none;
}

.pg-auth-brand p {
    max-width: 420px;
    margin: 18px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .6);
}

.pg-auth-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 150px clamp(24px, 6vw, 90px) 60px;
}

.pg-auth-form form {
    width: min(460px, 100%);
}

.pg-auth-form .pg-fields {
    grid-template-columns: 1fr;
}

.pg-auth-switch {
    display: inline-flex;
    padding: 5px;
    margin-bottom: 30px;
    border-radius: 999px;
    background: var(--mf-surface-3);
}

.pg-auth-switch label {
    position: relative;
    cursor: pointer;
}

.pg-auth-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pg-auth-switch span {
    display: block;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--mf-muted);
    transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}

.pg-auth-switch input:checked + span {
    background: #fff;
    color: var(--mf-ink);
    box-shadow: 0 8px 20px rgba(17, 17, 17, .08);
}

.pg-auth-switch input:focus-visible + span {
    outline: 2px solid var(--mf-orange);
    outline-offset: 2px;
}

.pg-auth-alt {
    margin-top: 30px;
    font-size: 14px;
    color: var(--mf-muted);
}

.pg-auth-alt a {
    color: var(--mf-ink);
    font-weight: 700;
}

.pg-auth-alt a:hover {
    color: var(--mf-orange-deep);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .pg-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pg-card,
    .pg-card--wide {
        grid-column: span 1;
    }

    .pg-card--tall {
        grid-row: auto;
    }

    .pg-row {
        grid-template-columns: 60px minmax(0, 1fr) 44px;
    }

    .pg-row-text {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    .pg-row-glyph {
        grid-column: 3;
        grid-row: 1;
    }
}

@media (max-width: 960px) {

    .pg-hero {
        padding-top: 150px;
    }

    .pg-hero-grid,
    .pg-split,
    .pg-contact,
    .pg-models,
    .pg-cta-grid {
        grid-template-columns: 1fr;
    }

    .pg-split-label,
    .pg-contact-aside {
        position: static;
    }

    .pg-hero-visual {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }

    .pg-flow {
        grid-template-columns: 1fr;
    }

    .pg-flow-line {
        top: 4%;
        bottom: 4%;
        left: 50%;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, rgba(244, 123, 32, .1), rgba(244, 123, 32, .45), rgba(244, 123, 32, .1));
    }

    .pg-flow-line::after {
        display: none;
    }

    .pg-duo {
        grid-template-columns: 1fr;
    }

    .pg-duo-panel {
        min-height: 0;
    }

    .pg-story {
        grid-template-columns: 1fr;
    }

    .pg-story-visual {
        display: none;
    }

    .pg-story-steps {
        padding-left: 28px;
    }

    .pg-story-rail {
        top: 0;
        bottom: 0;
    }

    .pg-story-step,
    .pg-story-step:first-child {
        min-height: 0;
        padding: 30px 0 46px;
        opacity: 1;
    }

    .pg-story-step::before {
        left: -28px;
        top: 44px;
    }

    .pg-story-media {
        display: block;
        margin-top: 26px;
        overflow: hidden;
        border-radius: 16px;
        border: 6px solid #fff;
        box-shadow: var(--mf-shadow);
        background: #f2f2f4;
    }

    .pg-story-media img {
        display: block;
        width: 100%;
        height: auto;
    }

    .pg-steps {
        grid-template-columns: 1fr;
    }

    .pg-step-num {
        margin-bottom: 22px;
    }

    .pg-cta .pg-actions {
        justify-content: flex-start;
    }

    .pg-auth {
        grid-template-columns: 1fr;
        margin: 12px;
    }

    .pg-auth-brand {
        padding-top: 130px;
    }

    .pg-auth-form {
        padding-top: 50px;
    }
}

@media (max-width: 640px) {

    .pg-hero {
        padding-top: 130px;
    }

    .pg-display {
        font-size: clamp(40px, 12vw, 60px);
    }

    .pg-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pg-btn {
        width: 100%;
    }

    .pg-bento {
        grid-template-columns: 1fr;
    }

    .pg-card {
        min-height: 0;
        padding: 26px;
    }

    .pg-card-top {
        padding-bottom: 26px;
    }

    .pg-row {
        grid-template-columns: 1fr 44px;
        gap: 14px;
        padding: 26px 4px;
    }

    .pg-row:hover {
        padding-left: 4px;
    }

    .pg-row-num {
        grid-column: 1 / -1;
    }

    .pg-row-title {
        grid-column: 1;
        grid-row: 2;
    }

    .pg-row-glyph {
        grid-column: 2;
        grid-row: 2;
    }

    .pg-row-text {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .pg-choices,
    .pg-fields,
    .pg-model-details {
        grid-template-columns: 1fr;
    }

    .pg-form-foot .pg-btn {
        margin-left: 0;
    }

    .pg-eco-node {
        min-width: 0;
        padding: 11px 13px;
        border-radius: 15px;
    }

    .pg-eco-node strong {
        font-size: 15px;
    }

    .pg-eco-node span {
        display: none;
    }

    .pg-eco-core {
        width: 96px;
        height: 96px;
    }

    .pg-eco-core strong {
        font-size: 30px;
    }

    /* no tilt on touch: keep depth shallow so perspective
       doesn't push the nodes past the viewport edge */
    .pg-eco-node.n1 { left: 4%; transform: translateZ(30px); }
    .pg-eco-node.n2 { right: 4%; transform: translateZ(40px); }
    .pg-eco-node.n3 { left: 12%; transform: translateZ(25px); }

    /* phones: brief first, chips wrap beneath it — no
       absolutely-positioned chips covering the rows */
    .pg-console .pg-tilt-inner {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
    }

    .pg-console-back {
        inset: 4% 0 30% 8%;
    }

    .pg-console-card {
        flex: 0 0 100%;
        min-width: 0;
        margin-bottom: 8px;
        padding: 20px;
        transform: none;
    }

    .pg-console .pg-chip,
    .pg-console .pg-illustrative {
        position: static;
        transform: none;
    }

    .pg-console .pg-illustrative {
        flex: 0 0 100%;
        text-align: right;
    }

    .pg-console-row {
        font-size: 12px;
        padding: 10px 0;
    }

    .pg-console-pipe {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 14px;
    }

    .pg-console-pipe span {
        font-size: 9px;
        letter-spacing: .04em;
    }

    .pg-chip {
        padding: 9px 12px;
        font-size: 10px;
    }

    .pg-stack-label {
        min-width: 0;
        padding: 10px 12px;
    }

    .pg-stack-label strong {
        font-size: 13.5px;
    }

    .pg-stack-label.s1 { left: 3%; transform: translateZ(30px); }
    .pg-stack-label.s2 { right: 3%; transform: translateZ(40px); }
    .pg-stack-label.s3 { transform: translateZ(50px); }

    .pg-model-tab {
        grid-template-columns: 54px 1fr auto;
        padding: 10px 16px 10px 10px;
    }

    .pg-auth-switch {
        display: flex;
    }

    .pg-auth-switch label {
        flex: 1;
        text-align: center;
    }
}
