@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400&family=DM+Sans:wght@400;500&family=Playfair+Display:wght@700&display=swap");

:root {
    --colour-bg: #0d0d0d;
    --colour-text: #f5f0e8;
    --colour-accent: #c8f04a;
    --colour-muted: #888880;
    --colour-button-text: #0d0d0d;
    --divider: 1px solid rgba(255, 255, 255, 0.08);
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "DM Sans", system-ui, sans-serif;
    --font-mono: "DM Mono", ui-monospace, monospace;
    --max-content: 760px;
    --space-section: clamp(4rem, 10vw, 6.5rem);
    --space-inner-inline: clamp(1.25rem, 4vw, 2rem);
    --transition-section: opacity 0.55s ease, transform 0.55s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    background: var(--colour-bg);
    color: var(--colour-text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.page__main {
    padding-bottom: var(--space-section);
}

.page__inner {
    max-width: var(--max-content);
    margin-inline: auto;
    padding-inline: var(--space-inner-inline);
}

.page__divider {
    height: 0;
    border: 0;
    border-top: var(--divider);
    margin: 0;
}

.section {
    padding-block: var(--space-section);
    opacity: 0;
    transform: translateY(18px);
    transition: var(--transition-section);
}

/* Hero fills the viewport: do not use section vertical padding here — it pushes the block toward the lower third */
.hero.section {
    padding-block: 0;
}

.section--visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.section__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 4.5vw, 2.35rem);
    line-height: 1.2;
    margin: 0 0 1.75rem;
    letter-spacing: -0.02em;
}

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

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding-block: max(1rem, env(safe-area-inset-top, 0px)) 0;
    padding-inline: 0;
}

.hero > .page__inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: var(--max-content);
    margin-inline: auto;
    padding-inline: var(--space-inner-inline);
}

.hero__scroll-cue {
    flex-shrink: 0;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    padding: 0.5rem 1rem 1.35rem;
    text-decoration: none;
    color: var(--colour-muted);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.9;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.hero__scroll-cue:hover,
.hero__scroll-cue:focus-visible {
    color: var(--colour-accent);
    opacity: 1;
}

.hero__scroll-cue:focus-visible {
    outline: 2px solid var(--colour-accent);
    outline-offset: 3px;
}

.hero__scroll-cue-mark {
    width: 1px;
    height: 2rem;
    background: linear-gradient(
        to bottom,
        rgba(136, 136, 128, 0.95),
        rgba(136, 136, 128, 0.08)
    );
}

.hero__scroll-cue:hover .hero__scroll-cue-mark,
.hero__scroll-cue:focus-visible .hero__scroll-cue-mark {
    background: linear-gradient(
        to bottom,
        rgba(200, 240, 74, 0.95),
        rgba(200, 240, 74, 0.08)
    );
}

@media (prefers-reduced-motion: reduce) {
    .hero__scroll-cue {
        transition: none;
    }
}

.hero__top {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 1.25rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.hero__top .hero__kicker {
    margin: 0;
}

.hero__kicker {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    font-variant: small-caps;
    color: var(--colour-accent);
    margin: 0 0 1.5rem;
}

.site_phone__link {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: var(--colour-text);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.site_phone__link:hover {
    color: var(--colour-text);
    opacity: 0.9;
}

.site_phone__link:focus-visible {
    outline: 2px solid var(--colour-accent);
    outline-offset: 3px;
    opacity: 1;
}

.site_phone__bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.75rem;
}

@media (max-width: 560px) {
    .hero__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .site_phone__link {
        padding: 0.45rem 0;
        margin-block: -0.45rem;
    }

    .site_phone__bar {
        justify-content: flex-start;
    }

    .site_phone__bar .site_phone__link {
        padding: 0.45rem 0;
        margin-block: -0.45rem;
    }
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.35rem, 6.5vw, 3.35rem);
    line-height: 1.12;
    margin: 0 0 1.5rem;
    color: var(--colour-text);
    letter-spacing: -0.02em;
}

.hero__lede {
    margin: 0 0 2.25rem;
    color: var(--colour-text);
    max-width: 38em;
}

.hero__cta {
    margin: 0;
}

.hero__cta .button {
    padding: 1rem 1.85rem;
    font-size: 1.0625rem;
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.22), 0 6px 20px rgba(200, 240, 74, 0.12);
}

.hero__cta .button:hover {
    filter: brightness(1.06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18), 0 8px 24px rgba(200, 240, 74, 0.18);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    padding: 0.95rem 1.5rem;
    border-radius: 0;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.button--accent {
    background: var(--colour-accent);
    color: var(--colour-button-text);
}

.button--accent:hover {
    filter: brightness(1.05);
}

.button--accent:focus-visible {
    outline: 2px solid var(--colour-accent);
    outline-offset: 3px;
}

.number-block {
    text-align: center;
}

.number-block__heading {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--colour-muted);
    margin: 0 0 1.25rem;
}

