/* ------------------------------------- */
/* Components */
/* ------------------------------------- */



/* ------ */
/* Header */
/* ------ */
#header {
    height: var(--h-height);
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;

    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-bottom: 6px solid var(--color-tertiary);
}

.header-inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--h-height);
}

.header-logo{
    font-size: var(--text-h4);
    margin-bottom: 0;
    transition: all ease 0.3s;
}

.header-logo:hover{
    color: var(--color-tertiary);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-light);
    border-radius: 2px;
}

.nav-menu{
    display: none;
}

.nav-button{
    transition: all ease 0.3s;

}

.nav-button:hover{
    color: var(--color-tertiary);
}

@media(min-width: 1024px){
    .hamburger{
        display: none;
    }

    .nav-menu{
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        min-width: 450px;
        color: var(--color-text-light);
    }
}


/* ---------------- */
/* SLIDE OUT MENU   */
/* ---------------- */

.hamburger {
    position: relative;
    z-index: 1001;
    cursor: pointer;
}

.hamburger span {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger to cross */

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}


.slide-menu {
    position: fixed;
    top: calc(var(--h-height) + 5px);
    right: 0;
    width: 100%;
    height: 100vh;
    overflow-y: hidden;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-m);
    background-color: var(--color-primary);
    z-index: 1002;

    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;

    transition:
        transform 0.4s ease,
        visibility 0s linear 0.4s;
}

.slide-menu-inner{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    font-size: var(--text-h6);
    height: 100%;
}

.slide-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;

    transition:
        transform 0.4s ease,
        visibility 0s;
}


.slide-menu-link {
    display: block;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: var(--text-h5);
    padding: var(--space-s) 0;
    border-bottom: 1px solid var(--color-secondary);
    transition: all ease 0.3s;
}

.slide-menu-link:hover {
    color: var(--color-tertiary);
}

/* Desktop: hide slide-out and hamburger */

@media (min-width: 1024px) {
    .slide-menu,
    .hamburger {
        display: none;
    }
}




/* ------------------------------------- */
/* SITE FOOTER                           */
/* ------------------------------------- */

.site-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-top: 5px solid var(--color-tertiary);
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-s);
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
}

/* Main footer layout */

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
}

/* Brand column */

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-m);
}

.footer-logo {
    display: inline-block;
    width: 100%;
    max-width: 230px;
    transition: opacity 0.25s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.site-footer .footer-tagline {
    max-width: 320px;
    margin-bottom: 0;
    color: #e0dcdc;
    font-family: var(--font-primary);
    font-size: var(--text-h6);
    font-weight: 500;
    line-height: var(--lh-heading);
}

.footer-location {
    color: #aaa4a4;
    font-family: var(--font-secondary);
    font-size: var(--text-xs);
    line-height: var(--lh-body);
}

/* Navigation and contact columns */

.footer-navigation,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-s);
    min-width: 0;
}

.site-footer .footer-heading {
    margin-bottom: var(--space-2xs);
    color: var(--color-text-light);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: var(--lh-heading);
}

.footer-navigation a,
.footer-contact-link,
.footer-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #c9c4c4;
    font-family: var(--font-secondary);
    font-size: var(--text-xs);
    line-height: var(--lh-body);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-navigation a:hover,
.footer-email:hover {
    color: var(--color-tertiary);
}

.site-footer .footer-contact > p {
    max-width: 340px;
    margin-bottom: var(--space-xs);
    color: #c9c4c4;
    font-size: var(--text-xs);
    line-height: var(--lh-body);
}

.site-footer .footer-contact-link {
    padding-bottom: 5px;
    border-bottom: 1px solid var(--color-tertiary);
    color: var(--color-text-light);
    font-weight: 600;
}

.footer-contact-link span {
    color: var(--color-tertiary);
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.footer-contact-link:hover {
    color: var(--color-tertiary);
}

.footer-contact-link:hover span {
    transform: translate(3px, -3px);
}

.footer-email {
    margin-top: var(--space-2xs);
}

/* Copyright bar */

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-s);
    padding-top: var(--space-m);
    border-top: 1px solid #484444;
}

.site-footer .footer-copyright {
    margin-bottom: 0;
    color: #aaa4a4;
    font-size: var(--text-xs);
    line-height: var(--lh-body);
}

