/**
 * ═══════════════════════════════════════════════════════════
 * Page-Specific Styles — Home Page
 * ═══════════════════════════════════════════════════════════
 *
 * Scoped under .page-home and global components used on Home.
 * Recreates the exact mockup design section-by-section.
 * ═══════════════════════════════════════════════════════════
 */

/* ── Typography & Highlight Utilities ────────────────────────── */

.text-accent {
    color: var(--color-accent) !important;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.badge--pill {
    border-radius: var(--radius-full);
}

.badge--accent {
    background-color: #EFF6FF;
    color: #2563EB;
}

.badge--accent-light {
    background-color: rgba(37, 99, 235, 0.12);
    color: #2563EB;
}

/* ══════════════════════════════════════════════════════════
   GLOBAL HEADER / NAVIGATION REFINEMENTS
   ══════════════════════════════════════════════════════════ */

.site-header {
    height: var(--header-height);
    background-color: #FFFFFF;
    border-bottom: 1px solid #F1F5F9;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.site-header--scrolled {
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    border-bottom-color: #E2E8F0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    flex-shrink: 0;
}

.nav__monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    flex-shrink: 0;
}

.footer__monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    flex-shrink: 0;
}

.nav__brand-info {
    display: flex;
    flex-direction: column;
}

.nav__logo-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.nav__logo-subtitle {
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 500;
    margin-top: 1px;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav__link:hover {
    color: var(--color-accent);
}

.nav__link--active {
    color: var(--color-accent);
    font-weight: 600;
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2.5px;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav__separator {
    display: inline-block;
    width: 1px;
    height: 24px;
    background-color: #CBD5E1;
}

.nav__cv {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
}

/* WhatsApp brand green for the header action button */
.nav__whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.28);
}

.nav__whatsapp:hover {
    background-color: #1EBE5A;
    border-color: #1EBE5A;
    color: #FFFFFF;
}

.nav__whatsapp:focus-visible {
    outline: 2px solid #0F7A3D;
    outline-offset: 2px;
}

.nav__whatsapp i {
    font-size: 1rem;
}

/* ══════════════════════════════════════════════════════════
   SECTION 1: HERO
   ══════════════════════════════════════════════════════════ */

.hero {
    padding-top: calc(var(--header-height) + calc(2.5rem * var(--section-scale)));   /* header height is never scaled */
    padding-bottom: calc(3.5rem * var(--section-scale));
    background: #FFFFFF;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2.5rem;
}

.hero__badge-wrap {
    margin-bottom: 0.85rem;
}

.hero__title {
    font-size: clamp(2.25rem, 4.2vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0F172A;
    margin-bottom: 1rem;
}

.hero__greeting {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 700;
    color: #0F172A;
}

.hero__name-first {
    color: #0F172A;
}

.hero__name-last {
    color: var(--color-accent);
}

.hero__tagline {
    font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
    font-weight: 700;
    color: #1E293B;
    line-height: 1.4;
    margin-bottom: 0.85rem;
}

.hero__description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748B;
    max-width: 520px;
    margin-bottom: 1.75rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero__btn {
    padding: 0.65rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.hero__socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background-color: #FFFFFF;
    color: #475569;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.hero__social-icon:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background-color: #EFF6FF;
    transform: translateY(-2px);
}

.hero__location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
}

.hero__location-icon {
    color: #EF4444;
    font-size: 1rem;
}

.hero__location-text {
    display: flex;
    flex-direction: column;
    font-size: 0.8125rem;
    line-height: 1.25;
}

.hero__location-main {
    font-weight: 600;
    color: #1E293B;
}

.hero__location-sub {
    font-size: 0.6875rem;
    color: #94A3B8;
}

/* Hero Right: Visual Composition */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.hero__photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
}

/* ══════════════════════════════════════════════════════════
   SECTION 2: WHAT I DO (Services)
   ══════════════════════════════════════════════════════════ */

.section--services {
    background-color: #FAFAFA;
    border-top: 1px solid #F1F5F9;
    padding-block: calc(4.5rem * var(--section-scale));
}

.services__grid {
    gap: 1.5rem;
}

.service-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
}

.service-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.service-card__icon--blue {
    background-color: #EFF6FF;
    color: #2563EB;
}

.service-card__icon--orange {
    background-color: #FFF7ED;
    color: #EA580C;
}

.service-card__icon--teal {
    background-color: #F0FDFA;
    color: #0D9488;
}

.service-card__icon--purple {
    background-color: #FAF5FF;
    color: #9333EA;
}

.service-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.service-card__desc {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748B;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.service-card__link:hover {
    gap: 0.65rem;
}

/* ══════════════════════════════════════════════════════════
   SECTION 3: FEATURED PROJECTS
   ══════════════════════════════════════════════════════════ */

.section--projects {
    background-color: #FFFFFF;
    padding-block: calc(4.5rem * var(--section-scale));
}

.section-header--with-link {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

.section-header__action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: gap var(--transition-fast);
    flex-shrink: 0;
}

.section-header__action:hover {
    gap: 0.65rem;
}

.projects__grid {
    gap: 1.75rem;
}

.project-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.1);
}

.project-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #F8FAFC;
    overflow: hidden;
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card__img {
    transform: scale(1.03);
}

.project-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.project-card__title a {
    color: #0F172A;
    text-decoration: none;
}

.project-card__title a:hover {
    color: var(--color-accent);
}

.project-card__desc {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748B;
    margin-bottom: 1.15rem;
    flex-grow: 1;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.tag--sm {
    font-size: 0.6875rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background-color: #F1F5F9;
    color: #475569;
    font-weight: 500;
    border: none;
}

.project-card__footer {
    padding-top: 0.75rem;
    border-top: 1px solid #F1F5F9;
}

.project-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.project-card__cta:hover {
    gap: 0.65rem;
}

/* ══════════════════════════════════════════════════════════
   SECTION 4: ABOUT PREVIEW
   ══════════════════════════════════════════════════════════ */

.section--about {
    background-color: #FAFAFA;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
    padding-block: calc(4.5rem * var(--section-scale));
}

.about-preview__layout {
    display: grid;
    /* Photo column widened so the portrait reads at a usable size */
    grid-template-columns: 1.25fr 1.3fr 0.95fr;
    align-items: center;
    gap: 2.5rem;
}

.about-preview__media {
    width: 100%;
}

.about-preview__img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.1);
}

.about-preview__content .section-title {
    margin-bottom: 1rem;
}

.about-preview__text {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #64748B;
    margin-bottom: 0.85rem;
}

.about-preview__action {
    margin-top: 1.5rem;
}

.about-preview__features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
}

.feature-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #EFF6FF;
    color: #2563EB;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.feature-item__info {
    display: flex;
    flex-direction: column;
}

.feature-item__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.25rem;
}

.feature-item__desc {
    font-size: 0.78125rem;
    line-height: 1.45;
    color: #64748B;
}

/* ══════════════════════════════════════════════════════════
   SECTION 5: LATEST BLOG POSTS
   ══════════════════════════════════════════════════════════ */

.section--blog {
    background-color: #FFFFFF;
    padding-block: calc(4.5rem * var(--section-scale));
}

.blog__grid {
    gap: 1.75rem;
}

.blog-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.1);
}

.blog-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #F8FAFC;
    overflow: hidden;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__img {
    transform: scale(1.03);
}

.blog-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.blog-card__badge {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.blog-card__date {
    font-size: 0.6875rem;
    color: #94A3B8;
    font-weight: 500;
}

.blog-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.blog-card__title a {
    color: #0F172A;
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--color-accent);
}

.blog-card__excerpt {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748B;
    margin-bottom: 1.15rem;
    flex-grow: 1;
}

.blog-card__footer {
    padding-top: 0.75rem;
    border-top: 1px solid #F1F5F9;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.blog-card__link:hover {
    gap: 0.65rem;
}

/* ══════════════════════════════════════════════════════════
   SECTION 6: CTA BANNER
   ══════════════════════════════════════════════════════════ */

.section--cta-banner {
    padding-block: calc(2.5rem * var(--section-scale)) calc(5rem * var(--section-scale));
    background-color: #FFFFFF;
}

.cta-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding: 3.5rem 3rem;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
}

.cta-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.97) 0%, rgba(239, 246, 255, 0.88) 50%, rgba(239, 246, 255, 0.1) 100%);
    pointer-events: none;
}

.cta-banner__content {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.cta-banner__badge {
    margin-bottom: 0.85rem;
}

.cta-banner__title {
    font-size: clamp(1.65rem, 2.75vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin-bottom: 0.75rem;
}

.cta-banner__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.75rem;
}

.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.cta-banner__btn {
    padding: 0.65rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn--outline-light {
    background-color: #FFFFFF;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
}

.btn--outline-light:hover {
    background-color: #EFF6FF;
}

/* ══════════════════════════════════════════════════════════
   SECTION 7: FOOTER (4-COLUMN DARK FOOTER)
   ══════════════════════════════════════════════════════════ */

.site-footer {
    background-color: #0A1128;
    color: #94A3B8;
    padding-top: calc(4.5rem * var(--section-scale));
    padding-bottom: calc(2.25rem * var(--section-scale));
    border-top: 1px solid #1E293B;
}

.footer__grid {
    display: grid;
    /* Brand | Quick Links | Latest Articles | Recent Work */
    grid-template-columns: 1.5fr 0.7fr 1.1fr 1.1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.footer__brand-text {
    display: flex;
    flex-direction: column;
}

.footer__brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.footer__brand-subtitle {
    font-size: 0.75rem;
    color: #94A3B8;
    font-weight: 500;
    margin-top: 1px;
}

.footer__description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #94A3B8;
    max-width: 320px;
}

.footer__heading {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__list a {
    font-size: 0.875rem;
    color: #94A3B8;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__list a:hover {
    color: #FFFFFF;
}

.footer__list--social li,
.footer__location {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
}

.footer__list--social a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.footer__list--social i,
.footer__location i {
    width: 16px;
    color: #60A5FA;
    font-size: 0.9375rem;
}

.footer__tagline-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #94A3B8;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid #1E293B;
    font-size: 0.8125rem;
    color: #64748B;
}

.footer__copy {
    margin: 0;
}

.footer__credit {
    margin: 0;
}

/* ══════════════════════════════════════════════════════════
   PHASE 6: MY JOURNEY PAGE STYLES (.page-journey)
   ══════════════════════════════════════════════════════════ */

/* ── Section Vertical Rhythm for Journey — each section manages its own padding ─── */

/* ── Section 1: Journey Hero ─────────────────────────────── */
.page-journey .journey-hero {
    background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
    padding-top: calc(var(--header-height) + calc(2.5rem * var(--section-scale)));   /* header height is never scaled */
    padding-bottom: calc(2.5rem * var(--section-scale));
    position: relative;
    overflow: hidden;
}

.page-journey .journey-hero__container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
}

.page-journey .journey-hero__content {
    max-width: 520px;
}

.page-journey .journey-hero__badge-wrap {
    margin-bottom: 0.9rem;
}

.page-journey .journey-hero__title {
    font-size: clamp(2.5rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #0F172A;
    margin-bottom: 1.1rem;
    max-width: 420px;
}

.page-journey .journey-hero__title .title-phrase {
    display: inline-block;
    white-space: nowrap;
}

.page-journey .journey-hero__description {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 1.85rem;
    max-width: 460px;
}

.page-journey .journey-hero__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-journey .journey-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    text-decoration: none;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.page-journey .journey-hero__btn:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.page-journey .journey-hero__visual {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.page-journey .journey-hero__image-wrapper {
    position: relative;
    max-width: 520px;
    width: 100%;
}

.page-journey .journey-hero__photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ── Section 2: Key Milestones Timeline ──────────────────── */
.page-journey .section--milestones {
    background-color: #FFFFFF;
    padding-top: calc(2.5rem * var(--section-scale));
    padding-bottom: calc(2.5rem * var(--section-scale));
}

.page-journey .section--milestones .section-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.page-journey .section--milestones .section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin-bottom: 0;
}

.page-journey .section--milestones .section-subtitle--right {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748B;
    max-width: 420px;
    margin: 0;
    text-align: right;
}


/* ── Section 3: What Drives Me (Values) ──────────────────── */
.page-journey .section--values {
    background-color: #FFFFFF;
    padding-top: calc(2.5rem * var(--section-scale));
    padding-bottom: calc(2.5rem * var(--section-scale));
}

.page-journey .section--values .section-header {
    margin-bottom: 2rem;
}

.page-journey .section--values .section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin-bottom: 0;
}

.page-journey .values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.page-journey .value-card {
    border-radius: 16px;
    padding: 1.85rem 1.65rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page-journey .value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.08);
}

