/* ===== Tokens ===== */
:root {
  --blue: #0052FB;
  --blue-700: #003fc4;
  --ink: #0b0c10;
  --ink-2: #2a2d36;
  --muted: #5d626f;
  --line: #e7e8ee;
  --surface: #f6f7f9;
  --white: #ffffff;
  --maxw: 1140px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11,12,16,.04), 0 12px 32px rgba(11,12,16,.06);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.accent { color: var(--blue); }

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 16px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(0,82,251,.24); }
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 10px 26px rgba(0,82,251,.32); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.btn-lg { font-size: 16px; padding: 14px 26px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 1px 0 rgba(11,12,16,.04); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { margin-left: 4px; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; margin-left: auto; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle span + span { margin-top: 5px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-menu a { padding: 12px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { border: 1px solid transparent; margin-top: 12px; justify-content: center; }
.mobile-menu[hidden] { display: none; }
.mobile-menu.open { display: flex; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 12vw, 132px) 0 clamp(56px, 9vw, 104px); }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(120% 90% at 80% -10%, rgba(0,82,251,.10), transparent 60%),
    linear-gradient(to right, rgba(11,12,16,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,12,16,.035) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.hero-title { font-size: clamp(40px, 6.4vw, 76px); font-weight: 700; }
.hero-lede { font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); max-width: 620px; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.hero-tags span {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.6);
}

/* ===== Statement strip ===== */
.strip { background: var(--ink); color: #fff; }
.strip-line { font-family: "Space Grotesk", sans-serif; font-size: clamp(20px, 3vw, 30px); font-weight: 500; letter-spacing: -.02em; padding: clamp(40px, 6vw, 64px) 0; max-width: 920px; }
.strip-line strong { color: #fff; font-weight: 700; position: relative; }
.strip-line strong::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; background: var(--blue); opacity: .9; z-index: -1; }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 12px; }
.section-sub { color: var(--muted); font-size: 18px; margin-top: 18px; }

/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-no { font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .1em; }
.card h3 { font-size: 23px; margin: 14px 0 12px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card ul { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; }
.card li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-2); }
.card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step-no { font-family: "Space Grotesk", sans-serif; font-size: 14px; font-weight: 700; color: #fff; background: var(--blue); width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.step h3 { font-size: 20px; margin: 18px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ===== Industries ===== */
.industries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ind { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.ind:hover { border-color: var(--blue); transform: translateY(-4px); }
.ind h3 { font-size: 21px; margin-bottom: 8px; }
.ind p { color: var(--muted); font-size: 15.5px; }

/* ===== Selected work ===== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.work-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.work-img { aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.work-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.work-card:hover .work-img img { transform: scale(1.03); }
.work-meta { padding: 22px 26px 26px; }
.work-meta h3 { font-size: 22px; }
.work-meta p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.work-role { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); background: rgba(0,82,251,.08); padding: 6px 13px; border-radius: 999px; }

/* ===== Kulbit featured banner ===== */
.kulbit { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--ink); border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow); }
.kulbit-visual { position: relative; display: block; min-height: 340px; overflow: hidden; }
.kulbit-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.kulbit-visual:hover img { transform: scale(1.04); }
.kulbit-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,16,0) 55%, var(--ink) 100%); pointer-events: none; }
.kulbit-play { position: absolute; left: 22px; bottom: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; font-size: 14px; background: rgba(0,0,0,.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.kulbit-play-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: var(--blue); font-size: 9px; }
.kulbit-copy { padding: 42px 44px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.kulbit-badge { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6f9bff; }
.kulbit-copy h3 { font-size: clamp(30px, 4vw, 40px); margin: 12px 0 8px; color: #fff; }
.kulbit-tag { color: #d4d7df; font-size: 15px; font-weight: 600; }
.kulbit-desc { color: #9aa0ad; font-size: 15px; margin: 14px 0 24px; max-width: 46ch; }
.kulbit-thumbs { display: flex; gap: 10px; margin-top: 26px; }
.kulbit-thumbs img { width: 88px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); }
@media (max-width: 760px) {
  .kulbit { grid-template-columns: 1fr; }
  .kulbit-visual { min-height: 220px; aspect-ratio: 16 / 9; }
  .kulbit-visual::after { background: linear-gradient(180deg, rgba(11,12,16,0) 60%, var(--ink) 100%); }
  .kulbit-copy { padding: 30px 26px 34px; }
}

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, var(--blue), #2b6bff 60%, #5a86ff); color: #fff; }
.cta-inner { text-align: center; padding: clamp(64px, 9vw, 110px) 24px; }
.cta h2 { font-size: clamp(30px, 4.6vw, 48px); }
.cta p { font-size: 18px; opacity: .92; margin: 18px auto 32px; max-width: 540px; }
.cta-email { font-size: 15px; opacity: .9; margin-top: 22px; }
.cta-email a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #c7cad3; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 64px 24px 36px; }
.wordmark { font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.footer-brand p { margin-top: 14px; font-size: 14.5px; color: #9aa0ad; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: start; }
.footer-nav a { font-size: 15px; color: #c7cad3; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #8b91a0; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .cards, .steps, .industries, .work-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .ind { transition: none; }
}
