/* ==========================================================================
   ENJOY Software — shared stylesheet
   Palette and type carried over from the original site: white ground,
   #2B2B2B dark, red accent, slate secondary, Raleway body, Oswald structure.
   ========================================================================== */

:root {
    --accent: red;
    --accent-lift: #ff6f66; /* red lifted for legibility on the dark ground */
    --ink: #2B2B2B;
    --slate: #708090;
    --max: 1360px;
    --body: #4a4f54;
    --rule: #e3e6e8;
    --paper: #f5f6f7;
}

* {
    box-sizing: border-box;
}

body {
    background-color: white;
    margin: 0;
    padding: 0;
    font-family: "Raleway", 'Helvetica Neue', sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

/* ---------- Hero: full video (home) ---------- */

#video-bg {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #2B2B2B;
}

#bgndVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-width: calc(var(--max) + 80px);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    padding: 20px 40px;
    z-index: 2;
}

.header img {
    height: 120px;
    margin-right: 20px;
}

.header .title {
    font-size: 80px;
    color: white;
    font-family: 'Helvetica Neue', sans-serif;
    line-height: 1.05;
}

.header .title a {
    text-decoration: none;
}

.header .subtitle {
    font-size: 28px;
    color: var(--slate);
}

.header nav {
    margin-left: auto;
    display: flex;
    gap: 28px;
    padding-right: 20px;
}

.header nav a {
    color: white;
    text-decoration: none;
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.header nav a:hover,
.header nav a[aria-current="page"] {
    border-bottom-color: var(--accent);
}

/* ---------- Hero: slim band (project pages) ---------- */

.masthead {
    background: var(--ink);
    padding: 18px 40px;
}

.masthead-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.masthead img {
    height: 54px;
    margin-right: 16px;
}

.masthead .title {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 32px;
    color: white;
    line-height: 1.05;
}

.masthead .title a {
    text-decoration: none;
}

.masthead .subtitle {
    font-size: 14px;
    color: var(--slate);
}

.masthead nav {
    margin-left: auto;
    display: flex;
    gap: 28px;
}

.masthead nav a {
    color: white;
    text-decoration: none;
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
    border-bottom-color: var(--accent);
}

/* ---------- Intro band (home, retained three-column layout) ---------- */

.content {
    position: relative;
    top: -70px; /* Overlap the shortened video strip */
    margin-bottom: -70px; /* Reclaim the space the offset leaves behind */
    min-height: 750px;
    padding: 40px;
    z-index: 1;
    background: white; /* full-bleed, so the band covers the video edge to edge */
}

.content-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 25px;
}

.content .block {
    width: 25%;
}

.content .space {
    width: 12.5%;
}

.content h2 {
    font-weight: normal;
    color: var(--accent);
    margin-bottom: 10px;
}

.content p, .content address {
    margin: 10px 0;
    display: inline-block;
    width: auto;
}

.content address {
    font-style: normal;
    margin-top: 20px;
}

.linkedin {
    width: 25px;
    margin-top: 30px;
    float: right;
}

.linkedin svg {
    width: 25px;
    fill: var(--ink);
}

.linkedin svg:hover {
    fill: var(--accent);
}

/* ---------- Shared section furniture ---------- */

.section {
    padding: 70px 40px;
    border-top: 1px solid var(--rule);
}

.section-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.section-head {
    max-width: 760px;
    margin-bottom: 50px;
}

.eyebrow {
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 15px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px;
}

.section-head h2 {
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 16px;
}

.section-head p {
    font-size: 21px;
    line-height: 1.5;
    color: var(--body);
    margin: 0;
}

/* ---------- Work index: teaser cards ---------- */

.work-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.work-card {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-top: 3px solid var(--accent);
    padding-top: 22px;
}

.work-card .shot {
    order: -1;
    margin-bottom: 22px;
    background: var(--paper);
    border: 1px solid var(--rule);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.work-card .shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
    transition: transform 0.4s ease;
}

