/* Inner pages — Design Genious-inspired system, NEC orange brand */
.page-hero {
    padding: calc(var(--header-h) + 40px) 0 52px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}
.page-hero .container-wide,
.page-hero .container {
    max-width: var(--container-wide, 1440px);
}
.page-hero .page-title {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.22;
    color: #111111;
    max-width: 16em;
}
.page-hero .page-subtitle {
    margin-top: 14px;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: #5c564f;
    max-width: 38rem;
    line-height: 1.7;
}
.page-hero-accent {
    display: inline-block;
    background: var(--primary);
    padding: 0 0.12em 0.04em;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 16px;
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--gray-300);
}
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--primary); }

/* Tech logos strip */
.tech-strip {
    padding: 36px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    overflow: visible;
}
.tech-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tech-strip img {
    width: min(100%, 1100px);
    height: auto;
    opacity: 1;
    filter: none;
}

/* Awards band */
.awards-band {
    padding: var(--section-gap, 100px) 0;
    background: var(--gray-100);
}
.awards-band .display-title {
    max-width: 720px;
}
.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 36px;
}
.award-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 28px 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 148px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.award-card:hover {
    transform: translateY(-3px);
    border-color: rgba(238, 120, 10, 0.4);
    box-shadow: 0 10px 28px rgba(20, 16, 12, 0.06);
}
.award-card strong {
    display: block;
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.75rem, 2.2vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 10px;
}
.award-card span {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--gray-700);
    max-width: 16ch;
}

/* Services index — premium cards */
.services-page {
    padding: var(--section-gap, 100px) 0;
    background: var(--gray-100);
}
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.5vw, 28px);
}
.service-card-page {
    background: var(--white);
    border: 1px solid rgba(238, 120, 10, 0.1);
    overflow: hidden;
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.service-card-page:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(238, 120, 10, 0.14);
}
.service-card-page-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(238,120,10,0.08), rgba(246,71,64,0.05));
}
.service-card-page-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: clamp(12px, 2vw, 20px);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card-page:hover .service-card-page-media img {
    transform: scale(1.08);
}
.service-card-page-body {
    padding: 28px;
}
.service-card-page-body h2 {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
}
.service-card-page-body p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Service detail hero */
.service-hero-premium {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 80px) 0 80px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.service-hero-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(20,16,16,0.88) 0%, rgba(238,120,10,0.35) 100%);
}
.service-hero-premium .container-wide {
    position: relative;
    z-index: 1;
}
.service-hero-premium .page-title,
.service-hero-premium .page-subtitle {
    color: var(--white);
}
.service-hero-premium .page-subtitle {
    color: rgba(255,255,255,0.8);
}
.service-hero-premium .breadcrumbs a,
.service-hero-premium .breadcrumbs li {
    color: rgba(255,255,255,0.7);
}

.service-detail-intro {
    font-size: 1.125rem;
    line-height: 1.9;
    max-width: 820px;
    color: var(--gray-700);
}
.service-detail-intro p { margin-bottom: 1.25em; }

/* Service detail — Design Genious reference layout (NEC branding) */
.service-detail-dg { background: var(--white); }

.svc-dg-hero {
    padding: calc(var(--header-h) + 32px) 0 clamp(52px, 6vw, 76px);
    background: var(--white);
    overflow: hidden;
}
.svc-dg-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
}
.svc-dg-breadcrumbs { margin-bottom: 16px; }
.svc-dg-eyebrow {
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}
.svc-dg-eyebrow strong { font-weight: 700; }
.svc-dg-headline {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.75rem, 2.6vw, 2.45rem);
    font-weight: 700;
    line-height: 1.22;
    overflow: visible;
    letter-spacing: -0.04em;
    color: var(--text-heading);
    margin-bottom: 18px;
}
.svc-dg-accent { color: var(--primary); }
.svc-dg-lead {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
    color: var(--gray-600);
    max-width: 540px;
    margin-bottom: 24px;
}
.svc-dg-cta { margin-top: 8px; }
.svc-dg-hero-visual { position: relative; }
.svc-dg-hero-frame {
    background: linear-gradient(145deg, rgba(238,120,10,0.06) 0%, rgba(246,71,64,0.04) 100%);
    border: 1px solid rgba(238,120,10,0.12);
    padding: clamp(24px, 4vw, 40px);
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.svc-dg-hero-frame img {
    max-height: 320px;
    width: auto;
    filter: drop-shadow(0 24px 48px rgba(238,120,10,0.15));
}
.svc-dg-hero-badge {
    position: absolute;
    bottom: -16px;
    right: 24px;
    background: var(--white);
    border: 2px solid var(--primary);
    padding: 12px 18px;
    box-shadow: 0 12px 32px rgba(238,120,10,0.18);
}

.svc-dg-section {
    padding: var(--section-gap, 100px) 0;
}
.svc-dg-section-head {
    max-width: 820px;
    margin-bottom: clamp(32px, 4vw, 44px);
}
.svc-dg-section-head-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.svc-dg-section-head-center .section-lead {
    margin-left: auto;
    margin-right: auto;
}

.svc-dg-problems { background: var(--gray-100); }
.svc-dg-problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.5vw, 28px);
}
.svc-dg-problem-card {
    background: var(--white);
    border: 1px solid rgba(238,120,10,0.1);
    padding: clamp(24px, 2.5vw, 30px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.svc-dg-problem-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 48px rgba(238,120,10,0.12);
}
.svc-dg-problem-card h3 {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(238,120,10,0.2);
}
.svc-dg-problem-card p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--gray-500);
}

