/* =====================================================
   Joy Prensa — stylesheet
   Base styles first, then the "playful-but-calm" theme layer
   (softer yellow, readable text, slower motion).
   ===================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
    --gold:           #FFD500;
    --gold-dark:      #C9A227;
    --gold-light:     rgba(255, 213, 0, 0.12);
    --black:          #111111;
    --dark:           #1a1a1a;
    --white:          #ffffff;
    --cream:          #FAF9F6;
    --text:           #333333;
    --text-light:     #888888;
    --transition:     all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-card:    24px;
    --radius-pill:    50px;
    --success:        #22c55e;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== CUSTOM CURSOR (desktop only) ===== */
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
}

.cursor-dot,
.cursor-outline {
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    z-index: 9999;
    transition: transform 0.12s ease, background-color 0.25s ease;
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 2px solid var(--gold);
    z-index: 9998;
    transition: opacity 0.3s ease, border-color 0.25s ease;
    opacity: 0.55;
}

body.hero-cursor-light .cursor-dot {
    background: var(--white);
}

body.hero-cursor-light .cursor-outline {
    border-color: var(--white);
    opacity: 0.75;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 1.2rem 0;
    transition: var(--transition);
    background-color: transparent !important;
    box-shadow: none !important;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.07) !important;
    padding: 0.75rem 0;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-text {
    font-family: 'Climate Crisis', serif;
    font-size: 1.9rem;
    letter-spacing: 0.22em;
    color: var(--black);
    transition: var(--transition);
    line-height: 1;
}

.navbar-brand:hover .logo-text {
    transform: translateY(-2px) scale(1.04);
}

.navbar:not(.scrolled) .navbar-brand:hover .logo-text {
    color: var(--white);
    text-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
}

.navbar.scrolled .navbar-brand:hover .logo-text {
    color: var(--gold-dark);
}

.nav-links-left,
.nav-links-right { gap: 2.5rem; }

.nav-link {
    color: var(--black) !important;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    transform: translateY(0) scale(1);
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease, letter-spacing 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 0.15rem;
    opacity: 0.85;
    z-index: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.32s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link:focus-visible {
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
    letter-spacing: 0.17em;
}

.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link:focus-visible {
    color: var(--white) !important;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

.navbar:not(.scrolled) .nav-link::after {
    background: var(--white);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link:focus-visible {
    color: var(--gold-dark) !important;
    text-shadow: none;
}

.navbar.scrolled .nav-link::after {
    background: var(--gold);
}

.navbar-toggler:focus { box-shadow: none; }
.offcanvas { background: var(--white); }
.offcanvas-body .nav-link { padding: 0.9rem 0; font-size: 1rem; }

/* ===== HERO ===== */
.hero-section {
    min-height: 100vh;
    background-color: var(--gold);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

/* Decorative orbiting circles */
.hero-circle,
.about-circle-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-1 {
    width: 640px;
    height: 640px;
    background: rgba(255, 255, 255, 0.1);
    top: -220px;
    right: -130px;
    animation: driftCircle 22s ease-in-out infinite;
}

.circle-2 {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.07);
    bottom: -120px;
    left: 8%;
    animation: driftCircle 16s ease-in-out infinite reverse;
}

.circle-3 {
    width: 160px;
    height: 160px;
    border: 3px solid rgba(255, 255, 255, 0.28);
    top: 22%;
    right: 18%;
    animation: spinSlow 14s linear infinite;
}

@keyframes driftCircle {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.04); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero-section .container-fluid { position: relative; z-index: 1; }

.hero-content { padding: 2rem 2rem 2rem 8%; }

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--black);
    opacity: 0.55;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease both;
}

.hero-title {
    font-family: 'Climate Crisis', serif;
    font-size: 5.5rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.9s ease 0.1s both;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    color: var(--black);
    font-weight: 600;
    margin-bottom: 1.5rem;
    min-height: 65px;
    animation: fadeInUp 0.9s ease 0.2s both;
}

.typing-prefix { opacity: 0.65; }

.typing-text {
    color: var(--white);
    font-weight: 700;
    font-style: italic;
}

.cursor {
    color: var(--white);
    animation: blink 0.7s infinite;
    font-weight: 300;
}

.hero-description {
    font-size: 1rem;
    color: var(--black);
    opacity: 0.7;
    max-width: 420px;
    line-height: 1.75;
    animation: fadeInUp 0.9s ease 0.3s both;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: var(--transition);
}

.btn-hero-primary {
    background: var(--black);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.btn-hero-primary:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-hero-secondary:hover {
    background: var(--black);
    color: var(--gold);
    transform: translateY(-4px);
}

/* Hero image / blob */
.hero-image-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 8% 2rem 2rem;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.hero-image-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.ring-outer {
    width: 112%;
    height: 112%;
    top: -6%;
    left: -6%;
    animation: spinSlow 26s linear infinite;
}

.ring-inner {
    width: 106%;
    height: 106%;
    top: -3%;
    left: -3%;
    border-color: rgba(26, 26, 26, 0.12);
    animation: spinSlow 18s linear infinite reverse;
}

.hero-image {
    width: 100%;
    height: 560px;
    position: relative;
    overflow: hidden;
    filter: drop-shadow(0 28px 55px rgba(0, 0, 0, 0.22));
    animation: morphBlob 9s ease-in-out infinite, floatY 6s ease-in-out infinite;
}

.hero-image img,
.about-main-img,
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hero-image img {
    transition: transform 0.6s ease;
}

.hero-image:hover img { transform: scale(1.06); }

/* Floating badges */
.floating-badge {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.13);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--black);
    white-space: nowrap;
    z-index: 5;
}