.footer-back-top {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-light);
    font-family: var(--font-secondary);
    font-size: var(--text-xs);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-back-top span {
    color: var(--color-tertiary);
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.footer-back-top:hover {
    color: var(--color-tertiary);
}

.footer-back-top:hover span {
    transform: translateY(-3px);
}

/* Tablet */

@media (min-width: 600px) {
    .footer-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: var(--space-xl);
        row-gap: var(--space-2xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Desktop */

@media (min-width: 1024px) {
    .site-footer {
        padding-top: var(--space-2xl);
    }

    .footer-main {
        grid-template-columns: minmax(0, 1.3fr) minmax(150px, 0.7fr)
                               minmax(220px, 0.9fr);
        column-gap: var(--space-2xl);
        row-gap: var(--space-xl);
        padding-bottom: var(--space-2xl);
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .footer-logo,
    .footer-navigation a,
    .footer-contact-link,
    .footer-email,
    .footer-contact-link span,
    .footer-back-top,
    .footer-back-top span {
        transition: none;
    }
}



/* ------------------------------------- */
/* Home */
/* ------------------------------------- */

/* ---- */
/* Hero */
/* ---- */

.hero-section {
    min-height: var(--av);
}

#hero {
    width: 100%;
}

.hero{
    position: relative;
}


.hero-content{
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    max-width: 600px;

}

.hero-content > h1, p{
    display: block;
    margin-bottom: 0;

}

.hero-buttons{
    display: flex;
    gap: var(--space-s);
}

.hero-img{
    display: none;
}

.hero {
    padding-block: var(--space-l);
}

.building {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: grayscale(.72) contrast(1.04);
    animation: float 7s ease-in-out infinite;
    mix-blend-mode: multiply;
}

@media (max-width: 768px) {
    .hero {
        padding-top: var(--space-m);
        padding-bottom: var(--space-l);
    }
}

@media(min-width:1024px){
    .hero{
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: var(--space-m);

    }

    .hero-img{
        display: flex;
        align-items: center;
        justify-content: flex-end;
        place-self: center;
        align-self: center;
        height: var(--av);
        width: 100%;
    }

    .hero-img img{
        object-fit: cover;
        object-position: right center;
        min-height: 250px;
        max-height: 600px;
    }

    
}

/* ----- */
/* About */
/* ----- */
.about{
    display: flex;
    flex-direction: column;
    padding-bottom: var(--space-l);    
}

.about-content h2, p, h5{
    margin-bottom: 0;
}

.about-content{
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.about-image{
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.about-image > img{
    object-fit: cover;
    object-position: center;
    
}

.about-description{
    display: flex;
    flex-direction: column;
    order: 1;
    gap: var(--space-s);
}

@media(min-width: 1024px){
    .about-content{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-m);
    }
    
    .about-image{
        min-width: 400px;
    }
}

/* --------- */
/* Portfolio */
/* --------- */

.portfolio{
    display: flex;
    flex-direction: column;
    padding-bottom: var(--space-m);
}

.portfolio h5{
    margin-bottom: 0;
}

.portfolio-img{
    width: 100%;
    max-height: 400px;
    overflow: hidden;

}

.portfolio-img > img{
    object-fit: cover;
    object-position: center;
}

.portfolio-content{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--space-m);
}

.portfolio-description{
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    order: 1;
}

@media(min-width: 1024px){
    .portfolio-content{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-m);
    }

    .portfolio-description{
        order: unset;
        justify-content: flex-start;
    }
    
    .portfolio-img{
        min-width: 400px;
        min-height: 400px;
        grid-column: 2 / 3;
    }
}

/* -------------- */
/* Knowledge Base */
/* -------------- */


.kb{
    background-color: var(--color-tertiary);
    
}

.knowledge-base{
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    color: var(--color-text-light);
    padding-top: var(--space-l);
    padding-bottom: var(--space-l);
    
}

.knowledge-base h5, h1, p{
    margin-bottom: 0;
}

.knowledge-base-content{
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.kb-content-card{
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.cc-img{
    width: 100%;
    min-height: 300px;
    margin-bottom: 0;
}

.cc-img > img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    margin-bottom: 0;
    display: block;
}

@media(min-width: 729px){
    .knowledge-base-content{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}

/* ---- */
/* Blog */
/* ---- */

.blog{
    background-color: var(--color-text-light);
    color: var(--color-primary);
}

.blog h2, h5, p{
    margin-bottom: 0;
}

.blog button{
    
}

.knowledge-base.blog{
    color: var(--color-primary);
}


/* ------------------------------------- */
/* CALL TO ACTION                        */
/* ------------------------------------- */

.cta-section {
    position: relative;
    overflow: hidden;
    padding-block: var(--space-2xl);
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.cta-section .cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: var(--space-xl);
    text-align: left;
}

/* Main content */

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-m);
    max-width: 720px;
}

.cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-secondary);
    font-family: var(--font-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
}

.cta-eyebrow::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 4px;
    flex-shrink: 0;
    background-color: var(--color-tertiary);
}

