:root {
    --ink: #111820;
    --ink-2: #1c2733;
    --muted: #65717c;
    --paper: #f6f8fb;
    --surface: #ffffff;
    --surface-2: #edf3f7;
    --line: #d9e2ea;
    --blue: #1268f3;
    --cyan: #11bfd4;
    --teal: #13a39a;
    --green: #3dbb78;
    --coral: #ef6b55;
    --amber: #d9a72e;
    --dark: #101822;
    --shadow: 0 24px 70px rgba(13, 24, 36, .14);
    --soft-shadow: 0 14px 34px rgba(13, 24, 36, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Aptos", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.62;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { letter-spacing: 0; }
h1, h2, h3 { margin-top: 0; color: inherit; }
p { margin-top: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 12px 34px;
    background: rgba(246, 248, 251, .86);
    border-bottom: 1px solid rgba(217, 226, 234, .82);
    backdrop-filter: blur(18px);
}
.brand {
    display: inline-flex;
    align-items: center;
    width: 214px;
    min-height: 42px;
}
.brand img {
    width: 100%;
    height: auto;
}
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
    font-size: .94rem;
}
.nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: rgba(18, 104, 243, .07); }
.nav .button-link {
    color: #fff;
    background: var(--ink);
    box-shadow: 0 12px 24px rgba(17, 24, 32, .18);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 96px 34px 84px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(16, 24, 34, .98) 0%, rgba(19, 48, 64, .96) 48%, rgba(13, 103, 130, .88) 100%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 88%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(246,248,251,.98));
    pointer-events: none;
}
.hero-grid,
.hero-inner,
.section-inner {
    position: relative;
    z-index: 1;
    width: min(1160px, 100%);
    margin: 0 auto;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .78fr);
    gap: 58px;
    align-items: center;
}
.hero-grid.compact {
    grid-template-columns: minmax(0, 1fr) 260px;
}
.hero-copy { animation: rise-in .72s ease both; }
.kicker {
    margin: 0 0 14px;
    color: #7febf1;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}
h1 {
    max-width: 860px;
    margin: 0;
    font-size: 5.9rem;
    line-height: .92;
    font-weight: 800;
}
.hero-statement,
.hero p.lead {
    max-width: 680px;
    margin: 26px 0 0;
    color: rgba(255,255,255,.84);
    font-size: 1.16rem;
    line-height: 1.72;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff;
    box-shadow: 0 18px 36px rgba(18, 104, 243, .28);
}
.button.ghost {
    color: #fff;
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
}
.proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}
.proof span,
.proof a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    color: rgba(255,255,255,.84);
    background: rgba(255,255,255,.06);
    font-size: .9rem;
    font-weight: 700;
}
.filter-links a:hover { background: rgba(255,255,255,.16); color: #fff; }

.hero-showcase {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 28px 80px rgba(0,0,0,.25);
    backdrop-filter: blur(18px);
    animation: float-panel 7s ease-in-out infinite;
}
.showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    color: rgba(255,255,255,.72);
    font-size: .82rem;
    font-weight: 750;
    text-transform: uppercase;
}
.showcase-top img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: rgba(255,255,255,.94);
    border-radius: 8px;
    padding: 8px;
}
.showcase-window {
    overflow: hidden;
    min-height: 420px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background:
        linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.04)),
        rgba(8, 14, 22, .56);
}
.window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.window-bar span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--coral);
}
.window-bar span:nth-child(2) { background: var(--amber); }
.window-bar span:nth-child(3) { background: var(--green); }
.dashboard-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 18px;
}
.metric-card,
.interface-lines,
.device-preview {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
}
.metric-card {
    min-height: 102px;
    padding: 16px;
}
.metric-card small {
    display: block;
    color: rgba(255,255,255,.6);
    font-weight: 700;
    margin-bottom: 12px;
}
.metric-card strong { font-size: 1.08rem; font-weight: 750; }
.metric-card.strong { background: linear-gradient(135deg, rgba(18,104,243,.52), rgba(17,191,212,.36)); }
.interface-lines {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    padding: 18px;
}
.interface-lines i {
    display: block;
    height: 13px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,.14));
    animation: scan-line 3.8s ease-in-out infinite;
}
.interface-lines i:nth-child(2) { width: 76%; animation-delay: .3s; }
.interface-lines i:nth-child(3) { width: 58%; animation-delay: .6s; }
.interface-lines i:nth-child(4) { width: 86%; animation-delay: .9s; }
.device-preview {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    min-height: 120px;
    padding: 14px;
}
.device-preview span {
    border-radius: 8px;
    background: rgba(255,255,255,.1);
}
.device-preview span:first-child {
    grid-row: span 2;
    background: linear-gradient(160deg, rgba(17,191,212,.58), rgba(18,104,243,.2));
}
.signal-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.signal-strip span {
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.08);
    font-weight: 700;
    font-size: .86rem;
}
.hero-mark {
    display: grid;
    place-items: center;
}
.hero-mark img {
    width: 230px;
    border-radius: 8px;
    background: rgba(255,255,255,.95);
    padding: 16px;
    box-shadow: var(--shadow);
}
.compact-hero {
    min-height: 430px;
    padding-bottom: 70px;
}

