/* =========================================================
   TECHUPDATES — MASTER STYLESHEET
   Shared site system + AI Advertising page
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
    --bg-primary: #050505;
    --bg-secondary: #101010;
    --bg-darker: #080808;
    --text-primary: #f5f5f5;
    --text-secondary: #a1a1aa;
    --accent: #ffffff;
    --border-color: rgba(255,255,255,.10);

    --font-display: "Outfit", sans-serif;
    --font-body: "Inter", sans-serif;

    --space-xs: .5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 5rem;

    --container: 1280px;
}

/* =========================================================
   2. RESET / GLOBAL
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
}

img {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

h1,
h2,
h3,
.brand-logo {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
}

.container {
    width: min(var(--container), calc(100% - 80px));
    max-width: var(--container);
    margin-inline: auto;
}

.section-padding {
    padding-block: 110px;
}

.bg-darker {
    background: var(--bg-darker);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

/* =========================================================
   3. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .01em;
    cursor: pointer;
    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease,
        color .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #fff;
    color: #050505;
}

.btn-primary:hover {
    background: #ededed;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.20);
}

.btn-secondary:hover {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.45);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.22);
}

.btn-outline:hover {
    background: #fff;
    color: #050505;
}

.btn-large {
    min-height: 54px;
    padding-inline: 30px;
}

/* =========================================================
   4. NAVIGATION — HOME / SHARED PAGES
   ========================================================= */

.navbar {
    position: relative;
    z-index: 1000;
    width: 100%;
    min-height: 78px;
    background: rgba(5,5,5,.96);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-container {
    width: min(var(--container), calc(100% - 80px));
    max-width: var(--container);
    min-height: 78px;
    margin-inline: auto;

    display: flex;
    align-items: center;
    gap: 34px;
}

.brand-logo {
    flex: 0 0 auto;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.035em;
}

.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: rgba(255,255,255,.62);
    font-size: .88rem;
    font-weight: 500;
    transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-container > .btn {
    flex: 0 0 auto;
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 1px;
    margin: 6px auto;
    background: #fff;
}

/* =========================================================
   5. HOME HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: calc(100vh - 78px);
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #090909;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/*
   The current index page uses the poster image while the actual
   video source is commented out. This guarantees the poster fills
   the hero correctly.
*/
.hero-bg-video[poster] {
    background-image: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,.76) 0%,
            rgba(0,0,0,.52) 38%,
            rgba(0,0,0,.12) 72%,
            rgba(0,0,0,.18) 100%),
        linear-gradient(0deg,
            rgba(0,0,0,.38) 0%,
            transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 80px));
    margin-inline: auto;
    padding-block: 100px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-label,
.eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: #a6b2c2;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-title {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 6.2vw, 6.2rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.055em;
}

.hero-subtitle {
    max-width: 570px;
    margin: 30px 0 0;
    color: rgba(255,255,255,.64);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 36px;
}

/* =========================================================
   6. HOME VALUE / CAPABILITIES
   ========================================================= */

.value-prop {
    background: var(--bg-primary);
}

.section-title {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.7vw, 4.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.section-desc {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.capability-item {
    min-width: 0;
    padding: 24px 20px 24px 0;
    border-bottom: 1px solid var(--border-color);
    color: rgba(255,255,255,.78);
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.capability-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,.08);
    margin-right: 20px;
}

/* =========================================================
   7. HOME SERVICES
   ========================================================= */

.services-section {
    border-top: 1px solid rgba(255,255,255,.06);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
}

.services-section > .container > .section-title,
.tech-section > .container > .section-title {
    margin-bottom: 50px;
}

.service-card {
    min-width: 0;
    min-height: 260px;
    padding: 30px;
    background: #101010;
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    background: #131313;
    border-color: rgba(255,255,255,.16);
}

.service-card h3 {
    margin: 0 0 12px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.15;
}

.service-card p {
    margin: 0;
    color: rgba(255,255,255,.54);
    font-size: .92rem;
    line-height: 1.65;
}

.cta-container {
    margin-top: 42px;
}

/* =========================================================
   8. HOME ADVERTISING SHOWCASE
   ========================================================= */

.services-section > .container > div[style] {
    width: 100% !important;
    max-width: 100%;
    margin: 50px 0 !important;
    border-radius: 4px !important;
    overflow: hidden;
}

.services-section > .container > div[style] img {
    width: 100% !important;
    height: auto !important;
    max-height: 620px !important;
    object-fit: cover;
}

/* =========================================================
   9. HOME WORK / PORTFOLIO
   ========================================================= */

.work-section {
    background: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 32px 24px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #101010;
    border: 1px solid rgba(255,255,255,.06);
}

.portfolio-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.16,1,.3,1);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.025);
}

