:root {
  --ink: #12123a;
  --brand: #292969;
  --brand-deep: #1b1b52;
  --blue: #2f5fff;
  --sky: #29abe2;
  --mist: #f2f4fb;
  --line: #e1e5f3;
  --text: #3a3f5c;
  --muted: #6c7391;
  --white: #fff;
  --font: 'Poppins', system-ui, sans-serif;
  --r-lg: 28px;
  --r-md: 20px;
  --pill: 9999px;
  --shadow: 0 24px 60px rgba(18, 18, 58, .14);
  --shadow-soft: 0 10px 30px rgba(18, 18, 58, .08);
  --wrap: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
section[id] { scroll-margin-top: 90px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* reveal (only when JS is active) */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; animation: rise .8s cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { opacity: 1; animation: none; }
  * { animation: none !important; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: var(--pill); font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s; font-family: inherit; }
.btn:hover { transform: translateY(-3px); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 14px 30px rgba(47,95,255,.35); }
.btn--blue:hover { box-shadow: 0 18px 38px rgba(47,95,255,.5); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--blue); color: var(--blue); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* header */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 18px 0; transition: background .3s, padding .3s, box-shadow .3s; }
.hd::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); opacity: 0; transition: opacity .3s; }
.hd--solid::before { opacity: 1; }
.hd--solid { box-shadow: 0 6px 24px rgba(18,18,58,.08); padding: 10px 0; }
.hd__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hd__logo img { height: 50px; width: auto; filter: brightness(0) invert(1); transition: filter .3s, height .3s; }
.hd--solid .hd__logo img { filter: none; height: 42px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { padding: 9px 16px; border-radius: var(--pill); font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.85); transition: background .25s, color .25s; }
.nav a:hover, .nav a.on { background: rgba(255,255,255,.14); color: #fff; }
.hd--solid .nav a { color: var(--text); }
.hd--solid .nav a:hover, .hd--solid .nav a.on { background: var(--mist); color: var(--blue); }
.hd__cta { padding: 11px 22px; font-size: .88rem; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.hd--solid .burger { border-color: var(--line); }
.hd--solid .burger span { background: var(--ink); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { position: relative; background: radial-gradient(60% 80% at 85% 10%, rgba(47,95,255,.45), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(41,171,226,.25), transparent 60%), linear-gradient(160deg, #0c0c2b 0%, var(--brand-deep) 60%, var(--brand) 100%); color: #fff; padding: 170px 0 110px; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; margin: 22px 0 24px; }
.grad { background: linear-gradient(90deg, var(--sky), #7ea2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,.78); max-width: 540px; margin-bottom: 38px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 46px; }
.pill { padding: 8px 16px; border-radius: var(--pill); border: 1px solid rgba(255,255,255,.2); font-size: .82rem; color: rgba(255,255,255,.82); background: rgba(255,255,255,.06); }

.collage { position: relative; height: 560px; }
.collage__main { position: absolute; right: 0; top: 0; width: 72%; height: 78%; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.collage__main img, .collage__sub img { width: 100%; height: 100%; object-fit: cover; }
.collage__sub { position: absolute; left: 0; bottom: 0; width: 52%; height: 44%; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--brand-deep); animation: float 7s ease-in-out infinite; }
.collage__badge { position: absolute; right: 8%; bottom: 6%; background: #fff; color: var(--ink); padding: 14px 18px; border-radius: var(--r-md); box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; animation: float 8s ease-in-out infinite reverse; }
.collage__badge img { width: 40px; height: 40px; object-fit: contain; }
.collage__badge b { display: block; font-size: .92rem; line-height: 1.2; }
.collage__badge span { font-size: .75rem; color: var(--muted); }
@keyframes float { 50% { transform: translateY(-12px); } }

/* strip */
.strip { background: var(--ink); color: rgba(255,255,255,.9); overflow: hidden; padding: 18px 0; }
.strip__track { display: flex; gap: 56px; width: max-content; animation: slide 32s linear infinite; font-weight: 500; font-size: .95rem; }
.strip__track span { display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.strip__track span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: 120px 0; }
.sec--mist { background: var(--mist); }
.sec--dark { background: linear-gradient(160deg, #0c0c2b, var(--brand-deep)); color: #fff; }
.sec__head { max-width: 760px; margin-bottom: 56px; }
.sec__head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; color: var(--ink); margin-top: 16px; }
.sec--dark .sec__head h2 { color: #fff; }
.sec__head p { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }
.sec--dark .sec__head p { color: rgba(255,255,255,.7); }
.sec--dark .eyebrow { color: var(--sky); }
.eyebrow--blue { color: var(--blue); }

/* expertises list */
.exp { border-top: 1px solid var(--line); }
.exp__row { display: grid; grid-template-columns: 90px 1fr 1.1fr 56px; gap: 24px; align-items: center; padding: 34px 20px; border-bottom: 1px solid var(--line); border-radius: 0; transition: background .3s, padding .3s; }
.exp__row:hover { background: var(--mist); padding-left: 32px; }
.exp__n { font-size: 1rem; font-weight: 600; color: var(--blue); letter-spacing: .08em; }
.exp__t { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 600; color: var(--ink); line-height: 1.25; }
.exp__d { color: var(--muted); }
.exp__go { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s; }
.exp__go svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.exp__row:hover .exp__go { background: var(--blue); border-color: var(--blue); transform: rotate(-45deg); }
.exp__row:hover .exp__go svg { stroke: #fff; }

/* cases */
.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.case { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 400px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; box-shadow: var(--shadow-soft); }
.case:nth-child(1) { grid-column: span 7; min-height: 480px; }
.case:nth-child(2) { grid-column: span 5; min-height: 480px; }
.case:nth-child(3), .case:nth-child(4), .case:nth-child(5) { grid-column: span 4; }
.case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.case::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12,12,43,.9), rgba(12,12,43,.1) 65%); }
.case:hover img { transform: scale(1.06); }
.case__body { padding: 30px; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.case__tag { display: inline-block; padding: 5px 12px; border-radius: var(--pill); background: rgba(255,255,255,.18); backdrop-filter: blur(8px); font-size: .75rem; font-weight: 500; margin-bottom: 12px; }
.case h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.case__go { flex: none; width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .3s, background .3s; }
.case__go svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.case:hover .case__go { transform: rotate(-45deg); background: var(--blue); }
.case:hover .case__go svg { stroke: #fff; }

/* why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why__img { position: relative; }
.why__img > img.big { border-radius: var(--r-lg); height: 560px; width: 100%; object-fit: cover; object-position: center 20%; box-shadow: var(--shadow); }
.checks { list-style: none; margin: 30px 0 38px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checks i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin-top: 1px; }
.checks i svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 34px 28px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: transform .3s, background .3s; }
.step:hover { transform: translateY(-8px); background: rgba(255,255,255,.1); }
.step__n { font-size: 3.2rem; font-weight: 700; line-height: 1; background: linear-gradient(180deg, var(--sky), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.2rem; font-weight: 600; margin: 18px 0 8px; }
.step p { color: rgba(255,255,255,.7); font-size: .95rem; }

/* faq */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 1.4rem; font-weight: 400; line-height: 1; transition: transform .3s, background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: #fff; }
.faq details p { padding: 0 60px 28px 0; color: var(--muted); }

/* cta */
.cta { position: relative; border-radius: var(--r-lg); padding: 80px 56px; text-align: center; color: #fff; overflow: hidden; background: radial-gradient(70% 100% at 80% 0%, rgba(47,95,255,.7), transparent 60%), linear-gradient(160deg, #0c0c2b, var(--brand)); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; max-width: 760px; margin: 0 auto 16px; }
.cta p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 34px; }
.cta__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.ccard { display: flex; gap: 16px; align-items: center; padding: 26px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
a.ccard:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: var(--blue); }
.ccard i { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--mist); display: grid; place-items: center; }
.ccard i svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ccard small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.ccard b { color: var(--ink); font-weight: 600; word-break: break-word; }
.map { margin-top: 24px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* footer */
.ft { background: var(--ink); color: rgba(255,255,255,.7); padding: 80px 0 0; }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.ft img.logo { height: 54px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.ft h4 { color: #fff; font-weight: 600; margin-bottom: 18px; }
.ft a { display: block; padding: 4px 0; transition: color .25s; }
.ft a:hover { color: var(--sky); }
.ft__bot { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.hooj { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.55); }
.hooj__pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 20px; background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); color: #a78bfa; font-size: .72rem; font-weight: 700; }
.ft a.hooj { display: inline-flex; }

/* inner pages */
.phero { background: radial-gradient(60% 90% at 85% 0%, rgba(47,95,255,.45), transparent 60%), linear-gradient(160deg, #0c0c2b, var(--brand)); color: #fff; padding: 170px 0 90px; }
.phero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; margin: 18px 0 18px; max-width: 800px; }
.phero p { color: rgba(255,255,255,.75); max-width: 640px; font-size: 1.08rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chips a { padding: 9px 18px; border-radius: var(--pill); border: 1px solid rgba(255,255,255,.25); font-size: .88rem; transition: background .25s, border-color .25s; }
.chips a:hover { background: var(--blue); border-color: var(--blue); }

.proj { padding: 100px 0; border-bottom: 1px solid var(--line); }
.proj:nth-of-type(even) { background: var(--mist); }
.proj__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.proj__num { font-size: .9rem; font-weight: 600; color: var(--blue); letter-spacing: .1em; }
.proj h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; font-weight: 700; color: var(--ink); margin: 12px 0 16px; letter-spacing: -.01em; }
.proj p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { padding: 6px 14px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); font-size: .8rem; font-weight: 500; color: var(--ink); }
.proj__side { position: sticky; top: 110px; }

.ph { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ph img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow-soft); transition: transform .5s, box-shadow .5s; }
.ph img:hover { transform: scale(1.025); box-shadow: var(--shadow); }
.ph img:first-child:nth-last-child(odd) { grid-column: span 2; height: 380px; }

.ba { position: relative; aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-soft); user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff; transform: translateX(-1.5px); pointer-events: none; }
.ba .handle::after { content: '⇔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-size: 1rem; box-shadow: var(--shadow-soft); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* responsive */
@media (max-width: 1024px) {
  .hero__grid, .why, .proj__grid { grid-template-columns: 1fr; }
  .collage { height: 460px; max-width: 560px; margin: 0 auto; width: 100%; }
  .proj__side { position: static; }
  .exp__row { grid-template-columns: 60px 1fr 52px; row-gap: 4px; }
  .exp__n { grid-row: 1 / 3; }
  .exp__go { grid-column: 3; grid-row: 1 / 3; }
  .exp__t { grid-column: 2; }
  .exp__d { grid-column: 2; grid-row: 2; font-size: .95rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .case:nth-child(n) { grid-column: span 6; min-height: 380px; }
  .case:nth-child(1) { grid-column: span 12; }
  .contact { grid-template-columns: 1fr; }
  .ft__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .burger { display: flex; }
  .hd__cta { display: none; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px); background: #fff; flex-direction: column; align-items: stretch; padding: 100px 24px 24px; gap: 4px; transform: translateX(100%); transition: transform .4s; box-shadow: -20px 0 50px rgba(18,18,58,.2); }
  .nav.open { transform: none; }
  .nav a, .hd--solid .nav a { color: var(--ink); font-size: 1.05rem; padding: 14px 18px; }
  .burger { position: relative; z-index: 60; }
  .burger.open { border-color: var(--line); }
  .burger.open span { background: var(--ink); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 80px 0; }
  .hero { padding: 130px 0 70px; }
  .collage { height: 380px; }
  .steps, .ph, .ba-pair { grid-template-columns: 1fr; }
  .case:nth-child(n) { grid-column: span 12; min-height: 340px; }
  .cta { padding: 56px 24px; }
  .faq details p { padding-right: 0; }
  .ft__grid { grid-template-columns: 1fr; }
  .proj { padding: 70px 0; }
  .ph img:first-child:nth-last-child(odd) { grid-column: auto; height: 300px; }
}
