/* ===========================================
   BRANDING BY ALAA — Main Stylesheet
   =========================================== */

:root {
    --color-green: #00FF00;
    --color-dark: #0A0A0A;
    --color-grey: #1C1C1C;
    --color-mid-grey: #6E6E6E;
    --color-light-grey: #B0B0B0;
    --color-white: #FFFFFF;
    --font-display: 'DM Serif Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition: 0.4s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--color-dark);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }

/* ===========================================
   NAVIGATION
   =========================================== */
.site-header {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    width: 100%;
}
.site-logo {
    position: absolute;
    left: 3rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 100px;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
}
.site-logo svg { height: 24px; width: auto; display: block; }
.site-logo .logo-wordmark path { fill: var(--color-dark); transition: fill 0.4s ease; }
.site-logo .logo-tagline path { fill: var(--color-green); transition: fill 0.4s ease; }
.site-header.scrolled .site-logo { opacity: 1; pointer-events: auto; }
.site-header.dark-bg .site-logo { background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.15); box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1); }
.site-header.dark-bg .site-logo .logo-wordmark path { fill: var(--color-white); }

.nav-pill {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 100px;
    padding: 0.75rem 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.4);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.dark-bg .nav-pill {
    background: rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.nav-menu { display: flex; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.nav-menu li a {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-dark);
    transition: color var(--transition);
}
.nav-menu li a:hover { color: var(--color-green); }
.site-header.dark-bg .nav-menu li a { color: var(--color-white); }
.site-header.dark-bg .nav-menu li a:hover { color: var(--color-green); }

.nav-cta {
    position: absolute;
    right: 3rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0A0A0A;
    background: #00FF00;
    border-radius: 100px;
    padding: 0.75rem 1.8rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 24px rgba(0,255,0,0.25);
    white-space: nowrap;
    pointer-events: auto;
    z-index: 110;
}
.nav-cta:hover { background: #0A0A0A; color: #00FF00; }

/* ===========================================
   HERO  (scrolljack: outer scroller + sticky inner)
   =========================================== */
.hero {
    position: relative;
    height: 220vh; /* gives the swoosh real scroll distance so it draws deliberately, not in a snap */
}
.hero__inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem;
    overflow: visible;
    background: radial-gradient(ellipse at 65% 45%, #DEDEDE 0%, #C2C2C2 40%, #8A8A8A 100%);
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 65% 45%, #DEDEDE 0%, #C2C2C2 40%, #8A8A8A 100%);
}
.hero__swoosh {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    display: flex;
    align-items: center;
    pointer-events: none;
}
.hero__swoosh svg { width: 100%; height: 100%; }
.hero__swoosh--behind { z-index: 1; }
.hero__swoosh--front  { z-index: 3; }
#swoosh-path-behind, #swoosh-path-front { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.hero__photo-wrap {
    position: absolute;
    right: 2%;
    bottom: 0;
    width: 45%;
    height: 90%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hero__photo { height: 100%; width: auto; object-fit: contain; object-position: bottom center; opacity: 0; transform-origin: bottom center; }
.hero__content { position: relative; z-index: 3; max-width: 50%; }
.hero__name {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 10rem);
    line-height: 0.95;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}
.hero__name .name-green { color: var(--color-green); }
.hero__title {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-dark);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 28px;
    height: 48px;
    border: 1.5px solid rgba(0,0,0,0.3);
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
    opacity: 0;
    animation: scrollFadeIn 1s ease 2.5s forwards;
}
.scroll-indicator__dot {
    width: 4px;
    height: 4px;
    background: var(--color-dark);
    border-radius: 50%;
    animation: scrollDrop 1.6s ease-in-out 2.5s infinite;
}
@keyframes scrollFadeIn { to { opacity: 1; } }
@keyframes scrollDrop {
    0%   { transform: translateY(0); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(22px); opacity: 0; }
}

/* ===========================================
   BIO SECTION
   =========================================== */
.bio-section { position: relative; height: 500vh; }
.bio-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--color-dark);
    overflow: hidden;
}
.bio-text {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* ===========================================
   SECTION TRANSITION  (bio → work chapter break, JS-injected)
   =========================================== */
.section-transition {
    position: relative;
    background: var(--color-dark);
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.section-transition__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    padding: 0 4rem;
}
.section-transition__eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-mid-grey);
    opacity: 0;
}
.section-transition__line {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6.5vw, 6rem);
    color: var(--color-light-grey);
    line-height: 1.02;
    opacity: 0;
}
.st-hl { position: relative; display: inline-block; white-space: nowrap; line-height: 1; }
.st-hl__bg {
    position: absolute;
    top: -0.04em; left: -0.12em; right: -0.12em; bottom: -0.1em;
    background: var(--color-green);
    transform: scaleX(0) skewY(-1.5deg);
    transform-origin: left center;
    border-radius: 0.1em 0.25em 0.18em 0.06em;
    z-index: 0;
    will-change: transform;
}
.st-hl__text { position: relative; z-index: 1; color: var(--color-dark); padding: 0 0.16em; display: inline-block; }
.section-transition__rule {
    width: 1.5px;
    height: clamp(60px, 12vh, 130px);
    background: rgba(255,255,255,0.12);
    margin-top: 0.6rem;
    position: relative;
    overflow: hidden;
}
.section-transition__rule-fill {
    position: absolute;
    inset: 0;
    background: var(--color-green);
    transform: scaleY(0);
    transform-origin: top center;
}

/* ===========================================
   WORK SECTION
   =========================================== */
.work-section { position: relative; height: 100vh; background: var(--color-dark); overflow: hidden; }
.work-section > .section-label {
    position: absolute;
    top: 2.5rem;
    left: 4rem;
    z-index: 20;
    padding: 0;
    margin-bottom: 0;
}
.work-counter {
    position: absolute;
    bottom: 2rem;
    right: 4rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-light-grey);
    z-index: 20;
}
.section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-mid-grey);
    padding: 0 4rem;
    margin-bottom: 4rem;
}
.projects-list { position: absolute; inset: 0; }
.project-item { position: absolute; top: 5.5rem; left: 4vw; right: 4vw; bottom: 2rem; border-radius: 28px; overflow: hidden; cursor: pointer; background: linear-gradient(135deg, #141414 0%, #1c1c1c 50%, #0a1a0a 100%); will-change: transform; backface-visibility: hidden; }
.project-item__link { position: absolute; inset: 0; display: block; isolation: isolate; }
.project-item__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.project-item:hover .project-item__media { transform: scale(1.03); }
.project-item__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 60%); z-index: 1; }
.project-item__info { position: absolute; bottom: 3rem; left: 4rem; z-index: 2; }
.project-item__title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 4rem); color: var(--color-white); margin-bottom: 0.75rem; }
.project-item__meta { display: flex; gap: 1rem; align-items: center; }
.project-item__tag {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-green);
    border: 1px solid var(--color-green);
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
}

