/* ITK Tech Solutions site styles
   Tokens follow brand-kit/ITK-brand-brief.md and match the case study pages. */
:root {
    --indigo: #1C1898;
    --indigo-deep: #170058;
    --ink: #24283C;
    --muted: #5A5C6A;
    --bg: #F0F0F8;
    --bg-edge: #E0E4F0;
    --card: #FFFFFF;
    --line: #E3E5EF;
    --z-red: #E42527;
    --z-green: #089949;
    --z-blue: #226DB4;
    --z-yellow: #F9B21D;
    --z-yellow-text: #B57900;
    --rule: linear-gradient(90deg, var(--indigo), var(--z-blue) 55%, var(--z-red));
    --shadow-sm: 0 1px 2px rgba(28, 24, 152, .06), 0 2px 8px rgba(28, 24, 152, .05);
    --shadow: 0 2px 4px rgba(28, 24, 152, .05), 0 12px 32px rgba(28, 24, 152, .08);
    --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Gradient rule */
.rule { height: 4px; width: 96px; border-radius: 4px; background: var(--rule); }
.rule.center { margin-left: auto; margin-right: auto; }

/* Eyebrow with RGBY dots */
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--indigo);
}
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--z-red); }
.dots i:nth-child(2) { background: var(--z-green); }
.dots i:nth-child(3) { background: var(--z-blue); }
.dots i:nth-child(4) { background: var(--z-yellow); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
    font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 18px rgba(28, 24, 152, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28, 24, 152, .32); }
.btn-ghost { background: #fff; color: var(--indigo); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--indigo); }
.btn-light:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.lockup { display: flex; align-items: center; gap: 18px; }
.lockup img.itk { height: 52px; width: auto; }
.lockup .divider { width: 1px; height: 34px; background: #CDD0DD; }
.lockup img.badge { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.link {
    text-decoration: none; color: var(--ink); font-weight: 500; font-size: .93rem;
    padding: .5rem .8rem; border-radius: 999px;
}
.nav a.link:hover, .nav a.link[aria-current="page"] { background: var(--bg); color: var(--indigo); }
.nav .btn { margin-left: 8px; padding: .65rem 1.15rem; font-size: .9rem; }
.menu-toggle {
    display: none; background: none; border: 1px solid var(--line); border-radius: 12px;
    width: 44px; height: 44px; place-items: center; color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1020px) {
    .lockup .divider, .lockup img.badge { display: none; }
}
@media (max-width: 900px) {
    .menu-toggle { display: grid; }
    .nav {
        display: none; position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px;
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .nav a.link { padding: .75rem .9rem; border-radius: 12px; }
    .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* Hero */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, var(--bg) 0%, var(--bg-edge) 100%);
    padding: 80px 0 96px;
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .18; pointer-events: none;
}
.hero::before { width: 420px; height: 420px; background: var(--z-blue); top: -120px; right: -80px; }
.hero::after { width: 360px; height: 360px; background: var(--z-red); bottom: -160px; left: -100px; opacity: .12; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 52px 0 64px; } }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; color: var(--indigo); margin: 18px 0 22px; }
.hero h1 span { color: var(--ink); }
.hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 38em; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.page-hero { padding: 64px 0 72px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* "10 Years of" brand card */
.years-card {
    background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 36px 32px; position: relative; text-align: center;
}
.years-card::before {
    content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 4px;
    background: var(--rule); border-radius: 0 0 4px 4px;
}
.years-card .partner-row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.years-card .partner-row img.itk { height: 70px; width: auto; }
.years-card .partner-row img.badge { height: 40px; width: auto; }
.years-card .partner-row img.creator { height: 34px; width: auto; }
.years-card .partner-row .divider { width: 1px; height: 40px; background: #CDD0DD; }
.years-card .big { margin-top: 28px; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.years-card .big b { color: var(--indigo); font-size: 3.2rem; line-height: 1; vertical-align: -0.12em; margin-right: 6px; }
.words { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.words li { font-weight: 800; font-size: 1.05rem; }
.words li:nth-child(1) { color: var(--z-red); }
.words li:nth-child(2) { color: var(--z-green); }
.words li:nth-child(3) { color: var(--z-blue); }
.words li:nth-child(4) { color: var(--z-yellow-text); }
.years-card .meta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 480px) {
    .years-card { padding: 30px 20px; }
    .years-card .partner-row .divider { display: none; }
}

/* Sections */
section.block { padding: 92px 0; }
section.block.white { background: #fff; }
section.block.tight { padding-top: 0; }
@media (max-width: 760px) { section.block { padding: 60px 0; } }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--indigo); margin: 14px 0 18px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 18px 0 0; }

/* RGBY cycle helper */
.rgby > :nth-child(4n+1) { --c: var(--z-red); --ct: var(--z-red); }
.rgby > :nth-child(4n+2) { --c: var(--z-green); --ct: var(--z-green); }
.rgby > :nth-child(4n+3) { --c: var(--z-blue); --ct: var(--z-blue); }
.rgby > :nth-child(4n+4) { --c: var(--z-yellow); --ct: var(--z-yellow-text); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 36px; } }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--indigo); margin: 14px 0 20px; }
.about .lead { font-size: 1.2rem; font-weight: 600; line-height: 1.5; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pillars li {
    display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
    background: var(--bg); border-radius: 16px; padding: 18px;
}
.pillars .ic {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--c) 13%, white); color: var(--ct);
}
.pillars .ic svg { width: 22px; height: 22px; }
.pillars h3 { font-size: 1rem; font-weight: 700; margin: 2px 0 4px; }
.pillars p { color: var(--muted); margin: 0; font-size: .94rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
    background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--line); border-top: 4px solid var(--c);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
    background: color-mix(in srgb, var(--c) 12%, white); color: var(--ct);
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Product */
.product {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
    background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 48px; position: relative; overflow: hidden;
}
.product::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--indigo); }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; } }
.product h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--indigo); margin: 12px 0 14px; }
.product .tag { color: var(--muted); font-size: 1.05rem; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.features li {
    display: flex; gap: 12px; align-items: flex-start; background: var(--bg);
    border-radius: 14px; padding: 14px 16px; font-weight: 500; font-size: .95rem;
}
.features li svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--z-green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 14px 6px 10px; font-size: .85rem; font-weight: 600; color: var(--ink);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--indigo)); }