.section { padding: 86px 34px; }
.section.alt {
    background:
        linear-gradient(180deg, #eef4f8 0%, #f8fafc 100%);
}
.section.dark {
    color: #fff;
    background:
        linear-gradient(160deg, #101822 0%, #132330 62%, #0d3440 100%);
}
.intro-band {
    padding-top: 70px;
    padding-bottom: 70px;
    background: var(--surface);
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.intro-grid h2 {
    max-width: 720px;
    margin-bottom: 0;
}
.intro-grid > p {
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.78;
}
.section-title {
    max-width: 800px;
    margin: 0 auto 44px;
    text-align: center;
}
.section-title h2,
.intro-grid h2,
.contact-layout h2 {
    font-size: 3.15rem;
    line-height: 1.06;
    margin-bottom: 16px;
    font-weight: 800;
}
.section-title p,
.contact-layout p {
    margin: 0;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.72;
}
.dark .section-title p,
.dark .card p { color: rgba(255,255,255,.72); }

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 1px 0 rgba(13, 24, 36, .04);
}
.dark .card {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.14);
    color: #fff;
}
.service-card,
.category-card,
.project-card,
.experience-card {
    min-height: 268px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.service-card:hover,
.category-card:hover,
.project-card:hover,
.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--soft-shadow);
    border-color: rgba(18, 104, 243, .28);
}
.card h3 {
    margin: 0 0 12px;
    font-size: 1.18rem;
    line-height: 1.24;
    font-weight: 760;
}
.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}
.service-card:nth-child(2n) .badge { background: var(--blue); }
.service-card:nth-child(3n) .badge { background: var(--coral); }
.service-card:nth-child(4n) .badge { background: var(--green); }
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 22px;
    padding: 7px 9px;
    border-radius: 8px;
    background: var(--teal);
    color: #fff;
    font-weight: 750;
    font-size: .76rem;
    text-transform: uppercase;
}
.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-top: 22px;
    color: #98f4ff;
    font-weight: 750;
    margin-top: auto;
}
.text-link::after {
    content: ">";
    margin-left: 9px;
}
.featured-title { margin-top: 58px; }
.card-image {
    width: 100%;
    height: 205px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 18px;
    background: rgba(255,255,255,.08);
}
.project-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}
.project-card {
    min-height: 520px;
    padding: 0;
    overflow: hidden;
}
.project-card .card-image {
    height: 290px;
    margin: 0;
    border-radius: 0;
    transition: transform .32s ease;
}
.project-image-link {
    display: block;
    overflow: hidden;
    background: rgba(255,255,255,.08);
}
.project-card:hover .card-image {
    transform: scale(1.035);
}
.project-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}
.project-card-body .text-link {
    color: #8bf2ff;
}
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.project-meta span {
    color: var(--ink);
    background: #edf4f1;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: .82rem;
    font-weight: 700;
}
.dark .project-meta span {
    color: #fff;
    background: rgba(255,255,255,.13);
}

.tech-carousel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.78);
    box-shadow: var(--soft-shadow);
    padding: 22px 0;
}
.tech-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: tech-scroll 32s linear infinite;
}
.tech-carousel:hover .tech-track { animation-play-state: paused; }
.tech-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 128px;
    min-height: 118px;
    padding: 16px 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
    font-weight: 750;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(13,24,36,.06);
}
.tech-pill img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.tech-pill span {
    display: block;
    color: var(--ink);
    font-size: .88rem;
}