/* "See All Work" — now centered below the stack, revealed by JS at the end */
.work-cta { position: absolute; left: 0; right: 0; top: auto; bottom: 2.25rem; text-align: center; z-index: 25; }

/* ===========================================
   BUTTONS  (nav-pill treatment: rounded + stroke + glass)
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.95rem 2.6rem;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 100px;
    color: var(--color-white);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all var(--transition);
}
.btn:hover { background: var(--color-green); border-color: var(--color-green); color: var(--color-dark); }

/* Flashy variant — used by "See All Work" */
.btn--flash {
    position: relative;
    overflow: hidden;
    border-color: rgba(0,255,0,0.7);
    background: rgba(0,255,0,0.06);
}
.btn--flash .btn__label, .btn--flash .btn__arrow { position: relative; z-index: 1; }
.btn--flash .btn__arrow { display: inline-block; transition: transform 0.4s ease; }
.btn--flash:hover { background: var(--color-green); color: var(--color-dark); border-color: var(--color-green); box-shadow: 0 10px 34px rgba(0,255,0,0.30); }
.btn--flash:hover .btn__arrow { transform: translateX(5px); }
.btn--flash::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 55%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-20deg);
    animation: btn-sheen 3.4s ease-in-out infinite;
    z-index: 0;
}
@keyframes btn-sheen { 0%, 55% { left: -130%; } 100% { left: 170%; } }

/* ===========================================
   SERVICES
   =========================================== */
.services-section { position: relative; height: 100vh; background: var(--color-grey); overflow: hidden; }
.services-section > .section-label {
    position: absolute;
    top: 2.5rem;
    left: 4rem;
    z-index: 20;
    padding: 0;
    margin-bottom: 0;
    color: var(--color-light-grey);
}
.services-grid { position: absolute; inset: 0; }
.service-item {
    position: absolute;
    top: 5.5rem;
    left: 4vw;
    right: 4vw;
    bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 28px;
    padding: clamp(2rem, 5vw, 5rem);
    background: var(--color-dark);
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4.5rem);
    will-change: transform;
    backface-visibility: hidden;
}
.service-copy { display: flex; flex-direction: column; justify-content: center; }
.service-number { font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.3em; color: var(--color-green); margin-bottom: 2rem; }
.service-title { font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 5rem); color: var(--color-white); margin-bottom: 1.8rem; line-height: 1.05; max-width: 16ch; }
.service-desc { font-family: var(--font-body); font-size: clamp(0.95rem, 1.4vw, 1.2rem); font-weight: 300; color: var(--color-light-grey); line-height: 1.7; max-width: 52ch; }

