:root {
  --bg: #030407;
  --panel: #0b0f17;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, .09);
  --primary: #6366f1;
  --secondary: #06b6d4;
  --accent: #8b5cf6;
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: "Plus Jakarta Sans", sans-serif; -webkit-font-smoothing: antialiased; }
main { padding-top: 131px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; width: 100%; border-bottom: 1px solid #d4d7db; background: #e8e8e8; box-shadow: 0 10px 24px rgba(3, 8, 18, .14); }
.notice { min-height: 35px; max-height: 48px; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 18px; border-bottom: 1px solid rgba(255,255,255,.08); color: #cbd5e1; font-size: 12px; text-align: center; background: linear-gradient(90deg, #11163a, #030407 45%, #101b38); transition: min-height .28s ease, max-height .28s ease, padding .28s ease, opacity .2s ease, border-color .2s ease; }
.site-header.header--scrolled .notice { height: 0; min-height: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; opacity: 0; }
.notice strong { color: var(--secondary); font-size: 11px; letter-spacing: .04em; }
.notice span { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 14px var(--secondary); }
.nav { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.nav .brand { width: 118px; height: 90px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: hidden; background: #e8e8e8; }
.nav .brand img { width: 100%; height: 100%; max-width: none; display: block; object-fit: contain; transform: scale(1.6); }
.nav-links { display: flex; align-items: center; gap: 42px; color: #475569; font-size: 16px; font-weight: 600; }
.nav-links a { display: inline-flex; min-height: 48px; align-items: center; padding-block: 12px; white-space: nowrap; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #0f172a; }
.nav-links a.active { border-bottom: 2px solid var(--secondary); }
.nav-cta { display: inline-flex; min-height: 54px; gap: 12px; align-items: center; padding: 15px 24px; border-radius: 12px; color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; background: linear-gradient(90deg, #4054c7, #0f7f91); transition: transform .2s, box-shadow .2s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(99, 102, 241, .28); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px; cursor: pointer; background: transparent; }
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; border-radius: 2px; background: #0f172a; }
.mobile-menu { position: absolute; top: 100%; right: 0; left: 0; display: flex; flex-direction: column; gap: 4px; padding: 18px 24px 24px; border-top: 1px solid #d4d7db; background: #e8e8e8; box-shadow: 0 18px 32px rgba(15,23,42,.14); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 4px; color: #475569; font-size: 15px; font-weight: 650; }
.mobile-menu a.active { color: #0f172a; }
.mobile-menu .mobile-cta { margin-top: 8px; padding: 14px; border-radius: 10px; color: #fff; text-align: center; background: linear-gradient(90deg, #4054c7, #0f7f91); }
.footer-brand { width: 112px; height: 86px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 0; background: transparent; }
.footer-brand img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.4); }

.hero { position: relative; min-height: 760px; display: flex; flex-direction: column; justify-content: center; padding-block: 115px 30px; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0 50% 0 -50vw; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent 92%); }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(130px); opacity: .22; }
.hero-glow-one { width: 520px; height: 520px; right: -180px; top: 30px; background: var(--primary); }
.hero-glow-two { width: 320px; height: 320px; left: -160px; bottom: -30px; background: var(--secondary); opacity: .11; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 25px; color: var(--secondary); font-size: 11px; font-weight: 800; letter-spacing: .21em; }
.eyebrow span { width: 34px; height: 1px; background: currentColor; }
.hero h1 { max-width: 1050px; margin: 0; font-size: clamp(3rem, 6.4vw, 6.3rem); line-height: .99; letter-spacing: -.065em; }
.hero h1 em, .cta-inner h2 em { font-style: normal; color: transparent; background: linear-gradient(90deg, #818cf8, var(--secondary)); background-clip: text; -webkit-background-clip: text; }
.hero-copy { max-width: 720px; margin: 34px 0 40px; color: #a8b2c3; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 0 23px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; font-weight: 800; transition: transform .2s, border-color .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); }
.button.primary { border: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); box-shadow: 0 16px 45px rgba(99, 102, 241, .22); }
.button.secondary { color: #d7deea; background: rgba(255,255,255,.035); }
.button.secondary:hover { border-color: rgba(6,182,212,.45); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; margin-top: 85px; border-top: 1px solid var(--line); }
.metrics div { display: flex; align-items: center; gap: 16px; padding: 24px 28px 0 0; }
.metrics div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.metrics strong { font-size: 27px; letter-spacing: -.05em; }
.metrics span { max-width: 150px; color: var(--muted); font-size: 11px; line-height: 1.45; text-transform: uppercase; letter-spacing: .08em; }

.showcase { padding-block: 55px 130px; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; margin-bottom: 60px; }
.section-heading h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 4.3rem); line-height: 1.05; letter-spacing: -.055em; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.75; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 24px; color: #fff; text-align: left; cursor: zoom-in; background: var(--panel); box-shadow: 0 28px 70px rgba(0,0,0,.3); transition: transform .3s, border-color .3s, box-shadow .3s; }
.project-card:hover { transform: translateY(-7px); border-color: rgba(99,102,241,.48); box-shadow: 0 36px 90px rgba(0,0,0,.45); }
.project-preview { position: relative; height: 330px; overflow: hidden; background: #07090e; }
.project-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3,4,7,.82), transparent 42%); }
.project-preview img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; transition: transform .7s ease; }
.project-card:hover .project-preview img { transform: scale(1.025); }
.project-open { position: absolute; z-index: 2; right: 22px; bottom: 20px; width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-style: normal; background: rgba(3,4,7,.55); backdrop-filter: blur(10px); }
.project-info { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px; padding: 21px; }
.project-info span { display: block; margin-bottom: 8px; color: var(--secondary); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.project-info h3 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.project-info > small { color: var(--muted); font-size: 11px; }
.portfolio-empty { grid-column: 1 / -1; padding: 70px 30px; border: 1px dashed rgba(255,255,255,.16); border-radius: 24px; color: var(--muted); text-align: center; background: rgba(255,255,255,.02); }
.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capabilities article { min-height: 245px; display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.capabilities article > span { color: var(--secondary); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.capabilities h3 { margin: auto 0 14px; font-size: 21px; }
.capabilities p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.cta-section { position: relative; overflow: hidden; padding-block: 125px; border-block: 1px solid var(--line); background: linear-gradient(135deg, #0a0d1a, #111539 55%, #071a26); }
.cta-section::before { content: ""; position: absolute; width: 600px; height: 600px; right: -250px; top: -250px; border-radius: 50%; background: var(--primary); filter: blur(180px); opacity: .15; }
.cta-inner { position: relative; text-align: center; }
.cta-inner .eyebrow { justify-content: center; }
.cta-inner h2 { margin: 0 auto 45px; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1.05; letter-spacing: -.06em; }
.button.large { min-height: 64px; padding-inline: 30px; }

footer { padding-block: 34px; background: #020305; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 24px; }
.footer-inner p { color: var(--muted); font-size: 12px; text-align: center; }
.footer-inner > span { color: #566175; font-size: 11px; text-align: right; }

.gallery-dialog { width: min(1320px, calc(100% - 24px)); max-width: none; height: min(94vh, 1200px); max-height: none; overflow: auto; padding: 22px; border: 1px solid var(--line); border-radius: 22px; color: #fff; background: #05070c; }
.gallery-dialog::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(8px); }
.gallery-dialog > img { width: 100%; max-width: 760px; height: auto; display: block; margin-inline: auto; border-radius: 12px; background: #090c12; }
.dialog-toolbar { position: sticky; z-index: 5; top: -22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: -22px -22px 18px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: rgba(5,7,12,.94); backdrop-filter: blur(16px); }
.dialog-toolbar h2 { margin: 4px 0 0; font-size: 21px; }
.dialog-toolbar [data-project-category] { color: var(--secondary); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.dialog-actions { display: flex; align-items: center; gap: 12px; }
.dialog-actions a { display: inline-flex; align-items: center; gap: 12px; padding: 11px 15px; border-radius: 10px; font-size: 12px; font-weight: 800; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.dialog-actions a[hidden] { display: none; }
.dialog-actions button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; cursor: pointer; background: rgba(255,255,255,.04); font-size: 25px; }
.dialog-description { max-width: 780px; margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.65; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capabilities { grid-template-columns: 1fr; }
  .capabilities article { min-height: 210px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .nav { gap: 18px; }
  .nav-links { gap: 20px; font-size: 14px; }
  .nav-cta { padding-inline: 18px; font-size: 14px; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 30px, 1180px); }
  .notice { font-size: 10px; }
  html { scroll-padding-top: 132px; }
  main { padding-top: 115px; }
  .nav { min-height: 80px; }
  .nav .brand { width: 99px; height: 74px; }
  .footer-brand { margin-left: 18px; }
  .footer-brand img { transform: scale(1.25); }
  .hero { min-height: auto; padding-block: 100px 35px; }
  .hero h1 { font-size: clamp(2.85rem, 13vw, 4.5rem); }
  .metrics { grid-template-columns: 1fr; margin-top: 65px; }
  .metrics div, .metrics div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .showcase { padding-block: 55px 95px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .project-card { border-radius: 18px; }
  .project-preview { height: 360px; }
  .cta-section { padding-block: 90px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-inner p, .footer-inner > span { margin: 0; text-align: center; }
  .gallery-dialog { padding: 14px; }
  .dialog-toolbar { top: -14px; margin: -14px -14px 14px; padding: 15px 14px; }
  .dialog-toolbar h2 { font-size: 15px; }
  .dialog-actions a { width: 42px; height: 42px; overflow: hidden; padding: 0; justify-content: center; color: transparent; }
  .dialog-actions a span { color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
