* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
    font: inherit;
}

body {
    font-family: 'Satoshi';
    font-variation-settings: 'wght' 300;
    background: #fff;
    color: var(--black);

    /* --offwhite: #FAF8F3; */
    --offwhite: #F9F9F9;
    --green: #0F4B47;
    --black: #101010;
    --highlight: #88FBF3;
}

html {
    font-size: 8px;
}

strong {
    color: var(--green);
}

img {
    max-width: 100%;
}

button {
    appearance: none;
    background: transparent;
    border: none;
}

.section {
    padding: 10rem 4rem;
    position: relative;
    display: flex;
    justify-content: center;
}

main .section:last-of-type {
    padding-bottom: 20rem;
}

.content {
    width: 100%;
    max-width: 1440px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 2.5rem;
    position: relative;
}

.span-1 {
    grid-column: auto / span 1;
}

.span-2 {
    grid-column: auto / span 2;
}

.span-3 {
    grid-column: auto / span 3;
}

.span-4 {
    grid-column: auto / span 4;
}

.span-5 {
    grid-column: auto / span 5;
}

.span-6 {
    grid-column: auto / span 6;
}

.span-7 {
    grid-column: auto / span 7;
}

.span-10 {
    grid-column: auto / span 10;
}

.span-12 {
    grid-column: auto / span 12;
}

.offset {
    grid-column-start: 2;
}

.kicker {
    color: var(--green);
    position: relative;

    margin-bottom: 2.5rem;
}

.kicker:before {
    content: '';
    width: 1.75rem;
    height: 1.75rem;
    display: block;
    background: var(--green);
    position: absolute;
    top: .5rem;
    left: -4.2rem;
    border-radius: 2px;
}

.kicker:after {
    content: '';
    display: block;
    height: 1px;
    background: var(--green);
    width: 2800px;
    position: absolute;
    left: -4.2rem;
    top: 1.25rem;
    transform: rotate(180deg);
    transform-origin: left;
}

.kicker+h2 {
    margin-bottom: 9rem;
}

.btn {
    display: inline-block;
    color: var(--green);
    text-decoration: none;
    border: solid 1px var(--green);
    border-radius: 4px;
    padding: .5rem 1rem;
}

.btn:hover {
    background: var(--green);
    color: var(--offwhite);
    opacity: 1;
}

.btn--invert {
    border: solid 1px var(--offwhite);
    color: var(--offwhite);
    background: transparent;
}

.btn--invert:hover {
    background: #fff;
    color: var(--green);
}

.btn+.btn {
    margin-left: .5em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all .2s cubic-bezier(0.25, 1, 0.5, 1);
}

a:hover {
    opacity: .6;
}

::selection {
    background: var(--green);
    color: var(--offwhite);
}

.nowrap {
    white-space: nowrap;
}






/* typography */

/* FONT STYLES */

@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/Satoshi-Variable.ttf');
    font-display: swap;
}

.font-medium {
    font-variation-settings: 'wght' 400;
}

.font-bold {
    /* font-variation-settings: 'wght' 700; */
    font-variation-settings: 'wght' 600;
}

/* FONT SIZES */

.fs-xxl {
    /* font-size: 60px; */
    font-size: 7.5rem;
}

.fs-xl {
    /* font-size: 48px; */
    font-size: 6rem;
}

.fs-l {
    /* font-size: 36px; */
    font-size: 4.5rem;
}

.fs-m {
    /* font-size: 28px; */
    font-size: 3.5rem;
}

.fs-s {
    /* font-size: 24px; */
    font-size: 3rem;
}

.fs-xs {
    /* font-size: 20px; */
    font-size: 2.5rem;
}

.fs-xxs {
    /* font-size: 16px; */
    /* font-size: 2rem; */
    font-size: max(2rem, 14px);
}

/* LINE HEIGHTS */

.lh-110 {
    line-height: 1.1;
}

.lh-140 {
    line-height: 1.4;
}

p.lh-110 + .btn, .lh-110 > p + .btn, p.lh-110 + p, .lh-110 > p+p {
    margin-top: 1.1em;
}

p.lh-140 + .btn, .lh-140 > p + .btn, p.lh-140 + p, .lh-140 > p+p {
    margin-top: 1.4em;
}