.portfolio-item h3 {
    margin: 0;
    padding: 20px 22px 24px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.portfolio-item p {
    padding: 0 22px 24px;
    margin: 0;
    color: var(--text-secondary);
}

/* JS-created work cards may use these classes */
.portfolio-item .concept-tag,
.portfolio-item .work-meta {
    display: block;
    padding: 18px 22px 0;
    color: #8f9cad;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* =========================================================
   10. TECHNOLOGY
   ========================================================= */

.tech-section {
    border-top: 1px solid rgba(255,255,255,.06);
}

/* =========================================================
   11. PRODUCT / SKOLAR
   ========================================================= */

.products-section {
    background: var(--bg-primary);
}

.product-showcase {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 70px;
    align-items: center;
}

.product-info {
    min-width: 0;
}

.product-info p {
    max-width: 580px;
    margin: 24px 0 0;
    color: var(--text-secondary);
    line-height: 1.75;
}

.product-visual {
    min-width: 0;
    min-height: 420px;
    background: #101010;
    border: 1px solid rgba(255,255,255,.08);
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: rgba(255,255,255,.32);
    font-size: .8rem;
    letter-spacing: .08em;
    text-align: center;
}

/* =========================================================
   12. HOME FINAL CTA
   ========================================================= */

.final-cta {
    background: #080808;
    border-top: 1px solid rgba(255,255,255,.08);
}

.final-cta .section-title {
    max-width: 900px;
    margin-inline: auto;
}

.final-cta .btn {
    margin-top: 38px;
}

/* =========================================================
   13. FOOTER — SHARED
   ========================================================= */

.site-footer {
    padding: 75px 0 30px;
    background: #050505;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-grid,
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand h3 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.footer-brand p {
    max-width: 430px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.45);
    font-size: .88rem;
    line-height: 1.7;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-links h4,
.footer-contact h4 {
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255,255,255,.5);
    font-size: .84rem;
    transition: color .2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 65px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.3);
    font-size: .75rem;
}

.footer-bottom p {
    margin: 0;
}

/* =========================================================
   14. AI ADVERTISING PAGE
   IMPORTANT: Everything below is scoped to .ai-page
   so it CANNOT break the Home page.
   ========================================================= */

.ai-page {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.ai-page .container {
    width: min(var(--container), calc(100% - 80px));
    max-width: var(--container);
    margin-inline: auto;
    box-sizing: border-box;
}

.ai-page .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5,5,5,.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ai-page .nav-container {
    width: min(var(--container), calc(100% - 80px));
    max-width: var(--container);
    min-height: 74px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 34px;
}

.ai-page .brand-logo {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.ai-page .nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.ai-page .nav-links a {
    color: rgba(255,255,255,.64);
    font-size: .88rem;
    font-weight: 500;
}

.ai-page .nav-links a:hover,
.ai-page .nav-links a.active {
    color: #fff;
}

.ai-page .nav-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    background: #fff;
    color: #050505;
    border-radius: 3px;
    font-size: .88rem;
    font-weight: 600;
}

/* AI hero */
.ai-page .ai-hero {
    padding: 95px 0 110px;
}

.ai-page .ai-hero-grid {
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
    gap: 60px;
    align-items: center;
}

.ai-page .ai-hero-content {
    min-width: 0;
}

.ai-page .ai-hero h1 {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(3.2rem,5.4vw,5.4rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.055em;
}

.ai-page .ai-hero h1 span {
    display: block;
}

.ai-page .ai-hero-description {
    max-width: 570px;
    margin: 28px 0 0;
    color: rgba(255,255,255,.62);
    font-size: 1.05rem;
    line-height: 1.75;
}

.ai-page .ai-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.ai-page .ai-hero-image {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: #101010;
    border-radius: 4px;
    aspect-ratio: 1.15 / 1;
}

.ai-page .ai-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* AI sections */
.ai-page .ai-section {
    padding: 110px 0;
}

.ai-page .section-heading {
    max-width: 760px;
    margin-bottom: 50px;
}

.ai-page .section-heading h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.5rem,4.2vw,4rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.ai-page .section-heading p {
    max-width: 620px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.58);
    line-height: 1.7;
}

/* AI services */
.ai-page .ai-services-section {
    border-top: 1px solid rgba(255,255,255,.08);
}

.ai-page .ai-services-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
}

.ai-page .ai-service-card {
    min-width: 0;
    min-height: 280px;
    padding: 30px;
    background: #101010;
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
}

.ai-page .card-index {
    color: rgba(255,255,255,.42);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
}

.ai-page .ai-service-card h3 {
    margin: auto 0 12px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.15;
}

.ai-page .ai-service-card p {
    margin: 0;
    color: rgba(255,255,255,.55);
    font-size: .9rem;
    line-height: 1.65;
}

/* AI showcase */
.ai-page .ai-showcase-section {
    background: #080808;
}

.ai-page .ai-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 50px 24px;
}