.svc-dg-offerings { background: var(--white); }
.svc-dg-offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 36px);
}
.svc-dg-offering-card {
    padding: clamp(26px, 3vw, 34px) clamp(22px, 2.5vw, 28px);
    background: var(--gray-100);
    border-top: 4px solid var(--primary);
    transition: transform 0.4s ease, background 0.4s ease;
}
.svc-dg-offering-card:hover {
    transform: translateY(-8px);
    background: rgba(238,120,10,0.06);
}
.svc-dg-offering-num {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.25;
    line-height: 1;
    display: block;
    margin-bottom: 16px;
}
.svc-dg-offering-card h3 {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 14px;
}
.svc-dg-offering-card p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--gray-500);
}

.svc-dg-stories { padding: var(--section-gap, 100px) 0; }
.svc-dg-stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 24px);
    margin-top: 36px;
}
.svc-dg-story-card {
    display: block;
    color: inherit;
    text-decoration: none;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    transition: transform 0.45s ease, border-color 0.45s ease;
}
.svc-dg-story-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}
.svc-dg-story-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.svc-dg-story-media img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.svc-dg-story-card:hover .svc-dg-story-media img { transform: scale(1.08); }
.svc-dg-story-body {
    padding: 20px 20px 24px;
}
.svc-dg-story-body span:first-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}
.svc-dg-story-body h3 {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin: 8px 0 12px;
    line-height: 1.35;
}
.svc-dg-stories-cta {
    text-align: center;
    margin-top: 36px;
}

.svc-dg-capabilities { background: var(--white); }
.svc-dg-cap-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(36px, 5vw, 60px);
    align-items: start;
}
.svc-dg-cap-visual {
    margin-top: 24px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid rgba(238,120,10,0.15);
}
.svc-dg-tab-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}
.svc-dg-tab-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    border: 2px solid transparent;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.svc-dg-tab-btn:hover {
    color: var(--primary);
    background: rgba(238,120,10,0.06);
}
.svc-dg-tab-btn.is-active {
    color: var(--text-heading);
    background: var(--white);
    border-color: rgba(238,120,10,0.15);
    border-left-color: var(--primary);
    box-shadow: 0 8px 24px rgba(238,120,10,0.08);
}
.svc-dg-tab-panel {
    display: none;
    padding: clamp(28px, 4vw, 40px);
    background: var(--gray-100);
    border-top: 3px solid var(--primary);
}
.svc-dg-tab-panel.is-active { display: block; }
.svc-dg-tab-panel h3 {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 16px;
}
.svc-dg-tab-panel p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--gray-600);
}

.svc-dg-why {
    background: linear-gradient(180deg, rgba(238,120,10,0.04) 0%, var(--white) 100%);
}
.svc-dg-why-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
}
.svc-dg-why-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.5;
}
.svc-dg-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
}

.svc-dg-tech { padding: clamp(52px, 6vw, 68px) 0; }
.svc-dg-tech .tech-strip-inner {
    flex-direction: column;
    gap: 24px;
}
.svc-dg-tech-head {
    text-align: center;
}
.svc-dg-tech-head .display-title {
    margin-top: 12px;
}

.svc-dg-faq { background: var(--gray-100); }
.svc-dg-faq-list { max-width: 820px; }