.process-section { background: var(--surface); }
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.process-grid article {
    min-height: 250px;
    padding: 28px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(18,104,243,.05), rgba(255,255,255,0)),
        #fff;
}
.process-grid span {
    display: inline-flex;
    margin-bottom: 26px;
    color: var(--blue);
    font-size: 1.7rem;
    font-weight: 800;
}
.process-grid h3 { margin-bottom: 12px; }
.process-grid p { color: var(--muted); line-height: 1.68; }

.contact-section {
    background:
        linear-gradient(135deg, rgba(17,24,32,.98), rgba(13,72,88,.94));
    color: #fff;
}
.contact-section .kicker { color: #80eef4; }
.contact-section p { color: rgba(255,255,255,.74); }
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(340px, .78fr);
    gap: 56px;
    align-items: center;
}
.contact-links,
.contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.contact-links a,
.contact-options a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 13px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,.09);
    color: #fff;
    font-weight: 700;
}
.contact-options a {
    align-items: flex-start;
    min-width: 210px;
    border: 1px solid rgba(255,255,255,.12);
}
.contact-options strong { font-size: .92rem; }
.contact-options span { color: rgba(255,255,255,.74); font-size: .94rem; }
.whatsapp-card { background: linear-gradient(135deg, rgba(61,187,120,.24), rgba(17,191,212,.12)) !important; }
.contact-form input,
.contact-form textarea,
.contact-form select,
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    margin: 0 0 16px;
    padding: 12px 13px;
    border: 1px solid #cbd6de;
    border-radius: 8px;
    background: #fbfcfd;
    color: var(--ink);
    font: inherit;
}
.contact-form label,
.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}
.contact-form {
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.contact-form label { color: var(--ink); }
.contact-form textarea::placeholder { color: #778591; }
.project-brief {
    background: #fff;
    color: var(--ink);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}
.notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}
.notice.success { background: #e1f3ed; color: #18634d; }
.notice.error { background: #ffe5df; color: #9a2f1d; }

.empty-state {
    max-width: 760px;
    margin: 0 auto;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: var(--soft-shadow);
}
.empty-state h2 { font-size: 2.1rem; margin-bottom: 12px; font-weight: 800; }
.empty-state p { color: var(--muted); }
.experiences-hero { min-height: 520px; }
.experiences-section { background: #f7f9fb; }
.experience-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 26px) / 2);
    gap: 26px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 24px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--blue) #dce6ee;
}
.client-card {
    min-height: 690px;
    max-height: 690px;
    padding: 0;
    overflow: hidden;
    scroll-snap-align: start;
}
.client-media {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #e8f2f7, #ffffff);
    border-bottom: 1px solid var(--line);
}
.client-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.client-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 26px 28px 0;
}
.client-name {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 9px;
    border-radius: 8px;
    color: #0d5260;
    background: #e6f8fb;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}
.client-summary {
    max-height: 190px;
    overflow-y: auto;
    padding-right: 6px;
}
.client-summary p + p { margin-top: 10px; }
.client-card .project-meta {
    margin-top: 16px;
}
.client-card .dark-link {
    margin: auto 28px 24px;
    color: var(--blue);
}
.experience-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.experience-gallery img {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}
.card-action { margin-top: auto; }

.blog-access {
    background: #ffffff;
}
.blog-hero,
.blog-detail-hero {
    min-height: 520px;
}
.blog-list-section,
.blog-reading-section {
    background: #f7f9fb;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.blog-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    transition: transform .24s ease, box-shadow .24s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.blog-card-media {
    display: block;
    height: 230px;
    overflow: hidden;
    background: #eaf2f7;
}
.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .32s ease;
}
.blog-card:hover .blog-card-media img {
    transform: scale(1.04);
}
.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}
.blog-card-body h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    line-height: 1.2;
}
.blog-card-body p {
    color: var(--muted);
}
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.blog-meta span {
    padding: 6px 8px;
    border-radius: 8px;
    color: #0d5260;
    background: #e6f8fb;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}
.reading-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
    align-items: start;
}
.reading-content,
.reading-aside {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}
.reading-content {
    padding: 38px;
    color: var(--ink-2);
    font-size: 1.08rem;
    line-height: 1.86;
    white-space: normal;
}
.reading-aside {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 14px;
    padding: 24px;
}
.reading-aside p {
    color: var(--muted);
}
.blog-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(18,104,243,.06), rgba(17,191,212,.06)),
        #fff;
    box-shadow: var(--soft-shadow);
}
.blog-panel h2 {
    max-width: 760px;
    margin-bottom: 12px;
    font-size: 2.2rem;
    line-height: 1.12;
}
.blog-panel p { max-width: 780px; color: var(--muted); }

