/* =============================================
    CSS CUSTOM PROPERTIES
============================================= */
:root {
    --bg:          #080c10;
    --bg-card:     #0d1117;
    --bg-card2:    #111820;
    --border:      #1c2535;
    --border-hi:   #2a3a52;
    --yellow:      #f5c000;
    --yellow-dim:  #b08c00;
    --yellow-glow: rgba(245,192,0,0.12);
    --yellow-faint:rgba(245,192,0,0.05);
    --text:        #b8c4d0;
    --text-bright: #e4eaf0;
    --text-muted:  #566578;
    --red-alert:   #e05050;
    --nav-h:       64px;
    --section-pad: clamp(64px, 8vw, 112px);
    --radius:      0px;
    --transition:  0.22s cubic-bezier(0.4,0,0.2,1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle grid texture overlay on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

a { color: var(--yellow); text-decoration: none; transition: color var(--transition); }
a:hover { color: #ffe066; }

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

h1, h2, h3, h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.08;
    letter-spacing: 0.01em;
}

section { position: relative; z-index: 1; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px);
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Yellow rule accent */
.y-rule {
    display: inline-block;
    width: 40px; height: 3px;
    background: var(--yellow);
    vertical-align: middle;
    flex-shrink: 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 20px;
}

/* =============================================
    NAVIGATION
============================================= */
#site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: background var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}

#site-nav.scrolled {
    background: rgba(8,12,16,0.96);
    border-bottom-color: var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 0.08em;
    color: var(--text-bright);
    text-decoration: none;
}

.nav-logo span { color: var(--yellow); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
    padding: 4px 8px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
}

.nav-cta {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 10px 22px;
    border: 2px solid var(--yellow);
    color: var(--yellow) !important;
    border-bottom: 2px solid var(--yellow) !important;
    transition: background var(--transition), color var(--transition) !important;
}

.nav-cta:hover {
    background: var(--yellow);
    color: var(--bg) !important;
    border-bottom-color: var(--yellow) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-bright);
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
    HERO
============================================= */
#hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fallback gradient when video not available */
.hero-video-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
    linear-gradient(to top, rgba(8,12,16,0.96) 0%, rgba(8,12,16,0.55) 35%, rgba(8,12,16,0.2) 65%, rgba(8,12,16,0.4) 100%),
    linear-gradient(135deg, rgba(245,192,0,0.06) 0%, transparent 50%);
}

/* Scan-line over video */
.hero-video-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
    );
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: clamp(56px, 8vw, 96px);
}

.hero-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--yellow);
}

.hero-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(64px, 10vw, 148px);
    line-height: 0.9;
    letter-spacing: 0.02em;
    color: var(--text-bright);
    margin-bottom: 28px;
}

.hero-headline em {
    font-style: normal;
    color: var(--yellow);
}

.hero-sub {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 300;
    color: var(--text);
    max-width: 540px;
    margin-bottom: 44px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 14px 32px;
    background: var(--yellow);
    color: var(--bg);
    border: 2px solid var(--yellow);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary:hover {
    background: transparent;
    color: var(--yellow);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-bright);
    border: 2px solid var(--border-hi);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-ghost:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-1px);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    right: clamp(20px, 4vw, 56px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    writing-mode: vertical-lr;
}

.hero-scroll-hint::after {
    content: '';
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--yellow), transparent);
    animation: scrollDrop 2s ease-in-out infinite;
}

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

/* Stats bar below hero */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--yellow) 0%, var(--yellow-dim) 40%, transparent 100%);
    z-index: 5;
}

/* =============================================
    TICKER / MARQUEE
============================================= */
.ticker-wrap {
    background: var(--yellow);
    overflow: hidden;
    padding: 10px 0;
    border-top: none;
    border-bottom: 2px solid var(--yellow-dim);
}

.ticker-inner {
    display: flex;
    width: max-content;
    animation: tickerScroll 28s linear infinite;
}

.ticker-inner:hover { animation-play-state: paused; }

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bg);
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.ticker-dot {
    width: 4px; height: 4px;
    background: rgba(8,12,16,0.4);
    border-radius: 50%;
    flex-shrink: 0;
}

/* =============================================
    SERVICES
============================================= */
#services {
    padding: var(--section-pad) 0;
    background: var(--bg);
}