.number-block__figure {
    font-family: var(--font-mono);
    font-size: clamp(5rem, 22vw, 11rem);
    line-height: 0.9;
    color: var(--colour-accent);
    margin: 0 0 1.5rem;
}

.number-block__copy {
    margin: 0 auto 1.25rem;
    max-width: 34em;
    color: var(--colour-text);
}

.number-block__equation {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: var(--colour-muted);
    margin: 0;
}

.how-it-works__steps {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.how-it-works__step {
    margin: 0;
    color: var(--colour-text);
}

.how-it-works__step-label {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--colour-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.included__list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.included__row {
    position: relative;
    padding-left: 1.35rem;
    color: var(--colour-text);
}

.included__row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 0.55rem;
    height: 2px;
    background: var(--colour-accent);
}

.audience__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.audience__item {
    position: relative;
    padding-left: 1.35rem;
    color: var(--colour-text);
}

.audience__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 0.55rem;
    height: 2px;
    background: var(--colour-accent);
}

.about__copy {
    margin: 0;
    max-width: 38em;
    color: var(--colour-text);
}

.what-we-build__lede {
    margin: 0 0 1.25rem;
    max-width: 38em;
    color: var(--colour-text);
}

.what-we-build__intro-list {
    margin: 0 0 1rem;
    max-width: 38em;
    color: var(--colour-text);
    font-weight: 500;
}

.what-we-build__list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0 0 2.5rem;
}

.what-we-build__row {
    position: relative;
    padding-left: 1.35rem;
    color: var(--colour-text);
}

.what-we-build__row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 0.55rem;
    height: 2px;
    background: var(--colour-accent);
}

.what-we-build__subhead {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    line-height: 1.2;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
    color: var(--colour-text);
}

.what-we-build__closing {
    margin: 0;
    max-width: 36em;
    color: var(--colour-muted);
    font-size: 1rem;
}

.what-we-build__closing-link {
    color: var(--colour-accent);
    text-decoration: none;
}

.what-we-build__closing-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.contact__intro {
    margin: 0 0 2rem;
    color: var(--colour-muted);
    max-width: 36em;
}

.contact__feedback {
    font-family: var(--font-body);
    font-size: 1rem;
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
    border: var(--divider);
}

.contact__feedback--success {
    color: var(--colour-text);
    border-color: rgba(200, 240, 74, 0.35);
}

.contact__feedback--error {
    color: var(--colour-text);
    border-color: rgba(255, 120, 120, 0.35);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.contact__label {
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--colour-muted);
}

.contact__required {
    color: #e54545;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: default;
}

.button--contact-send {
    background: #c41e3a;
    color: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 6px 18px rgba(196, 30, 58, 0.25);
}

.button--contact-send:hover {
    filter: brightness(1.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 8px 22px rgba(196, 30, 58, 0.32);
}

.button--contact-send:focus-visible {
    outline: 2px solid #e54545;
    outline-offset: 3px;
}

.contact__input,
.contact__textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--colour-text);
    background: transparent;
    border: var(--divider);
    border-radius: 0;
    padding: 0.75rem 0.85rem;
    width: 100%;
}

.contact__textarea {
    resize: vertical;
    min-height: 9rem;
}

.contact__input:focus-visible,
.contact__textarea:focus-visible {
    outline: 2px solid var(--colour-accent);
    outline-offset: 2px;
}

.contact__field-error {
    font-size: 0.875rem;
    color: #f0b4b4;
    margin: 0;
}

.contact__actions {
    margin-top: 0.25rem;
}

.footer {
    padding-block: 2.5rem 3rem;
    border-top: var(--divider);
}

.footer__inner {
    text-align: center;
}

.footer__line {
    margin: 0;
    font-size: 0.875rem;
    color: var(--colour-muted);
}

.footer__site {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.footer__sep {
    margin-inline: 0.35rem;
}

.footer__link {
    color: var(--colour-muted);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.footer__link:hover {
    color: var(--colour-text);
}

.page--legal .page__main {
    padding-top: clamp(1.5rem, 5vw, 2.5rem);
}

.legal__copy {
    margin: 0 0 1.5rem;
    max-width: 36em;
}

.legal__back {
    margin: 0;
}

.legal__back-link {
    color: var(--colour-accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
}

.legal__back-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

@media (min-width: 768px) {
    body {
        font-size: 1.125rem;
    }

    .how-it-works__steps {
        gap: 2rem;
    }
}