.footer {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) .7fr .8fr;
    gap: 34px;
    padding: 42px 34px;
    background: #0d141d;
    color: rgba(255,255,255,.74);
}
.footer img {
    width: 210px;
    max-width: 100%;
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.95);
}
.footer p {
    max-width: 430px;
    margin: 0;
    color: rgba(255,255,255,.7);
}
.footer nav,
.footer div:last-child {
    display: grid;
    align-content: start;
    gap: 10px;
}
.footer strong { color: #fff; margin-bottom: 2px; }
.footer a { color: rgba(255,255,255,.78); font-weight: 700; }
.footer a:hover { color: #92f2ff; }

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr;
}
.admin-side {
    padding: 24px;
    background: var(--ink);
    color: #fff;
}
.admin-side nav {
    display: grid;
    gap: 8px;
    margin-top: 28px;
}
.admin-side a,
.admin-side button {
    color: rgba(255,255,255,.82);
    background: transparent;
    border: 0;
    padding: 10px 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.admin-main { padding: 32px; }
.admin-title {
    font-size: 2.6rem;
    line-height: 1;
    margin: 0;
}
.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.table-card {
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
th {
    font-size: .82rem;
    text-transform: uppercase;
    color: var(--muted);
}
.row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.link-button {
    border: 0;
    background: transparent;
    color: var(--teal);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    padding: 0;
}
.checkbox-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #cbd6de;
    border-radius: 8px;
    background: #fbfcfd;
}
.check-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    margin: 0;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.check-card:hover {
    border-color: rgba(18, 104, 243, .35);
    box-shadow: 0 10px 22px rgba(13,24,36,.08);
}
.check-card input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}
.check-card img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}
.check-card span {
    display: grid;
    min-width: 0;
    line-height: 1.25;
}
.check-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.check-card small {
    color: var(--muted);
}
.check-card:has(input:checked) {
    border-color: rgba(18, 104, 243, .55);
    background: linear-gradient(135deg, rgba(18,104,243,.08), rgba(17,191,212,.08)), #fff;
}
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.login-card {
    width: min(430px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--shadow);
}
.admin-edit-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.admin-guide {
    position: sticky;
    top: 96px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(18,104,243,.06), rgba(255,255,255,0)),
        #fff;
    box-shadow: var(--soft-shadow);
}
.admin-guide h2 {
    margin-bottom: 10px;
    font-size: 1.45rem;
}
.admin-guide p {
    color: var(--muted);
}
.guide-example,
.guide-rules {
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f6f9fb;
}
.guide-example {
    color: #214356;
    font-size: .94rem;
}
.guide-rules {
    display: grid;
    gap: 5px;
}
.guide-rules strong {
    color: var(--ink);
}
.guide-rules span {
    color: var(--muted);
    font-size: .92rem;
}
.enhanced-form {
    padding: 30px;
}
.field-group {
    margin-bottom: 18px;
}
.field-help {
    margin: -8px 0 14px;
    color: var(--muted);
    font-size: .9rem;
}
.publish-field {
    padding-top: 28px;
}
.check-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 750;
}
.check-row input {
    width: 18px;
    height: 18px;
    margin: 0;
}
.image-preview {
    width: 260px;
    max-width: 100%;
    margin: 8px 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #f4f7fa;
}
.image-preview.small {
    width: 130px;
}
.image-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.image-preview.small img {
    height: 110px;
    object-fit: contain;
    padding: 10px;
}
.gallery-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 18px;
}
.gallery-admin img {
    width: 96px;
    height: 74px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.project-detail-hero {
    min-height: 610px;
}
.detail-hero-media {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 28px 80px rgba(0,0,0,.25);
}
.detail-hero-media img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}
.project-detail-section {
    background: #f7f9fb;
}
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}
.detail-main,
.detail-aside {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}
.detail-main {
    padding: 34px;
}
.detail-main h2 {
    max-width: 760px;
    margin-bottom: 16px;
    font-size: 2.25rem;
    line-height: 1.12;
}
.detail-main p {
    color: var(--muted);
    line-height: 1.78;
}
.detail-aside {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 12px;
    padding: 22px;
}
.detail-info-card {
    display: grid;
    gap: 5px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f6f9fb;
}
.detail-info-card span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}
.detail-info-card strong {
    color: var(--ink);
    line-height: 1.35;
}
.dark-button {
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
}
.detail-gallery {
    margin-top: 34px;
}
.detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.detail-gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #eef4f8;
}

