/* =============================================================================
   Routeless premium editorial layer
   -----------------------------------------------------------------------------
   Deliberately quiet everywhere except the homepage route moment. This file
   sits after the existing component and motion layers so the migration can be
   reviewed page-by-page without destabilizing functional forms and reports.
   ============================================================================= */

:root {
    --v2-paper: #f4f3f6;
    --v2-card: #fefdfe;
    --v2-wash: #ece9f1;
    --v2-line: #d8d3df;
    --v2-line-strong: #c5bfce;
    --v2-muted: #625c69;
    --v2-container: 1240px;
    --v2-gutter: clamp(1.25rem, 4vw, 4.5rem);
    --v2-section-y: clamp(5.75rem, 9vw, 9rem);
    --v2-radius: 8px;
    --v2-radius-lg: 12px;
}

html {
    scroll-behavior: smooth;
}

body.v2 {
    font-size: 1.0625rem;
    line-height: 1.68;
    background: var(--v2-paper);
}

/* ---- Global chrome ---------------------------------------------------- */

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: var(--v2-card);
    color: var(--v2-ink);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(calc(-100% - 1rem));
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.nav {
    background: rgba(23, 19, 31, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    backdrop-filter: blur(18px) saturate(120%);
}

.nav-container {
    max-width: var(--v2-container);
    padding-inline: var(--v2-gutter);
}

.nav-logo-img {
    height: 48px;
    max-width: 210px;
}

.nav-links {
    gap: clamp(1.35rem, 2.4vw, 2.5rem);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    opacity: 0.96;
    transition: opacity 180ms ease, color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    opacity: 1;
}

.nav-cta,
.nav-link.nav-cta {
    min-height: 42px;
    padding-inline: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    opacity: 1;
}

/* ---- Type and spacing ------------------------------------------------- */

.r-eyebrow,
.r-hero-eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.19em;
}

.r-title {
    max-width: 18em;
    font-size: clamp(2.45rem, 4.6vw, 4.35rem);
    line-height: 1.01;
    letter-spacing: -0.045em;
    margin-bottom: 1.5rem;
}

.r-lede {
    max-width: 37em;
    font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
    line-height: 1.6;
}

body.v2 .r-section {
    position: relative;
    padding-block: var(--v2-section-y);
}

body.v2 .r-section + .r-section {
    border-top: 1px solid color-mix(in srgb, var(--v2-line) 72%, transparent);
}

body.v2 .r-section--first {
    padding-top: clamp(4.5rem, 7vw, 7rem);
}

.r-shell {
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--v2-container);
}

.r-rail {
    display: none;
}

.r-content {
    width: 100%;
}

.r-content > p:not(.r-lede),
.faq-answer p {
    max-width: 44em;
}

/* ---- Buttons ---------------------------------------------------------- */

