/* ===== Legens — hero ===== */

:root {
    --bg: #0b0b0e;
    --panel: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.22);
    --text: #f5f5f7;
    --text-dim: #9b9ba5;
    --text-dimmer: #6d6d78;
    --accent: #c8ff00;

    --font-body: 'Manrope', system-ui, sans-serif;
    --font-display: 'Onest', system-ui, sans-serif;

    /* type scale */
    --fs-label: 13px;   /* uppercase micro-labels */
    --fs-btn: 14px;     /* button caps */
    --fs-body: 16px;
    --fs-lead: 17px;
    --fs-stat: 26px;
    --fs-h1: clamp(36px, 3.9vw, 55px);

    --track-label: 0.14em;
    --track-btn: 0.12em;

    --s-1: 8px;
    --s-2: 12px;
    --s-3: 16px;
    --s-4: 24px;
    --s-5: 32px;
    --s-6: 40px;
    --s-7: 56px;
    --s-8: 72px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

a:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .lg3__marquee-track { animation: none; }
    .lg3__ticker-item,
    .lg3__ticker-bar i { transition: none; }
}

.lg3 {
    position: relative;
    background: url("images/bg-texture.webp") center top / cover no-repeat fixed, var(--bg);
    overflow-x: hidden;
}

/* flat 50% knockdown so the graffiti only just reads, plus a stronger
   left-hand scrim where the copy sits */
.lg3::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(100deg,
            rgba(11, 11, 14, 0.86) 0%,
            rgba(11, 11, 14, 0.78) 32%,
            rgba(11, 11, 14, 0.3) 54%,
            rgba(11, 11, 14, 0) 72%),
        rgba(11, 11, 14, 0.5);
}

.lg3__container {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 1600px;
    margin: 0 auto;
}

.lg3__firstscreen {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */

.lg3__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    padding: var(--s-4) 0 var(--s-3);
    flex-shrink: 0;
}

.lg3__logo-area {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    min-width: 0;
}

.lg3__logo {
    height: 44px;
    width: auto;
    flex-shrink: 0;
}

.lg3__logo-text {
    max-width: 196px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-dim);
    border-left: 1px solid var(--border);
    padding-left: var(--s-3);
}

.lg3__nav {
    display: flex;
    align-items: center;
    gap: var(--s-4);
}

.lg3__nav-tg {
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    text-decoration-color: rgba(255, 255, 255, 0.32);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.lg3__nav-tg:hover { color: var(--text); text-decoration-color: var(--accent); }

.lg3__nav-sep {
    width: 1px;
    height: 18px;
    background: var(--border);
    flex-shrink: 0;
}

.lg3__nav-phone {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.005em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.lg3__nav-phone:hover { color: var(--accent); }

.lg3__nav-mobile { display: none; }

/* ===== PHOTO ===== */

.lg3__photo-edge {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;
    pointer-events: none;
}

/* bottom dissolve so the figure melts into the page instead of
   ending on a hard horizontal cut */
.lg3__hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    mask-image: linear-gradient(to bottom, #000 74%, rgba(0, 0, 0, 0.35) 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 74%, rgba(0, 0, 0, 0.35) 90%, transparent 100%);
}

/* name sits to the right of his head, above the stat card.
   `--gutter` mirrors the container's side margin so both overlays end
   on the same vertical as the phone number in the header. */
.lg3 { --gutter: max(10vw, calc((100vw - 1600px) / 2)); }

.lg3__photo-caption {
    position: absolute;
    z-index: 3;
    right: var(--gutter);
    top: 282px;
    max-width: 190px;
    text-align: right;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.95);
}

.lg3__photo-name {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-lead);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 3px;
}

.lg3__photo-role {
    display: block;
    font-size: var(--fs-body);
    color: var(--text-dim);
}

/* compact stat card, right edge, on the same line as the client logos */
.lg3__ticker {
    position: absolute;
    z-index: 3;
    right: var(--gutter);
    bottom: 102px;
    width: 236px;
    min-height: 122px;
    background: rgba(11, 11, 14, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px var(--s-3);
}

.lg3__ticker-item {
    position: absolute;
    left: var(--s-3);
    right: var(--s-3);
    top: 14px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.lg3__ticker-item.is-active {
    opacity: 1;
    transform: translateY(0);
}

.lg3__ticker-label {
    display: block;
    font-size: var(--fs-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track-label);
    color: var(--text-dim);
    margin-bottom: 4px;
}

.lg3__ticker-val {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-stat);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    margin-bottom: 2px;
}

.lg3__ticker-sub {
    display: block;
    font-size: var(--fs-body);
    color: var(--text-dim);
    margin-bottom: 10px;
}

.lg3__ticker-bar {
    display: block;
    height: 3px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.lg3__ticker-bar i {
    display: block;
    height: 100%;
    border-radius: 100px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

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

.lg3__inner {
    flex: 1;
    display: flex;
    align-items: center;
    padding: var(--s-4) 0 var(--s-6);
}

.lg3__left {
    width: 56%;
    min-width: 0;
    /* optical nudge only — keeps the brands strip where it is */
    position: relative;
    top: 30px;
}

.lg3__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    padding: 7px 16px 7px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: var(--fs-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track-label);
    color: var(--text-dim);
    margin: 0 0 var(--s-4);
}

.lg3__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.lg3__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-h1);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 var(--s-5);
}