/* Animated SVG visual (JS-injected) */
.service-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 42%, rgba(0,255,0,0.07), rgba(0,255,0,0) 68%);
    border: 1px solid rgba(255,255,255,0.07);
}
.svc-svg { width: 72%; height: auto; overflow: visible; }
.svc-svg line, .svc-svg circle, .svc-svg path {
    stroke: var(--color-green);
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.svc-svg .svc-dot, .svc-svg .svc-node { fill: var(--color-green); stroke: none; }

@keyframes svc-spin  { to { transform: rotate(360deg); } }
@keyframes svc-pulse { 0%,100% { transform: scale(1);   opacity: 1;    } 50% { transform: scale(1.6);  opacity: 0.45; } }
@keyframes svc-ring  { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes svc-flow  { to { stroke-dashoffset: -28; } }
@keyframes svc-node  { 0%,100% { transform: scale(1);   opacity: 0.55; } 50% { transform: scale(1.45); opacity: 1; } }
@keyframes svc-float { 0%,100% { transform: translateY(4px); } 50% { transform: translateY(-6px); } }
@keyframes svc-lid   { 0%,100% { transform: translateY(0);   } 50% { transform: translateY(-8px); } }

/* 01 strategy */
.svc-svg--strategy .svc-cross { transform-box: fill-box; transform-origin: 50% 50%; animation: svc-spin 18s linear infinite; }
.svc-svg--strategy .svc-dot   { transform-box: fill-box; transform-origin: 50% 50%; animation: svc-pulse 2.6s ease-in-out infinite; }
.svc-svg--strategy .svc-ring  { transform-box: fill-box; transform-origin: 50% 50%; }
.svc-svg--strategy .svc-ring--1 { animation: svc-ring 3.2s ease-in-out infinite; }
.svc-svg--strategy .svc-ring--2 { animation: svc-ring 3.2s ease-in-out 0.4s infinite; }
.svc-svg--strategy .svc-ring--3 { animation: svc-ring 3.2s ease-in-out 0.8s infinite; }

/* 02 systems */
.svc-svg--systems .svc-link { stroke-dasharray: 5 7; animation: svc-flow 1.8s linear infinite; opacity: 0.8; }
.svc-svg--systems .svc-node { transform-box: fill-box; transform-origin: 50% 50%; animation: svc-node 2.8s ease-in-out infinite; }
.svc-svg--systems .svc-node:nth-of-type(2) { animation-delay: 0.3s; }
.svc-svg--systems .svc-node:nth-of-type(3) { animation-delay: 0.6s; }
.svc-svg--systems .svc-node:nth-of-type(4) { animation-delay: 0.9s; }
.svc-svg--systems .svc-node:nth-of-type(5) { animation-delay: 1.2s; }
.svc-svg--systems .svc-node--hub { animation-duration: 2.2s; }

/* 03 packaging */
.svc-svg--packaging .svc-box      { transform-box: fill-box; transform-origin: 50% 50%;  animation: svc-float 4.5s ease-in-out infinite; }
.svc-svg--packaging .svc-box__lid { transform-box: fill-box; transform-origin: 50% 100%; animation: svc-lid 4.5s ease-in-out infinite; }

/* 04 creative direction : compass with a wandering needle */
.svc-svg--direction .svc-needle { transform-box: fill-box; transform-origin: 50% 50%; animation: svc-compass 10s ease-in-out infinite; }
.svc-svg--direction .svc-needle-n { fill: var(--color-green); stroke: var(--color-green); }
@keyframes svc-compass {
    0%   { transform: rotate(0deg); }
    30%  { transform: rotate(135deg); }
    55%  { transform: rotate(70deg); }
    80%  { transform: rotate(255deg); }
    100% { transform: rotate(360deg); }
}

.services-counter {
    position: absolute;
    bottom: 2rem;
    right: 4rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-light-grey);
    z-index: 20;
}

@media (max-width: 768px) {
    .service-item { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem; }
    .service-visual { order: -1; justify-self: start; max-width: 120px; }
    .svc-svg { width: 100%; }
}

/* ===========================================
   CTA
   =========================================== */
.cta-section { padding: 9rem 4rem 10rem; background: var(--color-green); text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-icon { width: clamp(56px, 7vw, 88px); height: auto; margin-bottom: 2.5rem; display: block; }
.cta-section .cta-heading { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 8rem); color: var(--color-dark); line-height: 1; margin-bottom: 3rem; }
.cta-section .btn { border-color: var(--color-dark); color: var(--color-dark); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.cta-section .btn:hover { background: var(--color-dark); color: var(--color-green); border-color: var(--color-dark); }

/* ===========================================
   FOOTER
   =========================================== */
.site-footer { padding: 3rem 4rem; background: var(--color-dark); border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.site-footer p { font-family: var(--font-body); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.1em; color: var(--color-mid-grey); }

/* ===========================================
   UTILITIES
   =========================================== */
.reveal { opacity: 0; transform: translateY(60px); }

/* ===========================================
   BIO SLIDES — unified highlight system
   =========================================== */

/* All slides centered identically via the .bio-text flex container */
.bio-line {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.15;
    color: var(--color-white);
    opacity: 0;
    position: absolute;
    visibility: hidden;
    text-align: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 4rem;
    translate: 0 0;
}
.bio-line.gsap-visible { visibility: visible; }
.bio-line em { font-style: italic; }

/* Slide 4: green slide */
.bio-line--green {
    font-size: clamp(4rem, 10vw, 10rem) !important;
    line-height: 0.95 !important;
    color: var(--color-dark) !important;
    font-style: normal;
    transform-origin: center center;
}
.bio-line--green.gsap-visible { visibility: visible !important; opacity: 1 !important; }

/* ---------------------------------------------------------------
   UNIFIED HIGHLIGHT — used by slides 2, 3, and 5
   --------------------------------------------------------------- */
.bio-hl {
    display: inline-block;
    position: relative;
    white-space: nowrap;
    line-height: 1;
}
.bio-hl__bg {
    position: absolute;
    top: -0.04em;
    left: -0.12em;
    right: -0.12em;
    bottom: -0.12em;
    background: var(--color-green);
    transform-origin: left center;
    transform: scaleX(0) skewY(-1.5deg);
    border-radius: 0.1em 0.25em 0.18em 0.06em;
    z-index: 0;
    display: block;
    will-change: transform;
}
.bio-hl__text {
    position: relative;
    z-index: 1;
    color: var(--color-dark);
    padding: 0 0.18em;
    display: inline-block;
}

/* Slide 1 — strikethrough (misconception cancel) */
.bio-line[data-slide="1"] {
    color: var(--color-light-grey);
}
.bio-strikethrough {
    text-decoration-line: line-through;
    -webkit-text-decoration-line: line-through;
    text-decoration-color: transparent;
    -webkit-text-decoration-color: transparent;
    text-decoration-thickness: 3px;
    transition: text-decoration-color 0.55s ease, -webkit-text-decoration-color 0.55s ease;
}
.bio-line.bio-strike-active .bio-strikethrough {
    text-decoration-color: var(--color-green);
    -webkit-text-decoration-color: var(--color-green);
}

/* Slide 2 — "tip of the iceberg." highlight */
.bio-above-mark {
    display: block;
    margin-bottom: 0.1em;
    color: var(--color-light-grey);
}

/* Slide 3 — progressive build, two-line layout */
.bio-line--progressive {
    gap: 0.9rem !important;
}
.bio-prog-intro,
.bio-prog-outro {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 4rem);
    color: var(--color-light-grey);
    line-height: 1.15;
    margin: 0;
    opacity: 0; /* JS scrubs this */
}
.bio-prog-build {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    align-items: center;
    justify-content: center;
}
.bio-prog-row {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35em;
    flex-wrap: wrap;
    line-height: 1;
}
.bio-prog-connector {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 3.2rem);
    color: var(--color-light-grey);
    font-style: italic;
    line-height: 1;
    white-space: nowrap;
    opacity: 0; /* JS scrubs this */
}
.bio-prog-kw {
    position: relative;
    display: inline-block;
    opacity: 0; /* JS scrubs this */
    line-height: 1;
}
.bio-prog-kw .bio-hl__text {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 5.5rem);
    line-height: 1;
}

/* Slide 5 — assembly in place */
.bio-line--mixed {
    gap: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.bio-as-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    gap: 1.4rem;
}

/* Row 1: [creativity] with [strategy] */
.bio-as-keyrow {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.3em;
    width: fit-content;
    align-self: center;
    line-height: 1;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    max-width: 100%;
    transform-origin: center center;
    will-change: transform;
}
.bio-as-keyrow .bio-as-connector {
    font-style: italic;
    color: var(--color-light-grey);
    opacity: 0; /* JS scrubs this */
    line-height: 1;
    flex-shrink: 0;
}
.bio-as-keyrow .bio-prog-kw {
    position: relative;
    display: inline-block;
    line-height: 1;
    flex-shrink: 0;
}
.bio-as-keyrow .bio-prog-kw .bio-hl__text {
    font-family: var(--font-display);
    font-size: inherit;
    line-height: 1;
    color: var(--color-dark);
}

/* Row 2: to craft [brands with purpose] — the payoff / emphasis */
.bio-as-band {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3em;
    width: fit-content;
    align-self: center;
    line-height: 1;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.8vw, 3.4rem);
    opacity: 0; /* JS scrubs the row container */
    transform-origin: center center;
    will-change: transform;
}
.bio-as-band .bio-as-connector {
    font-style: italic;
    color: var(--color-light-grey);
    line-height: 1;
}
.bio-as-band .bio-prog-kw {
    position: relative;
    display: inline-block;
    line-height: 1;
}
.bio-as-band .bio-prog-kw .bio-hl__text {
    font-family: var(--font-display);
    font-size: inherit;
    line-height: 1;
    color: var(--color-dark);
}

/* Row 3: tail */
.bio-as-tail {
    font-family: var(--font-display);
    text-align: center;
    color: var(--color-white);
    line-height: 1.3;
    font-size: clamp(1.4rem, 2.6vw, 2.4rem);
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    margin-top: 0.4em;
}
.bio-as-tail em {
    font-style: italic;
    color: var(--color-light-grey);
}
.bio-as-tail .bio-as-tail-row {
    display: block;
    opacity: 0; /* JS scrubs each row individually */
}

