/* ==========================================================================
   Laptolab — Site Stylesheet
   Brand: logo blue #0880BD + logo green #0A901D on a navy foundation.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    --navy-950: #061226;
    --navy-900: #0A1A33;
    --navy-800: #102544;
    --navy-700: #1A3460;

    --blue-50:  #EAF5FC;
    --blue-100: #D3EAF8;
    --blue-500: #0880BD;   /* logo blue (decorative / large text) */
    --blue-600: #0770A6;   /* accessible on white: buttons, links */
    --blue-700: #055A86;

    --green-50:  #E9F7EC;
    --green-500: #0A901D;  /* logo green (decorative) */
    --green-600: #087A18;  /* accessible on white */

    --ink:       #0F172A;
    --text:      #334155;
    --muted:     #5B6B82;
    --line:      #E3E8EF;
    --line-soft: #EEF2F6;
    --surface:   #F5F8FB;
    --white:     #FFFFFF;
    --danger:    #C62828;
    --danger-50: #FDECEC;

    --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
    --shadow:    0 4px 6px -2px rgba(15, 23, 42, .05), 0 12px 24px -6px rgba(15, 23, 42, .10);
    --shadow-lg: 0 24px 48px -12px rgba(10, 26, 51, .25);

    --container: 1200px;
    --gutter: 24px;
    --header-h: 76px;

    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

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

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    font-family: var(--font-heading);
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -.02em;
    font-weight: 700;
    text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.625rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-700); }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--blue-100); color: var(--ink); }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

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

.skip-link {
    position: absolute;
    left: 16px; top: -100px;
    z-index: 1000;
    padding: 12px 18px;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- 3. Layout ---------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding: clamp(64px, 5rem + 2vw, 112px) 0; }
.section--tight { padding: clamp(48px, 3rem + 2vw, 72px) 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy-900); color: #C4D0E1; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head {
    max-width: 680px;
    margin: 0 0 clamp(36px, 3vw, 56px);
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.0625rem; color: var(--muted); }
.section--dark .section-head p { color: #A9B7CB; }

.section-head--split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.section-head--split > div { max-width: 640px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-family: var(--font-heading);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue-600);
}
.eyebrow::before {
    content: "";
    width: 18px; height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue-500) 50%, var(--green-500) 50%);
}
.section--dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: #7CC4EA; }

.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--muted); }

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

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}

/* ---------- 4. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
    white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue-600); color: var(--white); box-shadow: 0 6px 16px -6px rgba(7, 112, 166, .6); }
.btn-primary:hover { background: var(--blue-700); color: var(--white); }

.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--blue-50); color: var(--navy-900); }

.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }

.btn-ghost-light { border-color: rgba(255, 255, 255, .28); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }

.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .9375rem;
    color: var(--blue-600);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- 5. Top bar & Header ---------- */