.lg3__title-stroke {
    -webkit-text-stroke: 1.4px var(--accent);
    color: transparent;
    letter-spacing: 0.005em;
}

.lg3__accent { color: var(--accent); }

.lg3__nowrap { white-space: nowrap; }

.lg3__title-promise {
    display: block;
    font-style: italic;
    font-size: 0.8em;
    letter-spacing: -0.02em;
    margin-top: 4px;
}

/* bullets */

.lg3__bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4) var(--s-5);
    margin: 0 0 var(--s-6);
}

.lg3__bullets li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-2);
}

.lg3__check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

.lg3__bullet-title {
    display: block;
    font-size: var(--fs-lead);
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 3px;
}

.lg3__bullet-sub {
    display: block;
    font-size: var(--fs-body);
    line-height: 1.45;
    color: var(--text-dim);
}

/* ===== CTA ===== */

.lg3__cta-row {
    display: flex;
    align-items: center;
    gap: var(--s-5);
    flex-wrap: wrap;
    margin-bottom: var(--s-8);
}

.lg3__slider-wrap {
    position: relative;
    width: 452px;
    max-width: 100%;
    height: 80px;
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    flex-shrink: 0;
}

.lg3__slider-wrap:active { cursor: grabbing; }

/* full-width pill clipped from the right: keeps the rounded ends intact
   at every fill level (scaleX on a short pill distorted the radius into
   a lozenge). JS writes the inset in px. */
/* `round` keeps the swept edge capped, so at rest the fill is a circle
   tucked exactly under the knob instead of a square nub poking out */
.lg3__slider-track {
    position: absolute;
    inset: 8px;
    border-radius: 100px;
    background: var(--accent);
    clip-path: inset(0 calc(100% - 64px) 0 0 round 100px);
    transition: clip-path 0.08s linear;
}

.lg3__slider-knob {
    position: relative;
    z-index: 3;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: #0b0b0e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.08s linear;
}

.lg3__slider-knob svg { width: 22px; height: 22px; }

/* two stacked labels sharing the wrap's box, so the black one can be
   revealed with the exact same clip as the fill */
.lg3__slider-label {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding-left: 74px;
    padding-right: var(--s-4);
    font-size: var(--fs-btn);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--track-btn);
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
}

.lg3__slider-label--base { color: var(--text); }

.lg3__slider-label--on {
    color: #0b0b0e;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.08s linear;
}

/* big number, both captions stacked to its right as one thought */
.lg3__slots-hint {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    max-width: 340px;
    /* drops the numeral onto the button's centre line */
    position: relative;
    top: 20px;
}

.lg3__slots-num {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 0.9;
    flex-shrink: 0;
}

.lg3__slots-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.lg3__slots-main {
    font-size: var(--fs-body);
    line-height: 1.3;
    color: var(--text);
}

.lg3__slots-sub {
    font-size: var(--fs-label);
    line-height: 1.35;
    color: var(--text-dim);
}

/* ===== CLIENTS ===== */

.lg3__clients-label {
    font-size: var(--fs-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track-label);
    color: var(--text-dimmer);
    margin: 0 0 var(--s-3);
}

.lg3__marquee-outer {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 88%, transparent);
}

.lg3__marquee-track {
    display: flex;
    align-items: center;
    gap: var(--s-7);
    width: max-content;
    animation: lg3-marquee 32s linear infinite;
}

.lg3__marquee-img {
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    flex-shrink: 0;
}

@keyframes lg3-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== FOOTER ===== */

.lg3__footer {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--s-4) 0 var(--s-4);
    font-size: var(--fs-body);
    color: var(--text-dimmer);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-1) var(--s-4);
    flex-shrink: 0;
}