.page-journey .value-card--blue {
    background-color: #F0F7FF;
    border: 1px solid #DBEAFE;
}
.page-journey .value-card--blue .value-card__icon {
    background-color: #DBEAFE;
    color: #2563EB;
}

.page-journey .value-card--teal {
    background-color: #F0FDF4;
    border: 1px solid #DCFCE7;
}
.page-journey .value-card--teal .value-card__icon {
    background-color: #DCFCE7;
    color: #16A34A;
}

.page-journey .value-card--purple {
    background-color: #FAF5FF;
    border: 1px solid #F3E8FF;
}
.page-journey .value-card--purple .value-card__icon {
    background-color: #F3E8FF;
    color: #9333EA;
}

.page-journey .value-card--orange {
    background-color: #FFFBEB;
    border: 1px solid #FEF3C7;
}
.page-journey .value-card--orange .value-card__icon {
    background-color: #FEF3C7;
    color: #D97706;
}

.page-journey .value-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.page-journey .value-card__title {
    font-size: 1.075rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.page-journey .value-card__desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* ── Section 4: Academic Background and Credentials ──────── */
.page-journey .section--credentials {
    background-color: #FFFFFF;
    padding-top: calc(2.5rem * var(--section-scale));
    padding-bottom: calc(2.5rem * var(--section-scale));
}

.page-journey .section--credentials .section-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.page-journey .section--credentials .section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin-bottom: 0;
}

.page-journey .section--credentials .section-subtitle--right {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748B;
    max-width: 420px;
    margin: 0;
    text-align: right;
}

.page-journey .credentials-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.page-journey .credentials-column {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.65rem 1.85rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.page-journey .credentials-column__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.page-journey .credentials-column__icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #EFF6FF;
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
}

.page-journey .credentials-column__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.page-journey .credentials-card {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

/* Education Timeline Tree Items */
.page-journey .timeline-tree {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.page-journey .timeline-tree__item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.5rem 0 1.25rem;
    display: grid;
    grid-template-columns: 85px 24px 1fr;
    align-items: flex-start;
    gap: 0.65rem;
    position: relative;
    box-shadow: none;
}

.page-journey .timeline-tree__time {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563EB;
    white-space: nowrap;
    padding-top: 1px;
}

.page-journey .timeline-tree__line {
    display: flex;
    justify-content: center;
    position: relative;
    height: 100%;
}

.page-journey .timeline-tree__line::after {
    content: '';
    position: absolute;
    top: 14px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: #BFDBFE;
}

.page-journey .timeline-tree__item:last-child .timeline-tree__line::after {
    display: none;
}

.page-journey .timeline-tree__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2563EB;
    margin-top: 4px;
    z-index: 2;
}

.page-journey .timeline-tree__content {
    display: flex;
    flex-direction: column;
}

.page-journey .timeline-tree__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.page-journey .timeline-tree__institution {
    font-size: 0.75rem;
    color: #64748B;
    margin-bottom: 0.35rem;
}

.page-journey .timeline-tree__focus {
    font-size: 0.6875rem;
    color: #2563EB;
    background-color: #EFF6FF;
    border: 1px solid #DBEAFE;
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-weight: 500;
    align-self: flex-start;
    margin: 0;
}

/* Certifications List Items */
.page-journey .certifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.page-journey .cert-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: none;
}

.page-journey .cert-item__badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #FFF1F2;
    color: #E11D48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.page-journey .cert-item__info {
    display: flex;
    flex-direction: column;
}

.page-journey .cert-item__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.page-journey .cert-item__issuer {
    font-size: 0.75rem;
    color: #64748B;
    margin: 0;
}

/* ── Section 5: Life Outside Work (Beyond Technology) ────── */
.page-journey .section--interests {
    background-color: #FFFFFF;
    padding-top: calc(2.5rem * var(--section-scale));
    padding-bottom: calc(2.5rem * var(--section-scale));
}

.page-journey .interests-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.75fr;
    gap: 3rem;
    align-items: center;
}

.page-journey .interests-content {
    display: flex;
    flex-direction: column;
}

.page-journey .interests-content .section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin-bottom: 0.9rem;
}

.page-journey .interests-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #64748B;
    margin-bottom: 1.65rem;
    max-width: 340px;
}

.page-journey .interests-action .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFFFFF;
    color: #2563EB;
    border: 1.5px solid #60A5FA;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.page-journey .interests-action .btn:hover {
    background: #EFF6FF;
    border-color: #2563EB;
    gap: 0.75rem;
}

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

.page-journey .interest-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform var(--transition-base);
}

.page-journey .interest-card:hover {
    transform: translateY(-3px);
}

.page-journey .interest-card__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    background-color: #F1F5F9;
}

.page-journey .interest-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.page-journey .interest-card:hover .interest-card__img {
    transform: scale(1.04);
}

.page-journey .interest-card__body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.page-journey .interest-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}

