body.page-home {
    --c-bg: #1a1a1a;
    --c-bg-2: #222222;
    --c-bg-3: #2a2a2a;
    --c-card: #252525;
    --c-olive: #7a7a52;
    --c-olive-2: #8a8a62;
    --c-text: #ffffff;
    --c-muted: #a0a0a0;
    --c-faint: #6a6a6a;
    --c-border: #333333;

    --c-maxw: 1200px;
    --c-gutter: 2.5rem; /* px-10 in the reference */
    --c-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* The homepage is always dark — paint the body + wrapper to match. */
body.page-home,
body.page-home #wrapper,
body.page-home .wrapper,
body.page-home section,
body.page-home .box-layout {
    background-color: var(--c-bg) !important;
    color: var(--c-text);
}

body.page-home {
    color: var(--c-text) !important;
}

body.page-home a { color: var(--c-text); }

/* Hide the theme toggle on the dark-only homepage */
body.page-home .theme-toggle { display: none !important; }

/* Override the site header to read on the dark homepage.
   The fixed header sits above the hero; give it a transparent-then-blur scroll state. */
body.page-home .new-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
}
body.page-home .new-header,
body.page-home .new-header * {
    color: var(--c-text) !important;
}
body.page-home .new-header.header-scrolled {
    background: rgba(26, 26, 26, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid var(--c-border) !important;
}
/* Nav active/hover dots use white on the dark homepage */
body.page-home .new-nav a::before,
body.page-home .new-logo a::after { background: var(--c-text) !important; }

/* The existing footer is light/dark token-driven; force it dark on the homepage */
body.page-home .minimal-footer {
    background: var(--c-bg) !important;
    border-top: 1px solid var(--c-border) !important;
}
body.page-home .minimal-footer,
body.page-home .minimal-footer * {
    color: var(--c-text) !important;
}
body.page-home .footer-logo,
body.page-home .footer-email { color: var(--c-text) !important; }
body.page-home .footer-tagline,
body.page-home .footer-col-text,
body.page-home .footer-links a,
body.page-home .footer-copyright,
body.page-home .footer-back-to-top { color: var(--c-muted) !important; }
body.page-home .footer-col-title { color: var(--c-faint) !important; }
body.page-home .footer-email:hover,
body.page-home .footer-links a:hover,
body.page-home .footer-back-to-top:hover { color: var(--c-text) !important; }

/* Neutralize the legacy hero blocks that live in base.volt on the homepage
   (the Creacy hero replaces them via the index.volt block). */
body.page-home .hero-portfolio,
body.page-home .new-hero,
body.page-home .hero-bg,
body.page-home .hero-overlay,
body.page-home .hero-content,
body.page-home .hero-footer { display: none !important; }

/* Legacy homepage bands the redesign used — not part of Creacy */
body.page-home .home-blog,
body.page-home .cta-band { display: none !important; }

/* =============================================
   SHARED ATOMS
   ============================================= */
.c-wrap {
    max-width: var(--c-maxw);
    margin: 0 auto;
    padding-left: var(--c-gutter);
    padding-right: var(--c-gutter);
    box-sizing: border-box;
}

.c-section-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.c-section-label .num {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--c-faint);
}
.c-section-label .lbl {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--c-muted);
}

.c-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--c-ease) 0.3s, color var(--c-ease) 0.3s,
                border-color var(--c-ease) 0.3s, transform var(--c-ease) 0.3s,
                background-color var(--c-ease) 0.3s;
    border: 1px solid transparent;
    line-height: 1;
}
.c-pill-btn svg { width: 13px; height: 13px; transition: transform 0.3s var(--c-ease); }
.c-pill-btn:hover svg { transform: translateX(3px); }

/* color !important: on the homepage `body.page-home a` (white) outranks this
   rule and turned the text + currentColor arrow white-on-white (invisible). */