.svc-dg-cta-band {
    padding: clamp(58px, 7vw, 82px) 0;
    background: linear-gradient(135deg, var(--primary) 0%, #d96a08 55%, var(--coral) 100%);
    color: var(--white);
    text-align: center;
}
.svc-dg-cta-inner h2 {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 820px;
    margin: 12px auto 24px;
    color: var(--white);
}
.svc-dg-cta-accent { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.btn-schedule-light {
    background: var(--white) !important;
    color: var(--text-heading) !important;
    border-color: var(--white) !important;
}
.btn-schedule-light:hover {
    background: transparent !important;
    color: var(--white) !important;
}

.svc-dg-contact {
    padding: var(--section-gap, 100px) 0;
    background: var(--white);
}
.svc-dg-contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(36px, 5vw, 60px);
    align-items: start;
}
.svc-dg-contact-logo { margin-bottom: 24px; }
.svc-dg-contact-copy h2 {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
}
.svc-dg-contact-copy p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
}
.svc-dg-form {
    background: var(--gray-100);
    border: 2px solid rgba(238,120,10,0.15);
    padding: clamp(28px, 4vw, 40px);
}
.svc-dg-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 20px;
    cursor: pointer;
}
.svc-dg-consent input { margin-top: 3px; flex-shrink: 0; }

@media (max-width: 1024px) {
    .svc-dg-hero-grid,
    .svc-dg-cap-grid,
    .svc-dg-contact-grid { grid-template-columns: 1fr; }
    .svc-dg-problems-grid,
    .svc-dg-offerings-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-dg-stories-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-dg-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .svc-dg-problems-grid,
    .svc-dg-offerings-grid,
    .svc-dg-stories-grid,
    .svc-dg-why-grid { grid-template-columns: 1fr; }
    .svc-dg-hero-badge { right: 12px; bottom: -12px; }
    .svc-dg-tab-list { flex-direction: row; flex-wrap: wrap; }
    .svc-dg-tab-btn {
        width: auto;
        flex: 1 1 calc(50% - 4px);
        font-size: 0.875rem;
        padding: 12px 14px;
    }
}

/* Services index collage */
.svc-index-hero { padding-bottom: clamp(48px, 6vw, 72px); }
.svc-index-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    min-height: 380px;
    align-content: center;
}
.svc-index-thumb {
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 12px;
    background: var(--white);
    border: 1px solid rgba(238,120,10,0.12);
    box-shadow: 0 12px 32px rgba(238,120,10,0.1);
}
.svc-index-thumb-1 { grid-column: 1; transform: translateY(8px); }
.svc-index-thumb-2 { grid-column: 2; transform: translateY(-8px); }
.svc-index-thumb-3 { grid-column: 1 / -1; max-width: 72%; margin: 0 auto; }

/* Portfolio index/category heroes */
.portfolio-index-hero {
    padding: calc(var(--header-h) + 48px) 0 32px;
    background: var(--gray-100);
}
.portfolio-category-hero {
    position: relative;
    min-height: 42vh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 56px) 0 64px;
    background-image: var(--cat-banner);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.portfolio-category-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(9,9,9,0.82) 0%, rgba(238,120,10,0.45) 100%);
}
.portfolio-category-hero-inner {
    position: relative;
    z-index: 1;
}
.portfolio-category-hero .svc-dg-breadcrumbs a,
.portfolio-category-hero .svc-dg-breadcrumbs li,
.portfolio-category-hero .svc-dg-breadcrumbs li::after { color: rgba(255,255,255,0.75); }
.portfolio-category-title {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.75rem, 2.8vw, 2.4rem);
    font-weight: 700;
    line-height: 1.22;
    overflow: visible;
    color: var(--white);
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}
.portfolio-category-lead {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    max-width: 640px;
}

.about-hero-frame {
    padding: 0;
    min-height: 360px;
    overflow: hidden;
}
.about-hero-frame img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}
.about-dg-hero { padding-bottom: clamp(40px, 5vw, 64px); }

.contact-dg-hero {
    padding: calc(var(--header-h) + 48px) 0 32px;
    background: var(--gray-100);
}
.contact-dg-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.contact-dg-card {
    background: var(--white);
    border: 1px solid rgba(238,120,10,0.12);
    padding: 28px 24px;
}
.contact-dg-card strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 10px;
}
.contact-dg-card a,
.contact-dg-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin: 0;
}
.contact-dg-card a { color: var(--text-heading); font-weight: 600; }

@media (max-width: 768px) {
    .contact-dg-cards { grid-template-columns: 1fr; }
}

/* About premium */
.about-premium {
    padding: var(--section-gap, 100px) 0;
}
.about-premium-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.about-premium-copy {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--gray-700);
}
.about-premium-copy p { margin-bottom: 1.25em; }
.about-premium-media {
    position: relative;
}
.about-premium-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.about-premium-media::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary);
    right: -18px;
    bottom: -18px;
    z-index: -1;
}
.about-banner-wrap {
    padding: 0 0 var(--section-gap, 100px);
}
.about-banner-wrap img {
    width: 100%;
    height: clamp(240px, 36vw, 420px);
    object-fit: cover;
}

