:root {
    --primary-blue: #002fa7;
    --text-dark: #212121;
    --bg-white: #F2F3EE;
    --font-family: 'Instrument Sans', 'Inter', system-ui, -apple-system, sans-serif;
    /* --font-serif: 'Instrument Sans', sans-serif; */
    /* User requested Instrument Sans everywhere */
    --max-width: 1200px;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: clip;
}

body {
    font-family: var(--font-family);
    background-color: #F2F3EE;
    /* Fallback */
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: subpixel-antialiased;
    min-height: 100vh;
    position: relative;
    padding-top: 80px;
    /* Spacer for fixed header */
}

/* Background Texture */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #f2f3ee;
}

.background-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    pointer-events: none;
}

/* Layout Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Header - New MAGASINN Style */
.header-new {
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-white);
    transition: padding 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.header-new.scrolled {
    padding: 18px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header-container-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 28px;
    width: auto;
}

.logo-text {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-accent {
    font-weight: 500;
}

.main-nav-new {
    margin-left: auto;
}

.main-nav-new ul {
    display: flex;
    list-style: none;
    gap: 32px;
    padding: 0;
    margin: 0;
    position: relative;
}

.main-nav-new a {
    text-decoration: none;
    color: var(--primary-blue);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
    position: relative;
    padding-bottom: 4px;
}

.main-nav-new a:hover {
    opacity: 0.6;
}

.nav-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    pointer-events: none;
    transition: left 0.2s cubic-bezier(0.4, 0, 0.2, 1), width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--primary-blue);
    border-radius: 24px;
    color: var(--primary-blue);
    text-decoration: none;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, color 0.2s;
}

.header-contact-btn:hover {
    background-color: var(--primary-blue);
    color: var(--bg-white);
}

.header-contact-btn svg {
    transition: transform 0.2s;
}

.header-contact-btn:hover svg {
    transform: translate(2px, -2px);
}

/* Legacy Header (kept for compatibility) */
header {
    padding-top: 24px;
    padding-bottom: 24px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: padding 0.1s linear, background-color 0.3s ease;
}

.logo-image {
    width: 100%;
    max-width: var(--max-width);
    height: auto;
    display: block;
    margin: 0 auto 0 auto;
}

/* Hero Section - MAGASINN Style */
.hero-new {
    padding: 40px 0 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-new::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -40px;
    right: -40px;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.hero-typography {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

.hero-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    line-height: 0.9;
    position: relative;
}

.hero-line-3 {
    gap: 10px;
}

.hero-text {
    font-family: var(--font-family);
    font-size: clamp(60px, 12vw, 128px);
    font-weight: 400;
    color: var(--primary-blue);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.hero-text-serif {
    font-family: 'Instrument Serif', 'IBM Plex Serif', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.02em;
}

.hero-typography {
    position: relative;
}

.hero-services-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 24px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(12px);
    animation: serviceReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-service-item,
.hero-service-divider {
    font-family: var(--font-family);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--primary-blue);
}

.hero-service-divider {
    margin: 0 14px;
    font-weight: 300;
}

@keyframes serviceReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes dividerReveal {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 0.4;
        transform: scale(1);
    }
}

/* Hero CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 1.2s;
    position: relative;
    z-index: 1;
}

.hero-cta {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    border-radius: 32px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.hero-cta:hover {
    transform: translateY(-1px);
}

.hero-cta-primary {
    background-color: var(--primary-blue);
    color: var(--bg-white);
}

.hero-cta-primary:hover {
    background-color: #001f7a;
}

.hero-cta-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1.5px solid var(--primary-blue);
}

.hero-cta-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--bg-white);
}

/* Inline images - placed alongside text in hero lines */
.hero-inline-img {
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 30px rgba(0, 47, 167, 0.12);
    transition: transform 0.4s ease;
}

.hero-inline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-inline-img:hover {
    transform: scale(1.03);
}

/* Arch/dome shaped image - next to "A" */
.hero-img-arch {
    width: clamp(80px, 10vw, 140px);
    height: clamp(100px, 12vw, 160px);
    border-radius: 50% 50% 8px 8px;
}

/* Wide horizontal rectangle - before "& Cultural" */
.hero-img-wide {
    width: clamp(140px, 18vw, 260px);
    height: clamp(60px, 7vw, 100px);
    border-radius: 8px;
}

/* Circular image - after "Collective" */
.hero-img-round {
    width: clamp(70px, 9vw, 120px);
    height: clamp(70px, 9vw, 120px);
    border-radius: 50%;
}

