:root {
    --orange: #f68a18;
    --ink: #17191b;
    --paper: #f7f6f2;
    --muted: #6d6d69;
    --line: #deddd7;
}

* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--paper);
    color: #17191b;
    font-size: 16px;
    line-height: 1.6;
}

img,
video,
iframe {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: "Playfair Display", serif;
    color: #17191b;
}

header.text-white h1,
header.text-white h2,
header.text-white .serif,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white .serif,
.text-white .section-title {
    color: #fff;
}

.orange {
    color: var(--orange);
}

.bg-ink {
    background: #17191b;
}

.container-x {
    width: min(1180px, calc(100% - 32px));
    max-width: 100%;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .container-x {
        width: min(1180px, calc(100% - 56px));
    }
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 0.22em;
    font-weight: 700;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #17191b;
}

#desktopNav a {
    font-size: 15px;
    font-weight: 500;
}

#mobileNav,
#mobileNav a {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 500;
}

#menuBtn {
    color: #f68a18 !important;
    font-size: 22px;
    z-index: 60;
}

.site-fabs {
    z-index: 60;
}

#scrollTopBtn.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

@media (max-width: 767px) {
    #mainNav {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 70;
        padding-top: calc(10px + env(safe-area-inset-top, 0px));
        padding-bottom: 10px;
        background: rgba(23, 25, 27, 0.96) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    }

    #mainNav .site-logo {
        height: 36px;
        max-width: 160px;
        object-fit: contain;
    }

    #menuBtn {
        display: inline-flex !important;
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        background: #17191b !important;
        border: 1px solid #f68a18 !important;
        color: #f68a18 !important;
    }

    #mobileNav {
        top: calc(62px + env(safe-area-inset-top, 0px));
        z-index: 65;
        background: rgba(23, 25, 27, 0.97);
        border: 1px solid rgba(255, 255, 255, .08);
        max-height: min(80vh, calc(100dvh - 80px));
    }

    #mobileNav.max-h-0 {
        pointer-events: none;
    }

    #home {
        min-height: 560px !important;
        width: 100%;
    }

    #home h1 {
        font-size: clamp(32px, 9vw, 44px) !important;
        line-height: 1.05 !important;
        word-break: break-word;
    }

    .partner-strip,
    .partner-track {
        max-width: 100%;
    }

    .partner-track a,
    .partner-track span {
        padding: 0 1.2rem;
    }
}

.hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, var(--hero-dim, 0.78)) 0%,
        rgba(0, 0, 0, calc(var(--hero-dim, 0.78) * 0.72)) 35%,
        rgba(0, 0, 0, calc(var(--hero-dim, 0.78) * 0.14)) 72%,
        rgba(0, 0, 0, calc(var(--hero-dim, 0.78) * 0.24)) 100%
    );
}

/* Background media slides (image or video) cross-fade as one slider */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.9s ease,
        visibility 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: 0.25s ease;
}

.hero-dot.is-active {
    background: var(--orange);
    width: 28px;
}

.glass {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
}

.service-card {
    transition: 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: #202326;
}

.project-card img,
.video-card img {
    transition: transform 0.5s ease;
}

.project-card:hover img,
.video-card:hover img {
    transform: scale(1.05);
}

.story-shell {
    background: #0b0d0f;
    border: 1px solid #2a2c2f;
    border-radius: 5px;
    overflow: hidden;
}

.story-photo {
    min-height: 220px;
}

.story-photo img {
    transition:
        transform 0.5s ease,
        opacity 0.18s ease;
}

.story-shell:hover .story-photo img {
    transform: scale(1.035);
}

.story-copy {
    position: relative;
}

.story-copy p {
    transition: opacity 0.18s ease;
}

.story-copy:before {
    content: "";
    position: absolute;
    left: 12px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: var(--orange);
    border-radius: 2px;
}

