/* Custom Fonts */

/* Ensure the HTML `hidden` attribute always wins over any display rule in this stylesheet */
[hidden] { display: none !important; }

@font-face {
    font-family: 'Poppins';
    src: url('assets/font/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/font/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('assets/font/InstrumentSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alata';
    src: url('assets/font/Alata-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Shared Alata headline rule — apply to all elements using this font */
.alata {
    font-family: 'Alata', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@font-face {
    font-family: 'Inconsolata';
    src: url('assets/font/Inconsolata-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 200 900;
    font-style: normal;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --carousel-gap: 20px;
    /* ~2.5 tiles visible on desktop */
    --carousel-item-size: clamp(420px, 40vw, 760px);
    --team-card-size: 280px;
    --team-card-gap: 30px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fff;
    color: #000;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* Navigation Bar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 0;
    transition: gap 0.5s ease;
    padding-left: 40px;
}

/* Home link wrapper around left bracket */
.nav-bracket-home {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

/* Burger button — hidden on desktop */
.nav-burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 22px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.burger-arrow {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.nav-burger.is-open {
    flex-direction: row;
    gap: 4px;
    width: auto;
}

.nav-burger.is-open .burger-arrow-top {
    transform: rotate(-90deg);
}

.nav-burger.is-open .burger-arrow-bottom {
    transform: rotate(-90deg);
}

/* Mobile menu — hidden by default */
.nav-mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #000;
    padding: 8px 0;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.nav-mobile-menu.is-open {
    display: flex;
}

.nav-mobile-link {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Instrument Sans', sans-serif;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-mobile-link:last-child {
    border-bottom: none;
}

.nav-mobile-link:hover {
    color: #0000FF;
}

.nav-bracket {
    width: 18px;
    height: 18px;
    object-fit: contain;
    cursor: pointer;
    user-select: none;
    transition: transform 0.5s ease;
    margin: 0;
    padding: 0;
    display: block;
    flex-shrink: 0;
}

.bracket-left {
    transform: rotate(0deg) translateY(-8px);
}

.bracket-right {
    transform: rotate(0deg) translateY(8px);
    margin-left: -18px;
    transition: transform 0.5s ease;
}

.nav-container.rotated .bracket-left,
.nav-container.expanded .bracket-left {
    transform: rotate(-90deg) translateY(-8px);
}

.nav-container.rotated .bracket-right,
.nav-container.expanded .bracket-right {
    transform: rotate(-90deg) translateY(8px);
}

.nav-container.expanded {
    gap: 95%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(12px, 5vw, 60px);
    opacity: 0;
    transition: opacity 0.5s ease 0.1s;
    pointer-events: none;
    padding: 0 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu.visible {
    opacity: 1;
    pointer-events: all;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: #666;
}

.separator {
    display: none;
}

.separator {
    color: #0000FF;
    font-size: 18px;
}

/* Tagline Ticker */
.tagline-ticker {
    width: 100%;
    padding: 28px 0;
}

.tagline-track {
    width: 60%;
    animation: ticker-bounce 6s ease-in-out infinite alternate;
}

.tagline-text {
    font-size: clamp(18px, 2.2vw, 32px);
    font-weight: 400;
    color: #0000FF;
    letter-spacing: 0.01em;
    line-height: 1.3;
    display: block;
}

/* @keyframes ticker-bounce {
    0%, 100% { transform: translateX(33.33%); }  
    25%      { transform: translateX(5%); }        
    75%      { transform: translateX(66.67%); }   
} */

@keyframes ticker-bounce {
    0%   { transform: translateX(5%); }      /* left edge */
    100% { transform: translateX(66.67%); }  /* right edge */
}

/* Video Section */
#video-section {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 5vh 0;
    border-bottom: 1px solid #000;
}

/* Landing page dividers */
.site-section {
    border-bottom: 1px solid #000;
}

/* Landing page dividers */
.site-section {
    border-bottom: 1px solid #000;
}

.video-container {
    width: 100%;
    position: relative;
}

#videoPlayer {
    width: 100%;
    height: auto;
    display: block;
}

/* Carousel Sections */
.carousel-section {
    padding: 0;
    min-height: 140vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
    border-bottom: 1px solid #000;
}

.carousel-section.carousel-section--compact {
    min-height: unset;
    padding-bottom: 40px;
}

.carousel-section h2 {
    font-size: 48px;
    text-align: left;
    padding: 0px 60px 40px;
    font-weight: 500;
    padding-left: 40px;
}

.carousel-container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    margin-bottom: 40px;
}

.carousel-track {
    display: flex;
    gap: var(--carousel-gap);
    transition: none;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 var(--carousel-item-size);
    aspect-ratio: 1 / 1;
    height: auto;
    position: relative;
    cursor: pointer;
}

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

.carousel-cover-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-item:hover .carousel-cover-hover {
    opacity: 1;
}

.carousel-item-overlay {
    display: none;
}

.carousel-item-title {
    display: none;
}

.carousel-item-desc {
    display: none;
}

.carousel-item.hovered {
}

.carousel-item:not(.hovered) {
}

/* Project Info Box */
.project-info {
    max-width: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    background: transparent;
    border-radius: 0;
    transition: opacity 0.3s ease;
    padding: 0 0 40px;
    position: relative;
}

.project-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project-nav-arrow {
    width: 0.85em;
    height: 0.85em;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    font-size: clamp(38px, 3.2vw, 56px);
}

.project-nav-arrow.project-nav-prev {
}

.project-nav-arrow.project-nav-next {
}

.project-nav-arrow:hover {
    opacity: 0.6;
}

.project-info-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
    padding: 0 40px;
    height: 16rem;
}

.project-info-column {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-info-right {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 20px;
}

.project-title {
    font-size: clamp(38px, 3.2vw, 56px);
    margin-bottom: 0;
    font-weight: 400;
    font-family: 'Instrument Sans', sans-serif;
    flex: 0 0 auto;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-meta-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-meta-key {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0000FF;
}

.project-meta-val {
    font-size: 13px;
    color: #0000FF;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    overflow: hidden;
}

.project-description {
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
    flex: 1;
    text-align: left;
    overflow: hidden;
}

/* What We Do Section */
.what-we-do-section {
    padding: 80px 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.what-we-do-header {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 120px;
}

.research-header {
    width: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: clamp(38px, 3.2vw, 56px);
    font-weight: 500;
}

.research-header h2 {
    display: flex;
    align-items: center;
    font-size: inherit;
    font-weight: 400;
    margin: 0;
    flex: 0 0 50%;
}

.research-placeholder-img {
    flex: 0 0 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}

.research-placeholder-inner {
    position: relative;
    width: 100%;
}

.research-placeholder-img img {
    width: 100%;
    height: auto;
    display: block;
}

.research-placeholder-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.research-placeholder-inner:hover .research-placeholder-hover {
    opacity: 1;
}

.research-placeholder-inner:hover .research-placeholder-default {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.what-we-do-title {
    font-size: clamp(38px, 3.2vw, 56px);
    margin-bottom: 0;
    flex: 0 0 50%;
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
}

.what-we-do-description {
    flex: 0 0 50%;
    margin-left: auto;
}

.what-we-do-description p {
    font-size: 18px;
    line-height: 1.6;
    color: #000;
    padding-left: 20px;
}

/* Section title bracket animation */
.section-title-animated .title-bracket {
    height: 0.85em;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

.section-title-animated .title-inner {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 0;
    transition: max-width 1.4s ease, opacity 1s ease, padding 1.4s ease;
}

.section-title-animated.title-is-open:not(.title-is-hovered) .title-inner {
    max-width: 20ch;
    opacity: 1;
    padding: 0 0.4em;
}

.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.category-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-header-details {
    margin-bottom: 24px;
}

.category-header {
    margin-bottom: 24px;
}

.category-title {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0000FF;
    margin: 0;
}

.category-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: #0000FF;
    margin: 6px 0 0;
    height: calc(1.5em * 3);
    overflow: hidden;
}

.what-we-do-item {
}

.what-we-do-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #000;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.what-we-do-item summary::-webkit-details-marker {
    display: none;
}

.what-we-do-item summary::after {
    content: '+';
    font-size: 17px;
    color: #000;
    margin-left: 12px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.what-we-do-item[open] > summary::after {
    content: '\2212';
}

.what-we-do-item summary:hover,
.what-we-do-item summary:hover::after {
    color: #0000FF;
}

.what-we-do-item > p {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    margin: 0 0 16px;
    padding-right: 24px;
}

/* Who We Are Section */
.who-we-are-section {
    padding: 80px 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.who-we-are-header {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.who-we-are-title {
    font-size: clamp(38px, 3.2vw, 56px);
    margin-bottom: 0;
    flex: 0 0 50%;
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
}

.who-we-are-content {
    flex: 0 0 50%;
    margin-left: auto;
    padding-left: 20px;
}

.who-we-are-description {
    font-size: 18px;
    line-height: 1.6;
    color: #000;
}

/* Inline section link button */
.section-link-btn {
    display: inline-block;
    margin-top: 24px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1.5px;
    text-transform: lowercase;
    color: #000;
    border-bottom: 1px solid #000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.section-link-btn:hover {
    color: #0000FF;
    border-bottom: 1px solid #0000FF;
}

/* Contact / mailto section */
.contact-section {
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-title {
    font-size: clamp(28px, 2.4vw, 42px);
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
}

.contact-title.section-title-animated.title-is-open:not(.title-is-hovered) .title-inner {
    max-width: 40ch;
}

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

.contact-row {
    display: flex;
    gap: 0;
}

.contact-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #000;
    border-radius: 0;
    padding: 12px 0;
    font-size: 16px;
    font-family: 'Instrument Sans', sans-serif;
    color: #000;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    resize: none;
}

.contact-row .contact-input + .contact-input {
    border-left: 1px solid #000;
    padding-left: 16px;
}

.contact-input::placeholder {
    color: rgba(0,0,0,0.35);
}

.contact-input:focus {
    border-bottom-color: #0000FF;
}

.contact-textarea {
    border-top: none;
    padding-top: 16px;
    min-height: 120px;
}

.contact-actions {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0;
}

.contact-send-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-family: 'Instrument Sans', sans-serif;
    letter-spacing: 0.5px;
    color: #000;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.contact-send-btn:hover {
    color: #0000FF;
}

/* About page */
.about-main {
    display: flex;
    flex-direction: column;
}

.about-hero {
    padding: 80px 40px 60px;
}

.about-hero-header {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.about-hero-title {
    font-size: clamp(38px, 3.2vw, 56px);
    margin-bottom: 0;
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.about-hero-description {
    flex: 0 0 50%;
    margin-left: auto;
}

.about-hero-description p {
    font-size: 18px;
    line-height: 1.6;
    color: #000;
}

.about-manifesto {
    padding: 0;
}

.about-manifesto-content {
    width: 100%;
}

.about-team {
    padding: 60px 40px 80px;
}

/* About page CMS blocks */
.about-block-text {
    padding: 60px 40px;
    max-width: 720px;
}

/* Text split block */
.text-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.text-split-col {
    padding: 60px 40px;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.text-split-col:last-child {
    border-right: none;
}

.text-split-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
}

.text-split-heading {
    font-size: clamp(20px, 2vw, 30px);
    margin: 0;
    font-weight: 400;
}

.text-split-number {
    font-size: clamp(14px, 1.2vw, 18px);
    color: #0000FF;
    opacity: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.text-split-body {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    color: #000;
    white-space: pre-wrap;
}

.about-block-heading {
    font-size: clamp(24px, 2.2vw, 36px);
    margin: 0 0 16px;
}

.about-block-body {
    font-size: 18px;
    line-height: 1.7;
    color: #000;
    margin: 0;
    white-space: pre-wrap;
}

.about-block-image img {
    width: 100%;
    display: block;
}

.about-block-quote {
    padding: 60px 40px;
    font-size: clamp(22px, 2.4vw, 36px);
    line-height: 1.4;
    border-left: 2px solid #000;
    margin: 0;
    font-style: normal;
}

.about-block-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 0 40px;
}

.about-block-spacer {
    height: 60px;
}

.team-carousel-wrap {
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.team-carousel-wrap img {
    -webkit-user-drag: none;
    pointer-events: none;
}

.team-member {
    pointer-events: auto;
}

.team-carousel-wrap:active {
    cursor: grabbing;
}

.team-carousel-track {
    display: flex;
    gap: var(--team-card-gap);
    will-change: transform;
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 var(--team-card-size);
}

.team-member-photos {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.team-member img,
.team-member-photo-default {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.team-member-photo-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-member:hover .team-member-photo-hover {
    opacity: 1;
}

.member-name {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: #000;
}

.member-role {
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    margin: 0;
}

/* Footer */
.site-footer {
    width: 100%;
    padding: 40px;
}

/* Project Page */
.project-main {
    padding-top: 50px;
}

.project-header {
    padding: 80px 40px 240px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.project-header-left {
    flex: 0 0 calc(50% - 20px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.project-header-title {
    font-size: clamp(38px, 3.2vw, 56px);
    margin: 0;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Project title — reuses .section-title-animated; override max-width for longer names */
.project-header-title.section-title-animated.title-is-open:not(.title-is-hovered) .title-inner {
    max-width: 30ch;
}

.project-header-right {
    flex: 0 0 calc(50% - 20px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project-header-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.project-header-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

.project-header-meta-row--span2 {
    grid-column: 1 / -1;
}

.project-header-meta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.project-header-meta-key {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0000FF;
    flex: 0 0 auto;
}

.project-header-meta-val {
    font-size: 14px;
    color: #000;
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    color: #000;
    background: transparent;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.source-link {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    width: fit-content;
}

.source-link:hover {
    color: #666;
    border-bottom-color: rgba(0,0,0,0.35);
}

.project-hero {
    width: 100%;
}

.project-hero-media {
    width: 100%;
}

.project-hero-media img,
.project-hero-media video {
    width: 100%;
    height: auto;
    display: block;
}

.project-summary {
    padding: 80px 40px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.project-title-large {
    font-size: 32px;
    margin: 0;
    flex: 0 0 25%;
    text-align: left;
}

.project-summary-content {
    flex: 0 0 50%;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-lede {
    font-size: 18px;
    line-height: 1.6;
    color: #000;
    margin: 0;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.project-meta-key {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0000FF;
}

.project-meta-val {
    font-size: 14px;
    color: #000;
}

.project-back {
    padding: 0 40px 90px;
    display: flex;
    justify-content: flex-start;
}

.project-back-link,
.project-back .back-link,
a.project-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.18);
    color: #000;
    text-decoration: none;
    font-size: 14px;
    width: fit-content;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.project-back-link:hover,
.project-back .back-link:hover,
a.project-back:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.28);
    color: #000;
}

.project-back-link:active,
.project-back .back-link:active,
a.project-back:active {
    transform: translateY(1px);
}

.project-back-link:focus-visible,
.project-back .back-link:focus-visible,
a.project-back:focus-visible {
    outline: 2px solid rgba(0,0,0,0.35);
    outline-offset: 3px;
}

.project-gallery {
    padding: 0 40px 80px;
}

.project-gallery-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

.project-content {
    padding: 0 40px 40px;
}

.project-content-inner {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.project-block-heading {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 10px;
}

.project-block-body {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.project-block-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}

.project-block-image {
    margin: 0;
}

.project-block-gallery .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.project-block-gallery .project-gallery-grid img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
}

.project-block-caption {
    font-size: 13px;
    color: #0000FF;
    margin-top: 10px;
}

.project-block-quote {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 400;
    padding-left: 18px;
    border-left: 2px solid #ddd;
    margin: 0;
}

.project-block-divider {
    border: 0;
    border-top: 1px solid #e6e6e6;
    margin: 26px 0;
}

.project-block-spacer {
    height: 48px;
}

/* Sticky split (image left, text right) — project pages */
.sticky-split {
    display: flex;
    gap: 40px;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
    overflow: visible;
}

.sticky-split-left {
    flex: 0 0 50%;
    min-width: 0;
    align-self: stretch;
    position: relative;
}

.sticky-split-media {
    position: sticky;
    top: 80px;
    width: 100%;
    height: calc(100vh - 120px);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0,0,0,0.04);
}

.sticky-split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sticky-split-right {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding: 0 12px;
}

.sticky-split-step {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-split-step.is-active {
    border-bottom-color: rgba(0,0,0,0.18);
}

.sticky-split-step-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 34ch;
}

.sticky-split-heading {
    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 500;
    font-family: 'Instrument Sans', sans-serif;
    line-height: 1.3;
    margin: 0;
}

.sticky-split-text {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    text-align: start;
}

.site-footer-inner {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-top-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    height: 22px;
    width: auto;
    display: block;
}

.footer-logo-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.footer-logo-icon-left {
    transform: rotate(90deg);
}

.footer-logo-icon-right {
    transform: rotate(90deg);
}

.footer-brand {
    font-size: 18px;
    color: #000;
}

.footer-brand::after {
    content: '_';
}

/* When using the image logo, don't force an underscore fallback */
.footer-brand-fallback::after {
    content: '';
}

.footer-meta {
    font-size: 14px;
    color: #0000FF;
    white-space: nowrap;
}

.footer-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-link {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

button.footer-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.footer-link:hover {
    color: #0000FF;
}

.footer-sep {
    color: #0000FF;
    font-size: 14px;
}

/* Responsive Design */
/* Tablet - 50/50 split */
@media (max-width: 1024px) {
    .project-title {
        font-size: clamp(38px, 3.2vw, 56px);
    }
    
    .project-description {
        flex: 0 0 50%;
    }
    
    .what-we-do-title {
        flex: 0 0 50%;
        font-size: 34px;
    }

    .what-we-do-description {
        flex: 0 0 50%;
    }
    
    .what-we-do-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .who-we-are-title {
        flex: 0 0 50%;
        font-size: 34px;
    }
    
    .who-we-are-content {
        flex: 0 0 50%;
    }

    .project-title-large {
        flex: 0 0 50%;
        font-size: 28px;
    }

    .project-summary-content {
        flex: 0 0 50%;
    }

    .project-header {
        padding: 70px 40px 30px;
    }

    .project-header-title {
        font-size: clamp(38px, 4.2vw, 56px);
    }
}

/* Mobile - vertical layout */
@media (max-width: 768px) {
    #navbar {
        padding: 15px 20px;
    }

    .research-header {
        flex-direction: column;
        align-items: flex-start;
        min-height: unset;
        gap: 20px;
    }

    .research-header h2 {
        flex: none;
    }

    .research-placeholder-img {
        flex: none;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    /* Hide desktop bracket nav, show burger */
    .nav-container {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .nav-link {
        font-size: 16px;
    }

    .carousel-section h2 {
        font-size: 32px;
    }
    
    :root {
        --carousel-item-size: clamp(280px, 80vw, 460px);
    }

    .carousel-item {
        flex: 0 0 var(--carousel-item-size);
    }
    
    .project-info {
        padding: 30px 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .project-title {
        flex: 1 1 auto;
        font-size: 24px;
    }
    
    .project-description {
        flex: 1 1 auto;
        font-size: 16px;
    }

    .site-footer {
        padding: 30px 20px;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .what-we-do-section {
        padding: 60px 20px;
        gap: 30px;
    }

    .what-we-do-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .what-we-do-title {
        flex: 1 1 auto;
        font-size: 28px;
        display: flex;
        text-align: left;
    }
    
    .what-we-do-description {
        flex: 1 1 auto;
        padding: 0;
    }
    
    .what-we-do-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .who-we-are-section {
        padding: 60px 20px;
        gap: 40px;
    }
    
    .who-we-are-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .who-we-are-title {
        flex: 1 1 auto;
        font-size: 28px;
        display: block;
        text-align: center;
    }
    
    .who-we-are-content {
        flex: 1 1 auto;
        padding: 0;
    }

    :root {
        --team-card-size: 220px;
        --team-card-gap: 20px;
    }

    .project-summary {
        padding: 60px 20px;
        flex-direction: column;
        gap: 20px;
    }

    .project-title-large {
        flex: 1 1 auto;
        font-size: 24px;
    }

    .project-summary-content {
        flex: 1 1 auto;
    }

    .project-gallery {
        padding: 0 20px 60px;
    }

    .project-header {
        padding: 70px 20px 24px;
        flex-direction: column;
        gap: 18px;
    }

    .project-header-left,
    .project-header-right {
        flex: 1 1 auto;
    }

    .project-header-title {
        font-size: 34px;
    }

    .project-header-description {
        font-size: 16px;
    }

    .project-header-meta {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .project-content {
        padding: 0 20px 30px;
    }

    .project-content-inner {
        gap: 22px;
    }

    .project-block-heading {
        font-size: 20px;
    }

    .project-block-body {
        font-size: 16px;
    }

    .sticky-split {
        flex-direction: column;
        height: auto;
        gap: 16px;
        overflow: visible;
    }

    .sticky-split-left,
    .sticky-split-right {
        flex: 1 1 auto;
    }

    .sticky-split-media {
        position: relative;
        top: auto;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .sticky-split-step {
        min-height: auto;
        padding: 16px 0;
        display: block;
    }

    .sticky-split-step-body {
        max-width: none;
    }

    .sticky-split-text {
        font-size: 16px;
        text-align: left;
        max-width: none;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .text-split {
        grid-template-columns: 1fr;
    }

    .text-split-col {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding: 40px 20px;
    }

    .text-split-col:last-child {
        border-bottom: none;
    }

    /* Carousel: stack project-info vertically on mobile */
    .carousel-section {
        min-height: auto;
    }

    .project-info-content {
        flex-direction: column;
        height: auto;
        padding: 0 20px;
    }

    .project-info-column {
        flex: 1 1 auto;
    }

    .project-info-right {
        flex: 1 1 auto;
        padding-left: 0;
    }

    .project-title {
        white-space: normal;
        font-size: clamp(26px, 7vw, 38px);
    }

    /* Contact section */
    .contact-section {
        padding: 60px 20px;
    }

    .contact-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-row .contact-input + .contact-input {
        border-left: none;
        padding-left: 0;
    }

    /* Who we are title alignment on mobile */
    .who-we-are-title {
        align-self: auto;
        text-align: left;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-section {
    animation: fadeIn 0.6s ease;
}

/* Force light mode */
:root {
    color-scheme: light;
}