* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

:root {
    /* Type: 3 sizes — display (Impact), subdisplay (Impact), body (Arial) */
    --type-display: 120px;
    --type-subdisplay: 60px;
    --type-body: 14px;
    --pricing-gap: 20px;
    --brand-ink: #121212;
    --page-gutter: 40px;
    --bg-hiw: #ff0000;
    --bg-pricing: #8affa9;
    --divider-line: 0.5px;
    --work-carousel-gap: 96px;
    --work-slide-width: min(280px, 42vw);
}

body {
    /* Same as --brand-ink: default canvas; pricing + footer bands use --bg-pricing */
    background-color: var(--brand-ink);
    font-family: 'Arial Bold', 'Arial', sans-serif;
    font-size: var(--type-body);
    font-weight: bold;
    color: var(--brand-ink);
    min-height: 100vh;
    position: relative;
}

.container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--page-gutter);
    padding-bottom: 0;
}

/* Full-bleed section bands (offset .container horizontal padding) */
.page-band--hero {
    background-color: var(--brand-ink);
    color: #ffffff;
    margin: calc(-1 * var(--page-gutter)) calc(-1 * var(--page-gutter)) 0 calc(-1 * var(--page-gutter));
    padding: var(--page-gutter) var(--page-gutter) 0 var(--page-gutter);
}

.page-band--hero .ruok,
.page-band--hero .okay-brand,
.page-band--hero .human-design,
.page-band--hero .email {
    color: #ffffff;
}

.page-band--hero .brand-line {
    background-color: #ffffff;
}

.page-section--hiw {
    background-color: var(--bg-hiw);
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
}

/* Top Section */
.top-section {
    position: relative;
    width: 100%;
    padding-top: 0;
}

.top-section-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
}

.ruok {
    text-align: left;
    font-size: var(--type-body);
    line-height: 1;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--brand-ink);
    font-family: 'Arial Bold', 'Arial', sans-serif;
}

a.ruok-link {
    text-decoration: none;
    color: inherit;
}

a.ruok-link:hover {
    opacity: 1.0;
}

.brand-line {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: var(--divider-line);
    background-color: var(--brand-ink);
    margin-top: 0;
    margin-bottom: 0;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    position: relative;
    padding-bottom: 160px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    min-width: 0;
}

.okay-brand {
    font-size: var(--type-display);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--brand-ink);
    font-family: 'Impact', 'Arial Bold', sans-serif;
    line-height: 0.9;
    margin-bottom: 0;
}

.okay-brand__br-mobile {
    display: none;
}

@media (max-width: 768px) {
    .okay-brand__br-mobile {
        display: inline;
    }
}

.sub-content {
    margin-left: 4px;
}

.human-design {
    font-size: var(--type-body);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--brand-ink);
    font-family: 'Arial Bold', 'Arial', sans-serif;
    margin-bottom: 16px;
}

/* Hero: flex avoids collapse OKAY BRAND → line (60px gap); line → nav matches 16px rhythm */
.main-content > .sub-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.main-content > .sub-content > .human-design {
    margin-bottom: 0;
}

.main-content > .sub-content > .anchor-nav-row {
    margin-top: 60px;
}

.email {
    font-size: var(--type-body);
    color: var(--brand-ink);
    text-decoration: underline;
    font-family: 'Arial Bold', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
}

.email:hover {
    opacity: 1.0;
}

.email-cta {
    text-transform: none;
}

.sub-content .email + .email {
    margin-top: 16px;
}

.anchor-nav-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
    margin-bottom: 0;
    /* padding avoids margin collapse with block .email children eating the gap above OKAY, GO */
    padding-bottom: 16px;
}

.anchor-nav-row .email + .email {
    margin-top: 16px;
}

.page-section {
    padding: 160px 0;
}