@media (max-width: 767px) {
    .story-shell {
        overflow: visible;
        margin-top: 72px;
        padding-bottom: 62px;
    }

    .story-slide {
        display: block;
        position: relative;
        min-height: 0;
        padding-top: 0;
    }

    .story-photo {
        position: absolute;
        z-index: 3;
        left: 50%;
        top: 0;
        width: 118px;
        height: 118px;
        min-height: 0;
        margin: 0;
        transform: translate(-50%, -42%);
        border-radius: 18px;
        overflow: hidden;
        border: 0;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .32);
        background: #1d1f21;
    }

    .story-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .story-shell:hover .story-photo img {
        transform: none;
    }

    .story-copy {
        padding: 64px 22px 28px !important;
    }

    .story-copy:before {
        top: 56px;
    }
}

.story-arrow {
    width: 34px;
    height: 34px;
    border: 1px solid var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.story-arrow.active {
    background: var(--orange);
    color: #111;
}

.team-feature {
    background: #17191b;
    border: 1px solid #2a2c2f;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.team-feature:before {
    content: "";
    position: absolute;
    left: 12px;
    top: 12px;
    bottom: 54px;
    width: 3px;
    background: var(--orange);
    border-radius: 2px;
    z-index: 2;
}

.team-feature img {
    height: 400px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.3s;
}

.team-feature:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.team-mini {
    background: #f0efe9;
    border: 1px solid #e2e0d8;
    border-radius: 4px;
    overflow: hidden;
}

.team-mini img {
    height: 205px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.3s;
}

.team-mini:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.role-pill {
    display: inline-flex;
    background: var(--orange);
    color: #17191b;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.process-line {
    height: 1px;
    background: #c7c6c1;
    flex: 1;
}

.process-track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    gap: 8px;
}

.process-track:before {
    content: "";
    position: absolute;
    left: 36px;
    right: 36px;
    top: 28px;
    height: 1px;
    background: #d4d3ce;
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.process-node {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f68a18;
    color: #17191b;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(246, 138, 24, .28);
}

.process-label {
    margin-top: 14px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    color: #17191b;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq.open .faq-answer {
    max-height: 280px;
}

.faq.open .plus {
    transform: rotate(45deg);
}

.plus {
    transition: transform 0.25s;
}

.input-dark {
    background: #25282a;
    border: 1px solid #3d4042;
    color: white;
    outline: none;
}

.input-dark:focus {
    border-color: var(--orange);
}

.input-dark {
    font-size: 15px;
}

.faq-toggle {
    font-size: 18px;
    color: #17191b;
}

.faq-answer p {
    font-size: 16px;
    color: #5c5c58;
    line-height: 1.7;
}

.text-gray-500,
.text-gray-600 {
    color: #5c5c58;
}

.text-\[7px\] {
    font-size: 12px !important;
}
.text-\[8px\] {
    font-size: 13px !important;
}
.text-\[9px\] {
    font-size: 13px !important;
}
.text-\[10px\] {
    font-size: 14px !important;
}
.text-\[11px\] {
    font-size: 15px !important;
}

.quote-mark {
    font-family: Georgia, serif;
    font-size: 50px;
    line-height: 0.5;
    color: var(--orange);
}

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

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

.wave-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: wave-anim 2s infinite ease-out;
    pointer-events: none;
}

.wave-ring:nth-child(2) {
    animation-delay: 0.5s;
}

.wave-ring:nth-child(3) {
    animation-delay: 1s;
}

@keyframes wave-anim {
    0% {
        width: 56px;
        height: 56px;
        opacity: 0.8;
    }

    100% {
        width: 110px;
        height: 110px;
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .container-x {
        width: min(100% - 30px, 1180px);
    }

    .hero {
        min-height: 760px;
    }

    .process-line {
        display: none;
    }

    .process-track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }

    .process-track:before {
        display: none;
    }

    .process-node {
        width: 52px;
        height: 52px;
    }

    .process-label {
        font-size: 14px;
    }
}