.ai-page .ai-showcase-card {
    min-width: 0;
}

.ai-page .showcase-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #151515;
    border: 1px solid rgba(255,255,255,.07);
}

.ai-page .showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.16,1,.3,1);
}

.ai-page .ai-showcase-card:hover .showcase-image img {
    transform: scale(1.035);
}

.ai-page .image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: rgba(255,255,255,.35);
    font-size: .85rem;
    text-align: center;
}

.ai-page .showcase-image:not(.image-missing) .image-placeholder {
    display: none;
}

.ai-page .showcase-info {
    padding-top: 18px;
}

.ai-page .showcase-info > span {
    display: block;
    margin-bottom: 8px;
    color: #8f9cad;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ai-page .showcase-info h3 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.15;
}

.ai-page .showcase-info p {
    max-width: 520px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.5);
    font-size: .9rem;
    line-height: 1.6;
}

/* AI process */
.ai-page .ai-process-section {
    border-top: 1px solid rgba(255,255,255,.08);
}

.ai-page .ai-process-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    border-top: 1px solid rgba(255,255,255,.12);
}

.ai-page .ai-process-step {
    min-width: 0;
    padding: 28px 24px 30px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.ai-page .ai-process-step:not(:last-child) {
    margin-right: 24px;
    border-right: 1px solid rgba(255,255,255,.08);
}

.ai-page .process-number {
    display: block;
    margin-bottom: 65px;
    color: rgba(255,255,255,.42);
    font-size: .75rem;
    font-weight: 600;
}

.ai-page .ai-process-step h3 {
    margin: 0 0 12px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.ai-page .ai-process-step p {
    margin: 0;
    color: rgba(255,255,255,.52);
    font-size: .88rem;
    line-height: 1.6;
}

/* AI benefits */
.ai-page .ai-benefits-section {
    background: #0b0b0b;
}

.ai-page .ai-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 70px;
}

.ai-page .ai-benefit {
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}

.ai-page .benefit-number {
    display: block;
    margin-bottom: 24px;
    color: rgba(255,255,255,.35);
    font-size: .75rem;
}

.ai-page .ai-benefit h3 {
    margin: 0 0 10px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.45rem;
}

.ai-page .ai-benefit p {
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,.55);
    font-size: .92rem;
    line-height: 1.7;
}

/* AI audience */
.ai-page .ai-audience-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
}

.ai-page .ai-audience-grid > div {
    min-width: 0;
    padding: 21px 20px;
    background: #101010;
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.78);
    font-size: .9rem;
    transition: background .25s ease,border-color .25s ease;
}

.ai-page .ai-audience-grid > div:hover {
    background: #151515;
    border-color: rgba(255,255,255,.18);
}

/* AI deliverables */
.ai-page .ai-deliverables-section {
    background: #080808;
}

.ai-page .ai-deliverables-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,.12);
}

