/* =========================================================
   Good Job Multimedia — main stylesheet (no build step)
   ========================================================= */
:root {
    --ink: #07122b;
    --ink-2: #0d1f45;
    --bg: #ffffff;
    --bg-alt: #f4f7fc;
    --surface: #ffffff;
    --text: #101828;
    --muted: #5a6478;
    --line: #e3e8f2;
    --brand: #1673e6;
    --brand-2: #16b3f2;
    --brand-soft: #e8f2ff;
    --accent: #ffad1f;
    --ok: #12a150;
    --err: #d92d20;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -8px rgba(16, 24, 40, .12);
    --shadow-lg: 0 24px 60px -20px rgba(7, 18, 43, .35);
    --font: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: "Kanit", "IBM Plex Sans Thai", system-ui, sans-serif;
    --container: 1200px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .7em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
    font: 500 1rem/1.2 var(--font-head); cursor: pointer; text-decoration: none !important;
    transition: transform .15s ease, background .2s, box-shadow .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-sm { padding: .5em 1.1em; font-size: .95rem; }
.btn-lg { padding: .9em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 115, 230, .6); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(22, 115, 230, .75); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { border-color: rgba(255, 255, 255, .3); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-light { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(16, 24, 40, .25); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand img { width: 40px; height: auto; }
.brand-text { font: 400 1.2rem/1 var(--font-head); letter-spacing: .01em; }
.brand-text strong { font-weight: 600; color: var(--brand); }
.brand-light { color: #fff; }
.brand-light .brand-text strong { color: var(--brand-2); }

.site-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); font: 400 1rem/1.4 var(--font-head); text-decoration: none; }
.site-nav > ul > li > a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.site-nav .btn { margin-left: 8px; color: #fff; }
.has-sub { position: relative; }
.sub {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
    list-style: none; margin: 0; padding: 8px; min-width: 240px; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .18s ease;
}
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 9px 12px; }
.sub a:hover { background: var(--bg-alt); color: var(--brand); }
.sub .icon { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Hero ---------- */
.hero, .page-hero, .cta-band {
    position: relative; overflow: hidden; color: #dbe6ff;
    background: radial-gradient(1200px 600px at 85% -10%, rgba(22, 179, 242, .35), transparent 60%),
                radial-gradient(900px 500px at -10% 110%, rgba(22, 115, 230, .45), transparent 60%),
                linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero h1, .page-hero h1, .cta-band h2 { color: #fff; }
.hero-dots {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(120, 180, 255, .35) 1.4px, transparent 1.6px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero { padding: 88px 0 110px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    font: 400 .9rem/1.4 var(--font-head); letter-spacing: .06em; color: #bcd3ff;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 0 rgba(62, 224, 143, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(62, 224, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 143, 0); } }
.hero h1 { margin: 22px 0 18px; font-weight: 500; }
.hero h1 { background: linear-gradient(90deg, #fff 40%, #9fd8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: 1.15rem; color: #b8c7e6; max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { display: flex; gap: 40px; margin: 44px 0 0; flex-wrap: wrap; }
.stats div { border-left: 2px solid rgba(22, 179, 242, .6); padding-left: 14px; }
.stats dt { font: 500 2rem/1 var(--font-head); color: #fff; }
.stats dd { margin: 6px 0 0; font-size: .92rem; color: #9fb2d8; }

.hero-visual { position: relative; height: 460px; }
.hero-card {
    position: absolute; margin: 0; border-radius: 18px; overflow: hidden; background: #0b1a3a;
    box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .12); transition: transform .4s ease;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card figcaption {
    position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px;
    background: rgba(7, 18, 43, .72); color: #fff; font: 400 .85rem/1.5 var(--font-head); backdrop-filter: blur(6px);
}
.hero-card-1 { width: 78%; height: 62%; right: 0; top: 0; transform: rotate(2deg); z-index: 2; }
.hero-card-1 figcaption { left: auto; right: 12px; bottom: auto; top: 12px; }
.hero-card-2 { width: 52%; height: 46%; left: 0; bottom: 4%; transform: rotate(-4deg); z-index: 3; }
.hero-card-3 { width: 44%; height: 38%; right: 4%; bottom: 0; transform: rotate(3deg); z-index: 1; }
.hero-visual:hover .hero-card-1 { transform: rotate(0) translateY(-6px); }
.hero-visual:hover .hero-card-2 { transform: rotate(-2deg) translateY(-4px); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0 96px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
.section-head-row h2 { margin: 0; }
.kicker { font: 500 .85rem/1.4 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
.kicker-light { color: var(--brand-2); }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service-grid > * { grid-column: span 2; }
.service-grid > :nth-child(4) { grid-column: 2 / span 2; }
.service-grid-sm { grid-template-columns: repeat(4, 1fr); }
.service-grid-sm > *, .service-grid-sm > :nth-child(4) { grid-column: auto; }
.service-card {
    position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card h3 { margin: 18px 0 8px; font-size: 1.3rem; }
.service-card h3 small { display: block; font: 400 .85rem/1.5 var(--font); color: var(--muted); margin-top: 2px; }
.service-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.service-card .more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font: 500 .95rem/1 var(--font-head); }
.service-card:hover .more .icon { transform: translateX(3px); }
.more .icon { transition: transform .2s; }
.service-icon {
    display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-soft), #dff6ff); color: var(--brand);
}
.service-icon .icon { width: 28px; height: 28px; }
.service-icon-lg { width: 72px; height: 72px; border-radius: 20px; }
.service-icon-lg .icon { width: 36px; height: 36px; }

.service-list { display: grid; gap: 20px; }
.service-row { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service-row h2 { font-size: 1.6rem; }
.service-row h2 a { color: var(--ink); }
.service-row h2 small { font: 400 1rem var(--font); color: var(--muted); margin-left: 6px; }
.service-row p { color: var(--muted); }
.service-row-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.service-num { font: 500 .9rem var(--font-head); color: var(--muted); letter-spacing: .1em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; }
.chips li { padding: 4px 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.chips-lg li { padding: 7px 14px; background: #fff; }

/* ---------- Works ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-link { display: block; color: inherit; text-decoration: none !important; }
.work-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #0d1f45; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover .work-thumb img { transform: scale(1.05); }
.work-body { padding: 18px 22px 22px; }
.work-cat { display: inline-block; font: 500 .78rem/1 var(--font-head); letter-spacing: .08em; color: var(--brand); background: var(--brand-soft); padding: 5px 10px; border-radius: 999px; }
.work-title { margin: 12px 0 6px; font-size: 1.2rem; color: var(--ink); }
.work-sum { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filters a {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
    color: var(--text); font: 400 1rem var(--font-head); text-decoration: none; background: #fff; transition: .2s;
}
.filters a span { font-size: .78rem; background: var(--bg-alt); color: var(--muted); padding: 1px 8px; border-radius: 999px; }
.filters a:hover { border-color: var(--brand); color: var(--brand); }
.filters a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters a.active span { background: rgba(255, 255, 255, .15); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.process li { position: relative; padding: 32px; border-radius: var(--radius); background: var(--bg-alt); }
.process .step { font: 600 2.6rem/1 var(--font-head); background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.process h3 { margin: 16px 0 8px; }
.process p { color: var(--muted); margin: 0; }

/* ---------- CTA ---------- */
.cta-band { padding: 72px 0; }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner p { color: #b8c7e6; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero ---------- */
.page-hero { padding: 64px 0 72px; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 28px; font-size: .9rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #6b7fa8; }
.crumbs a { color: #9fb2d8; }
.crumbs span { color: #fff; }
.page-404 { padding: 120px 0; }

/* ---------- Prose / split ---------- */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.8rem; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #344054; }
.prose ul { padding-left: 1.2em; }
.prose .btn { margin-top: 12px; }
.tech-box { padding: 28px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 24px); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; color: #344054; }
.check-list .icon { color: var(--ok); margin-top: 4px; }
.check-list strong { color: var(--ink); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature-check { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e7f8ee; color: var(--ok); }
.feature h3 { margin: 14px 0 6px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font: 500 1.05rem var(--font-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-tile { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; display: block; background: #0d1f45; }
.logo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.logo-tile span { position: absolute; inset: auto 0 0 0; padding: 24px 14px 10px; color: #fff; font: 400 .95rem var(--font-head); background: linear-gradient(transparent, rgba(7, 18, 43, .85)); }
.logo-tile:hover img { transform: scale(1.06); }

/* ---------- Work detail ---------- */
.work-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.work-main { min-width: 0; }
.gallery { margin-bottom: 40px; }
.gallery-main { display: block; border-radius: var(--radius); overflow: hidden; background: #0d1f45; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; max-height: 620px; object-fit: contain; margin: 0 auto; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs a { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; border: 2px solid transparent; opacity: .7; transition: .2s; background: #0d1f45; }
.gallery-thumbs a.active, .gallery-thumbs a:hover { border-color: var(--brand); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-top: 32px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.work-meta { position: sticky; top: calc(var(--header-h) + 24px); padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.work-meta dl { margin: 0 0 20px; display: grid; gap: 14px; }
.work-meta dt { font-size: .85rem; color: var(--muted); }
.work-meta dd { margin: 0; font: 500 1.05rem var(--font-head); color: var(--ink); }
.meta-cta { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.meta-cta p { margin: 0 0 10px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-cards { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.contact-cards li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.contact-cards small { display: block; color: var(--muted); font-size: .82rem; }
.contact-cards a, .contact-cards span { color: var(--ink); font-weight: 500; word-break: break-word; }
.ci { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; }
.form-card { padding: 36px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
    background: #fbfcfe; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22, 115, 230, .12); background: #fff; }
.has-error input, .has-error textarea { border-color: var(--err); }
.err { color: var(--err); font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; text-align: center; font-size: .85rem; color: var(--muted); }
.alert { padding: 16px 18px; border-radius: 12px; margin-bottom: 16px; }
.alert-error { background: #fef3f2; color: var(--err); border: 1px solid #fecdca; }
.alert-success { background: #ecfdf3; border: 1px solid #abefc6; color: #05603a; padding: 28px; }
.alert-success h2 { color: #05603a; font-size: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb2d8; padding: 72px 0 0; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand p { margin: 18px 0; }
.footer-title { font-size: 1rem; color: #fff; margin-bottom: 16px; letter-spacing: .04em; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #c8d6f2; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; color: var(--brand-2); }
.social { display: flex; gap: 10px; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07); transition: .2s; }
.social a:hover { background: var(--brand); color: #fff; }
.footer-bottom { margin-top: 56px; padding: 22px 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(5, 10, 25, .92); padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .pulse { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid > *, .service-grid > :nth-child(4) { grid-column: auto; }
    .service-grid-sm { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .logo-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg); padding: 12px 16px 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
    }
    .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
    .nav-open .nav-toggle .icon-open { display: none; }
    .nav-open .nav-toggle .icon-close { display: block; }
    .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .site-nav a { padding: 12px 14px; border-radius: 10px; }
    .sub { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
    .has-sub:hover .sub, .has-sub:focus-within .sub { transform: none; }
    .site-nav .btn { margin: 10px 0 0; }
    .hero { padding: 56px 0 72px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 340px; }
    .work-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: 1fr; }
    .split, .work-layout, .contact-layout { grid-template-columns: 1fr; }
    .tech-box, .work-meta { position: static; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .section { padding: 72px 0; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .brand-text { font-size: 1.05rem; }
    .stats { gap: 24px; }
    .stats dt { font-size: 1.6rem; }
    .hero-visual { height: 260px; }
    .service-grid, .service-grid-sm, .work-grid, .feature-grid { grid-template-columns: 1fr; }
    .service-row { grid-template-columns: 1fr; padding: 24px; gap: 12px; }
    .service-row-head { flex-direction: row; align-items: center; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 24px 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .logo-wall { grid-template-columns: repeat(2, 1fr); }
    .btn-lg { padding: .8em 1.3em; font-size: 1rem; }
    .hero-cta .btn, .cta-actions .btn { flex: 1 1 auto; }
}
