:root {
    --black: #090a0c;
    --dark: #111317;
    --dark2: #181b20;
    --white: #f7f7f5;
    --muted: #a8adb5;
    --line: #2b2f36;
    --accent: #e63946;
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: #17191c;
    line-height: 1.6;
}

.container {
    width: min(92%, var(--max));
    margin: 0 auto;
}

.narrow {
    max-width: 850px;
}

.section {
    padding: 100px 0;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    margin-bottom: 25px;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: .91;
    letter-spacing: -.055em;
    max-width: 1000px;
}

h1 span,
h2 span {
    display: block;
    color: var(--accent);
}

h2 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

h3 {
    font-size: 1.35rem;
}

p {
    font-size: 1.05rem;
}

.large-copy {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.4;
}

.section-label,
.eyebrow {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .18em;
    color: var(--accent);
}


/* HEADER */

.site-header {
    position: absolute;
    z-index: 10;
    width: 100%;
    color: white;
}

.header-inner {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    color: white;
    text-decoration: none;
    line-height: .85;
}

.brand-main,
.brand-sub {
    display: block;
    font-weight: 900;
}

.brand-main {
    font-size: .8rem;
    letter-spacing: .1em;
}

.brand-sub {
    margin-top: 6px;
    font-size: 1.3rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
}

.nav-cta {
    border: 1px solid rgba(255,255,255,.45);
    padding: 10px 17px;
}

.menu-button {
    display: none;
}


/* HERO */

.hero {
    min-height: 92vh;
    position: relative;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 75% 40%, #353b43 0, #181b20 30%, #090a0c 70%);
    color: white;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255,255,255,.06);
    right: -100px;
    bottom: -150px;
    transform: rotate(25deg);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-copy {
    color: #c5c8cd;
    max-width: 680px;
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 35px;
}

.button {
    display: inline-block;
    padding: 14px 22px;
    text-decoration: none;
    font-weight: 800;
}

.button.primary {
    background: var(--accent);
    color: white;
}

.button.secondary {
    border: 1px solid #555b64;
    color: white;
}


/* WORK */

.dark-section {
    background: var(--black);
    color: white;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.5fr .7fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 55px;
}

.section-heading p {
    color: var(--muted);
}

.gallery-placeholder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 8px;
}

.gallery-placeholder div {
    display: flex;
    align-items: end;
    padding: 20px;
    background:
        linear-gradient(135deg, #282c32, #131518);
    color: #cdd0d5;
    font-weight: 700;
}

.gallery-placeholder div:first-child {
    grid-column: span 2;
    grid-row: span 2;
}


/* SERVICES */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 55px;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
}

.service-grid article {
    padding: 35px;
    min-height: 210px;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.service-grid p {
    color: #5f646b;
}


/* CUSTOM */

.custom {
    background: #e7e7e3;
}

.custom-inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 90px;
}

.text-link {
    color: #111;
    font-weight: 800;
    text-decoration: none;
}


/* CONTACT */

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-placeholder {
    border: 1px solid var(--line);
    padding: 50px;
    color: var(--muted);
}


/* FOOTER */

footer {
    padding: 35px 0;
    background: #050506;
    color: #8d9299;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-inner p {
    margin: 3px 0 0;
    font-size: .85rem;
}


/* MOBILE */

@media (max-width: 800px) {

    .section {
        padding: 70px 0;
    }

    .main-nav {
        display: none;
    }

    .menu-button {
        display: block;
        background: none;
        border: 0;
        color: white;
        font-size: 1.8rem;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading,
    .custom-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gallery-placeholder {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .gallery-placeholder div:first-child {
        grid-column: auto;
        grid-row: auto;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        display: block;
    }
}


/* =========================================================
   PASS 2 — REAL PTM PHOTOGRAPHY
   ========================================================= */

.hero {
    background:
        linear-gradient(
            90deg,
            rgba(5,6,8,.96) 0%,
            rgba(5,6,8,.85) 35%,
            rgba(5,6,8,.45) 70%,
            rgba(5,6,8,.30) 100%
        ),
        url("../images/installations/20240129_163705.jpg")
        center 52% / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(5,6,8,.90) 0%,
            transparent 42%
        );
}

.hero-content {
    max-width: 1100px;
}


/* REAL INSTALLATION GALLERY */

.installation-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: 310px 310px;
    gap: 10px;
}

.install-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: #17191d;
    text-decoration: none;
    color: white;
}

.install-card.featured {
    grid-row: span 2;
}

.install-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform .6s ease,
        filter .6s ease;
}

.install-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,.88) 0%,
            rgba(0,0,0,.20) 48%,
            transparent 72%
        );
}

.install-card:hover img {
    transform: scale(1.035);
    filter: brightness(1.08);
}

.install-caption {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 20px;
}

.install-caption span {
    display: block;
    margin-bottom: 4px;
    color: #d9dce0;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.install-caption strong {
    display: block;
    color: white;
    font-size: 1.15rem;
}


/* OVERLOAD & FAILURE TESTING */

.testing {
    overflow: hidden;
}

.testing-heading {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 90px;
    align-items: start;
    margin-bottom: 55px;
}