/* Hero Slideshow - fast cycling images */
.hero-slideshow {
    position: relative;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroSlideshow 4.5s infinite;
}

.hero-slideshow .slide-1 {
    animation-delay: 0s;
}

.hero-slideshow .slide-2 {
    animation-delay: 1.5s;
}

.hero-slideshow .slide-3 {
    animation-delay: 3s;
}

@keyframes heroSlideshow {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Mobile-only image strip - hidden on desktop */
.hero-mobile-strip {
    display: none;
}

/* Legacy inline image styles */
.hero-inline-image {
    overflow: hidden;
    flex-shrink: 0;
}

.hero-inline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-wide {
    width: clamp(120px, 16vw, 220px);
    height: clamp(70px, 9vw, 120px);
    border-radius: 12px;
}

.hero-image-square {
    width: clamp(80px, 10vw, 140px);
    height: clamp(80px, 10vw, 140px);
    border-radius: 12px;
}

.hero-line-last {
    position: relative;
    gap: 40px;
}

.hero-tagline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--primary-blue);
    line-height: 1.6;
    margin-left: 20px;
}

/* Legacy hero styles (kept for compatibility) */
.hero {
    padding: 180px 0 80px 0;
    display: flex;
    justify-content: space-between;
    gap: 64px;
    align-items: top;
}

.hero-content {
    flex: 1;
    font-size: 20px;
    color: var(--primary-blue);
    letter-spacing: 0;
    line-height: 1.6;
    max-width: 600px;
    font-family: var(--font-family);
}

.hero-content p {
    margin-bottom: 24px;
}

.hero-content .highlight {
    font-weight: 700;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

/* What We Do Section */
.what-we-do {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
    border-top: 1px solid rgba(0, 47, 167, 0.3);
}

.section-title {
    text-align: left;
    font-size: 56px;
    font-weight: 400;
    color: var(--primary-blue);
    letter-spacing: -0.02em;
    font-family: 'Instrument Serif', 'IBM Plex Serif', serif;
    font-style: italic;
    line-height: 0.9;
    margin: 0;
}

.grid {
    column-count: 2;
    column-gap: 32px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    break-inside: avoid;
    margin-bottom: 40px;
    cursor: pointer;
}

.image-wrapper {
    height: auto;
    /* Reset fixed height */
    border-radius: 8px;
    overflow: hidden;
    /* content containment for zoom */
}

/* Asymmetric Masonry Heights */
.card:nth-child(odd) .image-wrapper {
    height: 280px;
}

.card:nth-child(even) .image-wrapper {
    height: 220px;
}

.card:nth-child(3n) .image-wrapper {
    height: 250px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease;
    filter: grayscale(100%);
    /* Editorial grayscale start */
}

.card:hover .card-image {
    transform: scale(1.05);
    filter: grayscale(0%);
    /* Color and Zoom on hover */
}

/* Loading Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-load {
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

/* Hero Section Staggered Animations */
@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

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

@keyframes heroImageSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px) rotate(var(--float-rotate, 0deg));
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(var(--float-rotate, 0deg));
    }
}

/* Text lines animation */
.hero-line {
    opacity: 0;
    animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line-1 {
    animation-delay: 0.1s;
}

.hero-line-2 {
    animation-delay: 0.2s;
}

.hero-line-3 {
    animation-delay: 0.3s;
}

.hero-line-4 {
    animation-delay: 0.4s;
}

/* Floating images animation */
.hero-float-img {
    opacity: 0;
    animation: heroImageSlideUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-float-1 {
    --float-rotate: 3deg;
    animation-delay: 0.5s;
}

.hero-float-2 {
    --float-rotate: -2deg;
    animation-delay: 0.65s;
}

.hero-float-3 {
    --float-rotate: -4deg;
    animation-delay: 0.8s;
}

/* Staggered Grid Animation */
.card {
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.card:nth-child(1) {
    animation-delay: 0.3s;
}

.card:nth-child(2) {
    animation-delay: 0.4s;
}

.card:nth-child(3) {
    animation-delay: 0.5s;
}

.card:nth-child(4) {
    animation-delay: 0.6s;
}

.card:nth-child(5) {
    animation-delay: 0.7s;
}

.card:nth-child(6) {
    animation-delay: 0.8s;
}


.card-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    /* Spacing between title and desc */
}

.card-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-blue);
    line-height: 1.2;
}

.card-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    font-family: var(--font-family);
}

