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

:root {
    --purple: #7c3aed;
    --blue: #1d4ed8;
    --cyan: #0e7490;
    --pink: #be185d;
    --green: #065f46;
    --ink: #0f172a;
    --ink-2: #334155;
    --ink-3: #64748b;
    --paper: #f0e8d8
}

html,
body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif
}

body {
    background-color: #252525;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E"), linear-gradient(160deg, #2e2e2e 0%, #1e1e1e 40%, #262626 70%, #1a1a1a 100%);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start
}

.blueprint {
    width: 100%;
    max-width: 1180px;
    background: #0b2058;
    background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .5), 0 12px 40px rgba(0, 0, 0, .55), 0 40px 80px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
    padding: 28px 32px 32px;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s;
    display: flex;
    flex-direction: column;
}

.blueprint-expanded {
    max-width: 100%;
    padding: 40px 48px;
    min-height: calc(100vh - 96px)
}

.blueprint-expanded .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.blueprint-expanded .card {
    font-size: 1.15em
}

.blueprint-expanded .card__body {
    padding: 24px 28px 28px;
    gap: 12px
}

.blueprint-expanded .card__title {
    font-size: 1.15rem
}

.blueprint-expanded .card__desc {
    font-size: .85rem
}

.bp-titleblock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 2px;
    padding: 12px 20px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, .03)
}

.bp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none
}

.bp-logo-star {
    font-size: 1.1rem;
    color: #93c5fd
}

.bp-logo-name {
    font-size: 1rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .9);
    letter-spacing: .05em
}

.bp-title-center {
    text-align: center
}

.bp-title-main {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(147, 197, 253, .85)
}

.bp-title-sub {
    display: block;
    font-size: .55rem;
    color: rgba(255, 255, 255, .35);
    letter-spacing: .12em;
    margin-top: 2px
}

.bp-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bp-ref-block {
    text-align: right;
    font-size: .55rem;
    color: rgba(255, 255, 255, .3);
    letter-spacing: .1em;
    line-height: 1.8
}

.bp-resize-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .6);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s
}

.bp-resize-btn:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    transition: gap 0.4s;
    flex: 1;
    align-content: center;
}

.bp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .07)
}

.bp-footer-ref {
    font-size: .52rem;
    color: rgba(147, 197, 253, .3);
    letter-spacing: .15em;
    text-transform: uppercase
}

.bp-scale {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .52rem;
    color: rgba(255, 255, 255, .25);
    letter-spacing: .1em
}

.bp-scale-line {
    width: 48px;
    height: 6px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: linear-gradient(90deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .2) 50%, transparent 50%, transparent 100%)
}

.card {
    background: var(--paper);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .35);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s;
    transform-origin: center bottom
}

.card:nth-child(1) {
    transform: rotate(-.8deg)
}

.card:nth-child(2) {
    transform: rotate(.4deg)
}

.card:nth-child(3) {
    transform: rotate(-.6deg)
}

.card:nth-child(4) {
    transform: rotate(.9deg)
}

.card:nth-child(5) {
    transform: rotate(-.3deg)
}

.card:nth-child(6) {
    transform: rotate(.6deg)
}

.card:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.025) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .45), 0 18px 40px rgba(0, 0, 0, .4);
    z-index: 2
}

.card__stripe {
    height: 5px;
    background: var(--purple);
    flex-shrink: 0
}

.card--blue .card__stripe {
    background: var(--blue)
}

.card--cyan .card__stripe {
    background: var(--cyan)
}

.card--pink .card__stripe {
    background: var(--pink)
}

.card--green .card__stripe {
    background: var(--green)
}

.card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1
}

.card__dept {
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--purple);
    opacity: .75
}

.card--blue .card__dept {
    color: var(--blue)
}

.card--cyan .card__dept {
    color: var(--cyan)
}

.card--pink .card__dept {
    color: var(--pink)
}

.card--green .card__dept {
    color: var(--green)
}

.card__title {
    font-size: .95rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25
}

.card__slots {
    display: inline-flex;
    align-self: flex-start;
    font-size: .6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, .3);
    background: rgba(124, 58, 237, .08);
    color: var(--purple)
}

.card--blue .card__slots {
    border-color: rgba(29, 78, 216, .3);
    background: rgba(29, 78, 216, .08);
    color: var(--blue)
}

.card--cyan .card__slots {
    border-color: rgba(14, 116, 144, .3);
    background: rgba(14, 116, 144, .08);
    color: var(--cyan)
}

