/* Accent */
:root {
    --wildrosedevs: #DE1B4B;
}

/* === Projects page — force solid red navbar === */
header.navbar {
    background: var(--wildrosedevs) !important;
    /* brand red */
    box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
    /* subtle separation */
}

/* === Projects page — NAVBAR CONTRAST OVERRIDES === */
header.navbar .logo {
    color: #fff !important;
    /* higher contrast than the pink */
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

header.navbar .cta {
    background: #f9f9f9 !important;
    /* make the button pop on red/black */
    color: #111 !important;
    border: 1px solid rgba(0, 0, 0, .12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

header.navbar .cta:hover,
header.navbar .cta:focus-visible {
    filter: brightness(0.94);
}

header.navbar .hamburger {
    color: #f9f9f9 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

/* --- HERO container --- */
.projects-hero {
    background: var(--wildrosedevs);
    /* Figma red */
    color: #fff;
    height: 100vh;
    /* Figma height */
    padding: 140px 48px 64px;
    /* space for fixed nav + side gutters */
    display: grid;
    align-items: center;
    /* center block vertically within padded box */
}

/* Content area (match design canvas & left-align) */
.projects-hero__inner {
    width: 925px;
    /* hero copy canvas width in Figma */
    max-width: calc(100% - 96px);
    /* stay responsive (48px padding x2) */
    justify-self: start;
    /* left aligned */
    transform: translateY(6%);
    /* slight down-bias toward lower-left */
}

/* H1 — League Spartan 700 / 128px / 100% */
.projects-hero__title {
    font-family: "League Spartan", system-ui, sans-serif;
    font-weight: 700;
    font-size: 128px;
    line-height: 1;
    margin: 0 0 16px 0;
}

/* Lede — Poppins 400 / 40px / 100% (force same width as design) */
.projects-hero__lede {
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 400;
    font-size: 42px;
    line-height: 1.2;
    max-width: 70vw;
    margin: 0 0 18px 0;
}

/* Paragraph — Reddit Sans Condensed 500 / 24px / 100% (same width as design) */
.projects-hero__copy {
    font-family: "Reddit Sans Condensed", system-ui, sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2;
    max-width: 56vw;
    margin: 0;
}

/* Responsive guards */
/* ---------- common laptops / iPad landscape (≤1200px) ---------- */
@media (max-width:1200px) {
    .projects-hero {
        height: auto;
        min-height: 640px;
        padding-top: calc(128px + env(safe-area-inset-top, 0px));
    }

    .projects-hero__inner {
        width: 100%;
        max-width: 100%;
        transform: none;
    }
}

/* ---------- tablets & 2-in-1s portrait (≤1024px) ---------- */
@media (max-width:1024px) {
    .projects-hero {
        padding: 120px 32px 56px;
    }

    .projects-hero__title {
        font-size: 88px;
    }

    .projects-hero__lede,
    .projects-hero__copy {
        max-width: none;
    }
}

/* ---------- large phones / small tablets (≤900px) ---------- */
@media (max-width:900px) {
    .projects-hero {
        height: auto;
        min-height: 560px;
        padding-top: calc(112px + env(safe-area-inset-top, 0px));
        padding-right: 24px;
        padding-left: 24px;
        padding-bottom: 48px;
    }

    .projects-hero__inner {
        width: 100%;
        max-width: 100%;
        transform: none;
    }

    .projects-hero__title {
        font-size: 72px;
    }

    .projects-hero__lede {
        font-size: 28px;
        width: 100%;
    }

    .projects-hero__copy {
        font-size: 20px;
        width: 100%;
    }
}

/* ---------- tablets portrait & big phones (≤768px) ---------- */
@media (max-width:768px) {
    .projects-hero {
        padding: 108px 24px 48px;
    }

    .projects-hero__title {
        font-size: 68px;
    }
}

/* ---------- phones (≤600px) ---------- */
@media (max-width:600px) {
    .projects-hero {
        height: auto;
        min-height: 520px;
        padding: calc(96px + env(safe-area-inset-top, 0px)) 20px 44px;
    }

    .projects-hero__inner {
        transform: none;
    }

    .projects-hero__title {
        font-size: 56px;
    }

    .projects-hero__lede {
        font-size: 24px;
    }

    .projects-hero__copy {
        font-size: 18px;
    }

    .projects-hero__inner,
    .projects-hero__lede,
    .projects-hero__copy {
        max-width: 100%;
        width: 100%;
    }
}

/* ===== STORY ===== */
.story {
    background: #000;
    color: #fff;
    padding: 64px 24px 24px;
}

.story .accent {
    color: var(--wildrosedevs);
}

/* Make the entire section a 2-col grid so the title can span across it */
.story__wrap {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(340px, 540px) 1fr;
    gap: 32px;
    align-items: stretch;
    grid-auto-rows: min-content;
}

.story__title {
    grid-column: 1 / -1;
    justify-self: start !important;
    width: auto !important;
    max-width: clamp(460px, 62vw, 686px);
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 275;
    font-size: clamp(42px, 7.2vw, 96px);
    line-height: 0.9375;
    letter-spacing: 0;
    margin: 0 0 28px 0;
    color: #fff;
}

.story__title .story__light {
    font-weight: 275;
    color: #fff;
}

.story__title .story__accent {
    color: var(--wildrosedevs);
    font-weight: 500;
}

/* Grid items */
.story__media {
    grid-column: 1;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}

.story__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 4 / 3;
}

.story__text {
    grid-column: 2;
    display: flex;
    align-items: center;
    max-width: 540px;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(20px, 2.2vw, 24px);
    line-height: 1.55;
    color: #e9e9e9;
}

.story__link {
    color: var(--wildrosedevs);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.story__link:hover,
.story__link:focus-visible {
    border-bottom-color: currentColor;
}

/* Mobile */
@media (max-width:900px) {
    .story__wrap {
        grid-template-columns: 1fr;
    }

    .story__title,
    .story__media,
    .story__text {
        grid-column: 1;
    }

    .story__media img {
        aspect-ratio: 16 / 9;
    }
}

/* ===== WEB DEVELOPMENT ===== */
.webdev {
    background: #000;
    color: #fff;
    padding: 28px 24px 56px;
}

.webdev__wrap {
    max-width: 1180px;
    margin: 0 auto;
}

.webdev__title {
    font-family: "League Spartan", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.1;
    margin: 0 0 18px 0;
    color: #fff;
}

/* Only the “W” is colored */
.webdev__title::first-letter {
    color: var(--wildrosedevs);
}

/* Grid */
.web-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width:1024px) {
    .web-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:620px) {
    .web-grid {
        grid-template-columns: 1fr;
    }
}

.web-card {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    border-radius: 12px;
    background: #111;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset;
}

/* More robust image container — never distorts */
.web-card__media {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.web-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    object-position: center;
}

@media (max-width:620px) {
    .web-card__media {
        aspect-ratio: 4 / 3;
    }
}

/* overlay */
.web-card__overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 0, 64, .88);
    /* was .92 – slightly more transparent */
    color: #fff;

    display: grid;
    place-items: center;
    /* center title + blurb + button */
    text-align: center;
    gap: 18px;
    padding: clamp(26px, 3.2vw, 40px);

    transform: translateY(-100%);
    transition: transform .22s ease;
}

.web-card:hover .web-card__overlay,
.web-card:focus .web-card__overlay,
.web-card:focus-visible .web-card__overlay {
    transform: translateY(0);
}

.web-card__title {
    margin: 0;
    font-family: "League Spartan", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 2.8vw, 32px);
    /* larger */
    line-height: 1.1;
}

/* new mini blurb */
.web-card__desc {
    margin: 0;
    max-width: 28ch;
    /* short, readable line length */
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(14px, 1.7vw, 16px);
    line-height: 1.45;
    opacity: .95;
}

/* beefier button */
.web-card__btn {
    display: inline-block;
    background: #fff;
    color: #000;
    font-family: "League Spartan", system-ui, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}

/* Webdev CTA */
.webdev__cta {
    display: grid;
    place-items: center;
    margin-top: 28px;
}

.webdev__cta-btn {
    width: 224px;
    height: 66px;
    border-radius: 5px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wildrosedevs);
    color: #fff;
    text-decoration: none;
    font-family: "League Spartan", system-ui, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    box-shadow: none;
}

.webdev__cta-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* COMPANY PROJECTS (uses the Web Dev component - just changed colors) */
.webdev--cp {
    --wildrosedevs: #0095FF;
}

.webdev--cp .web-card__overlay {
    background: rgba(0, 149, 255, .88);
}