.cta-content h2 {
    max-width: 700px;
    margin-bottom: 0;
    color: var(--color-text-light);
    font-size: var(--text-h1);
    line-height: var(--lh-display);
    letter-spacing: -0.045em;
}

.cta-period {
    color: var(--color-tertiary);
}

.cta-content > p {
    max-width: 620px;
    margin-bottom: 0;
    color: #dedada;
    font-size: var(--text-p);
    line-height: var(--lh-body);
}

.cta-content > .cta-secondary-text {
    color: #aaa4a4;
    font-size: var(--text-xs);
}

/* CTA button */

.cta-section .cta-button {
    gap: var(--space-l);
    margin-top: var(--space-xs);
    padding: var(--space-s) var(--space-m);
    border: 2px solid var(--color-tertiary);
    background-color: var(--color-tertiary);
    color: var(--color-text-light);
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.cta-section .cta-button:hover {
    background-color: transparent;
    color: var(--color-text-light);
    box-shadow: 5px 5px 0 var(--color-tertiary);
    transform: translate(-2px, -2px);
}

.cta-arrow {
    display: inline-block;
    font-size: 1.4em;
    line-height: 1;
    transition: transform 0.25s ease;
}

.cta-section .cta-button:hover .cta-arrow {
    transform: translate(3px, -3px);
}

/* Bauhaus-inspired graphic */

.cta-graphic {
    position: relative;
    display: none;
    width: 100%;
    max-width: 390px;
    aspect-ratio: 1 / 1;
    justify-self: end;
    overflow: hidden;
    border: 1px solid #484444;
    background-color: #242121;
    background-image:
        linear-gradient(#ffffff0b 1px, transparent 1px),
        linear-gradient(90deg, #ffffff0b 1px, transparent 1px);
    background-size: 24px 24px;
}

.cta-graphic-square {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 48%;
    height: 48%;
    border: 3px solid var(--color-secondary);
}

.cta-graphic-circle {
    position: absolute;
    right: 12%;
    bottom: 17%;
    width: 46%;
    aspect-ratio: 1;
    border: 3px solid var(--color-tertiary);
    border-radius: 50%;
}

.cta-graphic-line {
    position: absolute;
    top: 50%;
    left: 7%;
    width: 86%;
    height: 5px;
    background-color: var(--color-tertiary);
    transform: rotate(-45deg);
    transform-origin: center;
}

.cta-graphic-label {
    position: absolute;
    bottom: var(--space-m);
    left: var(--space-m);
    padding: var(--space-2xs) var(--space-xs);
    background-color: var(--color-primary);
    color: var(--color-text-light);
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.cta-graphic-number {
    position: absolute;
    top: var(--space-s);
    right: var(--space-m);
    color: var(--color-tertiary);
    font-family: var(--font-primary);
    font-size: var(--text-h4);
    font-weight: 700;
}

/* Tablet and desktop */

@media (min-width: 769px) {
    .cta-section {
        padding-block: var(--space-3xl);
    }

    .cta-section .cta {
        grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
        gap: var(--space-2xl);
    }

    .cta-graphic {
        display: block;
    }
}

/* Smaller screens */

@media (max-width: 480px) {
    .cta-section {
        padding-block: var(--space-xl);
    }

    .cta-section .cta {
        gap: var(--space-l);
    }

    .cta-content {
        gap: var(--space-s);
    }

    .cta-content h2 {
        font-size: clamp(2.8rem, 12vw, 3.6rem);
    }

    .cta-break {
        display: none;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .cta-section .cta-button,
    .cta-arrow {
        transition: none;
    }

    .cta-section .cta-button:hover {
        transform: none;
    }
}



/* ------------------------------------- */
/* About */
/* ------------------------------------- */

.a-hero{
    min-height: calc(var(--av) / 2);
    display: flex;
    flex-direction: column;
}

.a-hero h1, h5{
    color: var(--color-tertiary);
}


/* ------------------------------------- */
/* ABOUT — JOURNEY TIMELINE              */
/* ------------------------------------- */

.journey-section {
    padding-block: var(--space-l);
}

.journey {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.journey-intro-heading {
    margin-bottom: 0;
}

.journey-intro {
    margin-bottom: var(--space-l);
}

/* Timeline structure */

.journey-timeline {
    --journey-line: var(--color-tertiary);

    display: flex;
    flex-direction: column;
    gap: var(--space-l);

    position: relative;
    padding-bottom: var(--space-s);
}

/* Each milestone */

.journey-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: var(--space-s);
    position: relative;
    min-width: 0;
}

/* Timeline rail */

.journey-marker {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.journey-marker::after {
    content: "";
    position: absolute;
    top: 25px;
    bottom: calc(var(--space-l) * -1);
    left: 50%;
    width: 2px;
    background: var(--journey-line);
    opacity: 0.55;
    transform: translateX(-50%);
}

.journey-item:last-child .journey-marker::after {
    display: none;
}

.journey-node {
    position: relative;
    z-index: 1;
    display: block;
    width: 14px;
    height: 14px;
    margin-top: 5px;
    border: 3px solid var(--color-tertiary);
    background: var(--color-bg);
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--color-bg);
}

.journey-index {
    position: absolute;
    top: 27px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-tertiary);
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: 700;
}

/* Milestone content */

.journey-card {
    min-width: 0;
    padding: var(--space-m);
    border: 1px solid var(--color-secondary);
    border-top: 4px solid var(--color-tertiary);
    background: var(--color-bg);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-s);

    transition: box-shadow 0.25s ease,
                transform 0.25s ease;
}

.journey-card:hover {
    box-shadow: 5px 5px 0 var(--color-primary);
    transform: translate(-2px, -2px);
}

.journey-period {
    display: inline-block;
    color: var(--color-tertiary);
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.journey-card h3 {
    font-size: var(--text-h5);
    line-height: var(--lh-heading);
    margin-bottom: 0;
}

.journey-card h5 {
    font-size: 1rem;
    margin-bottom: 0;
}

.journey-card p {
    margin-bottom: 0;
}

.journey-project {
    width: 100%;
    padding-top: var(--space-s);
    border-top: 1px solid var(--color-secondary);
}

.journey-project-label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--color-tertiary);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.journey-project ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-m);
    padding-left: 1.1rem;
    list-style: square;
}

.journey-project li {
    padding-left: 2px;
    font-size: var(--text-p);
    line-height: var(--lh-body);
}

.journey-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-2xs);
}