.ai-page .ai-deliverables-list li {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.15rem,2vw,1.5rem);
}

.ai-page .deliverables-note {
    margin: 20px 0 0;
    color: rgba(255,255,255,.42);
    font-size: .85rem;
    font-style: italic;
}

/* AI CTA */
.ai-page .ai-final-cta {
    padding: 140px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.ai-page .ai-cta-box {
    max-width: 850px;
}

.ai-page .ai-cta-box h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(3rem,6vw,6rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.055em;
}

.ai-page .ai-cta-box p {
    margin: 24px 0 0;
    color: rgba(255,255,255,.58);
    font-size: 1.05rem;
}

.ai-page .ai-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

/* AI footer */
.ai-page .site-footer {
    padding: 70px 0 30px;
    background: #050505;
}

/* =========================================================
   15. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {
    .container,
    .nav-container,
    .hero-content,
    .ai-page .container,
    .ai-page .nav-container {
        width: min(100% - 48px, var(--container));
    }

    .hero-title {
        max-width: 650px;
    }

    .capabilities-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .product-showcase {
        gap: 40px;
    }

    .ai-page .ai-hero-grid {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
        gap: 40px;
    }

    .ai-page .ai-services-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .ai-page .ai-process-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .ai-page .ai-process-step:nth-child(3) {
        border-right: none;
    }

    .ai-page .ai-audience-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

/* =========================================================
   16. RESPONSIVE — MOBILE / SMALL TABLET
   ========================================================= */

@media (max-width: 800px) {
    .section-padding,
    .ai-page .ai-section {
        padding-block: 80px;
    }

    .navbar,
    .ai-page .navbar {
        position: relative;
    }

    .nav-container,
    .ai-page .nav-container {
        min-height: 68px;
        gap: 18px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a:nth-child(1),
    .nav-links a:nth-child(4),
    .nav-links a:nth-child(5) {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: 0;
    }

    .hero {
        min-height: 720px;
    }

    .hero-content {
        padding-block: 80px;
    }

    .hero-title {
        font-size: clamp(3rem,10vw,5rem);
    }

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

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .product-showcase {
        grid-template-columns: 1fr;
    }

    .footer-grid,
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .ai-page .ai-hero {
        padding: 75px 0 90px;
    }

    .ai-page .ai-hero-grid {
        grid-template-columns: 1fr;
    }

    .ai-page .ai-hero-image {
        aspect-ratio: 16 / 10;
    }

    .ai-page .ai-showcase-grid {
        grid-template-columns: 1fr;
    }

    .ai-page .ai-benefits-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ai-page .ai-process-grid {
        grid-template-columns: 1fr;
    }

    .ai-page .ai-process-step {
        padding: 28px 0;
        border-right: none !important;
        margin-right: 0 !important;
    }

    .ai-page .process-number {
        margin-bottom: 30px;
    }

    .ai-page .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================================
   17. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 560px) {
    .container,
    .nav-container,
    .hero-content,
    .ai-page .container,
    .ai-page .nav-container {
        width: calc(100% - 36px);
    }

    .nav-container {
        flex-wrap: wrap;
        padding-block: 14px;
    }

    .nav-container > .btn {
        min-height: 42px;
        padding-inline: 16px;
        font-size: .78rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        margin-left: 0;
    }

    .nav-links a {
        font-size: .75rem;
    }

    .hero {
        min-height: 700px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg,rgba(0,0,0,.82),rgba(0,0,0,.40)),
            linear-gradient(0deg,rgba(0,0,0,.55),transparent 60%);
    }

    .hero-content {
        padding-block: 70px;
    }

    .hero-title {
        font-size: clamp(2.8rem,13vw,4rem);
    }

    .hero-subtitle {
        font-size: .95rem;
    }

    .hero-actions,
    .ai-page .ai-hero-actions,
    .ai-page .ai-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .ai-page .ai-hero-actions .btn,
    .ai-page .ai-cta-actions .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2.7rem;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .capability-item {
        padding-right: 0;
    }

    .capability-item:not(:last-child) {
        margin-right: 0;
        border-right: 0;
    }

    .services-section > .container > div[style] {
        margin: 35px 0 !important;
    }

    .service-card {
        min-height: 230px;
    }

    .product-visual,
    .visual-placeholder {
        min-height: 300px;
    }

    .footer-grid,
    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        margin-top: 45px;
    }

    .ai-page .ai-hero {
        padding: 60px 0 75px;
    }

    .ai-page .ai-hero h1 {
        font-size: clamp(2.7rem,13vw,4rem);
    }

    .ai-page .ai-hero-description {
        font-size: .95rem;
    }

    .ai-page .section-heading {
        margin-bottom: 38px;
    }

    .ai-page .section-heading h2 {
        font-size: 2.5rem;
    }

    .ai-page .ai-services-grid,
    .ai-page .ai-audience-grid {
        grid-template-columns: 1fr;
    }

    .ai-page .ai-service-card {
        min-height: 230px;
    }

    .ai-page .ai-final-cta {
        padding: 95px 0;
    }

    .ai-page .ai-cta-box h2 {
        font-size: 3rem;
    }

    .ai-page .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* =========================================================
   18. SAFETY: PREVENT COMMON IMAGE / GRID OVERFLOW
   ========================================================= */

.hero *,
.services-section *,
.work-section *,
.tech-section *,
.products-section *,
.ai-page * {
    min-width: 0;
}

.portfolio-grid > *,
.services-grid > *,
.product-showcase > *,
.ai-page .ai-showcase-grid > *,
.ai-page .ai-services-grid > *,
.ai-page .ai-process-grid > *,
.ai-page .ai-benefits-grid > * {
    min-width: 0;
}
/* ==========================================================================
   INNER PAGES SCOPED STYLING (SAFE - WILL NOT OVERRIDE INDEX.HTML)
   ========================================================================== */

/* Shared Inner Hero Styling */
.services-page .inner-hero,
.work-page .inner-hero,
.products-page .inner-hero,
.about-page .inner-hero {
    padding: 180px 0 100px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.services-page .inner-hero .eyebrow,
.work-page .inner-hero .eyebrow,
.products-page .inner-hero .eyebrow,
.about-page .inner-hero .eyebrow {
    color: #888;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
}

.services-page .inner-hero h1,
.work-page .inner-hero h1,
.products-page .inner-hero h1,
.about-page .inner-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.services-page .inner-hero p,
.work-page .inner-hero p,
.products-page .inner-hero p,
.about-page .inner-hero p {
    color: #a0a0a0;
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.services-page .hero-actions,
.work-page .hero-actions,
.products-page .hero-actions,
.about-page .hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services & Products Page Grids */
.services-page .numbered-grid,
.products-page .numbered-grid,
.about-page .numbered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.services-page .numbered-card,
.products-page .numbered-card,
.about-page .numbered-card {
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.services-page .numbered-card:hover,
.products-page .numbered-card:hover,
.about-page .numbered-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.services-page .numbered-card span,
.products-page .numbered-card span,
.about-page .numbered-card span {
    display: block;
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem;
    font-weight: 300;
}

.services-page .numbered-card h3,
.products-page .numbered-card h3,
.about-page .numbered-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.services-page .numbered-card p,
.products-page .numbered-card p,
.about-page .numbered-card p {
    color: #a0a0a0;
    line-height: 1.6;
}

/* Work Page Portfolio Grid */
.work-page .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.work-page .portfolio-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.work-page .portfolio-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-page .portfolio-card:hover img {
    transform: scale(1.05);
}

.work-page .portfolio-info {
    padding: 2rem;
}

.work-page .portfolio-info span {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.work-page .portfolio-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Simple Lists (How We Work, About Approach, Formats) */
.services-page .simple-list,
.work-page .simple-list,
.products-page .simple-list,
.about-page .simple-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.services-page .simple-list li,
.work-page .simple-list li,
.products-page .simple-list li,
.about-page .simple-list li {
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    color: #ccc;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

/* Responsive Adjustments for Inner Pages */
@media (max-width: 768px) {
    .work-page .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .services-page .inner-hero,
    .work-page .inner-hero,
    .products-page .inner-hero,
    .about-page .inner-hero {
        padding: 140px 1rem 80px;
    }
}
