/* =========================================================
   CSL System — modern stylesheet
   ========================================================= */

:root {
    /* Brand */
    --brand:        #14a87e;
    --brand-2:      #0ec27a;
    --brand-dark:   #0b6b51;
    --brand-soft:   #e8f7f1;

    /* Neutrals */
    --ink:          #0f1419;
    --ink-2:        #1c2530;
    --ink-3:        #2a3441;
    --slate:        #4b5563;
    --muted:        #6b7280;
    --line:         #e5e7eb;
    --bg:           #ffffff;
    --bg-alt:       #f7faf9;

    /* Accents */
    --accent:       #06b6d4;
    --danger:       #ef4444;

    /* Type */
    --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

    /* Layout */
    --radius:       14px;
    --radius-lg:    20px;
    --shadow-sm:    0 1px 2px rgba(15, 20, 25, .06);
    --shadow:       0 8px 24px rgba(15, 20, 25, .08);
    --shadow-lg:    0 20px 50px rgba(15, 20, 25, .12);
    --ease:         cubic-bezier(.22, .61, .36, 1);
    --container:    1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
}
/* Subtle film grain across the whole site */
body::before {
    content: ''; position: fixed; inset: 0; z-index: 200;
    pointer-events: none; opacity: .06; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .65 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.15; margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted    { color: var(--muted); }
.text-light { color: #fff; }
.mt-xl    { margin-top: 64px; }
.grad {
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 600; font-size: 15px; letter-spacing: .01em;
    transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s, border-color .2s;
    white-space: nowrap;
}
.btn--sm    { padding: 8px 16px; font-size: 14px; }
.btn--lg    { padding: 16px 28px; font-size: 16px; }
.btn--primary {
    background: var(--brand); color: #fff;
    box-shadow: 0 8px 20px rgba(20, 168, 126, .35);
}
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 168, 126, .45); }
.btn--ghost {
    background: rgba(255, 255, 255, .06);
    color: #fff; border-color: rgba(255, 255, 255, .25);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); }
.btn i { font-size: 1.1em; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0);
    transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    padding: 10px 0;
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand img { height: 42px; width: auto; transition: height .3s var(--ease), filter .3s; filter: brightness(0) invert(1); }
.nav.is-scrolled .nav__brand img { height: 36px; filter: none; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a {
    font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, .9);
    transition: color .2s; position: relative;
}
.nav__menu a:not(.btn):hover { color: #fff; }
.nav__menu a:not(.btn)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--brand); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
}
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav.is-scrolled .nav__menu a { color: var(--ink-2); }
.nav.is-scrolled .nav__menu a:not(.btn):hover { color: var(--brand); }

.nav__toggle {
    display: none; background: transparent; border: 0; padding: 8px;
    width: 44px; height: 44px; position: relative;
}
.nav__toggle span {
    display: block; width: 24px; height: 2px; background: #fff; margin: 5px auto;
    transition: transform .25s var(--ease), opacity .2s;
}
.nav.is-scrolled .nav__toggle span { background: var(--ink); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    color: #fff; overflow: hidden;
    background: #0a1620;
    padding: 140px 0 100px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__photo {
    position: absolute; inset: 0;
    background: url('assets/img/hero-servers.jpg') center/cover no-repeat;
    opacity: .55;
    filter: contrast(1.05) saturate(1.1);
    transform: scale(1.05);
}
.hero__bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(135deg, rgba(10, 22, 32, .85) 0%, rgba(10, 30, 24, .65) 50%, rgba(10, 22, 32, .9) 100%),
        radial-gradient(ellipse at 30% 40%, transparent 0%, rgba(10, 22, 32, .4) 70%);
}
.hero__grid {
    position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
}
.hero__glow {
    position: absolute; width: 600px; height: 600px; border-radius: 50%;
    filter: blur(120px); opacity: .28; z-index: 2;
}
.hero__glow--1 { background: var(--brand); top: -150px; left: -100px; }
.hero__glow--2 { background: var(--accent); bottom: -200px; right: -100px; opacity: .18; }

/* Cursor-follow glow */
.hero__cursor {
    position: absolute; width: 500px; height: 500px;
    left: var(--mx, 50%); top: var(--my, 50%);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(14, 194, 122, .35) 0%, rgba(14, 194, 122, 0) 65%);
    filter: blur(40px);
    pointer-events: none; z-index: 3;
    opacity: 0; transition: opacity .4s var(--ease);
}
.hero:hover .hero__cursor { opacity: 1; }