.journey-tags span {
    display: inline-block;
    padding: 5px 9px;
    border: 1px solid var(--color-secondary);
    font-size: var(--text-xs);
    line-height: 1.4;
}

.journey-current .journey-card {
    border-top-width: 6px;
    background: #faf9f6;
}

.journey-current .journey-node {
    background: var(--color-tertiary);
}

.journey-button {
    margin-top: var(--space-xs);
}

/* Desktop refinements */

@media (min-width: 769px) {
    .journey-section {
        padding-block: var(--space-2xl);
    }

    .journey-timeline {
        gap: var(--space-xl);
    }

    .journey-item {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: var(--space-m);
    }

    .journey-card {
        padding: var(--space-l);
    }

    .journey-marker::after {
        bottom: calc(var(--space-xl) * -1);
    }
}

/* Smaller mobile screens */

@media (max-width: 480px) {
    .journey-item {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: var(--space-xs);
    }

    .journey-card {
        padding: var(--space-s);
    }

    .journey-card h3 {
        font-size: var(--text-h6);
    }

    .journey-tags {
        gap: var(--space-2xs);
    }

    .journey-tags span {
        font-size: 0.75rem;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .journey-card {
        transition: none;
    }

    .journey-card:hover {
        transform: none;
    }
}



/* ------------------------------------- */
/* ABOUT — AREAS OF INTEREST             */
/* ------------------------------------- */

.interests-section {
    padding-block: var(--space-2xl);
    background-color: var(--color-text-light);
    color: var(--color-primary);
}

.interests {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.interests > .line-break {
    margin-bottom: var(--space-s);
    background-color: var(--color-tertiary);
}

.interests > h5 {
    color: var(--color-primary);
    margin-bottom: 0;
}

.interests-intro {
    margin-bottom: var(--space-l);
    color: var(--color-primary);
}

/* Card grid */

.interests-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-m);
    align-items: stretch;
}