/* ===========================================
   WORK PAGE (/work/) — curated portfolio landing
   =========================================== */
.work-page {
    background: var(--color-dark);
    min-height: 100vh;
    padding: clamp(8rem, 14vh, 12rem) 6vw 7rem;
}
.work-page__head {
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.work-page__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--color-white);
    line-height: 1.02;
    margin-top: 0.4rem;
}
.work-page__title-hl { color: var(--color-green); }

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.2rem, 2vw, 2rem);
}
.work-tile:first-child { grid-column: 1 / -1; }
.work-tile:first-child .work-tile__link { aspect-ratio: 16 / 7; }

.work-tile__link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: clamp(18px, 2vw, 28px);
    aspect-ratio: 4 / 3;
    background: var(--color-grey);
}
.work-tile__media,
.work-tile__media video,
.work-tile__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.work-tile__media video,
.work-tile__media img { transition: transform 0.7s ease; }
.work-tile__link:hover .work-tile__media video,
.work-tile__link:hover .work-tile__media img { transform: scale(1.04); }

.work-tile__placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #141414 0%, #1c1c1c 50%, #0a1a0a 100%);
}
@keyframes work-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.work-tile__info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: clamp(1.2rem, 2.2vw, 2.2rem);
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 100%);
}
.work-tile__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.6rem);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 0.8rem;
}
.work-tile__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.work-tile__tag {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-light-grey);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 100px;
    padding: 0.35rem 0.9rem;
}

.work-page__cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

@media (max-width: 768px) {
    .work-grid { grid-template-columns: 1fr; }
    .work-tile:first-child { grid-column: auto; }
    .work-tile:first-child .work-tile__link,
    .work-tile__link { aspect-ratio: 4 / 3; }
}

/* ===========================================
   SERVICES — green outer background (dark cards float on green)
   =========================================== */
.services-section { background: var(--color-green); }
.services-section > .section-label { color: var(--color-dark); }
.services-counter { color: var(--color-dark); }
.service-item { border-color: rgba(0,0,0,0.20); box-shadow: 0 30px 80px rgba(0,0,0,0.28); }

/* ===========================================
   WORK OUTRO ("Want to see more?" + button — no longer overlays cards)
   =========================================== */
.work-outro {
    background: var(--color-dark);
    padding: clamp(5rem, 12vh, 9rem) 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.work-outro__inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.work-outro__prompt {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: var(--color-white);
    line-height: 1.05;
}
.work-outro .work-cta { position: static; left: auto; right: auto; bottom: auto; }

/* ===========================================
   TRUSTED BY (client logo wall — placeholders for now)
   =========================================== */
.trusted {
    background: var(--color-grey);
    padding: clamp(5rem, 12vh, 8rem) 6vw;
}
.trusted__inner { max-width: 1200px; margin: 0 auto; }
.trusted__label {
    position: static;
    padding: 0;
    margin: 0 0 clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    color: var(--color-light-grey);
}
.trusted__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(1rem, 2.5vw, 2.5rem);
}
.trusted__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    transition: border-color var(--transition), background var(--transition);
}
.trusted__cell:hover { border-color: rgba(0,255,0,0.4); background: rgba(0,255,0,0.04); }
.trusted__logo {
    width: clamp(40px, 5vw, 64px);
    height: auto;
    opacity: 0.45;
    filter: grayscale(100%);
    transition: opacity var(--transition), filter var(--transition);
}
.trusted__cell:hover .trusted__logo { opacity: 1; filter: grayscale(0%); }

@media (max-width: 900px) {
    .trusted__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
    .trusted__grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .trusted__cell { flex: 0 0 calc((100% - 2rem) / 3); }
}

/* ===========================================
   ROUND 3 ADJUSTMENTS
   =========================================== */
/* Tighten the bio -> work transition (kill the big empty gaps) */
.section-transition { min-height: auto; padding: clamp(4rem, 9vh, 7rem) 4rem; }
.section-transition__rule { height: clamp(48px, 8vh, 96px); }

/* Trusted by: bigger serif heading */
.trusted__label {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--color-white);
    line-height: 1.1;
}

/* CTA closing beat: "Now it's your turn" kicker */
.cta-kicker {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-dark);
    opacity: 0.7;
    margin-bottom: 1.4rem;
}

/* ===========================================
   ROUND 4: nav-on-green, CTA scrolly, footer, wink
   =========================================== */

/* Nav over green backgrounds: all-black logo + stroked Start a Project */
.site-header.on-green .nav-pill { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.5); box-shadow: 0 4px 24px rgba(0,0,0,0.10), inset 0 1px 0 rgba(0,0,0,0.05); }
.site-header.on-green .nav-menu li a { color: var(--color-dark); }
.site-header.on-green .nav-menu li a:hover { color: var(--color-dark); opacity: 0.55; }
.site-header.on-green .site-logo { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.5); box-shadow: 0 4px 24px rgba(0,0,0,0.10), inset 0 1px 0 rgba(0,0,0,0.05); }
.site-header.on-green .site-logo .logo-wordmark path { fill: var(--color-dark); }
.site-header.on-green .site-logo .logo-tagline path { fill: var(--color-dark); }
.site-header.on-green .nav-cta { background: transparent; color: var(--color-dark); border: 1.5px solid var(--color-dark); box-shadow: none; }
.site-header.on-green .nav-cta:hover { background: var(--color-dark); color: var(--color-green); }

/* CTA scrolly: "Now it's your turn" shrinks as the question grows */
.cta-scrolly { height: 200vh; padding: 0; display: block; }
.cta-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem;
    gap: 0.3rem;
}
.cta-scrolly .cta-icon { width: clamp(64px, 7vw, 96px); margin-bottom: 1.4rem; display: flex; justify-content: center; }
.cta-icon__svg { width: 100%; height: auto; display: block; }
.cta-scrolly .cta-kicker {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 6.5vw, 5.5rem);
    letter-spacing: normal;
    text-transform: none;
    color: var(--color-dark);
    opacity: 1;
    margin-bottom: 0;
    line-height: 1.02;
}
.cta-scrolly .cta-heading {
    font-size: clamp(2rem, 5vw, 4.5rem);
    margin-bottom: 2.2rem;
    line-height: 1.05;
}

/* Wink: squash the right eye periodically (only present in the last section) */
.bba-eye-right { transform-box: fill-box; transform-origin: center; animation: bba-wink 5s ease-in-out infinite; }
@keyframes bba-wink { 0%, 86%, 100% { transform: scaleY(1); } 92% { transform: scaleY(0.06); } }