a.r-btn,
.r-btn {
    min-height: 48px;
    padding: 0.9rem 1.35rem;
    border-radius: 7px;
    letter-spacing: -0.012em;
    transition:
        transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.r-btn:hover {
    transform: translateY(-1px);
}

.r-btn:active {
    transform: translateY(0);
}

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

body.v2 .r-hero {
    min-height: 0;
    padding-top: calc(var(--nav-height) + clamp(4rem, 8vw, 7rem));
    padding-bottom: clamp(4.75rem, 9vw, 8rem);
}

body.v2 .r-hero--home {
    min-height: clamp(640px, 76svh, 780px);
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    padding-bottom: 0;
}

.r-hero--home .r-shell {
    width: 100%;
    padding-bottom: clamp(3rem, 7vh, 5.5rem);
}

.r-hero-kicker {
    display: block;
    margin-bottom: 1.6rem;
    font-family: var(--v2-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d7d0e4;
}

.r-hero--home .r-hero-title {
    max-width: 10.5em;
    font-size: clamp(4rem, 8vw, 7.25rem);
    line-height: 0.91;
    letter-spacing: -0.062em;
    margin-bottom: 2rem;
}

.r-hero--home .r-hero-sub {
    max-width: 31em;
    font-size: clamp(1.15rem, 1.55vw, 1.4rem);
    line-height: 1.55;
    margin-bottom: 2rem;
    color: #d7d0df;
}

.r-hero-price-note {
    margin: 1rem 0 0;
    font-family: var(--v2-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--v2-ink-muted);
}

.r-hero--home .r-hero-price-note {
    color: #c8c1d0;
}

.r-hero-title em {
    color: var(--v2-violet-bright);
}

body.v2 .r-hero--doc {
    padding-top: calc(var(--nav-height) + clamp(3.5rem, 6vw, 5.5rem));
    padding-bottom: clamp(3.75rem, 6vw, 5.5rem);
}

.r-hero--doc .r-hero-title {
    max-width: 20em;
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    line-height: 0.97;
    letter-spacing: -0.052em;
}

.r-hero--doc .r-hero-sub {
    max-width: 39em;
    font-size: clamp(1.125rem, 1.4vw, 1.3rem);
}

.r-hero-qualifier {
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--v2-ink-muted);
    font-family: var(--v2-mono);
    font-size: 0.72rem;
}

.r-case-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

body.v2 .r-case-hero-link {
    color: var(--v2-ink-text);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

body.v2 .r-case-hero-link:hover {
    color: var(--v2-ink-text);
    border-bottom-color: var(--v2-violet-soft);
}

/* ---- Proof band ------------------------------------------------------- */

.r-experience {
    padding-inline: var(--v2-gutter);
    background: var(--v2-ink);
}

.r-experience-row {
    max-width: var(--v2-container);
    min-height: 88px;
    margin: 0 auto;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 2.5rem;
}

.r-logo-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.r-logo-marquee-track {
    width: max-content;
    display: flex;
    animation: r-premium-logo-loop 44s linear infinite !important;
}

.r-logo-marquee-set {
    width: max-content;
    display: flex;
    align-items: center;
    gap: clamp(2.5rem, 4vw, 4rem);
    padding-right: clamp(2.5rem, 4vw, 4rem);
}

.r-logo-marquee-set[aria-hidden="true"] {
    display: flex;
}

.r-logo-marquee-set .r-brand-lockup {
    min-width: 0;
    width: 112px;
    flex: 0 0 112px;
    height: 40px;
    overflow: visible;
}

.r-logo-marquee-set .r-brand-lockup img {
    width: 96px;
    max-width: 96px;
    height: auto;
    max-height: 40px;
    transform: none;
}

.r-logo-marquee:hover .r-logo-marquee-track {
    animation-play-state: paused !important;
}

@keyframes r-premium-logo-loop {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .r-logo-marquee-track {
        width: 100%;
        animation: none !important;
        transform: none !important;
    }

    .r-logo-marquee-set {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1rem;
        padding-right: 0;
    }

    .r-logo-marquee-set[aria-hidden="true"] {
        display: none;
    }

    .r-logo-marquee-set .r-brand-lockup {
        width: 100%;
    }
}

/* ---- Editorial grids -------------------------------------------------- */

.r-cap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: clamp(2.75rem, 5vw, 4.5rem);
    border-top: 1px solid var(--v2-line-strong);
}

.r-cap-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: clamp(2.75rem, 5vw, 4.5rem);
    border-top: 1px solid var(--v2-line-strong);
}

.r-cap-grid .r-cap-tile:nth-child(3n) {
    border-right: 0;
}

.r-cap-grid--two .r-cap-tile:nth-child(2n) {
    border-right: 0;
}

.r-cap-tile,
.r-cap-tile:hover {
    min-width: 0;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background: transparent;
    border: 0;
    border-right: 1px solid var(--v2-line);
    border-bottom: 1px solid var(--v2-line);
    border-radius: 0;
}