.topbar {
    background: var(--navy-950);
    color: #A9B7CB;
    font-size: .8125rem;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
}
.topbar-list { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar-list li, .topbar-list a { display: inline-flex; align-items: center; gap: 8px; color: #C4D0E1; }
.topbar-list a:hover { color: var(--white); }
.topbar .icon { width: 14px; height: 14px; color: #7CC4EA; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -12px rgba(15, 23, 42, .18); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.3125rem; letter-spacing: -.02em; }
.brand-name span { color: var(--green-600); }
.brand-name b { color: var(--blue-600); font-weight: 800; }
.brand-sub { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .9375rem;
    color: var(--text);
}
.nav-link:hover { color: var(--ink); background: var(--surface); }
.nav-link.is-active { color: var(--blue-600); }
.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue-600);
}
.nav-cta { margin-left: 12px; }
.nav-cta .btn { min-height: 44px; padding: 10px 20px; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.nav-mobile-extra { display: none; }

/* ---------- 6. Hero (home) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy-900);
    color: #C4D0E1;
    padding: clamp(64px, 6vw, 104px) 0 clamp(72px, 7vw, 120px);
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -2;
    background:
        radial-gradient(600px 400px at 85% 10%, rgba(8, 128, 189, .35), transparent 70%),
        radial-gradient(500px 360px at 60% 100%, rgba(10, 144, 29, .22), transparent 70%),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 .accent {
    background: linear-gradient(90deg, #4FB6EA, #4CC764);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .lead { color: #B4C2D6; max-width: 560px; margin-bottom: 32px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 6px 14px 6px 6px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    font-size: .875rem;
    color: #D7E1EE;
}
.hero-badge strong {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--green-500);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: .75rem;
    letter-spacing: .04em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .9375rem; color: #C4D0E1; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { width: 18px; height: 18px; color: #4CC764; }

.hero-visual { position: relative; }
.hero-photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 5 / 4;
    border: 1px solid rgba(255, 255, 255, .12);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(6, 18, 38, .55));
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
}
.float-card .float-icon {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
}
.float-card .float-icon .icon { width: 22px; height: 22px; }
.float-card strong { display: block; font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.1; }
.float-card span { font-size: .8125rem; color: var(--muted); }
.float-card--a { left: -28px; bottom: 36px; }
.float-card--a .float-icon { background: var(--green-50); color: var(--green-600); }
.float-card--b { right: -20px; top: 28px; }
.float-card--b .float-icon { background: var(--blue-50); color: var(--blue-600); }

/* ---------- 7. Stats ---------- */
.stats-bar {
    position: relative;
    z-index: 2;
    margin-top: -56px;
}
.stats-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.stat { padding: 28px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.stat-value .suffix { color: var(--blue-500); }
.stat-label { display: block; margin-top: 6px; font-size: .9375rem; color: var(--muted); }

.stats-inline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stats-inline .stat { padding: 0; text-align: left; border: 0; }
.section--dark .stat-value { color: var(--white); }
.section--dark .stat-label { color: #A9B7CB; }

/* ---------- 8. Cards ---------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card p { color: var(--muted); }
a.card, .card--hover { color: inherit; }
a.card:hover, .card--hover:hover {
    border-color: var(--blue-100);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    color: inherit;
}

.icon-tile {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--blue-50);
    color: var(--blue-600);
}
.icon-tile .icon { width: 26px; height: 26px; }
.icon-tile--green { background: var(--green-50); color: var(--green-600); }
.icon-tile--dark { background: rgba(255, 255, 255, .08); color: #7CC4EA; }
.icon-tile--whatsapp { background: #E7F8EE; color: #128C4B; }
.btn-whatsapp { background: #1FA855; color: var(--white); }
.btn-whatsapp:hover { background: #178A45; color: var(--white); }
.icon-tile--sm { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0; }
.icon-tile--sm .icon { width: 22px; height: 22px; }

.service-card .link-arrow { margin-top: auto; padding-top: 18px; }
.service-card h3 { margin-bottom: 10px; }
a.service-card:hover .icon-tile { background: var(--blue-600); color: var(--white); }
.service-card .icon-tile { transition: background-color .25s var(--ease), color .25s var(--ease); }

.service-card--full .feature-list { margin: 6px 0 4px; }

/* Feature checklist */
.feature-list { display: grid; gap: 10px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); }
.feature-list .icon {
    width: 20px; height: 20px;
    margin-top: 2px;
    padding: 3px;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--green-600);
    stroke-width: 3;
}
.feature-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }

/* ---------- 9. Why us / media ---------- */
.media-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3.4;
    background: var(--surface);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-wrap { position: relative; }
.media-wrap::before {
    content: "";
    position: absolute;
    inset: auto -18px -18px auto;
    width: 60%; height: 60%;
    z-index: -1;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle, var(--blue-100) 2px, transparent 2.5px) 0 0 / 16px 16px;
}
.media-badge {
    position: absolute;
    left: 24px; bottom: 24px;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}
.media-badge strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.media-badge span { font-size: .8125rem; color: var(--muted); }

.feature-rows { display: grid; gap: 22px; margin-top: 28px; }
.feature-row { display: flex; gap: 18px; }
.feature-row h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.feature-row p { color: var(--muted); font-size: .9375rem; }

/* ---------- 10. Industries ---------- */
.industry {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
}