/* Creative footer */
.bba-footer { background: var(--color-dark); border-top: 1px solid rgba(255,255,255,0.07); overflow: hidden; }
.bba-footer__marquee { overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 1.3rem 0; }
.bba-footer__marquee-track { display: flex; width: max-content; animation: bba-marquee 32s linear infinite; }
.bba-footer__marquee-track span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--color-green); white-space: nowrap; padding-right: 1rem; }
.bba-footer__marquee:hover .bba-footer__marquee-track { animation-play-state: paused; }
@keyframes bba-marquee { to { transform: translateX(-50%); } }
.bba-footer__main { padding: clamp(4rem, 10vh, 8rem) 6vw clamp(3rem, 6vh, 5rem); text-align: center; }
.bba-footer__eyebrow { font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-mid-grey); margin-bottom: 1.4rem; }
.bba-footer__email { font-family: var(--font-display); font-size: clamp(2rem, 7vw, 6rem); color: var(--color-white); line-height: 1; display: inline-block; position: relative; transition: color var(--transition); word-break: break-word; }
.bba-footer__email::after { content: ""; position: absolute; left: 0; bottom: -0.06em; height: 3px; width: 100%; background: var(--color-green); transform: scaleX(0); transform-origin: left center; transition: transform 0.5s ease; }
.bba-footer__email:hover { color: var(--color-green); }
.bba-footer__email:hover::after { transform: scaleX(1); }
.bba-footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding: 2rem 6vw 2.5rem; border-top: 1px solid rgba(255,255,255,0.07); }
.bba-footer__nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.bba-footer__nav a { font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-light-grey); transition: color var(--transition); }
.bba-footer__nav a:hover { color: var(--color-green); }
.bba-footer__copy { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--color-mid-grey); }

@media (max-width: 560px) {
    .bba-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Footer name sign-off + quiet email link */
.bba-footer__sign {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 7rem);
    color: var(--color-white);
    line-height: 1;
    letter-spacing: -0.01em;
}
.bba-footer__nav a[href^="mailto:"] { text-transform: none; letter-spacing: 0.04em; color: var(--color-white); }
.bba-footer__nav a[href^="mailto:"]:hover { color: var(--color-green); }

/* ===========================================
   ROUND 5: number badge, scroll-wink, logo morph, fun footer
   =========================================== */

/* Service number moved into the visual box (top-right) */
.service-visual { position: relative; }
.service-visual__num {
    position: absolute;
    top: 1.1rem;
    right: 1.4rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--color-green);
}

/* CTA eye winks only while the section is scrolled into view */
.bba-eye-right { animation: none; }
.cta-icon.is-winking .bba-eye-right { transform-box: fill-box; transform-origin: center; animation: bba-wink 4s ease-in-out infinite; }

/* logo hover morph removed - it overrode .site-logo positioning and broke the nav */

/* Fun footer: mouse-follow glow + big bold nav */
.bba-footer { position: relative; }
.bba-footer__glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle, rgba(0,255,0,0.16), rgba(0,255,0,0) 65%);
    transition: opacity 0.4s ease;
    z-index: 0;
    will-change: transform;
}
.bba-footer__marquee, .bba-footer__bignav, .bba-footer__bottom { position: relative; z-index: 1; }
.bba-footer__bignav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: clamp(3.5rem, 9vh, 7rem) 6vw clamp(2.5rem, 5vh, 4rem);
}
.bba-footer__bignav a {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 6.5rem);
    line-height: 1.04;
    color: var(--color-white);
    transition: color var(--transition), transform var(--transition);
}
.bba-footer__bignav a:hover { color: var(--color-green); transform: translateX(0.5rem); }
.bba-footer__links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.bba-footer__links a { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--color-light-grey); transition: color var(--transition); }
.bba-footer__links a:hover { color: var(--color-green); }

/* ===========================================
   ROUND 6: counter fix, CTA sizing, footer bio + two columns
   =========================================== */

/* Services counter clear of the card's rounded corner */
.services-counter { right: 2rem; bottom: 1.4rem; }

/* CTA: keep the flip but cap sizes so nothing overflows / overlaps */
.cta-scrolly .cta-kicker { font-size: clamp(2.2rem, 5vw, 4rem) !important; }
.cta-scrolly .cta-heading { font-size: clamp(1.8rem, 4.5vw, 3.6rem) !important; margin-bottom: 2rem; }

/* Footer: two columns - big nav facing bio + a prominent email */
.bba-footer__main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
    padding: clamp(3.5rem, 9vh, 7rem) 6vw clamp(2.5rem, 5vh, 4rem);
}
.bba-footer__bignav { padding: 0; }
.bba-footer__side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; max-width: 46ch; }
.bba-footer__bio { font-family: var(--font-body); font-weight: 300; font-size: clamp(0.95rem, 1.3vw, 1.1rem); line-height: 1.7; color: var(--color-light-grey); }
.bba-footer__email { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.4rem); color: var(--color-white); position: relative; display: inline-block; transition: color var(--transition); word-break: break-word; }
.bba-footer__email::after { content: ""; position: absolute; left: 0; bottom: -0.04em; height: 2px; width: 100%; background: var(--color-green); transform: scaleX(0); transform-origin: left center; transition: transform 0.45s ease; }
.bba-footer__email:hover { color: var(--color-green); }
.bba-footer__email:hover::after { transform: scaleX(1); }
.bba-footer__more { font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-green); transition: opacity var(--transition); }
.bba-footer__more:hover { opacity: 0.65; }
.bba-footer__legal { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.05em; color: var(--color-mid-grey); transition: color var(--transition); }
.bba-footer__legal:hover { color: var(--color-green); }

@media (max-width: 768px) {
    .bba-footer__main { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ===========================================
   ROUND 7: CTA rebuilt with fixed geometry (overlap-proof)
   icon (auto) / stage (fixed height) / button (auto) in a centered column
   =========================================== */
.cta-scrolly .cta-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.4rem, 3.2vh, 2.6rem);
    padding: 9vh 6vw;
    text-align: center;
    box-sizing: border-box;
}
.cta-scrolly .cta-icon { margin: 0; flex: 0 0 auto; }
.cta-scrolly .cta-stage {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: clamp(160px, 24vh, 240px);
    flex: 0 0 auto;
}
.cta-scrolly .cta-kicker,
.cta-scrolly .cta-heading {
    position: absolute;
    inset: 0;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-display);
    color: var(--color-dark);
    will-change: transform, opacity;
}
.cta-scrolly .cta-kicker {
    font-size: clamp(2rem, 5vw, 3.4rem) !important;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.cta-scrolly .cta-heading {
    font-size: clamp(1.9rem, 4.4vw, 3.4rem) !important;
    line-height: 1.08;
    letter-spacing: -0.015em;
    padding: 0 2vw;
}
.cta-scrolly .cta-sticky .btn { position: relative; z-index: 2; flex: 0 0 auto; }

/* ===========================================
   ROUND 8: eyebrow, in-card counters, footer contact, logo hover, page loader
   =========================================== */

/* (1) Section-transition eyebrow - far more present */
.section-transition__eyebrow {
    font-size: clamp(1.1rem, 2.4vw, 2rem);
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--color-light-grey);
}

