/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
    --ink: #121212;
    --paper: #F7F5F0;
    --white: #FFFFFF;
    --cobalt: #2F4BE0;
    --tangerine: #FF6A3D;
    --tangerine-text: #D9481A;
    --yellow: #FFD447;
    --error: #B42318;

    --line: 3px solid var(--ink);
    --shadow: 6px 6px 0 var(--ink);
    --radius: 20px;
    --radius-sm: 12px;

    --gutter: clamp(1.25rem, 4.5vw, 4rem);
    --section-space: clamp(4.5rem, 9vw, 7rem);
    --font: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
}

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

body, h1, h2, h3, p, ul, figure, blockquote { margin: 0; }

html {
    scroll-padding-top: 6rem;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--ink);
    background: var(--paper);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

svg { display: block; }

a { color: inherit; }

h1, h2, h3 {
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

p { text-wrap: pretty; }

:focus-visible {
    outline: 3px solid var(--cobalt);
    outline-offset: 3px;
}

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

.skip-link {
    position: absolute;
    top: -5rem;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.skip-link:focus { top: 1rem; }

.container {
    width: 100%;
    max-width: calc(82rem + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.card {
    border: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 3.5rem;
    padding: 0 1.5rem;
    border: 2px solid var(--ink);
    border-radius: 14px;
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(2px, 2px); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--cobalt); }
.btn--ink:hover { box-shadow: 7px 7px 0 var(--cobalt); }
.btn--ink:active { box-shadow: 2px 2px 0 var(--cobalt); }

.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--white); box-shadow: 4px 4px 0 var(--ink); }

.btn--tangerine { min-height: 3.25rem; background: var(--tangerine); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--tangerine:hover { box-shadow: 6px 6px 0 var(--ink); }

.btn--lg { min-height: 4rem; padding: 0 1.75rem; font-size: 1.125rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(247 245 240 / 0.92);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5.5rem;
}

.logo {
    padding: 0.45rem 0.8rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 6px;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.site-nav {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    margin-inline: auto;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 0.6rem 1.1rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] { border-color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        padding: 0;
        color: var(--ink);
        background: var(--yellow);
        border: 2px solid var(--ink);
        border-radius: var(--radius-sm);
        box-shadow: 3px 3px 0 var(--ink);
        cursor: pointer;
    }

    .nav-toggle svg { width: 1.375rem; height: 1.375rem; }
    .nav-toggle .icon-close,
    .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
    .nav-toggle[aria-expanded="true"] .icon-close { display: block; }

    .site-nav {
        position: absolute;
        inset: 100% 0 auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1rem var(--gutter) 2rem;
        background: var(--paper);
        border-bottom: var(--line);
    }

    .site-header.is-open .site-nav { display: flex; }

    .nav-links { flex-direction: column; gap: 0; margin: 0; }

    .nav-links a {
        padding: 0.5rem 0;
        border: 0;
        border-radius: 0;
        font-size: 1.75rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .nav-links a[aria-current="true"] {
        text-decoration: underline;
        text-decoration-thickness: 3px;
        text-underline-offset: 6px;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem); }

.hero-inner { position: relative; }

.hero-title {
    font-size: clamp(3.25rem, 12.2vw, 11rem);
    line-height: 0.86;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.hl {
    display: inline-block;
    padding: 0 0.12em;
    border-radius: 0.11em;
}

.hl--cobalt { background: var(--cobalt); color: var(--paper); transform: rotate(-2deg); }
.hl--yellow { background: var(--yellow); border: max(2px, 0.017em) solid var(--ink); }

.hero-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

.hero-lead {
    max-width: 36rem;
    font-size: clamp(1.125rem, 1.7vw, 1.5rem);
    font-weight: 500;
    line-height: 1.45;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-proof strong {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sticker {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 7.75rem;
    aspect-ratio: 1;
    text-align: center;
    line-height: 1;
    background: var(--tangerine);
    border: var(--line);
    border-radius: 50%;
    box-shadow: 4px 4px 0 var(--ink);
    transform: rotate(12deg);
}

.sticker-kicker { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; }
.sticker-big { font-size: 2.4rem; font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; }
.sticker-small { font-size: 0.75rem; font-weight: 500; }

@media (max-width: 520px) {
    .hero-title { font-size: 19.5vw; }
    .hero-actions .btn { width: 100%; }
}

@media (min-width: 1100px) {
    .hero-body {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 1.25rem 1.5rem;
    }

    .hero-lead { grid-column: 1 / 8; grid-row: 1; }
    .hero-meta { grid-column: 1 / 8; grid-row: 2; }

    .hero-actions {
        grid-column: 8 / -1;
        grid-row: 1 / 3;
        align-self: center;
        justify-content: flex-end;
    }

    .sticker {
        position: absolute;
        top: -2vw;
        right: calc(var(--gutter) + 6vw);
        width: min(10.75rem, 11vw);
        box-shadow: var(--shadow);
    }

    .sticker-kicker { font-size: min(1rem, 1.1vw); }
    .sticker-big { font-size: min(3.25rem, 3.3vw); }
    .sticker-small { font-size: max(0.75rem, 0.85vw); }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
    overflow: hidden;
    color: var(--paper);
    background: var(--ink);
}

.marquee-track { display: flex; width: max-content; }

.marquee-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    min-height: clamp(4rem, 6vw, 5.25rem);
    padding: 0 2.5rem 0 0;
    list-style: none;
    font-size: clamp(1.25rem, 2.1vw, 1.875rem);
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.sep--tangerine { color: var(--tangerine); }
.sep--yellow { color: var(--yellow); }
.sep--cobalt { color: #7C8FFF; }

@media (prefers-reduced-motion: no-preference) {
    .marquee-track { animation: marquee 40s linear infinite; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { margin-left: var(--gutter); }
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section-space); }
.section--flush-top { padding-top: 0; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-title {
    font-size: clamp(3rem, 6.2vw, 5.5rem);
    text-transform: uppercase;
}

.section-intro {
    max-width: 27.5rem;
    font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
    font-weight: 500;
}

/* Services */
.services-grid {
    display: grid;
    gap: 1.25rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.service {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    min-height: clamp(17rem, 26vw, 23.75rem);
    padding: 1.75rem;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
}

.service-icon svg { width: 1.625rem; height: 1.625rem; }

.service h3 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.875rem, 2.5vw, 2.25rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.service p { line-height: 1.45; }

.service--cobalt { color: var(--paper); background: var(--cobalt); }
.service--cobalt .service-icon { color: var(--ink); background: var(--paper); }
.service--yellow { background: var(--yellow); }
.service--yellow .service-icon { color: var(--yellow); background: var(--ink); }
.service--tangerine { background: var(--tangerine); }
.service--tangerine .service-icon { color: var(--tangerine); background: var(--ink); }
.service--ink { color: var(--paper); background: var(--ink); box-shadow: 6px 6px 0 var(--tangerine); }
.service--ink .service-icon { color: var(--ink); background: var(--paper); }

/* Case study */
.case {
    padding: clamp(1.75rem, 5vw, 4.5rem);
    color: var(--paper);
    background: var(--cobalt);
    border: var(--line);
    border-radius: 28px;
    box-shadow: 10px 10px 0 var(--ink);
}

.pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pill--yellow { color: var(--ink); background: var(--yellow); }

.case-title {
    margin: 1.5rem 0 2.5rem;
    font-size: clamp(3.25rem, 9vw, 7rem);
    line-height: 0.86;
    letter-spacing: -0.045em;
}

.case-grid { display: grid; gap: 2.5rem; }

@media (min-width: 1200px) {
    .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; }
}

.case-lead {
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
    line-height: 1.5;
}

.quote-card {
    margin-top: 2rem;
    padding: 1.75rem;
    color: var(--ink);
    background: var(--paper);
    border: var(--line);
    border-radius: 16px;
    transform: rotate(-1deg);
}

.quote-card blockquote p {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    font-weight: 500;
    line-height: 1.35;
}

.quote-card figcaption { margin-top: 1rem; font-size: 0.9375rem; font-weight: 700; }

.gantt {
    align-self: start;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--ink);
    background: var(--paper);
    border: var(--line);
    border-radius: 16px;
}

.gantt-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    margin-bottom: 1.25rem;
}

.gantt-head strong { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.gantt-head span { font-weight: 500; }

.gantt-scale,
.gantt-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gantt-scale {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ink);
    font-size: 0.8125rem;
    font-weight: 700;
}

.gantt-rows {
    display: grid;
    gap: 0.625rem;
    background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 1px), rgb(18 18 18 / 0.18) calc(100% / 6 - 1px) calc(100% / 6));
}

.gantt-bar {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.75rem 0.875rem;
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
}

.gantt-bar small { font-size: 0.75rem; font-weight: 500; }
.gantt-bar--1 { grid-column: 1 / 3; background: var(--yellow); }
.gantt-bar--2 { grid-column: 3 / 5; background: var(--white); }
.gantt-bar--3 { grid-column: 5 / 7; background: var(--tangerine); }

@media (max-width: 480px) {
    .gantt-row .gantt-bar { grid-column: 1 / -1; }
}

/* Testimonials */
.testimonials { display: grid; gap: 2rem; }

@media (min-width: 768px) {
    .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.testimonial {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: clamp(1.75rem, 3vw, 2.25rem);
    background: var(--white);
}

.testimonial--yellow { box-shadow: 6px 6px 0 var(--yellow); transform: rotate(-0.8deg); }
.testimonial--cobalt { box-shadow: 6px 6px 0 var(--cobalt); transform: rotate(0.8deg); }

.testimonial-stat {
    font-size: clamp(3.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.04em;
}

.testimonial--yellow .testimonial-stat { color: var(--tangerine-text); }
.testimonial--cobalt .testimonial-stat { color: var(--cobalt); }

.testimonial blockquote p {
    font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
    font-weight: 500;
    line-height: 1.4;
}

.testimonial figcaption { font-size: 0.9375rem; font-weight: 700; }

/* Pricing */
.pricing-grid {
    display: grid;
    gap: 1.5rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 960px) {
    .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.price-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: clamp(1.75rem, 3vw, 2.25rem);
    background: var(--white);
    border: var(--line);
    border-radius: var(--radius);
}

.price-card--featured { background: var(--tangerine); box-shadow: 8px 8px 0 var(--ink); }

@media (min-width: 960px) {
    .price-card--featured { transform: translateY(-0.75rem); }
}

.price-name {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.price {
    font-size: clamp(2.75rem, 4.2vw, 3.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.price-features {
    display: grid;
    flex-grow: 1;
    gap: 0.625rem;
    padding: 0;
    list-style: none;
}

.price-features li { display: flex; align-items: baseline; gap: 0.625rem; }

.price-features li::before {
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--ink);
    transform: translateY(-0.1em);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
    padding-block: var(--section-space) clamp(3rem, 6vw, 4.5rem);
    background: var(--yellow);
    border-top: var(--line);
}

.contact-grid { display: grid; gap: 2.5rem; }

@media (min-width: 960px) {
    .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
}

.contact-title {
    font-size: clamp(3.25rem, 6.5vw, 7rem);
    line-height: 0.84;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.contact-lead {
    max-width: 30rem;
    margin: 1.5rem 0;
    font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
    font-weight: 500;
}

.contact-alt {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.contact-form {
    position: relative;
    display: grid;
    gap: 1.125rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--white);
}

.form-row { display: grid; gap: 1.125rem; }

@media (min-width: 560px) {
    .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { display: grid; gap: 0.375rem; align-content: start; }

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

.field .optional { font-weight: 500; text-transform: none; }

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background-color: var(--paper);
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
}

.field select {
    padding-right: 2.75rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.125rem;
}

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

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline-offset: 2px;
    background-color: var(--white);
}

.field [aria-invalid="true"] { border-color: var(--error); background-color: #FFF4F2; }

.field-error { font-size: 0.875rem; font-weight: 500; color: var(--error); }
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; }

.form-status { font-weight: 500; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: var(--error); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--yellow); }

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-block: 1.5rem 2rem;
    border-top: 2px solid var(--ink);
    font-size: 0.9375rem;
    font-weight: 500;
}

.footer-logo { font-size: 1.125rem; font-weight: 800; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 0;
    list-style: none;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ==========================================================================
   Motion
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        translate: 0 1.5rem;
        transition: opacity 0.6s ease, translate 0.6s ease;
        transition-delay: var(--delay, 0s);
    }

    .js .reveal.is-visible { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
    .btn:hover, .btn:active { transform: none; }
}