/* Must follow .page-section: its padding shorthand would otherwise clear side padding */
.page-section.page-section--hiw {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

.page-section.page-section--work {
    background-color: var(--brand-ink);
    color: #ffffff;
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

.page-section--work .pricing-main {
    margin-top: 0;
    max-width: none;
    width: 100%;
}

.page-section--work .sub-content {
    color: #ffffff;
}

.page-section--work .pricing-title {
    color: #ffffff;
}

.work-carousel {
    width: 100%;
}

.work-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

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

.work-carousel__viewport:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 4px;
}

.work-carousel__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: var(--work-carousel-gap);
    width: max-content;
    padding-bottom: 4px;
    box-sizing: border-box;
}

.work-slide {
    flex: 0 0 var(--work-slide-width);
    width: var(--work-slide-width);
    max-width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.work-slide__card {
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: transparent;
}

.work-slide__frame {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 100%;
    border: none;
    border-bottom: var(--divider-line) solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    box-sizing: border-box;
}

.work-slide__logo {
    display: block;
    width: min(55%, 140px);
    max-width: 100%;
    height: auto;
    max-height: 50%;
    margin: 0 auto;
    object-fit: contain;
    opacity: 1.0;
}

.work-slide__copy {
    padding: 12px;
    text-align: left;
    box-sizing: border-box;
}

.work-slide__copy p {
    margin: 0;
}

.work-slide__name {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--type-body);
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
}

.work-slide__scope,
.work-slide__year {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: var(--type-body);
    font-weight: 400;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.work-slide__scope {
    margin-top: 8px;
}

.work-slide__year {
    margin-top: 4px;
}

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

@media (min-width: 900px) {
    :root {
        --work-slide-width: 280px;
    }
}

@media (max-width: 520px) {
    :root {
        --work-slide-width: min(240px, 78vw);
    }
}

#pricing,
#how-it-works,
#selected-work {
    scroll-margin-top: 48px;
}

.page-section > .pricing-main {
    margin-top: 0;
}

.page-section--pre-footer {
    background-color: var(--bg-pricing);
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    padding-bottom: 152px;
}

.site-footer {
    margin-top: auto;
    flex-shrink: 0;
    background-color: var(--bg-pricing);
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    padding-bottom: var(--page-gutter);
}

.site-footer .bottom-section {
    margin-top: 16px;
}

/* Bottom Section */
.bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.brand-mark {
    display: block;
    flex-shrink: 0;
    width: auto;
    height: auto;
    max-width: min(200px, 45vw);
    object-fit: contain;
    /* Cap-height scaled to match perceived type (same font metrics as .ruok). */
    font-family: 'Arial Bold', 'Arial', sans-serif;
    font-weight: bold;
    font-size: var(--type-body);
    max-height: calc(var(--type-body) * 0.925);
    max-height: calc(1cap * 1.186);
    transform: translateY(-3px);
}

.brand-mark--header {
    max-width: min(600px, 85vw);
    max-height: calc(var(--type-body) * 0.925 * 3.3);
    max-height: calc(1cap * 1.186 * 3.3);
}

.copyright {
    font-size: var(--type-body);
    line-height: 1;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--brand-ink);
    font-family: 'Arial Bold', 'Arial', sans-serif;
    text-align: right;
}

.back-to-top {
    position: fixed;
    /* Clear in-flow footer (line + logo row) */
    bottom: max(72px, calc(env(safe-area-inset-bottom, 0px) + 56px));
    right: max(32px, calc(env(safe-area-inset-right, 0px) + 20px));
    z-index: 100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 14px;
    appearance: none;
    background-color: var(--brand-ink);
    border: 2px solid var(--brand-ink);
    cursor: pointer;
    touch-action: manipulation;
    font-family: 'Arial Bold', 'Arial', sans-serif;
    font-size: var(--type-body);
    font-weight: bold;
    letter-spacing: 0.06em;
    text-align: right;
    line-height: 1.15;
    text-transform: uppercase;
    color: #F0F0F0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top.is-visible:hover {
    opacity: 0.88;
}