.interest-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #484444;
    background-color: #242121;
    transition: border-color 0.25s ease,
                transform 0.25s ease,
                box-shadow 0.25s ease;
}

.interest-card:hover {
    border-color: var(--color-tertiary);
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 var(--color-tertiary);
}

/* Card header */

.interest-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-s) var(--space-s) 0;
}

.interest-index {
    color: var(--color-tertiary);
    font-family: var(--font-primary);
    font-size: var(--text-h5);
    font-weight: 700;
}

.interest-category {
    color: #d0cccc;
    font-family: var(--font-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: right;
}

/* Technical graphic */

.interest-graphic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: var(--space-s);
    overflow: hidden;
    background-color: #302c2c;
    background-image:
        linear-gradient(#ffffff08 1px, transparent 1px),
        linear-gradient(90deg, #ffffff08 1px, transparent 1px);
    background-size: 20px 20px;
}

.interest-graphic svg {
    width: 100%;
    height: 100%;
    padding: var(--space-s);
}

.interest-drawing {
    fill: none;
    stroke: #c9c4c4;
    stroke-width: 1.3;
    stroke-linecap: square;
    stroke-linejoin: round;
}

.interest-drawing-accent {
    fill: none;
    stroke: var(--color-tertiary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.interest-graphic-label {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    z-index: 1;
    padding: 5px 8px;
    background-color: var(--color-primary);
    border-left: 3px solid var(--color-tertiary);
    color: var(--color-text-light);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
}

/* Card body */

.interest-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    gap: var(--space-s);
    padding: var(--space-m);
}

.interest-card-body h3 {
    margin-bottom: 0;
    color: var(--color-text-light);
    font-size: var(--text-h5);
    line-height: var(--lh-heading);
}

.interest-card-body p {
    margin-bottom: 0;
    color: #d0cccc;
}

/* Service / interest list */

.interest-services {
    width: 100%;
    margin-top: auto;
    padding-top: var(--space-s);
    border-top: 1px solid #484444;
}

.interest-services-label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--color-tertiary);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.interest-services ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    padding-left: 1.1rem;
    list-style: square;
}

.interest-services li {
    padding-left: 2px;
    color: #f0eded;
    font-family: var(--font-secondary);
    font-size: var(--text-p);
    line-height: var(--lh-body);
}

.interest-services li::marker {
    color: var(--color-tertiary);
}

/* Tablet */

@media (min-width: 729px) {
    .interests-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop */

@media (min-width: 1024px) {
    .interests-section {
        padding-block: var(--space-3xl);
    }

    .interests-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-m);
    }

    .interest-card-body {
        padding: var(--space-m);
    }
}

/* Small mobile */