.section-header {
    margin-bottom: clamp(40px, 6vw, 72px);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-end;
    gap: 24px;
}

.section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 5.5vw, 76px);
    letter-spacing: 0.02em;
    color: var(--text-bright);
}

.section-header p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 320px;
    text-align: right;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--bg-card);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: background var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.service-card:hover { background: var(--bg-card2); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-hi);
    flex-shrink: 0;
}

.service-icon svg {
    width: 24px; height: 24px;
    stroke: var(--yellow);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.service-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.24em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-left: auto;
    align-self: flex-start;
}

.service-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-bright);
    text-transform: uppercase;
}

.service-card p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    flex-grow: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--border-hi);
    color: var(--text-muted);
}

/* =============================================
   TABS SCROLL WRAPPER — horizontal scroll indicator
============================================= */
.tabs-scroll-wrap {
    position: relative;
    margin-bottom: 48px;
    overflow: hidden; /* clip the scrollable child so it can't extend the page width */
}

.tabs-scroll-wrap .industry-tabs {
    margin-bottom: 0;
}

/* Fade-out right edge to hint at horizontal scroll */
.tabs-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 1px;
    width: 48px;
    background: linear-gradient(to right, transparent, var(--bg-card));
    pointer-events: none;
    z-index: 2;
    display: none; /* shown only on mobile via media query */
}

@media (max-width: 768px) {
    .tabs-scroll-wrap::after {
        display: block;
    }
}

/* =============================================
   INDUSTRIES / PORTFOLIO
============================================= */
#portfolio {
    padding: var(--section-pad) 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.industry-tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.ind-tab {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 14px 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition), border-color var(--transition);
}

.ind-tab:hover { color: var(--text-bright); }

.ind-tab.active {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
}

.industry-panel { display: none; }
.industry-panel.active { display: block; }

.industry-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.industry-intro h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    color: var(--text-bright);
    letter-spacing: 0.02em;
}

.industry-intro p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.75;
    padding-top: 8px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: pointer;
    group: true;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), filter 0.4s;
    filter: saturate(0.7) brightness(0.85);
}

.portfolio-item:hover img {
    transform: scale(1.05);
    filter: saturate(1) brightness(1);
}

.portfolio-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,12,16,0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }

.portfolio-item-overlay h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-bright);
}

.portfolio-item-overlay span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yellow);
}

/* Placeholder for portfolio items without images */
.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card2) 0%, var(--bg) 100%);
    position: absolute;
    inset: 0;
}

.portfolio-placeholder span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.portfolio-item-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: var(--yellow);
    color: var(--bg);
    padding: 4px 10px;
}

/* =============================================
    ABOUT / TEAM
============================================= */
#about {
    padding: var(--section-pad) 0;
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    margin-bottom: 80px;
}

.about-text h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 4.5vw, 64px);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.about-text p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 36px;
}

.stat-cell {
    background: var(--bg-card);
    padding: 24px 20px;
}

.stat-cell .num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 44px;
    color: var(--yellow);
    line-height: 1;
    display: block;
}

.stat-cell .lbl {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

.about-visual {
    position: relative;
}

.about-visual-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid var(--border);
    filter: saturate(0.8);
}

.about-visual::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--yellow);
    z-index: -1;
}

.team-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: 0.02em;
    color: var(--text-bright);
    margin-bottom: 36px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.team-card {
    background: var(--bg-card);
    overflow: hidden;
    position: relative;
    transition: background var(--transition);
}

.team-card:hover { background: var(--bg-card2); }

.team-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: grayscale(0.6) brightness(0.85);
    transition: filter 0.4s;
    display: block;
}

.team-card:hover .team-photo {
    filter: grayscale(0) brightness(1);
}

/* Placeholder for team photos */
.team-photo-ph {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(160deg, #111820 0%, #0d1117 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-ph svg {
    width: 48px; height: 48px;
    stroke: var(--border-hi);
    fill: none;
    stroke-width: 1;
}

.team-info {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.team-info h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.team-info .role {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--yellow);
}

.team-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.6;
}

/* =============================================
    CALL TO ACTION
============================================= */
#cta {
    padding: var(--section-pad) 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