.floating-badge i { color: var(--gold); font-size: 1rem; }

.badge-top-right {
    top: 8%;
    right: -12%;
    animation: floatY 4.5s ease-in-out infinite;
}

.badge-bottom-left {
    bottom: 14%;
    left: -14%;
    animation: floatY 5.5s ease-in-out infinite 1s;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--black), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ===== STATS BAR ===== */
.stats-section {
    background: var(--black);
    padding: 4.5rem 0;
}

.stat-item { color: var(--white); }

.stat-number,
.stat-plus {
    font-family: 'Climate Crisis', serif;
    color: var(--gold);
}

.stat-number {
    font-size: 3.2rem;
    line-height: 1;
    display: inline;
}

.stat-plus { font-size: 2rem; }

.stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.5rem;
}

/* ===== SHARED SECTION STYLES ===== */
.section-padding { padding: 100px 0; }

.section-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 580px;
    margin: 1.5rem auto 0;
    line-height: 1.75;
}

/* ===== ABOUT ===== */
.about-section { background: var(--cream); overflow: hidden; }

.about-image-container { position: relative; padding: 2.5rem; }

.about-image-wrapper {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 6px solid var(--gold);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.about-image-wrapper:hover { box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2); }

.about-main-img {
    transition: transform 0.65s ease;
}

.about-image-wrapper:hover .about-main-img { transform: scale(1.08); }

.circle-gold {
    width: 200px;
    height: 200px;
    background: var(--gold);
    opacity: 0.18;
    bottom: 0;
    right: 0;
    animation: pulseSoft 4.5s ease-in-out infinite;
}

.circle-outline {
    width: 430px;
    height: 430px;
    border: 2px dashed var(--gold);
    opacity: 0.28;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spinSlow 32s linear infinite;
}

.about-stats-bubble {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    width: 104px;
    height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-stats-bubble i {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

.about-intro {
    font-family: 'Playfair Display', serif;
    font-size: 1.18rem;
    line-height: 1.85;
    color: var(--black);
    margin-bottom: 1.25rem;
}

.about-text {
    font-size: 0.97rem;
    line-height: 1.82;
    color: var(--text-light);
}

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
    background: var(--white);
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.service-icon-circle,
.award-icon-circle,
.contact-icon-circle,
.highlight-icon {
    border-radius: 50%;
    background: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    transition: var(--transition);
}

.highlight-card:hover .highlight-icon,
.service-card:hover .service-icon-circle,
.award-card:hover .award-icon-circle,
.contact-item:hover .contact-icon-circle { background: var(--gold); color: var(--black); }

.highlight-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    font-size: 1rem;
}

.highlight-card h6 { font-weight: 700; font-size: 0.9rem; color: var(--black); margin-bottom: 0.25rem; }
.highlight-card p  { font-size: 0.8rem; color: var(--text-light); margin: 0; line-height: 1.5; }

/* ===== SERVICES ===== */
.services-section { background: var(--white); }

.service-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--radius-card);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.09);
    border-color: transparent;
}