.testing-intro {
    padding-top: 30px;
    color: #b8bcc3;
}

.testing-lead {
    color: white;
    font-size: 1.55rem;
    font-weight: 700;
}

.testing-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.test-feature {
    position: relative;
    margin: 0;
    min-height: 420px;
    overflow: hidden;
    background: #15171a;
}

.test-feature img {
    width: 100%;
    height: 420px;
    display: block;
    object-fit: cover;
}

.test-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,.85),
            transparent 50%
        );
    pointer-events: none;
}

.test-feature figcaption {
    position: absolute;
    z-index: 2;
    bottom: 25px;
    left: 28px;
    right: 28px;
}

.test-feature figcaption span {
    display: block;
    color: var(--accent);
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.test-feature figcaption strong {
    display: block;
    margin-top: 4px;
    color: white;
    font-size: 1.3rem;
}

.testing-bottom {
    margin-top: 35px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 30px;
}

.testing-bottom p {
    max-width: 750px;
    margin: 0;
    color: #9ea3aa;
}

.archive-link {
    color: white;
    text-decoration: none;
    font-weight: 800;
}


/* MOBILE — PASS 2 */

@media (max-width: 800px) {

    .hero {
        background:
            linear-gradient(
                0deg,
                rgba(5,6,8,.97) 0%,
                rgba(5,6,8,.67) 72%,
                rgba(5,6,8,.50) 100%
            ),
            url("../images/installations/20240129_163705.jpg")
            center / cover no-repeat;
    }

    .installation-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .install-card,
    .install-card.featured {
        height: 300px;
        grid-row: auto;
    }

    .testing-heading,
    .testing-media,
    .testing-bottom {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .test-feature,
    .test-feature img {
        min-height: 300px;
        height: 300px;
    }
}


/* PASS 2.1 — TESTING HOMEPAGE FEATURE */

.testing-media-single {
    grid-template-columns: 1fr;
}

.testing-hero-image {
    min-height: 520px;
}

.testing-hero-image img {
    height: 520px;
    object-position: center;
}

@media (max-width: 800px) {
    .testing-hero-image,
    .testing-hero-image img {
        min-height: 320px;
        height: 320px;
    }
}


/* =========================================================
   OVERLOAD & FAILURE TESTING ARCHIVE
   ========================================================= */

.testing-page {
    background: #f4f4f1;
}

.testing-page-header {
    position: absolute;
}


/* HERO */

.archive-hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(
            circle at 80% 50%,
            #353a42 0,
            #17191d 34%,
            #08090b 72%
        );
}

.archive-hero::after {
    content: "TEST";
    position: absolute;
    right: -2vw;
    bottom: -10vw;
    color: rgba(255,255,255,.025);
    font-size: 31vw;
    line-height: .8;
    font-weight: 900;
    letter-spacing: -.08em;
    pointer-events: none;
}

.archive-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: end;
    padding-top: 120px;
}

.archive-hero h1 {
    max-width: 850px;
}

.archive-hero-copy {
    max-width: 690px;
    color: #bdc1c7;
    font-size: 1.3rem;
}

.archive-year {
    border-left: 1px solid #3a3e45;
    padding: 15px 0 15px 30px;
}

.archive-year span,
.archive-year strong {
    display: block;
}

.archive-year span {
    color: var(--accent);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .18em;
}

.archive-year strong {
    margin-top: 5px;
    font-size: 2rem;
}


/* STORY */

.testing-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.story-copy {
    max-width: 650px;
}

.archive-note {
    margin-top: 45px;
    padding: 25px;
    border-left: 3px solid var(--accent);
    background: #e7e7e2;
}

.archive-note strong {
    display: block;
    margin-bottom: 8px;
}

.archive-note p {
    margin: 0;
    color: #5e6268;
    font-size: .9rem;
}


/* GIANT ARCHIVE IMAGE */

.archive-image-section {
    position: relative;
    height: min(72vh, 750px);
    overflow: hidden;
    background: #111;
}

.archive-image-section > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-image-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,.82),
            transparent 55%
        );
}

.archive-image-caption {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 40px;
    color: white;
}

.archive-image-caption span {
    display: block;
    color: var(--accent);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .18em;
}

.archive-image-caption strong {
    display: block;
    margin-top: 6px;
    font-size: clamp(1.6rem, 4vw, 3rem);
}


/* TEST CATEGORIES */

.test-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 55px;
    border-top: 1px solid #c9c9c5;
    border-left: 1px solid #c9c9c5;
}

.test-category-grid article {
    position: relative;
    min-height: 260px;
    padding: 35px;
    border-right: 1px solid #c9c9c5;
    border-bottom: 1px solid #c9c9c5;
}

.category-number {
    display: block;
    margin-bottom: 45px;
    color: var(--accent);
    font-size: .7rem;
    font-weight: 900;
}

.test-category-grid p {
    color: #656970;
}


/* TEST PROCESS */

.testing-process h2 {
    max-width: 950px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 60px;
    border-top: 1px solid var(--line);
}

.process-grid article {
    min-height: 260px;
    padding: 35px 30px;
    border-right: 1px solid var(--line);
}