/* Case study cards */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } }
.case {
    display: flex; flex-direction: column; background: #fff; border-radius: 24px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case .top {
    height: 140px; display: grid; place-items: center; position: relative;
    background: radial-gradient(ellipse at 50% 30%, var(--bg) 0%, var(--bg-edge) 100%);
}
.case .top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--rule); }
.case .top.ink { background: var(--ink); }
.case .top img { max-height: 56px; width: auto; }
.case .body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case .kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case h3 { font-size: 1.25rem; font-weight: 800; color: var(--indigo); }
.case p { color: var(--muted); margin: 0; }
.case .chips { margin: 6px 0 0; }
.case .more { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--indigo); display: inline-flex; gap: 6px; align-items: center; }
.case .more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.case:hover .more svg { transform: translateX(4px); }

/* Press */
.press-feature {
    display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
    background: #fff; border-radius: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 36px;
}
@media (max-width: 760px) { .press-feature { grid-template-columns: 1fr; padding: 28px 22px; } }
.press-feature .date { font-size: .85rem; font-weight: 600; color: var(--muted); }
.press-feature h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800; color: var(--ink); margin: 8px 0 12px; }
.press-feature p { color: var(--muted); margin: 0; }
.stat { text-align: center; padding: 18px 26px; border-radius: 18px; background: var(--bg); }
.stat b { display: block; font-size: 2.6rem; font-weight: 800; color: var(--indigo); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.outlets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.outlets a {
    text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 600;
    background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
    transition: border-color .2s ease, color .2s ease;
}
.outlets a:hover { border-color: var(--indigo); color: var(--indigo); }
.outlet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.outlet-grid a {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
    text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem;
    transition: border-color .2s ease, transform .2s ease;
}
.outlet-grid a:hover { border-color: var(--indigo); transform: translateY(-2px); }
.outlet-grid a svg { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* CTA band */
.cta {
    position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; text-align: center; color: #fff;
    background: radial-gradient(ellipse at 20% 0%, #2B27C4 0%, var(--indigo) 45%, var(--indigo-deep) 100%);
}
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--rule); }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 16px; }
.cta p { max-width: 640px; margin: 0 auto 30px; color: rgba(255, 255, 255, .85); font-size: 1.08rem; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .btn-outline { color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.cta .btn-outline:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 600px) { .cta { padding: 44px 22px; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 32px; } }
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--indigo); margin: 14px 0 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li {
    display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.contact-list .ic {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--c) 13%, white); color: var(--ct);
}
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list .k { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-list .v { font-weight: 600; }
.contact-list .v a { color: var(--ink); text-decoration: none; }
.contact-list .v a:hover { color: var(--indigo); text-decoration: underline; }
.map {
    border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line);
}
.map iframe { display: block; width: 100%; height: 360px; border: 0; }
.map .cap { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .92rem; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 48px 0 32px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .site-footer .top { grid-template-columns: 1fr; } }
.site-footer .partners { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-footer .partners img { height: 30px; width: auto; }
.site-footer .partners img.itk { height: 48px; }
.site-footer .tagline { color: var(--muted); font-size: .93rem; margin-top: 16px; max-width: 26em; }
.site-footer h4 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .93rem; }
.site-footer ul a { color: var(--ink); text-decoration: none; }
.site-footer ul a:hover { color: var(--indigo); text-decoration: underline; }
.site-footer .bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted);
}
.site-footer .bottom a { color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s cubic-bezier(.2, .9, .3, 1.15); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* Logos supplied as JPEG (white background): show them on a white tile */
.case .top img[src$=".jpg"], .case .top img[src$=".jpeg"] { background: #fff; padding: 8px 12px; border-radius: 12px; max-height: 76px; box-shadow: var(--shadow-sm); }