/* Portfolio page */
.portfolio-page {
    padding: var(--section-gap, 100px) 0;
}
.portfolio-page .portfolio-filters {
    justify-content: flex-start;
    margin-bottom: 48px;
}
.portfolio-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.portfolio-page-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    color: inherit;
    text-decoration: none;
    aspect-ratio: auto;
    background: transparent;
}
.portfolio-page-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-page-card-overlay {
    position: static;
    inset: auto;
    background: none;
    display: block;
    padding: 12px 2px 0;
    opacity: 1;
}
.portfolio-page-card:hover img { transform: scale(1.03); }
.portfolio-page-card-overlay span {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}
.portfolio-page-card-overlay h3 {
    color: var(--text-heading);
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.05rem;
    line-height: 1.3;
    margin-top: 4px;
    overflow: visible;
}

/* Project detail */
.project-hero-premium {
    padding-top: var(--header-h);
}
.project-hero-premium-media {
    width: 100%;
    max-height: 72vh;
    overflow: hidden;
    background: var(--warm-dark);
}
.project-hero-premium-media img {
    width: 100%;
    height: clamp(360px, 60vh, 720px);
    object-fit: cover;
}
.project-detail {
    padding: var(--section-gap, 100px) 0;
}
.project-detail-header {
    margin-bottom: 40px;
}
.project-detail-header .project-category {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
}
.project-detail-header h1 {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-heading);
    margin-top: 10px;
}
.project-detail-content {
    max-width: 760px;
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--gray-700);
    margin-bottom: 48px;
}

/* Contact page */
.contact-page-premium {
    padding: var(--section-gap, 100px) 0;
    background: var(--gray-100);
}
.contact-page-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 80px);
}
.contact-page-info h2 {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.contact-page-info p {
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 28px;
}
.contact-detail {
    margin-bottom: 20px;
}
.contact-detail strong {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
}
.contact-page-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: clamp(28px, 4vw, 40px);
}
.contact-page-form .form-group input,
.contact-page-form .form-group select,
.contact-page-form .form-group textarea {
    border-radius: 0;
    border: 2px solid var(--gray-200);
}
.contact-page-form .form-group input:focus,
.contact-page-form .form-group select:focus,
.contact-page-form .form-group textarea:focus {
    border-color: var(--primary);
}

/* Team cards refresh */
.team-section-premium {
    padding: var(--section-gap, 100px) 0;
    background: var(--white);
}
.team-card-premium {
    padding: 36px 28px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.team-card-premium:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.team-card-premium .team-avatar {
    border-radius: 0;
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

/* Page transition overlay */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}

/* Image fit helpers */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 1024px) {
    .services-page-grid,
    .portfolio-page-grid,
    .awards-grid { grid-template-columns: repeat(2, 1fr); }
    .about-premium-grid,
    .contact-page-grid { grid-template-columns: 1fr; }
}

