:root {
    --bg: #ffffff;
    --bg-alt: #f7f5f2;
    --text: #2e2e2e;
    --text-light: #6e6e6e;
    --heading: #1a1a1a;
    --accent: #c07528;
    --accent-hover: #a56320;
    --border: #e4e0db;
    --border-light: #eceae6;
    --nav-bg: rgba(255, 255, 255, 0.96);
    --max-w: 1100px;
    --sec-pad: 100px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased
}

img {
    max-width: 100%;
    display: block
}

ul {
    list-style: none
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s
}

a:hover {
    color: var(--accent-hover)
}

h1,
h2,
h3,
h4 {
    color: var(--heading);
    font-weight: 700;
    line-height: 1.2
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em
}

h2 {
    font-size: 2rem
}

h3 {
    font-size: 1.1rem;
    font-weight: 600
}

p {
    color: var(--text-light);
    margin-bottom: 1.25rem
}

p:last-child {
    margin-bottom: 0
}

.section-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: block
}

.section-heading {
    margin-bottom: 1.25rem
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 620px;
    margin-bottom: 3rem;
    line-height: 1.8
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem
}

section {
    padding: var(--sec-pad) 0
}

/* NAV */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: 60px
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden
}

.nav-logo:hover {
    color: var(--heading)
}

.nav-logo-horns {
    width: 28px;
    height: 28px;
    object-fit: contain;
    /* White PNG → orange via CSS filter */
    filter: brightness(0) saturate(100%) invert(49%) sepia(60%) saturate(600%) hue-rotate(8deg) brightness(96%);
    animation: horns-sweep 1.2s cubic-bezier(.25, .1, .25, 1) forwards;
    position: relative;
    z-index: 2
}

.nav-logo-text {
    position: relative;
    width: 160px;
    height: 1.4rem
}

.nav-text-bb,
.nav-text-name {
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--heading);
    white-space: nowrap;
    transition: opacity .35s ease, transform .35s ease;
    position: absolute;
    top: 0;
    left: 0
}

.nav-text-bb {
    opacity: 0;
    animation: text-reveal .6s .9s cubic-bezier(.25, .1, .25, 1) both
}

/* After scroll swap, JS removes animation and controls visibility directly */
.nav-text-bb.no-anim {
    animation: none
}

.nav-text-name {
    opacity: 0;
    transform: translateY(8px)
}

/* Horns sweep: start off-screen left, slide to resting position */
@keyframes horns-sweep {
    0% {
        transform: translateX(-120px);
        opacity: 0
    }

    30% {
        opacity: 1
    }

    100% {
        transform: translateX(0)
    }
}

/* Text reveal: fade in after horns arrive */
@keyframes text-reveal {
    0% {
        opacity: 0;
        transform: translateX(-10px)
    }

    100% {
        opacity: 1;
        transform: translateX(0)
    }
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center
}

.nav-links a {
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: .02em;
    transition: color .2s
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--heading)
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--heading);
    font-size: 1.4rem;
    cursor: pointer;
    padding: .25rem
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 60px;
    background: var(--bg);
    overflow: hidden
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    filter: invert(1) sepia(.25) saturate(2) hue-rotate(345deg);
    opacity: .04;
    pointer-events: none
}

.hero .container {
    position: relative;
    z-index: 1
}

.hero-content {
    max-width: 660px
}

.hero h1 {
    margin-bottom: 1.25rem
}

.hero-roles {
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2rem;
    display: block
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-light);
    max-width: 540px
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-align: center;
    opacity: .35
}

.hero-scroll span {
    display: block;
    margin-bottom: .6rem
}

.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 36px;
    background: var(--text-light);
    margin: 0 auto
}

/* ABOUT */
.about {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border)
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center
}

.about-text p {
    font-size: .95rem;
    line-height: 1.85
}

.about-text a {
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: 20% top
}

/* SERVICE GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin-top: 2.5rem
}

.service-card {
    background: var(--bg);
    padding: 2rem 2rem 2.25rem;
    transition: background .2s
}

.service-card:hover {
    background: var(--bg-alt)
}

.service-card h3 {
    margin-bottom: .75rem;
    font-size: .95rem
}

.service-card p {
    font-size: .85rem;
    line-height: 1.7;
    margin-bottom: 0
}

.service-card .example-link {
    display: inline-block;
    margin-top: .75rem;
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer
}

/* SOFTWARE */
.software {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border)
}