@media (max-width: 420px) {
    .interest-card-body {
        padding: var(--space-s);
    }

    .interest-card-body h3 {
        font-size: var(--text-h6);
    }

    .interest-category {
        font-size: 0.7rem;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .interest-card {
        transition: none;
    }

    .interest-card:hover {
        transform: none;
    }
}


/* =========================================================
   HAMMOND BIM TECH — HOMEPAGE VISUAL UPGRADE
   Layered over existing homepage styles.
   ========================================================= */

/* ---------- GLOBAL POLISH ---------- */

html {
    scroll-behavior: smooth;
}

body {
    --home-ink: #1C1A1A;
    --home-red: #C43C2F;
    --home-paper: #f7f6f3;
    --home-muted: #6f6b69;
}

/* More deliberate section spacing */

body > section:not(.hero-section):not(.cta-section) {
    position: relative;
    isolation: isolate;
}

/* Refined heading underline */

body > section:not(.hero-section) .line-break {
    width: 64px;
    height: 5px;
    margin-bottom: var(--space-xl);
    border: 0;
    background: var(--color-tertiary);
    transform-origin: left;
}

/* Better heading rhythm */

body > section .inner > h2 {
    letter-spacing: -0.045em;
    line-height: 1.05;
}

/* ---------- HERO ---------- */

.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(135deg, #f7f6f3 0%, #ffffff 55%, #eeece8 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(#1c1a1a08 1px, transparent 1px),
        linear-gradient(90deg, #1c1a1a08 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to right, black, transparent 85%);
}

.hero-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 12%;
    right: -120px;
    width: clamp(220px, 34vw, 520px);
    aspect-ratio: 1;
    border: 1px solid #c43c2f24;
    border-radius: 50%;
    pointer-events: none;
}

.hero {
    min-height: var(--av);
    align-items: center;
    padding-block: clamp(3rem, 7vw, 7rem);
}

.hero-content {
    position: relative;
    z-index: 1;
    gap: var(--space-m);
    animation: home-rise-in 0.8s ease both;
}

.hero-content h1 {
    max-width: 760px;
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    line-height: 0.99;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.hero-content p {
    max-width: 570px;
    color: #55504e;
    line-height: 1.8;
}

.hero-img {
    position: relative;
    isolation: isolate;
}

.hero-img::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 8% 0 4% 10%;
    border: 1px solid #c43c2f75;
    transform: translate(14px, 14px);
}

.hero-img img {
    filter: grayscale(0.35) contrast(1.04);
    transition:
        filter 0.6s ease,
        transform 0.8s cubic-bezier(.2,.7,.2,1);
}

.hero-img:hover img {
    filter: grayscale(0) contrast(1.04);
    transform: translate(-4px, -4px);
}

/* ---------- BUTTONS ---------- */

.button.tertiary,
.button.secondary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 2px;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.button.tertiary:hover,
.button.secondary:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 var(--color-primary);
}

/* ---------- ABOUT ---------- */

.about {
    padding-block: clamp(3rem, 6vw, 6rem);
}

.about-content {
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.about-description {
    gap: var(--space-m);
}

.about-description h5 {
    max-width: 540px;
    color: var(--color-primary);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.about-description p {
    max-width: 650px;
    color: #565150;
    line-height: 1.85;
}

.about-image {
    position: relative;
    overflow: visible;
    max-height: none;
}

.about-image::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 14px;
    right: -14px;
    bottom: -14px;
    left: 14px;
    border: 2px solid var(--color-tertiary);
    pointer-events: none;
}

.about-image img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    filter: saturate(0.78);
    transition:
        filter 0.5s ease,
        transform 0.5s ease;
}

.about-image:hover img {
    filter: saturate(1);
    transform: translate(-4px, -4px);
}

/* ---------- PORTFOLIO ---------- */

.portfolio {
    padding-block: clamp(3rem, 6vw, 6rem);
}

.portfolio-content {
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.portfolio-description {
    gap: var(--space-m);
}

.portfolio-description h5 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.portfolio-description p {
    color: #565150;
    line-height: 1.85;
}

.portfolio-img {
    position: relative;
    max-height: none;
    background: #e9e7e3;
}

.portfolio-img::before {
    content: "SELECTED WORK / 01";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    padding: 10px 14px;
    background: var(--color-primary);
    color: white;
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.portfolio-img img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}

.portfolio-img:hover img {
    transform: scale(1.035);
}

/* ---------- KNOWLEDGE BASE ---------- */

.kb {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--color-primary);
}