.process-grid article:first-child {
    border-left: 1px solid var(--line);
}

.process-grid span {
    color: var(--accent);
    font-size: .7rem;
    font-weight: 900;
}

.process-grid h3 {
    margin-top: 45px;
}

.process-grid p {
    color: #9fa4ac;
}


/* SELECTED TESTS */

.selected-heading {
    display: grid;
    grid-template-columns: 1fr .7fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 55px;
}

.selected-heading > p {
    color: #696d73;
}

.test-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.archive-test-card {
    background: white;
    border: 1px solid #d6d6d1;
}

.test-card-visual,
.test-card-placeholder {
    height: 330px;
    overflow: hidden;
    background: #15171a;
}

.test-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.test-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, #202329, #0e0f11);
}

.test-card-placeholder span {
    color: #363a41;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -.06em;
}

.test-card-body {
    padding: 30px;
}

.test-card-body > span {
    color: var(--accent);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .15em;
}

.test-card-body h3 {
    margin-top: 7px;
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.test-card-body p {
    color: #62666c;
}

.test-card-body small {
    color: #989ca1;
}


/* TIMELINE */

.archive-timeline-section {
    background: #e7e7e2;
}

.archive-timeline {
    max-width: 900px;
    margin-top: 60px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 90px 30px 1fr;
    gap: 20px;
    min-height: 150px;
}

.timeline-item > strong {
    font-size: 1.25rem;
}

.timeline-item > span {
    position: relative;
    width: 1px;
    background: #bbbcb8;
}

.timeline-item > span::before {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    left: -5px;
    top: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-item h3 {
    margin-bottom: 7px;
}

.timeline-item p {
    color: #676b70;
}


/* RETURN */

.archive-return-inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 100px;
    align-items: center;
}

.archive-return-inner p {
    color: #aaaeb5;
}

.archive-return-inner .button {
    margin-top: 15px;
}


/* TESTING ARCHIVE MOBILE */

@media (max-width: 800px) {

    .archive-hero {
        min-height: 82vh;
    }

    .archive-hero-inner,
    .testing-story-grid,
    .selected-heading,
    .archive-return-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .archive-year {
        display: none;
    }

    .archive-image-section {
        height: 420px;
    }

    .test-category-grid,
    .process-grid,
    .test-card-grid {
        grid-template-columns: 1fr;
    }

    .process-grid article,
    .process-grid article:first-child {
        border-left: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .test-card-visual,
    .test-card-placeholder {
        height: 260px;
    }

    .timeline-item {
        grid-template-columns: 65px 20px 1fr;
        gap: 12px;
    }
}


/* =========================================================
   PTM PHONE / CLICK-TO-CALL
   ========================================================= */

.header-phone {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    transition: color .2s ease;
}

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

.mobile-call-bar {
    display: none;
}


/* MOBILE CLICK-TO-CALL BAR */

@media (max-width: 800px) {

    body {
        padding-bottom: 72px;
    }

    .mobile-call-bar {
        position: fixed;
        z-index: 9999;
        left: 0;
        right: 0;
        bottom: 0;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;

        min-height: 72px;
        padding: 10px 18px;

        background: var(--accent);
        color: #fff;

        text-decoration: none;
        box-shadow: 0 -8px 30px rgba(0,0,0,.30);
    }

    .mobile-call-bar span {
        font-size: .65rem;
        font-weight: 800;
        letter-spacing: .08em;
    }

    .mobile-call-bar strong {
        font-size: 1.2rem;
        white-space: nowrap;
    }
}

/* PTM LAUNCH CONTACT SECTION */

.launch-contact {
    padding: 95px 0;
    background: #101114;
    color: white;
    text-align: center;
}

.launch-contact h2 {
    color: white;
    margin: 15px 0 20px;
}

.launch-contact p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: #c4c6ca;
}

.launch-contact-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.launch-call,
.launch-text {
    display: inline-block;
    padding: 18px 30px;
    text-decoration: none;
    font-weight: 900;
}

.launch-call {
    background: #e63946;
    color: white;
}

.launch-text {
    border: 1px solid #777;
    color: white;
}

.launch-call:hover {
    background: #c92635;
}

.launch-text:hover {
    background: #292b30;
}

@media (max-width: 600px) {
    .launch-contact-actions {
        flex-direction: column;
    }
}
/* PTM CONSTRUCTION NOTICE */
.ptm-construction-notice {
    position: relative;
    z-index: 100;
    box-sizing: border-box;
    width: 100%;
    padding: 8px 16px;
    background: #1b1b1b;
    border-top: 3px solid #facc15;
    border-bottom: 3px solid #facc15;
    color: #e5e5e5;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

.ptm-construction-title {
    color: #facc15;
    font-weight: 800;
    margin-right: 10px;
}

.ptm-construction-message {
    color: #e5e5e5;
}

@media (max-width: 600px) {
    .ptm-construction-notice {
        font-size: 11px;
        padding: 7px 10px;
    }

    .ptm-construction-title,
    .ptm-construction-message {
        display: block;
        margin: 0;
    }
}