.back-to-top:focus-visible {
    outline: 2px solid #F0F0F0;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

/* Pricing / how-it-works column */
.pricing-main {
    flex: 1 1 auto;
    margin-top: 80px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1080px;
    margin-left: 0;
    margin-right: auto;
    position: relative;
}

.pricing-title {
    font-family: 'Impact', 'Arial Bold', sans-serif;
    font-size: var(--type-display);
    font-weight: bold;
    text-transform: uppercase;
    line-height: 0.9;
    color: var(--brand-ink);
    margin-bottom: 60px;
}

.pricing-lede {
    font-size: var(--type-body);
    line-height: 1.35;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--brand-ink);
    max-width: 36em;
}

/* How it works */
.hiw-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hiw-step {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: clamp(10px, 1.5vw, 20px);
    padding: 28px 0;
    border-bottom: none;
    position: relative;
}

.hiw-step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc(-1 * (var(--page-gutter) + 4px));
    width: 100vw;
    height: var(--divider-line);
    background-color: var(--brand-ink);
}

.hiw-step:first-child {
    padding-top: 0;
}

.hiw-step:last-child {
    padding-bottom: 0;
}

.hiw-step__num {
    flex: 0 0 auto;
    flex-shrink: 0;
    font-family: 'Impact', 'Arial Bold', sans-serif;
    font-size: var(--type-subdisplay);
    font-weight: bold;
    line-height: 1;
    color: var(--brand-ink);
    text-transform: uppercase;
    /* Tight column: ~two digit widths at this display size (2.5em was 2.5× font-size → massive gap) */
    min-width: 1.35em;
    text-align: left;
    font-variant-numeric: tabular-nums;
    /* Impact sits low in the line box; nudge so baseline alignment matches the heading */
    padding-top: 0.1em;
}

.hiw-step__body {
    flex: 1;
    min-width: 0;
}

.hiw-step .human-design {
    margin-top: 0;
    margin-bottom: 12px;
    font-family: 'Impact', 'Arial Bold', sans-serif;
    font-size: var(--type-subdisplay);
    font-weight: bold;
    line-height: 1;
    text-transform: uppercase;
}

.hiw-step__link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.hiw-step__link:hover {
    opacity: 0.85;
}

.hiw-step__link:focus-visible {
    outline: 2px solid var(--brand-ink);
    outline-offset: 3px;
}

.hiw-step .pricing-card__tagline {
    margin-bottom: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    align-items: stretch;
}

.pricing-grid > .pricing-card {
    background-color: transparent;
    border: none;
    border-right: var(--divider-line) solid var(--brand-ink);
    padding: 28px 0 32px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.pricing-grid > .pricing-card:nth-child(3n) {
    border-right: none;
}

/* Space around vertical rules: inset from line on both sides without doubling total gap */
@media (min-width: 961px) {
    .pricing-grid > .pricing-card:nth-child(1),
    .pricing-grid > .pricing-card:nth-child(2) {
        padding-right: 12px;
    }

    .pricing-grid > .pricing-card:nth-child(2),
    .pricing-grid > .pricing-card:nth-child(3) {
        padding-left: 12px;
    }
}

.pricing-card__badge {
    font-size: var(--type-body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-ink);
    margin-bottom: 12px;
}

.pricing-card__name {
    font-family: 'Impact', 'Arial Bold', sans-serif;
    font-size: var(--type-subdisplay);
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1;
    color: var(--brand-ink);
    margin-bottom: 8px;
}

.pricing-card__range-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2em;
    margin-bottom: 24px;
}

.pricing-card__range-row .pricing-card__range {
    margin-bottom: 0;
}

.pricing-card__range {
    font-family: 'Impact', 'Arial Bold', sans-serif;
    font-size: var(--type-subdisplay);
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1;
    color: var(--brand-ink);
    margin-bottom: 24px;
}

.pricing-card__range--was {
    display: none;
}