.kb::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(#ffffff08 1px, transparent 1px),
        linear-gradient(90deg, #ffffff08 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom right, black, transparent 80%);
}

.knowledge-base {
    padding-block: clamp(3rem, 6vw, 6rem);
}

.kb .knowledge-base {
    color: white;
}

.kb .knowledge-base > h5 {
    max-width: 700px;
    font-size: clamp(1.6rem, 2.5vw, 2.3rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.kb .knowledge-base > p {
    color: #d2cecc;
    line-height: 1.8;
}

.knowledge-base-content {
    gap: var(--space-m);
    margin-top: var(--space-l);
}

.kb-content-card {
    position: relative;
    min-width: 0;
    padding: var(--space-s);
    border: 1px solid #ffffff20;
    background: #ffffff08;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.kb-content-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-tertiary);
    background: #ffffff0d;
}

.kb-content-card h5 {
    color: inherit;
    font-size: var(--text-h6);
    line-height: 1.2;
}

.cc-img {
    min-height: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #302c2c;
}

.cc-img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}

.kb-content-card:hover .cc-img img {
    transform: scale(1.045);
}

.kb-content-card p {
    color: #d2cecc;
    font-size: var(--text-xs);
    line-height: 1.75;
}

.kb-content-card .button {
    align-self: flex-start;
    margin-top: auto;
}

/* ---------- BLOG ---------- */

.blog {
    background: var(--home-paper);
    color: var(--color-primary);
}

.blog *{
    color: var(--color-primary);
}

.blog p{
    color: var(--color-primary);
}

.knowledge-base.blog {
    padding-block: clamp(3rem, 6vw, 6rem);
    background: transparent;
}

.blog .line-break {
    background: var(--color-tertiary);
}

.blog .knowledge-base-content {
    align-items: stretch;
}

.blog .kb-content-card {
    border: 1px solid #1c1a1a16;
    background: #fff;
    box-shadow: 0 3px 12px #1c1a1a06;
}

.blog .kb-content-card:hover {
    border-color: #c43c2f75;
    box-shadow: 0 12px 30px #1c1a1a12;
}

.blog .kb-content-card h5 {
    color: var(--color-primary);
}

.blog .kb-content-card p {
    color: var(--color-primary);
}

/* ---------- CTA ---------- */

.cta-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-top: 1px solid #ffffff12;
}

.cta-section::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -160px;
    left: -160px;
    width: 400px;
    aspect-ratio: 1;
    border: 1px solid #ffffff0d;
    border-radius: 50%;
    box-shadow:
        0 0 0 35px #ffffff05,
        0 0 0 70px #ffffff04;
    pointer-events: none;
}

.cta-content h2 {
    text-wrap: balance;
}

.cta-graphic {
    transition: border-color 0.3s ease;
}

.cta-graphic:hover {
    border-color: var(--color-tertiary);
}

.cta-graphic-square,
.cta-graphic-circle,
.cta-graphic-line {
    transition: transform 0.5s ease;
}

.cta-graphic:hover .cta-graphic-square {
    transform: translate(5px, -5px);
}

.cta-graphic:hover .cta-graphic-circle {
    transform: translate(-5px, 5px);
}

/* ---------- SECTION REVEALS ---------- */

@keyframes home-rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- RESPONSIVE POLISH ---------- */

@media (min-width: 769px) {
    .about,
    .portfolio {
        padding-block: var(--space-3xl);
    }

    .knowledge-base-content {
        gap: var(--space-l);
    }

    .kb-content-card {
        padding: var(--space-m);
    }
}

@media (min-width: 729px) {
    .kb-content-card {
        height: 100%;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: clamp(2.8rem, 9vw, 4.5rem);
    }

    .about-image::after {
        right: -7px;
        bottom: -7px;
        top: 7px;
        left: 7px;
    }

    .portfolio-img img {
        aspect-ratio: 16 / 10;
    }
}

/* ---------- ACCESSIBILITY ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-content {
        animation: none;
    }

    .hero-img img,
    .about-image img,
    .portfolio-img img,
    .cc-img img,
    .kb-content-card,
    .button.tertiary,
    .button.secondary,
    .cta-graphic-square,
    .cta-graphic-circle {
        transition: none;
    }

    .kb-content-card:hover,
    .button.tertiary:hover,
    .button.secondary:hover {
        transform: none;
    }
}


/* =========================================
   CONTACT PAGE
========================================= */

.contact-page {
    overflow: hidden;
    background: #f7f6f3;
    color: var(--color-primary);
}

/* HERO */

.contact-hero {
    position: relative;
    padding: clamp(5rem, 10vw, 9rem) 0 5rem;
    background: #f7f6f3;
    border-bottom: 1px solid rgba(28, 26, 26, 0.15);
}

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

.contact-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.contact-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-tertiary);
}