.hero__inner { position: relative; max-width: 920px; }
.hero__badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15);
    font-size: 13px; font-weight: 500; letter-spacing: .02em;
    backdrop-filter: blur(8px);
    margin-bottom: 28px;
}
.hero__badge .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(14, 194, 122, .25);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(14, 194, 122, 0); } }

.hero__title {
    font-size: clamp(2.4rem, 6.2vw, 5rem); font-weight: 700;
    letter-spacing: -.03em; margin-bottom: 24px; line-height: 1.05;
}
.hero__lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: rgba(255, 255, 255, .75); max-width: 680px; margin: 0 0 40px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }
.hero__stats {
    display: flex; gap: 56px; padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__stats > div { display: flex; flex-direction: column; }
.hero__stats strong {
    font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, .6));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats span { font-size: 13px; color: rgba(255, 255, 255, .55); text-transform: uppercase; letter-spacing: .08em; }

.hero__scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, .7);
    animation: bounce 2.4s ease-in-out infinite;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- Marquee ---------- */
.marquee {
    position: relative; background: var(--ink); color: rgba(255, 255, 255, .85);
    overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 22px 0;
}
.marquee::before, .marquee::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2;
    pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.marquee__track {
    display: inline-flex; align-items: center; gap: 36px;
    white-space: nowrap; padding-left: 100%;
    animation: scroll 50s linear infinite;
    font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
    letter-spacing: -.01em;
}
.marquee__track span { transition: color .2s; }
.marquee__track .dot-sep { color: var(--brand); font-size: 1.3rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
    color: rgba(255, 255, 255, .85); position: relative; overflow: hidden;
}
.section--dark::before {
    content: ''; position: absolute; top: -200px; right: -200px;
    width: 500px; height: 500px; border-radius: 50%;
    background: var(--brand); filter: blur(140px); opacity: .15;
}

.section__head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section--dark .section__lead { color: rgba(255, 255, 255, .7); }

.eyebrow {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-dark);
    font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 16px;
}
.eyebrow--light { background: rgba(20, 168, 126, .15); color: var(--brand-2); }

/* ---------- About ---------- */
.about__grid {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start;
}
.about__text p { margin: 0 0 18px; color: var(--slate); }
.about__text p:last-child { margin-bottom: 0; }
.about__text strong { color: var(--ink); }
.about__text em { font-style: normal; color: var(--brand-dark); font-weight: 600; }

.about__highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.about__highlights li {
    display: flex; gap: 18px; padding: 22px;
    background: var(--bg-alt); border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.about__highlights li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.about__highlights i {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.about__highlights h4 { font-size: 1rem; margin-bottom: 4px; }
.about__highlights p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* ---------- Services / Cards ---------- */
.cat {
    position: relative; padding: 24px 0;
}
.cat::before {
    content: attr(data-num); position: absolute;
    top: -40px; right: -20px;
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(10rem, 22vw, 20rem); line-height: .8;
    color: var(--ink); opacity: .035; letter-spacing: -.05em;
    pointer-events: none; z-index: 0;
    background: linear-gradient(180deg, var(--ink), transparent);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cat > * { position: relative; z-index: 1; }

.cat-title {
    display: flex; align-items: center; gap: 18px;
    font-size: 1.7rem; margin: 0 0 12px;
}
.cat-num {
    font-family: var(--font-display); font-size: .85rem; font-weight: 700;
    color: var(--brand-dark); padding: 4px 12px;
    background: var(--brand-soft); border-radius: 999px;
    letter-spacing: .08em;
}
.cat-lead { color: var(--muted); margin: 0 0 40px; max-width: 720px; font-size: 1.05rem; }

/* ---------- Bento grid ---------- */
.bento {
    display: grid; gap: 18px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
}
.bento__item {
    position: relative; background: #fff;
    padding: 32px; border-radius: var(--radius-lg);
    border: 1px solid var(--line); overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.bento__item::after {
    content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transition: width .4s var(--ease);
}
.bento__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.bento__item:hover::after { width: 100%; }
.bento__item h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--ink); }
.bento__item p { margin: 0 0 8px; color: var(--slate); font-size: .94rem; line-height: 1.6; }
.bento__item .card__icon { margin-bottom: 16px; }
.bento__item:hover .card__icon {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff; transform: scale(1.06) rotate(-3deg);
}

/* Hero card — spans 2 columns, 2 rows */
.bento__item--hero {
    grid-column: span 2; grid-row: span 2;
    min-height: 380px; padding: 0; color: #fff; border-color: transparent;
    display: flex; align-items: flex-end;
}
.bento__item--hero h3, .bento__item--hero p { color: #fff; }
.bento__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: grayscale(.2) contrast(1.05);
    transition: transform .8s var(--ease);
}
.bento__item--hero:hover .bento__bg { transform: scale(1.06); }
.bento__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 22, 32, .2) 0%, rgba(10, 22, 32, .55) 50%, rgba(10, 22, 32, .92) 100%);
}
.bento__content { position: relative; padding: 36px; z-index: 1; max-width: 520px; }
.bento__item--hero h3 { font-size: 1.6rem; }
.bento__item--hero .card__icon {
    background: rgba(255, 255, 255, .15); color: #fff;
    backdrop-filter: blur(8px);
}
.bento__tag {
    display: inline-block; margin-top: 14px; padding: 6px 12px;
    border-radius: 999px; background: rgba(20, 168, 126, .25); color: var(--brand-2);
    font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    border: 1px solid rgba(20, 168, 126, .4);
}