.service-featured {
    background: var(--black);
    border-color: var(--black);
}

.service-featured h3,
.service-featured p,
.service-featured li { color: var(--white) !important; }

.service-featured .service-list li::before { color: var(--gold) !important; }

.service-badge,
.project-tag {
    background: var(--gold);
    color: var(--black);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-pill);
}

.service-badge {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
}

.service-icon-circle {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-featured .service-icon-circle { background: rgba(255, 213, 0, 0.18); color: var(--gold); }

.service-card:hover .service-icon-circle { transform: scale(1.1) rotate(8deg); }

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 1.4rem;
}

.service-list { list-style: none; padding: 0; margin: 0; }

.service-list li {
    font-size: 0.83rem;
    color: var(--text-light);
    padding: 0.32rem 0 0.32rem 1.2rem;
    position: relative;
}

.service-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 1.3rem;
    line-height: 1.2;
}

/* ===== PROJECTS ===== */
.projects-section { background: var(--cream); }

.project-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
}

.project-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.project-image-tall { height: 380px; }

.project-image img {
    transition: transform 0.75s ease;
}

.project-card:hover .project-image img { transform: scale(1.08); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-tag {
    display: inline-block;
    margin-bottom: 0.65rem;
}

.project-overlay-content h4 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.project-overlay-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    margin: 0;
}

/* Timeline */
.subsection-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--black);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.8rem;
    padding-left: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--cream);
    box-shadow: 0 0 0 3px var(--gold);
    transform: translateX(-50%);
    margin-left: 1px;
}

.timeline-content {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-item:hover .timeline-content {
    transform: translateX(6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.timeline-year {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold-dark);
    text-transform: uppercase;
}

.timeline-content h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    color: var(--black);
    margin: 0.5rem 0;
}

.timeline-company {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.6rem;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--gold-light);
    color: var(--gold-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.65;
}

.timeline-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }

.timeline-tags span {
    background: var(--gold-light);
    color: var(--gold-dark);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
}

/* ===== AWARDS ===== */
.awards-section { background: var(--white); }

.award-card {
    background: var(--cream);
    border-radius: var(--radius-card);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.award-card:hover {
    background: var(--black);
    transform: translateY(-9px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.14);
}

.award-card:hover h5,
.award-card:hover p,
.award-card:hover .award-year,
.award-card:hover .award-org { color: var(--white); }

.award-icon-circle {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
    margin: 0 auto 1.4rem;
}

.award-year {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--gold-dark);
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.award-card h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 0.7rem;
}

.award-card p {
    font-size: 0.83rem;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.award-org {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.awards-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 0.9rem 1.8rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-pill);
    background: var(--cream);
    color: var(--black);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: var(--transition);
}

.awards-more-btn:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

/* Media logos */
.media-label {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-light);
}

.media-logo-item {
    font-family: 'Climate Crisis', serif;
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.45;
    transition: var(--transition);
    letter-spacing: 0.1em;
}

.media-logo-item:hover { opacity: 1; color: var(--black); }

/* ===== BRANDS (infinite carousel) ===== */
.brands-section {
    background: var(--black);
    padding: 70px 0;
    overflow: hidden;
}

.brands-section .section-eyebrow { color: var(--gold); }

.brands-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.brands-marquee {
    margin-top: 2.5rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brands-track {
    display: flex;
    width: max-content;
    animation: brandsScroll 55s linear infinite;
}

.brands-marquee:hover .brands-track,
.brands-marquee:focus-within .brands-track { animation-play-state: paused; }

.brands-group { flex-shrink: 0; }

.brands-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.brand-item {
    position: relative;
    white-space: nowrap;
    padding: 0 2.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.3s ease;
}

.brand-item::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateY(-50%);
}