.software-intro {
    max-width: 680px;
    margin-bottom: 2.5rem
}

.software-intro p {
    font-size: .95rem;
    line-height: 1.85
}

.feature-list {
    max-width: 780px
}

.feature-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    color: var(--text);
    line-height: 1.7;
    display: flex;
    gap: 1rem;
    align-items: baseline
}

.feature-item:first-child {
    border-top: 1px solid var(--border)
}

.feature-marker {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--accent);
    margin-top: .55rem
}

.tool-cta {
    margin-top: 2rem;
    font-size: .95rem
}

.tool-cta a {
    font-weight: 600;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px
}

/* TRAINING */
.training-items {
    max-width: 680px
}

.training-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border)
}

.training-item:first-child {
    border-top: 1px solid var(--border)
}

.training-item h3 {
    margin-bottom: .4rem;
    font-size: .95rem
}

.training-item p {
    font-size: .85rem;
    line-height: 1.7;
    margin-bottom: 0
}

.training-note {
    margin-top: 2rem;
    font-size: .85rem;
    color: var(--text-light);
    font-style: italic
}

/* FOOTER */
.site-footer {
    padding: 80px 0 40px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border)
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem
}

.footer-block h4 {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: .75rem
}

.footer-block p,
.footer-block a {
    font-size: .9rem;
    color: var(--text);
    line-height: 1.8
}

.footer-block a:hover {
    color: var(--accent)
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    color: var(--text-light)
}

.footer-bottom a {
    color: var(--text-light)
}

.footer-bottom a:hover {
    color: var(--heading)
}

/* VIDEO MODAL */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center
}

.video-modal.active {
    display: flex
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    cursor: pointer
}

.video-modal-content {
    position: relative;
    background: var(--bg);
    padding: 2rem;
    max-width: 820px;
    width: 92%;
    z-index: 1
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1
}

.video-modal-close:hover {
    color: var(--heading)
}

.video-modal-title {
    font-size: 1.1rem;
    margin-bottom: .25rem
}

.video-modal-year {
    font-size: .75rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 1.25rem
}

.video-modal-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000
}

/* SUBPAGE CONTENT */
.page-content {
    padding: 120px 0 var(--sec-pad);
    max-width: 780px;
    margin: 0 auto
}

.page-content .container {
    max-width: 780px
}

.page-content h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem
}

.page-content .page-lead {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8
}

.page-content .page-image {
    margin: 0 0 2.5rem;
    max-width: 480px
}

.page-content p {
    font-size: .95rem;
    line-height: 1.85
}

.page-content h3 {
    margin: 2rem 0 .75rem
}

.page-content ul {
    margin-bottom: 1.5rem
}

.page-content ul li {
    font-size: .9rem;
    color: var(--text-light);
    padding: .35rem 0;
    padding-left: 1.25rem;
    position: relative
}

.page-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .85rem;
    width: 5px;
    height: 5px;
    background: var(--accent)
}

.page-btn {
    display: inline-block;
    padding: .85rem 2rem;
    background: var(--accent);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    transition: background .2s;
    margin-top: 1rem
}

.page-btn:hover {
    background: var(--accent-hover);
    color: #fff
}

/* RESPONSIVE */
@media(max-width:900px) {
    :root {
        --sec-pad: 72px
    }

    h1 {
        font-size: 2.5rem
    }

    h2 {
        font-size: 1.6rem
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem
    }

    .about-image {
        order: -1
    }

    .about-image img {
        aspect-ratio: 16/9
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:600px) {
    :root {
        --sec-pad: 56px
    }

    h1 {
        font-size: 2rem
    }

    h2 {
        font-size: 1.35rem
    }

    .container {
        padding: 0 1.25rem
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem 2rem;
        gap: 1rem
    }

    .nav-links.open {
        display: flex
    }

    .nav-toggle {
        display: block
    }

    .services-grid {
        grid-template-columns: 1fr
    }

    .service-card {
        padding: 1.5rem
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-bottom {
        flex-direction: column;
        gap: .75rem;
        text-align: center
    }

    .hero-scroll {
        display: none
    }

    .video-modal-content {
        padding: 1.25rem;
        width: 96%
    }
}