/* ---------- 11. Process ---------- */
.process { counter-reset: step; }
.process-step {
    position: relative;
    padding: 28px 24px 24px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
}
.process-step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: .875rem;
    letter-spacing: .06em;
    color: var(--blue-600);
}
.process-step h3 { font-size: 1.125rem; }
.process-step p { color: var(--muted); font-size: .9375rem; }
.process-step::after {
    content: "";
    position: absolute;
    top: 38px; right: -18px;
    width: 12px; height: 12px;
    border-top: 2px solid var(--line);
    border-right: 2px solid var(--line);
    transform: rotate(45deg);
}
.process-step:last-child::after, .grid-2 > .process-step::after { display: none; }

/* ---------- 12. Work / Portfolio ---------- */
.work-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--white);
    transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.work-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.work-media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.work-body h3 { margin: 0; font-size: 1.1875rem; }
.work-body p { color: var(--muted); font-size: .9375rem; }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: .75rem;
    font-weight: 600;
    color: var(--text);
}
.tag--brand { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-700); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-btn {
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .9375rem;
    color: var(--text);
    cursor: pointer;
    transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.filter-btn[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.work-item[hidden] { display: none; }

/* ---------- 13. Testimonials ---------- */
.quote-card { padding: 32px; }
.quote-card .quote-icon { width: 32px; height: 32px; color: var(--blue-100); fill: var(--blue-100); margin-bottom: 18px; }
.quote-card blockquote { margin: 0 0 24px; color: var(--text); font-size: 1rem; line-height: 1.7; }
.stars { display: flex; gap: 2px; margin-bottom: 16px; color: #F5A524; }
.stars .icon { width: 16px; height: 16px; fill: currentColor; }
.person { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.avatar {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-600), var(--green-600));
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .9375rem;
}
.person strong { display: block; color: var(--ink); font-family: var(--font-heading); }
.person span { font-size: .875rem; color: var(--muted); }

/* ---------- 14. CTA band ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: clamp(36px, 4vw, 56px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(420px 260px at 100% 0%, rgba(8, 128, 189, .45), transparent 70%),
        radial-gradient(360px 240px at 0% 100%, rgba(10, 144, 29, .3), transparent 70%),
        var(--navy-900);
    color: #C4D0E1;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
.cta-band p { max-width: 560px; color: #B4C2D6; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 15. Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 5vw, 88px) 0 clamp(56px, 5vw, 80px);
    background: var(--navy-900);
    color: #B4C2D6;
    isolation: isolate;
}
.page-hero::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background:
        radial-gradient(520px 300px at 90% 0%, rgba(8, 128, 189, .35), transparent 70%),
        radial-gradient(400px 260px at 10% 120%, rgba(10, 144, 29, .2), transparent 70%);
}
.page-hero::after {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 14px; }
.page-hero .lead { color: #B4C2D6; max-width: 640px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 20px; font-size: .875rem; }
.breadcrumb a { color: #A9B7CB; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .icon { width: 14px; height: 14px; color: #5D7190; }
.breadcrumb [aria-current] { color: var(--white); }

/* ---------- 16. About ---------- */
.value-card h3 { margin-bottom: 8px; }
.about-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 24px 0 32px; }

/* ---------- 17. Service detail ---------- */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
}
.detail-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8; margin-bottom: 40px; background: var(--surface); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose > p { font-size: 1.0625rem; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.benefit { padding: 24px; border-radius: var(--radius); background: var(--surface); }
.benefit h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.benefit p { font-size: .9375rem; color: var(--muted); }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.side-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.side-card h3 { font-size: 1.0625rem; margin-bottom: 16px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a {
    display: flex; align-items: center; gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: .9375rem;
}
.side-nav a:hover { background: var(--surface); color: var(--ink); }
.side-nav a .icon { width: 20px; height: 20px; color: var(--blue-600); }
.side-nav a .icon:last-child { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.side-card--dark { background: var(--navy-900); border-color: var(--navy-900); color: #B4C2D6; }
.side-card--dark h3 { color: var(--white); font-size: 1.25rem; }
.side-card--dark p { margin-bottom: 20px; }
.side-contact { display: grid; gap: 10px; margin-top: 20px; font-size: .9375rem; }
.side-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
.side-contact .icon { width: 18px; height: 18px; color: #7CC4EA; }

/* ---------- 18. Contact ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
}
.form-card { padding: clamp(28px, 3vw, 44px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-field--full { grid-column: 1 / -1; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-label .opt { color: var(--muted); font-weight: 400; font-size: .8125rem; margin-left: 4px; }
.form-control {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.form-control::placeholder { color: #8A98AC; }
.form-control:hover { border-color: #C9D3DF; }
.form-control:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(8, 128, 189, .15); }
textarea.form-control { min-height: 150px; resize: vertical; }
select.form-control {
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235B6B82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.form-control.is-invalid, .form-control[aria-invalid="true"] { border-color: var(--danger); }
.form-control.is-invalid:focus, .form-control[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(198, 40, 40, .12); }
.field-error { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .875rem; color: var(--danger); }
.field-error .icon { width: 16px; height: 16px; }
.field-error:empty { display: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: .875rem; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }

.alert {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid;
    font-size: .9375rem;
}
.alert .icon { width: 22px; height: 22px; margin-top: 1px; }
.alert--success { background: var(--green-50); border-color: #BFE5C6; color: #14532D; }
.alert--error { background: var(--danger-50); border-color: #F5C2C2; color: #7F1D1D; }

.info-stack { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.info-card p, .info-card a { font-size: .9375rem; color: var(--muted); }
.info-card a { color: var(--blue-600); font-weight: 600; }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--navy-950); color: #A9B7CB; font-size: .9375rem; }
.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr;
    gap: 40px;
    padding: clamp(56px, 5vw, 80px) 0 48px;
}
.site-footer .brand { color: var(--white); }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-name b { color: #4FB6EA; }
.site-footer .brand-name span { color: #4CC764; }
.site-footer .brand-sub { color: #7D8DA6; }
.site-footer .brand img { background: var(--white); border-radius: 10px; padding: 3px; }
.footer-about { margin: 20px 0 24px; max-width: 320px; }
.footer-title { margin-bottom: 18px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
.footer-links { display: grid; gap: 4px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; color: #A9B7CB; }
.footer-links a:hover { color: var(--white); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: #7CC4EA; }
.footer-contact a { color: #D7E1EE; }
.footer-contact a:hover { color: var(--white); }
.social { display: flex; gap: 10px; }
.social a {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    color: #C4D0E1;
}
.social a:hover { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: .875rem; color: #7D8DA6; }
.footer-bottom a { color: #A9B7CB; }

.to-top {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 90;
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--navy-900);
    color: var(--white);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-600); }

/* ---------- 20. 404 ---------- */
.error-page { text-align: center; padding: clamp(80px, 10vw, 140px) 0; }
.error-code {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(5rem, 3rem + 10vw, 9rem);
    line-height: 1;
    letter-spacing: -.05em;
    background: linear-gradient(90deg, var(--blue-500), var(--green-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}
.error-page .lead { max-width: 520px; margin: 0 auto 32px; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- 21. Reveal motion ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 22. Responsive ---------- */
@media (max-width: 1100px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
    .detail-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .float-card--a { left: -8px; }
    .float-card--b { right: -8px; }
}

@media (max-width: 991px) {
    :root { --header-h: 68px; }

    .topbar { display: none; }

    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        z-index: 99;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px var(--gutter) 32px;
        background: var(--white);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link { min-height: 56px; padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line-soft); font-size: 1.0625rem; }
    .nav-link:hover { background: transparent; }
    .nav-link.is-active::after { display: none; }
    .nav-cta { margin: 24px 0 0; }
    .nav-cta .btn { width: 100%; min-height: 52px; }
    .nav-mobile-extra { display: grid; gap: 12px; margin-top: 28px; font-size: .9375rem; }
    .nav-mobile-extra a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
    .nav-mobile-extra .icon { width: 18px; height: 18px; color: var(--blue-600); }

    .hero-grid, .split, .contact-layout, .detail-layout { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; margin: 8px auto 0; width: 100%; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
    .stats-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-step::after { display: none; }
    .benefit-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .split--reverse-mobile > :first-child { order: 2; }
    .map-frame { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }

    .grid-2, .grid-3, .grid-4, .form-grid, .about-points, .feature-list--2col { grid-template-columns: 1fr; }
    .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
    .float-card { padding: 10px 14px; gap: 10px; }
    .float-card .float-icon { width: 36px; height: 36px; }
    .float-card strong { font-size: 1.0625rem; }
    .float-card--a { left: 8px; bottom: 12px; }
    .float-card--b { right: 8px; top: 12px; }
    .stat { padding: 22px 12px; }
    .card, .quote-card { padding: 24px; }
    .footer-main { grid-template-columns: 1fr; gap: 32px; }
    .brand-sub { display: none; }
    .media-badge { left: 12px; bottom: 12px; padding: 12px 16px; }
    .section-head--split .btn { width: 100%; }
}

/* ==========================================================================
   Case study (portfolio detail) + card links
   ========================================================================== */
.work-card { position: relative; }
.work-body h3 a { color: var(--ink); }
.work-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.work-link:focus-visible { outline: none; }
.work-card:focus-within { outline: 3px solid var(--blue-500); outline-offset: 3px; }
.work-card .work-more { margin-top: 4px; }
.work-card:hover .work-more .icon { transform: translateX(3px); }
.work-card .tag-row + .work-more { margin-top: 12px; }

.page-hero--case { padding-bottom: clamp(120px, 12vw, 180px); }
.case-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.case-facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7D8DA6; }
.case-facts dd { margin: 4px 0 0; font-family: var(--font-heading); font-weight: 600; color: var(--white); }

.case-cover {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * clamp(88px, 9vw, 140px));
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding-top: clamp(48px, 5vw, 80px); }

.result-list { display: grid; gap: 12px; }
.result-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--green-50);
    color: #14532D;
    font-weight: 500;
}
.result-list .icon { width: 22px; height: 22px; color: var(--green-600); margin-top: 1px; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery-item { margin: 0; }
.gallery-item a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-zoom {
    position: absolute; right: 12px; bottom: 12px;
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(10, 26, 51, .75);
    color: var(--white);
    opacity: 0;
    transition: opacity .2s var(--ease);
}
.gallery-item a:hover .gallery-zoom, .gallery-item a:focus-visible .gallery-zoom { opacity: 1; }
.gallery-item figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); }

.fact-list { display: grid; gap: 0; margin: 0; }
.fact-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: .9375rem; }
.fact-list div:first-child { padding-top: 0; }
.fact-list dt { color: var(--muted); }
.fact-list dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.fact-heading { margin: 20px 0 10px; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.case-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-bottom: clamp(48px, 5vw, 80px);
}
.case-nav-link {
    display: grid;
    gap: 6px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.case-nav-link:hover { border-color: var(--blue-100); box-shadow: var(--shadow); color: var(--ink); }
.case-nav-link--next { text-align: right; justify-items: end; }
.case-nav-label { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; color: var(--muted); }
.case-nav-label .icon { width: 16px; height: 16px; }
.case-nav-link strong { font-family: var(--font-heading); font-size: 1.125rem; }

.lightbox {
    width: 100vw; height: 100vh;
    max-width: 100vw; max-height: 100vh;
    margin: 0; padding: 0;
    border: 0;
    background: rgba(6, 18, 38, .94);
    color: var(--white);
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(6, 18, 38, .94); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 64px 0; max-height: 100vh; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #C4D0E1; font-size: .9375rem; text-align: center; }
.lightbox-close, .lightbox-nav {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border: 0; border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    cursor: pointer;
    justify-self: center;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox-close { position: absolute; top: 16px; right: 16px; }

.empty-state { max-width: 520px; margin: 0 auto; text-align: center; }
.empty-state .icon-tile { margin: 0 auto 20px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 640px) {
    .case-cover { aspect-ratio: 4 / 3; }
    .gallery, .case-nav { grid-template-columns: 1fr; }
    .case-nav-link--next { text-align: left; justify-items: start; }
    .lightbox[open] { grid-template-columns: 1fr; }
    .lightbox-nav { position: absolute; bottom: 20px; }
    .lightbox-prev { left: calc(50% - 60px); }
    .lightbox-next { right: calc(50% - 60px); }
    .lightbox figure { padding: 72px 12px 88px; }
}