.work-card:hover .shot img {
    transform: scale(1.03);
}

.work-card h3 {
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 30px;
    margin: 0 0 6px;
}

.work-card .meta {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate);
    margin: 0 0 14px;
}

.work-card p.blurb {
    font-size: 17px;
    line-height: 1.55;
    color: var(--body);
    margin: 0 0 18px;
}

.work-card ul.facts {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.work-card ul.facts li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 9px;
    font-size: 16px;
    line-height: 1.45;
}

.work-card ul.facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 2px;
    background: var(--accent);
}

.work-card .more {
    margin-top: auto;
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 3px;
    align-self: flex-start;
}

.work-card:hover .more {
    color: var(--accent);
}

/* ---------- Project page ---------- */

.project-hero {
    padding: 60px 40px 0;
}

.project-hero-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.back {
    display: inline-block;
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate);
    text-decoration: none;
    margin-bottom: 26px;
}

.back:hover {
    color: var(--accent);
}

.project-hero h1 {
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 62px;
    line-height: 1.05;
    margin: 0 0 12px;
}

.project-hero .meta {
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 15px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate);
    margin: 0 0 26px;
}

.project-hero .lede {
    font-size: 23px;
    line-height: 1.5;
    color: var(--body);
    max-width: 900px;
    margin: 0 0 26px;
}

.visit {
    display: inline-block;
    font-size: 17px;
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 3px;
}

.visit:hover {
    color: var(--accent);
}

/* Headline metrics strip */

.metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 40px 0 0;
    border-top: 1px solid var(--rule);
}

.metric {
    flex: 1 1 200px;
    padding: 24px 28px 24px 10px;
    border-right: 1px solid var(--rule);
}

.metric:last-child {
    border-right: none;
}

.metric .value {
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 8px;
}

.metric .label {
    font-size: 15px;
    line-height: 1.4;
    color: var(--body);
}

/* ---------- Carousel ---------- */

.carousel {
    margin: 0;
}

.carousel-frame {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--rule);
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 66vh;
    width: auto;
    height: auto;
    display: block;
    border: 1px solid var(--rule);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
    background: white;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 1px solid var(--rule);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.carousel-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.carousel-btn[disabled] {
    opacity: 0.3;
    cursor: default;
}

.carousel-btn[disabled]:hover {
    color: var(--ink);
    border-color: var(--rule);
}

.carousel-prev {
    left: 14px;
}

.carousel-next {
    right: 14px;
}

.carousel-foot {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 18px 2px 0;
}

.carousel-caption {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    flex: 1;
}

.carousel-caption b {
    color: var(--ink);
    font-weight: 700;
}

.carousel-dots {
    display: flex;
    gap: 9px;
    flex-shrink: 0;
}

.carousel-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid var(--slate);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-dots button[aria-selected="true"] {
    background: var(--accent);
    border-color: var(--accent);
}

.carousel-count {
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--slate);
    flex-shrink: 0;
}

/* ---------- Detail columns ---------- */

.detail-cols {
    display: flex;
    gap: 56px;
    align-items: flex-start;
}

.detail-col {
    flex: 1 1 0;
    min-width: 0;
}

.detail-col h2,
.detail-col h3 {
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--slate);
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
}

.detail-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-col li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    font-size: 17px;
    line-height: 1.55;
}

.detail-col li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 2px;
    background: var(--accent);
}

.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

/* The technology list when it leads a detail column rather than closing the
   section: it sits directly under the heading, so it loses the top gap. */
.stack-lead {
    margin-top: 0;
    margin-bottom: 26px;
}

.stack span {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--body);
    border: 1px solid var(--rule);
    background: var(--paper);
    padding: 6px 11px;
}

/* ---------- Capabilities ---------- */

#capabilities {
    background: var(--paper);
}

.capability-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.capability {
    flex: 1 1 260px;
    border-top: 1px solid #d5d9dc;
    padding-top: 20px;
}