.card--pink .card__slots {
    border-color: rgba(190, 24, 93, .3);
    background: rgba(190, 24, 93, .08);
    color: var(--pink)
}

.card--green .card__slots {
    border-color: rgba(6, 95, 70, .3);
    background: rgba(6, 95, 70, .08);
    color: var(--green)
}

.card__desc {
    font-size: .72rem;
    color: var(--ink-3);
    line-height: 1.55
}

.card__cta {
    margin-top: auto;
    font-size: .7rem;
    font-weight: 700;
    color: rgba(124, 58, 237, 0);
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0);
    transition: color .2s, border-color .2s
}

.card--blue .card__cta {
    color: rgba(29, 78, 216, 0)
}

.card--cyan .card__cta {
    color: rgba(14, 116, 144, 0)
}

.card--pink .card__cta {
    color: rgba(190, 24, 93, 0)
}

.card--green .card__cta {
    color: rgba(6, 95, 70, 0)
}

.card:hover .card__cta {
    color: var(--purple) !important;
    border-color: rgba(124, 58, 237, .15) !important
}

.card--blue:hover .card__cta {
    color: var(--blue) !important;
    border-color: rgba(29, 78, 216, .15) !important
}

.card--cyan:hover .card__cta {
    color: var(--cyan) !important;
    border-color: rgba(14, 116, 144, .15) !important
}

.card--pink:hover .card__cta {
    color: var(--pink) !important;
    border-color: rgba(190, 24, 93, .15) !important
}

.card--green:hover .card__cta {
    color: var(--green) !important;
    border-color: rgba(6, 95, 70, .15) !important
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, .1) 50%)
}

.form-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 20px
}

.form-overlay-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .4s;
    pointer-events: none
}

.form-overlay.open .form-overlay-bg {
    background: rgba(0, 0, 0, .6);
    pointer-events: all
}

.form-sheet {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    overflow-y: auto;
    background: #faf7f0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, .4);
    transform: translateY(100%);
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    pointer-events: all;
    z-index: 1;
    padding: 0 0 40px
}

.form-overlay.open .form-sheet {
    transform: translateY(0)
}

.form-sheet__handle {
    display: flex;
    justify-content: center;
    padding: 14px 0 10px
}

.form-sheet__handle::after {
    content: '';
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, .15)
}

.form-sheet__header {
    padding: 0 36px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    margin-bottom: 28px
}

.form-sheet__pre {
    display: block;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 6px
}

.form-sheet__title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-bottom: 8px
}

.form-sheet__slots {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(124, 58, 237, .1);
    border: 1px solid rgba(124, 58, 237, .25);
    color: var(--purple)
}

.form-body {
    padding: 0 36px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.form-group label {
    font-size: .74rem;
    font-weight: 600;
    color: var(--ink-2)
}

.form-hint {
    font-weight: 400;
    color: var(--ink-3)
}

.form-group input,
.form-group textarea {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--ink);
    font-family: 'Poppins', sans-serif;
    font-size: .86rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    resize: none
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, .25)
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(124, 58, 237, .5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .1)
}

.submit-btn {
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    background: var(--purple);
    border: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    margin-top: 4px
}

.submit-btn:hover:not(:disabled) {
    opacity: .88;
    transform: translateY(-1px)
}

.submit-btn:disabled {
    opacity: .5;
    cursor: not-allowed
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--ink-3);
    font-family: 'Poppins', sans-serif;
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0 36px 20px;
    transition: color .2s
}

.back-btn:hover {
    color: var(--ink)
}

.form-success {
    text-align: center;
    padding: 48px 36px
}

.form-success__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px
}

.form-success h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 8px
}

.form-success p {
    font-size: .84rem;
    color: var(--ink-3);
    line-height: 1.65;
    margin-bottom: 28px
}

.back-btn-inline {
    background: var(--purple);
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 10px 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: .84rem;
    cursor: pointer;
    transition: opacity .2s
}

.back-btn-inline:hover {
    opacity: .85
}

@media(max-width:900px) {
    body {
        padding: 28px 16px
    }

    .blueprint-expanded {
        padding: 28px 16px;
        min-height: calc(100vh - 56px)
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .bp-title-center {
        display: none
    }
}

@media(max-width:580px) {
    body {
        padding: 16px 8px
    }

    .blueprint {
        padding: 16px 14px 20px
    }

    .blueprint-expanded {
        padding: 16px 8px;
        min-height: calc(100vh - 32px)
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .bp-controls {
        display: none
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .form-sheet__header,
    .form-body,
    .back-btn {
        padding-left: 24px;
        padding-right: 24px
    }
}