#cta::before {
    content: '';
    position: absolute;
    left: -10%;
    top: -50%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(245,192,0,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.cta-inner h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 5vw, 72px);
    letter-spacing: 0.02em;
    color: var(--text-bright);
    max-width: 700px;
}

.cta-inner h2 em {
    font-style: normal;
    color: var(--yellow);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.cta-note {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

/* =============================================
    PROCESS
============================================= */
#process {
    padding: var(--section-pad) 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    counter-reset: step;
}

.process-step {
    background: var(--bg-card);
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    counter-increment: step;
}

.process-step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 16px; right: 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: rgba(245,192,0,0.08);
    line-height: 1;
}

.process-step h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin-top: 12px;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
}

.process-step .step-icon {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--yellow);
}

.process-step .step-icon svg {
    width: 18px; height: 18px;
    stroke: var(--yellow);
    fill: none;
    stroke-width: 1.5;
}

/* =============================================
    CONTACT
============================================= */
#contact {
    padding: var(--section-pad) 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.contact-info h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 4vw, 58px);
    letter-spacing: 0.02em;
    color: var(--text-bright);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 36px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-detail-icon {
    width: 36px; height: 36px;
    flex-shrink: 0;
    border: 1px solid var(--border-hi);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.contact-detail-icon svg {
    width: 16px; height: 16px;
    stroke: var(--yellow);
    fill: none;
    stroke-width: 1.5;
}

.contact-detail-text strong {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-detail-text a,
.contact-detail-text span {
    font-size: 15px;
    color: var(--text-bright);
}

.contact-detail-text a:hover { color: var(--yellow); }

/* Form */
.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-card);
    border: 1px solid var(--border-hi);
    color: var(--text-bright);
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    padding: 12px 14px;
    outline: none;
    transition: border-color var(--transition);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23566578' stroke-width='1.5' fill='none' stroke-linecap='square'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option { background: var(--bg-card); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--yellow);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); font-size: 13px; }

.form-submit {
    margin-top: 8px;
}

.form-submit .btn-primary { width: 100%; justify-content: center; }

.form-notice {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
}

#form-feedback {
    margin-top: 14px;
    padding: 12px 14px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    display: none;
}

#form-feedback.success {
    display: block;
    border: 1px solid var(--yellow);
    color: var(--yellow);
    background: var(--yellow-faint);
}

#form-feedback.error {
    display: block;
    border: 1px solid var(--red-alert);
    color: var(--red-alert);
    background: rgba(224,80,80,0.05);
}

/* =============================================
    FOOTER
============================================= */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 48px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.footer-brand .nav-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 260px;
}

.footer-col h5 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--yellow); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px; height: 36px;
    border: 1px solid var(--border-hi);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition), background var(--transition);
}

.social-link:hover {
    border-color: var(--yellow);
    background: var(--yellow-faint);
}

.social-link svg {
    width: 15px; height: 15px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.5;
    transition: stroke var(--transition);
}

.social-link:hover svg { stroke: var(--yellow); }

/* =============================================
    MOBILE NAV OVERLAY
============================================= */
#mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8,12,16,0.98);
    z-index: 999;
    flex-direction: column;
    padding: 40px clamp(20px, 4vw, 56px);
    gap: 4px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#mobile-nav.open { display: flex; }

#mobile-nav a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: 0.06em;
    color: var(--text);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}

#mobile-nav a:hover, #mobile-nav a:last-child { color: var(--yellow); }
#mobile-nav a:last-child { border: none; margin-top: 20px; }