/* Wide card — spans 2 columns */
.bento__item--wide {
    grid-column: span 2;
    display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
}
.bento__item--wide .card__icon { margin-bottom: 0; }

/* Automation bento variant */
.bento--auto {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
}
.bento--auto .bento__item--feature {
    grid-column: span 2; grid-row: span 2;
    background: linear-gradient(135deg, var(--ink) 0%, #102a23 100%);
    color: #fff; border-color: transparent;
    padding: 40px;
    position: relative;
}
.bento--auto .bento__item--feature::before {
    content: ''; position: absolute; right: -100px; bottom: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, var(--brand), transparent 70%);
    opacity: .35; pointer-events: none;
}
.bento--auto .bento__item--feature h3 { color: #fff; font-size: 1.7rem; }
.bento--auto .bento__item--feature h3 .muted { color: rgba(255, 255, 255, .55); font-weight: 600; }
.bento--auto .bento__item--feature p { color: rgba(255, 255, 255, .8); }
.bento--auto .bento__item--feature p.muted { color: rgba(255, 255, 255, .55); }
.bento--auto .bento__item--feature .card__icon {
    background: rgba(20, 168, 126, .2); color: var(--brand-2);
}
.bento--auto .bento__item--feature .card__link { color: var(--brand-2); }
.bento--auto .bento__item--feature .card__link:hover { color: #fff; }
.bento--auto .bento__item--wide {
    grid-column: span 3;
}

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards--wide { grid-template-columns: repeat(2, 1fr); }
.card {
    background: #fff; padding: 32px 28px; border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
    position: relative; overflow: hidden;
}
.card::after {
    content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transition: width .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { width: 100%; }
.card__icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--brand-soft); color: var(--brand-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 20px;
    transition: background .3s, color .3s, transform .3s var(--ease);
}
.card__icon--lg { width: 64px; height: 64px; font-size: 30px; }
.card:hover .card__icon {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff; transform: scale(1.06) rotate(-3deg);
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--ink); }
.card p { margin: 0 0 10px; color: var(--slate); font-size: .95rem; line-height: 1.6; }
.card__link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
    color: var(--brand-dark); font-weight: 600; font-size: .9rem;
}
.card__link:hover { color: var(--brand); }

.card--feature { padding: 36px 32px; }
.card--wide {
    display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
    margin-top: 22px; padding: 32px;
}
.card--wide .card__icon { margin-bottom: 0; }

