@import url('theme.css');

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

html {
    scroll-behavior: smooth;
    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--color-scrollbar) transparent;
    overflow-x: hidden;
}

/* Webkit (Chrome, Edge, Safari) scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-scrollbar);
    border-radius: 100px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
    /* #FF5924 brand orange */
}

::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Overrides based on User Request */
h1,
h2,
.font-serif {
    font-family: var(--font-serif);
}

.mobile-br {
    display: none;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.text-center {
    text-align: center;
}

/* Buttons */
.primary-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--text-lg);
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-btn:hover {
    background-color: var(--color-primary-hover);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    background: var(--color-navbar-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color-light);
    z-index: 1000;
    padding: 8px 120px;
    /* Smooth shrink transition */
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.4s ease,
        backdrop-filter 0.4s ease,
        box-shadow 0.4s ease;
}

/* Scrolled state — navbar condenses */
.navbar.scrolled {
    height: 68px;
    background: var(--color-navbar-bg-scrolled);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 32px rgba(0, 0, 0, 0.07);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 36px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    position: relative;
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-nav-link);
    transition: color 0.3s;
    display: block;
}

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

.nav-indicator {
    position: absolute;
    bottom: -6px;
    height: 3px;
    background-color: var(--color-primary);
    left: 0;
    width: 0;
    /* Spring easing — slight overshoot gives it a physical, snappy feel */
    transition: left 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    border-radius: 100px;
}

/* --- Hero Section --- */
.hero {
    margin-top: 100px;
    height: 924px;
    display: flex;
    align-items: flex-start;
    padding-top: 130px;
    background-image: linear-gradient(to right, var(--color-bg-hero) 0%, var(--color-bg-hero) 35%, rgba(245, 246, 244, 0) 60%), url('assets/home/home.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--color-bg-light);
}

.hero-container {
    width: 100%;
    align-items: center;
}

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

.eyebrow {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    text-transform: lowercase;
    font-variant: small-caps;
    letter-spacing: 0.03em;
    color: #151515;
    display: block;
    line-height: 1;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 69px;
    font-weight: 600;
    line-height: 1.1;
    color: #151515;
    margin-bottom: 29px;
}

.hero-content h1 em {
    font-style: italic;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: inherit;
    color: #151515;
}

.hero-content p {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.41;
    color: #151515;
    margin-bottom: 40px;
    max-width: 90%;
}

/* ── Hero stagger entrance ── */
@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

/* Shared easing — quick decelerate, cinematic */
.hero-content .eyebrow,
.hero-content h1,
.hero-content p,
.hero-content .primary-btn {
    animation: hero-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content .eyebrow {
    animation-delay: 0.05s;
}

.hero-content h1 {
    animation-delay: 0.22s;
}

.hero-content p {
    animation-delay: 0.38s;
}

.hero-content .primary-btn {
    animation-delay: 0.54s;
}


/* --- About Section --- */
.about {
    padding: 100px 0;
    background-color: #F5F5F5;
    position: relative;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    text-transform: lowercase;
    font-variant: small-caps;
    letter-spacing: 0.03em;
    color: #151515;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.about-header {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    margin-bottom: 0;
    flex: 1;
}

.about-text h2 {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 600;
    line-height: 1.1;
    color: #151515;
    margin-bottom: 36px;
}

.nowrap {
    white-space: nowrap;
}

.about-text p {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #151515;
    max-width: 530px;
}

.about-grid {
    position: relative;
    z-index: 2;
    width: 484px;
    height: 184px;
    flex-shrink: 0;
}

.about-mobile-img {
    display: none;
}

.about-img {
    position: absolute;
    border-radius: 4px;
    object-fit: cover;
}

.img-1 {
    left: 0;
    top: 0;
    width: 79px;
    height: 76px;
}

.img-2 {
    left: 103px;
    top: 0;
    width: 181px;
    height: 76px;
}

.img-3 {
    left: 0;
    top: 100px;
    width: 176px;
    height: 84px;
}

.img-4 {
    left: 200px;
    top: 100px;
    width: 87px;
    height: 84px;
}

.img-5 {
    left: 311px;
    top: 0;
    width: 173px;
    height: 184px;
}

.about-svg-bg {
    margin-top: 120px;
    width: 100%;
    overflow: hidden;
    display: flex;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
}

.about-svg-bg img {
    width: 1628px;
    max-width: none;
    height: 87px;
    opacity: 0.8;
    flex-shrink: 0;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-1628px);
    }
}