.c-pill-btn--primary { background: #fff !important; color: #1a1a1a !important; }
.c-pill-btn--primary:hover { background: #f0f0f1; transform: scale(1.02); }

.c-pill-btn--outlined { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.c-pill-btn--outlined:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

.c-cat-tag {
    display: inline-block;
    border-radius: 999px;
    background: var(--c-olive);
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #fff;
    transition: background 0.3s var(--c-ease);
    cursor: pointer;
    border: none;
}
.c-cat-tag:hover { background: var(--c-olive-2); }

.c-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: border-color 0.3s var(--c-ease), background 0.3s var(--c-ease);
}
.c-arrow-btn:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.c-arrow-btn svg { width: 15px; height: 15px; transition: transform 0.3s var(--c-ease); }
.c-arrow-btn--left:hover svg { transform: translateX(-2px); }
.c-arrow-btn--right:hover svg { transform: translateX(2px); }

/* =============================================
   1. HERO
   ============================================= */
.creacy-hero {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    background: var(--c-bg);
}
.creacy-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.creacy-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    display: block;
}
.creacy-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(26,26,26,0.30) 0%,
        rgba(26,26,26,0.20) 40%,
        rgba(26,26,26,0.70) 100%);
    z-index: 2;
    pointer-events: none;
}
.creacy-hero__inner {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90vh;
    padding-top: 120px;
    padding-bottom: 2.5rem;
}
.creacy-hero__headline {
    max-width: 600px;
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}
.creacy-hero__headline .line { display: block; }

.creacy-hero__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.creacy-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 280px;
}

.creacy-hero__slider {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.creacy-hero__progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
}
.creacy-hero__progress-track {
    width: 4rem;
    height: 1px;
    background: rgba(255,255,255,0.3);
}
.creacy-hero__progress-fill {
    height: 100%;
    background: #fff;
    transition: width 0.5s var(--c-ease);
}
.creacy-hero__cards { display: flex; gap: 0.75rem; }
.creacy-hero__card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(26,26,26,0.8);
    padding: 0.75rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.5s var(--c-ease);
    text-decoration: none;
}
.creacy-hero__card.is-active { opacity: 1; }
.creacy-hero__card.is-dim { opacity: 0.5; }
.creacy-hero__card img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.375rem;
    object-fit: cover;
}
.creacy-hero__card-title { font-size: 0.72rem; font-weight: 500; color: #fff; line-height: 1.3; }
.creacy-hero__card-sub { font-size: 0.62rem; color: var(--c-muted); margin: 0; }

/* =============================================
   2. ABOUT
   ============================================= */
.creacy-about { background: var(--c-bg); padding: clamp(4rem, 10vw, 7.5rem) 0; }
.creacy-about__grid {
    display: flex;
    gap: 4rem;
}
.creacy-about__left { flex: 0 0 auto; padding-top: 0.5rem; }
.creacy-about__caption {
    margin-top: 2.5rem;
    max-width: 300px;
    font-size: 0.85rem;
    line-height: 1.75;
    color: #cbcbcb;
}
.creacy-about__right { flex: 1; }
.creacy-about__heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 2rem;
}
.creacy-about__heading strong { font-weight: 600; }
.creacy-about__text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--c-muted);
    margin: 0 0 2rem;
    max-width: 640px;
}

/* =============================================
   3. EXPERTISE
   ============================================= */