/* Case study page — Design Genious ascension-golf style */
.case-study-page {
    background: var(--white);
}
.case-study-intro-block {
    padding: calc(var(--header-h) + 48px) 0 40px;
}
.case-study-headline {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: #090909;
    max-width: 980px;
}
.case-study-featured {
    width: 100%;
    max-height: 72vh;
    overflow: hidden;
    background: var(--warm-dark);
}
.case-study-featured img,
.case-study-video {
    width: 100%;
    height: clamp(320px, 58vh, 680px);
    object-fit: cover;
    display: block;
}
.case-study-body {
    padding: clamp(60px, 8vw, 100px) 0;
}
.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}
.case-study-section {
    margin-bottom: clamp(48px, 6vw, 72px);
}
.case-study-section-title {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #090909;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}
.deliverable-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.deliverable-item {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    color: var(--text-heading);
    padding-left: 20px;
    position: relative;
}
.deliverable-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--primary);
}
.case-study-content {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--gray-700);
    max-width: 760px;
}
.case-study-content p { margin-bottom: 1.25em; }
.case-study-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.case-study-gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray-200);
}
.case-study-meta-card {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}
.case-study-meta-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
}
.case-study-meta-card strong {
    font-size: 1rem;
    color: var(--text-heading);
}
.case-study-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.case-study-contact {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}
.case-study-contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}
.case-study-contact-copy h2 {
    font-family: var(--font-display-new, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.case-study-contact-copy p {
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 24px;
}
.case-study-contact-details a {
    color: var(--primary-dark);
}
.case-study-form {
    background: var(--white);
    border: 2px solid #111;
    padding: clamp(28px, 4vw, 40px);
}
.case-study-form .form-group input,
.case-study-form .form-group select,
.case-study-form .form-group textarea {
    border-radius: 0;
    border: 2px solid var(--gray-200);
}

@media (max-width: 1024px) {
    .case-study-grid,
    .case-study-contact-grid { grid-template-columns: 1fr; }
    .case-study-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .case-study-meta-card { border-bottom: none; border: 1px solid var(--gray-200); padding: 16px; }
}

@media (max-width: 768px) {
    .case-study-gallery { grid-template-columns: 1fr; }
    .case-study-sidebar { grid-template-columns: 1fr; }
}

/* Keep every heading and paragraph fully visible. Font size stays the same. */
h1, h2, h3, h4, h5, h6,
p, li, label, blockquote, cite, figcaption,
.section-lead, .section-tag, .hero-lead, .hero-eyebrow,
.display-title, .display-title .title-accent, .display-title .title-main,
.hero-headline, .hero-headline .line-reveal, .hero-headline .line-inner,
.stat-number, .stat-label, .stat-block .stat-number,
.award-card, .award-card strong, .award-card span,
.process-card, .process-card h3, .process-card p, .process-index,
.portfolio-item, .portfolio-item-overlay, .portfolio-item-overlay h3, .portfolio-cat,
.story-card, .story-card-content, .story-card-content h3, .story-meta,
.testimonial-premium, .testimonial-premium p, .testimonial-premium cite,
.service-card-premium, .service-card-body, .service-card-body h3, .service-card-body p,
.discover-link, .filter-btn, .cta-premium-inner, .cta-premium-inner h2,
.btn, .btn-schedule, .hero-secondary {
    overflow: visible;
    height: auto;
    max-height: none;
    transform: none !important;
}
.display-title,
.hero-headline,
.cta-premium-inner h2,
.page-title {
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.025em;
}
.display-title .title-accent,
.display-title .title-main {
    display: block;
    line-height: 1.2;
    padding: 0.04em 0 0.1em;
}
.hero-headline .line-reveal {
    display: block;
    width: auto;
    max-width: 100%;
    line-height: 1.12;
    padding: 0.02em 0 0.04em;
}
.hero-headline .line-reveal.hero-highlight {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 0 0 0.22em;
}
.hero-highlight::before {
    left: 0;
    right: 0;
    bottom: 0.02em;
    height: 3px;
    border-radius: 2px;
}
h3,
.process-card h3,
.service-card-body h3,
.story-card-content h3,
.portfolio-item-overlay h3,
.portfolio-page-card-overlay h3 {
    line-height: 1.4;
    padding-bottom: 0.14em;
}
p, .section-lead, .hero-lead, .service-card-body p, .process-card p, .testimonial-premium p {
    line-height: 1.7;
    padding-bottom: 0.08em;
}
.stat-block .stat-number,
.award-card strong,
.process-index {
    line-height: 1.35;
    padding: 0.08em 0 0.14em;
}
.portfolio-item {
    display: flex;
    flex-direction: column;
}
.portfolio-item-overlay {
    position: static;
    padding: 12px 2px 4px;
}
.award-card:hover,
.process-card:hover,
.testimonial-premium:hover,
.service-card-premium:hover,
.story-card:hover,
.story-card:hover .story-card-content {
    transform: none !important;
}

/* Project artwork is square. A 4:3 cover frame was slicing the logos. */
.story-card-media,
.portfolio-item-inner {
    aspect-ratio: 1 / 1;
    background: #111;
}
.story-card-media img,
.portfolio-item-inner img,
.portfolio-page-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    transform: none !important;
}
.story-card:hover .story-card-media img,
.portfolio-item:hover .portfolio-item-inner img,
.portfolio-page-card:hover img {
    transform: none !important;
}
.story-card-content h3,
.portfolio-item-overlay h3,
.portfolio-page-card-overlay h3 {
    white-space: normal;
    overflow-wrap: break-word;
}

/* Case study art stays complete, framed with the page instead of a black band. */
.case-study-featured {
    max-height: none;
    overflow: visible;
    display: block;
    background: transparent;
    margin-top: 8px;
}
.case-study-featured img,
.case-study-video {
    width: min(100%, 560px);
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    border: 1px solid var(--line, #e7e1d8);
    box-shadow: var(--shadow-soft, 0 10px 28px rgba(20, 16, 12, 0.06));
    background: #fff;
}
.case-study-gallery-item {
    aspect-ratio: 1 / 1;
    background: #111;
}
.case-study-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