/* --- Services Section --- */
.services {
    padding: 120px 0 0 0;
    background-color: var(--color-bg-white);
}

.services .section-label {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.41;
    letter-spacing: 0.03em;
    text-transform: lowercase;
    font-variant: small-caps;
    color: #151515;
}

.services-header {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    margin-bottom: 80px;
    align-items: start;
}

.services-header h2 {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 600;
    line-height: 1.1;
    color: #151515;
    max-width: 600px;
}

.border-top {
    border-top: 1px solid var(--border-color);
}

.border-bottom {
    border-bottom: 1px solid var(--border-color);
}

.service-item {
    padding: 60px 0;
}

.service-row {
    display: grid;
    grid-template-columns: 776px 1fr;
    gap: 0;
    align-items: start;
}

.service-details {
    max-width: 630px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* The collapsible content area — gets animated */
.service-collapsible {
    width: 100%;
    overflow: hidden;
    max-height: 500px;
    /* large enough for expanded state */
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-collapsible.is-collapsed {
    max-height: 48px;
    opacity: 1;
}

.service-collapsible.is-collapsed .tags span:nth-child(n+4) {
    display: none;
}

.service-row h3 {
    font-family: var(--font-sans);
    font-size: var(--text-10xl);
    font-weight: 600;
    line-height: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tags span {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
}

.tags span::before {
    content: "·";
    margin-right: 8px;
    font-weight: bold;
    color: var(--color-text-light);
}

.bullets {
    list-style: none;
}

.bullets li {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    color: var(--color-text-light);
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
}

.bullets li::before {
    content: "·";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    margin-top: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: opacity 0.2s ease;
}

.toggle-btn:hover {
    opacity: 0.7;
}

/* SVG icon — rotates smoothly between states */
.toggle-btn .toggle-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    /* "show less" default = chevron up (as-is) */
    transform: rotate(0deg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When collapsed: flip icon 180° → chevron pointing down */
.toggle-btn.is-collapsed .toggle-icon {
    transform: rotate(180deg);
}



/* --- Projects Section --- */
.projects {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.projects-header h2 {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 600;
    line-height: 1.1;
    color: #151515;
    text-align: center;
    margin-bottom: 16px;
}

.projects-header p {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #151515;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 135px auto;
}

.project-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

@media (min-width: 1080px) {
    .project-showcase {
        display: grid;
        grid-template-columns: 650px 1fr 30px;
        align-items: start;
        gap: 0;
    }

    .project-mockup {
        width: 456px;
        justify-self: end;
    }

    .project-next {
        justify-self: end;
    }
}

.project-info {
    flex: 1;
    max-width: 600px;
}

.project-logo {
    height: 30px;
    margin-bottom: 32px;
}

.project-title-seo {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.project-info p {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #151515;
    margin-bottom: 30px;
}

.project-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tag-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
}

.project-tags span {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    padding: 6px 14px;
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    background-color: var(--color-bg-white);
    color: #767676;
    white-space: nowrap;
}

.project-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
}

.project-mockup img {
    width: 456px;
    height: 709px;
    margin-top: -60px;
}

.project-next {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.project-next span {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.next-arrow {
    width: 20px;
    height: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.project-next:hover .next-arrow {
    transform: translateX(4px);
}

/* --- Leadership Section --- */
.leadership {
    min-height: 770px;
    display: flex;
    align-items: center;
    padding: 120px 0;
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--border-color-light);
}

.leadership .container {
    width: 100%;
}

.leadership-header {
    margin-bottom: 60px;
}

.leadership-header h2 {
    font-family: var(--font-serif);
    font-size: var(--text-9xl);
    font-weight: 600;
    margin-bottom: 16px;
}

.leadership-header p {
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    color: var(--color-text-light);
    max-width: 600px;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border-color-light);
}

.leader-card {
    background-color: transparent;
    padding: 32px;
    border-right: 1px solid var(--border-color-light);
}

.leader-card:last-child {
    border-right: none;
}

.leader-img-wrapper {
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    padding-top: 70%;
    /* Rectangular aspect ratio */
    overflow: hidden;
}

.leader-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.leader-card h3 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
}

.leader-card .title {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* --- Contact / Footer Section --- */
.contact {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    min-height: 471px;
    display: flex;
    align-items: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.contact::before,
.contact::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.25;
}

.contact::before {
    background-image: url('assets/lets talk/vector1.svg?v=3');
    left: 0;
    top: 0;
    background-position: top left;
}

.contact::after {
    background-image: url('assets/lets talk/vector2.svg?v=3');
    right: 0;
    bottom: 0;
    background-position: bottom right;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-content h2 {
    font-family: var(--font-serif);
    font-size: 69px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    color: #F5F5F5;
    margin-bottom: 24px;
}

.footer-desc {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #A5A5A5;
    max-width: 500px;
    margin: 0 auto 32px auto;
}

.contact-info {
    margin-bottom: 48px;
}

.contact-info a {
    display: block;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.41;
    text-transform: lowercase;
    color: #F5F5F5;
    margin-bottom: 8px;
}

.contact-info p {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.41;
    color: #F5F5F5;
}

.copyright {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.41;
    letter-spacing: 0;
    color: #A5A5A5;
}

/* =============================================
   HAMBURGER + MOBILE MENU
   ============================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-dark);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;
    transform-origin: center;
}

/* Animate into X when open */
.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile slide-down drawer */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-navbar-bg-scrolled);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
    max-height: 400px;
}

.mobile-menu ul {
    list-style: none;
    padding: 12px 0 20px;
}

.mobile-menu ul li a {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--color-text-light);
    padding: 14px 24px;
    transition: color 0.2s, background 0.2s;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a:active {
    color: var(--color-text-dark);
    background: rgba(0, 0, 0, 0.03);
}

/* =============================================
   TABLET — 992px
   ============================================= */
@media (max-width: 992px) {

    /* Navbar */
    .navbar {
        padding: 8px 32px;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 0;
        padding: 80px 0 120px;
        margin-top: 100px;
        background-image: linear-gradient(to right,
                var(--color-bg-hero) 0%,
                rgba(245, 248, 244, 0.75) 35%,
                rgba(245, 248, 244, 0.05) 70%,
                rgba(245, 248, 244, 0) 100%), url('assets/home/home.png');
        background-size: cover;
        background-position: 70% bottom;
    }

    .mobile-br {
        display: inline;
    }

    .hero-content {
        max-width: 60%;
    }

    /* About */
    .about-container {
        flex-direction: column;
        gap: 40px;
    }

    .about-header {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .about-grid {
        display: none;
    }

    .about-mobile-img {
        display: block;
        width: 100%;
        max-width: 484px;
        height: auto;
        margin-top: 16px;
    }

    .nowrap {
        white-space: normal;
    }

    .about-text h2 br,
    .project-info p br {
        display: none;
    }

    /* Services */
    .services-header {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 40px;
    }

    .service-row {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .service-details {
        max-width: 100%;
    }

    /* Projects */
    .project-showcase {
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .project-info {
        max-width: 100%;
    }

    .project-mockup {
        justify-content: center;
    }

    .project-mockup img {
        width: 260px !important;
        height: auto !important;
        margin-top: 0 !important;
    }

    /* Leadership */
    .leadership {
        height: auto;
        min-height: 0;
        padding: 60px 0;
    }

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

    .leader-card {
        padding: 24px 20px;
        border-right: 1px solid var(--border-color-light);
        border-bottom: 1px solid var(--border-color-light);
    }

    .leader-card:nth-child(2n) {
        border-right: none;
    }

    .leader-card:nth-child(n+3) {
        border-bottom: none;
    }

    /* Contact */
    .contact {
        min-height: 0;
        height: auto;
        padding: 80px 0;
    }
}

/* =============================================
   MOBILE — 768px (most phones landscape / small tablet)
   ============================================= */
@media (max-width: 768px) {

    /* Navbar — show hamburger, hide desktop links */
    .navbar {
        padding: 0 20px;
        height: 64px;
    }

    .navbar.scrolled {
        height: 56px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    /* Hero */
    .hero {
        margin-top: 64px;
        padding: 64px 0 140px;
    }

    .hero-content h1 {
        font-size: var(--text-7xl);
        line-height: 1.15;
        margin-bottom: 18px;
    }

    .hero-content p {
        font-size: var(--text-md);
        margin-bottom: 40px;
    }

    .primary-btn {
        font-size: 16px;
        padding: 10px 22px;
    }

    /* About */
    .about {
        padding: 64px 0;
    }

    .about-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .about-header {
        width: 100%;
    }

    .about-text h2 {
        font-size: var(--text-6xl);
        margin-bottom: 24px;
    }

    .about-text p {
        font-size: var(--text-lg);
        max-width: 100%;
    }



    .about-text h2,
    .leadership-header h2 {
        font-size: var(--text-5xl);
    }

    .services-header h2,
    .projects-header h2 {
        font-size: var(--text-4xl);
    }

    /* Services */
    .services {
        padding: 64px 0 0;
    }

    .service-row h3 {
        font-size: var(--text-6xl);
    }

    .service-item {
        padding: 40px 0;
    }

    .tags span,
    .bullets li {
        font-size: var(--text-base);
    }

    /* Projects */
    .projects {
        padding: 64px 0;
    }

    .projects-header p {
        font-size: var(--text-base);
    }

    .project-logo {
        height: 20px;
        width: auto;
        margin-bottom: 24px;
    }

    .project-title-seo {
        font-size: var(--text-xl);
        margin-bottom: 12px;
    }

    .project-info p {
        font-size: var(--text-base);
    }

    .project-tags {
        gap: 6px;
    }

    .tag-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .project-tags span {
        font-size: var(--text-tiny);
        padding: 4px 8px;
        border-radius: 6px;
    }

    .project-mockup img {
        width: 260px !important;
    }

    /* Leadership */
    .leadership {
        padding: 56px 0;
    }

    .leadership-header p {
        font-size: var(--text-base);
    }

    .leadership-grid {
        display: flex;
        flex-direction: column;
        border: none;
        margin: 0;
        padding: 0;
    }

    .leadership-grid::-webkit-scrollbar {
        display: none;
    }

    .leader-card {
        flex: 1 1 auto;
        max-width: 100%;
        border: 1px solid var(--border-color-light) !important;
        margin-top: -1px;
        padding: 20px;
    }

    .leader-card h3 {
        font-size: var(--text-md);
        white-space: normal;
    }

    /* Contact */
    .contact {
        padding: 64px 0;
    }

    .contact::before,
    .contact::after {
        width: 180px;
        height: 180px;
    }

    .footer-content h2 {
        font-size: var(--text-8xl);
    }

    .footer-desc {
        font-size: var(--text-small);
    }

    .contact-info a,
    .contact-info p {
        font-size: var(--text-base);
    }

    /* Container padding on mobile */
    .container {
        padding: 0 20px;
    }
}

/* =============================================
   SMALL MOBILE — 480px (iPhone SE, small Android)
   ============================================= */
@media (max-width: 480px) {

    /* Hero */
    .hero {
        padding: 48px 0 160px;
    }

    .hero-content h1 {
        font-size: var(--text-4xl);
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: var(--text-small);
        margin-bottom: 40px;
    }

    .hero-content {
        max-width: 68%;
    }

    .eyebrow {
        font-size: var(--text-xs);
        letter-spacing: 0.5px;
        margin-bottom: 12px;
    }

    .primary-btn {
        font-size: 14px;
        padding: 8px 18px;
        width: auto;
    }



    /* Services */
    .service-row h3 {
        font-size: var(--text-mid);
    }

    .tags span {
        font-size: var(--text-sm);
    }

    /* Projects tags even smaller for small phones */
    .project-tags {
        gap: 4px;
    }

    .project-tags span {
        font-size: var(--text-xxs);
        padding: 3px 6px;
        border-radius: 4px;
    }



    /* Contact */
    .contact::before,
    .contact::after {
        width: 140px;
        height: 140px;
    }

    .footer-content h2 {
        font-size: var(--text-5xl);
    }

    .contact-info a,
    .contact-info p {
        font-size: var(--text-small);
    }

    /* Container */
    .container {
        padding: 0 16px;
    }

    /* Navbar */
    .navbar {
        padding: 0 16px;
    }
}

/* iOS safe-area support (notch / home bar) */
@supports (padding: env(safe-area-inset-bottom)) {
    .contact {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    .navbar {
        padding-left: calc(20px + env(safe-area-inset-left));
        padding-right: calc(20px + env(safe-area-inset-right));
    }
}

/* =========================================
   Scroll-reveal utility
   ========================================= */

/* Initial hidden state — applied by JS via querySelectorAll */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

/* Revealed state — toggled by IntersectionObserver */
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}