.nav {
    position: fixed;
    top: 3rem;
    display: flex;
    flex-wrap: wrap;
    width: 100rem;
    left: 50%;
    align-content: flex-start;
    transform: translateX(-50%);
    z-index: 5;
    background: rgba(16,16,16,.6);
    border-radius: 4px;
    padding: 0 14px;
    height: 40px;
    justify-content: space-between;
    backdrop-filter: blur(8px);

    transition: all .2s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-logo {
    width: 60px;
    position: relative;
    height: 40px;
    align-content: center;
}

.nav-logo img {
    position: relative;
    top: .25rem;
}

.nav-logo:hover {
    opacity: 1;
}

.nav ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 3.6rem;
    margin-right: 2rem;
    height: 40px;
}

.nav-hamburger {
    display: none;
    height: 40px;
    width: 40px;
    position: absolute;
    right: 0;
    color: var(--offwhite);
}

.nav ul li a {
    color: var(--offwhite);
}

.nav ul li a:hover {
    color: var(--highlight);
    opacity: 1;
}

.nav ul a.current {
    color: var(--highlight);
    position: relative;
}

.nav ul a.current:before {
    content: '';
    width: 1.4rem;
    height: 1.4rem;
    display: inline-block;
    background: var(--highlight);
    position: relative;
    left: -1rem;
    border-radius: 2px;
}





/* cards */

.cards {
    grid-column: 2 / span 10;
    display: grid;
    grid-template-columns: subgrid;
    grid-gap: 2rem;
    margin-bottom: 9rem;
}

.card {
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    padding: 3rem;
}

.cards--theme1 .card {
    /* background: rgba(185,218,214,.6);
    background: rgba(185,218,214,.4); */
    background: rgba(185,218,214,.2);
    backdrop-filter: blur(5px);
    min-height: 40rem;
    transition: all .3s cubic-bezier(0.25, 1, 0.5, 1);
}

.cards--theme1 .card:hover {
    transform: scale(1.03);
    background: rgba(185,218,214,.6);
}

.card h3 {
    margin-bottom: auto;
}

.cards--theme1 .card ul {
    opacity: .8;
}

.cards ul {
    list-style-type: none;
}

.cards ul li::before {
    content: '→ ';
}

/* Expertise page specific styles */
.hero--expertise {
    padding: 12rem 4rem;
    background: linear-gradient(180deg, rgba(15,75,71,0.04), rgba(15,75,71,0));
}
.hero--expertise .hero-title {
    color: var(--black);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--black);
    border-radius: 1.5rem;
    position: relative;
}

/* Subtle dot texture overlay */
.bento-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.1;
    pointer-events: none;
    border-radius: 1.5rem;
}

