@import url('https://fonts.googleapis.com/css2?family=Geologica:slnt,wght,CRSV@-12..0,100..900,0&display=swap');

:root {
    --primary: #D8413A;
    --secondary: #EE6B5E;

    --highlight: #BFCAC8;
    --disabled: #49505c;

    --surface: #F1E8D4;
    --ink: #1B2433;
    --border: rgba(27, 36, 51, 0.16);

    /* Shared by the header bar and hero text so their edges line up */
    --content-max: 980px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Sticky footer: main fills the space above the footer (the header floats
   over the hero, so it takes no row) */
body {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    /* Lets full-bleed sections use 100vw without a horizontal scrollbar */
    overflow-x: clip;
    background: var(--surface);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

main,
footer {
    padding: 1rem;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

main {
    width: 100%;
    max-width: 60rem;
    margin-inline: auto;
}

/* Header: translucent pill floating over the top of the hero art */
.site-header {
    position: absolute;
    top: 0;
    inset-inline: 0;
    z-index: 2;
    max-width: var(--content-max);
    margin-inline: auto;
    padding: 1rem;
    font-family: "Geologica", system-ui, sans-serif;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(241, 232, 212, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.site-header__brand:hover,
.site-header__brand:focus-visible {
    color: var(--ink);
}

.site-header__logo {
    flex: none;
    color: var(--ink);
    width: 3rem;
    height: 3rem;
}

.site-header__name {
    display: block;
    font-size: clamp(1rem, 2.2vw, 1.375rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.site-header__tagline {
    display: block;
    margin-block-start: 0.125rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    opacity: 0.75;
    text-transform: uppercase;
}

.site-header__cta {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.75em;
    padding: 0.875rem 1.5rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
    background: #B8342E;
    color: #fff;
}

.site-header__arrow {
    width: 1em;
    height: 1em;
        transform: rotate(-45deg);
}

@media (max-width: 40rem) {
    .site-header__bar {
        gap: 0.5rem;
        padding-inline-start: 0.5rem;
    }

    .site-header__logo {
        width: 2.5rem;
        height: 2.5rem;
    }

    .site-header__name {
        font-size: 0.875rem;
    }

    .site-header__tagline {
        display: none;
    }

    .site-header__cta {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 24rem) {
    .site-header__arrow {
        display: none;
    }
}

footer {
   
    font-size: 0.875rem;
    text-align: center;
}

a {
    color: var(--primary);
}

a:hover,
a:focus-visible {
    color: var(--secondary);
}

h1,
h2,
h3 {
    line-height: 1.2;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Hero: full-bleed stack of SVG layers, all bottom-aligned to the horizon */
.hero {
    /* Art is drawn at 1440x1000 and scaled to cover the viewport: wide screens
       crop the sky off the top, tall screens crop the sides */
    --art-width: max(100vw, 100svh * 1440 / 1000);

    position: relative;
    height: 100vh;
    height: 100svh;
    margin-block-start: -1rem;
    margin-inline: calc(50% - 50vw);
    overflow: hidden;
}

.hero__art {
    position: absolute;
    inset: 0;
}

.hero__text {
    position: relative;
    z-index: 1;
    max-width: var(--content-max);
    margin-inline: auto;
    /* 6rem clears the floating header */
    padding: calc(12rem + clamp(1.5rem, 6svh, 4rem)) 1rem 0;
    font-family: "Geologica", system-ui, sans-serif;
    text-align: center;
}

.hero__text h1 {
    margin: 0;
    font-size: clamp(2rem, 10.5vw, 7rem);
    font-style: oblique 12deg;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0.045em 0.045em 0 var(--primary);
    
}

.hero__text div {
    max-width: 34em;
    margin: 1.75rem auto 0;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    text-wrap: balance;
    /* Soft halo lifts the copy off the busy rocket trails behind it */
padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(241, 232, 212, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

/* App preview cards: three across, a swipeable row on narrow screens since
   the hero is clipped to the viewport height */
.app-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 48rem;
    margin: 2rem auto 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.app-card {
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 0.75rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(241, 232, 212, 0.7);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.app-card__icon {
    grid-area: 1 / 1 / 3 / 2;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
}

.app-card__title {
    grid-area: 1 / 2;
    align-self: end;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.app-card__link {
    grid-area: 2 / 2;
    align-self: start;
    font-size: 0.8125rem;
}

span.app-card__link {
    color: var(--disabled);
    font-style: italic;
}

.app-card__desc {
    grid-area: 3 / 1 / 4 / -1;
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

@media (max-width: 40rem) {
    .app-cards {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 80%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .app-card {
        scroll-snap-align: center;
    }
}

.hero__layer {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: var(--art-width);
    max-width: none;
    translate: -50% calc(var(--hero-scroll, 0) * var(--parallax-speed, 0) * 1px);
}

/* Positive speeds sink behind the page as it scrolls; negative speeds rise */
.hero__layer--sunrise,
.hero__layer--rockets {
    will-change: translate;
}

.hero__layer--sunrise {
    --parallax-speed: 0.3;
}

.hero__layer--rockets {
    --parallax-speed: -0.1;
}

/* Header CTA is a <button> that opens the contact drawer */
button.site-header__cta {
    border: 0;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

/* Contact drawer: slides down from the top */
.contact-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    font-family: "Geologica", system-ui, sans-serif;
}

.contact-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(27, 36, 51, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.contact-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    padding: 4rem 0 3rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    visibility: hidden;
}

.contact-drawer.is-open {
    pointer-events: auto;
}

.contact-drawer.is-open .contact-drawer-backdrop {
    opacity: 1;
}

.contact-drawer.is-open .contact-drawer-panel {
    transform: translateY(0);
    visibility: visible;
}

.contact-drawer-inner {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-drawer-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.contact-drawer-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

body.drawer-open {
    overflow: hidden;
}

.form h3 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.form p {
    margin: 0 0 1.25rem;
}

.form .honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}

.field label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field input,
.field textarea {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--ink);
    font: inherit;
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.field textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.field input:hover,
.field textarea:hover {
    border-color: var(--secondary);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form .btn {
    padding: 0.875rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.form .btn:hover,
.form .btn:focus-visible {
    background: #B8342E;
}

.form .btn:active {
    transform: scale(0.96);
}

.form .btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* Toast */
.toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--ink);
    color: var(--surface);
    font-size: 0.875rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -1rem);
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

.toast.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.toast.is-success {
    border-color: var(--highlight);
}

.toast.is-error {
    border-color: var(--primary);
}

.toast-close {
    margin-left: 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}

.toast-close:hover,
.toast-close:focus-visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .contact-drawer-backdrop,
    .contact-drawer-panel,
    .toast {
        transition-duration: 0.01ms;
    }
}