.r-cap-tile h3 {
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.r-cap-tile--service p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.r-work-tag,
.r-tier-tag {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
}

.r-engagement-summary {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding: clamp(2rem, 4vw, 3rem) 0;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
    border-top: 1px solid var(--v2-line-strong);
    border-bottom: 1px solid var(--v2-line-strong);
}

.r-engagement-summary > span {
    font-family: var(--v2-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--v2-violet);
}

.r-engagement-summary p {
    margin: 0;
    max-width: 43em;
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    line-height: 1.48;
    color: var(--v2-text);
}

.r-engagement-summary a {
    white-space: nowrap;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.r-process-block {
    margin-top: clamp(3.5rem, 7vw, 6rem);
    padding-top: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--v2-line-strong);
}

.r-process-intro {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.r-process-intro .r-eyebrow {
    margin: 0 0 0.45rem;
}

.r-process-intro h3 {
    max-width: 18em;
    margin: 0;
    font-family: var(--v2-display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.r-process-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--v2-line);
    border-bottom: 1px solid var(--v2-line);
}

.r-process-list li {
    min-width: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-right: 1px solid var(--v2-line);
}

.r-process-list li:first-child {
    padding-left: 0;
}

.r-process-list li:last-child {
    padding-right: 0;
    border-right: 0;
}

.r-process-list li > span {
    display: block;
    margin-bottom: 2.25rem;
    font-family: var(--v2-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    color: var(--v2-violet);
}

.r-process-list strong {
    display: block;
    margin-bottom: 0.65rem;
    font-family: var(--v2-display);
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.r-process-list p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--v2-muted);
}

/* ---- Work ------------------------------------------------------------- */

.r-showcase-grid,
.r-showcase-grid--featured {
    gap: clamp(2rem, 4vw, 4rem);
    margin-top: clamp(3rem, 5vw, 4.5rem);
}

.r-showcase-grid--featured {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.r-showcase-grid--featured .r-showcase-card:first-child {
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
}

.r-showcase-grid--featured .r-showcase-card:first-child .r-showcase-media {
    flex: 1;
    min-height: 480px;
    aspect-ratio: auto;
}

.r-showcase-grid--featured .r-showcase-card:not(:first-child) .r-showcase-media {
    aspect-ratio: 16 / 7;
}

.r-showcase-grid--featured .r-showcase-media {
    aspect-ratio: 1.45 / 1;
    border-color: var(--v2-line-strong);
    background: var(--v2-card);
}

.home-page .r-showcase-grid--featured .r-showcase-media {
    padding: clamp(0.8rem, 1.6vw, 1.35rem);
    border: 0;
}

.home-page .r-showcase-card--visamind .r-showcase-media {
    background: #dfe8f6;
}

.home-page .r-showcase-card--buckeye .r-showcase-media {
    background: #dce5df;
}

.home-page .r-showcase-card--analytics .r-showcase-media {
    background: #e7e4ec;
}

.home-page .r-showcase-grid--featured .r-showcase-media img {
    border: 1px solid rgba(23, 19, 31, 0.14);
    border-radius: 6px;
    box-shadow: 0 18px 45px rgba(23, 19, 31, 0.13);
}

.r-showcase-grid--featured .r-showcase-caption {
    padding-top: 1.4rem;
}

.r-showcase-grid--featured .r-showcase-caption strong {
    font-size: 1.45rem;
}

.r-showcase-caption span {
    max-width: 28em;
    text-align: left;
}

.r-showcase-card::before,
.r-showcase-card::after,
.r-project-card::before,
.r-project-card::after {
    background: var(--v2-violet);
}

/* ---- Founder, tiers, FAQ --------------------------------------------- */

.home-page #build,
.home-page #engagements {
    background: transparent;
}

.home-page #one-owner {
    background: var(--v2-wash);
}

.home-page #one-owner .r-founder,
.r-founder--compact {
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    background: transparent;
    border: 1px solid var(--v2-line-strong);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.r-tiers-grid {
    gap: clamp(1.5rem, 3vw, 3rem);
}

.r-tier,
.r-tier--featured {
    padding: 2rem 0 0;
    color: var(--v2-text);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--v2-line-strong);
    border-radius: 0;
}

.r-tier--featured {
    border-top: 3px solid var(--v2-violet);
}

.r-tier--featured .r-tier-tag {
    color: var(--v2-violet);
}

.r-tier--featured .r-tier-tagline,
.r-tier--featured .r-case-points li {
    color: var(--v2-muted);
}

.r-tier--featured ul {
    border-top-color: var(--v2-line);
}

.r-faq-list {
    max-width: 52rem;
}

.faq-item {
    background: transparent;
    border-right: 0;
    border-left: 0;
}

.faq-question {
    min-height: 72px;
}

/* ---- Closing CTA and footer ------------------------------------------ */

body.v2 .r-cta {
    position: relative;
    padding-block: clamp(7rem, 12vw, 11rem);
    overflow: hidden;
}

.r-cta-marker {
    width: 12px;
    height: 12px;
    border-width: 1px;
}

.r-cta-marker::after {
    width: 4px;
    height: 4px;
}

.home-page .r-cta h2 {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.footer {
    padding: clamp(4rem, 8vw, 7rem) 0 2.25rem;
}

.footer .container {
    max-width: var(--v2-container);
    padding-inline: var(--v2-gutter);
}

.footer-grid {
    grid-template-columns: minmax(280px, 1.6fr) repeat(2, minmax(150px, 0.7fr));
    gap: clamp(3rem, 7vw, 7rem);
    margin-bottom: clamp(4rem, 7vw, 6rem);
}

.footer-logo-img {
    height: 42px;
}

.footer-address {
    margin-top: 1.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links a {
    margin-bottom: 0.7rem;
}

.footer-bottom {
    border-top-color: var(--v2-ink-line);
}

/* The cursor trail is the only globally scattered effect. Keep motion focused
   in the route hero, work surfaces, and real process/data interactions. */
.rl-cursor-canvas {
    display: none !important;
}

/* ---- Responsive ------------------------------------------------------- */

@media (max-width: 900px) {
    .r-showcase-grid--featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .r-showcase-grid--featured .r-showcase-card:first-child {
        grid-row: auto;
    }

    .r-showcase-grid--featured .r-showcase-card:first-child .r-showcase-media,
    .r-showcase-grid--featured .r-showcase-card:not(:first-child) .r-showcase-media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .r-cap-grid,
    .r-cap-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .r-cap-grid .r-cap-tile,
    .r-cap-grid--two .r-cap-tile {
        border-right: 1px solid var(--v2-line);
    }

    .r-cap-grid .r-cap-tile:nth-child(2n),
    .r-cap-grid--two .r-cap-tile:nth-child(2n) {
        border-right: 0;
    }

    .r-engagement-summary {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .r-engagement-summary a {
        grid-column: 2;
    }

    .r-process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .r-process-list li:nth-child(2) {
        border-right: 0;
    }

    .r-process-list li:nth-child(-n + 2) {
        border-bottom: 1px solid var(--v2-line);
    }

    .r-process-list li:nth-child(3) {
        padding-left: 0;
    }

    .r-experience-row {
        grid-template-columns: 160px minmax(0, 1fr);
    }

}

@media (max-width: 720px) {
    :root {
        --v2-section-y: clamp(4.75rem, 18vw, 6.5rem);
    }

    .nav-logo-img {
        height: 42px;
        max-width: 184px;
    }

    body.v2 .r-hero--home {
        min-height: 660px;
        align-items: flex-start;
        padding-top: calc(var(--nav-height) + 4.5rem);
    }

    .r-hero--home .r-hero-title {
        font-size: clamp(3.5rem, 16.5vw, 5rem);
        max-width: 8em;
    }

    .r-title,
    .home-page .r-title {
        font-size: clamp(2.35rem, 11.5vw, 3.4rem);
    }

    .r-experience-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-block: 1.5rem;
    }

    .r-brand-lockup {
        width: auto;
    }

    .r-logo-marquee-set .r-brand-lockup {
        width: 96px;
        flex-basis: 96px;
        height: 36px;
    }

    .r-logo-marquee-set .r-brand-lockup img {
        width: 84px;
        max-width: 84px;
        height: auto;
        max-height: 35px;
    }

    .r-cap-grid,
    .r-cap-grid--two {
        grid-template-columns: minmax(0, 1fr);
    }

    .r-cap-grid .r-cap-tile,
    .r-cap-grid--two .r-cap-tile {
        padding-inline: 0;
        border-right: 0;
    }

    .r-engagement-summary {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .r-engagement-summary a {
        grid-column: 1;
    }

    .r-process-intro {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .r-process-list {
        grid-template-columns: 1fr;
    }

    .r-process-list li,
    .r-process-list li:first-child,
    .r-process-list li:nth-child(3),
    .r-process-list li:last-child {
        display: grid;
        grid-template-columns: 2.5rem minmax(0, 1fr);
        gap: 1rem;
        padding: 1.5rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--v2-line);
    }

    .r-process-list li:last-child {
        border-bottom: 0;
    }

    .r-process-list li > span {
        margin: 0.2rem 0 0;
    }

    .r-showcase-caption {
        display: grid;
    }

    .r-showcase-grid--featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .nav-mobile-cta {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

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

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
    .r-logo-marquee-set {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem 1rem;
    }
}