/* =============================================
    FADE-IN ANIMATION
============================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
    RESPONSIVE
============================================= */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    :root { --nav-h: 56px; }

    .nav-links { display: none; }
    .hamburger { display: flex; }

    .section-header {
    grid-template-columns: 1fr;
    }
    .section-header p { text-align: left; }

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

    .industry-intro { grid-template-columns: 1fr; }
    /* Single column on mobile — 16:9 items at 2-up are too narrow to preview or tap comfortably */
    .portfolio-grid { grid-template-columns: 1fr; }

    .about-grid { grid-template-columns: 1fr; }
    .about-visual { display: none; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }

    .cta-inner { grid-template-columns: 1fr; }
    .cta-actions { align-items: flex-start; flex-direction: row; }

    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    /* Tabs: horizontal-only scroll, anchored to page — no vertical drift */
    .industry-tabs {
        overflow-x: auto;
        overflow-y: hidden;       /* lock vertical axis completely */
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain; /* stops horizontal scroll bleeding to page */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .industry-tabs::-webkit-scrollbar { display: none; }

    .ind-tab {
        white-space: nowrap;
        padding: 14px 20px;
        flex-shrink: 0;
    }

    /* Always show overlay on touch so content is readable without hover */
    .portfolio-item .portfolio-item-overlay {
        opacity: 1;
    }

    /* Contact form tighter padding */
    .contact-form {
        padding: 24px 20px;
    }

    /* Slightly larger form inputs on mobile for touch accuracy */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}


/* ── Injected media styles ────────────────────────────────────────── */
.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), filter 0.4s;
    filter: saturate(0.7) brightness(0.85);
    display: block;
}
.portfolio-item:hover video {
    transform: scale(1.05);
    filter: saturate(1) brightness(1);
}
.portfolio-audio-wrap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 14px;
    background: rgba(8,12,16,0.88);
    backdrop-filter: blur(6px);
    z-index: 4;
    border-top: 1px solid var(--border-hi);
}
.portfolio-audio-wrap audio {
    width: 100%;
    height: 28px;
    accent-color: var(--yellow);
    filter: invert(0);
}

/* =============================================
   LIGHTBOX
============================================= */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 32px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

#lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

#lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8,12,16,0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#lb-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    background: var(--bg-card);
    border: 1px solid var(--border-hi);
    display: flex;
    flex-direction: column;
    max-height: calc(100svh - 24px);
    transform: translateY(12px);
    transition: transform 0.22s ease;
    overflow: hidden;
}

#lightbox.open #lb-panel {
    transform: translateY(0);
}

/* Header */
#lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-shrink: 0;
    min-height: 52px;
}

#lb-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

#lb-industry {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--yellow);
}

#lb-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#lb-tag-display {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: var(--yellow);
    color: var(--bg);
    padding: 3px 10px;
}

#lb-close {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-hi);
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

#lb-close svg {
    width: 16px; height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    pointer-events: none;
}

#lb-close:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    background: var(--yellow-faint);
}

/* Media area */
#lb-media {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 180px;
    padding: 0;
}

#lb-media video {
    width: 100%;
    max-height: calc(100svh - 180px);
    object-fit: contain;
    display: block;
    background: #000;
}

#lb-media img {
    max-width: 100%;
    max-height: calc(100svh - 180px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#lb-media .lb-audio-wrap {
    width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

#lb-media .lb-audio-wrap img {
    max-height: 260px;
    width: auto;
}

#lb-media .lb-audio-wrap audio {
    width: 100%;
    max-width: 480px;
    accent-color: var(--yellow);
}

/* Footer nav */
#lb-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    min-height: 52px;
    gap: 12px;
}

#lb-counter {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

.lb-nav-btn {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-hi);
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: border-color var(--transition), color var(--transition);
    flex-shrink: 0;
}

.lb-nav-btn:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.lb-nav-btn svg {
    width: 16px; height: 16px;
    stroke: currentColor;
    fill: none;
    pointer-events: none;
}

.lb-nav-btn:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

/* =============================================
   PORTFOLIO — TOUCH / CLICK AFFORDANCE
============================================= */

/* On all devices: show a subtle "expand" icon always visible in corner */
.portfolio-item::after {
    content: '';
    position: absolute;
    top: 10px; right: 10px;
    width: 28px; height: 28px;
    background: rgba(8,12,16,0.7)
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c000' stroke-width='1.8' stroke-linecap='square'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E")
                center/14px no-repeat;
    border: 1px solid rgba(245,192,0,0.25);
    z-index: 4;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.portfolio-item:hover::after,
.portfolio-item:focus-visible::after {
    opacity: 1;
}

/* Touch devices: always show overlay + expand icon (no hover) */
.touch-device .portfolio-item .portfolio-item-overlay {
    opacity: 1;
}

.touch-device .portfolio-item::after {
    opacity: 1;
}

/* Keyboard focus ring */
.portfolio-item:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}