/* ---------- Projects ---------- */
.projects {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
    max-width: 920px; margin: 0 auto;
}
.project {
    display: flex; align-items: center; gap: 24px; padding: 28px;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg); color: #fff;
    transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s;
    transform-style: preserve-3d; perspective: 1000px;
    will-change: transform;
}
.project:hover { background: rgba(255, 255, 255, .07); border-color: var(--brand); box-shadow: 0 24px 60px rgba(20, 168, 126, .15); }
.project__logo {
    flex-shrink: 0; width: 88px; height: 88px; border-radius: 14px;
    background: rgba(255, 255, 255, .92); padding: 14px;
    display: flex; align-items: center; justify-content: center;
}
.project__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.project__body h3 { font-size: 1.25rem; margin-bottom: 4px; color: #fff; }
.project__body p { margin: 0 0 10px; font-size: .9rem; color: rgba(255, 255, 255, .65); }
.project__link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--brand-2); font-weight: 600; font-size: .88rem;
}
.project:hover .project__link { color: #fff; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }

.contact__form { display: flex; flex-direction: column; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea {
    width: 100%; padding: 22px 18px 10px;
    background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
    font: inherit; color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; padding-top: 26px; }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(20, 168, 126, .12);
}
.field label {
    position: absolute; left: 18px; top: 18px;
    color: var(--muted); font-size: .95rem;
    pointer-events: none; transition: all .18s var(--ease);
    background: transparent; padding: 0 4px;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field input.has-value + label, .field textarea.has-value + label {
    top: 6px; font-size: .72rem; color: var(--brand-dark); font-weight: 600;
}
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid label { color: var(--danger); }

.check {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: .92rem; color: var(--slate); cursor: pointer;
    user-select: none;
}
.check input {
    flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0;
    accent-color: var(--brand);
}
.check.invalid { color: var(--danger); }

.form__msg { font-size: .95rem; padding: 12px 16px; border-radius: 10px; display: none; }
.form__msg.is-success { display: block; background: var(--brand-soft); color: var(--brand-dark); }
.form__msg.is-error   { display: block; background: #fef2f2; color: var(--danger); }

.contact__info {
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
    color: #fff; padding: 36px 32px; border-radius: var(--radius-lg);
    position: sticky; top: 100px;
}
.contact__info h3 { font-size: 1.3rem; margin-bottom: 24px; }
.contact__info ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 18px; }
.contact__info li { display: flex; gap: 14px; align-items: flex-start; }
.contact__info li i {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
    background: rgba(20, 168, 126, .18); color: var(--brand-2);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact__info li span { display: block; font-size: .75rem; color: rgba(255, 255, 255, .5); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.contact__info li a { color: #fff; font-weight: 600; }
.contact__info li a:hover { color: var(--brand-2); }
.contact__brands {
    padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.contact__brands img { height: 36px; opacity: .8; transition: opacity .2s; filter: brightness(0) invert(1); }
.contact__brands a:hover img { opacity: 1; }

/* ---------- Footer ---------- */
.footer {
    background: var(--ink); color: rgba(255, 255, 255, .6);
    padding: 56px 0 32px;
}
.footer__inner {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start;
}
.footer__brand img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__brand p { margin: 0; font-size: .92rem; max-width: 320px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.footer__nav a { color: rgba(255, 255, 255, .7); font-size: .95rem; }
.footer__nav a:hover { color: var(--brand-2); }
.footer__legal {
    padding-top: 8px; font-size: .85rem; display: flex; flex-direction: column; gap: 6px;
    color: rgba(255, 255, 255, .45);
}

/* ---------- To-top ---------- */
.to-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 90;
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: var(--brand); color: #fff; font-size: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: opacity .25s, transform .25s, background .2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--brand-dark); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .about__grid { grid-template-columns: 1fr; gap: 48px; }
    .footer__inner { grid-template-columns: 1fr 1fr; }

    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento__item--hero { grid-column: span 2; grid-row: span 1; min-height: 320px; }
    .bento__item--wide { grid-column: span 2; }
    .bento--auto { grid-template-columns: repeat(2, 1fr); }
    .bento--auto .bento__item--feature { grid-column: span 2; grid-row: span 1; }
    .bento--auto .bento__item--wide { grid-column: span 2; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .hero { padding: 130px 0 80px; min-height: auto; }
    .hero__stats { gap: 28px; flex-wrap: wrap; }
    .hero__stats strong { font-size: 1.7rem; }

    .nav__menu {
        position: fixed; top: 70px; left: 16px; right: 16px;
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: 20px; background: #fff; border-radius: 18px;
        box-shadow: var(--shadow-lg); border: 1px solid var(--line);
        opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none;
        transition: opacity .25s var(--ease), transform .25s var(--ease);
    }
    .nav__menu.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
    .nav__menu a { color: var(--ink-2); padding: 12px 14px; border-radius: 10px; }
    .nav__menu a:not(.btn):hover { background: var(--bg-alt); color: var(--brand-dark); }
    .nav__menu a:not(.btn)::after { display: none; }
    .nav__menu .btn { margin-top: 6px; justify-content: center; }
    .nav__toggle { display: block; }

    .cards, .cards--wide, .projects, .contact, .row2 { grid-template-columns: 1fr; }
    .card--wide { grid-template-columns: 1fr; }
    .contact__info { position: static; }
    .footer__inner { grid-template-columns: 1fr; gap: 28px; }

    .bento, .bento--auto { grid-template-columns: 1fr; }
    .bento__item--hero, .bento__item--wide,
    .bento--auto .bento__item--feature, .bento--auto .bento__item--wide { grid-column: span 1; }
    .bento__item--wide { grid-template-columns: 1fr; }
    .bento__content { padding: 28px; }
    .bento__item--hero { min-height: 260px; }
    .cat::before { display: none; }
    .marquee__track { font-size: .95rem; gap: 24px; animation-duration: 35s; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero__cta { width: 100%; }
    .hero__cta .btn { flex: 1; justify-content: center; }
    .cat-title { font-size: 1.3rem; }
}

/* ---------- Motion reduce ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