.lg3__footer-link {
    color: var(--text-dimmer);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.lg3__footer-link:hover { color: var(--text-dim); }

/* ===== RESPONSIVE ===== */


@media (max-width: 1240px) {
    .lg3__left { width: 60%; }
    .lg3__photo-edge { width: 42%; }
    .lg3__ticker { width: 216px; }
}

/* clients strip lives under the CTA, so cap it to the text column */
.lg3__clients { padding-bottom: var(--s-5); }
.lg3__clients .lg3__marquee-outer,
.lg3__clients .lg3__clients-label { max-width: 56%; }

@media (max-width: 1240px) {
    .lg3__clients .lg3__marquee-outer,
    .lg3__clients .lg3__clients-label { max-width: 60%; }
}

@media (max-width: 980px) {
    .lg3__container,
    .lg3__footer,
    .lg3__photo-edge { width: 90%; margin-left: auto; margin-right: auto; }

    /* fixed attachment is unreliable on mobile and was killing the texture */
    .lg3 { background-attachment: scroll; }

    .lg3::before {
        background:
            linear-gradient(180deg,
                rgba(11, 11, 14, 0.55) 0%,
                rgba(11, 11, 14, 0.78) 50%,
                rgba(11, 11, 14, 0.88) 100%),
            rgba(11, 11, 14, 0.4);
    }

    .lg3__firstscreen { min-height: 0; }

    /* offer → bullets → button → portrait → brands → legal */
    .lg3__header      { order: 1; }
    .lg3__inner       { order: 2; }
    .lg3__photo-edge  { order: 3; }
    .lg3__clients     { order: 4; }
    .lg3__footer      { order: 5; }

    .lg3__photo-edge {
        position: relative;
        inset: auto;
        height: 52vh;
        min-height: 380px;
        margin-bottom: var(--s-6);
    }

    .lg3__hero-photo {
        object-fit: contain;
        object-position: center bottom;
    }

    /* right of the head (which ends at 54% of the frame), never over it */
    .lg3__photo-caption {
        top: var(--s-4);
        right: 0;
        max-width: 42%;
        text-align: right;
    }

    /* low on the portrait, clear of the very bottom edge */
    .lg3__ticker {
        top: auto;
        bottom: 20px;
        right: auto;
        left: 0;
        width: min(260px, 72%);
        /* items inside are absolutely positioned, so the card needs its
           own height or it collapses to just the padding */
        min-height: 122px;
    }

    /* rule under the header, mirroring the legal block at the foot */
    .lg3__header {
        border-bottom: 1px solid var(--border);
        padding-bottom: var(--s-3);
    }

    .lg3__inner { padding: var(--s-6) 0 var(--s-6); }

    /* desktop-only optical nudges */
    .lg3__left { width: 100%; top: 0; }
    .lg3__slots-hint { top: 0; }

    .lg3__clients { padding-bottom: var(--s-6); }
    .lg3__clients .lg3__marquee-outer,
    .lg3__clients .lg3__clients-label { max-width: none; }

    /* legal block set off by a faint rule */
    .lg3__footer {
        border-top: 1px solid var(--border);
        padding-top: var(--s-4);
    }
}

@media (max-width: 640px) {
    .lg3__logo-text { display: none; }

    .lg3__nav-tg,
    .lg3__nav-sep,
    .lg3__nav-phone { display: none; }

    .lg3__nav-mobile { display: flex; gap: var(--s-2); }

    .lg3__nav-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid var(--border-strong);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* source PNGs are dark artwork — force white so both read on dark */
    .lg3__nav-ico-img {
        width: 17px;
        height: 17px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        filter: brightness(0) invert(1);
    }

    /* no frame, and the dot sits against the first word, not the block */
    .lg3__eyebrow {
        border: none;
        padding: 0;
        align-items: flex-start;
        gap: 10px;
        color: var(--text-dim);
    }

    .lg3__eyebrow-dot {
        margin-top: 7px;
    }

    .lg3__bullets { grid-template-columns: 1fr; gap: var(--s-4); }

    .lg3__cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: var(--s-5);
        margin-bottom: var(--s-7);
    }

    .lg3__slider-wrap { width: 100%; height: 72px; }

    .lg3__slider-knob { width: 56px; height: 56px; }

    .lg3__slider-track { clip-path: inset(0 calc(100% - 56px) 0 0 round 100px); }

    .lg3__slider-label {
        padding-left: 68px;
        padding-right: var(--s-3);
        letter-spacing: 0.08em;
    }

    .lg3__photo-edge { height: 46vh; min-height: 330px; }

    .lg3__photo-caption { max-width: 44%; }

    .lg3__slots-num { font-size: 40px; }
}