/* (2) Counters move INSIDE the card, top-right edge */
.work-counter,
.services-counter {
    top: 7.2rem;
    right: calc(4vw + 1.9rem);
    bottom: auto;
    color: var(--color-light-grey);
    text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}

/* (3) Service per-card number lives in the copy, above the title (retire the box copy) */
.service-visual__num { display: none; }
.service-number { margin-bottom: 1.6rem; }

/* (5) Footer contact: small label above a calmer-sized email */
.bba-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.bba-footer__contact-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-green);
}
.bba-footer__email { font-size: clamp(1.15rem, 2vw, 1.7rem) !important; }

/* (6) Logo hover feedback - visual only, never touches layout/position */
.site-logo { transition: opacity 0.5s ease, transform 0.35s ease, box-shadow 0.35s ease; transform-origin: left center; }
.site-header.scrolled .site-logo:hover { transform: scale(1.05); box-shadow: 0 8px 30px rgba(0,255,0,0.28), inset 0 1px 0 rgba(255,255,255,0.4); }

/* (7) Page loader - winking mark + wordmark + videogame-style bar */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--color-dark);
    z-index: 9998;
    transition: opacity 0.6s ease;
}
body.bba-ready::before { opacity: 0; pointer-events: none; }
body::before, .bba-loader { animation: bba-failsafe 0s linear 12s forwards; }
@keyframes bba-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.bba-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.bba-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.bba-loader__center { display: flex; flex-direction: column; align-items: center; gap: clamp(1.6rem, 4vh, 2.8rem); width: min(440px, 82vw); }
.bba-loader__mark { width: clamp(84px, 14vw, 120px); background: var(--color-green); border-radius: 22px; padding: 12px; box-shadow: 0 18px 50px rgba(0,0,0,0.45); }
.bba-loader__mark svg { width: 100%; height: auto; display: block; }
.bba-loader__name {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--color-white);
    letter-spacing: 0.01em;
    line-height: 1;
}
.bba-loader__progress { width: 100%; display: flex; flex-direction: column; gap: 0.7rem; }
.bba-loader__track {
    position: relative;
    width: 100%;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    padding: 3px;
    overflow: hidden;
}
.bba-loader__fill {
    height: 100%;
    width: 0%;
    background-color: var(--color-green);
    background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.4) 0 2px, transparent 2px 11px);
    border-radius: 1px;
    transition: width 0.18s linear;
    box-shadow: 0 0 14px rgba(0,255,0,0.5);
}
.bba-loader__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-mid-grey);
}
.bba-loader__pct { color: var(--color-green); }
.bba-loader__mark .bba-eye-right { transform-box: fill-box; transform-origin: center; animation: bba-wink 2.2s ease-in-out infinite; }

/* ===========================================
   ROUND 9: MOBILE NAV (hamburger + full-screen overlay)
   header.php is locked, so the burger + overlay are JS-injected.
   Burger is a DOM child of .site-header so it inherits the
   dark-bg / on-green colour states; it's position:fixed so it
   doesn't depend on the (collapsed) nav height on mobile.
   =========================================== */
.bba-burger {
    position: fixed;
    top: 1.5rem;
    right: 1.25rem;
    width: 48px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 100px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.4);
    pointer-events: auto;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}
.bba-burger__box { position: relative; width: 20px; height: 14px; }
.bba-burger__box span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--color-dark);
    transition: transform 0.35s ease, opacity 0.2s ease, top 0.35s ease, background 0.4s ease;
}
.bba-burger__box span:nth-child(1) { top: 0; }
.bba-burger__box span:nth-child(2) { top: 6px; }
.bba-burger__box span:nth-child(3) { top: 12px; }

.site-header.dark-bg .bba-burger { background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.15); box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1); }
.site-header.dark-bg .bba-burger__box span { background: var(--color-white); }
.site-header.on-green .bba-burger { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.5); box-shadow: 0 4px 24px rgba(0,0,0,0.10), inset 0 1px 0 rgba(0,0,0,0.05); }
.site-header.on-green .bba-burger__box span { background: var(--color-dark); }

/* Open: bars morph to an X, forced white over the overlay.
   Bump the whole header above the overlay so the X escapes the header's
   stacking context (a fixed child can't beat the overlay on its own
   while the header sits at a lower z-index). */
body.bba-menu-open .site-header { z-index: 1100; }
body.bba-menu-open .bba-burger { z-index: 1100; }
body.bba-menu-open .bba-burger__box span { background: var(--color-white); }
body.bba-menu-open .bba-burger__box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
body.bba-menu-open .bba-burger__box span:nth-child(2) { opacity: 0; }
body.bba-menu-open .bba-burger__box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Full-screen overlay menu */
.bba-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.55);
    -webkit-backdrop-filter: blur(32px) saturate(125%);
    backdrop-filter: blur(32px) saturate(125%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem 3rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
body.bba-menu-open .bba-mobile-menu { opacity: 1; visibility: visible; }
.bba-mobile-menu__links { display: flex; flex-direction: column; gap: 0.1rem; }
.bba-mobile-menu__links a {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 11vw, 3.8rem);
    line-height: 1.2;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(20px);
    transition: color var(--transition), opacity 0.5s ease, transform 0.5s ease;
}
.bba-mobile-menu__links a:hover { color: var(--color-green); }
body.bba-menu-open .bba-mobile-menu__links a { opacity: 1; transform: translateY(0); }
body.bba-menu-open .bba-mobile-menu__links a:nth-child(1) { transition-delay: 0.10s; }
body.bba-menu-open .bba-mobile-menu__links a:nth-child(2) { transition-delay: 0.16s; }
body.bba-menu-open .bba-mobile-menu__links a:nth-child(3) { transition-delay: 0.22s; }
body.bba-menu-open .bba-mobile-menu__links a:nth-child(4) { transition-delay: 0.28s; }
body.bba-menu-open .bba-mobile-menu__links a:nth-child(5) { transition-delay: 0.34s; }
body.bba-menu-open .bba-mobile-menu__links a:nth-child(6) { transition-delay: 0.40s; }