.creacy-expertise { background: var(--c-bg-2); padding: clamp(4rem, 10vw, 7.5rem) 0; }
.creacy-expertise__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}
.creacy-expertise__tabs {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}
.creacy-expertise__tab {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--c-faint);
    transition: color 0.3s var(--c-ease), font-weight 0.3s;
    padding: 0;
}
.creacy-expertise__tab:hover { color: var(--c-muted); }
.creacy-expertise__tab.is-active { color: #fff; font-weight: 500; }

.creacy-expertise__title {
    position: relative;
    z-index: 5;
    margin: 2rem 0 0;
    max-width: 360px;
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
}

.creacy-expertise__stage { position: relative; margin-top: 2rem; }
.creacy-expertise__frame {
    position: relative;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #111;
}
.creacy-expertise__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    display: block;
}
.creacy-expertise__caption {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 3;
}
.creacy-expertise__caption h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    margin: 0;
}
.creacy-expertise__caption p {
    margin: 0.25rem 0 0;
    font-size: 0.72rem;
    color: var(--c-muted);
}
/* Peek of the next slide */
.creacy-expertise__peek {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 4rem;
    overflow: hidden;
}
.creacy-expertise__peek img {
    width: 200%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transform: translateX(-4rem);
}

.creacy-expertise__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}
.creacy-expertise__nav-arrows { display: flex; gap: 0.75rem; }
.creacy-expertise__seeall {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--c-muted);
    transition: color 0.3s var(--c-ease);
    text-decoration: none;
}
.creacy-expertise__seeall:hover { color: #fff; }
.creacy-expertise__seeall svg { width: 12px; height: 12px; transition: transform 0.3s var(--c-ease); }
.creacy-expertise__seeall:hover svg { transform: translateX(3px); }

/* =============================================
   4. WORK
   ============================================= */
.creacy-work { background: var(--c-bg); padding: clamp(4rem, 10vw, 7.5rem) 0; }
.creacy-work__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}
.creacy-work__heading {
    margin: 1.5rem 0 0;
    max-width: 520px;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
}
.creacy-work__heading strong { font-weight: 600; }
.creacy-work__intro { max-width: 340px; }
.creacy-work__intro p {
    font-size: 0.85rem;
    line-height: 1.75;
    color: #cbcbcb;
    margin: 0 0 1.5rem;
}

.creacy-work__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.c-portfolio-card {
    display: block;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--c-card);
    text-decoration: none;
    transition: box-shadow 0.3s var(--c-ease);
}
.c-portfolio-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.c-portfolio-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #111;
}
.c-portfolio-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--c-ease);
    display: block;
}
.c-portfolio-card:hover .c-portfolio-card__media img { transform: scale(1.05); }
.c-portfolio-card__tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 2;
}
.c-portfolio-card__tags .c-cat-tag {
    font-size: 0.6rem;
    padding: 0.3rem 0.7rem;
}
.c-portfolio-card__body { padding: 1.5rem; }
.c-portfolio-card__title {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 0.5rem;
}
.c-portfolio-card__desc {
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--c-muted);
    margin: 0 0 1rem;
}

/* =============================================
   JOURNAL (latest blog posts on the homepage)
   ============================================= */
.creacy-journal { background: var(--c-bg); padding: clamp(4rem, 10vw, 7.5rem) 0; }
.creacy-journal .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
@media (max-width: 991px) { .creacy-journal .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .creacy-journal .blog-grid { grid-template-columns: 1fr; } }

/* =============================================
   5. PUBLICATIONS (replaces Awards)
   ============================================= */
.creacy-publications { background: var(--c-bg-2); padding: clamp(4rem, 10vw, 7.5rem) 0; }
.creacy-publications__grid {
    display: flex;
    gap: 4rem;
}
.creacy-publications__list { flex: 1; min-width: 0; }
.creacy-publications__entries { margin-top: 2rem; }

.c-publication-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--c-border);
    padding: 1.25rem 0;
    transition: background 0.3s var(--c-ease), padding-left 0.3s var(--c-ease);
    text-decoration: none;
    color: #fff;
}
.c-publication-entry:hover {
    background: rgba(255,255,255,0.03);
    padding-left: 1rem;
}
.c-publication-entry__main { display: flex; align-items: center; gap: 3rem; }
.c-publication-entry__year { font-size: 0.85rem; color: var(--c-faint); width: 3rem; flex-shrink: 0; }
.c-publication-entry__title { font-size: 1rem; font-weight: 400; color: #fff; }
.c-publication-entry__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--c-olive);
    color: #fff;
    transition: background 0.3s var(--c-ease), transform 0.3s var(--c-ease);
    flex-shrink: 0;
}
.c-publication-entry:hover .c-publication-entry__arrow { background: var(--c-olive-2); }
.c-publication-entry__arrow svg { width: 13px; height: 13px; transition: transform 0.3s var(--c-ease); }
.c-publication-entry:hover .c-publication-entry__arrow svg { transform: translateX(2px); }