.contact-hero h1 {
    max-width: 1000px;
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.contact-hero h1 span {
    color: var(--color-tertiary);
}

.contact-hero-bottom {
    display: grid;
    grid-template-columns: 100px minmax(0, 430px);
    gap: 2rem;
    align-items: start;
    margin-top: 3.5rem;
}

.contact-rule {
    height: 5px;
    margin-top: 0.65rem;
    background: var(--color-tertiary);
}

.contact-hero-bottom p {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* BAUHAUS GRAPHIC */

.contact-graphic {
    position: absolute;
    top: 0;
    right: 3%;
    width: clamp(130px, 18vw, 240px);
    aspect-ratio: 1;
    pointer-events: none;
}

.graphic-circle {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    aspect-ratio: 1;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
}

.graphic-square {
    position: absolute;
    bottom: 8%;
    left: 0;
    width: 48%;
    aspect-ratio: 1;
    background: var(--color-tertiary);
    transform: rotate(-12deg);
}

.graphic-line {
    position: absolute;
    top: 50%;
    left: 5%;
    width: 95%;
    height: 2px;
    background: var(--color-primary);
    transform: rotate(-35deg);
}

.contact-graphic > span {
    position: absolute;
    right: 0;
    bottom: -1.5rem;
    font-family: var(--font-secondary);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
}

/* MAIN GRID */

.contact-main {
    padding: clamp(4rem, 8vw, 8rem) 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
}

.contact-label {
    margin: 0 0 2rem;
    font-family: var(--font-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-tertiary);
}

.contact-intro h2 {
    margin: 0 0 2rem;
    font-family: var(--font-primary);
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.contact-intro h2 span {
    color: var(--color-tertiary);
}

.contact-copy {
    max-width: 440px;
    margin: 0 0 3rem;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    line-height: 1.9;
    color: #555;
}

/* CONTACT DETAILS */

.contact-detail {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid #dededb;
}

.contact-detail-number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-tertiary);
    border-radius: 50%;
    color: var(--color-tertiary);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
}

.contact-detail h3 {
    margin: 0 0 0.4rem;
    font-family: var(--font-primary);
    font-size: 1.1rem;
}

.contact-detail p {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    color: #666;
}

/* FORM PANEL */

.contact-form-panel {
    padding: clamp(1.5rem, 4vw, 3rem);
    background: #f7f6f3;
    border: 1px solid #e5e3df;
}

.contact-form-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    border-bottom: 1px solid #d8d6d1;
    margin-bottom: 2rem;
}

.contact-form-heading .contact-label {
    margin-bottom: 1.5rem;
}

.contact-index {
    font-family: var(--font-secondary);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: #777;
}

/* FORM FIELDS */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-field label {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.95rem 1rem;
    border: 1px solid #d7d5d0;
    border-radius: 0;
    outline: none;
    background: #fff;
    color: var(--color-primary);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #999;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: var(--color-tertiary);
    box-shadow: 0 0 0 3px rgba(196, 60, 47, 0.1);
}

.contact-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
    margin-top: 0.5rem;
    cursor: pointer;
}

.contact-submit span {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.contact-submit:hover span {
    transform: translate(3px, -3px);
}

.contact-form-note {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    line-height: 1.7;
    color: #777;
}

/* BOTTOM STRIP */

.contact-bottom {
    padding: 1.5rem 0;
    background: var(--color-primary);
    color: #fff;
}

.contact-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.contact-bottom p,
.contact-bottom span {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.contact-bottom span {
    color: #cecece;
}

/* RESPONSIVE */

@media (max-width: 800px) {
    .contact-hero {
        padding-top: 5rem;
    }

    .contact-graphic {
        top: -1rem;
        right: 0;
        width: 115px;
        opacity: 0.7;
    }

    .contact-hero h1 {
        font-size: clamp(3.6rem, 12vw, 6rem);
    }

    .contact-hero-bottom {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 1.25rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-intro h2 {
        font-size: clamp(3rem, 9vw, 4.5rem);
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 4rem 0;
    }

    .contact-eyebrow {
        font-size: 0.65rem;
    }

    .contact-hero h1 {
        font-size: 3.4rem;
    }

    .contact-graphic {
        top: -2rem;
        right: -1rem;
        width: 85px;
        opacity: 0.4;
    }

    .contact-hero-bottom {
        margin-top: 2rem;
    }

    .contact-form-panel {
        padding: 1.25rem;
    }

    .contact-index {
        display: none;
    }

    .contact-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-field input,
    .contact-field select,
    .contact-field textarea,
    .contact-submit span {
        transition: none;
    }
}