.bba-mobile-menu__foot {
    margin-top: 2.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.42s, transform 0.5s ease 0.42s;
}
body.bba-menu-open .bba-mobile-menu__foot { opacity: 1; transform: translateY(0); }
.bba-mobile-menu__cta {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0A0A0A;
    background: #00FF00;
    border-radius: 100px;
    padding: 0.95rem 2.2rem;
    box-shadow: 0 4px 24px rgba(0,255,0,0.25);
    transition: background 0.3s ease, color 0.3s ease;
}
.bba-mobile-menu__cta:hover { background: #0A0A0A; color: #00FF00; }
.bba-mobile-menu__email {
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--color-light-grey);
    transition: color var(--transition);
}
.bba-mobile-menu__email:hover { color: var(--color-green); }

body.bba-menu-open { overflow: hidden; }

@media (max-width: 768px) {
    .nav-pill, .nav-cta { display: none; }
    .bba-burger { display: flex; }
    .site-logo { left: 1.25rem; }
    body.bba-menu-open .site-logo { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bba-mobile-menu,
    .bba-mobile-menu__links a,
    .bba-mobile-menu__foot { transition-duration: 0.001s; transition-delay: 0s; transform: none; }
    .bba-burger__box span { transition-duration: 0.001s; }
}

/* ===========================================
   ROUND 10: SERVICES as stacked cards on mobile
   The cards are position:absolute for the desktop pinned stack. On mobile
   the JS pin is dropped (matchMedia), and these rules let them flow
   vertically at their natural, tightened height — one service per block.
   =========================================== */
@media (max-width: 768px) {
    .services-section {
        height: auto;
        overflow: visible;
        padding: clamp(4rem, 9vh, 6rem) 0 clamp(3rem, 7vh, 5rem);
    }
    .services-section > .section-label {
        position: static;
        padding: 0 6vw;
        margin: 0 0 1.5rem;
    }
    .services-grid { position: static; inset: auto; }
    .service-item {
        position: relative;
        inset: auto;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        margin: 0 5vw 1.4rem;
        padding: 1.8rem 1.6rem;
        gap: 1.3rem;
    }
    .service-item:last-child { margin-bottom: 0; }
    .service-visual { max-width: 92px; }
    .service-number { margin-bottom: 1.1rem; }
    .service-title { margin-bottom: 1rem; }
    .service-desc { font-size: 1rem; }
    .services-counter { display: none; }
}

/* ===========================================
   ROUND 11: WORK as stacked cards on mobile
   Same treatment as Services (Round 10): the JS pin is dropped via
   matchMedia and the absolutely-positioned cards flow vertically. Each card
   needs an explicit height since its own children are absolutely positioned.
   =========================================== */
@media (max-width: 768px) {
    .work-section {
        height: auto;
        overflow: visible;
        padding: clamp(4rem, 9vh, 6rem) 0 clamp(3rem, 7vh, 5rem);
    }
    .work-section > .section-label {
        position: static;
        top: auto;
        left: auto;
        padding: 0 6vw;
        margin: 0 0 1.5rem;
    }
    .projects-list { position: static; inset: auto; }
    .project-item {
        position: relative;
        inset: auto;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 0 5vw 1.6rem;
        height: auto;
        aspect-ratio: auto;
    }
    .project-item:last-child { margin-bottom: 0; }
    /* Thumbnail on top at full 16:9 (uncropped); title + tags sit BELOW it so
       they never cover the image, and the card reads taller. */
    .project-item__link { position: relative; inset: auto; display: block; }
    .project-item__media {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
    .project-item__overlay { display: none; }
    .project-item__info {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 1rem 1.25rem 1.25rem;
    }
    .project-item__title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .work-counter { display: none; }
}

/* ===========================================
   ROUND 12: HERO rebuilt for mobile
   Desktop overlaps a 45%-wide photo with the name and pushes the title off
   the bottom of the frame. On mobile: name + title stack at the top, the
   photo sits full-width along the bottom, nothing overlaps, and the scroll
   distance is shortened so the swoosh still draws without dead scroll.
   =========================================== */
@media (max-width: 768px) {
    .hero { height: 150vh; }
    .hero__inner {
        justify-content: flex-start;
        padding: 6.5rem 1.5rem 0;
    }
    .hero__content { max-width: 100%; position: relative; z-index: 4; }
    .hero__name {
        font-size: clamp(3.2rem, 17vw, 5.5rem);
        line-height: 0.92;
        margin-bottom: 1rem;
    }
    .hero__title { font-size: clamp(0.85rem, 3.4vw, 1.1rem); letter-spacing: 0.18em; }
    .hero__photo-wrap {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        height: 60%;
        justify-content: center;
    }
    .hero__swoosh { left: 0; right: 0; width: 100%; height: 100%; }
    .scroll-indicator { display: none; }
}

/* ===========================================
   ROUND 13: footer bio alignment + bio scrollytelling mobile fit
   =========================================== */
/* (4) Footer bio paragraph reads left-aligned on every screen */
.bba-footer__bio { text-align: left; }

@media (max-width: 768px) {
    /* The 4rem side padding was squeezing every slide — give them room */
    .bio-line { padding: 0 1.25rem; }

    /* Slide 4 (green arrival): keep it from running off a narrow screen */
    .bio-line--green { font-size: clamp(3rem, 14vw, 6rem) !important; }

    /* Slide 3 (progressive build): size keywords to fit, no clipping */
    .bio-prog-intro,
    .bio-prog-outro { font-size: clamp(1.6rem, 6vw, 2.6rem); }
    .bio-prog-connector { font-size: clamp(1.3rem, 5vw, 2rem); }
    .bio-prog-kw .bio-hl__text { font-size: clamp(1.7rem, 6.5vw, 2.6rem); }

    /* Slide 5 (assembly): let the rows wrap instead of running off both edges */
    .bio-as-keyrow {
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.06em;
        font-size: clamp(2rem, 8.5vw, 3.2rem);
    }
    .bio-as-band {
        flex-direction: column;
        align-items: center;
        gap: 0.06em;
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }
    .bio-as-tail { font-size: clamp(1.05rem, 4.2vw, 1.7rem); }
}

/* ===========================================
   ROUND 14: CTA stage safety on very narrow screens
   The kicker + question share a FIXED-height stage and crossfade. On small
   phones the question wraps to 3-4 lines, so give the stage more height and
   trim the type a touch so it can never clip out of the box.
   =========================================== */
@media (max-width: 480px) {
    .cta-scrolly .cta-stage { height: clamp(190px, 32vh, 250px); }
    .cta-scrolly .cta-kicker { font-size: clamp(1.8rem, 7vw, 3rem) !important; }
    .cta-scrolly .cta-heading { font-size: clamp(1.7rem, 6vw, 2.6rem) !important; padding: 0 1rem; }
}

/* ===========================================
   ROUND 15: mobile nav-logo alignment + one-line section transitions
   =========================================== */
@media (max-width: 768px) {
    /* (5) Logo shares the burger's line — both fixed at the same top */
    .site-logo { position: fixed; top: 1.5rem; left: 1.25rem; }

    /* (4)(6) Keep "From thinking" / "to making." / "The work" / "What I craft" each on one line */
    .section-transition__eyebrow { white-space: nowrap; }
    .section-transition__line {
        white-space: nowrap;
        font-size: clamp(2rem, 8.5vw, 3.4rem);
    }
}


/* ===========================================
   CASE STUDY (single project) — /projects/{slug}
   =========================================== */
.case-study { background: var(--color-dark); color: var(--color-white); }

/* Hero */
.case-hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: flex-end;
    padding: clamp(2rem, 6vw, 5rem) 6vw clamp(3rem, 7vh, 6rem);
    overflow: hidden;
    background: var(--color-grey);
}
.case-hero__bg {
    position: absolute; inset: 0;
    background-image: var(--cover);
    background-size: cover;
    background-position: center;
}
.case-hero__bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.94) 0%, rgba(10,10,10,0.5) 45%, rgba(10,10,10,0.2) 100%);
}
.case-hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1100px; }
.case-hero__back {
    display: inline-block; margin-bottom: 1.4rem;
    font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.02em;
    color: var(--color-light-grey); text-decoration: none; transition: var(--transition);
}
.case-hero__back:hover { color: var(--color-green); }
.case-hero__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.case-tag {
    font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--color-white); padding: 0.36rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.35); border-radius: 999px;
}
.case-hero__title {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 1.02; margin: 0;
}
.case-hero__tagline {
    font-family: var(--font-body); font-weight: 300;
    font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--color-light-grey);
    margin-top: 1rem; max-width: 42ch;
}

