/* Pryor Mechanical Consulting — industrial letterpress
   Type and accents drawn from the logo: cream paper, ink type,
   one thin violet→cyan accent. */

:root {
    --bg: #f4efe6;
    --bg-raised: #ece5d8;
    --fg: #181d24;
    --fg-soft: #46505c;
    --grad: linear-gradient(90deg, #b46cf0 0%, #7f8df2 50%, #43d2e8 100%);
    --hairline: rgba(24, 29, 36, 0.25);
    --display: "Big Shoulders", sans-serif;
    --body: "Newsreader", serif;
    --mono: "IBM Plex Mono", monospace;
    --gutter: clamp(1.25rem, 5vw, 5rem);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

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

/* paper grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2000;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: 0.005em;
    text-transform: uppercase;
}

a {
    color: inherit;
}

/* ---------- masthead ---------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
}

.masthead-rule {
    height: 2px;
    background: var(--fg);
}

.masthead-rule.gradient {
    height: 2px;
    background: var(--grad);
}

.masthead-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem var(--gutter);
}

.wordmark {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}

.masthead-tag {
    opacity: 0.55;
}

@media (max-width: 640px) {
    .masthead-tag {
        display: none;
    }
}

.masthead-link {
    text-decoration: none;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #b46cf0, #43d2e8) 1;
    padding-bottom: 2px;
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    min-height: calc(100vh - 60px);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: 4rem var(--gutter) 5.5rem;
}

.hero-text {
    grid-column: 1;
    grid-row: 1;
    max-width: 46rem;
}

.hero-logo {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    justify-self: end;
    width: min(100%, 30rem);
}

.hero-logo img {
    display: block;
    position: relative;
    width: 100%;
}

.disc-line {
    position: absolute;
    top: 31%;
    left: 96%;
    width: 50vw;
    height: 1.5px;
    background: var(--grad);
}

.kicker {
    opacity: 0.6;
    margin-bottom: 1.4rem;
}

.hero h1 {
    font-size: clamp(3.2rem, 9vw, 7.5rem);
    margin-bottom: 1.8rem;
}

.accent-period {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    max-width: 36em;
    color: var(--fg-soft);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.4rem;
}

.btn-ink {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    background: var(--fg);
    color: var(--bg);
    padding: 0.85rem 1.8rem;
    border: 2px solid var(--fg);
    transition:
        background 0.2s,
        color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}

.btn-ink:hover {
    background: var(--bg);
    color: var(--fg);
    box-shadow: 4px 4px 0 var(--fg);
    transform: translate(-2px, -2px);
}

.btn-ghost {
    text-decoration: none;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 3px;
}

.btn-ghost:hover {
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #b46cf0, #43d2e8) 1;
}

.btn-big {
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    padding: 1.1rem 2.4rem;
}

.hero-footer {
    position: absolute;
    bottom: 1.4rem;
    left: var(--gutter);
    right: var(--gutter);
    display: flex;
    justify-content: space-between;
    opacity: 0.5;
}

.hero-scroll {
    animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
    50% {
        transform: translateY(4px);
    }
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        align-content: center;
    }

    .hero-text {
        grid-column: 1;
    }

    .hero-logo {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        width: min(100%, 20rem);
    }

    .disc-line {
        display: none;
    }
}

/* ---------- sections ---------- */

.section {
    padding: 5.5rem var(--gutter);
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    margin-bottom: 3.2rem;
}

.section-no {
    opacity: 0.5;
}

.section-head h2 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    white-space: nowrap;
}

.rule {
    flex: 1;
    height: 1.5px;
    background: var(--hairline);
    align-self: center;
}

.rule.gradient {
    background: var(--grad);
}

/* cards */

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 2px solid var(--fg);
    background: var(--fg);
    gap: 2px;
}

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

.card {
    background: var(--bg);
    padding: 2.2rem 1.9rem 2.4rem;
    position: relative;
    transition: background 0.25s;
}

.card:hover {
    background: var(--bg-raised);
}

.card-no {
    display: block;
    opacity: 0.5;
    margin-bottom: 1.6rem;
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 1.1rem;
}

.card p {
    color: var(--fg-soft);
    font-size: 0.98rem;
}

.card-list {
    list-style: none;
    margin-top: 1.6rem;
    border-top: 1px solid var(--hairline);
}

.card-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--hairline);
    letter-spacing: 0.06em;
}

/* about */

.about-grid {
    max-width: 56rem;
}

.about-lede {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1.4rem;
}

.about-copy p + p {
    margin-top: 1.1rem;
    color: var(--fg-soft);
}

/* steps */

.steps {
    list-style: none;
    border-top: 2px solid var(--fg);
}

.step {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--hairline);
}

.step-no {
    font-family: var(--display);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--fg-soft);
    max-width: 46em;
}

/* contact — inverted cream block */

.contact {
    background: var(--fg);
    color: var(--bg);
    padding: 6rem var(--gutter);
    text-align: center;
}

.contact .kicker {
    opacity: 0.55;
}

.contact-h {
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    margin: 1.2rem 0 1.4rem;
}

.contact-p {
    max-width: 34em;
    margin: 0 auto 2.6rem;
    opacity: 0.75;
}

.contact .btn-ink {
    background: var(--bg);
    color: var(--fg);
    border-color: var(--bg);
}

.contact .btn-ink:hover {
    background: var(--fg);
    color: var(--bg);
    box-shadow: 4px 4px 0 var(--bg);
}

/* footer */

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem var(--gutter);
    opacity: 0.6;
}

/* reveals */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.d1 {
    transition-delay: 0.12s;
}

.d2 {
    transition-delay: 0.24s;
}

.d3 {
    transition-delay: 0.36s;
}

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

    .hero-scroll {
        animation: none;
    }
}