.bento-card {
    background: rgba(255,255,255,0.03);
    padding: 2.5rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: 1rem;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.bento-card:hover::before {
    border-color: var(--highlight);
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-number {
    color: var(--highlight);
    margin-bottom: 1rem;
    font-feature-settings: "tnum";
    opacity: 0.8;
}

.bento-card h3 {
    color: var(--offwhite);
    margin-bottom: 1rem;
}

.bento-card p {
    color: rgba(255,255,255,0.6);
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}
.video-tile {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(16,16,16,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.video-tile:focus,
.video-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(16,16,16,0.12);
    outline: none;
}
.video-thumb {
    position: relative;
    height: 220px;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-thumb video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.video-tile.show-preview .video-thumb video {
    display: block;
}
.video-title {
    padding: 1rem;
    border-top: 1px solid rgba(16,16,16,0.03);
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
}
.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: calc(100% - 4rem);
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.lightbox-content video {
    width: 100%;
    height: auto;
    display: block;
}
.lightbox-close {
    position: absolute;
    right: .5rem;
    top: .5rem;
    z-index: 3;
    background: transparent;
    color: #fff;
    font-size: 2.8rem;
    line-height: 1;
    border: none;
    padding: .5rem .75rem;
    cursor: pointer;
}

.industries {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.industry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 6px;
    background: rgba(16,16,16,0.02);
}
.industry-icon {
    font-size: 2.2rem;
}

.industry-icon svg {
    width: 2.6rem;
    height: 2.6rem;
    display: block;
    stroke: var(--green);
    stroke-width: 1.5;
    fill: none;
}

@media (max-width: 900px) {
    .video-gallery { grid-template-columns: 1fr; }
    .industries { grid-template-columns: repeat(2, 1fr); }
    /* Make the bento grid collapse to a single column on narrower screens */
    .bento-grid { grid-template-columns: 1fr; padding: 1rem; }
    .bento-card { padding: 1.5rem; border-radius: .75rem; }
    .bento-card h3 { font-size: 2.2rem; }
    .card-number { font-size: 1.05rem; }
}

/* Small phones: single-column, flush spacing */
@media (max-width: 420px) {
    .bento-grid { gap: 1rem; padding: .75rem; }
    .bento-card { padding: 1rem; border-radius: .6rem; }
    .bento-card h3 { font-size: 1.9rem; }
    .bento-card p { font-size: 1.1rem; }
    .card-number { font-size: .95rem; }
}


.cards--theme2 .card {
    min-height: 32rem;
    padding: 0;
}

.cards--theme2 .card svg {
    stroke: var(--green);
    width: 6rem;
    height: 6rem;
    margin-bottom: 2rem;
}

.cards--theme2 .card h3 {
    color: var(--green);
    margin-bottom: 2rem;
}

.cards--theme2 .card p {
    opacity: .6;
    max-width: 24ch;
}



/* texture */
.texture {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.texture--1 {
    background: url(../images/texture1.png);
}

.texture--2 {
    background: url(../images/texture2.png);
}

.texture--3 {
    background: url(../images/texture3.png);
}

.mos:before, .expertise:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    z-index: -1;
    height: 20rem;
    width: 100%;
    background: linear-gradient(to bottom, var(--offwhite) 0%, transparent 100%);
}

.mos:after, .expertise:after, .credibility:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    z-index: -1;
    height: 20rem;
    width: 100%;
    background: linear-gradient(to top, var(--offwhite) 0%, transparent 100%);
}




/* hero */

.hero {
    height: 100vh;
    height: 100dvh;
    background: var(--black);
    background-size: cover;
    color: var(--offwhite);
    padding-bottom: 10rem;
    position: relative;
    overflow: hidden;
}

.hero-gradient {
    background: rgba(0,0,0,.8);
    mask-image: linear-gradient(to bottom, transparent 0%, black 90%);
    backdrop-filter: blur(20px);
    position: absolute;
    width: 100%;
    height: 50%;
    bottom: 0;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    mix-blend-mode: screen;
    animation: overlayani 15s linear infinite;
    pointer-events: none;
}

@keyframes overlayani {
    0%   { transform: translateY(0%); }
    100% { transform: translateY(-50%); }
  }

.hero-overlay img {
    width: 80%;
    width: 75%;

    margin: 20rem 0;

    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

.hero-overlay img:nth-child(even) {
    align-self: flex-start;
}

.hero-overlay img:nth-child(odd) {
    align-self: flex-end;
}

.hero-text {
    margin-top: auto;
    z-index: 2;
}

.hero-title {
    margin-bottom: 3.5rem;
}

.hero-subline {
    opacity: .8;
}




/* credibility */

.logos {
    overflow: hidden;
    overflow: scroll;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2rem;
    mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
  
.logos-track {
    display: inline-flex;
    white-space: nowrap;
    width: max-content;
    flex-shrink: 0;
    width: 308rem;
    animation: marquee 10s linear infinite;
}
  
.logos img {
    max-height: 5rem;
    max-height: 6rem;
    flex-shrink: 0;
    margin-right: 8rem;
    opacity: 0.4;
}
  
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}





/* footer */

.footer {
    background: var(--black);
    color: var(--offwhite);
}

.footer-logo svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.footer .section:first-of-type .content {
    border-bottom: solid 1px rgba(249,249,249,.4);
    padding-bottom: 20rem;
}

.footer .section:first-of-type .content div+div {
    margin-top: 10rem;
}

.footer-block div {
    display: flex;
    gap: 2.5rem;
}

.footer-block div span {
    text-align: right;
    display: flex;
    opacity: .6;
    flex: 1;
    justify-content: end;
}

.footer-block div a, .footer-block div p {
    display: block;
    flex: 2;
}

.footer .section+.section {
    padding-top: 0;
}




/* breakpoints */
@media (max-width: 1200px) {
    html {
        font-size: 7px;
    }
}

@media (max-width: 1000px) {
    html {
        font-size: 6px;
    }

    .cards--theme1 {
        grid-column: 1 / span 12;
    }

    .cards--theme1 .span-5 {
        grid-column: auto / span 6;
    }

    .cards--theme1 .span-3 {
        grid-column: auto / span 4;
    }
}

@media (max-width: 800px) {
    html {
        font-size: 5px;
    }

    .span-1, .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-10 {
        grid-column: 2 / span 10;
    }

    .cards--theme1 .card {
        grid-column: auto / span 6;
    }

    .cards--theme2 .card {
        grid-column: auto / span 5;
    }

    .footer-logo {
        grid-column: 2 / span 10;
        margin-bottom: 4rem;
    }

    .footer-logo svg {
        width: 20%;
    }

    .footer-block {
        grid-column: auto / span 4;
    }
}

@media (max-width: 550px) {
    .content {
        display: block;
    }

    .hero .content {
        display: flex;
    }

    .kicker {
        left: 4rem;       
    }

    .logos {
        margin-top: 4rem;
    }

    .footer .section:first-of-type .content {
        padding-bottom: 12rem;
    }

    .footer .section:last-of-type .content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        row-gap: 0;
    }

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


    .footer-block:nth-child(2) {
        grid-column: 1;
    }

    .footer-block:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }

    .footer-block:nth-child(4) {
        grid-column: 2;
        grid-row: 2 / span 2;
        margin-top: 0 !important;
    }
    
    .footer-block div span {
        flex: 1;
    }

    .footer-block div a, .footer-block div p {
        flex: 6;
    }

    .footer-block:last-of-type {
        margin-top: 2.8em;
    }

    .fs-xxl {
        font-size: 6rem;
    }
    
    .fs-xl {
        font-size: 4.5rem;
    }
    
    .fs-l {
        font-size: 3.5rem;
    }

    .nav {
        width: calc(100% - 6dvh);
        height: 60px;
    }

    .nav-logo {
        height: 60px;
        width: 70px;
        left: 4px;
    }

    .nav-hamburger {
        display: flex;
        height: 60px;
        width: 60px;
        cursor: pointer;
        align-items: center;
        justify-content: center;

        color: var(--offwhite);
    }

    .nav-hamburger-icon {
        display: block;      
    }

    .nav-hamburger-icon .line {
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        transition: all .2s cubic-bezier(0.25, 1, 0.5, 1); 
        transform-origin: center;
    }

    .nav--expanded .nav-hamburger-icon .line {
        stroke-width: 2.5;

    }

    .nav--expanded .line1 {
        transform: rotate(45deg) translate(0, 6px);
    }
      
    .nav--expanded .line2 {
        opacity: 0;
    }
      
    .nav--expanded .line3 {
        transform: rotate(-45deg) translate(0, -6px);
    }

    .nav--expanded {
        height: calc(100% - 6dvh);
        backdrop-filter: blur(20px);
    }

    .nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        align-items: flex-start;
        justify-content: center;
        height: calc(100% - 120px);
        font-variation-settings: 'wght' 450;
        font-size: 32px;
        line-height: 1.4;
        gap: 0;
        width: 100%;
        pointer-events: none;
        margin: 0;
        opacity: 0;
        transition: all .2s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .nav--expanded ul {
        opacity: 1;
        pointer-events: auto;
    }

    .nav ul li {
        display: block;
        width: 100%;
    }

    .nav ul li a {
        display: block;
        position: relative;
        padding-left: 40px;
    }

    .nav ul a.current:before {
        width: 20px;
        height: 20px;
        position: absolute;
        left: 0;
        bottom: 10px;
    }
}

/* Expertise Hero Section */
.expertise-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.expertise-hero-video {
    width: 100%;
    height: 100%;
}
/* Put hero text at the bottom-left, responsively */
.hero--expertise .content {
  position: absolute;         /* float above video/gradient */
  inset: 0;                    /* fill the hero */
  display: flex;
  align-items: flex-end;       /* push children to the bottom */
  justify-content: flex-start; /* left side */
  padding: 0 clamp(16px, 5vw, 72px) clamp(32px, 10vh, 120px);
  z-index: 2;
}

.hero--expertise .content .offset {
  margin: 0;
  max-width: 1000px;          /* keep copy width tidy */
}

.hero--expertise .hero-title,
.hero--expertise .hero-subline,
.hero--expertise .kicker {
  text-align: left;
}

/* Make the bottom area darker so text reads well */
.hero-gradient {
  height: 60%;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
}

/* Mobile tweaks */
@media (max-width: 800px) {
  .hero--expertise .content {
    padding: 0 20px clamp(40px, 12vh, 120px);
  }
}

@media (max-width: 550px) {
  .hero--expertise .content {
    padding: 0 16px 56px;     /* a bit higher on very small screens */
  }
  .hero--expertise .hero-title { font-size: clamp(28px, 7vw, 56px); }
  .hero--expertise .hero-subline { font-size: clamp(14px, 4vw, 20px); }
}