/* Overview + facts */
.case-overview {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 6vw, 6rem);
    padding: clamp(4rem, 10vh, 8rem) 6vw;
    max-width: 1300px; margin: 0 auto;
}
.case-overview__body {
    font-family: var(--font-body); font-weight: 300;
    font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.5; color: var(--color-white);
    margin-top: 0.6rem;
}
.case-facts { display: flex; flex-direction: column; gap: 1.2rem; padding-top: 0.4rem; }
.case-fact { display: flex; flex-direction: column; gap: 0.25rem; border-top: 1px solid var(--color-grey); padding-top: 1rem; }
.case-fact__k { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-mid-grey); }
.case-fact__v { font-family: var(--font-body); font-size: 1.05rem; color: var(--color-white); }

/* Gallery */
.case-gallery {
    display: flex; flex-direction: column; gap: clamp(1.2rem, 3vw, 2.5rem);
    padding: 0 6vw clamp(4rem, 10vh, 8rem); max-width: 1300px; margin: 0 auto;
}
.case-shot { margin: 0; }
.case-shot img { width: 100%; height: auto; display: block; border-radius: clamp(14px, 1.6vw, 22px); }
.case-shot figcaption { font-family: var(--font-body); font-size: 0.9rem; color: var(--color-mid-grey); margin-top: 0.7rem; }

/* Next project */
.case-next {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.55rem;
    padding: clamp(4rem, 12vh, 9rem) 6vw;
    background: var(--color-green); color: var(--color-dark); text-decoration: none;
    transition: var(--transition);
}
.case-next:hover { filter: brightness(0.94); }
.case-next__label { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.case-next__title { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.05; }
.case-next__arrow { font-size: 1.7rem; transition: transform var(--transition); }
.case-next:hover .case-next__arrow { transform: translateX(10px); }

/* Scroll reveal (class toggled by the template's inline observer) */
.case-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.case-reveal.is-in { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 768px) {
    .case-hero { min-height: 68vh; padding: 2rem 1.25rem 2.5rem; }
    .case-overview { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.25rem; }
    .case-gallery { padding: 0 1.25rem 3rem; }
    .case-next { padding: 3.5rem 1.25rem; }
}

/* Work page: load-more button */
.work-page__more { text-align: center; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.work-more {
    font-family: var(--font-body); font-size: 0.92rem; font-weight: 500;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--color-dark); background: var(--color-green);
    border: none; border-radius: 999px; padding: 1rem 2.6rem; cursor: pointer;
    transition: var(--transition);
}
.work-more:hover { filter: brightness(0.94); transform: translateY(-2px); }
.work-more:disabled { opacity: 0.55; cursor: default; transform: none; }

/* ===========================================
   CASE STUDY — story sections, pull-quote, impact stats
   =========================================== */
.case-section {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(3rem, 7vh, 6rem) 6vw;
    max-width: 1300px; margin: 0 auto;
}
.case-section__text { max-width: 46ch; }
.case-section--flip .case-section__text { order: 2; }
.case-section__body {
    font-family: var(--font-body); font-weight: 300;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.65; color: var(--color-light-grey);
    margin-top: 0.85rem;
}
.case-section__media { margin: 0; }
.case-section__media img { width: 100%; height: auto; display: block; border-radius: clamp(14px, 1.6vw, 22px); }

.case-quote {
    padding: clamp(4rem, 11vh, 9rem) 6vw;
    max-width: 1100px; margin: 0 auto; text-align: center;
}
.case-quote__text {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.18; color: var(--color-white);
    margin: 0;
}
.case-quote__text::before {
    content: ''; display: block; width: 46px; height: 3px;
    background: var(--color-green); margin: 0 auto 1.8rem;
}

.case-stats {
    display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(2rem, 6vw, 5.5rem);
    padding: clamp(2rem, 6vh, 5rem) 6vw clamp(4rem, 10vh, 8rem);
    max-width: 1300px; margin: 0 auto; border-top: 1px solid var(--color-grey);
}
.case-stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
.case-stat__value { font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1; color: var(--color-green); }
.case-stat__label { font-family: var(--font-body); font-size: 0.95rem; color: var(--color-light-grey); max-width: 20ch; }

@media (max-width: 768px) {
    .case-section { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 1.25rem; }
    .case-section--flip .case-section__text { order: 0; }
    .case-quote { padding: 3rem 1.25rem; }
    .case-stats { gap: 2rem; padding: 2rem 1.25rem 3rem; }
}