.page-journey .interest-card__icon--blue   { color: #2563EB; }
.page-journey .interest-card__icon--teal   { color: #0D9488; }
.page-journey .interest-card__icon--orange { color: #EA580C; }

.page-journey .interest-card__desc {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748B;
    margin: 0;
}

/* ── Section 6: CTA Section Spacing Override ─────────────── */
.page-journey .section--cta-banner {
    padding-block: calc(2rem * var(--section-scale)) calc(3.5rem * var(--section-scale));
    background-color: #FFFFFF;
}

.page-journey .cta-banner {
    border-radius: 20px;
    padding: 3.5rem 3.25rem;
    background-size: cover;
    background-position: center right;
    overflow: hidden;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.page-journey .cta-banner__title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin-bottom: 0.75rem;
}

.page-journey .cta-banner__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.65rem;
    max-width: 460px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (TABLET & MOBILE BREAKPOINTS)
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    /* Page-scoped to match .page-journey .journey-hero__container (0,2,0).
       Unscoped it lost to the base rule and the hero never collapsed,
       pushing a fixed 420px column past the viewport on phones. */
    .page-journey .journey-hero__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .journey-hero__visual {
        justify-content: center;
    }

    .page-journey .values__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-journey .credentials-layout {
        grid-template-columns: 1fr;
    }

    .page-journey .interests-layout {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .about-preview__layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-preview__media {
        max-width: 380px;
        margin: 0 auto;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .services__grid,
    .projects__grid,
    .blog__grid,
    .values__grid,
    .page-journey .interests-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 2.5rem 1.75rem;
    }

    .cta-banner__overlay {
        background: rgba(239, 246, 255, 0.95);
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ══════════════════════════════════════════════════════════
   PHASE 7: MY WORK PAGE STYLES (.page-work)
   ══════════════════════════════════════════════════════════ */

/* ── Section 1: Work Hero ────────────────────────────────── */
.page-work .work-hero {
    background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
    padding-top: calc(var(--header-height) + calc(2.5rem * var(--section-scale)));   /* header height is never scaled */
    padding-bottom: calc(2.25rem * var(--section-scale));
    position: relative;
    overflow: hidden;
}

.page-work .work-hero__container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2.5rem;
}

.page-work .work-hero__content {
    max-width: 520px;
}

.page-work .work-hero__badge-wrap {
    margin-bottom: 0.85rem;
}

.page-work .work-hero__title {
    font-size: clamp(2.5rem, 3.5vw, 3.15rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #0F172A;
    margin-bottom: 1rem;
}

.page-work .work-hero__description {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 1.75rem;
    max-width: 470px;
}

.page-work .work-hero__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-work .work-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    text-decoration: none;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.page-work .work-hero__btn:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.page-work .work-hero__visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.page-work .work-hero__image-wrapper {
    position: relative;
    max-width: 530px;
    width: 100%;
}

.page-work .work-hero__photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ── Section 2: Category Filter Tabs & Projects Grid ─────── */
.page-work .section--projects-grid {
    background-color: #FFFFFF;
    padding-top: 1rem;
    padding-bottom: calc(3rem * var(--section-scale));
}

.page-work .work-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.page-work .work-filter-btn {
    appearance: none;
    border: none;
    background-color: #F1F5F9;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-work .work-filter-btn:hover {
    background-color: #E2E8F0;
    color: #0F172A;
}

.page-work .work-filter-btn.is-active {
    background-color: #2563EB;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.page-work .work-projects__grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.page-work .work-card{
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page-work .work-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.1);
}

.page-work .work-card.is-hidden{
    display: none !important;
}

.page-work .work-card__media{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    background-color: #F8FAFC;
    overflow: hidden;
}

.page-work .work-card__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.page-work .work-card:hover .work-card__img{
    transform: scale(1.04);
}

.page-work .work-card__category-badge{
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.page-work .work-card__category-badge--blue{ color: #2563EB; }
.page-work .work-card__category-badge--orange{ color: #EA580C; }
.page-work .work-card__category-badge--teal{ color: #0D9488; }
.page-work .work-card__category-badge--green{ color: #16A34A; }
.page-work .work-card__category-badge--purple{ color: #9333EA; }

.page-work .work-card__body{
    padding: 1.35rem 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-work .work-card__title{
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.page-work .work-card__title a{
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.page-work .work-card__title a:hover{
    color: var(--color-accent);
}

.page-work .work-card__desc{
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748B;
    margin-bottom: 1.15rem;
    flex-grow: 1;
}

.page-work .work-card__tags{
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.15rem;
}

.page-work .work-card__footer{
    padding-top: 0.85rem;
    border-top: 1px solid #F1F5F9;
}

.page-work .work-card__link{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.page-work .work-card__link:hover{
    gap: 0.65rem;
}

/* ── Section 3: Featured Case Study Showcase ─────────────── */
.page-work .section--featured-showcase {
    background-color: #FFFFFF;
    padding-top: 1rem;
    padding-bottom: calc(3rem * var(--section-scale));
}

.page-work .featured-showcase-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 2.75rem 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.page-work .featured-showcase-card__badge {
    margin-bottom: 0.85rem;
    display: inline-block;
}

.page-work .featured-showcase-card__title {
    font-size: clamp(1.5rem, 2.3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin-bottom: 0.85rem;
}

.page-work .featured-showcase-card__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.35rem;
    max-width: 520px;
}

.page-work .featured-showcase-card__tech-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 1.75rem;
}

.page-work .featured-tech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.page-work .featured-showcase-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.page-work .featured-showcase-card__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.page-work .btn--outline-dark {
    background-color: #FFFFFF;
    color: #0F172A;
    border: 1.5px solid #CBD5E1;
}

.page-work .btn--outline-dark:hover {
    background-color: #F8FAFC;
    border-color: #94A3B8;
}

.page-work .featured-showcase-card__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-work .featured-showcase-card__img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    display: block;
}

/* ── Section 4: Tools & Technologies ─────────────────────── */
.page-work .section--technologies {
    background-color: #FFFFFF;
    padding-top: calc(2rem * var(--section-scale));
    padding-bottom: calc(2.5rem * var(--section-scale));
}

.page-work .section--technologies .section-header {
    margin-bottom: 2rem;
}

.page-work .section--technologies .section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin-bottom: 0;
}

.page-work .tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-work .tech-item__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.55rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.page-work .tech-item:hover .tech-item__icon-wrap {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.page-work .tech-item__img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.page-work .tech-item__name {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.25;
}

/* ── Section 5: Project Impact (Metrics) ─────────────────── */
.page-work .section--impact {
    background-color: #FFFFFF;
    padding-top: 1.75rem;
    padding-bottom: calc(2.75rem * var(--section-scale));
}

.page-work .impact-header {
    margin-bottom: 1.25rem;
}

.page-work .impact__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.page-work .impact-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.65rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page-work .impact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.08);
}

.page-work .impact-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.page-work .impact-card__icon--teal   { background-color: #F0FDF4; color: #16A34A; }
.page-work .impact-card__icon--purple { background-color: #FAF5FF; color: #9333EA; }
.page-work .impact-card__icon--orange { background-color: #FFF7ED; color: #EA580C; }
.page-work .impact-card__icon--blue   { background-color: #EFF6FF; color: #2563EB; }

.page-work .impact-card__content {
    display: flex;
    flex-direction: column;
}

.page-work .impact-card__metric {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0F172A;
    line-height: 1.15;
    margin-bottom: 0.2rem;
}

.page-work .impact-card__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 0.15rem;
    line-height: 1.25;
}

.page-work .impact-card__desc {
    font-size: 0.6875rem;
    color: #64748B;
    line-height: 1.35;
    margin: 0;
}

/* ── Section 6: CTA Section Spacing Override ─────────────── */
.page-work .section--cta-banner {
    padding-block: calc(2rem * var(--section-scale)) calc(3.5rem * var(--section-scale));
    background-color: #FFFFFF;
}

.page-work .cta-banner {
    border-radius: 20px;
    padding: 3.5rem 3.25rem;
    background-size: cover;
    background-position: center right;
    overflow: hidden;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.page-work .cta-banner__title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin-bottom: 0.75rem;
}

.page-work .cta-banner__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.65rem;
    max-width: 460px;
}

/* ── Responsive rules for Work page ──────────────────────── */
@media (max-width: 1024px) {
    .page-work .work-hero__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .page-work .work-hero__visual {
        justify-content: center;
    }

    .page-work .work-projects__grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .page-work .featured-showcase-card {
        grid-template-columns: 1fr;
        padding: 2.5rem 2rem;
    }

    .page-work .impact__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-work .work-projects__grid{
        grid-template-columns: 1fr;
    }

    .page-work .impact__grid {
        grid-template-columns: 1fr;
    }

    .page-work .work-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .page-work .work-filter-btn {
        flex-shrink: 0;
    }
}

/* ══════════════════════════════════════════════════════════════════
   PAGE: BLOG (PHASE 8 IMPLEMENTATION)
   ══════════════════════════════════════════════════════════════════ */

.page-blog {
    background-color: #F8FAFC;
}

/* ── Section 1: Blog Hero ────────────────────────────────────────── */
.page-blog .section--blog-hero {
    padding-top: calc(48px * var(--section-scale));
    padding-bottom: 24px;
    background-color: #FFFFFF;
}

.page-blog .blog-hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.page-blog .blog-hero__content {
    flex: 1;
    max-width: 580px;
}

.page-blog .blog-hero__badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: #EFF6FF;
    color: #2563EB;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 12px;
}

.page-blog .blog-hero__heading {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.18;
    color: #0F172A;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.page-blog .blog-hero__heading .highlight-blue {
    color: #2563EB;
}

.page-blog .blog-hero__sub {
    font-size: 15px;
    line-height: 1.6;
    color: #64748B;
    max-width: 520px;
    margin: 0;
}

.page-blog .blog-hero__graphic {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.page-blog .blog-hero__img-wrap {
    position: relative;
    max-width: 480px;
    width: 100%;
}

.page-blog .blog-hero__img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.page-blog .blog-hero__sticky-note {
    position: absolute;
    top: 15px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #1E293B;
    transform: rotate(4deg);
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    pointer-events: none;
}

.page-blog .blog-hero__sticky-note .note-accent {
    color: #2563EB;
    font-weight: 700;
}

/* ── Section 2: Filter Pills ─────────────────────────────────────── */
.page-blog .section--blog-filters {
    padding-top: 24px;
    padding-bottom: 24px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #F1F5F9;
}

.page-blog .blog-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.page-blog .blog-filter-btn {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-blog .blog-filter-btn:hover {
    background-color: #F1F5F9;
    color: #0F172A;
    border-color: #CBD5E1;
}

.page-blog .blog-filter-btn.is-active {
    background-color: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* ── Section 3: Main Content (Grid + Sidebar) ───────────────────── */
.page-blog .section--blog-main {
    padding-top: calc(36px * var(--section-scale));
    padding-bottom: calc(48px * var(--section-scale));
    background-color: #F8FAFC;
}

.page-blog .blog-main__container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: flex-start;
}

/* 2-Column Blog Grid */
.page-blog .blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.page-blog .blog-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-blog .blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.08);
}

.page-blog .blog-card.is-hidden {
    display: none !important;
}

.page-blog .blog-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #F1F5F9;
    overflow: hidden;
}

.page-blog .blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-blog .blog-card:hover .blog-card__img {
    transform: scale(1.03);
}

.page-blog .blog-card__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.page-blog .blog-card__meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.page-blog .blog-card__badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.page-blog .blog-card__date {
    font-size: 11.5px;
    font-weight: 500;
    color: #94A3B8;
}

.page-blog .blog-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #0F172A;
    margin: 0 0 8px;
}

.page-blog .blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.page-blog .blog-card__title a:hover {
    color: #2563EB;
}

.page-blog .blog-card__excerpt {
    font-size: 13px;
    line-height: 1.55;
    color: #64748B;
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-blog .blog-card__footer {
    display: flex;
    align-items: center;
}

.page-blog .blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #2563EB;
    text-decoration: none;
    transition: gap 0.15s ease;
}

.page-blog .blog-card__link:hover {
    gap: 9px;
}

.page-blog .blog-card__link i {
    font-size: 11px;
}

/* Pagination */
.page-blog .blog-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.page-blog .blog-pagination__list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-blog .blog-pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.page-blog .blog-pagination__item:hover {
    border-color: #2563EB;
    color: #2563EB;
}

.page-blog .blog-pagination__item.is-active {
    background-color: #2563EB;
    border-color: #2563EB;
    color: #FFFFFF;
}

.page-blog .blog-pagination__ellipsis {
    color: #94A3B8;
    padding: 0 4px;
}

.page-blog .blog-pagination__arrow {
    color: #2563EB;
}

/* Sidebar Widgets */
.page-blog .blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.page-blog .blog-widget {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 20px 22px;
}

.page-blog .blog-widget__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.page-blog .blog-widget__icon {
    font-size: 15px;
    color: #2563EB;
}

.page-blog .blog-widget__icon--fire {
    color: #EA580C;
}

.page-blog .blog-widget__title {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

/* Widget 1: Search Form */
.page-blog .blog-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.page-blog .blog-search-input {
    width: 100%;
    height: 40px;
    padding: 0 44px 0 14px;
    font-size: 13px;
    color: #0F172A;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s ease;
}

.page-blog .blog-search-input:focus {
    border-color: #2563EB;
}

.page-blog .blog-search-btn {
    position: absolute;
    right: 3px;
    top: 3px;
    width: 34px;
    height: 34px;
    background-color: #2563EB;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background-color 0.15s ease;
}

.page-blog .blog-search-btn:hover {
    background-color: #1D4ED8;
}

/* Widget 2: Categories */
.page-blog .blog-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-blog .blog-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease;
}

.page-blog .blog-cat-link:hover,
.page-blog .blog-cat-link.is-active {
    color: #2563EB;
}

.page-blog .blog-cat-link__label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-blog .blog-cat-link__label i {
    font-size: 9px;
    color: #94A3B8;
}

.page-blog .blog-cat-link.is-active .blog-cat-link__label i {
    color: #2563EB;
}

.page-blog .blog-cat-link__count {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
    background-color: #F1F5F9;
    padding: 1px 7px;
    border-radius: 10px;
}

.page-blog .blog-cat-link.is-active .blog-cat-link__count {
    background-color: #EFF6FF;
    color: #2563EB;
}

/* Widget 3: Popular Posts */
.page-blog .blog-popular-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.page-blog .blog-pop-item__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    group: hover;
}

.page-blog .blog-pop-item__thumb {
    width: 52px;
    height: 38px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #F1F5F9;
    flex-shrink: 0;
}

.page-blog .blog-pop-item__content {
    flex: 1;
    min-width: 0;
}

.page-blog .blog-pop-item__title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #1E293B;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.page-blog .blog-pop-item__link:hover .blog-pop-item__title {
    color: #2563EB;
}

.page-blog .blog-pop-item__date {
    font-size: 11px;
    color: #94A3B8;
    display: block;
}

/* Widget 4: Tags Cloud */
.page-blog .blog-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.page-blog .blog-tag-pill {
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 500;
    color: #2563EB;
    background-color: #EFF6FF;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.page-blog .blog-tag-pill:hover {
    background-color: #2563EB;
    color: #FFFFFF;
}

/* ── Section 4: Subscribe Banner ─────────────────────────────────── */


/* Responsive adjustments for Blog */
@media (max-width: 991px) {
    .page-blog .blog-hero__container {
        flex-direction: column;
        text-align: center;
    }
    .page-blog .blog-hero__content {
        max-width: 100%;
    }
    .page-blog .blog-hero__sub {
        margin: 0 auto;
    }
    .page-blog .blog-hero__graphic {
        justify-content: center;
    }
    .page-blog .blog-main__container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-blog .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════════
   PAGE: CONTACT (PHASE 9 IMPLEMENTATION)
   ══════════════════════════════════════════════════════════════════ */

.page-contact {
    background-color: #F8FAFC;
}

/* ── Section 1: Contact Hero ─────────────────────────────────────── */
.page-contact .section--contact-hero {
    padding-top: calc(48px * var(--section-scale));
    padding-bottom: calc(32px * var(--section-scale));
    background-color: #FFFFFF;
}

.page-contact .contact-hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.page-contact .contact-hero__content {
    flex: 1;
    max-width: 580px;
}

.page-contact .contact-hero__badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: #EFF6FF;
    color: #2563EB;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 12px;
}

.page-contact .contact-hero__heading {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.18;
    color: #0F172A;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.page-contact .contact-hero__heading .highlight-blue {
    color: #2563EB;
}

.page-contact .contact-hero__sub {
    font-size: 14.5px;
    line-height: 1.6;
    color: #64748B;
    margin-bottom: 24px;
}

.page-contact .contact-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.page-contact .contact-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.page-contact .contact-chip__icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.page-contact .contact-chip__icon--blue {
    background-color: #EFF6FF;
    color: #2563EB;
}

.page-contact .contact-chip__icon--teal {
    background-color: #F0FDFA;
    color: #0D9488;
}

.page-contact .contact-chip__icon--orange {
    background-color: #FFF7ED;
    color: #EA580C;
}

.page-contact .contact-chip__text {
    display: flex;
    flex-direction: column;
}

.page-contact .contact-chip__text strong {
    font-size: 12.5px;
    font-weight: 700;
    color: #0F172A;
}

.page-contact .contact-chip__text span {
    font-size: 11px;
    color: #64748B;
}

.page-contact .contact-hero__graphic {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.page-contact .contact-hero__img-wrap {
    position: relative;
    max-width: 460px;
    width: 100%;
}

.page-contact .contact-hero__img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.page-contact .contact-hero__sticky-note {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #1E293B;
    transform: rotate(4deg);
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    pointer-events: none;
}

.page-contact .contact-hero__sticky-note .note-accent {
    color: #2563EB;
    font-weight: 700;
}

/* ── Section 2: Main Contact Grid ────────────────────────────────── */
.page-contact .section--contact-main {
    padding: calc(48px * var(--section-scale)) 0;
}

.page-contact .contact-main__grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 40px;
    align-items: flex-start;
}

.page-contact .contact-col-title {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.page-contact .contact-col-sub {
    font-size: 13.5px;
    line-height: 1.55;
    color: #64748B;
    margin: 0 0 24px;
}

/* Contact Cards */
.page-contact .contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.page-contact .contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-contact .contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.08);
}

.page-contact .contact-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.page-contact .contact-card__icon--blue {
    background-color: #EFF6FF;
    color: #2563EB;
}

.page-contact .contact-card__icon--green {
    background-color: #ECFDF5;
    color: #059669;
}

.page-contact .contact-card__icon--red {
    background-color: #FEF2F2;
    color: #DC2626;
}

.page-contact .contact-card__icon--linkedin {
    background-color: #EFF6FF;
    color: #0A66C2;
}

.page-contact .contact-card__icon--github {
    background-color: #F1F5F9;
    color: #0F172A;
}

.page-contact .contact-card__content {
    display: flex;
    flex-direction: column;
}

.page-contact .contact-card__label {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.page-contact .contact-card__value {
    font-size: 14.5px;
    font-weight: 700;
    color: #0F172A;
    text-decoration: none;
    margin-bottom: 2px;
    transition: color 0.15s ease;
}

.page-contact .contact-card__value:hover {
    color: #2563EB;
}

.page-contact .contact-card__note {
    font-size: 12px;
    color: #94A3B8;
}

/* Contact Form */
.page-contact .contact-form-col {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.page-contact .contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-contact .form-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.page-contact .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-contact .form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

.page-contact .form-label .required {
    color: #DC2626;
}

.page-contact .form-control {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    font-size: 13.5px;
    color: #0F172A;
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-contact textarea.form-control {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}

.page-contact .form-control:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.page-contact .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    cursor: pointer;
}

.page-contact .field-error {
    font-size: 12px;
    color: #DC2626;
    min-height: 16px;
}

.page-contact .has-error .form-control {
    border-color: #DC2626;
}

/* Alert Boxes */
.page-contact .contact-feedback {
    margin-bottom: 18px;
}

.page-contact .alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
}

.page-contact .alert--success {
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.page-contact .alert--error {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Recaptcha simulator box */
.page-contact .form-recaptcha {
    margin-top: 4px;
}

.page-contact .recaptcha-box {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background-color: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 10px 14px;
    min-width: 260px;
}

.page-contact .recaptcha-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.page-contact .recaptcha-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #2563EB;
    cursor: pointer;
}

.page-contact .recaptcha-text {
    font-size: 13px;
    color: #1E293B;
    font-weight: 500;
}

.page-contact .recaptcha-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 9px;
    color: #64748B;
}

.page-contact .recaptcha-badge i {
    font-size: 16px;
    color: #2563EB;
    margin-bottom: 2px;
}

.page-contact .recaptcha-brand {
    font-size: 8px;
    font-weight: 700;
}

.page-contact .recaptcha-links {
    font-size: 7.5px;
    color: #94A3B8;
}

/* Submit Button */
.page-contact .form-submit .btn--block {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    background-color: #2563EB;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.page-contact .form-submit .btn--block:hover {
    background-color: #1D4ED8;
}

/* ── Section 3: Map & FAQ Accordion ──────────────────────────────── */
.page-contact .section--contact-map-faq {
    padding: calc(40px * var(--section-scale)) 0;
    border-top: 1px solid #E2E8F0;
    background-color: #FFFFFF;
}

.page-contact .contact-lower__grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 40px;
    align-items: flex-start;
}

.page-contact .contact-lower-title {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 4px;
}

.page-contact .contact-lower-sub {
    font-size: 13px;
    color: #64748B;
    margin: 0 0 16px;
}

.page-contact .contact-map-wrapper {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.page-contact .contact-map-img {
    width: 100%;
    height: auto;
    display: block;
}

/* FAQ Accordion */
.page-contact .faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-contact .faq-item {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.page-contact .faq-item.is-open {
    border-color: #CBD5E1;
}

.page-contact .faq-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.page-contact .faq-question {
    font-size: 13.5px;
    font-weight: 600;
    color: #1E293B;
}

.page-contact .faq-icon {
    font-size: 12px;
    color: #2563EB;
    transition: transform 0.2s ease;
}

.page-contact .faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.page-contact .faq-body {
    padding: 0 18px 14px;
}

.page-contact .faq-answer {
    font-size: 13px;
    line-height: 1.6;
    color: #64748B;
    margin: 0;
}

/* ── Section 4: Mountain CTA Banner ──────────────────────────────── */


/* Responsive adjustments */
@media (max-width: 991px) {
    .page-contact .contact-hero__container {
        flex-direction: column;
        text-align: center;
    }
    .page-contact .contact-hero__chips {
        justify-content: center;
    }
    .page-contact .contact-main__grid,
    .page-contact .contact-lower__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-contact .form-row--2 {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════
   DETAIL PAGES — Project Case Study & Blog Article
   Built to the approved detail-page mockups. Shared by:
     pages/project-detail.php  (/work/{slug})
     pages/blog-post.php       (/blog/{slug})
   ══════════════════════════════════════════════════════════ */

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb { padding: 1.5rem 0 0; }

.breadcrumb__list {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    margin: 0; padding: 0; list-style: none;
    font-size: .8125rem; color: #64748B;
}
.breadcrumb__list li + li::before {
    content: '\203A'; margin-right: .5rem; color: #94A3B8;
}
.breadcrumb__list a { color: #64748B; text-decoration: none; }
.breadcrumb__list a:hover { color: var(--color-accent); }
.breadcrumb__list li[aria-current='page'] { color: #0F172A; font-weight: 500; }

/* ── Detail hero ────────────────────────────────────────── */
.dhero {
    background: linear-gradient(135deg, #EEF4FF 0%, #F7FAFF 55%, #FFFFFF 100%);
    padding-bottom: calc(2.5rem * var(--section-scale));
    overflow: hidden;
}

.dhero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding-top: 1.5rem;
}

.dhero__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }

.dhero__title {
    font-size: 2.75rem; line-height: 1.12; font-weight: 700;
    letter-spacing: -.025em; color: #0F172A; margin: 0 0 1rem;
}

.dhero__title .text-accent { color: var(--color-accent); }

.dhero__lead {
    font-size: 1rem; line-height: 1.75; color: #475569;
    margin: 0 0 1.5rem; max-width: 56ch;
}

.dhero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }

.dhero__media {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15,23,42,.14);
}
.dhero__media img { display: block; width: 100%; height: auto; }

/* Hero meta row */
.dmeta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
    margin: 0; padding: 0; list-style: none;
    font-size: .8125rem; color: #64748B;
}
.dmeta li { display: inline-flex; align-items: center; gap: .45rem; }
.dmeta i { color: #94A3B8; }

/* Dark button variant (mockup "View Live Demo") */
.btn--dark {
    background-color: #0F2A4A;
    border-color: #0F2A4A;
    color: #FFFFFF;
}
.btn--dark:hover { background-color: #15395F; border-color: #15395F; }

/* ── Two-column layout ──────────────────────────────────── */
.dbody { padding: 2.5rem 0 3.5rem; }

.dlayout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
    align-items: start;
}

.dmain { min-width: 0; }

/* ── Numbered sections ──────────────────────────────────── */
.sec { position: relative; padding-left: 1rem; margin-bottom: 2.25rem; }

.sec::before {
    content: ''; position: absolute; left: 0; top: .25rem;
    width: 3px; height: 1.4rem;
    background: var(--color-accent); border-radius: 2px;
}

.sec__title {
    font-size: 1.3125rem; font-weight: 700; color: #0F172A;
    margin: 0 0 .6rem; letter-spacing: -.01em;
}
.sec__num { color: #0F172A; }

.sec__text {
    font-size: .9375rem; line-height: 1.8; color: #475569; margin: 0 0 .9rem;
}

/* ── Callouts ───────────────────────────────────────────── */
.callout {
    display: flex; gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 12px;
    margin-top: .5rem;
}
.callout--blue  { background: #EFF6FF; }
.callout--red   { background: #FEF2F2; }
.callout--green { background: #F0FDF4; }

.callout__icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: #FFFFFF;
    font-size: 1rem;
}
.callout--blue  .callout__icon { color: #2563EB; }
.callout--red   .callout__icon { color: #DC2626; }
.callout--green .callout__icon { color: #16A34A; }

.callout__body { min-width: 0; }

.callout__title {
    font-size: .9375rem; font-weight: 700; color: #0F172A; margin: 0 0 .35rem;
}

.callout__body p { font-size: .875rem; line-height: 1.7; color: #475569; margin: 0 0 .4rem; }

.callout__list {
    margin: 0; padding-left: 1.1rem;
    columns: 2; column-gap: 2rem;
    font-size: .875rem; line-height: 1.75; color: #475569;
}
.callout__list li { break-inside: avoid; }

/* ── Methodology steps ──────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem; margin: .75rem 0 0; padding: 0; list-style: none;
}
.step {
    border: 1px solid #E2E8F0; border-radius: 12px;
    padding: .9rem 1rem; background: #FFFFFF;
}
.step__num {
    display: inline-grid; place-items: center;
    width: 26px; height: 26px; margin-bottom: .5rem;
    border-radius: 7px; background: #2563EB; color: #FFFFFF;
    font-size: .6875rem; font-weight: 700;
}
.step__text { display: block; font-size: .875rem; line-height: 1.55; color: #334155; font-weight: 500; }

/* ── Gallery ────────────────────────────────────────────── */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .85rem; margin-top: .75rem;
}
.gallery__item {
    margin: 0; border: 1px solid #E2E8F0; border-radius: 12px;
    overflow: hidden; background: #F8FAFC;
}
.gallery__item img { display: block; width: 100%; height: auto; }

/* ── Sidebar cards ──────────────────────────────────────── */
.daside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1rem; }

.scard {
    background: #FFFFFF; border: 1px solid #E2E8F0;
    border-radius: 14px; padding: 1.15rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.scard__title {
    font-size: 1rem; font-weight: 700; color: #0F172A;
    margin: 0 0 .85rem;
}

.scard__row {
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem; padding: .55rem 0;
    border-top: 1px solid #F1F5F9;
    font-size: .8125rem;
}
.scard__row:first-of-type { border-top: 0; }

.scard__key { display: inline-flex; align-items: center; gap: .5rem; color: #64748B; }
.scard__key i { color: #94A3B8; width: 14px; text-align: center; }
.scard__val { color: #0F172A; font-weight: 500; text-align: right; }

.scard__tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.chip {
    display: inline-block; padding: .25rem .6rem;
    border-radius: 7px; background: #F1F5F9; color: #475569;
    font-size: .75rem; font-weight: 500; white-space: nowrap;
}
.chip--blue  { background: #EFF6FF; color: #2563EB; }
.chip--green { background: #DCFCE7; color: #166534; }
.chip--sm    { font-size: .6875rem; padding: .15rem .45rem; }

/* Sidebar links */
.slink {
    display: flex; align-items: center; gap: .7rem;
    padding: .65rem 0; border-top: 1px solid #F1F5F9;
    text-decoration: none;
}
.slink:first-of-type { border-top: 0; }
.slink__icon {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
    display: grid; place-items: center; background: #F1F5F9; color: #334155;
    font-size: .8125rem;
}
.slink__body { min-width: 0; flex: 1; }
.slink__title { display: block; font-size: .8125rem; font-weight: 600; color: #0F172A; }
.slink__url {
    display: block; font-size: .6875rem; color: #94A3B8;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.slink__arrow { color: #CBD5E1; font-size: .75rem; }
.slink:hover .slink__arrow { color: var(--color-accent); }

/* Sidebar related items */
.rel {
    display: flex; gap: .7rem; padding: .65rem 0;
    border-top: 1px solid #F1F5F9; text-decoration: none;
}
.rel:first-of-type { border-top: 0; }
.rel__img {
    width: 64px; height: 46px; object-fit: cover;
    border-radius: 8px; flex-shrink: 0;
}
.rel__body { min-width: 0; }
.rel__title {
    display: block; font-size: .8125rem; font-weight: 600;
    color: #0F172A; line-height: 1.35; margin-bottom: .3rem;
}
.rel:hover .rel__title { color: var(--color-accent); }
.rel__cats { display: flex; flex-wrap: wrap; gap: .25rem; }

.scard__more {
    display: block; text-align: right; margin-top: .75rem;
    font-size: .8125rem; font-weight: 600;
    color: var(--color-accent); text-decoration: none;
}

/* ── Split CTA (mockup layout) ──────────────────────────── */

.cta-banner__eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .08em;
    color: #1E3A8A; margin-bottom: .6rem;
}
.cta-banner__eyebrow::before {
    content: ''; width: 28px; height: 2px; background: #2563EB; border-radius: 2px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1023px) {
    .dlayout { grid-template-columns: 1fr; gap: 2rem; }
    .daside  { position: static; }
    .dhero__grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .dhero__title { font-size: 2.1rem; }
    .callout__list { columns: 1; }
}

@media (max-width: 639px) {
    .dhero__title { font-size: 1.7rem; }
    .dhero__actions .btn { width: 100%; justify-content: center; }
    .dmeta { gap: .85rem 1rem; }
}

/* ── Blog article: body, author, prev/next, sidebar widgets ─ */
.article-body { font-size: .9375rem; line-height: 1.85; color: #475569; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.15rem; }

/* Numbered headings in article content get the same blue rule as case studies */
.article-body h2 {
    position: relative; padding-left: 1rem;
    font-size: 1.3125rem; font-weight: 700; color: #0F172A;
    margin: 2rem 0 .6rem; letter-spacing: -.01em;
}
.article-body h2::before {
    content: ''; position: absolute; left: 0; top: .25rem;
    width: 3px; height: 1.4rem; background: var(--color-accent); border-radius: 2px;
}
.article-body h3 { font-size: 1.0625rem; font-weight: 600; color: #0F172A; margin: 1.6rem 0 .5rem; }
.article-body ul, .article-body ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
.article-body li { margin-bottom: .4rem; }
.article-body a { color: var(--color-accent); }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.25rem 0; }
.article-body blockquote {
    margin: 1.25rem 0; padding: .8rem 1.15rem;
    border-left: 3px solid var(--color-accent);
    background: #F8FAFC; border-radius: 0 8px 8px 0; color: #334155;
}
.article-body pre {
    background: #0F172A; color: #E2E8F0; padding: 1rem 1.15rem;
    border-radius: 10px; overflow-x: auto; margin: 0 0 1.15rem;
    font-size: .8125rem; line-height: 1.6;
}
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.article-body :not(pre) > code {
    background: #F1F5F9; color: #B91C1C; padding: .12em .38em; border-radius: 4px;
}

.article-empty {
    padding: 1rem 1.15rem; border: 1px dashed #E2E8F0; border-radius: 10px;
    background: #F8FAFC; color: #64748B;
}

.article-tags {
    display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
    margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #E2E8F0;
}
.article-tags i { color: #94A3B8; }
.article-tags__label { font-size: .8125rem; font-weight: 600; color: #334155; margin-right: .25rem; }
a.chip { text-decoration: none; }
a.chip:hover { background: #DBEAFE; color: #1D4ED8; }

/* Author box */
.author {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-top: 1.75rem; padding: 1.15rem 1.25rem;
    border: 1px solid #E2E8F0; border-radius: 14px; background: #FFFFFF;
}
.author__img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author__body { flex: 1; min-width: 0; }
.author__name { font-size: .9375rem; font-weight: 700; color: #0F172A; margin: 0 0 .3rem; }
.author__bio { font-size: .8125rem; line-height: 1.65; color: #64748B; margin: 0; }
.author__social { display: flex; gap: .4rem; flex-shrink: 0; }
.author__social a {
    width: 30px; height: 30px; border-radius: 7px;
    display: grid; place-items: center;
    background: #F1F5F9; color: #334155; font-size: .8125rem; text-decoration: none;
}
.author__social a:hover { background: var(--color-accent); color: #FFFFFF; }

/* Prev / next */
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.pnav__item {
    display: flex; align-items: center; gap: .7rem;
    padding: .8rem 1rem; border: 1px solid #E2E8F0; border-radius: 12px;
    text-decoration: none; background: #FFFFFF;
    transition: border-color .15s, box-shadow .15s;
}
.pnav__item:hover { border-color: var(--color-accent); box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.pnav__item--next { grid-column: 2; text-align: right; }
.pnav__arrow { color: #94A3B8; flex-shrink: 0; }
.pnav__img { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.pnav__body { min-width: 0; flex: 1; }
.pnav__dir { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .05em; color: var(--color-accent); margin-bottom: .2rem; }
.pnav__title { display: block; font-size: .8125rem; font-weight: 600; color: #0F172A; line-height: 1.4; }

/* Sidebar widgets */
.sidesearch { display: flex; gap: .4rem; }
.sidesearch__input {
    flex: 1; min-width: 0; padding: .55rem .7rem;
    border: 1px solid #D1D5DB; border-radius: 8px;
    font-family: inherit; font-size: .8125rem; color: #0F172A;
}
.sidesearch__input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.sidesearch__btn {
    flex-shrink: 0; width: 38px; border: 0; border-radius: 8px;
    background: var(--color-accent); color: #FFFFFF; cursor: pointer;
}
.sidesearch__btn:hover { background: #1D4ED8; }

.catrow {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .5rem .6rem; border-radius: 8px;
    font-size: .8125rem; color: #475569; text-decoration: none;
}
.catrow i { color: #94A3B8; width: 14px; font-size: .75rem; }
.catrow:hover { background: #F8FAFC; color: #0F172A; }
.catrow--all { background: #EFF6FF; color: #1D4ED8; font-weight: 600; }
.catrow--all i { color: #2563EB; }
.catrow__count {
    font-size: .6875rem; font-weight: 600; color: #64748B;
    background: #F1F5F9; border-radius: 999px; padding: .1rem .45rem;
}
.catrow--all .catrow__count { background: #DBEAFE; color: #1D4ED8; }

.rel__date { display: block; font-size: .6875rem; color: #94A3B8; margin-top: .15rem; }

.scard--news { background: #F5F9FF; border-color: #DBEAFE; }
.news__icon {
    width: 38px; height: 38px; border-radius: 10px; margin-bottom: .6rem;
    display: grid; place-items: center; background: #2563EB; color: #FFFFFF;
}
.news__text { font-size: .8125rem; line-height: 1.6; color: #475569; margin: 0 0 .75rem; }
.news__form { display: flex; flex-direction: column; gap: .5rem; }
.news__btn { width: 100%; justify-content: center; }

@media (max-width: 639px) {
    .pnav { grid-template-columns: 1fr; }
    .pnav__item--next { grid-column: 1; text-align: left; }
    .author { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════════════════
   JUSTIFIED BODY COPY
   Multi-line descriptive paragraphs are justified site-wide.
   Short labels, captions, bylines and the footer bottom bar are
   deliberately excluded — justifying a one-line string just
   stretches it edge to edge.
   ══════════════════════════════════════════════════════════ */
.hero__description,
.journey-hero__description,
.work-hero__description,
.blog-hero__sub,
.contact-hero__sub,
.section-subtitle,
.about-preview__text,
.service-card__desc,
.value-card__desc,
.jtl__panel-desc,
.interest-card__desc,
.interests-desc,
.feature-item__desc,
.impact-card__desc,
.project-card__desc,
.work-card__desc,
.blog-card__excerpt,
.featured-showcase-card__desc,
.cta-banner__desc,
.contact-cta__sub,
.contact-col-sub,
.contact-lower-sub,
.dhero__lead,
.sec__text,
.detail-block__text,
.callout__body p,
.faq-answer,
.author__bio,
.news__text,
.subscribe__text,
.subscribe__sub,
.footer__description,
.footer__tagline-text,
.article-body p {
    text-align: justify;
    text-justify: inter-word;
}

/* Narrow columns suffer most from large word gaps, so allow
   hyphenation inside cards and sidebars only. */
.work-card__desc,
.project-card__desc,
.blog-card__excerpt,
.service-card__desc,
.value-card__desc,
.jtl__panel-desc,
.interest-card__desc,
.feature-item__desc,
.impact-card__desc,
.author__bio,
.news__text {
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Only explicitly centred headers keep their centring. */
.section-header--center .section-subtitle,
.section-header--center .section-title {
    text-align: center;
}

/* ══════════════════════════════════════════════════════════
   FULL-BLEED CTA BAND
   300px tall, edge to edge, with no gap above or below so it
   butts directly against the preceding section and the footer.
   Content stays aligned with the page's 1200px content column.
   ══════════════════════════════════════════════════════════ */
/* Doubled class (0,2,0) on purpose: responsive.css loads after this
   file, so a plain .section--cta-banner (0,1,0) loses to its
   `.section` padding rule at >=1024px. Listing page classes instead
   only fixed the pages that happened to be listed — blog, contact
   and article pages kept a gap above the footer. This one selector
   covers every page, including any added later. */
.section.section--cta-banner {
    padding-block: 0;
    background-color: transparent;
}

/* Let the banner escape the centred container */
.section.section--cta-banner > .container {
    max-width: none;
    padding-inline: 0;
}

.cta-banner,
.cta-banner--split {
    height: 300px;
    min-height: 300px;
    border-radius: 0;
    box-shadow: none;
    background-size: cover;
    background-position: center;
    /* Content lines up with the 1200px column; background stays full width */
    padding: 0 max(1.5rem, calc((100% - var(--container-max)) / 2));
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Non-split banners (Home, Journey, Work): single centred content block */
.cta-banner .cta-banner__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

/* Split banner (project detail): text left, buttons right */


/* The light wash keeps the text readable over the photo */
.cta-banner__overlay {
    background: linear-gradient(90deg,
        rgba(239, 246, 255, 0.97) 0%,
        rgba(239, 246, 255, 0.90) 45%,
        rgba(239, 246, 255, 0.35) 75%,
        rgba(239, 246, 255, 0.05) 100%);
}

.cta-banner__title { margin-bottom: 0.5rem; }
.cta-banner__desc  { margin-bottom: 1rem; }

@media (max-width: 900px) {
    .cta-banner,
    .cta-banner--split {
        height: auto;
        min-height: 300px;
        padding-block: 2rem;
    }
    .cta-banner__overlay {
        background: rgba(239, 246, 255, 0.93);
    }
}

/* Contact's CTA matches the full-bleed band used on every other page */


/* Readability wash over the photo */

@media (max-width: 900px) {
}

/* ── CTA band refinements ───────────────────────────────── */
/* Page-scoped selectors are included because .page-work / .page-journey
   define their own .cta-banner rules at higher specificity. */
.cta-banner,
.cta-banner--split,
.page-home .cta-banner,
.page-journey .cta-banner,
.page-work .cta-banner,
.page-project-detail .cta-banner,
.page-project-detail .cta-banner--split {
    height: 250px;
    min-height: 250px;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    /* Align the text with the content column AND its gutter, so the CTA
       copy lines up with the section text above it. */
    padding: 0 max(var(--container-gutter),
                   calc((100% - var(--container-max)) / 2 + var(--container-gutter)));
    /* Keep the hiker's head in frame: the photo is much taller than the
       band, so bias the crop upward instead of centring it. */
    background-position: center 22%;
}


/* Slightly smaller type in the band */
.cta-banner__title,
.page-journey .cta-banner__title,
.page-work .cta-banner__title {
    font-size: clamp(1.3rem, 2.1vw, 1.75rem);
}

.cta-banner__desc,
.page-journey .cta-banner__desc,
.page-work .cta-banner__desc {
    font-size: 0.8125rem;
    margin-bottom: 1.1rem;
}

.cta-banner__eyebrow {
    font-size: 0.6875rem;
}


@media (max-width: 900px) {
    .cta-banner,
    .cta-banner--split,
    .page-contact .section--contact-cta {
        height: auto;
        min-height: 250px;
    }
}

/* ── Footer brand: compact social icon row ──────────────── */
.footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.footer__social-link {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}

.footer__social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.footer__social-link:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

/* ── Footer: Explore column (recent articles + work) ────── */
.footer__sublabel {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748B;
    margin: 0 0 0.45rem;
}

.footer__sublabel:not(:first-of-type) {
    margin-top: 1.1rem;
}

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

.footer__list--explore li + li {
    margin-top: 0.35rem;
}

.footer__list--explore a {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #CBD5E1;
    text-decoration: none;
    transition: color .15s;
}

.footer__list--explore a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Location kept visible under the social icons */
.footer__location-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: #94A3B8;
    text-align: left;
}

.footer__location-line i { color: var(--color-accent); }

/* Footer: the two discovery columns sit side by side */
.footer__col--articles .footer__list--explore li + li,
.footer__col--work .footer__list--explore li + li {
    margin-top: 0.6rem;
}

.footer__empty-note {
    font-size: 0.8125rem;
    color: #64748B;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════
   FOOTER — minimal centred
   Deliberately short: the CTA band directly above carries the
   call to action, so the footer only needs to close the page.
   ══════════════════════════════════════════════════════════ */
.site-footer--minimal {
    background: #0B1220;
    color: #CBD5E1;
    text-align: center;
    /* Override the old footer's outer padding — the minimal footer
       controls its own spacing entirely. */
    padding-top: 0;
    padding-bottom: 0;
}

.footer-min {
    padding: 1.1rem 0 0.9rem;
}

/* Brand sits on a single line to keep the footer short */
.footer-min__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-min__mono {
    display: block;
    flex-shrink: 0;
}

.footer-min__name {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.footer-min__sub {
    font-size: 0.75rem;
    color: #94A3B8;
    padding-left: 0.6rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-min__nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 1.75rem;
    list-style: none;
    margin: 0 0 0.7rem;
    padding: 0;
}

.footer-min__nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #CBD5E1;
    text-decoration: none;
    transition: color .15s;
}

.footer-min__nav a:hover { color: #FFFFFF; }

.footer-min__social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-min__social a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}

.footer-min__social a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.footer-min__social a:focus-visible,
.footer-min__nav a:focus-visible,
.footer-min__brand:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

.footer-min__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.55rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 1.25rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #64748B;
}

.footer-min__loc i { color: var(--color-accent); margin-right: 0.25rem; }

@media (max-width: 560px) {
    .footer-min__nav ul { gap: 0.35rem 1rem; }
    .footer-min__sub {
        border-left: 0;
        padding-left: 0;
        flex-basis: 100%;
    }
}

/* ══════════════════════════════════════════════════════════
   FOOTER — single dark bar
   Logo tile left, inline nav centre, outlined icon buttons right,
   hairline rule above a slim copyright row.
   ══════════════════════════════════════════════════════════ */
.site-footer--bar {
    background: #0B1220;
    color: #CBD5E1;
    padding-top: 0;
    padding-bottom: 0;
    text-align: left;
}

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.35rem 0;
}

/* ── Brand: white tile + name + letterspaced tagline ── */
.footer-bar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
    text-decoration: none;
    flex-shrink: 0;
}

.footer-bar__tile {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    background: #FFFFFF;
    flex-shrink: 0;
}

.footer-bar__text { display: flex; flex-direction: column; }

.footer-bar__name {
    font-size: 1.1875rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.footer-bar__tagline {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94A3B8;
    margin-top: 0.3rem;
}

/* ── Inline nav ── */
.footer-bar__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.85rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bar__nav a {
    font-size: 0.9375rem;
    color: #CBD5E1;
    text-decoration: none;
    transition: color .15s;
}

.footer-bar__nav a:hover { color: #FFFFFF; }

/* ── Outlined icon buttons ── */
.footer-bar__actions {
    display: flex;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.footer-bar__actions a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: transparent;
    color: #60A5FA;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s;
}

.footer-bar__actions a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
}

.footer-bar__actions a:focus-visible,
.footer-bar__nav a:focus-visible,
.footer-bar__brand:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

/* ── Hairline rule + copyright row ── */
.footer-bar__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 1.25rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #64748B;
}

.footer-bar__loc i { color: var(--color-accent); margin-right: 0.25rem; }

@media (max-width: 900px) {
    .footer-bar {
        justify-content: center;
        text-align: center;
        gap: 1.25rem;
    }
    .footer-bar__nav ul { justify-content: center; }
    .footer-bar__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
    .footer-bar__tile { width: 76px; height: 76px; }
    .footer-bar__nav ul { gap: 0.5rem 1.1rem; }
    .footer-bar__nav a { font-size: 0.875rem; }
}

/* ══════════════════════════════════════════════════════════
   IMAGE INTERACTION SYSTEM
   One shared easing and three deliberate behaviours:
     1. Card media  — slow zoom inside a clipped frame
     2. Feature art — lift with a deepening shadow
     3. Thumbnails  — gentle scale + brightness
   All motion is cancelled by the global prefers-reduced-motion
   rule in base.css, so nothing moves for users who opt out.
   ══════════════════════════════════════════════════════════ */

:root {
    --img-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── 1. Card media: clipped frame, image zooms within it ── */
.work-card__media,
.project-card__media,
.blog-card__media,
.interest-card__media,
.gallery__item,
.dhero__media,
.about-preview__media {
    overflow: hidden;
    position: relative;
}

.work-card__img,
.project-card__img,
.blog-card__img,
.interest-card__img,
.gallery__item img {
    display: block;
    width: 100%;
    transition: transform 0.6s var(--img-ease), filter 0.4s var(--img-ease);
    will-change: transform;
}

.work-card:hover .work-card__img,
.page-work .work-card:hover .work-card__img,
.project-card:hover .project-card__img,
.blog-card:hover .blog-card__img,
.page-blog .blog-card:hover .blog-card__img,
.interest-card:hover .interest-card__img,
.page-journey .interest-card:hover .interest-card__img,
.gallery__item:hover img {
    transform: scale(1.06);
}

/* A soft wash sweeps over card media on hover */
.work-card__media::after,
.project-card__media::after,
.blog-card__media::after,
.interest-card__media::after,
.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.16) 0%,
        rgba(37, 99, 235, 0) 55%);
    opacity: 0;
    transition: opacity 0.4s var(--img-ease);
    pointer-events: none;
}

.work-card:hover .work-card__media::after,
.project-card:hover .project-card__media::after,
.blog-card:hover .blog-card__media::after,
.interest-card:hover .interest-card__media::after,
.gallery__item:hover::after {
    opacity: 1;
}

/* ── 2. Feature art: lifts off the page ── */
.about-preview__img,
.dhero__media img,
.featured-showcase-card__img,
.hero__photo,
.journey-hero__photo,
.work-hero__photo,
.blog-hero__img,
.contact-hero__img {
    transition: transform 0.45s var(--img-ease), box-shadow 0.45s var(--img-ease);
    will-change: transform;
}

.about-preview__img:hover,
.dhero__media:hover img,
.featured-showcase-card__img:hover,
.hero__photo:hover,
.journey-hero__photo:hover,
.work-hero__photo:hover,
.blog-hero__img:hover,
.contact-hero__img:hover {
    transform: translateY(-6px) scale(1.012);
    box-shadow: 0 22px 46px -12px rgba(15, 23, 42, 0.26);
}

/* ── 3. Thumbnails: subtle scale + brightening ── */
.rel__img,
.pnav__img,
.admin-thumb img {
    transition: transform 0.35s var(--img-ease), filter 0.35s var(--img-ease);
}

.rel:hover .rel__img,
.pnav__item:hover .pnav__img {
    transform: scale(1.07);
    filter: brightness(1.08);
}

/* Technology icons get a light springy lift */
.tech-item__img {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-item:hover .tech-item__img {
    transform: translateY(-5px) scale(1.08);
}

/* Keyboard users get the same feedback as pointer users */
.work-card:focus-within .work-card__img,
.blog-card:focus-within .blog-card__img,
.interest-card:focus-within .interest-card__img {
    transform: scale(1.06);
}

/* ═══════════════════════════════════════════════════════════
   HERO PORTRAITS — showpiece hover
   The experience badge is baked into the artwork, so the whole
   image (badge included) lifts as one piece.
   ═══════════════════════════════════════════════════════════ */

.hero__photo:hover,
.journey-hero__photo:hover,
.work-hero__photo:hover,
.blog-hero__img:hover,
.contact-hero__img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -18px rgba(15, 23, 42, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   IMAGE LOADING — shimmer placeholder + blur-up reveal
   Classes are added by assets/js/modules/media.js. With JS off
   or on failure no class is ever added, so images render
   normally — the effect is strictly additive.
   ═══════════════════════════════════════════════════════════ */

@keyframes media-shimmer {
    0%   { background-position: -150% 0; }
    100% { background-position:  250% 0; }
}

.media-frame-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    background-color: #eef2f7;
    background-image: linear-gradient(100deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.75) 48%,
        rgba(255, 255, 255, 0) 76%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: media-shimmer 1.4s ease-in-out infinite;
}

.media-reveal {
    opacity: 0;
    transform: scale(1.04);
    filter: blur(10px);
    transition: opacity 0.7s var(--img-ease),
                transform 0.9s var(--img-ease),
                filter 0.7s var(--img-ease);
}

.media-reveal.is-loaded {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* ═══════════════════════════════════════════════════════════
   REMAINING CONTENT IMAGES
   Sidebar thumbnails, the contact map and the article author
   avatar, brought in line with the rest of the image system.
   ═══════════════════════════════════════════════════════════ */

/* Contact map — the embed is interactive, so no hover zoom here:
   scaling an iframe would fight the user's own panning. */
.contact-map-wrapper {
    position: relative;
}

/* Sidebar thumbnails and author avatar */
.blog-pop-item__thumb,
.author__img {
    transition: transform 0.35s var(--img-ease), filter 0.35s var(--img-ease);
}

.blog-pop-item__link:hover .blog-pop-item__thumb,
.page-blog .blog-pop-item__link:hover .blog-pop-item__thumb,
.author:hover .author__img {
    transform: scale(1.08);
    filter: brightness(1.06);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION LABELS — stronger type + layered hover
   Both layers are pseudo-elements inset OUTWARD from the link
   box, so nothing here changes the bar's measured width. That
   matters: the header is tight between 768px and 1119px.
   ═══════════════════════════════════════════════════════════ */

.nav__link {
    font-weight: 600;
    color: #1E293B;
    letter-spacing: 0.005em;
    isolation: isolate;              /* keeps the pill inside the link */
    transition: color 0.28s var(--img-ease),
                transform 0.28s var(--img-ease);
}

/* Layer 1 — a soft tinted pill springs in behind the label */
.nav__link::before {
    content: '';
    position: absolute;
    inset: -0.42em -0.6em;
    z-index: -1;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.11),
        rgba(37, 99, 235, 0.045));
    opacity: 0;
    transform: scale(0.86);
    pointer-events: none;
    transition: opacity 0.26s var(--img-ease),
                transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Layer 2 — a gradient underline wipes in from the left */
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2.5px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--color-accent), #60A5FA);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.34s var(--img-ease);
}

.nav__link:hover,
.nav__link:focus-visible {
    color: var(--color-accent);
    transform: translateY(-1px);
}

.nav__link:hover::before,
.nav__link:focus-visible::before {
    opacity: 1;
    transform: scale(1);
}

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

/* Current page stays underlined and reads heaviest */
.nav__link--active {
    color: var(--color-accent);
    font-weight: 700;
}

.nav__link--active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS — float up on hover
   Three families: full buttons lift 3px, small pills and icon
   buttons lift 2px. A few of these never had transform in
   their transition list, so it is restored alongside the
   properties they already animated.
   ═══════════════════════════════════════════════════════════ */

/* Make transform animatable where it was not already */
.blog-search-btn,
.page-blog .blog-search-btn {
    transition: background-color 0.15s ease,
                transform 0.22s var(--img-ease),
                box-shadow 0.22s var(--img-ease);
}

.sidesearch__btn {
    transition: background 0.15s ease,
                transform 0.22s var(--img-ease),
                box-shadow 0.22s var(--img-ease);
}

.footer-bar__actions a {
    transition: background-color 0.15s,
                color 0.15s,
                border-color 0.15s,
                transform 0.22s var(--img-ease),
                box-shadow 0.22s var(--img-ease);
}

/* ── Full buttons ── */
.btn:hover,
.page-journey .journey-hero__btn:hover,
.page-work .work-hero__btn:hover,
.page-blog .blog-search-btn:hover,
.page-blog .subscribe__btn:hover,
.page-contact .form-submit .btn--block:hover,
.sidesearch__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -8px rgba(15, 23, 42, 0.28);
}

/* ── Small pills, chips and icon buttons ── */
.work-filter-btn:hover,
.page-work .work-filter-btn:hover,
.blog-filter-btn:hover,
.page-blog .blog-filter-btn:hover,
.blog-pagination__item:hover,
.page-blog .blog-pagination__item:hover,
.hero__social-icon:hover,
.footer-bar__actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -8px rgba(15, 23, 42, 0.22);
}

/* Keyboard parity */
.btn:focus-visible,
.work-filter-btn:focus-visible,
.blog-filter-btn:focus-visible,
.blog-pagination__item:focus-visible,
.hero__social-icon:focus-visible,
.footer-bar__actions a:focus-visible {
    transform: translateY(-2px);
}

/* The press still has to push back down — this must stay last
   so it outranks the lift above. */
.btn:active,
.work-filter-btn:active,
.blog-filter-btn:active,
.blog-pagination__item:active,
.hero__social-icon:active,
.footer-bar__actions a:active,
.sidesearch__btn:active,
.blog-search-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* FAQ rows — the header is a transparent full-width button, so
   lifting it alone would slide the text out of its own border.
   The whole row floats instead. */
.page-contact .faq-item {
    transition: border-color 0.15s ease,
                transform 0.22s var(--img-ease),
                box-shadow 0.22s var(--img-ease);
}

.page-contact .faq-item:hover,
.page-contact .faq-item:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -8px rgba(15, 23, 42, 0.18);
}

/* ═══════════════════════════════════════════════════════════
   JOURNEY TIMELINE (.jtl)
   A rail of milestone nodes above one wide detail panel. Only
   the selected milestone's text is shown, so the prose gets
   full width instead of a cramped column.

   Progressive enhancement: without JS the .is-enhanced class is
   never added and every panel stays visible and stacked.
   ═══════════════════════════════════════════════════════════ */

.jtl {
    --jtl-tone: #2563EB;
    --jtl-tint: #EFF6FF;
    margin-top: 2rem;
}

/* ── Tone variants, matching the CMS icon_color field ── */
.jtl__node--blue,   .jtl__panel--blue   { --jtl-tone: #2563EB; --jtl-tint: #EFF6FF; }
.jtl__node--teal,   .jtl__panel--teal   { --jtl-tone: #0D9488; --jtl-tint: #F0FDFA; }
.jtl__node--purple, .jtl__panel--purple { --jtl-tone: #9333EA; --jtl-tint: #FAF5FF; }
.jtl__node--orange, .jtl__panel--orange { --jtl-tone: #EA580C; --jtl-tint: #FFF7ED; }
.jtl__node--rose,   .jtl__panel--rose   { --jtl-tone: #E11D48; --jtl-tint: #FFF1F2; }

/* ── The rail ── */
.jtl__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: start;
}

.jtl__node {
    display: grid;
    grid-template-rows: auto 58px auto;
    justify-items: center;
    gap: 0.55rem;
    padding: 0.25rem 0.4rem 0.6rem;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    border-radius: 12px;
    transition: transform 0.28s var(--img-ease);
}

/* The connector: each node draws its own segment, so together
   they form one continuous line with no absolute positioning. */
.jtl__node::before {
    content: '';
    grid-row: 2;
    grid-column: 1;
    align-self: center;
    justify-self: stretch;
    height: 2px;
    background: #E2E8F0;
    z-index: 0;
}

.jtl__node:first-child::before { transform: scaleX(0.5); transform-origin: right; }
.jtl__node:last-child::before  { transform: scaleX(0.5); transform-origin: left; }

.jtl__year {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #94A3B8;
    white-space: nowrap;
    transition: color 0.28s var(--img-ease);
}

.jtl__dot {
    grid-row: 2;
    grid-column: 1;
    z-index: 1;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    color: #94A3B8;
    font-size: 1.0625rem;
    box-shadow: 0 0 0 5px #FFFFFF;      /* masks the line behind the dot */
    transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.28s var(--img-ease),
                color 0.28s var(--img-ease),
                background-color 0.28s var(--img-ease);
}

.jtl__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.4;
    max-width: 13ch;
    transition: color 0.28s var(--img-ease);
}

/* ── Hover / focus ── */
.jtl__node:hover,
.jtl__node:focus-visible {
    transform: translateY(-3px);
}

.jtl__node:hover .jtl__dot,
.jtl__node:focus-visible .jtl__dot {
    border-color: var(--jtl-tone);
    color: var(--jtl-tone);
    background: var(--jtl-tint);
    transform: scale(1.08);
}

.jtl__node:hover .jtl__label,
.jtl__node:hover .jtl__year,
.jtl__node:focus-visible .jtl__label { color: var(--jtl-tone); }

.jtl__node:focus-visible {
    outline: 2px solid var(--jtl-tone);
    outline-offset: 3px;
}

/* ── Selected ── */
.jtl__node.is-active .jtl__dot {
    background: var(--jtl-tone);
    border-color: var(--jtl-tone);
    color: #FFFFFF;
    transform: scale(1.12);
    box-shadow: 0 0 0 5px #FFFFFF, 0 0 0 11px var(--jtl-tint);
}

.jtl__node.is-active .jtl__year  { color: var(--jtl-tone); }
.jtl__node.is-active .jtl__label { color: #0F172A; font-weight: 700; }

/* Segments behind the reached nodes read as progress */
.jtl__node.is-done::before { background: var(--jtl-tone); }

/* ── Detail panel ── */
.jtl__panels { margin-top: 1.75rem; }

.jtl__panel {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--jtl-tone);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 16px -10px rgba(15, 23, 42, 0.18);
}

/* Stacked spacing only matters in the no-JS fallback */
.jtl__panel + .jtl__panel { margin-top: 0.75rem; }

.jtl__panel-head {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.jtl__panel-year {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--jtl-tone);
    background: var(--jtl-tint);
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.jtl__panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.jtl__panel-desc {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #475569;
    margin: 0;
    max-width: 68ch;
}

/* ── Enhanced mode: one panel at a time ── */
.jtl.is-enhanced .jtl__panel { display: none; }
.jtl.is-enhanced .jtl__panel + .jtl__panel { margin-top: 0; }

.jtl.is-enhanced .jtl__panel.is-active {
    display: block;
    animation: jtl-panel-in 0.42s var(--img-ease) both;
}

@keyframes jtl-panel-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* ── Narrow screens: the rail scrolls, panel stays full width ── */
@media (max-width: 900px) {
    .jtl__rail {
        grid-auto-columns: minmax(120px, 1fr);
        overflow-x: auto;
        scroll-snap-type: x proximity;
        padding-bottom: 0.5rem;
    }
    .jtl__node { scroll-snap-align: center; }
    .jtl__panel { padding: 1.25rem 1.25rem; }
    .jtl__panel-title { font-size: 1.125rem; }
}

/* ═══════════════════════════════════════════════════════════
   TECHNOLOGY MARQUEE (.techmq)
   The row is rendered twice and the track slides exactly -50%,
   so the second copy lands where the first began and the loop
   is seamless. Icons come from Admin → Page Content.
   ═══════════════════════════════════════════════════════════ */

.techmq {
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    /* Fade the strip out at both edges instead of cutting it dead */
    -webkit-mask-image: linear-gradient(90deg,
        transparent 0, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(90deg,
        transparent 0, #000 7%, #000 93%, transparent 100%);
}

.techmq__track {
    display: flex;
    width: max-content;
    animation: techmq-scroll var(--techmq-duration, 30s) linear infinite;
}

.techmq__row {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin: 0;
    padding: 0 1.5rem 0 0;
    list-style: none;
}

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

/* Hovering anywhere on the strip holds it still so an icon can
   actually be read; individual icons keep their own hover. */
.techmq:hover .techmq__track,
.techmq:focus-within .techmq__track {
    animation-play-state: paused;
}

/* Reduced motion: base.css collapses every animation to 0.01ms,
   which on an infinite loop would strobe. The scroll is kept on
   purpose here (it is the point of the section), so the real
   duration is restored rather than the animation being dropped.
   WCAG 2.2.2 is met by the hover/focus pause above. */
@media (prefers-reduced-motion: reduce) {
    .techmq__track {
        animation-name: techmq-scroll !important;
        animation-duration: var(--techmq-duration, 30s) !important;
        animation-timing-function: linear !important;
        animation-iteration-count: infinite !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   UPLOADED BRAND LOGO
   Replaces the inline SP monogram when one is set in Admin →
   Site Settings. Sized by height so any aspect ratio fits the
   existing header/footer chrome without reflowing it.
   ═══════════════════════════════════════════════════════════ */

.nav__logo-img {
    display: block;
    height: 68px;              /* doubled from 34px */
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* The built-in monogram scales with it so both options match */
.nav__monogram svg {
    width: auto;
    height: 60px;
}

.footer-bar__logo-img {
    display: block;
    height: 76px;              /* doubled from 38px */
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* 849px, not 767px: that is where responsive.css switches the header
   to --header-height-mobile, and the logo has to shrink with it. */
@media (max-width: 849px) {
    .nav__logo-img { height: 48px; max-width: 150px; }
    .nav__monogram svg { height: 42px; }
}

@media (max-width: 767px) {
    .footer-bar__logo-img { height: 60px; }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT MAP — live OpenStreetMap embed
   Replaces the old flattened screenshot. Coordinates come from
   Admin → Site Settings, so the pin follows the stated location.
   ═══════════════════════════════════════════════════════════ */

.page-contact .contact-map-frame {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
    border-radius: 10px;
    background: #EEF2F7;   /* placeholder tone while the tiles load */
}

.page-contact .contact-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
}

.page-contact .contact-map-link:hover {
    text-decoration: underline;
}

.page-contact .contact-map-link i {
    font-size: 0.6875rem;
}

@media (max-width: 767px) {
    .page-contact .contact-map-frame { height: 260px; }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT MAP — Google embed
   ═══════════════════════════════════════════════════════════ */

.page-contact .contact-map-frame {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
    border-radius: 10px;
    background: #EEF2F7;
}

.contact-map-fallback { padding: 1rem; font-size: 0.875rem; }

@media (max-width: 767px) {
    .page-contact .contact-map-frame { height: 260px; }
}

/* ═══════════════════════════════════════════════════════════
   SUBSCRIBE — sidebar widget
   The newsletter block moved out of its full-width band and
   into the blog sidebar, under the Tags widget.
   ═══════════════════════════════════════════════════════════ */

.page-blog .blog-widget--subscribe .subscribe-widget__sub {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: #64748B;
    margin: 0 0 0.9rem;
}

.page-blog .subscribe-widget__input-group {
    position: relative;
    margin-bottom: 0.6rem;
}

.page-blog .subscribe-widget__mail-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8125rem;
    color: #94A3B8;
    pointer-events: none;
}

.page-blog .subscribe-widget__input {
    width: 100%;
    padding: 0.6rem 0.75rem 0.6rem 2.1rem;
    font-size: 0.8125rem;
    font-family: inherit;
    color: #0F172A;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}

.page-blog .subscribe-widget__input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.page-blog .subscribe-widget__btn {
    width: 100%;
    justify-content: center;
    font-size: 0.8125rem;
    padding: 0.6rem 1rem;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.form-decoy {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   JOURNEY HERO TITLE — allow phrases to wrap on phones
   .title-phrase uses white-space: nowrap to keep phrases intact
   on wide screens. One phrase measures ~425px, which is wider
   than a 375px viewport, so on phones it forced the hero column
   open and scrolled the whole page sideways. Desktop behaviour
   is unchanged.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 849px) {
    .page-journey .journey-hero__title .title-phrase {
        white-space: normal;
    }
}

/* ═══════════════════════════════════════════════════════════
   JOURNEY GRIDS — phone step
   The responsive overrides above were written unscoped (0,1,0)
   while the base rules are .page-journey-scoped (0,2,0), so the
   base always won and these grids never collapsed. They are now
   scoped to match; this adds the final single-column step that
   .values__grid was missing entirely.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 849px) {
    .page-journey .values__grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════
   BLOG MAIN COLUMN — allow the grid item to shrink
   Grid items default to min-width:auto, so the content column
   would not go below its content's intrinsic width and pushed a
   few pixels past the viewport on phones.
   ═══════════════════════════════════════════════════════════ */

.page-blog .blog-content-col,
.page-blog .blog-sidebar {
    min-width: 0;
}

/* Empty state for blog search / filter with no matches */
.page-blog .blog-empty {
    margin: 0;
    padding: 2.25rem 1.25rem;
    text-align: center;
    font-size: 0.9375rem;
    color: #64748B;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 12px;
}