.capability h3 {
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 21px;
    margin: 0 0 12px;
}

.capability p {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: var(--body);
}

/* ---------- Next project ---------- */

.next-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.next-card {
    flex: 1 1 280px;
    border-top: 3px solid var(--accent);
    padding-top: 20px;
    text-decoration: none;
    color: inherit;
}

.next-card .kicker {
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 8px;
}

.next-card h3 {
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 26px;
    margin: 0 0 8px;
}

.next-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
}

.next-card:hover h3 {
    color: var(--accent);
}

/* ---------- Footer ---------- */

footer {
    background: var(--ink);
    color: white;
    padding: 60px 40px 40px;
}

footer .footer-inner {
    max-width: var(--max);
    margin: 0 auto;
}

footer .footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: space-between;
}

footer h2 {
    font-family: "Oswald", 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-lift);
    margin: 0 0 16px;
}

footer address, footer p {
    font-style: normal;
    font-size: 17px;
    line-height: 1.6;
    color: #d7dbde;
    margin: 0;
}

footer a {
    color: white;
}

footer .footer-linkedin svg {
    width: 25px;
    fill: white;
    margin-top: 8px;
}

footer .footer-linkedin svg:hover {
    fill: var(--accent-lift);
}

footer .colophon {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid #414141;
    font-size: 14px;
    color: #8b9299;
}

/* ---------- Media Queries ---------- */

@media (max-width: 991px) {
    .detail-cols {
        flex-direction: column;
        gap: 34px;
    }

    .header nav,
    .masthead nav {
        display: none;
    }

    .project-hero h1 {
        font-size: 42px;
    }

    .metric {
        border-right: none;
        flex-basis: 100%;
        border-bottom: 1px solid var(--rule);
        padding: 10px 0 10px 0;
        display: flex;
        align-items: flex-start;
        gap: 14px;
    }

    .metric:last-child {
        border-bottom: none;
    }

    .metric .value {
        font-size: 30px; /* a quarter down from the 40px desktop size */
        margin-bottom: 0;
        flex-shrink: 0;
        min-width: 120px;
    }

    .metric .label {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .header {
        padding: 20px;
    }

    .header img {
        height: 60px;
        margin-right: 10px;
    }

    .header .title {
        font-size: 30px;
    }

    .header .subtitle {
        font-size: 14px;
    }

    #video-bg {
        height: 200px;
    }

    .content {
        padding: 20px;
        top: -90px; /* Adjust overlap */
        margin-bottom: -90px;
    }

    .content-inner {
        flex-direction: column;
        align-items: flex-start;
        font-size: 20px;
    }

    .content h2 {
        margin-bottom: 0px;
    }

    .content .block {
        width: 100%;
        margin-bottom: 20px;
    }

    .content .space {
        display: none;
    }

    .masthead {
        padding: 14px 20px;
    }

    .masthead img {
        height: 40px;
    }

    .masthead .title {
        font-size: 22px;
    }

    .section {
        padding: 45px 20px;
    }

    .section-head h2 {
        font-size: 30px;
    }

    .section-head p {
        font-size: 19px;
    }

    .project-hero {
        padding: 36px 20px 0;
    }

    .project-hero h1 {
        font-size: 34px;
    }

    .project-hero .lede {
        font-size: 19px;
    }

    .carousel-slide {
        padding: 14px;
    }

    .carousel-slide img {
        max-height: 52vh;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
    }

    .carousel-prev {
        left: 6px;
    }

    .carousel-next {
        right: 6px;
    }

    /* Give the caption its own full-width line below the controls, rather than
       squeezing it beside the dots on a narrow screen. */
    .carousel-foot {
        flex-wrap: wrap;
        gap: 12px;
    }

    .carousel-dots {
        order: 1;
    }

    .carousel-count {
        order: 2;
    }

    .carousel-caption {
        flex: 1 0 100%;
        order: 3;
    }

    footer {
        padding: 45px 20px 30px;
    }
}