.pricing-card__range--was::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 0.24em;
    transform: translateY(-50%) rotate(-6deg);
    transform-origin: center center;
    background: var(--brand-ink);
    pointer-events: none;
}

.pricing-card__tagline {
    font-size: var(--type-body);
    font-weight: bold;
    line-height: 1.4;
    color: var(--brand-ink);
    opacity: 1.0;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.pricing-card__list {
    list-style: none;
    margin-bottom: 28px;
    flex-grow: 1;
}

.pricing-card__list li {
    font-size: var(--type-body);
    font-weight: bold;
    line-height: 1.45;
    color: var(--brand-ink);
    padding-left: 1.1em;
    position: relative;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pricing-card__list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--brand-ink);
}

.pricing-card__cta {
    display: block;
    width: 100%;
    text-align: right;
    text-decoration: none;
    text-transform: uppercase;
    font-size: var(--type-body);
    font-weight: bold;
    font-family: 'Arial Bold', 'Arial', sans-serif;
    color: #f0f0f0;
    background-color: var(--brand-ink);
    padding: 14px 20px;
    border: 0px solid var(--brand-ink);
}

.pricing-card__cta:hover {
    opacity: 1.0;
}

.addons {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    max-width: 100%;
    border: none;
    position: relative;
    padding-top: 28px;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

.addons::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(-1 * (var(--page-gutter) + 4px));
    width: 100vw;
    height: var(--divider-line);
    background-color: var(--brand-ink);
}

.pricing-card__name--addons {
    font-size: var(--type-subdisplay);
}

.addons .pricing-card__list {
    margin-bottom: 12px;
}

.addons .pricing-card__list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 16px;
}

.addons .pricing-card__list li:last-child {
    margin-bottom: 0;
}

.addon-item__title {
    font-size: var(--type-body);
    font-weight: bold;
    line-height: 1.45;
    color: var(--brand-ink);
    text-transform: uppercase;
}

.addon-item__desc {
    font-size: var(--type-body);
    font-weight: bold;
    line-height: 1.5;
    color: var(--brand-ink);
    text-transform: uppercase;
    padding-left: 0;
    width: 100%;
}

.addons__note {
    margin-top: 8px;
    margin-bottom: 0;
}

.pricing-note {
    margin-top: 28px;
    padding-top: 28px;
    border-top: none;
    position: relative;
    font-size: var(--type-body);
    font-weight: bold;
    line-height: 1.45;
    text-transform: uppercase;
    color: var(--brand-ink);
    max-width: 40em;
}

.pricing-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(-1 * (var(--page-gutter) + 4px));
    width: 100vw;
    height: var(--divider-line);
    background-color: var(--brand-ink);
}

.pricing-note a {
    color: var(--brand-ink);
    text-decoration: underline;
}

.pricing-note a:hover {
    opacity: 1.0;
}

@media (max-width: 960px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid > .pricing-card {
        border-right: none;
        border-bottom: none;
        position: relative;
        padding-bottom: 32px;
    }

    .pricing-grid > .pricing-card:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: calc(-1 * (var(--page-gutter) + 4px));
        width: 100vw;
        height: var(--divider-line);
        background-color: var(--brand-ink);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --type-display: 100px;
        --page-gutter: 20px;
    }

    .page-section {
        padding: 120px 0;
    }

    .page-section.page-section--hiw {
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }

    .page-section.page-section--work {
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }

    .page-section--pre-footer {
        padding-bottom: 120px;
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }

    .hiw-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 24px 0;
    }

    .hiw-step__num {
        line-height: 1;
        min-width: 0;
        padding-top: 0;
        text-align: left;
    }
    
    .back-to-top {
        bottom: max(64px, calc(env(safe-area-inset-bottom, 0px) + 48px));
        right: max(20px, calc(env(safe-area-inset-right, 0px) + 16px));
    }
}

@media (max-width: 480px) {
    :root {
        --type-display: 80px;
    }
}