@keyframes tech-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float-panel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes scan-line {
    0%, 100% { opacity: .42; transform: scaleX(.72); transform-origin: left; }
    50% { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

@media (max-width: 1080px) {
    h1 { font-size: 5.2rem; }
    .hero-grid,
    .hero-grid.compact {
        grid-template-columns: 1fr;
    }
    .hero-showcase,
    .hero-mark {
        max-width: 620px;
    }
    .grid-4,
    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-3,
    .project-feature-grid,
    .blog-grid,
    .contact-layout,
    .intro-grid,
    .blog-panel,
    .process-grid,
    .detail-layout,
    .reading-layout {
        grid-template-columns: 1fr;
    }
    .experience-carousel {
        grid-auto-columns: 78%;
    }
    .footer {
        grid-template-columns: 1fr;
    }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-edit-layout {
        grid-template-columns: 1fr;
    }
    .admin-guide {
        position: static;
    }
    .detail-aside {
        position: static;
    }
    .reading-aside {
        position: static;
    }
    .checkbox-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: auto;
        padding: 12px 18px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .brand { width: 184px; }
    .nav {
        width: 100%;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 2px;
    }
    .nav a {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 10px;
        font-size: .88rem;
    }
    .hero,
    .section {
        padding-left: 18px;
        padding-right: 18px;
    }
    .hero {
        min-height: auto;
        padding-top: 58px;
        padding-bottom: 76px;
    }
    .compact-hero { min-height: auto; }
    h1 {
        font-size: 3.55rem;
        line-height: .9;
    }
    .hero-statement,
    .hero p.lead {
        font-size: 1.06rem;
        margin-top: 22px;
    }
    .hero-actions,
    .contact-links,
    .contact-options {
        flex-direction: column;
    }
    .button,
    .contact-links a,
    .contact-options a {
        width: 100%;
    }
    .hero-showcase {
        padding: 12px;
    }
    .showcase-window { min-height: 340px; }
    .dashboard-preview {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .device-preview {
        grid-template-columns: 92px 1fr;
    }
    .signal-strip { grid-template-columns: 1fr; }
    .section { padding-top: 72px; padding-bottom: 72px; }
    .section-title h2,
    .intro-grid h2,
    .contact-layout h2 {
        font-size: 2.35rem;
        line-height: 1.02;
    }
    .grid-4,
    .grid-3,
    .project-feature-grid,
    .blog-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .form-grid { grid-template-columns: 1fr; }
    .experience-carousel {
        grid-auto-columns: 92%;
    }
    .client-card {
        min-height: 640px;
        max-height: 640px;
    }
    .client-media {
        height: 260px;
    }
    .client-content {
        padding: 22px 22px 0;
    }
    .blog-panel {
        padding: 24px;
    }
    .blog-panel h2 {
        font-size: 1.8rem;
    }
    .card,
    .process-grid article,
    .empty-state {
        padding: 22px;
    }
    .footer {
        padding-left: 18px;
        padding-right: 18px;
    }
    .admin-main { padding: 22px 18px; }
    .admin-title {
        font-size: 2.25rem;
    }
    .admin-top {
        align-items: flex-start;
        flex-direction: column;
    }
    .tech-track { animation-duration: 23s; }
    .experience-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-card {
        min-height: 500px;
    }
    .project-card .card-image {
        height: 245px;
    }
    .detail-hero-media img {
        height: 280px;
    }
    .detail-main {
        padding: 24px;
    }
    .detail-main h2 {
        font-size: 1.8rem;
    }
    .detail-gallery-grid,
    .checkbox-picker {
        grid-template-columns: 1fr;
    }
    .detail-gallery-grid img {
        height: 220px;
    }
    .blog-card {
        min-height: 480px;
    }
    .blog-card-media {
        height: 220px;
    }
    .reading-content {
        padding: 24px;
        font-size: 1rem;
    }
}

@media (max-width: 430px) {
    .brand { width: 166px; }
    h1 { font-size: 3rem; }
    .proof span,
    .proof a {
        width: 100%;
        justify-content: center;
    }
    .card-image { height: 180px; }
    .tech-pill {
        min-width: 140px;
        font-size: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}