.creacy-publications__feature { flex: 1; min-width: 0; }
.creacy-publications__heading {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 300;
    line-height: 1.2;
    color: #fff;
    margin: 0;
}
.creacy-publications__heading strong { font-weight: 600; }
.creacy-publications__image {
    margin-top: 2rem;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #111;
}
.creacy-publications__image img {
    width: 100%;
    height: auto;
    display: block;
}
.creacy-publications__cap { margin-top: 1rem; }
.creacy-publications__cap h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
}
.creacy-publications__cap p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    line-height: 1.75;
    color: #cbcbcb;
}

/* =============================================
   6. CONTACT
   ============================================= */
.creacy-contact { background: var(--c-bg); padding: 5rem 0 2.5rem; }
.creacy-contact__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    padding-bottom: 4rem;
    flex-wrap: wrap;
}
.creacy-contact__heading {
    margin: 1.5rem 0 0;
    max-width: 540px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
}
.creacy-contact__heading .word { display: inline-block; }
.creacy-contact__heading strong { font-weight: 600; }

.creacy-contact__info {
    text-align: right;
    padding-top: 3rem;
}
.creacy-contact__info p {
    font-size: 0.72rem;
    line-height: 1.8;
    color: var(--c-muted);
    margin: 0;
}
.creacy-contact__info p + p { margin-top: 0.75rem; }
.creacy-contact__info a { color: var(--c-muted); transition: color 0.3s var(--c-ease); }
.creacy-contact__info a:hover { color: #fff; }

.creacy-contact__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--c-border);
    padding-top: 1.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}
.creacy-contact__copy { font-size: 0.72rem; color: var(--c-faint); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    body.page-home { --c-gutter: 2rem; }

    .creacy-about__grid,
    .creacy-publications__grid { gap: 2.5rem; }

    .creacy-work__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    body.page-home { --c-gutter: 1.5rem; }

    .creacy-hero { min-height: auto; }
    .creacy-hero__inner { min-height: 88vh; padding-top: 100px; }

    .creacy-about__grid,
    .creacy-publications__grid {
        flex-direction: column;
        gap: 2rem;
    }
    .creacy-about__left,
    .creacy-publications__list { padding-top: 0; }

    .creacy-work__grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .creacy-expertise__top { flex-direction: column; align-items: flex-start; }
    .creacy-expertise__tabs { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 1rem; }
    .creacy-expertise__frame { aspect-ratio: 16 / 10; }

    .creacy-contact__top { flex-direction: column; gap: 2rem; }
    .creacy-contact__info { text-align: left; padding-top: 0; }

    .creacy-hero__cards { display: none; }

    .c-publication-entry__main { gap: 1.25rem; }
}

@media (max-width: 480px) {
    .creacy-hero__inner { padding-top: 90px; }
    .creacy-hero__headline { font-size: 2rem; }
    .creacy-hero__bottom { flex-direction: column; align-items: flex-start; }

    .creacy-contact__foot { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    .creacy-hero__card,
    .c-portfolio-card,
    .c-publication-entry,
    .c-pill-btn svg,
    .c-arrow-btn svg,
    .c-cat-tag,
    .creacy-expertise__img,
    .c-portfolio-card__media img {
        transition: none !important;
    }
    .c-portfolio-card:hover .c-portfolio-card__media img { transform: none !important; }
}