.card-cta {
    margin-top: 16px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: 0.3px;
    padding: 12px 24px;
    border: 1.5px solid var(--primary-blue);
    border-radius: 32px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card:hover .card-cta {
    background-color: var(--primary-blue);
    color: var(--bg-white);
}

@media (max-width: 768px) {
    .card-cta {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* Footer & Contact */
/* Footer & Contact */
.footer-contact {
    background-color: var(--primary-blue);
    color: white;
    padding: 48px 0;
    margin-top: 120px;
    margin-bottom: 0;
    width: 100%;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 64px;
}

.contact-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.contact-label {
    font-size: 14px;
    font-weight: 500;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    /* Fixed margin instead of auto to keep it grouped with info */
}

.contact-info {
    margin-top: auto;
}

.contact-right {
    text-align: right;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* gap removed to use margins for grouping */
}

.footer-heading {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.footer-subtext {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 24px;
    line-height: 1.4;
}

.subscribe-btn {
    background-color: white;
    color: var(--text-dark);
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.footer-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-size: 14px;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.email-link {
    font-size: 18px;
    display: block;
    margin-bottom: 16px;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 16px;
}

.copyright {
    margin-top: 40px;
    font-size: 12px;
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    body {
        padding-top: 70px;
    }

    .hero {
        flex-direction: column;
        gap: 40px;
        padding: 60px 0;
    }

    .hero-image-wrapper {
        justify-content: center;
    }

    /* New Hero Responsive */
    .hero-new {
        padding: 40px 0 60px 0;
    }

    .hero-line {
        gap: 15px;
        flex-wrap: wrap;
    }

    .hero-line-last {
        flex-direction: column;
        gap: 20px;
    }

    .hero-tagline {
        align-items: center;
        text-align: center;
        margin-left: 0;
        margin-top: 10px;
    }

    /* Floating images tablet */
    .hero-float-1 {
        width: 120px;
        height: 160px;
        right: 2%;
    }

    .hero-float-2 {
        width: 100px;
        height: 130px;
        left: 3%;
    }

    .hero-float-3 {
        width: 90px;
        height: 70px;
        right: 8%;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .container {
        padding: 0 20px;
    }

    header {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .hero {
        padding: 20px 0 40px 0;
        gap: 32px;
    }

    /* New Hero Mobile - basic overrides, detailed styles at end of file */
    .hero-text-outline {
        -webkit-text-stroke: 1.5px var(--primary-blue);
    }

    .hero-image-wide {
        width: 80px;
        height: 50px;
    }

    .hero-image-square {
        width: 55px;
        height: 55px;
    }

    .what-we-do {
        padding: 40px 0;
        gap: 24px;
    }

    .section-title {
        font-size: 30px;
    }

    .grid {
        column-count: 1;
    }

    .card {
        margin-bottom: 48px;
    }

    .card-image {
        filter: none;
    }

    .footer-contact {
        margin-top: 40px;
        padding: 32px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        min-height: auto;
        border-radius: 0;
    }

    /* Swap order: Subscribe first, Contact info second */
    .contact-right {
        order: -1;
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .contact-left {
        width: 100%;
    }
}

/* Header Layout - New Style Responsive */
@media (max-width: 1024px) {
    .header-new {
        padding: 24px 0;
    }

    .header-new.scrolled {
        padding: 16px 0;
    }

    .main-nav-new {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        padding: 24px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transform: none;
    }

    .main-nav-new.active {
        display: block;
    }

    .main-nav-new ul {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .header-contact-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 16px;
    }

    .logo-img {
        height: 22px;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 100;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-blue);
    transition: 0.3s;
    transform-origin: center;
}

/* Hamburger to X animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Legacy Header Layout (kept for compatibility) */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.main-nav a:hover {
    opacity: 0.7;
}

/* Section Spacing */
.section-padding {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 120px 0;
    border-top: 1px solid rgba(0, 47, 167, 0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.section-description {
    max-width: 350px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary-blue);
    opacity: 0.8;
    text-align: right;
    flex-shrink: 0;
}

.section-content {
    max-width: 800px;
    margin-left: auto;
}

#opinionated-brains .section-content {
    max-width: none;
}

/* Blog Posts */
.blog-post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 16px;
}

.blog-post h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-post .blog-date {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 8px;
}

.blog-post p {
    font-size: 14px;
    line-height: 1.5;
}

/* Hero Updates */
.hero-headline {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--primary-blue);
}

.hero-tagline {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

/* About Section */
.lead-text {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 24px;
    line-height: 1.4;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.value-item h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.value-item p {
    font-size: 14px;
}

/* Meet the People */
.intro-text {
    margin-bottom: 40px;
    font-size: 18px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Increased internal gap for consistent rhythm */
}

.member-image {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #e0e0e0;
    border-radius: 4px;
}

.team-member h3 {
    font-size: 18px;
    color: var(--primary-blue);
}

.role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.bio {
    font-size: 14px;
    margin-top: 8px;
}

/* Bio Read More Button */
.bio-read-more {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    padding: 0;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
    text-align: left;
}

.bio-read-more::after {
    content: '→';
    font-size: 14px;
    transition: transform 0.2s ease;
}

.bio-read-more:hover {
    opacity: 0.6;
}

.bio-read-more:hover::after {
    transform: translateX(3px);
}

.bio-read-more.is-open::after {
    content: '↑';
}

/* Bio expand in place (mobile) */
.bio-full-text {
    display: none;
    font-size: 14px;
    line-height: 1.75;
    margin-top: 12px;
}

.team-member.bio-expanded .bio-full-text {
    display: block;
}

.team-member.bio-expanded .bio {
    display: none;
}

/* Bio Modal */
.bio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bio-modal.is-active {
    opacity: 1;
    pointer-events: all;
}

.bio-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.bio-modal-content {
    position: relative;
    background: var(--bg-white);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: 8px;
    z-index: 1;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bio-modal.is-active .bio-modal-content {
    transform: translateY(0);
}

.bio-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s;
}

.bio-modal-close:hover {
    opacity: 0.5;
}

.bio-modal-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0;
    margin-bottom: 16px;
}

.bio-modal-name {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.bio-modal-role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.bio-modal-text {
    font-size: 15px;
    line-height: 1.75;
}

@media (max-width: 768px) {
    .bio-modal-content {
        padding: 32px 24px;
        width: 95%;
        max-height: 85vh;
    }
}

@media (max-width: 768px) {
    .section-padding {
        gap: 24px;
        padding: 60px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section-description {
        text-align: left;
        max-width: 100%;
    }

    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects Index Page Layout (Desktop) */
.projects-index-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 800px;
    margin-left: auto;
}

.project-col {
    display: flex;
    flex-direction: column;
    gap: 80px;
    /* Space between rows in a column */
}

.project-index-item {
    display: flex;
    align-items: center;
    gap: 24px;
}

.project-index-item.reverse {
    flex-direction: row-reverse;
    justify-content: flex-end;
    /* Keep content aligned relative to column */
}

/* Ensure thumb size matches hero wide image */
/* Base thumb */
.project-thumb {
    width: clamp(140px, 18vw, 260px);
    height: clamp(60px, 7vw, 100px);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 30px rgba(0, 47, 167, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Thumb Variations for "Chaos" */
.project-thumb.thumb-wide {
    width: clamp(160px, 20vw, 300px);
    height: clamp(50px, 6vw, 80px);
    /* Extra wide and thin */
}

.project-thumb.thumb-square {
    width: clamp(100px, 12vw, 160px);
    /* Made smaller */
    height: clamp(100px, 12vw, 160px);
    /* Square-ish */
}

.project-thumb.thumb-taller {
    width: clamp(120px, 15vw, 200px);
    height: clamp(140px, 16vw, 220px);
    /* Portrait */
}

/* Hover Effects */
.project-index-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-index-item:hover .project-thumb {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 47, 167, 0.2);
}

.project-index-item:hover .project-number {
    color: var(--text-dark);
    /* Cycle to dark on hover */
}

/* Stagger the second column for Masonry/Chaos feel */
@media (min-width: 769px) {
    .project-col:nth-child(2) {
        padding-top: 200px;
        /* Increased push for better disorder */
    }

    /* Random margins for extra chaos */
    .project-index-item:nth-child(odd) {
        margin-left: -20px;
    }

    .project-index-item:nth-child(even) {
        margin-right: -20px;
    }
}

.project-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.project-number {
    font-family: 'Instrument Serif', 'IBM Plex Serif', serif;
    font-size: 64px;
    font-style: italic;
    color: var(--primary-blue);
    font-weight: 400;
    margin-bottom: 4px;
}

.project-label {
    font-family: var(--font-family);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Mobile Responsive Grid Layout for Hero */
/* Clean mobile layout with larger text and horizontal image strip */

@media (max-width: 768px) {
    .container {
        overflow: visible;
    }

    /* Hero with 24px padding each side */
    .hero-new {
        padding: 30px 0 40px 0;
        overflow: hidden;
        margin: 0;
        width: 100%;
    }

    .hero-typography {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
        position: relative;
    }

    /* Text lines - text only, images repositioned */
    .hero-line {
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 8px;
        position: static;
        /* Allow images to position relative to hero-typography */
    }

    /* Simple responsive font sizes - container handles margins */
    .hero-line-1 .hero-text {
        font-size: 16vw;
    }

    .hero-line-2 {
        margin-top: -4px;
    }

    .hero-line-2 .hero-text {
        font-size: 16vw;
    }

    .hero-line-3 {
        margin-top: -2px;
        gap: 4px;
    }

    .hero-line-3 .hero-text {
        font-size: 14vw;
    }

    .hero-line-4 {
        margin-top: -2px;
    }

    .hero-line-4 .hero-text {

        font-size: 14vw;

    }

    .section-title {
        font-size: 30px;
    }

    /* Hide inline images on mobile */
    .hero-inline-img {
        display: none;
    }

    /* Show mobile image strip - overlapping style */
    .hero-mobile-strip {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 24px;
        width: 100%;
        position: relative;
        height: 35vw;
        max-height: 160px;
    }

    .hero-mobile-img {
        position: absolute;
        width: 32vw;
        height: 26vw;
        max-width: 140px;
        max-height: 115px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 47, 167, 0.15);
    }

    .hero-mobile-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Left image - behind, rotated left */
    .hero-mobile-img:nth-child(1) {
        left: 2%;
        transform: rotate(-6deg);
        z-index: 1;
    }

    /* Center image - front */
    .hero-mobile-img:nth-child(2) {
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
    }

    /* Right image - behind, rotated right */
    .hero-mobile-img:nth-child(3) {
        right: 2%;
        transform: rotate(5deg);
        z-index: 2;
    }

    /* Tagline - centered below images */
    .hero-tagline {
        position: relative;
        left: auto;
        bottom: auto;
        text-align: center;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        width: 100%;
        margin: 0;
        margin-top: 8px;
        padding: 0 20px;
        z-index: 10;
    }

    .hero-tagline span {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .hero-tagline span:not(:last-child)::after {
        content: "·";
        margin-left: 4px;
    }

    .hero-services-strip {
        margin-top: 20px;
        flex-direction: column;
        gap: 6px;
    }

    .hero-service-item,
    .hero-service-divider {
        font-size: 13px;
        letter-spacing: 0.1em;
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-service-divider {
        display: none;
    }

    .hero-services-strip {
        opacity: 0;
        animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        animation-delay: 0.5s;
    }

    .hero-cta-group {
        margin-top: 20px;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0;
        animation-delay: 0.7s;
    }

    .hero-cta {
        font-size: 13px;
        padding: 14px 16px;
        text-align: center;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }

    /* Blog grid - single column on mobile */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Projects Index Mobile */
    .projects-index-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-index-item {
        gap: 16px;
    }

    .project-number {
        font-size: 32px;
    }

    .blog-post {
        margin-bottom: 16px;
    }

    /* Footer - stack vertically on mobile */
    .footer-inner {
        flex-direction: column !important;
        gap: 32px !important;
    }

    .contact-left,
    .contact-right {
        width: 100%;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .contact-right {
        order: -1;
        margin-bottom: 0;
    }

    .footer-contact {
        padding: 32px 0;
    }

    .email-link {
        font-size: 16px !important;
        word-break: break-all;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .copyright {
        margin-top: 24px;
        text-align: left;
    }
}

/* =========================================
   Scroll Reveal Animations
   ========================================= */

/* Base Observe Class */
.reveal-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
}

/* Type 1: Fade Up (for text/sections) */
.reveal-fade-up {
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Type 2: Grow Outward (for images) */
/* This simulates the image expanding from center */
.reveal-img-grow {
    transform: scale(0.92) translateY(40px);
    /* Start slightly smaller and lower */
    opacity: 0;
    transition: transform 1.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 1s ease;
}

.reveal-img-grow.is-visible {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Type 3: Staggered Children (for lists/grids) */
.reveal-stagger-group>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger-group.is-visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal-stagger-group.is-visible>*:nth-child(1) {
    transition-delay: 0s;
}

.reveal-stagger-group.is-visible>*:nth-child(2) {
    transition-delay: 0.08s;
}

.reveal-stagger-group.is-visible>*:nth-child(3) {
    transition-delay: 0.16s;
}

.reveal-stagger-group.is-visible>*:nth-child(4) {
    transition-delay: 0.24s;
}

.reveal-stagger-group.is-visible>*:nth-child(5) {
    transition-delay: 0.32s;
}

.reveal-stagger-group.is-visible>*:nth-child(6) {
    transition-delay: 0.4s;
}