.brand-item:hover { color: var(--gold); }

@keyframes brandsScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 576px) {
    .brands-section { padding: 56px 0; }
    .brands-title   { font-size: 1.6rem; }
    .brand-item     { padding: 0 1.5rem; font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
    .brands-track { animation: none !important; width: auto; }
    .brands-group[aria-hidden="true"] { display: none; }
    .brands-marquee { -webkit-mask-image: none; mask-image: none; }
    .brands-list { flex-wrap: wrap; justify-content: center; row-gap: 1rem; }
}

/* ===== CONTACT ===== */
.contact-section { background: var(--cream); }

.contact-form {
    background: var(--white);
    padding: 2.8rem;
    border-radius: var(--radius-card);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.07);
}

.contact-form .form-control {
    border: 1.5px solid #e5e5e5;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background: #fafafa;
}

.contact-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.14);
    background: var(--white);
    outline: none;
}

.btn-contact-submit {
    display: block;
    padding: 1rem 2rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.btn-contact-submit:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 213, 0, 0.28);
}

.contact-form .form-control.is-invalid { border-color: #c0392b; background-image: none; }
.field-error { color: #c0392b; font-size: 0.8rem; margin-top: 0.3rem; }
.field-error:empty { display: none; }
.btn-contact-submit:disabled { opacity: 0.75; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-contact-submit.is-success,
.btn-contact-submit.is-success:disabled { background: var(--success); color: var(--white); opacity: 1; }
.form-status { margin-top: 0.9rem; font-size: 0.88rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: #c0392b; }

.contact-info-wrapper { padding: 0.5rem; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
}

.contact-icon-circle {
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h5 { font-weight: 700; font-size: 0.88rem; color: var(--black); margin-bottom: 0.28rem; }
.contact-item p  { margin: 0; color: var(--text-light); font-size: 0.88rem; }

.contact-item a { color: var(--text-light); text-decoration: none; transition: var(--transition); }
.contact-item a:hover { color: var(--gold-dark); }
.contact-item a.contact-icon-circle:hover { background: var(--gold); color: var(--black); }

.social-links { display: flex; gap: 0.75rem; }

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 213, 0, 0.28);
}

/* ===== FOOTER ===== */
.footer { background: var(--black); color: var(--white); }

.footer-logo {
    font-family: 'Climate Crisis', serif;
    font-size: 1.5rem;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.footer-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin: 0;
}

.footer-links { display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; }

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-copy { font-size: 0.76rem; color: rgba(255, 255, 255, 0.28); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}

@keyframes morphBlob {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25%       { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50%       { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75%       { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

@keyframes blink {
    0%, 50%   { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes pulseSoft {
    0%, 100% { transform: scale(1);    opacity: 0.18; }
    50%       { transform: scale(1.12); opacity: 0.26; }
}

@keyframes scrollPulse {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-section    { padding-top: 90px; }
    .hero-content    { padding: 2rem; }
    .hero-title      { font-size: 3.5rem; }
    .hero-subtitle   { font-size: 1.6rem; }
    .hero-image-wrapper { padding: 2rem; }
    .hero-image      { height: 400px; }
    .hero-image-container { max-width: 360px; }
    .badge-top-right   { right: -5%; }
    .badge-bottom-left { left: -5%; }
    .section-title   { font-size: 2.5rem; }
    .about-image-wrapper { width: 290px; height: 290px; }
    .circle-outline  { width: 330px; height: 330px; }
}

@media (max-width: 576px) {
    .hero-title      { font-size: 2.6rem; }
    .hero-subtitle   { font-size: 1.3rem; }
    .hero-image      { height: 300px; }
    .hero-image-container { max-width: 260px; }
    .floating-badge  { display: none; }
    .section-title   { font-size: 2rem; }
    .stat-number     { font-size: 2.5rem; }
    .about-image-wrapper { width: 240px; height: 240px; }
    .circle-outline  { width: 280px; height: 280px; }
    .btn-hero-primary,
    .btn-hero-secondary { padding: 0.8rem 1.5rem; font-size: 0.85rem; }
    .contact-form    { padding: 1.75rem; }

    .award-card {
        display: grid;
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            'icon content'
            'year content';
        gap: 0.2rem 1rem;
        align-items: center;
        text-align: left;
        padding: 1.5rem 1.25rem;
    }

    .award-icon-circle {
        grid-area: icon;
        width: 58px;
        height: 58px;
        font-size: 1.25rem;
        margin: 0;
        justify-self: center;
    }

    .award-year {
        grid-area: year;
        margin: 0;
        justify-self: center;
        align-self: center;
        text-align: center;
        line-height: 1.35;
        font-size: 0.62rem;
    }

    .award-card h5 {
        margin: 0 0 0.35rem;
        font-size: 1rem;
    }

    .award-card p {
        margin: 0 0 0.55rem;
        font-size: 0.8rem;
    }

    .award-org {
        font-size: 0.64rem;
        line-height: 1.45;
    }

    .award-content {
        grid-area: content;
        align-self: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   THEME LAYER — Playful-but-calm
   Same personality as the original (butter yellow hero,
   Climate Crisis wordmark, blob photo, floating badges,
   black accent cards), with the volume turned down:
   softer yellow, readable text, slower motion, lighter
   shadows. Loaded after styles.css.
   ===================================================== */

:root {
    --gold:        #F4DE6E;   /* butter yellow instead of #FFD500 */
    --gold-dark:   #7D6209;   /* accent text, AA on cream/white */
    --gold-light:  rgba(244, 222, 110, 0.28);
    --black:       #1C1B19;
    --dark:        #262421;
    --cream:       #FBF8F1;
    --text:        #3A3834;
    --text-light:  #6F6C66;
    --line:        rgba(28, 27, 25, 0.08);
    --transition:  all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Navbar ===== */
.navbar.scrolled { background-color: rgba(251, 248, 241, 0.94) !important; box-shadow: 0 1px 0 var(--line) !important; }
.nav-link:hover,
.nav-link:focus-visible { transform: translateY(-2px); letter-spacing: 0.15em; }
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link:focus-visible { color: var(--gold-dark) !important; }
.navbar-brand:hover .logo-text { transform: translateY(-1px); }

/* ===== Hero ===== */
.hero-section {
    min-height: 100dvh;
    background-image: radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.4), transparent 52%);
}

.circle-1 { background: rgba(255, 255, 255, 0.16); }
.circle-2 { background: rgba(255, 255, 255, 0.12); }
.circle-3 { border-width: 2px; border-color: rgba(28, 27, 25, 0.12); animation-duration: 24s; }

.hero-eyebrow { opacity: 0.8; font-weight: 600; }

.hero-title {
    font-size: clamp(2.5rem, 5.2vw, 4.7rem);
    letter-spacing: 0.03em;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.1vw, 1.9rem);
    min-height: 1.6em;
}

.typing-prefix { opacity: 0.7; }

/* Typed words sit on a white chip so they stay readable on the yellow */
.typing-text {
    color: var(--black);
    background: var(--white);
    padding: 0.05em 0.45em 0.1em;
    border-radius: 10px;
    box-shadow: 0 6px 18px -10px rgba(28, 27, 25, 0.3);
}
.typing-text:empty { display: none; }
.cursor { color: var(--black); }

.btn-hero-primary { box-shadow: 0 6px 16px -8px rgba(28, 27, 25, 0.45); }
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -12px rgba(28, 27, 25, 0.35); }
.btn-hero-secondary { border-width: 1.5px; }
.btn-hero-secondary:hover { transform: translateY(-3px); }
.btn-hero-primary:active,
.btn-hero-secondary:active { transform: scale(0.98); }

/* Photo: still a blob, just slower and with a lighter shadow */
.hero-image {
    animation: morphBlob 16s ease-in-out infinite, floatY 9s ease-in-out infinite;
    filter: drop-shadow(0 22px 34px rgba(70, 55, 0, 0.18));
}
.ring-outer { border-color: rgba(255, 255, 255, 0.55); animation-duration: 40s; }
.ring-inner { animation-duration: 30s; border-color: rgba(28, 27, 25, 0.08); }

.floating-badge {
    box-shadow: 0 10px 24px -14px rgba(28, 27, 25, 0.4);
}
.floating-badge i { color: var(--gold-dark); }
.badge-top-right  { animation-duration: 7s; }
.badge-bottom-left { animation-duration: 8s; }

/* ===== Shared ===== */
.section-eyebrow { color: var(--gold-dark); }
.section-title::after { background: var(--gold); width: 44px; height: 4px; }

/* ===== About ===== */
.about-image-wrapper { box-shadow: 0 26px 50px -30px rgba(70, 55, 0, 0.4); }
.about-image-wrapper:hover { box-shadow: 0 26px 50px -30px rgba(70, 55, 0, 0.4); }
.circle-gold { opacity: 0.4; }
.circle-outline { opacity: 0.45; animation-duration: 48s; border-color: var(--gold); }

.highlight-card { border-color: var(--line); }
.highlight-card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -18px rgba(28, 27, 25, 0.3); }

/* ===== Services ===== */
.service-card { border-color: var(--line); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -26px rgba(28, 27, 25, 0.35); }
.service-card:hover .service-icon-circle { transform: scale(1.06) rotate(5deg); }
.service-featured .service-icon-circle { background: rgba(244, 222, 110, 0.22); color: var(--gold); }
.service-list li::before { color: var(--gold-dark); }
.service-featured .service-list li::before { color: var(--gold) !important; }

.service-badge,
.project-tag { color: var(--black); }

/* ===== Projects / timeline ===== */
.project-card { box-shadow: 0 18px 36px -28px rgba(28, 27, 25, 0.5); }
.project-image img { filter: saturate(0.92); }
.timeline-content { border-color: var(--line); }
.timeline-item:hover .timeline-content { transform: translateX(4px); box-shadow: 0 14px 26px -18px rgba(28, 27, 25, 0.3); }
.timeline-dot { background: var(--gold); box-shadow: 0 0 0 3px var(--gold); border-color: var(--cream); }
.timeline-company { background: var(--gold-light); }

/* ===== Awards ===== */
.award-card { border-color: var(--line); }
.award-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -26px rgba(28, 27, 25, 0.45); }
.award-card:hover .award-year,
.award-card:hover .award-org { color: var(--gold); }
.award-card:hover .award-icon-circle { background: var(--gold); color: var(--black); }
.awards-more-btn { border-color: var(--line); }
.awards-more-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -14px rgba(28, 27, 25, 0.4); }

/* ===== Brands carousel ===== */
.brands-section { background: var(--black); }
.brands-section .section-eyebrow { color: var(--gold); }
.brand-item { color: rgba(255, 255, 255, 0.78); }
.brand-item:hover { color: var(--gold); }

/* ===== Contact ===== */
.contact-form { box-shadow: 0 26px 50px -36px rgba(28, 27, 25, 0.4); border: 1px solid var(--line); }
.contact-form .form-control:focus { box-shadow: 0 0 0 3px rgba(244, 222, 110, 0.45); border-color: var(--gold-dark); }
.btn-contact-submit:hover { box-shadow: 0 10px 20px -12px rgba(28, 27, 25, 0.45); }
.social-btn:hover { box-shadow: 0 10px 18px -12px rgba(28, 27, 25, 0.4); }

/* ===== Footer ===== */
.footer-tagline { color: rgba(255, 255, 255, 0.55); }
.footer-links a { color: rgba(255, 255, 255, 0.62); }
.footer-copy { color: rgba(255, 255, 255, 0.45); }

/* ===== Focus (keyboard) ===== */
.awards-more-btn:focus-visible,
.btn-hero-primary:focus-visible,
.btn-hero-secondary:focus-visible,
.btn-contact-submit:focus-visible,
.social-btn:focus-visible,
.nav-link:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
